]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/ChangeLog
Automatic date update in version.in
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
c426fddb
SM
12020-08-24 Simon Marchi <simon.marchi@efficios.com>
2
3 * debug.h: New file.
4 * debug.c (debug_prefixed_vprintf): New function.
5 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
6 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
7
1eb8556f
SM
82020-08-24 Simon Marchi <simon.marchi@efficios.com>
9
10 * infrun.h (infrun_debug_printf_1): New function declaration.
11 (infrun_debug_printf): New macro.
12 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
13 throughout.
14 (infrun_debug_printf): New function.
15 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
16 (handle_jit_event): Likewise.
17
b8fff44e
MW
182020-08-21 Mark Wielaard <mark@klomp.org>
19
20 * ada-lex.l: Extend register warnings diagnostics comment for g++.
21
d19c3068
SM
222020-08-22 Simon Marchi <simon.marchi@efficios.com>
23
24 * frame.c (enum class frame_id_status): New.
25 (struct frame_info) <this_id::p>: Change type to frame_id_status.
26 (fprintf_frame): Update.
27 (compute_frame_id): Set frame id status to "computing" on entry.
28 Set it back to "not_computed" on failure and to "computed" on
29 success.
30 (get_frame_id): Assert the frame id is not being computed.
31 (create_sentinel_frame): Use frame_id_status::COMPUTED.
32 (create_new_frame): Likewise.
33 (frame_cleanup_after_sniffer): Update assert.
34
b70e516e
SM
352020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
36
37 * regcache.c (pid_ptid_regcache_map): New type.
38 (target_ptid_regcache_map): Remove.
39 (target_pid_ptid_regcache_map): New type.
40 (regcaches): Change type to target_pid_ptid_regcache_map.
41 (get_thread_arch_aspace_regcache): Update.
42 (regcache_thread_ptid_changed): Update, handle pid-like ptid
43 case.
44 (regcaches_size): Update.
45 (regcache_count): Update.
46 (registers_changed_ptid_target_pid_test): New.
47 (_initialize_regcache): Register new test.
48
cdd9148a
SM
492020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
50
51 * regcache.c (regcache_count): New.
52 (struct regcache_test_data): New.
53 (regcache_test_data_up): New.
54 (populate_regcaches_for_test): New.
55 (regcaches_test): Remove.
56 (get_thread_arch_aspace_regcache_test): New.
57 (registers_changed_ptid_all_test): New.
58 (registers_changed_ptid_target_test): New.
59 (registers_changed_ptid_target_ptid_test): New.
60 (regcache_thread_ptid_changed): Remove regcache_count lambda.
61 (_initialize_regcache): Register new tests.
62
dd125343
SM
632020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
64
65 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
66 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
67 gdbarch and aspace parameter. Use current inferior's aspace.
68 Validate regcache's arch value.
69 (regcaches_test): Update.
70
3ee93972
SM
712020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
72
73 * regcache.c (regcaches_test): Call registers_changed.
74
33bf4c5c
TBA
752020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
76
77 * infrun.c (process_event_stop_test): Fix typo "breapoint".
78
c2fd7fae
AKS
792020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
80
81 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
82 to find the end of prologue for flang compiled binaries.
83 * arm-tdep.c (arm_skip_prologue): Likewise.
84 * i386-tdep.c (i386_skip_prologue): Likewise.
85 * producer.c (producer_is_llvm): New function.
86 (producer_parsing_tests): Added new tests for clang/flang.
87 * producer.h (producer_is_llvm): New declaration.
88
9327494e
SM
892020-08-18 Simon Marchi <simon.marchi@efficios.com>
90
91 * linux-nat.c (linux_nat_debug_printf): New function.
92 (linux_nat_debug_printf_1): New macro. Use throughout the file.
93
d138725a
AM
942020-08-18 Aaron Merey <amerey@redhat.com>
95
96 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
97 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
98 (CLIBS): Add DEBUGINFOD_LIBS.
99
f9b11e6b
ST
1002020-08-17 Sergei Trofimovich <siarheit@google.com>
101
102 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
103 'gdbarch_num_regs'.
104
3ae7ab99
TT
1052020-08-17 Tom Tromey <tromey@adacore.com>
106
107 * ada-varobj.c (ada_varobj_decode_var): Handle case where
108 ada_get_decoded_value returns NULL.
109
b017825f
TT
1102020-08-17 Tom Tromey <tromey@adacore.com>
111
112 * python/py-inferior.c (infpy_search_memory): Use
113 gdb_py_object_from_ulongest.
114 * python/py-infevents.c (create_inferior_call_event_object)
115 (create_memory_changed_event_object): Use
116 gdb_py_object_from_ulongest.
117 * python/py-linetable.c (ltpy_entry_get_pc): Use
118 gdb_py_object_from_ulongest.
119
7635cf79
SM
1202020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
121
122 * loc.c (class symbol_needs_eval_context): Fix indentation.
123
f54be24b
SM
1242020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
125
126 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
127 bool.
128
53d5a2a5
TV
1292020-08-17 Tom de Vries <tdevries@suse.de>
130
131 PR gdb/26393
132 * gdbtypes.c (dump_dynamic_prop): New function.
133 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
134
547ce8f0
TV
1352020-08-15 Tom de Vries <tdevries@suse.de>
136
137 PR backtrace/26390
138 * stack.c (print_frame_args): Temporarily set the selected
139 frame to FRAME while printing the frame's arguments.
140
6ea815e7
PFC
1412020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
142
143 PR breakpoints/26385
144 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
145 Always clear watchpoint with PTRACE_SET_DEBUGREG.
146
6e562fa3
PFC
1472020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
148
149 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
150 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
151 and >= to check return value instead of == -1 and != -1.
152
d369b608
SM
1532020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
154
155 * utils.h (class gdb_argv) <as_array_view>: New method.
156 * utils.c (gdb_argv_as_array_view_test): New.
157 (_initialize_utils): Register selftest.
158 * maint.c (maintenance_selftest): Use the new method.
159
b31488a3
KR
1602020-08-13 Kamil Rytarowski <n54@gmx.com>
161
162 * target.h (supports_dumpcore, dumpcore): New
163 function declarations.
164 * target.c (supports_dumpcore, dumpcore): New
165 functions.
166 * target-delegates.c: Rebuild.
167 * gcore.c (gcore_command): Use target_supports_dumpcore ()
168 and target_dumpcore ().
169
002a3166
AM
1702020-08-13 Aaron Merey <amerey@redhat.com>
171
172 * debuginfod-support.c: Replace global variables with user_data.
173
ece5bc8a
SM
1742020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
175
176 * maint.c (maintenance_selftest): Split args and pass array_view
177 to run_tests.
178
6d8a0a5e
LM
1792020-08-12 Luis Machado <luis.machado@linaro.org>
180
181 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
182 type's length.
183 Use %s and pulongest to print the length.
184
7cf663a9
PA
1852020-08-12 Pedro Alves <palves@redhat.com>
186
187 * NEWS: Move "Multi-target debugging support" item to the
188 "Changes since GDB 9" section.
189
27c7b875
PA
1902020-08-12 Pedro Alves <palves@redhat.com>
191
192 PR gdb/26336
193 * progspace.c (program_space::remove_objfile): Invalidate the
194 frame cache.
195
1796a2a1
TV
1962020-08-11 Tom de Vries <tdevries@suse.de>
197
198 * MAINTAINERS: Mark ms1 as deleted.
199
f8e3fe0d
LM
2002020-08-10 Luis Machado <luis.machado@linaro.org>
201
202 PR gdb/26310
203
204 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
205 act accordingly.
206 (aarch64_analyze_prologue_test): Add more unit tests to exercise
207 movz/str/stur/stp skipping behavior.
208
cc308722
LM
2092020-08-10 Luis Machado <luis.machado@linaro.org>
210
211 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
212 struct user_sve_header instead of struct sve_context.
213
041d9819
SM
2142020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
215
216 * read.h (dwarf2_fetch_die_loc_sect_off,
217 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
218 `void *` parameter with function_view.
219 * read.c (dwarf2_fetch_die_loc_sect_off,
220 dwarf2_fetch_die_loc_cu_off): Likewise.
221 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
222 (per_cu_dwarf_call): Adjust.
223 (get_frame_address_in_block_wrapper): Remove.
224 (indirect_synthetic_pointer): Adjust.
225 (get_ax_pc): Remove.
226 (dwarf2_compile_expr_to_ax): Adjust.
227
38f8aa06
TV
2282020-08-08 Tom de Vries <tdevries@suse.de>
229
230 PR build/26344
231 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
232 constructor.
233 * regcache.c (get_thread_arch_aspace_regcache): Same.
234
a52b3ae2
TT
2352020-08-07 Tom Tromey <tromey@adacore.com>
236
237 * ravenscar-thread.c
238 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
239 New method.
240 (ravenscar_thread_target::wait): Check
241 runtime_initialized.
242 (ravenscar_thread_target::prepare_to_store)
243 (ravenscar_thread_target::stopped_by_sw_breakpoint)
244 (ravenscar_thread_target::stopped_by_hw_breakpoint)
245 (ravenscar_thread_target::stopped_by_watchpoint)
246 (ravenscar_thread_target::stopped_data_address)
247 (ravenscar_thread_target::core_of_thread): Use
248 scoped_restore_current_thread and
249 set_base_thread_from_ravenscar_task.
250
0e29517d
TT
2512020-08-07 Tom Tromey <tromey@adacore.com>
252
253 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
254
592f9bd7
TT
2552020-08-07 Tom Tromey <tromey@adacore.com>
256
257 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
258 update_inferior_ptid before update_thread_list.
259 (temporarily_change_regcache_ptid): New class.
260 (ravenscar_thread_target::fetch_registers)
261 (ravenscar_thread_target::store_registers)
262 (ravenscar_thread_target::prepare_to_store): Use base thread when
263 forwarding operation.
264
39e2018a
TT
2652020-08-07 Tom Tromey <tromey@adacore.com>
266
267 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
268 "is_pid" case.
269
2080266b
TT
2702020-08-07 Tom Tromey <tromey@adacore.com>
271
272 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
273 New methods.
274 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
275 first.
276 (ravenscar_thread_target::add_thread): Rename from
277 ravenscar_add_thread.
278 (ravenscar_thread_target::update_thread_list): Use a lambda.
279 (ravenscar_thread_target::xfer_partial): New method.
280
78c02f21
TT
2812020-08-07 Tom Tromey <tromey@adacore.com>
282
283 * ada-lang.h (ada_task_list_iterator_ftype): Now a
284 gdb::function_view.
285 (iterate_over_live_ada_tasks): Change type of argument.
286 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
287 of argument.
288
d5d833af
TT
2892020-08-07 Tom Tromey <tromey@adacore.com>
290
291 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
292 Remove.
293 (ravenscar_thread_target::extra_thread_info): Remove.
294 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
295 defer to target beneath for non-Ravenscar threads.
296
a8ac85bb
TT
2972020-08-07 Tom Tromey <tromey@adacore.com>
298
299 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
300 get_base_thread_from_ravenscar_task>: Now methods.
301 <m_cpu_map>: New member.
302 (ravenscar_thread_target::get_thread_base_cpu): Rename from
303 ravenscar_get_thread_base_cpu. Check m_cpu_map.
304 (ravenscar_thread_target::task_is_currently_active): Update.
305 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
306 Now a method.
307 (ravenscar_thread_target::add_active_thread): Put initial thread
308 into the m_cpu_map.
309
550ab58d
TT
3102020-08-07 Tom Tromey <tromey@adacore.com>
311
312 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
313 event_ptid.
314
e9546579
TT
3152020-08-07 Tom Tromey <tromey@adacore.com>
316
317 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
318 runtime_initialized.
319
3d4470e5
TT
3202020-08-07 Tom Tromey <tromey@adacore.com>
321
322 * ravenscar-thread.c (ravenscar_thread_target): Don't call
323 add_active_thread.
324 (ravenscar_thread_target::add_active_thread): Now public.
325 (ravenscar_inferior_created): Call add_active_thread after pushing
326 the target.
327
888bdb2b
SM
3282020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
329
330 * regcache.c (ptid_regcache_map): New type.
331 (target_ptid_regcache_map): New type.
332 (regcaches): Change type to target_ptid_regcache_map.
333 (get_thread_arch_aspace_regcache): Update to regcaches' new
334 type.
335 (regcache_thread_ptid_changed): Likewise.
336 (registers_changed_ptid): Likewise.
337 (regcaches_size): Likewise.
338 (regcaches_test): Update.
339 (regcache_thread_ptid_changed): Update.
340 * regcache.h (regcache_up): New type.
341 * gdbsupport/ptid.h (hash_ptid): New struct.
342
b161a60d
SM
3432020-08-07 Simon Marchi <simon.marchi@efficios.com>
344
345 * observable.h (thread_ptid_changed): Add parameter
346 `process_stratum_target *`.
347 * infrun.c (infrun_thread_ptid_changed): Add parameter
348 `process_stratum_target *` and use it.
349 (selftests): New namespace.
350 (infrun_thread_ptid_changed): New function.
351 (_initialize_infrun): Register selftest.
352 * regcache.c (regcache_thread_ptid_changed): Add parameter
353 `process_stratum_target *` and use it.
354 (regcache_thread_ptid_changed): New function.
355 (_initialize_regcache): Register selftest.
356 * thread.c (thread_change_ptid): Pass target to
357 thread_ptid_changed observable.
358
d2854d8d
CT
3592020-08-06 Caroline Tice <cmtice@google.com>
360
fe4c3d43
SM
361 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
362 (struct dwp_sections): Update field comments. Add loclists and
363 rnglists fields.
364 (struct virtual_v2_dwo_sections): Rename struct to
365 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
366 size & offset fields for loclists and rnglists.
367 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
368 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
369 skipping dummy type units.
370 (create_dwp_hash_table): Update the large comment above the function to
371 discuss Version 5 DWP files as well, with references. Update all the
372 version checks in the function to check for version 5 as well. Add new
373 section at the end to create dwp hash table for version 5.
374 (create_dwp_v2_section): Rename function to
375 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
376 Add V5 to error message text.
377 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
378 into calls to create_dwp_v2_or_v5_section.
379 (create_dwo_unit_in_dwp_v5): New function.
380 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
381 check for version2; add else clause to handle version 5.
382 (open_and_init_dwo_file): Add code to check dwarf version & only call
383 create_debug_types_hash_table (with sections.types) if version is not 5;
384 else call create_debug_type_hash_table, with sections.info.
385 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
386 version 5.
387 (dwarf2_locate_v5_dwp_sections): New function.
388 (open_and_init_dwp_file): Add else-if clause for version 5 to call
389 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
d2854d8d 390
159ed7d9
SM
3912020-08-06 Simon Marchi <simon.marchi@efficios.com>
392
393 * regcache.h (class regcache): Remove friend
394 registers_changed_ptid.
395 <regcache_thread_ptid_changed>: Remove.
396 <regcaches>: Remove.
397 * regcache.c (regcache::regcaches): Rename to...
398 (regcaches): ... this. Make static.
399 (get_thread_arch_aspace_regcache): Update.
400 (regcache::regcache_thread_ptid_changed): Rename to...
401 (regcache_thread_ptid_changed): ... this. Update.
402 (class regcache_access): Remove.
403 (regcaches_test): Update.
404 (_initialize_regcache): Update.
405 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
406 <forward_list>.
407
174981ae
SM
4082020-08-06 Simon Marchi <simon.marchi@efficios.com>
409
410 * regcache.h (class regcache) <current_regcache>: Rename to...
411 <regcaches>: ... this. Move doc here.
412 * regcache.c (regcache::current_regcache) Rename to...
413 (regcache::regcaches): ... this. Move doc to header.
414 (get_thread_arch_aspace_regcache): Update.
415 (regcache::regcache_thread_ptid_changed): Update.
416 (registers_changed_ptid): Update.
417 (class regcache_access) <current_regcache_size>: Rename to...
418 <regcaches_size>: ... this.
419 (current_regcache_test): Rename to...
420 (regcaches_test): ... this.
421 (_initialize_regcache): Update.
422
ed908db6
VC
4232020-08-06 Victor Collod <vcollod@nvidia.com>
424
425 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
426
b5582ab7
KB
4272020-08-05 Kevin Buettner <kevinb@redhat.com>
428
429 * corelow.c (core_target::build_file_mappings): Don't output
430 null pathname in warning.
431
ea946b86
SM
4322020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
433
434 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
435 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
436 gdb.dwarf2/dw2-single-line-discriminators.exp,
437 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
438
57d02173
TT
4392020-08-05 Tom Tromey <tromey@adacore.com>
440
441 PR rust/26197:
442 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
443 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
444 Fix off-by-one and type size errors in ordinary case.
445
5555c86d
TV
4462020-08-05 Tom de Vries <tdevries@suse.de>
447
448 * gdbtypes.c (type_not_allocated, type_not_associated): Use
449 "prop->const_val () == 0" instead of "prop->const_val () != 0".
450
97916bfe
SM
4512020-08-04 Simon Marchi <simon.marchi@efficios.com>
452
453 * frame.h (frame_id_p): Return bool.
454 (frame_id_artificial_p): Return bool.
455 (frame_id_eq): Return bool.
456 (has_stack_frames): Return bool.
457 (get_selected_frame): Fix typo in comment.
458 (get_frame_pc_if_available): Return bool.
459 (get_frame_address_in_block_if_available): Return bool.
460 (get_frame_func_if_available): Return bool.
461 (read_frame_register_unsigned): Return bool.
462 (get_frame_register_bytes): Return bool.
463 (safe_frame_unwind_memory): Return bool.
464 (deprecated_frame_register_read): Return bool.
465 (frame_unwinder_is): Return bool.
466 * frame.c (struct frame_info) <prev_arch::p>: Change type to
467 bool.
468 <this_id::p>: Likewise.
469 <prev_p>: Likewise.
470 (frame_stash_add): Return bool.
471 (get_frame_id): Use bool.
472 (frame_id_build_special) Use bool.
473 (frame_id_build_unavailable_stack): Use bool.
474 (frame_id_build): Use bool.
475 (frame_id_p): Return bool, use true/false instead of 1/0.
476 (frame_id_artificial_p): Likewise.
477 (frame_id_eq): Likewise.
478 (frame_id_inner): Likewise.
479 (get_frame_func_if_available): Likewise.
480 (read_frame_register_unsigned): Likewise.
481 (deprecated_frame_register_read): Likewise.
482 (get_frame_register_bytes): Likewise.
483 (has_stack_frames): Likewise.
484 (inside_main_func): Likewise.
485 (inside_entry_func): Likewise.
486 (get_frame_pc_if_available): Likewise.
487 (get_frame_address_in_block_if_available): Likewise.
488 (frame_unwinder_is): Likewise.
489 (safe_frame_unwind_memory): Likewise.
490 (frame_unwind_arch): Likewise.
491
fedfee88
SM
4922020-08-04 Simon Marchi <simon.marchi@efficios.com>
493
494 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
495 type to cached_copy_status.
496 (fprintf_frame): Adjust.
497 (get_frame_func_if_available): Adjust.
498 (frame_cleanup_after_sniffer): Adjust.
499
6cfa9b59
MW
5002020-08-04 Mark Wielaard <mark@klomp.org>
501
502 * MAINTAINERS (Write After Approval): Update email address.
503
66d6346b
SM
5042020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
505
506 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
507 dynamic_prop::const_val.
508
8a6d5e35
SM
5092020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
510
511 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
512 dynamic_prop::kind.
513
51d6067d
SM
5142020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
515
516 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
517
b26e2ae7
JM
5182020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
519
520 * configure.tgt: Set gdb_sim for bpf-*-* targets.
521
39791af2
JM
5222020-08-04 Weimin Pan <weimin.pan@oracle.com>
523 Jose E. Marchesi <jose.marchesi@oracle.com>
524
525 * configure.tgt: Add entry for bpf-*-*.
526 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
527 (ALLDEPFILES): Add bpf-tdep.c.
528 * bpf-tdep.c: New file.
529 * MAINTAINERS: Add bpf target and maintainer.
530 * NEWS: Mention the support for the new target.
531
521894aa
TV
5322020-08-04 Tom de Vries <tdevries@suse.de>
533
534 PR symtab/23270
535 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
536 Error.
537
5d6356e9
JB
5382020-08-03 John Baldwin <jhb@FreeBSD.org>
539
540 * syscalls/freebsd.xml: Regenerate.
541
0cf82b81
JB
5422020-08-03 John Baldwin <jhb@FreeBSD.org>
543
544 * syscalls/update-freebsd.sh: Fix usage and year range.
545
8f34b746
TV
5462020-08-03 Tom de Vries <tdevries@suse.de>
547
548 PR symtab/26333
549 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
550 DW_LNE_lo_user/DW_LNE_hi_user range.
551
5e500d33
SM
5522020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
553
554 PR ada/26318
555 * ada-lang.c (ada_modulus): Return 0 if property is not of const
556 kind.
557
78319c15
TBA
5582020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
559
560 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
561
4c55e970
TBA
5622020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
563
564 * breakpoint.c (set_breakpoint_condition): Update the condition
565 expressions after checking that the input condition string parses
566 successfully and does not contain junk at the end.
567
1e620590
TBA
5682020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
569
570 * breakpoint.c (set_breakpoint_condition): Update the
571 condition string after parsing the new condition successfully.
572
c8693053
RO
5732020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
574
575 * proc-api.c (_STRUCTURED_PROC): Don't define.
576 * proc-events.c: Likewise.
577 * proc-flags.c: Likewise.
578 * proc-why.c: Likewise.
579 * procfs.c: Likewise.
580
581 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
582 * configure, config.in: Regenerate.
583
5a99adb8
TV
5842020-07-30 Tom de Vries <tdevries@suse.de>
585
586 PR build/26320
587 * ui-style.h (struct ui_file_style::color): Wrap m_value and
588 m_red/m_green/m_blue in a union.
589
8ba83e91
TV
5902020-07-29 Tom de Vries <tdevries@suse.de>
591
592 PR tdep/26280
593 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
594
f75a0693
AB
5952020-07-28 Tom Tromey <tromey@adacore.com>
596
597 PR symtab/26270:
598 * symtab.h (find_pc_partial_function_sym): Declare.
599 * cli/cli-cmds.c (disassemble_command): Use
600 find_pc_partial_function_sym. Check asm_demangle.
601 * blockframe.c (cache_pc_function_sym): New global.
602 (cache_pc_function_name): Remove.
603 (clear_pc_function_cache): Update.
604 (find_pc_partial_function_sym): New function, from
605 find_pc_partial_function.
606 (find_pc_partial_function): Rewrite using
607 find_pc_partial_function_sym.
608
16f3242c
TT
6092020-07-28 Tom Tromey <tromey@adacore.com>
610
611 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
612 help. Add usage.
613
4888741a
TT
6142020-07-28 Tom Tromey <tromey@adacore.com>
615
616 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
617 <DW_OP_GNU_variable_value>: Cast to address type.
618
4d46f402
KR
6192020-07-28 Kamil Rytarowski <n54@gmx.com>
620
621 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
622 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
623 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
624 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
625 (nbsd_get_siginfo_type): New.
626 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
627 (_initialize_nbsd_tdep): New.
628
d70f978b
L
6292020-07-28 H.J. Lu <hongjiu.lu@intel.com>
630
631 PR binutils/26301
632 * configure: Regenerated.
633
377170fa
L
6342020-07-28 H.J. Lu <hongjiu.lu@intel.com>
635
636 PR binutils/26301
637 * configure: Regenerated.
638
43d5901d
AB
6392020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
640
641 * python/py-frame.c: Remove 'user-regs.h' include.
642 (frapy_read_register): Rewrite to make use of
643 gdbpy_parse_register_id.
644 * python/py-registers.c (gdbpy_parse_register_id): New function,
645 moved here from python/py-unwind.c. Updated the return type, and
646 also accepts register descriptor objects.
647 * python/py-unwind.c: Remove 'user-regs.h' include.
648 (pyuw_parse_register_id): Moved to python/py-registers.c.
649 (unwind_infopy_add_saved_register): Update to use
650 gdbpy_parse_register_id.
651 (pending_framepy_read_register): Likewise.
652 * python/python-internal.h (gdbpy_parse_register_id): Declare.
653
14fa8fb3
AB
6542020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
655
656 * python/py-registers.c: Add 'user-regs.h' include.
657 (register_descriptor_iter_find): New function.
658 (register_descriptor_iterator_object_methods): New static global
659 methods array.
660 (register_descriptor_iterator_object_type): Add pointer to methods
661 array.
662
ddce1758
JB
6632020-07-27 John Baldwin <jhb@FreeBSD.org>
664
665 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
666 for all architectures on FreeBSD 11.3 and later.
667
a4089f52
TT
6682020-07-27 Tom Tromey <tromey@adacore.com>
669
670 * gcore.h (load_corefile): Don't declare.
671
95420d30
TV
6722020-07-27 Tom de Vries <tdevries@suse.de>
673
674 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
675 * config.in: Regenerate.
676 * configure: Regenerate.
677
05a6b8c2
EZ
6782020-07-26 Eli Zaretskii <eliz@gnu.org>
679
680 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
681 ws2tcpip.h. When checking whether socklen_t type is defined, use
682 ws2tcpip.h if it is available and sys/socket.h isn't.
683 * configure: Regenerate.
684 * config.in: Regenerate.
685
e79eb02f
AB
6862020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
687
688 PR fortran/23051
689 PR fortran/26139
690 * valops.c (value_ind): Pass address to
691 readjust_indirect_value_type.
692 * value.c (readjust_indirect_value_type): Make parameter
693 non-const, and add extra address parameter. Resolve original type
694 before using it.
695 * value.h (readjust_indirect_value_type): Update function
696 signature and comment.
697
876518dd
TV
6982020-07-25 Tom de Vries <tdevries@suse.de>
699
700 PR symtab/26243
701 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
702 entries.
703
f6720b1c
AM
7042020-07-24 Aaron Merey <amerey@redhat.com>
705
706 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
707 * configure: Rebuild.
708
513487e1
KB
7092020-07-23 Kevin Buettner <kevinb@redhat.com>
710
711 PR corefiles/26294
712 * corelow.c (_initialize_corelow): Add period to help text
713 for "maintenance print core-file-backed-mappings".
714
e7bc9db8
PA
7152020-07-23 Pedro Alves <pedro@palves.net>
716
717 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
718 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
719 meanwhile.
720 * frame.c (frame_cache_generation, get_frame_cache_generation):
721 New.
722 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
723 (get_prev_frame_if_no_cycle): On exception, don't touch
724 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
725 * frame.h (get_frame_cache_generation): Declare.
726
90fcc466
TV
7272020-07-23 Tom de Vries <tdevries@suse.de>
728
729 PR tui/26282
730 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
731 New default constructor.
732
78344df7
AB
7332020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
734
735 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
736 exclude non-statement entries.
737
b089853a
KB
7382020-07-22 Kevin Buettner <kevinb@redhat.com>
739
740 * NEWS (New commands): Mention new command
741 "maintenance print core-file-backed-mappings".
742
09c2f5d4
KB
7432020-07-22 Kevin Buettner <kevinb@redhat.com>
744
745 * corelow.c (gdbcmd.h): Include.
746 (core_target::info_proc_mappings): New method.
747 (get_current_core_target): New function.
748 (maintenance_print_core_file_backed_mappings): New function.
749 (_initialize_corelow): Add core-file-backed-mappings to
750 "maint print" commands.
751
9c5ec5c2 7522020-07-22 Kevin Buettner <kevinb@redhat.com>
fe4c3d43 753
9c5ec5c2
KB
754 * linux-tdep.c (dump_note_entry_p): New function.
755 (linux_dump_mapping_p_ftype): New typedef.
756 (linux_find_memory_regions_full): Add new parameter,
757 should_dump_mapping_p.
758 (linux_find_memory_regions): Adjust call to
759 linux_find_memory_regions_full.
760 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
761 call to linux_find_memory_regions_full.
762
db082f59
KB
7632020-07-22 Kevin Buettner <kevinb@redhat.com>
764
765 * corelow.c (solist.h, unordered_map): Include.
766 (class core_target): Add field m_core_file_mappings and
767 method build_file_mappings.
768 (core_target::core_target): Call build_file_mappings.
769 (core_target::~core_target): Free memory associated with
770 m_core_file_mappings.
771 (core_target::build_file_mappings): New method.
772 (core_target::xfer_partial): Use m_core_file_mappings
773 for memory transfers.
774 * linux-tdep.c (linux_read_core_file_mappings): New
775 function.
776 (linux_core_info_proc_mappings): Rewrite to use
777 linux_read_core_file_mappings.
778 (linux_init_abi): Register linux_read_core_file_mappings.
779
7e183d27
KB
7802020-07-22 Kevin Buettner <kevinb@redhat.com>
781
782 * arch-utils.c (default_read_core_file_mappings): New function.
783 * arch-utils.c (default_read_core_file_mappings): Declare.
784 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
785 * gdbarch.h, gdbarch.c: Regenerate.
786
2735d421
KB
7872020-07-22 Kevin Buettner <kevinb@redhat.com>
788
789 PR corefiles/25631
790 * corelow.c (core_target:xfer_partial): Revise
791 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
792 case after first checking the stratum beneath the core
793 target.
794 (has_all_memory): Return true.
795 * target.c (raw_memory_xfer_partial): Revise comment
796 regarding use of has_all_memory.
797
e56cb451
KB
7982020-07-22 Kevin Buettner <kevinb@redhat.com>
799
800 * exec.h (section_table_xfer_memory): Revise declaration,
801 replacing section name parameter with an optional callback
802 predicate.
803 * exec.c (section_table_xfer_memory): Likewise.
804 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
805 of section_table_xfer_memory.
806
32fa152e
TT
8072020-07-22 Tom Tromey <tromey@adacore.com>
808
809 * mi/mi-cmd-stack.c (list_args_or_locals): Use
810 lookup_symbol_search_name.
811
a67a1c41
AB
8122020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
813
814 * python/py-registers.c (gdbpy_register_object_data_init): Remove
815 redundant local variable.
816 (gdbpy_get_register_descriptor): Extract descriptor vector as a
817 reference, not pointer, update code accordingly.
818
a7b4ff4f
SM
8192020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
820 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
821
822 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
823 * jit.c (jit_breakpoint_re_set_internal): Use the
824 `skip_jit_symbol_lookup` field.
825
2340e834
SM
8262020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
827 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
828
829 * jit.c (jit_read_descriptor): Define the descriptor address once,
830 use twice.
831 (jit_breakpoint_deleted): Move the declaration of the loop variable
832 `iter` into the loop header.
833 (jit_breakpoint_re_set_internal): Move the declaration of the local
834 variable `objf_data` to the first point of definition.
835 (jit_event_handler): Move the declaration of local variables
836 `code_entry`, `entry_addr`, and `objf` to their first point of use.
837 Rename `objf` to `jited`.
838
c1072906
SM
8392020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
840
841 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
842 Remove.
843 * jit.c (get_jiter_objfile_data): Update.
844
c8474dc3
TBA
8452020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
846 Simon Marchi <simon.marchi@polymtl.ca>
847
848 * jit.c (struct jit_program_space_data): Remove.
849 (jit_program_space_key): Remove.
850 (jiter_objfile_data::~jiter_objfile_data): Remove program space
851 stuff.
852 (get_jit_program_space_data): Remove.
853 (jit_breakpoint_deleted): Iterate on all of the program space's
854 objfiles.
855 (jit_inferior_init): Likewise.
856 (jit_breakpoint_re_set_internal): Likewise. Also change return
857 type to void.
858 (jit_breakpoint_re_set): Pass current_program_space to
859 jit_breakpoint_re_set_internal.
860
77208eb7
SM
8612020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
862
863 * jit.h (struct jiter_objfile_data) <cached_code_address,
864 jit_breakpoint>: Move to here from ...
865 * jit.c (jit_program_space_data): ... here.
866 (jiter_objfile_data::~jiter_objfile_data): Update.
867 (jit_breakpoint_deleted): Update.
868 (jit_breakpoint_re_set_internal): Update.
869
8c1c720f
SM
8702020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
871
872 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
873 checks.
874 (jit_read_descriptor): Remove NULL check.
875 (jit_event_handler): Add an assertion.
876
0e74a041
SM
8772020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
878
879 * jit.h (struct jit_objfile_data): Split into...
880 (struct jiter_objfile_data): ... this ...
881 (struct jited_objfile_data): ... and this.
882 * objfiles.h (struct objfile) <jit_data>: Remove.
883 <jiter_data, jited_data>: New fields.
884 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
885 (jiter_objfile_data::~jiter_objfile_data): ... this.
886 (get_jit_objfile_data): Rename to ...
887 (get_jiter_objfile_data): ... this.
888 (add_objfile_entry): Update.
889 (jit_read_descriptor): Use get_jiter_objfile_data.
890 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
891 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
892 (jit_inferior_exit_hook): Use objfile's jited_data field.
893
238b5c9f
SM
8942020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
895
896 * jit.h: Forward-declare `struct minimal_symbol`.
897 (struct jit_objfile_data): Migrate to here from jit.c; also add a
898 constructor, destructor, and an objfile* field.
899 * jit.c (jit_objfile_data): Remove.
900 (struct jit_objfile_data): Migrate from here to jit.h.
901 (jit_objfile_data::~jit_objfile_data): New destructor
902 implementation with code moved from free_objfile_data.
903 (free_objfile_data): Delete.
904 (get_jit_objfile_data): Update to use the jit_data field of objfile.
905 (jit_find_objf_with_entry_addr): Ditto.
906 (jit_inferior_exit_hook): Ditto.
907 (_initialize_jit): Remove the call to
908 register_objfile_data_with_cleanup.
909 * objfiles.h (struct objfile) <jit_data>: New field.
910
fe053b9e
TBA
9112020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
912
913 * jit.h: Forward-declare `struct objfile`.
914 (jit_event_handler): Add a second parameter, the JITer objfile.
915 * jit.c (jit_read_descriptor): Change the signature to take the
916 JITer objfile as an argument instead of the jit_program_space_data.
917 (jit_inferior_init): Update the call to jit_read_descriptor.
918 (jit_event_handler): Use the new JITer objfile argument when calling
919 jit_read_descriptor.
920 * breakpoint.c (handle_jit_event): Update the call to
921 jit_event_handler to pass the JITer objfile.
922
4cec0c66
JB
9232020-07-21 John Baldwin <jhb@FreeBSD.org>
924
925 * gdbarch.c: Regenerate.
926 * gdbarch.h: Regenerate.
927 * gdbarch.sh (handle_segmentation_fault): Remove method.
928 * infrun.c (handle_segmentation_fault): Remove.
929 (print_signal_received_reason): Remove call to
930 handle_segmentation_fault.
931
0e42f66a
JB
9322020-07-21 John Baldwin <jhb@FreeBSD.org>
933
934 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
935 Rename to sparc64_linux_report_signal_info and add siggnal
936 argument.
937 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
938 instead of sparc64_linux_handle_segmentation_fault.
939
77bdfeb2
JB
9402020-07-21 John Baldwin <jhb@FreeBSD.org>
941
942 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
943 i386_linux_report_signal_info instead of
944 i386_linux_handle_segmentation_fault.
945 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
946 to i386_linux_report_signal_info and add siggnal argument.
947 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
948 of i386_linux_handle_segmentation_fault.
949 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
950 to i386_linux_report_signal_info and add siggnal argument.
951
ad97bfc5
JB
9522020-07-21 John Baldwin <jhb@FreeBSD.org>
953
954 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
955 hook if present.
956
272bb05c
JB
9572020-07-21 John Baldwin <jhb@FreeBSD.org>
958
959 * gdbarch.c: Regenerate.
960 * gdbarch.h: Regenerate.
961 * gdbarch.sh (report_signal_info): New method.
962 * infrun.c (print_signal_received_reason): Invoke gdbarch
963 report_signal_info hook if present.
964
baf8791e
AB
9652020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
966
967 * python/py-registers.c : Add 'unordered_map' include.
968 (gdbpy_new_reggroup): Renamed to...
969 (gdbpy_get_reggroup): ...this. Update to only create register
970 group descriptors when needed.
971 (gdbpy_reggroup_iter_next): Update.
972
f7306dac
AB
9732020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
974
975 * python/py-registers.c (gdbpy_register_object_data): New static
976 global.
977 (gdbpy_register_object_data_init): New function.
978 (gdbpy_new_register_descriptor): Renamed to...
979 (gdbpy_get_register_descriptor): ...this, and update to reuse
980 existing register descriptors where possible.
981 (gdbpy_register_descriptor_iter_next): Update.
982 (gdbpy_initialize_registers): Register new gdbarch data.
983
05c309a8
SM
9842020-07-21 Simon Marchi <simon.marchi@efficios.com>
985
986 * linux-nat.c (stopped_pids): Make static.
987
d1fd641e
SM
9882020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
989
990 PR ada/26235
991 * gdbtypes.c (ada_discrete_type_low_bound,
992 ada_discrete_type_high_bound): Handle undefined bounds.
993
1de14d77
KR
9942020-07-21 Kamil Rytarowski <n54@gmx.com>
995
996 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
997 declaration.
998 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
999 function.
1000
ed810cc7
JB
10012020-07-20 John Baldwin <jhb@FreeBSD.org>
1002
1003 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
1004 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
1005 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
1006 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
1007 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
1008 method.
1009
ae5369e7
LC
10102020-07-20 Ludovic Courtès <ludo@gnu.org>
1011
1012 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
1013 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
1014 which are deprecated in Guile 3.0.
1015 * configure.ac (try_guile_versions): Add "guile-3.0".
1016 * configure (try_guile_versions): Regenerate.
1017 * NEWS: Update entry.
1018
68cf161c
LC
10192020-07-20 Ludovic Courtès <ludo@gnu.org>
1020 Doug Evans <dje@google.com>
1021
1022 PR gdb/21104
1023 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
1024 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
1025 USING_GUILE_BEFORE_2_2.
1026 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
1027 Change type to 'scm_t_port_type *'.
1028 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
1029 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
1030 parameter and honor it. Update callers.
1031 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
1032 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
1033 functions.
1034 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
1035 USING_GUILE_BEFORE_2_2.
1036 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
1037 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
1038 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
1039 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
1040 and 'SCM_PORT_TYPE'.
1041 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
1042 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
1043 (gdbscm_memory_port_read, gdbscm_memory_port_write)
1044 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
1045 [!USING_GUILE_BEFORE_2_2]: New functions.
1046 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
1047 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
1048 'gdbscm_memory_port_read'.
1049 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
1050 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
1051 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
1052 function.
1053 (ioscm_init_memory_port): Remove.
1054 (ioscm_init_memory_port_stream): New function
1055 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
1056 function.
1057 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
1058 Return scm_from_uint (0).
1059 (gdbscm_set_memory_port_read_buffer_size_x)
1060 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
1061 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
1062 Return scm_from_uint (0).
1063 (gdbscm_set_memory_port_write_buffer_size_x)
1064 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
1065 * configure.ac (try_guile_versions): Add "guile-2.2".
1066 * configure: Regenerate.
1067 * NEWS: Add entry.
1068
aee91db3
TT
10692020-07-18 Tom Tromey <tom@tromey.com>
1070
1071 * linux-nat.c (linux_multi_process): Remove.
1072 (linux_nat_target::supports_multi_process): Return true.
1073
0e267416
AB
10742020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
1075
1076 * arch/riscv.c (riscv_tdesc_cache): Change map type.
1077 (riscv_lookup_target_description): Return pointer out of
1078 unique_ptr.
1079 * target-descriptions.c (allocate_target_description): Add
1080 comment.
1081 (target_desc_deleter::operator()): Likewise.
1082 * target-descriptions.h (struct target_desc_deleter): Moved to
1083 gdbsupport/tdesc.h.
1084 (target_desc_up): Likewise.
1085
f80c8ec4
TT
10862020-07-17 Tom Tromey <tromey@adacore.com>
1087
1088 * linux-nat.c (linux_nat_target::supports_non_stop)
1089 (linux_nat_target::always_non_stop_p): Use "true".
1090 (linux_nat_target::supports_disable_randomization): Use "true" and
1091 "false".
1092
d0ce17d8
CT
10932020-07-16 Caroline Tice <cmtice@google.com>
1094
1095 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
1096 (RNGLIST_HEADER_SIZE64): New constant definition.
1097 (struct dwop_section_names): Add rnglists_dwo.
1098 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
1099 (struct loclist_header): Rename to 'loclists_rnglists_header'.
1100 (struct dwo_sections): Add rnglists field.
1101 (read_attribut_reprocess): Add tag parameter.
1102 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
1103 (cu_debug_rnglists_section): New function (decl & definition).
1104 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
1105 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
1106 die whose range is being checked; get rnglist section from
1107 cu_debug_rnglists_section, to get from either objfile or dwo file as
1108 appropriate. Add cases for DW_RLE_base_addressx,
1109 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
1110 the base address to DW_RLE_offset_pairs (not to all ranges), moving
1111 test inside if-condition and updating complaint message.
1112 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
1113 dwarf2_rnglists_process.
1114 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
1115 dwarf2_ranges_process.
1116 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
1117 need_ranges_base and update comment appropriately. Also pass die tag
1118 to dwarf2_ranges_read.
1119 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
1120 need_ranges_base and update comment appropriately. Also pass die tag
1121 to dwarf2_ranges_process.
1122 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
1123 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
1124 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
1125 need_ranges_base and update comment appropriately. Also pass die tag
1126 to read_attribute_reprocess and dwarf2_ranges_read.
1127 (read_loclist_header): Rename function to read_loclists_rnglists_header,
1128 and update function comment appropriately.
1129 (read_loclist_index): Call read_loclists_rnglists_header instead of
1130 read_loclist_header.
1131 (read_rnglist_index): New function.
1132 (read_attribute_reprocess): Add tag parameter. Add code for
1133 DW_FORM_rnglistx, passing tag to read_rnglist_index.
1134 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
1135
3dcc261c
AB
11362020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
1137
1138 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
1139 being resolved.
1140
ccb9eba6
AB
11412020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
1142
1143 * arch-utils.c (show_architecture): Update formatting of messages.
1144
cf88be68
SM
11452020-07-12 Simon Marchi <simon.marchi@efficios.com>
1146
1147 * gdbtypes.h (struct type) <bounds>: Handle array and string
1148 types.
1149 * ada-lang.c (assign_aggregate): Use type::bounds on
1150 array/string type.
1151 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
1152 * c-varobj.c (c_number_of_children): Likewise.
1153 (c_describe_child): Likewise.
1154 * eval.c (evaluate_subexp_for_sizeof): Likewise.
1155 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
1156 (f_type_print_base): Likewise.
1157 * f-valprint.c (f77_array_offset_tbl): Likewise.
1158 (f77_get_upperbound): Likewise.
1159 (f77_print_array_1): Likewise.
1160 * guile/scm-type.c (gdbscm_type_range): Likewise.
1161 * m2-typeprint.c (m2_array): Likewise.
1162 (m2_is_long_set_of_type): Likewise.
1163 * m2-valprint.c (get_long_set_bounds): Likewise.
1164 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
1165 * python/py-type.c (typy_range): Likewise.
1166 * rust-lang.c (rust_internal_print_type): Likewise.
1167 * type-stack.c (type_stack::follow_types): Likewise.
1168 * valarith.c (value_subscripted_rvalue): Likewise.
1169 * valops.c (value_cast): Likewise.
1170
509971ae
SM
11712020-07-12 Simon Marchi <simon.marchi@efficios.com>
1172
1173 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
1174 callers to use the equivalent accessor methods.
1175
107406b7
SM
11762020-07-12 Simon Marchi <simon.marchi@efficios.com>
1177
1178 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
1179 (struct type) <bit_stride>: New method.
1180 (TYPE_BIT_STRIDE): Remove.
1181 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
1182
bb789949
SM
11832020-07-12 Simon Marchi <simon.marchi@efficios.com>
1184
1185 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
1186 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
1187 callers to use the equivalent accessor methods instead.
1188
39498edb
SM
11892020-07-12 Simon Marchi <simon.marchi@efficios.com>
1190
1191 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
1192 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
1193 callers to use the equivalent accessor methods instead.
1194
3b606f38
SM
11952020-07-12 Simon Marchi <simon.marchi@efficios.com>
1196
1197 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
1198 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
1199 to use dynamic_prop::kind.
1200
064d9cb9
SM
12012020-07-12 Simon Marchi <simon.marchi@efficios.com>
1202
1203 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
1204 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
1205 to get the bound property's kind and check against
1206 PROP_UNDEFINED.
1207
5537ddd0
SM
12082020-07-12 Simon Marchi <simon.marchi@efficios.com>
1209
1210 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
1211 all callers to use type::range_bounds followed by
1212 dynamic_prop::{low,high}.
1213
8c2e4e06
SM
12142020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
1215
1216 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
1217 const_val, set_const_val, baton, set_locexpr, set_loclist,
1218 set_addr_offset, variant_parts, set_variant_parts,
1219 original_type, set_original_type>: New methods.
1220 <kind>: Rename to...
1221 <m_kind>: ... this. Update all users to use the new methods
1222 instead.
1223 <data>: Rename to...
1224 <m_data>: ... this. Update all users to use the new methods
1225 instead.
1226
7c6f2712
SM
12272020-07-12 Simon Marchi <simon.marchi@efficios.com>
1228
1229 * gdbtypes.c (get_discrete_bounds): Return failure if
1230 the range type's bounds are not both defined and constant
1231 values.
1232 (get_array_bounds): Update comment. Remove undefined bound check.
1233
599088e3
SM
12342020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
1235
1236 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
1237 the type::bounds method directly.
1238
c4dfcb36
SM
12392020-07-12 Simon Marchi <simon.marchi@efficios.com>
1240
1241 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
1242 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
1243 are used to set the range type's bounds to use set_bounds.
1244
0a278aa7
PW
12452020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1246
1247 * exec.c (_initialize_exec): Update exec-file-mismatch help.
1248
cce20f10
PA
12492020-07-10 Pedro Alves <pedro@palves.net>
1250
1251 * gdbthread.h (inferior_ref): Define.
1252 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
1253 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
1254 * thread.c
1255 (scoped_restore_current_thread::restore):
1256 Adjust to gdb::ref_ptr.
1257 (scoped_restore_current_thread::~scoped_restore_current_thread):
1258 Remove manual decref handling.
1259 (scoped_restore_current_thread::scoped_restore_current_thread):
1260 Adjust to use
1261 inferior_ref::new_reference/thread_info_ref::new_reference.
1262 Incref the thread before calling get_frame_id instead of after.
1263 Let TARGET_CLOSE_ERROR propagate.
1264
6d7aa592
PA
12652020-07-10 Pedro Alves <pedro@palves.net>
1266
1267 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
1268 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
1269 NOT_AVAILABLE_ERROR.
1270 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
1271 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
1272
b3e3a4c1
SM
12732020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
1274 Pedro Alves <pedro@palves.net>
1275
1276 PR gdb/26199
1277 * infrun.c (threads_are_resumed_pending_p): Delete.
1278 (do_target_wait): Remove threads_are_executing and
1279 threads_are_resumed_pending_p checks from the inferior_matches
1280 lambda. Update comments.
1281
d6cc5d98
PA
12822020-07-10 Pedro Alves <pedro@palves.net>
1283
1284 PR gdb/26199
1285 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
1286 executing threads.
1287
7d3badc6
PA
12882020-07-10 Pedro Alves <pedro@palves.net>
1289
1290 PR gdb/26199
1291 * infrun.c (handle_no_resumed): Handle multiple targets.
1292
42bd97a6
PA
12932020-07-10 Pedro Alves <pedro@palves.net>
1294
1295 PR gdb/26199
1296 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
1297 target_is_async_p.
1298
43667cc6
PA
12992020-07-10 Pedro Alves <pedro@palves.net>
1300
1301 PR gdb/26199
1302 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
1303 threads, not all threads.
1304
96118d11
PA
13052020-07-10 Pedro Alves <pedro@palves.net>
1306
1307 PR gdb/26199
1308 * remote.c (remote_target::open_1): Pass remote target pointer as
1309 data to create_async_event_handler.
1310 (remote_async_inferior_event_handler): Mark async event handler
1311 before returning if the remote target still has either pending
1312 events or unacknowledged notifications.
1313
54904d81
JB
13142020-07-10 John Baldwin <jhb@FreeBSD.org>
1315
1316 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
1317 declaration.
1318 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
1319 function.
1320
f37e5866
JB
13212020-07-09 John Baldwin <jhb@FreeBSD.org>
1322
1323 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
1324 inferior_ptid.
1325
fc238d4a
JB
13262020-07-09 John Baldwin <jhb@FreeBSD.org>
1327
1328 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
1329 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
1330 AT_FREEBSD_PS_STRINGS.
1331
6e2469ff
HD
13322020-07-08 Hannes Domani <ssbssa@yahoo.de>
1333
1334 * auto-load.c (auto_load_objfile_script_1): Convert drive part
1335 of debugfile path on Windows.
1336
d1076c41
JB
13372020-07-08 John Baldwin <jhb@FreeBSD.org>
1338
1339 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
1340 argument to 'data'.
1341
15f3b077
TT
13422020-07-08 Tom Tromey <tromey@adacore.com>
1343
1344 * ada-lang.c (ada_exception_message_1): Use read_memory.
1345
9fc501fd
AB
13462020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1347
1348 PR python/22748
1349 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
1350 special handling for inline frames.
1351 * findvar.c (value_of_register_lazy): Skip inline frames when
1352 creating lazy register values.
1353 * frame.c (frame_id_computed_p): Delete definition.
1354 * frame.h (frame_id_computed_p): Delete declaration.
1355
64cb3757
AB
13562020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1357
1358 * NEWS: Mention additions to Python API.
1359 * python/py-arch.c (archpy_register_groups): New function.
1360 (arch_object_methods): Add 'register_groups' method.
1361 * python/py-registers.c (reggroup_iterator_object): New struct.
1362 (reggroup_object): New struct.
1363 (gdbpy_new_reggroup): New function.
1364 (gdbpy_reggroup_to_string): New function.
1365 (gdbpy_reggroup_name): New function.
1366 (gdbpy_reggroup_iter): New function.
1367 (gdbpy_reggroup_iter_next): New function.
1368 (gdbpy_new_reggroup_iterator): New function
1369 (gdbpy_initialize_registers): Register new types.
1370 (reggroup_iterator_object_type): Define new Python type.
1371 (gdbpy_reggroup_getset): New static global.
1372 (reggroup_object_type): Define new Python type.
1373 * python/python-internal.h
1374
0f767f94
AB
13752020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1376
1377 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
1378 * python/py-arch.c (archpy_registers): New function.
1379 (arch_object_methods): Add 'registers' method.
1380 * python/py-registers.c: New file.
1381 * python/python-internal.h
1382 (gdbpy_new_register_descriptor_iterator): Declare.
1383 (gdbpy_initialize_registers): Declare.
1384 * python/python.c (do_start_initialization): Call
1385 gdbpy_initialize_registers.
1386 * NEWS: Mention additions to the Python API.
1387
87dbc774
AB
13882020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1389
1390 * NEWS: Mention new Python API method.
1391 * python/py-unwind.c (pending_framepy_architecture): New function.
1392 (pending_frame_object_methods): Add architecture method.
1393
3bc98c0c
AB
13942020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1395
1396 * gdbarch.c: Regenerate.
1397 * gdbarch.h: Regenerate.
1398 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
1399 (gdbarch_data): Use internal_error for the case where
1400 deprecated_set_gdbarch_data was originally needed.
1401 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
1402 and use passed in obstack.
1403 (libunwind_frame_set_descr): Should no longer get back NULL from
1404 gdbarch_data.
1405 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
1406 type.
1407 * user-regs.c (user_regs_init): Update parameters, and use passed
1408 in obstack.
1409 (user_reg_add): Should no longer get back NULL from gdbarch_data.
1410 (_initialize_user_regs): Register as a pre-init gdbarch data type.
1411
d8cc8af6
TV
14122020-07-06 Tom de Vries <tdevries@suse.de>
1413
1414 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
1415 End-Of-Sequence in lte_is_less_than.
1416 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
1417 "gdb: Don't reorder line table entries too much when sorting".
1418
947f7597
TV
14192020-07-06 Tom de Vries <tdevries@suse.de>
1420
1421 PR tui/26205
1422 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
1423
1e7c1b22
TV
14242020-07-05 Tom de Vries <tdevries@suse.de>
1425
1426 PR build/26187
1427 * inferior.h (struct infcall_suspend_state_deleter): If available, use
1428 std::uncaught_exceptions instead of deprecated
1429 std::uncaught_exception.
1430
a36158ec
SM
14312020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
1432
1433 * macroexp.h (macro_stringify): Return
1434 gdb::unique_xmalloc_ptr<char>.
1435 * macroexp.c (macro_stringify): Likewise.
1436 * macrotab.c (fixup_definition): Update.
1437
14d960c8
SM
14382020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
1439
1440 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
1441 (lex_one_token): Update.
1442 * macroexp.c (struct macro_buffer) <release>: Return
1443 gdb::unique_xmalloc_ptr<char>.
1444 (macro_stringify): Update.
1445 (macro_expand): Update.
1446 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
1447 * macroexp.h (macro_expand_next): Likewise.
1448
211d5b1c
SM
14492020-07-02 Simon Marchi <simon.marchi@efficios.com>
1450
1451 * macroexp.h (macro_lookup_ftype): Remove.
1452 (macro_expand, macro_expand_once, macro_expand_next): Remove
1453 lookup function parameters, add scope parameter.
1454 * macroexp.c (scan, substitute_args, expand, maybe_expand,
1455 macro_expand, macro_expand_once, macro_expand_next): Likewise.
1456 * macroscope.h (standard_macro_lookup): Change parameter type
1457 to macro_scope.
1458 * macroscope.c (standard_macro_lookup): Likewise.
1459 * c-exp.y (lex_one_token): Update.
1460 * macrocmd.c (macro_expand_command): Likewise.
1461 (macro_expand_once_command): Likewise.
1462
b1a35af2
SM
14632020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
1464
1465 * inf-loop.c (inferior_event_handler): Remove client_data param.
1466 * inf-loop.h (inferior_event_handler): Likewise.
1467 * infcmd.c (step_1): Adjust.
1468 * infrun.c (proceed): Adjust.
1469 (fetch_inferior_event): Remove client_data param.
1470 (infrun_async_inferior_event_handler): Adjust.
1471 * infrun.h (fetch_inferior_event): Remove `void *` param.
1472 * linux-nat.c (handle_target_event): Adjust.
1473 * record-btrace.c (record_btrace_handle_async_inferior_event):
1474 Adjust.
1475 * record-full.c (record_full_async_inferior_event_handler):
1476 Adjust.
1477 * remote.c (remote_async_inferior_event_handler): Adjust.
1478
1cdf9e33
TT
14792020-07-01 Tom Tromey <tom@tromey.com>
1480
1481 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
1482 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
1483
32c1e210
TT
14842020-07-01 Tom Tromey <tom@tromey.com>
1485
1486 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
1487 tui_gen_win_info.
1488 (tui_win_info::make_window): Merge with
1489 tui_gen_win_info::make_window.
1490 (tui_win_info::make_visible): Move from tui_gen_win_info.
1491 * tui/tui-win.c (tui_win_info::max_width): Move from
1492 tui_gen_win_info.
1493 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
1494 type.
1495 <window_factory>: Likewise.
1496 * tui/tui-layout.c (tui_win_info::resize): Move from
1497 tui_gen_win_info.
1498 (make_standard_window): Change return type.
1499 (get_locator_window, tui_get_window_by_name): Likewise.
1500 (tui_layout_window::apply): Remove a cast.
1501 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
1502 (struct tui_win_info): Merge with tui_gen_win_info.
1503 (struct tui_gen_win_info): Remove.
1504
a30cb6da
TT
15052020-07-01 Tom Tromey <tom@tromey.com>
1506
1507 * tui/tui-stack.h (struct tui_locator_window): Derive from
1508 tui_win_info.
1509 <do_scroll_horizontal, do_scroll_vertical>: New methods.
1510 <can_box>: New method.
1511
1eb2161f
TT
15122020-07-01 Tom Tromey <tom@tromey.com>
1513
1514 * tui/tui-stack.h (struct tui_locator_window): Remove body.
1515
7134f2eb
TT
15162020-07-01 Tom Tromey <tom@tromey.com>
1517
1518 * tui/tui-regs.c (tui_data_window::display_registers_from)
1519 (tui_data_window::display_registers_from)
1520 (tui_data_window::first_data_item_displayed)
1521 (tui_data_window::delete_data_content_windows): Update.
1522 (tui_data_window::refresh_window, tui_data_window::no_refresh):
1523 Remove.
1524 (tui_data_window::check_register_values): Update.
1525 (tui_data_item_window::rerender): Add parameters. Update.
1526 (tui_data_item_window::refresh_window): Remove.
1527 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
1528 virtual.
1529 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
1530 tui_gen_win_info.
1531 <refresh_window, max_height, min_height>: Remove.
1532 <rerender>: Add parameters.
1533 <x, y, visible>: New members.
1534 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
1535 <m_item_width>: New member.
1536
22b7b041
TT
15372020-07-01 Tom Tromey <tom@tromey.com>
1538
1539 * tui/tui-regs.c (tui_data_window::show_register_group)
1540 (tui_data_window::check_register_values): Update.
1541 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
1542 from item_no.
1543
c9753adb
TT
15442020-07-01 Tom Tromey <tom@tromey.com>
1545
1546 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
1547 useless "if".
1548
9ab26b4a
TT
15492020-07-01 Tom Tromey <tom@tromey.com>
1550
1551 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
1552 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
1553
e555083f
TT
15542020-07-01 Tom Tromey <tom@tromey.com>
1555
1556 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
1557 * tui/tui-winsource.h (enum tui_line_or_address_kind)
1558 (struct tui_line_or_address): Move from tui-data.h.
1559 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
1560 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
1561 (tui_cmd_window, tui_source_window_base, tui_source_window)
1562 (tui_disasm_window): Don't declare.
1563 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
1564 to tui-winsource.h.
1565 (SINGLE_KEY): Move to tui-stack.c.
1566
7a02bab7
TT
15672020-07-01 Tom Tromey <tom@tromey.com>
1568
1569 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
1570 std::string.
1571 * tui/tui-regs.c (class tab_expansion_file): New.
1572 (tab_expansion_file::write): New method.
1573 (tui_register_format): Change return type. Use
1574 tab_expansion_file.
1575 (tui_get_register, tui_data_window::display_registers_from)
1576 (tui_data_item_window::rerender): Update.
1577 * tui/tui-io.h (tui_expand_tabs): Don't declare.
1578 * tui/tui-io.c (tui_expand_tabs): Remove.
1579
ea68593b
TT
15802020-07-01 Tom Tromey <tom@tromey.com>
1581
1582 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
1583
a8caed5d
FS
15842020-07-01 Fangrui Song <maskray@google.com>
1585
1586 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
1587
9cdf9820
AKS
15882020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
1589
1590 * dwarf2/read.c (set_die_type): Removed conditions to restrict
1591 forms for DW_AT_associated and DW_AT_allocated attributes,
1592 which is already checked in function attr_to_dynamic_prop.
1593
a1520ad8
TT
15942020-06-30 Tom Tromey <tromey@adacore.com>
1595
1596 * dwarf2/read.c (quirk_rust_enum): Correctly call
1597 alloc_rust_variant for default-less enum.
1598
5ac58899
TT
15992020-06-30 Tom Tromey <tromey@adacore.com>
1600
1601 PR build/26183:
1602 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
1603 gdb::to_string.
1604
19b187a9
SM
16052020-06-29 Simon Marchi <simon.marchi@efficios.com>
1606
1607 * gdbarch.sh (displaced_step_copy_insn): Update doc.
1608 * gdbarch.h: Re-generate.
1609
cd4c4c07
TT
16102020-06-28 Tom Tromey <tom@tromey.com>
1611
1612 * command.h (cmd_types): Remove.
1613 (cmd_type): Don't declare.
1614 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
1615 typedef.
1616 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
1617 * cli/cli-decode.c (cmd_type): Remove.
1618
05779d57
PA
16192020-06-27 Pedro Alves <palves@redhat.com>
1620
1621 * fork-child.c (prefork_hook): Adjust.
1622 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
1623 Delete.
1624 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
1625 * inferior.c (inferior::set_tty, inferior::tty): New methods.
1626 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
1627 Remove declarations.
1628 (struct inferior) <set_tty, tty>: New methods.
1629 (struct inferior) <terminal>: Rename to ...
1630 (struct inferior) <m_terminal>: ... this and make private.
1631 * main.c (captured_main_1): Adjust.
1632 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
1633 (mi_cmd_inferior_tty_show): Adjust.
1634 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
1635 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
1636
1776e3e5
NA
16372020-06-26 Nick Alcock <nick.alcock@oracle.com>
1638
1639 * configure.ac: Add --enable-libctf: handle --disable-static
1640 properly.
1641 * acinclude.m4: sinclude ../config/enable.m4.
1642 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
1643 (LIBCTF): Substitute in.
1644 (CTF_DEPS): New, likewise.
1645 (CLIBS): libctf needs symbols from libbfd: move earlier.
1646 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
1647 flags.
1648 * ctfread.c: Surround in ENABLE_LIBCTF.
1649 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
1650 * configure: Regenerate.
1651 * config.in: Likewise.
1652
58373b80
SM
16532020-06-25 Simon Marchi <simon.marchi@efficios.com>
1654
1655 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
1656
277474ee
SM
16572020-06-25 Simon Marchi <simon.marchi@efficios.com>
1658
1659 * inferior.h (struct inferior) <terminal>: Change type to
1660 gdb::unique_xmalloc_ptr<char>.
1661 * inferior.c (inferior::~inferior): Don't free inf->terminal.
1662 * infcmd.c (set_inferior_io_terminal): Don't free terminal
1663 field, adjust to unique pointer.
1664 (get_inferior_io_terminal): Adjust to unique pointer.
1665
6d74da72
AB
16662020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1667
1668 * riscv-tdep.c (riscv_print_registers_info): Loop over all
1669 registers, not just the known core set of registers.
1670
2e52d038
AB
16712020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1672
1673 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
1674 fflags, frm, and fcsr registers.
1675 (riscv_register_reggroup_p): Remove unknown CSRs from save and
1676 restore groups.
1677 (riscv_tdesc_unknown_reg): New function.
1678 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
1679 tdesc_use_registers.
1680 * riscv-tdep.h (struct gdbarch_tdep): Add
1681 unknown_csrs_first_regnum, unknown_csrs_count,
1682 duplicate_fflags_regnum, duplicate_frm_regnum, and
1683 duplicate_fcsr_regnum fields.
1684
be64fd07
AB
16852020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1686
1687 * target-descriptions.c (tdesc_use_registers): Add new parameter a
1688 callback, use the callback (when not null) to help number unknown
1689 registers.
1690 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
1691 (tdesc_use_registers): Add extra parameter to declaration.
1692
3b9fce96
AB
16932020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1694
1695 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
1696 in the file.
1697 (class riscv_pending_register_alias): Likewise.
1698 (riscv_register_feature::register_info): Change 'required_p' field
1699 to 'required', and change its type. Add 'check' member function.
1700 (riscv_register_feature::register_info::check): Define new member
1701 function.
1702 (riscv_xreg_feature): Change initialisation of 'required' field.
1703 (riscv_freg_feature): Likewise.
1704 (riscv_virtual_feature): Likewise.
1705 (riscv_csr_feature): Likewise.
1706 (riscv_check_tdesc_feature): Take extra parameter, the csr
1707 tdesc_feature, rewrite the function to use the new
1708 riscv_register_feature::register_info::check function.
1709 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
1710
865bad26
AB
17112020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1712
1713 * features/Makefile: Remove all references to the deleted files
1714 below.
1715 * features/riscv/32bit-csr.c: Deleted.
1716 * features/riscv/32bit-csr.xml: Deleted.
1717 * features/riscv/64bit-csr.c: Deleted.
1718 * features/riscv/64bit-csr.xml: Deleted.
1719 * features/riscv/rebuild-csr-xml.sh: Deleted.
1720
ed69cbc8
AB
17212020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1722
1723 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
1724 whitespace error for declaration of names member variable.
1725 (struct riscv_register_feature): Add new prefer_first_name member
1726 variable, and fix whitespace error in declaration of registers.
1727 (riscv_xreg_feature): Initialize prefer_first_name field.
1728 (riscv_freg_feature): Likewise.
1729 (riscv_virtual_feature): Likewise.
1730 (riscv_csr_feature): Likewise.
1731 (riscv_register_name): Expand on comments. Remove register name
1732 modifications for CSR and virtual registers.
1733
4445e8f5
AB
17342020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1735
1736 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
1737 errors.
1738
767a879e
AB
17392020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1740
1741 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
1742 riscv-opc.h.
1743 (class riscv_pending_register_alias): New class.
1744 (riscv_check_tdesc_feature): Take vector of pending aliases and
1745 populate it as appropriate.
1746 (riscv_setup_register_aliases): Delete.
1747 (riscv_gdbarch_init): Create vector of pending aliases and pass it
1748 to riscv_check_tdesc_feature in all cases. Use the vector to
1749 create the register aliases.
1750
bb6e55f3
RO
17512020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1752
1753 * sol2-tdep.c (sol2_static_transform_name): Remove.
1754 (sol2_init_abi): Don't register it.
1755 * gdbarch.sh (static_transform_name): Remove.
1756 * gdbarch.c, gdbarch.h: Regenerate.
1757
1758 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
1759 gdbarch_static_transform_name.
1760 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
1761 * stabsread.c (define_symbol) <'X'>: Remove.
1762 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
1763 handling.
1764 <'V'>: Likewise.
1765 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
1766 <'S'>: Remove call to gdbarch_static_transform_name.
1767
c6d36836
RO
17682020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1769
1770 * procfs.c (procfs_pre_trace): New function.
1771 (procfs_target::create_inferior): Pass it to fork_inferior.
1772
a7e6196b
RO
17732020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1774
1775 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
1776 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
1777 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
1778 sol2-tdep.o, sparc-sol2-tdep.o.
1779 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
1780 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
1781 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
1782 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
1783
d412e696
RO
17842020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1785
1786 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
1787 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
1788 Call sol2_init_abi.
1789 Remove calls to set_gdbarch_skip_solib_resolver,
1790 set_gdbarch_core_pid_to_str.
1791 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
1792 (i386_sol2_static_transform_name): Remove.
1793 (i386_sol2_init_abi): Call sol2_init_abi.
1794 Remove calls to set_gdbarch_sofun_address_maybe_missing,
1795 set_gdbarch_static_transform_name,
1796 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
1797 Use sol2_sigtramp_p.
1798 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
1799 (sol2_sigtramp_p): New function.
1800 (sol2_static_transform_name): New function.
1801 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
1802 (sol2_init_abi): New function.
1803 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
1804 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
1805 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
1806 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
1807 (sparc_sol2_static_transform_name): Remove.
1808 (sparc32_sol2_init_abi): Call sol2_init_abi.
1809 Remove calls to set_gdbarch_sofun_address_maybe_missing,
1810 set_gdbarch_static_transform_name,
1811 set_gdbarch_skip_solib_resolver,
1812 set_gdbarch_core_pid_to_str.
1813 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
1814 (sparc_sol2_static_transform_name): Remove
1815 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
1816 call sol2_sigtramp_p.
1817 (sparc64_sol2_init_abi): Call sol2_init_abi.
1818 Remove calls to set_gdbarch_sofun_address_maybe_missing,
1819 set_gdbarch_static_transform_name,
1820 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
1821
a8654e7d
PW
18222020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1823
1824 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
1825 * exec.c (validate_exec_file): If from_tty, set both
1826 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
1827 * symfile.c (symbol_file_add_with_addrs): if always_confirm
1828 and from_tty, unconditionally ask a confirmation.
1829
caa7fd04
AB
18302020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1831
1832 * target-descriptions.c (tdesc_architecture_name): Protect against
1833 NULL pointer dereference.
1834 (maint_print_xml_tdesc_cmd): New function.
1835 (_initialize_target_descriptions): Register new 'maint print
1836 xml-tdesc' command and give it the filename completer.
1837 * NEWS: Mention new 'maint print xml-tdesc' command.
1838
fbf42f4e
AB
18392020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1840
1841 * target-descriptions.c (class tdesc_compatible_info): New class.
1842 (struct target_desc): Change type of compatible vector.
1843 (tdesc_compatible_p): Update for change in type of
1844 target_desc::compatible.
1845 (tdesc_compatible_info_list): New function.
1846 (tdesc_compatible_info_arch_name): New function.
1847 (tdesc_add_compatible): Update for change in type of
1848 target_desc::compatible.
1849 (print_c_tdesc::visit_pre): Likewise.
1850
20821f4e
AB
18512020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1852
1853 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
1854 whitespace to underscore.
1855 (maint_print_c_tdesc_cmd): Use fake filename for target
1856 descriptions that came from the target.
1857 (_initialize_target_descriptions): Add filename command completion
1858 for 'maint print c-tdesc'.
1859
1fb5ee62
SM
18602020-06-23 Simon Marchi <simon.marchi@efficios.com>
1861
1862 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
1863 lines.
1864
fc3ecb3e
SM
18652020-06-23 Simon Marchi <simon.marchi@efficios.com>
1866
1867 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
1868 lines.
1869 (dwarf2_find_location_expression): Likewise.
1870 (call_site_parameter_matches): Likewise.
1871 (dwarf2_compile_expr_to_ax): Likewise.
1872 (disassemble_dwarf_expression): Likewise.
1873 (loclist_describe_location): Likewise.
1874
236ef034
PA
18752020-06-23 Pedro Alves <palves@redhat.com>
1876
1877 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
1878 progspace-and-thread.h. Include scoped-mock-context.h instead.
1879 (register_to_value_test): Use scoped_mock_context.
1880 * regcache.c: Include "scoped-mock-context.h".
1881 (cooked_read_test): Don't error out if a target is already pushed.
1882 Use scoped_mock_context. Adjust.
1883 * scoped-mock-context.h: New file.
1884
39e7ecca
AB
18852020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1886
1887 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
1888 initializer.
1889 (ada_language::is_string_type_p): New member function.
1890 * c-lang.c (c_language_data): Delete la_is_string_type_p
1891 initializer.
1892 (cplus_language_data): Likewise.
1893 (asm_language_data): Likewise.
1894 (minimal_language_data): Likewise.
1895 * d-lang.c (d_language_data): Likewise.
1896 * f-lang.c (f_is_string_type_p): Delete function, implementation
1897 moved to f_language::is_string_type_p.
1898 (f_language_data): Delete la_is_string_type_p initializer.
1899 (f_language::is_string_type_p): New member function,
1900 implementation from f_is_string_type_p.
1901 * go-lang.c (go_is_string_type_p): Delete function, implementation
1902 moved to go_language::is_string_type_p.
1903 (go_language_data): Delete la_is_string_type_p initializer.
1904 (go_language::is_string_type_p): New member function,
1905 implementation from go_is_string_type_p.
1906 * language.c (language_defn::is_string_type_p): Define new member
1907 function.
1908 (default_is_string_type_p): Make static, add comment copied from
1909 header file.
1910 (unknown_language_data): Delete la_is_string_type_p initializer.
1911 (unknown_language::is_string_type_p): New member function.
1912 (auto_language_data): Delete la_is_string_type_p initializer.
1913 (auto_language::is_string_type_p): New member function.
1914 * language.h (language_data): Delete la_is_string_type_p field.
1915 (language_defn::is_string_type_p): Declare new function.
1916 (default_is_string_type_p): Delete desclaration, move comment to
1917 definition.
1918 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
1919 moved to m2_language::is_string_type_p.
1920 (m2_language_data): Delete la_is_string_type_p initializer.
1921 (m2_language::is_string_type_p): New member function,
1922 implementation from m2_is_string_type_p.
1923 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
1924 initializer.
1925 * opencl-lang.c (opencl_language_data): Likewise.
1926 * p-lang.c (pascal_is_string_type_p): Delete function,
1927 implementation moved to pascal_language::is_string_type_p.
1928 (pascal_language_data): Delete la_is_string_type_p initializer.
1929 (pascal_language::is_string_type_p): New member function,
1930 implementation from pascal_is_string_type_p.
1931 * rust-lang.c (rust_is_string_type_p): Delete function,
1932 implementation moved to rust_language::is_string_type_p.
1933 (rust_language_data): Delete la_is_string_type_p initializer.
1934 (rust_language::is_string_type_p): New member function,
1935 implementation from rust_is_string_type_p.
1936 * valprint.c (val_print_scalar_or_string_type_p): Update call to
1937 is_string_type_p.
1938
4ffc13fb
AB
19392020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1940
1941 * ada-lang.c (ada_language_data): Delete la_print_typedef
1942 initializer.
1943 (ada_language::print_typedef): New member function.
1944 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
1945 (cplus_language_data): Likewise.
1946 (asm_language_data): Likewise.
1947 (minimal_language_data): Likewise.
1948 * d-lang.c (d_language_data): Likewise.
1949 * f-lang.c (f_language_data): Likewise.
1950 (f_language::print_typedef): New member function.
1951 * go-lang.c (go_language_data): Delete la_print_typedef
1952 initializer.
1953 * language.c (language_defn::print_typedef): Define member
1954 function.
1955 (unknown_language_data): Delete la_print_typedef initializer.
1956 (unknown_language::print_typedef): New member function.
1957 (auto_language_data): Delete la_print_typedef initializer.
1958 (auto_language::print_typedef): New member function.
1959 * language.h (language_data): Delete la_print_typedef field.
1960 (language_defn::print_typedef): Declare new member function.
1961 (LA_PRINT_TYPEDEF): Update call to print_typedef.
1962 (default_print_typedef): Delete declaration.
1963 * m2-lang.c (m2_language_data): Delete la_print_typedef
1964 initializer.
1965 (m2_language::print_typedef): New member function.
1966 * objc-lang.c (objc_language_data): Delete la_print_typedef
1967 initializer.
1968 * opencl-lang.c (opencl_language_data): Likewise.
1969 * p-lang.c (pascal_language_data): Likewise.
1970 (pascal_language::print_typedef): New member function.
1971 * rust-lang.c (rust_print_typedef): Delete function,
1972 implementation moved to rust_language::print_typedef.
1973 (rust_language): Delete la_print_typedef initializer.
1974 (rust_language::print_typedef): New member function,
1975 implementation from rust_print_typedef.
1976 * typeprint.c (default_print_typedef): Delete.
1977
d711ee67
AB
19782020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1979
1980 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
1981 (ada_language::printstr): New member function.
1982 * c-lang.c (c_language_data): Delete la_printstr initializer.
1983 (cplus_language_data): Likewise.
1984 (asm_language_data): Likewise.
1985 (minimal_language_data): Likewise.
1986 * d-lang.c (d_language_data): Likewise.
1987 * f-lang.c (f_printstr): Rename to f_language::printstr.
1988 (f_language_data): Delete la_printstr initializer.
1989 (f_language::printstr): New member function, implementation from
1990 f_printstr.
1991 * go-lang.c (go_language_data): Delete la_printstr initializer.
1992 * language.c (language_defn::printstr): Define new member
1993 function.
1994 (unk_lang_printstr): Delete.
1995 (unknown_language_data): Delete la_printstr initializer.
1996 (unknown_language::printstr): New member function.
1997 (auto_language_data): Delete la_printstr initializer.
1998 (auto_language::printstr): New member function.
1999 * language.h (language_data): Delete la_printstr field.
2000 (language_defn::printstr): Declare new member function.
2001 (LA_PRINT_STRING): Update call to printstr.
2002 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
2003 (m2_language_data): Delete la_printstr initializer.
2004 (m2_language::printstr): New member function, implementation from
2005 m2_printstr.
2006 * objc-lang.c (objc_language_data): Delete la_printstr
2007 initializer.
2008 * opencl-lang.c (opencl_language_data): Likewise.
2009 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
2010 (pascal_language_data): Delete la_printstr initializer.
2011 (pascal_language::printstr): New member function, implementation
2012 from pascal_printstr.
2013 * p-lang.h (pascal_printstr): Delete declaration.
2014 * rust-lang.c (rust_printstr): Update header comment.
2015 (rust_language_data): Delete la_printstr initializer.
2016 (rust_language::printstr): New member function.
2017
52b50f2c
AB
20182020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2019
2020 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
2021 (ada_language::printchar): New member function.
2022 * c-lang.c (c_language_data): Delete la_printchar initializer.
2023 (cplus_language_data): Likewise.
2024 (asm_language_data): Likewise.
2025 (minimal_language_data): Likewise.
2026 * d-lang.c (d_language_data): Likewise.
2027 * f-lang.c (f_printchar): Rename to f_language::printchar.
2028 (f_language_data): Delete la_printchar initializer.
2029 (f_language::printchar): New member function, implementation from
2030 f_printchar.
2031 * go-lang.c (go_language_data): Delete la_printchar initializer.
2032 * language.c (unk_lang_printchar): Delete.
2033 (language_defn::printchar): Define new member function.
2034 (unknown_language_data): Delete la_printchar initializer.
2035 (unknown_language::printchar): New member function.
2036 (auto_language_data): Delete la_printchar initializer.
2037 (auto_language::printchar): New member function.
2038 * language.h (language_data): Delete la_printchar field.
2039 (language_defn::printchar): Declare new member function.
2040 (LA_PRINT_CHAR): Update call to printchar.
2041 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
2042 (m2_language::printchar): New member function.
2043 * objc-lang.c (objc_language_data): Delete la_printchar
2044 initializer.
2045 * opencl-lang.c (opencl_language_data): Likewise.
2046 * p-lang.c (pascal_language_data): Delete la_printchar
2047 initializer.
2048 (pascal_language::printchar): New member function.
2049 * rust-lang.c (rust_printchar): Rename to
2050 rust_language::printchar.
2051 (rust_language_data): Delete la_printchar initializer.
2052 (rust_language::printchar): New member function, implementation
2053 from rust_printchar.
2054
ec8cec5b
AB
20552020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2056
2057 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
2058 (ada_language_data): Delete la_emitchar initializer.
2059 (ada_language::emitchar): New member function, implementation from
2060 emit_char.
2061 * c-lang.c (c_language_data): Delete la_emitchar initializer.
2062 (cplus_language_data): Likewise.
2063 (asm_language_data): Likewise.
2064 (minimal_language_data): Likewise.
2065 * d-lang.c (d_language_data): Likewise.
2066 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
2067 (f_language_data): Delete la_emitchar initializer.
2068 (f_language::emitchar): New member function, implementation from
2069 f_emit_char.
2070 * go-lang.c (go_language_data): Delete la_emitchar initializer.
2071 * language.c (unk_lang_emit_char): Delete.
2072 (language_defn::emitchar): New member function definition.
2073 (unknown_language_data): Delete la_emitchar initializer.
2074 (unknown_language::emitchar): New member function.
2075 (auto_language_data): Delete la_emitchar initializer.
2076 (auto_language::emitchar): New member function.
2077 * language.h (language_data): Delete la_emitchar field.
2078 (language_defn::emitchar): New member field declaration.
2079 (LA_EMIT_CHAR): Update call to emitchar.
2080 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
2081 (m2_language_data): Delete la_emitchar initializer.
2082 (m2_language::emitchar): New member function, implementation from
2083 m2_emit_char.
2084 * objc-lang.c (objc_language_data): Delete la_emitchar
2085 initializer.
2086 * opencl-lang.c (opencl_language_data): Likewise.
2087 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
2088 (pascal_language_data): Delete la_emitchar initializer.
2089 (pascal_language::emitchar): New member function, implementation
2090 from pascal_emit_char.
2091 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
2092 (rust_language_data): Delete la_emitchar initializer.
2093 (rust_language::emitchar): New member function, implementation
2094 from rust_emitchar.
2095
1bf9c363
AB
20962020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2097
2098 * ada-lang.c (resolve): Rename to ada_language::post_parser.
2099 (ada_language_data): Delete la_post_parser initializer.
2100 (ada_language::post_parser): New member function.
2101 * c-lang.c (c_language_data): Delete la_post_parser initializer.
2102 (cplus_language_data): Likewise.
2103 (asm_language_data): Likewise.
2104 (minimal_language_data): Likewise.
2105 * d-lang.c (d_language_data): Likewise.
2106 * f-lang.c (f_language_data): Likewise.
2107 * go-lang.c (go_language_data): Likewise.
2108 * language.c (unknown_language_data): Likewise.
2109 (auto_language_data): Likewise.
2110 * language.h (language_data): Delete la_post_parser field.
2111 (language_defn::post_parser): New member function.
2112 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
2113 * objc-lang.c (objc_language_data): Likewise.
2114 * opencl-lang.c (opencl_language_data): Likewise.
2115 * p-lang.c (pascal_language_data): Likewise.
2116 * parse.c (parse_exp_in_context): Update call to post_parser.
2117 (null_post_parser): Delete definition.
2118 * parser-defs.h (null_post_parser): Delete declaration.
2119 * rust-lang.c (rust_language_data): Delete la_post_parser
2120 initializer.
2121
87afa652
AB
21222020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2123
2124 * ada-lang.c (parse): Rename to ada_language::parser.
2125 (ada_language_data): Delete la_parser initializer.
2126 (ada_language::parser): New member function, implementation from
2127 parse.
2128 * c-lang.c (c_language_data): Delete la_parser initializer.
2129 (cplus_language_data): Likewise.
2130 (asm_language_data): Likewise.
2131 (minimal_language_data): Likewise.
2132 * d-lang.c (d_language_data): Likewise.
2133 (d_language::parser): New member function.
2134 * f-lang.c (f_language_data): Delete la_parser initializer.
2135 (f_language::parser): New member function.
2136 * go-lang.c (go_language_data): Delete la_parser initializer.
2137 (go_language::parser): New member function.
2138 * language.c (unk_lang_parser): Delete.
2139 (language_defn::parser): Define new member function.
2140 (unknown_language_data): Delete la_parser initializer.
2141 (unknown_language::parser): New member function.
2142 (auto_language_data): Delete la_parser initializer.
2143 (auto_language::parser): New member function.
2144 * language.h (language_data): Delete la_parser field.
2145 (language_defn::parser): Declare new member function.
2146 * m2-lang.c (m2_language_data): Delete la_parser initializer.
2147 (m2_language::parser): New member function.
2148 * objc-lang.c (objc_language_data): Delete la_parser initializer.
2149 * opencl-lang.c (opencl_language_data): Likewise.
2150 * p-lang.c (pascal_language_data): Likewise.
2151 (pascal_language::parser): New member function.
2152 * parse.c (parse_exp_in_context): Update call to parser.
2153 * rust-lang.c (rust_language_data): Delete la_parser initializer.
2154 (rust_language::parser): New member function.
2155
37825800
AB
21562020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2157
2158 * top.c (print_gdb_configuration): Print --with-python-libdir
2159 configuration value.
2160
5b860c93
PW
21612020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2162
2163 * NEWS: Mention change to the alias command.
2164
cf00cd6f
PW
21652020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2166
2167 * cli/cli-cmds.c (lookup_cmd_for_default_args)
2168 (alias_command_completer)
2169 (make_alias_options_def_group): New functions.
2170 (alias_opts, alias_option_defs): New struct and array.
2171 (alias_usage_error): Update usage.
2172 (alias_command): Handles optional DEFAULT-ARGS... arguments.
2173 Use option framework.
2174 (_initialize_cli_cmds): Update alias command help.
2175 Update aliases command help.
2176 (show_user):
2177 Add NULL for new default_args lookup_cmd argument.
2178 (valid_command_p): Rename to validate_aliased_command.
2179 Add NULL for new default_args lookup_cmd argument. Verify that the
2180 aliased_command has no default args.
2181 * cli/cli-decode.c (help_cmd): Show aliases definitions.
2182 (lookup_cmd_1, lookup_cmd): New argument default_args.
2183 (add_alias_cmd):
2184 Add NULL for new default_args lookup_cmd argument.
2185 (print_help_for_command): Show default args under the layout
2186 alias some_alias = some_aliased_cmd some_alias_default_arg.
2187 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
2188 xfree default_args in destructor.
2189 * cli/cli-script.c (process_next_line, do_define_command):
2190 Add NULL for new default_args lookup_cmd argument.
2191 * command.h: Declare new default_args argument in lookup_cmd
2192 and lookup_cmd_1.
2193 * completer.c (complete_line_internal_1):
2194 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
2195 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
2196 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
2197 Likewise.
2198 * infcmd.c (_initialize_infcmd): Likewise.
2199 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
2200 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
2201 * python/py-param.c (add_setshow_generic): Likewise.
2202 * remote.c (_initialize_remote): Likewise.
2203 * top.c (execute_command): Prepend default_args if command has some.
2204 (set_verbose):
2205 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
2206 * tracepoint.c (validate_actionline, encode_actions_1):
2207 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
2208
bd920864
TBA
22092020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2210
2211 * jit.c (jit_read_descriptor): Use bool as the return type.
2212 (jit_breakpoint_re_set_internal): Use bool as the return type.
2213 Invert the return value logic; return true if the jit breakpoint
2214 has been successfully initialized.
2215 (jit_inferior_init): Update the call to
2216 jit_breakpoint_re_set_internal.
2217
f8098322
PA
22182020-06-22 Pedro Alves <palves@redhat.com>
2219
2220 PR gdb/25939
2221 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
2222 Use the current inferior instead. Don't return
2223 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
2224 wait again.
2225 * sol-thread.c (sol_thread_target::wait): Don't reference
2226 inferior_ptid.
2227 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
2228 (sol_update_thread_list_callback): Use the current inferior's pid
2229 instead of inferior_ptid.
2230
196535a6
RO
22312020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2232
2233 * procfs.c: Cleanup many comments.
2234
2235 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
2236 (AFTER_WATCHFLAG): Replace by value.
2237
2238 (MAIN_PROC_NAME_FORMAT): Inline ...
2239 (create_procinfo): ... here.
2240
2241 (procfs_debug_inferior): Remove SYS_exec handling.
2242 (syscall_is_exec): Likewise.
2243 (procfs_set_exec_trap): Likewise.
2244
2245 (syscall_is_lwp_exit): Inline in callers.
2246 (syscall_is_exit): Likewise.
2247 (syscall_is_exec): Likewise.
2248 (syscall_is_lwp_create): Likewise.
2249
2250 (invalidate_cache): Remove #if 0 code.
2251
2252 (make_signal_thread_runnable): Remove.
2253 (procfs_target::resume): Remove #if 0 code.
2254
cf6f3e86
RO
22552020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2256
2257 PR gdb/25939
2258 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
2259 call ...
2260 (procfs_target::create_inferior): ... here.
2261
48e9cc84
PW
22622020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2263
2264 * exec.c (validate_exec_file): Ensure the build-id is up to
2265 date by calling reopen_exec_file (that checks file timestamp
2266 to decide to re-read the file).
2267
3922b302
PA
22682020-06-18 Pedro Alves <palves@redhat.com>
2269
2270 PR gdb/25412
2271 * gdbthread.h (delete_thread, delete_thread_silent)
2272 (find_thread_ptid): Update comments.
2273 * thread.c (current_thread_): New global.
2274 (is_current_thread): Move higher, and reimplement.
2275 (inferior_thread): Reimplement.
2276 (set_thread_exited): Use bool. Add assertions.
2277 (add_thread_silent): Simplify thread-reuse handling by always
2278 calling delete_thread.
2279 (delete_thread): Remove intro comment.
2280 (find_thread_ptid): Skip exited threads.
2281 (switch_to_thread_no_regs): Write to current_thread_.
2282 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
2283 INFERIOR_PTID. Clear current_thread_.
2284
6dbdab44
PA
22852020-06-18 Pedro Alves <palves@redhat.com>
2286
2287 * aix-thread.c (pd_update): Use switch_to_thread.
2288
2da4b788
PA
22892020-06-18 Pedro Alves <palves@redhat.com>
2290
2291 * ravenscar-thread.c (ravenscar_thread_target): Update.
2292 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
2293 (ravenscar_thread_target::add_active_thread): ... this. Don't
2294 set m_base_ptid here. Update to avoid referencing inferior_ptid.
2295 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
2296
50838d1b
PA
22972020-06-18 Pedro Alves <palves@redhat.com>
2298
2299 * nat/windows-nat.c (current_windows_thread): Remove.
2300 * nat/windows-nat.h (current_windows_thread): Remove.
2301 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
2302 Adjust.
2303 (display_selectors): Adjust to fetch the current
2304 windows_thread_info based on inferior_ptid.
2305 (fake_create_process): No longer write to current_windows_thread.
2306 (windows_nat_target::get_windows_debug_event):
2307 Don't set inferior_ptid or current_windows_thread.
2308 (windows_nat_target::wait): Adjust to not rely on
2309 current_windows_thread.
2310 (do_initial_windows_stuff): Now a method of windows_nat_target.
2311 Switch to the last_ptid thread.
2312 (windows_nat_target::attach): Adjust.
2313 (windows_nat_target::detach): Use switch_to_no_thread instead of
2314 writing to inferior_ptid directly.
2315 (windows_nat_target::create_inferior): Adjust.
2316
31ce04e9
PA
23172020-06-18 Pedro Alves <palves@redhat.com>
2318
2319 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
2320
1ee1a363
PA
23212020-06-18 Pedro Alves <palves@redhat.com>
2322
2323 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
2324 after creating it, instead of writing to inferior_ptid. Don't
2325 write to inferior_ptid.
2326
6d350754
PA
23272020-06-18 Pedro Alves <palves@redhat.com>
2328
2329 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
2330
5d971d48
PA
23312020-06-18 Pedro Alves <palves@redhat.com>
2332
2333 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
2334 it, instead of writing to inferior_ptid.
2335
86e57d1b
PA
23362020-06-18 Pedro Alves <palves@redhat.com>
2337
2338 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
2339 to inferior_ptid.
2340
f2e1c129
PA
23412020-06-18 Pedro Alves <palves@redhat.com>
2342
2343 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
2344 instead of writing to inferior_ptid directly.
2345
60db1b85
PA
23462020-06-18 Pedro Alves <palves@redhat.com>
2347
2348 * corelow.c (core_target::close): Use switch_to_no_thread instead
2349 of writing to inferior_ptid directly.
2350 (add_to_thread_list, core_target_open): Use switch_to_thread
2351 instead of writing to inferior_ptid directly.
2352
fe7d6a8d
PA
23532020-06-18 Pedro Alves <palves@redhat.com>
2354
2355 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
2356 inferior_ptid.
2357 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
2358 inferior_ptid.
2359 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
2360 inferior_ptid directly.
2361 (darwin_nat_target::init_thread_list): Switch to thread, instead
2362 of writing to inferior_ptid.
2363 (darwin_nat_target::attach): Don't write to inferior_ptid.
2364 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
2365
975f8708
PA
23662020-06-18 Pedro Alves <palves@redhat.com>
2367
2368 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
2369 thread.
2370 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
2371 Instead use switch_to_thread.
2372 (gnu_nat_target::detach): Use switch_to_no_thread
2373 instead of writing to inferior_ptid directly. Used passed-in
2374 inferior instead of looking up the inferior by pid.
2375
1a204730
PA
23762020-06-18 Pedro Alves <palves@redhat.com>
2377
2378 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
2379 inferior_ptid.
2380
ebe84f23
PA
23812020-06-18 Pedro Alves <palves@redhat.com>
2382
2383 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
2384 inferior_ptid.
2385 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
2386 thread.
2387 (nto_procfs_target::detach): Avoid referencing
2388 inferior_ptid. Use switch_to_no_thread instead of writing to
2389 inferior_ptid directly.
2390 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
2391 instead of writing to inferior_ptid directly.
2392 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
2393 to thread.
2394
191f02e5
PA
23952020-06-18 Pedro Alves <palves@redhat.com>
2396
2397 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
2398 after creating it, instead of writing to inferior_ptid.
2399 (gdbsim_target_open): Use switch_to_no_thread instead of writing
2400 to inferior_ptid directly.
2401 (gdbsim_target::wait): Don't write to inferior_ptid.
2402
0ac55310
PA
24032020-06-18 Pedro Alves <palves@redhat.com>
2404
2405 * remote.c (remote_target::remote_notice_new_inferior): Use
2406 switch_to_thread instead of writing to inferior_ptid directly.
2407 (remote_target::add_current_inferior_and_thread): Use
2408 switch_to_no_thread instead of writing to inferior_ptid directly.
2409 (extended_remote_target::attach): Use switch_to_inferior_no_thread
2410 and switch_to_thread instead of using set_current_inferior or
2411 writing to inferior_ptid directly.
2412
5233f39b
PA
24132020-06-18 Pedro Alves <palves@redhat.com>
2414
2415 * tracectf.c (ctf_target_open): Switch to added thread instead of
2416 writing to inferior_ptid directly.
2417 (ctf_target::close): Use switch_to_no_thread instead of writing to
2418 inferior_ptid directly.
2419
087e161b
PA
24202020-06-18 Pedro Alves <palves@redhat.com>
2421
2422 * tracefile-tfile.c (tfile_target_open): Don't write to
2423 inferior_ptid directly, instead switch to added thread.
2424 (tfile_target::close): Use switch_to_no_thread instead of writing
2425 to inferior_ptid directly.
2426
7fb43e53
PA
24272020-06-18 Pedro Alves <palves@redhat.com>
2428
2429 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
2430 (procfs_target::detach): Use switch_to_no_thread
2431 instead of writing to inferior_ptid directly.
2432 (do_attach): Change return type to void. Switch to the added
2433 thread.
2434 (procfs_target::create_inferior): Switch to the added thread.
2435 (procfs_do_thread_registers): Don't write to inferior_ptid.
2436
18493a00
PA
24372020-06-18 Pedro Alves <palves@redhat.com>
2438
2439 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
2440 of writing to inferior_ptid.
2441 (scoped_restore_exited_inferior): Delete.
2442 (handle_vfork_child_exec_or_exit): Simplify using
2443 scoped_restore_current_pspace_and_thread. Use switch_to_thread
2444 instead of writing to inferior_ptid.
2445 (THREAD_STOPPED_BY): Delete.
2446 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
2447 (thread_stopped_by_hw_breakpoint): Delete.
2448 (save_waitstatus): Use
2449 scoped_restore_current_thread+switch_to_thread, and call
2450 target_stopped_by_watchpoint instead of
2451 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
2452 instead of thread_stopped_by_sw_breakpoint, and
2453 target_stopped_by_hw_breakpoint instead of
2454 thread_stopped_by_hw_breakpoint.
2455 (handle_inferior_event)
2456 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
2457 inferior_ptid directly, nor
2458 set_current_inferior/set_current_program_space. Use
2459 switch_to_thread / switch_to_inferior_no_thread instead.
2460
a0776b13
PA
24612020-06-18 Pedro Alves <palves@redhat.com>
2462
2463 * target.c (generic_mourn_inferior): Use switch_to_no_thread
2464 instead of writing to inferior_ptid.
2465
6155c136
PA
24662020-06-18 Pedro Alves <palves@redhat.com>
2467
2468 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
2469 added thread.
2470 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
2471 to the added thread.
2472 (inf_ptrace_target::detach_success): Use switch_to_no_thread
2473 instead of writing to inferior_ptid.
2474
c5316fc6
PA
24752020-06-18 Pedro Alves <palves@redhat.com>
2476
2477 * gdbarch-selftests.c: Include "progspace-and-thread.h".
2478 (register_to_value_test): Mock a program_space too. Heap-allocate
2479 the address space. Don't write to inferior_ptid. Use
2480 switch_to_thread instead.
2481
8df01799
PA
24822020-06-18 Pedro Alves <palves@redhat.com>
2483
2484 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
2485 Delete.
2486 (find_signalled_thread()): New, factored out from
2487 linux_make_corefile_notes and adjusted to handle exited threads.
2488 (linux_make_corefile_notes): Adjust to use the new
2489 find_signalled_thread.
2490
41792d68
PA
24912020-06-18 Pedro Alves <palves@redhat.com>
2492
2493 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
2494 of saving/restoring inferior_ptid.
2495
612f258a
TT
24962020-06-17 Tom Tromey <tom@tromey.com>
2497
2498 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
2499 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
2500 declare.
2501 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
2502
efb763a5
SM
25032020-06-15 Simon Marchi <simon.marchi@efficios.com>
2504
2505 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
2506 of partial symtabs.
2507
2951f6c0
SM
25082020-06-17 Simon Marchi <simon.marchi@efficios.com>
2509
2510 * regformats/reg-arm.dat: Remove.
2511 * regformats/reg-bfin.dat: Remove.
2512 * regformats/reg-cris.dat: Remove.
2513 * regformats/reg-crisv32.dat: Remove.
2514 * regformats/reg-m32r.dat: Remove.
2515 * regformats/reg-tilegx.dat: Remove.
2516 * regformats/reg-tilegx32.dat: Remove.
2517
7d458ea5
SM
25182020-06-17 Simon Marchi <simon.marchi@efficios.com>
2519
2520 * features/Makefile (WHICH): Remove arm files.
2521 * regformats/arm/arm-with-iwmmxt.dat: Remove.
2522 * regformats/arm/arm-with-neon.dat: Remove.
2523 * regformats/arm/arm-with-vfpv2.dat: Remove.
2524 * regformats/arm/arm-with-vfpv3.dat: Remove.
2525
3af96c0d
SM
25262020-06-17 Simon Marchi <simon.marchi@efficios.com>
2527
2528 * features/Makefile (XMLTOC): Remove rx.xml.
2529
b25e22fd
PA
25302020-06-17 Pedro Alves <palves@redhat.com>
2531
2532 * gdbthread.h (thread_control_state) <trap_expected> Update
2533 comments.
2534
a78a19b1
AB
25352020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2536
2537 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
2538 ada_language::lookup_symbol_nonlocal.
2539 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
2540 (ada_language::lookup_symbol_nonlocal): New member function,
2541 implementation from ada_lookup_symbol_nonlocal.
2542 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
2543 initializer.
2544 (cplus_language_data): Delete la_lookup_symbol_nonlocal
2545 initializer.
2546 (cplus_language::lookup_symbol_nonlocal): New member function.
2547 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
2548 (minimal_language_data) Likewise.
2549 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
2550 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
2551 initializer.
2552 (d_language::lookup_symbol_nonlocal): New member function.
2553 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
2554 initializer.
2555 (f_language::lookup_symbol_nonlocal): New member function.
2556 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
2557 initializer.
2558 * language.c (unknown_language_data): Likewise.
2559 (auto_language_data): Likewise.
2560 * language.h (language_data): Delete la_lookup_symbol_nonlocal
2561 field.
2562 (language_defn::lookup_symbol_nonlocal): New member function.
2563 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
2564 initializer.
2565 * objc-lang.c (objc_language_data): Likewise.
2566 * opencl-lang.c (opencl_language_data): Likewise.
2567 * p-lang.c (pascal_language_data): Likewise.
2568 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
2569 rust_language::lookup_symbol_nonlocal.
2570 (rust_language_data): Delete la_lookup_symbol_nonlocal
2571 initializer.
2572 (rust_language::lookup_symbol_nonlocal): New member function,
2573 implementation from rust_lookup_symbol_nonlocal.
2574 * symtab.c (lookup_symbol_aux): Update call to
2575 lookup_symbol_nonlocal.
2576 (basic_lookup_symbol_nonlocal): Rename to...
2577 (language_defn::lookup_symbol_nonlocal): ...this, and update
2578 header comment. Remove language_defn parameter, and replace with
2579 uses of `this'.
2580 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
2581
ebe2334e
AB
25822020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2583
2584 * ada-lang.c (ada_language_data): Delete la_value_print_inner
2585 initializer.
2586 (ada_language::value_print_inner): New member function.
2587 * c-lang.c (c_language_data): Delete la_value_print_inner
2588 initializer.
2589 (cplus_language_data): Likewise.
2590 (asm_language_data): Likewise.
2591 (minimal_language_data): Likewise.
2592 * d-lang.c (d_language_data): Likewise.
2593 (d_language::value_print_inner): New member function.
2594 * f-lang.c (f_language_data): Delete la_value_print_inner
2595 initializer.
2596 (f_language::value_print_inner): New member function.
2597 * f-lang.h (f_value_print_innner): Rename to...
2598 (f_value_print_inner): ...this (note spelling of 'inner').
2599 * f-valprint.c (f_value_print_innner): Rename to...
2600 (f_value_print_inner): ...this (note spelling of 'inner').
2601 * go-lang.c (go_language_data): Delete la_value_print_inner
2602 initializer.
2603 (go_language::value_print_inner): New member function.
2604 * language.c (language_defn::value_print_inner): Define new member
2605 function.
2606 (unk_lang_value_print_inner): Delete.
2607 (unknown_language_data): Delete la_value_print_inner initializer.
2608 (unknown_language::value_print_inner): New member function.
2609 (auto_language_data): Delete la_value_print_inner initializer.
2610 (auto_language::value_print_inner): New member function.
2611 * language.h (language_data): Delete la_value_print_inner field.
2612 (language_defn::value_print_inner): Delcare new member function.
2613 * m2-lang.c (m2_language_data): Delete la_value_print_inner
2614 initializer.
2615 (m2_language::value_print_inner): New member function.
2616 * objc-lang.c (objc_language_data): Delete la_value_print_inner
2617 initializer.
2618 * opencl-lang.c (opencl_language_data): Likewise.
2619 * p-lang.c (pascal_language_data): Likewise.
2620 (pascal_language::value_print_inner): New member function.
2621 * rust-lang.c (rust_language_data): Delete la_value_print_inner
2622 initializer.
2623 (rust_language::value_print_inner): New member function.
2624 * valprint.c (do_val_print): Update call to value_print_inner.
2625
a1d1fa3e
AB
26262020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2627
2628 * ada-lang.c (ada_language_data): Delete la_value_print
2629 initializer.
2630 (ada_language::value_print): New member function.
2631 * c-lang.c (c_language_data): Delete la_value_print initializer.
2632 (cplus_language_data): Likewise.
2633 (asm_language_data): Likewise.
2634 (minimal_language_data): Likewise.
2635 * d-lang.c (d_language_data): Likewise.
2636 * f-lang.c (f_language_data): Likewise.
2637 * go-lang.c (go_language_data): Likewise.
2638 * language.c (unk_lang_value_print): Delete.
2639 (language_defn::value_print): Define new member function.
2640 (unknown_language_data): Delete la_value_print initializer.
2641 (unknown_language::value_print): New member function.
2642 (auto_language_data): Delete la_value_print initializer.
2643 (auto_language::value_print): New member function.
2644 * language.h (language_data): Delete la_value_print field.
2645 (language_defn::value_print): Declare new member function.
2646 (LA_VALUE_PRINT): Update call to value_print.
2647 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
2648 * objc-lang.c (objc_language_data): Likewise.
2649 * opencl-lang.c (opencl_language_data): Likewise.
2650 * p-lang.c (pascal_language_data): Likewise.
2651 (pascal_language::value_print): New member function.
2652 * rust-lang.c (rust_language_data): Delete la_value_print
2653 initializer.
2654
f16a9f57
AB
26552020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2656
2657 * ada-lang.c (ada_watch_location_expression): Rename to
2658 ada_language::watch_location_expression.
2659 (ada_language_data): Delete la_watch_location_expression
2660 initializer.
2661 (ada_language::watch_location_expression): New member function,
2662 implementation from ada_watch_location_expression.
2663 * breakpoint.c (watch_command_1): Update call to
2664 watch_location_expression.
2665 * c-lang.c (c_watch_location_expression): Rename to
2666 language_defn::watch_location_expression.
2667 (c_language_data): Delete la_watch_location_expression
2668 initializer.
2669 (cplus_language_data): Likewise.
2670 (asm_language_data): Likewise.
2671 (minimal_language_data): Likewise.
2672 * c-lang.h (c_watch_location_expression): Delete declaration.
2673 * d-lang.c (d_language_data): Delete la_watch_location_expression
2674 initializer.
2675 * f-lang.c (f_language_data): Likewise.
2676 * go-lang.c (go_language_data): Likewise.
2677 * language.c (language_defn::watch_location_expression): Member
2678 function implementation from c_watch_location_expression.
2679 (unknown_language_data): Delete la_watch_location_expression
2680 initializer.
2681 (auto_language_data): Likewise.
2682 * language.h (language_data): Delete la_watch_location_expression
2683 field.
2684 (language_defn::watch_location_expression): Declare new member
2685 function.
2686 * m2-lang.c (m2_language_data): Delete
2687 la_watch_location_expression initializer.
2688 * objc-lang.c (objc_language_data): Likewise.
2689 * opencl-lang.c (opencl_language_data): Likewise.
2690 * p-lang.c (pascal_language_data): Likewise.
2691 * rust-lang.c (rust_watch_location_expression): Rename to
2692 rust_language::watch_location_expression.
2693 (rust_language_data): Delete la_watch_location_expression
2694 initializer.
2695 (rust_language::watch_location_expression): New member function,
2696 implementation from rust_watch_location_expression.
2697
7e56227d
AB
26982020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2699
2700 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
2701 ada_language::collect_symbol_completion_matches.
2702 (ada_language_data): Delete la_collect_symbol_completion_matches
2703 initializer.
2704 (ada_language::collect_symbol_completion_matches): New member
2705 function, implementation from
2706 ada_collect_symbol_completion_matches.
2707 * c-lang.c (c_language_data): Delete
2708 la_collect_symbol_completion_matches initializer.
2709 (cplus_language_data): Likewise.
2710 (asm_language_data): Likewise.
2711 (minimal_language_data): Likewise.
2712 * d-lang.c (d_language_data): Likewise.
2713 * f-lang.c (f_collect_symbol_completion_matches): Rename to
2714 f_language::collect_symbol_completion_matches.
2715 (f_language_data): Delete la_collect_symbol_completion_matches
2716 initializer.
2717 (f_language::collect_symbol_completion_matches) New member
2718 function, implementation from f_collect_symbol_completion_matches.
2719 * go-lang.c (go_language_data): Delete
2720 la_collect_symbol_completion_matches initializer.
2721 * language.c (unknown_language_data): Likewise.
2722 (auto_language_data): Likewise.
2723 * language.h (language_data): Delete
2724 la_collect_symbol_completion_matches field.
2725 (language_defn::collect_symbol_completion_matches): New member
2726 function.
2727 * m2-lang.c (m2_language_data): Delete
2728 la_collect_symbol_completion_matches initializer.
2729 * objc-lang.c (objc_language_data): Likewise.
2730 * opencl-lang.c (opencl_language_data): Likewise.
2731 * p-lang.c (pascal_language_data): Likewise.
2732 * rust-lang.c (rust_language_data): Likewise.
2733 * symtab.c (default_collect_symbol_completion_matches): Delete.
2734 (collect_symbol_completion_matches): Update call to
2735 collect_symbol_completion_matches.
2736 (collect_symbol_completion_matches_type): Likewise.
2737 * symtab.h (default_collect_symbol_completion_matches): Delete
2738 declaration.
2739
53fc67f8
AB
27402020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2741
2742 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
2743 (ada_language_data): Delete la_word_break_characters initializer.
2744 (ada_language::word_break_characters): New member function.
2745 * c-lang.c (c_language_data): Delete la_word_break_characters
2746 initializer.
2747 (cplus_language_data): Likewise.
2748 (asm_language_data): Likewise.
2749 (minimal_language_data): Likewise.
2750 * completer.c: Update global comment.
2751 (advance_to_expression_complete_word_point): Update call to
2752 word_break_characters.
2753 (complete_files_symbols): Likewise.
2754 (complete_line_internal_1): Likewise.
2755 (default_completer_handle_brkchars): Likewise.
2756 (skip_quoted_chars): Likewise.
2757 * d-lang.c (d_language_data): Delete la_word_break_characters
2758 initializer.
2759 * f-lang.c (f_word_break_characters): Delete.
2760 (f_language_data): Delete la_word_break_characters initializer.
2761 (f_language::word_break_characters): New member function.
2762 * go-lang.c (go_language_data): Delete la_word_break_characters
2763 initializer.
2764 * language.c (unknown_language_data): Likewise.
2765 (auto_language_data): Likewise.
2766 * language.h (default_word_break_characters): Move declaration to
2767 earlier in the file.
2768 (language_data): Delete la_word_break_characters field.
2769 (language_defn::word_break_characters): New member function.
2770 * m2-lang.c (m2_language_data): Delete la_word_break_characters
2771 initializer.
2772 * objc-lang.c (objc_language_data): Likewise.
2773 * opencl-lang.c (opencl_language_data): Likewise.
2774 * p-lang.c (pascal_language_data): Likewise.
2775 * rust-lang.c (rust_language_data): Likewise.
2776
c9debfb9
AB
27772020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2778
2779 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
2780 (ada_language_data): Delete la_get_symbol_name_matcher
2781 initializer.
2782 (language_defn::get_symbol_name_matcher_inner): New member
2783 function.
2784 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
2785 initializer.
2786 (cplus_language_data): Likewise.
2787 (cplus_language::get_symbol_name_matcher_inner): New member
2788 function.
2789 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
2790 (minimal_language_data): Likewise.
2791 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
2792 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
2793 initializer.
2794 * dictionary.c (iter_match_first_hashed): Update call to
2795 get_symbol_name_matcher.
2796 (iter_match_next_hashed): Likewise.
2797 (iter_match_next_linear): Likewise.
2798 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
2799 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
2800 initializer.
2801 (f_language::get_symbol_name_matcher_inner): New member function.
2802 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
2803 initializer.
2804 * language.c (default_symbol_name_matcher): Update header comment,
2805 make static.
2806 (language_defn::get_symbol_name_matcher): New definition.
2807 (language_defn::get_symbol_name_matcher_inner): Likewise.
2808 (get_symbol_name_matcher): Delete.
2809 (unknown_language_data): Delete la_get_symbol_name_matcher
2810 initializer.
2811 (auto_language_data): Likewise.
2812 * language.h (language_data): Delete la_get_symbol_name_matcher
2813 field.
2814 (language_defn::get_symbol_name_matcher): New member function.
2815 (language_defn::get_symbol_name_matcher_inner): Likewise.
2816 (default_symbol_name_matcher): Delete declaration.
2817 * linespec.c (find_methods): Update call to
2818 get_symbol_name_matcher.
2819 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
2820 initializer.
2821 * minsyms.c (lookup_minimal_symbol): Update call to
2822 get_symbol_name_matcher.
2823 (iterate_over_minimal_symbols): Likewise.
2824 * objc-lang.c (objc_language_data): Delete
2825 la_get_symbol_name_matcher initializer.
2826 * opencl-lang.c (opencl_language_data): Likewise.
2827 * p-lang.c (pascal_language_data): Likewise.
2828 * psymtab.c (psymbol_name_matches): Update call to
2829 get_symbol_name_matcher.
2830 * rust-lang.c (rust_language_data): Delete
2831 la_get_symbol_name_matcher initializer.
2832 * symtab.c (symbol_matches_search_name): Update call to
2833 get_symbol_name_matcher.
2834 (compare_symbol_name): Likewise.
2835
9a49ad8c
AB
28362020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2837
2838 * ada-lang.c (ada_language_data): Delete la_compute_program
2839 initializer.
2840 * c-lang.c (c_language_data): Likewise.
2841 (c_language::compute_program): New member function.
2842 (cplus_language_data): Delete la_compute_program initializer.
2843 (cplus_language::compute_program): New member function.
2844 (asm_language_data): Delete la_compute_program initializer.
2845 (minimal_language_data): Likewise.
2846 * c-lang.h (c_compute_program): Update comment.
2847 (cplus_compute_program): Likewise.
2848 * compile/compile-c-support.c (c_compute_program): Likewise.
2849 (cplus_compute_program): Likewise.
2850 * compile/compile.c (compile_to_object): Update call to
2851 la_compute_program.
2852 * d-lang.c (d_language_data): Delete la_compute_program
2853 initializer.
2854 * f-lang.c (f_language_data): Likewise.
2855 * go-lang.c (go_language_data): Likewise.
2856 * language.c (unknown_language_data): Likewise.
2857 (auto_language_data): Likewise.
2858 * language.h (language_data): Delete la_compute_program field.
2859 (language_defn::compute_program): New member function.
2860 * m2-lang.c (m2_language_data): Delete la_compute_program
2861 initializer.
2862 * objc-lang.c (objc_language_data): Likewise.
2863 * opencl-lang.c (opencl_language_data): Likewise.
2864 * p-lang.c (pascal_language_data): Likewise.
2865 * rust-lang.c (rust_language_data): Likewise.
2866
eff93b4d
AB
28672020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2868
2869 * ada-lang.c (ada_language_data) Delete
2870 la_class_name_from_physname initializer.
2871 * c-lang.c (c_language_data): Likewise.
2872 (cplus_language_data): Likewise.
2873 (cplus_language::class_name_from_physname): New member function.
2874 (asm_language_data): Delete la_class_name_from_physname
2875 initializer.
2876 (minimal_language_data): Likewise.
2877 * d-lang.c (d_language_data): Likewise.
2878 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
2879 method on language_defn class.
2880 (guess_full_die_structure_name): Likewise.
2881 * f-lang.c (f_language_data): Delete la_class_name_from_physname
2882 initializer.
2883 * go-lang.c (go_language_data): Likewise.
2884 * language.c (language_class_name_from_physname): Delete.
2885 (unk_lang_class_name): Delete.
2886 (unknown_language_data): Delete la_class_name_from_physname
2887 initializer.
2888 (auto_language_data): Likewise.
2889 * language.h (language_data): Delete la_class_name_from_physname
2890 field.
2891 (language_defn::class_name_from_physname): New function.
2892 (language_class_name_from_physname): Delete declaration.
2893 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
2894 initializer.
2895 * objc-lang.c (objc_language_data): Likewise.
2896 * opencl-lang.c (opencl_language_data): Likewise.
2897 * p-lang.c (pascal_language_data): Likewise.
2898 * rust-lang.c (rust_language_data): Likewise.
2899
de543742
TT
29002020-06-16 Tom Tromey <tom@tromey.com>
2901
2902 * tui/tui-data.h (STATUS_NAME): New macro.
2903 * tui/tui-layout.c (tui_remove_some_windows)
2904 (initialize_known_windows, tui_register_window)
2905 (tui_layout_split::remove_windows, initialize_layouts)
2906 (tui_new_layout_command): Don't use hard-coded window names.
2907
a350efd4
TT
29082020-06-16 Tom Tromey <tom@tromey.com>
2909
2910 PR tui/25348:
2911 * tui/tui.c (tui_ensure_readline_initialized): Rename from
2912 tui_initialize_readline. Only run once. Call rl_initialize.
2913 * tui/tui.h (tui_ensure_readline_initialized): Rename from
2914 tui_initialize_readline.
2915 * tui/tui-io.c (tui_setup_io): Call
2916 tui_ensure_readline_initialized.
2917 * tui/tui-interp.c (tui_interp::init): Update.
2918
39ec0490
TT
29192020-06-16 Tom Tromey <tom@tromey.com>
2920
2921 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
2922 Also preserve the status window.
2923
d2d1ea20
TT
29242020-06-16 Tom Tromey <tom@tromey.com>
2925
2926 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
2927 where m_window==nullptr.
2928
66920317
TT
29292020-06-15 Tom Tromey <tromey@adacore.com>
2930
2931 * windows-nat.c (windows_nat::handle_output_debug_string):
2932 Update.
2933 (windows_nat::handle_ms_vc_exception): Update.
2934 * target.h (target_read_string): Change API.
2935 * target.c (target_read_string): Change API.
2936 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
2937 Update.
2938 * solib-frv.c (frv_current_sos): Update.
2939 * solib-dsbt.c (dsbt_current_sos): Update.
2940 * solib-darwin.c (darwin_current_sos): Update.
2941 * linux-thread-db.c (inferior_has_bug): Update.
2942 * expprint.c (print_subexp_standard): Update.
2943 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
2944 (ada_exception_message_1): Update.
2945
a5d871dd
TT
29462020-06-15 Tom Tromey <tromey@adacore.com>
2947
2948 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
2949
670e35fa
TT
29502020-06-15 Tom Tromey <tromey@adacore.com>
2951
2952 * valprint.c (read_string): Update comment.
2953 * target.c (MIN): Remove.
2954 (target_read_string): Rewrite.
2955
f5272a3b
TT
29562020-06-15 Tom Tromey <tromey@adacore.com>
2957
2958 * corefile.c (read_memory_string): Remove.
2959 * ada-valprint.c (ada_value_print_ptr): Update.
2960 * ada-lang.h (ada_tag_name): Change return type.
2961 * ada-lang.c (type_from_tag): Update.
2962 (ada_tag_name_from_tsd): Change return type. Use
2963 target_read_string.
2964 (ada_tag_name): Likewise.
2965 * gdbcore.h (read_memory_string): Don't declare.
2966
2c074f49
HD
29672020-06-14 Hannes Domani <ssbssa@yahoo.de>
2968
2969 * symtab.c (rbreak_command): Ignore Windows drive colon.
2970
6a17d503
SM
29712020-06-12 Simon Marchi <simon.marchi@efficios.com>
2972
2973 * NEWS: Mention removed GDBserver host support.
2974
453c733f
NC
29752020-06-12 Nelson Chu <nelson.chu@sifive.com>
2976
2977 * features/riscv/rebuild-csr-xml.sh: Updated.
2978
2b4e6a3f
TT
29792020-06-11 Tom Tromey <tom@tromey.com>
2980
2981 PR gdb/18318:
2982 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
2983
4412332f
JG
29842020-06-09 Jonny Grant <jg@jguk.org>
29852020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
2986
2987 * main.c (captured_main_1): Don't print new line after help.
2988 (print_gdb_help): add mailing list and IRC channel information
2989 to --help. Add new lines between items in the footer. Remove
2990 quotes around bug url.
2991
2f33032a
KS
29922020-06-11 Keith Seitz <keiths@redhat.com>
2993
2994 PR gdb/21356
2995 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
2996 Resolve typedefs for type length calculations.
2997
7ab96794
TV
29982020-06-10 Tom de Vries <tdevries@suse.de>
2999
3000 PR ada/24713
3001 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
3002 (write_psymbols): Enable .gdb_index for ada.
3003 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
3004 ada.
3005
e5f3ece2
TV
30062020-06-10 Tom de Vries <tdevries@suse.de>
3007
3008 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
3009 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
3010 namei" instead of "const char *name" argument.
3011 (dw2_map_matching_symbols): Use "offset_type namei" variant of
3012 dw2_symtab_iter_init.
3013
940da03e
SM
30142020-06-08 Simon Marchi <simon.marchi@efficios.com>
3015
3016 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
3017 to use type::field and field::type instead.
3018
b6cdac4b
SM
30192020-06-08 Simon Marchi <simon.marchi@efficios.com>
3020
3021 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
3022 to use field::type instead.
3023
5d14b6e5
SM
30242020-06-08 Simon Marchi <simon.marchi@efficios.com>
3025
3026 * gdbtypes.h (struct field) <type, set_type>: New methods.
3027 Rename `type` field to...
3028 <m_type>: ... this. Change references throughout to use type or
3029 set_type methods.
3030 (FIELD_TYPE): Use field::type. Change call sites that modify
3031 the field's type to use field::set_type instead.
3032
3d967001
SM
30332020-06-08 Simon Marchi <simon.marchi@efficios.com>
3034
3035 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
3036 to use type::index_type instead.
3037
262abc0d
SM
30382020-06-08 Simon Marchi <simon.marchi@efficios.com>
3039
3040 * gdbtypes.h (struct type) <index_type, set_index_type>: New
3041 methods.
3042 (TYPE_INDEX_TYPE): Use type::index_type.
3043 * gdbtypes.c (create_array_type_with_stride): Likewise.
3044
82836c92
TT
30452020-06-07 Tom Tromey <tom@tromey.com>
3046
3047 * valprint.c (generic_val_print_float): Remove "embedded_offset"
3048 parameter.
3049 (generic_value_print): Update.
3050
940dace9
AB
30512020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
3052
3053 Revert commit 982a38f60b0.
3054 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
3055
982a38f6
AB
30562020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
3057
3058 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
3059 avoid use after free.
3060
82f06518
TV
30612020-06-05 Tom de Vries <tdevries@suse.de>
3062
3063 * NEWS: Fix typos.
3064
f8c41851
SM
30652020-06-04 Simon Marchi <simon.marchi@efficios.com>
3066
3067 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
3068 the per_bfd object.
3069 (dwarf2_read_debug_names): Likewise.
3070 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
3071 object when re-using a per_bfd object with an index.
3072
f9b5d5ea
TV
30732020-06-03 Tom de Vries <tdevries@suse.de>
3074
3075 PR symtab/26046
3076 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
3077 children for C++.
3078 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
3079 DW_TAG_subprogram.
3080
f6eee2d0
AB
30812020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3082
3083 * ada-lang.c (ada_language_data): Delete skip_trampoline
3084 initializer.
3085 * c-lang.c (c_language_data): Likewise.
3086 (cplus_language_data): Likewise.
3087 (cplus_language::skip_trampoline): New member function.
3088 (asm_language_data): Delete skip_trampoline initializer.
3089 (minimal_language_data): Likewise.
3090 * d-lang.c (d_language_data): Likewise.
3091 * f-lang.c (f_language_data): Likewise.
3092 * go-lang.c (go_language_data): Likewise.
3093 * language.c (unk_lang_trampoline): Delete function.
3094 (skip_language_trampoline): Update.
3095 (unknown_language_data): Delete skip_trampoline initializer.
3096 (auto_language_data): Likewise.
3097 * language.h (language_data): Delete skip_trampoline field.
3098 (language_defn::skip_trampoline): New function.
3099 * m2-lang.c (m2_language_data): Delete skip_trampoline
3100 initializer.
3101 * objc-lang.c (objc_skip_trampoline): Delete function, move
3102 implementation to objc_language::skip_trampoline.
3103 (objc_language_data): Delete skip_trampoline initializer.
3104 (objc_language::skip_trampoline): New member function with
3105 implementation from objc_skip_trampoline.
3106 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
3107 initializer.
3108 * p-lang.c (pascal_language_data): Likewise.
3109 * rust-lang.c (rust_language_data): Likewise.
3110
0a50df5d
AB
31112020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3112
3113 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
3114 (ada_language::demangle): New member function.
3115 * c-lang.c (c_language_data): Delete la_demangle initializer.
3116 (cplus_language_data): Delete la_demangle initializer.
3117 (cplus_language::demangle): New member function.
3118 (asm_language_data): Delete la_demangle initializer.
3119 (minimal_language_data): Delete la_demangle initializer.
3120 * d-lang.c (d_language_data): Delete la_demangle initializer.
3121 (d_language::demangle): New member function.
3122 * f-lang.c (f_language_data): Delete la_demangle initializer.
3123 (f_language::demangle): New member function.
3124 * go-lang.c (go_language_data): Delete la_demangle initializer.
3125 (go_language::demangle): New member function.
3126 * language.c (language_demangle): Update.
3127 (unk_lang_demangle): Delete.
3128 (unknown_language_data): Delete la_demangle initializer.
3129 (unknown_language::demangle): New member function.
3130 (auto_language_data): Delete la_demangle initializer.
3131 (auto_language::demangle): New member function.
3132 * language.h (language_data): Delete la_demangle field.
3133 (language_defn::demangle): New function.
3134 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
3135 * objc-lang.c (objc_language_data): Delete la_demangle
3136 initializer.
3137 (objc_language::demangle): New member function.
3138 * opencl-lang.c (opencl_language_data): Delete la_demangle
3139 initializer.
3140 * p-lang.c (pascal_language_data): Likewise.
3141 * rust-lang.c (rust_language_data): Likewise.
3142 (rust_language::demangle): New member function.
3143
fbfb0a46
AB
31442020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3145
3146 * ada-lang.c (ada_language_data): Delete la_print_type
3147 initializer.
3148 (ada_language::print_type): New member function.
3149 * c-lang.c (c_language_data): Delete la_print_type initializer.
3150 (c_language::print_type): New member function.
3151 (cplus_language_data): Delete la_print_type initializer.
3152 (cplus_language::print_type): New member function.
3153 (asm_language_data): Delete la_print_type initializer.
3154 (asm_language::print_type): New member function.
3155 (minimal_language_data): Delete la_print_type initializer.
3156 (minimal_language::print_type): New member function.
3157 * d-lang.c (d_language_data): Delete la_print_type initializer.
3158 (d_language::print_type): New member function.
3159 * f-lang.c (f_language_data): Delete la_print_type initializer.
3160 (f_language::print_type): New member function.
3161 * go-lang.c (go_language_data): Delete la_print_type initializer.
3162 (go_language::print_type): New member function.
3163 * language.c (unk_lang_print_type): Delete.
3164 (unknown_language_data): Delete la_print_type initializer.
3165 (unknown_language::print_type): New member function.
3166 (auto_language_data): Delete la_print_type initializer.
3167 (auto_language::print_type): New member function.
3168 * language.h (language_data): Delete la_print_type field.
3169 (language_defn::print_type): New function.
3170 (LA_PRINT_TYPE): Update.
3171 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
3172 (m2_language::print_type): New member function.
3173 * objc-lang.c (objc_language_data): Delete la_print_type
3174 initializer.
3175 (objc_language::print_type): New member function.
3176 * opencl-lang.c (opencl_print_type): Delete, implementation moved
3177 to opencl_language::print_type.
3178 (opencl_language_data): Delete la_print_type initializer.
3179 (opencl_language::print_type): New member function, implementation
3180 from opencl_print_type.
3181 * p-lang.c (pascal_language_data): Delete la_print_type
3182 initializer.
3183 (pascal_language::print_type): New member function.
3184 * rust-lang.c (rust_print_type): Delete, implementation moved to
3185 rust_language::print_type.
3186 (rust_language_data): Delete la_print_type initializer.
3187 (rust_language::print_type): New member function, implementation
3188 from rust_print_type.
3189
6f827019
AB
31902020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3191
3192 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
3193 implementation moves to...
3194 (ada_language::sniff_from_mangled_name): ...here. Update return
3195 type.
3196 (ada_language_data): Delete la_sniff_from_mangled_name
3197 initializer.
3198 * c-lang.c (c_language_data): Likewise.
3199 (cplus_language_data): Likewise.
3200 (cplus_language::sniff_from_mangled_name): New member function,
3201 implementation taken from gdb_sniff_from_mangled_name.
3202 (asm_language_data): Delete la_sniff_from_mangled_name
3203 initializer.
3204 (minimal_language_data): Likewise.
3205 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
3206 implementation moves to cplus_language::sniff_from_mangled_name.
3207 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
3208 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
3209 moves to...
3210 (d_language::sniff_from_mangled_name): ...here.
3211 (d_language_data): Delete la_sniff_from_mangled_name initializer.
3212 * f-lang.c (f_language_data): Likewise.
3213 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
3214 moves to...
3215 (go_language::sniff_from_mangled_name): ...here.
3216 (go_language_data): Delete la_sniff_from_mangled_name initializer.
3217 * language.c (language_sniff_from_mangled_name): Delete.
3218 (unknown_language_data): Delete la_sniff_from_mangled_name
3219 initializer.
3220 (auto_language_data): Likewise.
3221 * language.h (language_data): Delete la_sniff_from_mangled_name
3222 field.
3223 (language_defn::sniff_from_mangled_name): New function.
3224 (language_sniff_from_mangled_name): Delete declaration.
3225 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
3226 field.
3227 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
3228 implementation moves to...
3229 (objc_language::sniff_from_mangled_name): ...here.
3230 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
3231 * opencl-lang.c (opencl_language_data): Likewise.
3232 * p-lang.c (pascal_language_data): Likewise.
3233 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
3234 implementation moves to...
3235 (rust_language::sniff_from_mangled_name): ...here.
3236 (rust_language_data): Delete la_sniff_from_mangled_name
3237 initializer.
3238 * symtab.c (symbol_find_demangled_name): Call
3239 sniff_from_mangled_name member function.
3240
fb8006fd
AB
32412020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3242
3243 * ada-lang.c (ada_language_data): Delete la_search_name_hash
3244 initializer.
3245 * c-lang.c (c_language_data): Likewise.
3246 (cplus_language_data): Likewise.
3247 (cplus_language::search_name_hash): New member function.
3248 (asm_language_data): Delete la_search_name_hash initializer.
3249 (minimal_language_data): Likewise.
3250 * d-lang.c (d_language_data): Likewise.
3251 * dictionary.c (default_search_name_hash): Rename to...
3252 (language_defn::search_name_hash): ...this.
3253 * f-lang.c (f_language_data): Likewise.
3254 (f_language::search_name_hash): New member function.
3255 * go-lang.c (go_language_data): Delete la_search_name_hash
3256 initializer.
3257 * language.c (unknown_language_data): Likewise.
3258 (auto_language_data): Likewise.
3259 * language.h (struct language_data): Delete la_search_name_hash
3260 field.
3261 (language_defn::search_name_hash): Declare new member function.
3262 (default_search_name_hash): Delete declaration.
3263 * m2-lang.c (m2_language_data): Delete la_search_name_hash
3264 initializer.
3265 * objc-lang.c (objc_language_data): Likewise.
3266 * opencl-lang.c (opencl_language_data): Likewise.
3267 * p-lang.c (pascal_language_data): Likewise.
3268 * rust-lang.c (rust_language_data): Likewise.
3269 * symtab.c (search_name_hash): Update call.
3270
8e25bafe
AB
32712020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3272
3273 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
3274 initializer.
3275 * c-lang.c (class compile_instance): Declare.
3276 (c_language_data): Delete la_get_compile_instance initializer.
3277 (c_language::get_compile_instance): New member function.
3278 (cplus_language_data): Delete la_get_compile_instance initializer.
3279 (cplus_language::get_compile_instance): New member function.
3280 (asm_language_data): Delete la_get_compile_instance initializer.
3281 (minimal_language_data): Likewise.
3282 * c-lang.h (c_get_compile_context): Update comment.
3283 (cplus_get_compile_context): Update comment.
3284 * compile/compile.c (compile_to_object): Update calls, don't rely
3285 on function pointer being NULL.
3286 * d-lang.c (d_language_data): Delete la_get_compile_instance
3287 initializer.
3288 * f-lang.c (f_language_data): Likewise.
3289 * go-lang.c (go_language_data): Likewise.
3290 * language.c (unknown_language_data): Likewise.
3291 (auto_language_data): Likewise.
3292 * language.h (language_data): Delete la_get_compile_instance field.
3293 (language_defn::get_compile_instance): New member function.
3294 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
3295 initializer.
3296 * objc-lang.c (objc_language_data): Likewise.
3297 * opencl-lang.c (opencl_language_data): Likewise.
3298 * p-lang.c (pascal_language_data): Likewise.
3299 * rust-lang.c (rust_language_data): Likewise.
3300
4009ee92
AB
33012020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3302
3303 * ada-lang.c (ada_add_all_symbols): Update comment.
3304 (ada_iterate_over_symbols): Delete, move implementation to...
3305 (ada_language::iterate_over_symbols): ...here, a new member
3306 function, rewrite to use range based for loop.
3307 (ada_language_data): Delete la_iterate_over_symbols initializer.
3308 * c-lang.c (c_language_data): Likewise.
3309 (cplus_language_data): Likewise.
3310 (asm_language_data): Likewise.
3311 (minimal_language_data): Likewise.
3312 * d-lang.c (d_language_data): Likewise.
3313 * f-lang.c (f_language_data): Likewise.
3314 * go-lang.c (go_language_data): Likewise.
3315 * language.c (unknown_language_data): Likewise.
3316 (auto_language_data): Likewise.
3317 * language.h (language_data): Delete la_iterate_over_symbols field.
3318 (language_defn::iterate_over_symbols): New member function.
3319 (LA_ITERATE_OVER_SYMBOLS): Update.
3320 * linespec.c (iterate_over_all_matching_symtabs): Update.
3321 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
3322 initializer.
3323 * objc-lang.c (objc_language_data): Likewise.
3324 * opencl-lang.c (opencl_language_data): Likewise.
3325 * p-lang.c (pascal_language_data): Likewise.
3326 * rust-lang.c (rust_language_data): Likewise.
3327
54f4ca46
AB
33282020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3329
3330 * ada-lang.c (ada_language_data): Delete
3331 la_lookup_transparent_type initializer.
3332 * c-lang.c (c_language_data): Likewise.
3333 (cplus_language_data): Likewise.
3334 (cplus_language::lookup_transparent_type): New member function.
3335 (asm_language_data): Delete la_lookup_transparent_type
3336 initializer.
3337 (minimal_language_data): Likewise.
3338 * d-lang.c (d_language_data): Likewise.
3339 * f-lang.c (f_language_data): Likewise.
3340 * go-lang.c (go_language_data): Likewise.
3341 * language.c (unknown_language_data): Likewise.
3342 (auto_language_data): Likewise.
3343 * language.h (struct language_data): Delete
3344 la_lookup_transparent_type field.
3345 (language_defn::lookup_transparent_type): New member function.
3346 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
3347 initializer.
3348 * objc-lang.c (objc_language_data): Likewise.
3349 * opencl-lang.c (opencl_language_data): Likewise.
3350 * p-lang.c (pascal_language_data): Likewise.
3351 * rust-lang.c (rust_language_data): Likewise.
3352 * symtab.c (symbol_matches_domain): Update call.
3353
1fb314aa
AB
33542020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3355
3356 * ada-lang.c (ada_language_arch_info): Delete function, move
3357 implementation to...
3358 (ada_language::language_arch_info): ...here, a new member
3359 function.
3360 (ada_language_data): Delete la_language_arch_info.
3361 * c-lang.c (c_language_data): Likewise.
3362 (c_language::language_arch_info): New member function.
3363 (cplus_language_arch_info): Delete function, move
3364 implementation to...
3365 (cplus_language::language_arch_info): ...here, a new member
3366 function.
3367 (cplus_language_data): Delete la_language_arch_info.
3368 (asm_language_data): Likewise.
3369 (asm_language::language_arch_info): New member function.
3370 (minimal_language_data): Delete la_language_arch_info.
3371 (minimal_language::language_arch_info): New member function.
3372 * d-lang.c (d_language_arch_info): Delete function, move
3373 implementation to...
3374 (d_language::language_arch_info): ...here, a new member
3375 function.
3376 (d_language_data): Delete la_language_arch_info.
3377 * f-lang.c (f_language_arch_info): Delete function, move
3378 implementation to...
3379 (f_language::language_arch_info): ...here, a new member
3380 function.
3381 (f_language_data): Delete la_language_arch_info.
3382 * go-lang.c (go_language_arch_info): Delete function, move
3383 implementation to...
3384 (go_language::language_arch_info): ...here, a new member
3385 function.
3386 (go_language_data): Delete la_language_arch_info.
3387 * language.c (unknown_language_data): Likewise.
3388 (unknown_language::language_arch_info): New member function.
3389 (auto_language_data): Delete la_language_arch_info.
3390 (auto_language::language_arch_info): New member function.
3391 (language_gdbarch_post_init): Update call to
3392 la_language_arch_info.
3393 * language.h (language_data): Delete la_language_arch_info
3394 function pointer.
3395 (language_defn::language_arch_info): New function.
3396 * m2-lang.c (m2_language_arch_info): Delete function, move
3397 implementation to...
3398 (m2_language::language_arch_info): ...here, a new member
3399 function.
3400 (m2_language_data): Delete la_language_arch_info.
3401 * objc-lang.c (objc_language_arch_info): Delete function, move
3402 implementation to...
3403 (objc_language::language_arch_info): ...here, a new member
3404 function.
3405 (objc_language_data): Delete la_language_arch_info.
3406 * opencl-lang.c (opencl_language_arch_info): Delete function, move
3407 implementation to...
3408 (opencl_language::language_arch_info): ...here, a new member
3409 function.
3410 (opencl_language_data): Delete la_language_arch_info.
3411 * p-lang.c (pascal_language_arch_info): Delete function, move
3412 implementation to...
3413 (pascal_language::language_arch_info): ...here, a new member
3414 function.
3415 (pascal_language_data): Delete la_language_arch_info.
3416 * rust-lang.c (rust_language_arch_info): Delete function, move
3417 implementation to...
3418 (rust_language::language_arch_info): ...here, a new member
3419 function.
3420 (rust_language_data): Delete la_language_arch_info.
3421
48448202
AB
34222020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3423
3424 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
3425 initializer.
3426 * c-lang.c (c_language_data): Likewise.
3427 (cplus_language_data): Likewise.
3428 (cplus_language::pass_by_reference_info): New method.
3429 (asm_language_data): Delete la_pass_by_reference initializer.
3430 (minimal_language_data): Likewise.
3431 * cp-abi.c (cp_pass_by_reference): Remove use of
3432 default_pass_by_reference.
3433 * d-lang.c (d_language_data): Likewise.
3434 * f-lang.c (f_language_data): Likewise.
3435 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
3436 default_pass_by_reference.
3437 * go-lang.c (go_language_data): Likewise.
3438 * language.c (language_pass_by_reference): Update.
3439 (default_pass_by_reference): Delete.
3440 (unknown_language_data): Delete la_pass_by_reference
3441 initializer.
3442 (auto_language_data): Likewise.
3443 * language.h (struct language_data): Delete la_pass_by_reference
3444 field.
3445 (language_defn::pass_by_reference_info): New member function.
3446 (default_pass_by_reference): Delete declaration.
3447 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
3448 initializer.
3449 * objc-lang.c (objc_language_data): Likewise.
3450 * opencl-lang.c (opencl_language_data): Likewise.
3451 * p-lang.c (pascal_language_data): Likewise.
3452 * rust-lang.c (rust_language_data): Likewise.
3453
15e5fd35
AB
34542020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3455
3456 * ada-lang.c (ada_read_var_value): Delete function, move
3457 implementation to...
3458 (ada_language::read_var_value): ...here.
3459 (ada_language_data): Delete la_read_var_value initializer.
3460 * c-lang.c (c_language_data): Likewise.
3461 (cplus_language_data): Likewise.
3462 (minimal_language_data): Likewise.
3463 * d-lang.c (d_language_data): Likewise.
3464 * f-lang.c (f_language_data): Likewise.
3465 * findvar.c (default_read_var_value): Rename to...
3466 (language_defn::read_var_value): ...this.
3467 * findvar.c (read_var_value): Update header comment, and change to
3468 call member function instead of function pointer.
3469 * go-lang.c (go_language_data): Likewise.
3470 * language.c (unknown_language_data): Delete la_read_var_value
3471 initializer.
3472 (auto_language_data): Likewise.
3473 * language.h (struct language_data): Delete la_read_var_value
3474 field.
3475 (language_defn::read_var_value): New member function.
3476 (default_read_var_value): Delete declaration.
3477 * m2-lang.c (m2_language_data): Delete la_read_var_value
3478 initializer.
3479 * objc-lang.c (objc_language_data): Likewise.
3480 * opencl-lang.c (opencl_language_data): Likewise.
3481 * p-lang.c (pascal_language_data): Likewise.
3482 * rust-lang.c (rust_language_data): Likewise.
3483 * value.h (default_read_var_value): Delete declaration.
3484
5bd40f2a
AB
34852020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3486
3487 * ada-lang.c (ada_print_array_index): Delete function, move
3488 implementation to...
3489 (ada_language::print_array_index): ...here.
3490 (ada_language_data): Delete la_print_array_index initializer.
3491 * c-lang.c (c_language_data): Likewise.
3492 (cplus_language_data): Likewise.
3493 (minimal_language_data): Likewise.
3494 * d-lang.c (d_language_data): Likewise.
3495 * f-lang.c (f_language_data): Likewise.
3496 * go-lang.c (go_language_data): Likewise.
3497 * language.c (default_print_array_index): Delete function, move
3498 implementation to...
3499 (language_defn::print_array_index): ...here.
3500 (unknown_language_data): Delete la_print_array_index initializer.
3501 (auto_language_data): Likewise.
3502 * language.h (struct language_data): Delete la_print_array_index
3503 field.
3504 (language_defn::print_array_index): New member function.
3505 (LA_PRINT_ARRAY_INDEX): Update.
3506 (default_print_array_index): Delete declaration.
3507 * m2-lang.c (m2_language_data): Delete la_print_array_index
3508 initializer.
3509 * objc-lang.c (objc_language_data): Likewise.
3510 * opencl-lang.c (opencl_language_data): Likewise.
3511 * p-lang.c (pascal_language_data): Likewise.
3512 * rust-lang.c (rust_language_data): Likewise.
3513
0874fd07
AB
35142020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3515
3516 * gdb/ada-lang.c (ada_language_defn): Convert to...
3517 (ada_language_data): ...this.
3518 (class ada_language): New class.
3519 (ada_language_defn): New static global.
3520 * gdb/c-lang.c (c_language_defn): Convert to...
3521 (c_language_data): ...this.
3522 (class c_language): New class.
3523 (c_language_defn): New static global.
3524 (cplus_language_defn): Convert to...
3525 (cplus_language_data): ...this.
3526 (class cplus_language): New class.
3527 (cplus_language_defn): New static global.
3528 (asm_language_defn): Convert to...
3529 (asm_language_data): ...this.
3530 (class asm_language): New class.
3531 (asm_language_defn): New static global.
3532 (minimal_language_defn): Convert to...
3533 (minimal_language_data): ...this.
3534 (class minimal_language): New class.
3535 (minimal_language_defn): New static global.
3536 * gdb/d-lang.c (d_language_defn): Convert to...
3537 (d_language_data): ...this.
3538 (class d_language): New class.
3539 (d_language_defn): New static global.
3540 * gdb/f-lang.c (f_language_defn): Convert to...
3541 (f_language_data): ...this.
3542 (class f_language): New class.
3543 (f_language_defn): New static global.
3544 * gdb/go-lang.c (go_language_defn): Convert to...
3545 (go_language_data): ...this.
3546 (class go_language): New class.
3547 (go_language_defn): New static global.
3548 * gdb/language.c (unknown_language_defn): Remove declaration.
3549 (current_language): Initialize to nullptr, real initialization is
3550 moved to _initialize_language.
3551 (languages): Delete global.
3552 (language_defn::languages): Define.
3553 (set_language_command): Use language_defn::languages.
3554 (set_language): Likewise.
3555 (range_error): Likewise.
3556 (language_enum): Likewise.
3557 (language_def): Likewise.
3558 (add_set_language_command): Use language_def::languages for the
3559 language list, and language_def to lookup language pointers.
3560 (skip_language_trampoline): Use language_defn::languages.
3561 (unknown_language_defn): Convert to...
3562 (unknown_language_data): ...this.
3563 (class unknown_language): New class.
3564 (unknown_language_defn): New static global.
3565 (auto_language_defn): Convert to...
3566 (auto_language_data): ...this.
3567 (class auto_language): New class.
3568 (auto_language_defn): New static global.
3569 (language_gdbarch_post_init): Use language_defn::languages.
3570 (_initialize_language): Initialize current_language.
3571 * gdb/language.h (struct language_defn): Rename to...
3572 (struct language_data): ...this.
3573 (struct language_defn): New.
3574 (auto_language_defn): Delete.
3575 (unknown_language_defn): Delete.
3576 (minimal_language_defn): Delete.
3577 (ada_language_defn): Delete.
3578 (asm_language_defn): Delete.
3579 (c_language_defn): Delete.
3580 (cplus_language_defn): Delete.
3581 (d_language_defn): Delete.
3582 (f_language_defn): Delete.
3583 (go_language_defn): Delete.
3584 (m2_language_defn): Delete.
3585 (objc_language_defn): Delete.
3586 (opencl_language_defn): Delete.
3587 (pascal_language_defn): Delete.
3588 (rust_language_defn): Delete.
3589 * gdb/m2-lang.c (m2_language_defn): Convert to...
3590 (m2_language_data): ...this.
3591 (class m2_language): New class.
3592 (m2_language_defn): New static global.
3593 * gdb/objc-lang.c (objc_language_defn): Convert to...
3594 (objc_language_data): ...this.
3595 (class objc_language): New class.
3596 (objc_language_defn): New static global.
3597 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
3598 (opencl_language_data): ...this.
3599 (class opencl_language): New class.
3600 (opencl_language_defn): New static global.
3601 * gdb/p-lang.c (pascal_language_defn): Convert to...
3602 (pascal_language_data): ...this.
3603 (class pascal_language): New class.
3604 (pascal_language_defn): New static global.
3605 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
3606 language pointer, update comment format.
3607 * gdb/rust-lang.c (rust_language_defn): Convert to...
3608 (rust_language_data): ...this.
3609 (class rust_language): New class.
3610 (rust_language_defn): New static global.
3611
1313c56e
AB
36122020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
3613
3614 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
3615 member variable.
3616 <m_stmt_at_address>: New member variable.
3617 (lnp_state_machine::record_line): Don't record some lines, update
3618 tracking of is_stmt at the same address.
3619 (lnp_state_machine::lnp_state_machine): Initialise new member
3620 variables.
3621
b7ed9f3d
ST
36222020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
3623
3624 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
3625 "-include gnu-nat-mig.h".
3626 * gnu-nat-mig.h: New file.
3627 * gnu-nat.c: Include "gnu-nat-mig.h".
3628 (exc_server, msg_reply_server, notify_server,
3629 process_reply_server): Remove declarations.
3630
14a8ad62
ST
36312020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3632
3633 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
3634 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
3635 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
3636 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
3637 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
3638 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
3639 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
3640 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
3641 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
3642 to gnu_nat_target class.
3643 * gnu-nat.c: Likewise.
3644 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
3645 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
3646 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
3647 object.
3648 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
3649 instead of `gnu_target'.
3650
0af5e106
ST
36512020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3652
3653 * i386-gnu-tdep.c: Include "gdbcore.h"
3654 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
3655 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
3656 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
3657 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
3658 i386_gnu_sigcontext_addr): New functions
3659 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
3660 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
3661 tdep.
3662
078f2fc9
ST
36632020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3664
3665 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
3666 before fork_inferior call. Avoid calling it if target_is_pushed returns
3667 true.
3668
53dff92c
ST
36692020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3670
3671 * gnu-nat.h (gnu_target): New variable declaration.
3672 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
3673 gnu_target.
3674 * gnu-nat.c (gnu_target): New variable.
3675 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
3676 add_thread_silent, and add_thread calls.
3677 (gnu_nat_target::create_inferior): Pass gnu_target to
3678 add_thread_silent, thread_change_ptid call.
3679 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
3680 call.
3681
5a8b8627
ST
36822020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3683
3684 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
3685 (gnu_nat_target::find_memory_regions): Remove unused
3686 `old_address' variable.
3687
366f550a
ST
36882020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3689
3690 * gnu-nat.c: Include "gdbarch.h".
3691
f14871bf
ST
36922020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3693
3694 * reply_mig_hack.awk (Error return): Cast function through
3695 void *, to bypass compiler function call check.
3696
c6887cfb
ST
36972020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3698
3699 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
3700 $(srcdir)/reply_mig_hack.awk.
3701
6930bffe
ST
37022020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3703
3704 * gnu-nat.h (gnu_debug_flag): Set type to bool.
3705
112c22ed
JG
37062020-05-30 Jonny Grant <jg@jguk.org>
3707
3708 * configure.ac (ACX_BUGURL): change bug URL to https.
3709
f68f85b5
PA
37102020-05-30 Pedro Alves <palves@redhat.com>
3711
3712 * cp-support.c (replace_typedefs_template): New.
3713 (replace_typedefs_qualified_name): Handle
3714 DEMANGLE_COMPONENT_TEMPLATE.
3715
976ca316
SM
37162020-05-29 Simon Marchi <simon.marchi@efficios.com>
3717
3718 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
3719 dwarf2/index-cache.h, dwarf2/index-write.c,
3720 dwarf2/index-write.h, dwarf2/line-header.c,
3721 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
3722 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
3723 variables and fields from `dwarf2_per_objfile` to just
3724 `per_objfile` throughout.
3725
989ade05
SM
37262020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
3727
3728 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
3729 <push_dwarf_reg_entry_value>: Add comment.
3730
c47bae85
KB
37312020-05-28 Kevin Buettner <kevinb@redhat.com>
3732 Keith Seitz <keiths@redhat.com>
3733
3734 * python/python.c (do_start_initialization): Call PyEval_SaveThread
3735 instead of PyEval_ReleaseLock.
3736 (class gdbpy_gil): Move to earlier in file.
3737 (finalize_python): Set gdb_python_initialized.
3738 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
3739 when not initialized.
3740
44486dcf
SM
37412020-05-28 Simon Marchi <simon.marchi@efficios.com>
3742
3743 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
3744 <push_dwarf_reg_entry_value>: Remove assert. Override
3745 per_objfile with caller_per_objfile.
3746
f030440d
TV
37472020-05-28 Tom de Vries <tdevries@suse.de>
3748
3749 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
3750 PR gold/15646 workaround to symbol kind "type".
3751
f0fbb768
TT
37522020-05-27 Tom Tromey <tromey@adacore.com>
3753
3754 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
3755
af0b2a3e
TT
37562020-05-27 Tom Tromey <tromey@adacore.com>
3757
3758 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
3759 Use htab_find_with_hash.
3760 <add_abbrev>: Remove "abbrev_number" parameter.
3761 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
3762 "abbrev_number" parameter. Use htab_find_slot_with_hash.
3763 (hash_abbrev): Add comment.
3764 (abbrev_table::lookup_abbrev): Move to header file.
3765 (abbrev_table::read): Update.
3766
7d00ffec
TT
37672020-05-27 Tom Tromey <tromey@adacore.com>
3768
3769 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
3770 method.
3771 <canonical_name>: New member.
3772 <raw_name>: Rename from "name".
3773 (partial_die_info): Initialize canonical_name.
3774 (scan_partial_symbols): Check raw_name.
3775 (partial_die_parent_scope, partial_die_full_name)
3776 (add_partial_symbol, add_partial_subprogram)
3777 (add_partial_enumeration, load_partial_dies): Use "name" method.
3778 (partial_die_info::name): New method.
3779 (partial_die_info::read, guess_partial_die_structure_name)
3780 (partial_die_info::fixup): Update.
3781
697bba18
TT
37822020-05-27 Tom Tromey <tromey@adacore.com>
3783
3784 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
3785 <get_ref_die_offset>: Inline.
3786 <get_ref_die_offset_complaint>: New method.
3787 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
3788 (attribute::get_ref_die_offset_complaint): Rename from
3789 get_ref_die_offset. Just issue complaint.
3790
c17ace43
HD
37912020-05-27 Hannes Domani <ssbssa@yahoo.de>
3792
3793 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
3794
96445f0b
HD
37952020-05-27 Hannes Domani <ssbssa@yahoo.de>
3796
3797 * exec.c (exec_file_attach): Use errno value of first openp failure.
3798
ac637ec3
HD
37992020-05-27 Hannes Domani <ssbssa@yahoo.de>
3800
3801 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
3802 Don't close thread handle.
3803
17ee85fc
TT
38042020-05-27 Tom Tromey <tom@tromey.com>
3805 Simon Marchi <simon.marchi@efficios.com>
3806
3807 * objfiles.h (struct objfile) <partial_symtabs>: Now a
3808 shared_ptr.
3809 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
3810 member.
3811 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
3812 dwarf2_per_bfd_objfile_data_key>: New globals.
3813 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
3814 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
3815 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
3816 shared.
3817 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
3818 short-circuit when sharing.
3819 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
3820 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
3821
39b16f87
SM
38222020-05-27 Simon Marchi <simon.marchi@efficios.com>
3823
3824 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
3825 to...
3826 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
3827 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
3828
fcf23d5b
SM
38292020-05-27 Simon Marchi <simon.marchi@efficios.com>
3830
3831 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
3832 build_name_components, find_name_components_bounds>:
3833 Add per_objfile parameter.
3834 (struct mapped_index) <symbol_name_at>: Likewise.
3835 (struct mapped_debug_names): Remove constructor.
3836 <dwarf2_per_objfile>: Remove field.
3837 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
3838 (mapped_index_base::find_name_components_bounds,
3839 mapped_index_base::build_name_components,
3840 dw2_expand_symtabs_matching_symbol): Likewise.
3841 (class mock_mapped_index) <symbol_name_at>: Likewise.
3842 (check_match): Likewise.
3843 (check_find_bounds_finds): Likewise.
3844 (test_mapped_index_find_name_component_bounds): Update.
3845 (CHECK_MATCH): Update.
3846 (dw2_expand_symtabs_matching): Update.
3847 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
3848 per_objfile parameter.
3849 <find_vec_in_debug_names>: Likewise.
3850 <m_per_objfile>: New field.
3851 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
3852 parameter.
3853 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
3854 (dw2_debug_names_iterator::next): Update.
3855 (dw2_debug_names_lookup_symbol): Update.
3856 (dw2_debug_names_expand_symtabs_for_function): Update.
3857 (dw2_debug_names_map_matching_symbols): Update.
3858 (dw2_debug_names_expand_symtabs_matching): Update.
3859 (dwarf2_read_debug_names): Update.
3860
7188ed02
SM
38612020-05-27 Simon Marchi <simon.marchi@efficios.com>
3862
3863 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
3864 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
3865 move to dwarf2_per_objfile.
3866 <read_in_chain>: Remove.
3867 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
3868 remove_all_cus, age_comp_units>: New methods.
3869 <m_dwarf2_cus>: New member.
3870 (struct dwarf2_per_cu_data) <cu>: Remove.
3871 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
3872 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
3873 moved to methods of dwarf2_per_objfile.
3874 (dwarf2_clear_marks): Remove.
3875 (dwarf2_queue_item::~dwarf2_queue_item): Update.
3876 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
3877 (dwarf2_per_bfd::free_cached_comp_units): Remove.
3878 (dwarf2_per_objfile::remove_all_cus): New.
3879 (class free_cached_comp_units) <~free_cached_comp_units>:
3880 Update.
3881 (load_cu): Update.
3882 (dw2_do_instantiate_symtab): Adjust.
3883 (fill_in_sig_entry_from_dwo_entry): Adjust.
3884 (cutu_reader::init_tu_and_read_dwo_dies): Update.
3885 (cutu_reader::cutu_reader): Likewise.
3886 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
3887 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
3888 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
3889 and dwarf2_per_objfile::age_comp_units.
3890 (load_partial_comp_unit): Update.
3891 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
3892 (process_queue): Likewise.
3893 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
3894 backlink.
3895 (dwarf2_read_addr_index): Likewise.
3896 (follow_die_offset): Likewise.
3897 (dwarf2_fetch_die_loc_sect_off): Likewise.
3898 (dwarf2_fetch_constant_bytes): Likewise.
3899 (dwarf2_fetch_die_type_sect_off): Likewise.
3900 (follow_die_sig_1): Likewise.
3901 (load_full_type_unit): Likewise.
3902 (read_signatured_type): Likewise.
3903 (dwarf2_cu::dwarf2_cu): Don't set cu field.
3904 (dwarf2_cu::~dwarf2_cu): Remove.
3905 (dwarf2_per_objfile::get_cu): New.
3906 (dwarf2_per_objfile::set_cu): New.
3907 (age_cached_comp_units): Rename to...
3908 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
3909 to std::unordered_map.
3910 (free_one_cached_comp_unit): Rename to...
3911 (dwarf2_per_objfile::remove_cu): ... this. Adjust
3912 to std::unordered_map.
3913 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
3914 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
3915 a dwarf2_per_objfile in data.
3916 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
3917 (dwarf2_clear_marks): Remove.
3918
2e671100
SM
39192020-05-27 Simon Marchi <simon.marchi@efficios.com>
3920
3921 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
3922 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
3923 (init_tu_and_read_dwo_dies): Likewise.
3924 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
3925 (cutu_reader::cutu_reader): Likewise.
3926 (load_partial_comp_unit): Likewise.
3927 (process_psymtab_comp_unit): Update.
3928 (build_type_psymtabs_1): Update.
3929 (process_skeletonless_type_unit): Update.
3930 (load_full_comp_unit): Update.
3931 (find_partial_die): Update.
3932 (dwarf2_read_addr_index): Update.
3933 (read_signatured_type): Update.
3934
2e6a9f79
SM
39352020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3936
3937 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
3938 m_header_read_in>: New fields.
3939 <get_header>: New method.
3940 * dwarf2/read.c (per_cu_header_read_in): Remove.
3941 (dwarf2_per_cu_data::get_header): New.
3942 (dwarf2_per_cu_data::addr_size): Update.
3943 (dwarf2_per_cu_data::offset_size): Update.
3944 (dwarf2_per_cu_data::ref_addr_size): Update.
3945
1b555f17
SM
39462020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3947
3948 * dwarf2/read.c (load_cu): Return dwarf2_cu.
3949 (dw2_do_instantiate_symtab): Update.
3950 (queue_and_load_all_dwo_tus): Change parameter from
3951 dwarf2_per_cu_data to dwarf2_cu.
3952 (dwarf2_fetch_die_loc_sect_off): Update.
3953 (dwarf2_fetch_constant_bytes): Update.
3954 (dwarf2_fetch_die_type_sect_off): Update.
3955
8fc0b21d
SM
39562020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3957
3958 * dwarf2/read.c (process_full_comp_unit,
3959 process_full_type_unit): Remove per_cu, per_objfile paramters.
3960 Add dwarf2_cu parameter.
3961 (process_queue): Update.
3962
168c9250
SM
39632020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3964
3965 * dwarf2/read.c (create_cu_from_index_list): Replace
3966 dwarf2_per_objfile parameter with dwarf2_per_bfd.
3967 (create_cus_from_index_list): Likewise.
3968 (create_cus_from_index): Likewise.
3969 (create_signatured_type_table_from_index): Likewise.
3970 (create_cus_from_debug_names_list): Likewise.
3971 (create_cus_from_debug_names): Likewise.
3972 (dwarf2_read_gdb_index): Update.
3973 (dwarf2_read_debug_names): Update.
3974
e286671b
TT
39752020-05-27 Tom Tromey <tom@tromey.com>
3976 Simon Marchi <simon.marchi@efficios.com>
3977
3978 * dwarf2/read.h (struct dwarf2_per_objfile)
3979 <get_type_for_signatured_type, set_type_for_signatured_type>:
3980 New methods.
3981 <m_type_map>: New member.
3982 (struct signatured_type) <type>: Remove.
3983 * dwarf2/read.c
3984 (dwarf2_per_objfile::get_type_for_signatured_type,
3985 dwarf2_per_objfile::set_type_for_signatured_type): New.
3986 (get_signatured_type): Use new methods.
3987
8adb8487
TT
39882020-05-27 Tom Tromey <tom@tromey.com>
3989 Simon Marchi <simon.marchi@efficios.com>
3990
3991 * dwarf2/read.h (struct type_unit_group_unshareable): New.
3992 (struct dwarf2_per_objfile) <type_units>: New member.
3993 <get_type_unit_group_unshareable>: New method.
3994 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
3995 num_symtabs, symtabs>: Remove; move to
3996 type_unit_group_unshareable.
3997 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
3998 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
3999 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
4000
127bbf4b
SM
40012020-05-27 Simon Marchi <simon.marchi@efficios.com>
4002
4003 * dwarf2/read.h (struct dwarf2_per_cu_data):
4004 <dwarf2_per_objfile>: Remove.
4005 * dwarf2/read.c (create_cu_from_index_list): Don't assign
4006 dwarf2_per_objfile.
4007 (create_signatured_type_table_from_index): Likewise.
4008 (create_signatured_type_table_from_debug_names): Likewise.
4009 (create_debug_type_hash_table): Likewise.
4010 (fill_in_sig_entry_from_dwo_entry): Likewise.
4011 (create_type_unit_group): Likewise.
4012 (read_comp_units_from_section): Likewise.
4013 (create_cus_hash_table): Likewise.
4014
f6e649dd
SM
40152020-05-27 Simon Marchi <simon.marchi@efficios.com>
4016
4017 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
4018 dwarf2_per_cu_data::dwarf2_per_objfile.
4019 (compute_compunit_symtab_includes): Likewise.
4020 (dwarf2_cu::start_symtab): Likewise.
4021
aa66c379
SM
40222020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4023
4024 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
4025 parameter.
4026 * dwarf2/read.c (get_die_type_at_offset): Likewise.
4027 (read_namespace_alias): Update.
4028 (lookup_die_type): Update.
4029 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
4030 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
4031 Update.
4032 (disassemble_dwarf_expression): Update.
4033
120ce1b5
SM
40342020-05-27 Simon Marchi <simon.marchi@efficios.com>
4035
4036 * dwarf2/read.h (struct dwarf2_queue_item): Add
4037 dwarf2_per_objfile parameter, assign new parameter.
4038 <per_objfile>: New field.
4039 * dwarf2/read.c (free_one_cached_comp_unit): Add
4040 dwarf2_per_objfile parameter.
4041 (queue_comp_unit): Likewise.
4042 (dw2_do_instantiate_symtab): Update.
4043 (process_psymtab_comp_unit): Update.
4044 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
4045 (process_imported_unit_die): Update.
4046 (queue_and_load_dwo_tu): Update.
4047 (follow_die_offset): Update.
4048 (follow_die_sig_1): Update.
4049
9f47c707
SM
40502020-05-27 Simon Marchi <simon.marchi@efficios.com>
4051
4052 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
4053 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
4054 (read_call_site_scope): Assign per_objfile.
4055 (dwarf2_per_cu_data::objfile): Remove.
4056 * gdbtypes.h (struct call_site) <per_objfile>: New member.
4057 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
4058 dwarf2_per_objfile parameter.
4059 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
4060 dwarf2_per_objfile parameter.
4061 (dwarf_expr_reg_to_entry_parameter): Add output
4062 dwarf2_per_objfile parameter.
4063 (locexpr_get_frame_base): Update.
4064 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
4065 <push_dwarf_reg_entry_value>: Update.
4066 <call_site_to_target_addr>: Update.
4067 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
4068 parameter.
4069 (value_of_dwarf_reg_entry): Update.
4070 (rw_pieced_value): Update.
4071 (indirect_synthetic_pointer): Update.
4072 (dwarf2_evaluate_property): Update.
4073 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
4074 parameter.
4075 (locexpr_read_variable): Update.
4076 (locexpr_get_symbol_read_needs): Update.
4077 (loclist_read_variable): Update.
4078
14095eb3
SM
40792020-05-27 Simon Marchi <simon.marchi@efficios.com>
4080
4081 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
4082 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
4083 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
4084 parameter.
4085 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
4086 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
4087 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
4088 parameter.
4089 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
4090 sect_variable_value): Add dwarf2_per_objfile parameter.
4091 (class dwarf_evaluate_loc_desc) <dwarf_call,
4092 dwarf_variable_value>: Update.
4093 (fetch_const_value_from_synthetic_pointer): Add
4094 dwarf2_per_objfile parameter.
4095 (fetch_const_value_from_synthetic_pointer): Update.
4096 (coerced_pieced_ref): Update.
4097 (class symbol_needs_eval_context) <dwarf_call,
4098 dwarf_variable_value>: Update.
4099 (dwarf2_compile_expr_to_ax): Update.
4100
3c3cd3d4
SM
41012020-05-27 Simon Marchi <simon.marchi@efficios.com>
4102
4103 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
4104 parameter.
4105 (dwarf2_evaluate_loc_desc_full): Update.
4106
82ca3f51
SM
41072020-05-27 Simon Marchi <simon.marchi@efficios.com>
4108
4109 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
4110 parameter.
4111 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
4112 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
4113 dwarf2_per_objfile parameter.
4114 (decode_debug_loc_dwo_addresses): Likewise.
4115 (dwarf2_find_location_expression): Update.
4116 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
4117 (locexpr_describe_location_piece): Add dwarf2_per_objfile
4118 parameter.
4119 (disassemble_dwarf_expression): Add dwarf2_per_objfile
4120 parameter.
4121 (locexpr_describe_location_1): Likewise.
4122 (locexpr_describe_location): Update.
4123
4b167ea1
SM
41242020-05-27 Simon Marchi <simon.marchi@efficios.com>
4125
4126 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
4127 Remove.
4128 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
4129 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
4130 (dwarf2_compile_property_to_c): Update.
4131 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
4132 use text offset from objfile.
4133 (locexpr_tracepoint_var_ref): Update.
4134 (locexpr_generate_c_location): Update.
4135 (loclist_describe_location): Update.
4136 (loclist_tracepoint_var_ref): Update.
4137 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
4138 dwarf2_per_objfile parameter.
4139 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
4140 use text offset from objfile.
4141 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
4142
89b07335
SM
41432020-05-27 Simon Marchi <simon.marchi@efficios.com>
4144
4145 * dwarf2/expr.h (struct dwarf_expr_context)
4146 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
4147 <offset>: Remove.
4148 <per_objfile>: New member.
4149 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
4150 dwarf2_per_objfile parameter. Don't set offset, set
4151 per_objfile.
4152 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
4153 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
4154 a dwarf2_per_objfile object instead of an offset.
4155 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
4156 constructor.
4157 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
4158 to dwarf2_expr_executor constructor. Don't set offset.
4159 (dwarf2_fetch_cfa_info): Update.
4160 (struct dwarf2_frame_cache) <text_offset>: Remove.
4161 <per_objfile>: New field.
4162 (dwarf2_frame_cache): Update.
4163 (dwarf2_frame_prev_register): Update.
4164 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
4165 <dwarf_evaluate_loc_desc>: Add constructor.
4166 (dwarf2_evaluate_loc_desc_full): Update.
4167 (dwarf2_locexpr_baton_eval): Update.
4168 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
4169 Add constructor.
4170 (dwarf2_loc_desc_get_symbol_read_needs): Update.
4171
293e7e51
SM
41722020-05-27 Simon Marchi <simon.marchi@efficios.com>
4173
4174 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
4175 addr_sized_int_type>: Move to dwarf2_cu.
4176 <int_type>: Move to dwarf2_per_objfile.
4177 (struct dwarf2_per_objfile) <int_type>: Move here.
4178 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
4179 addr_sized_int_type>: Move here.
4180 (read_func_scope): Update.
4181 (read_array_type): Update.
4182 (read_tag_string_type): Update.
4183 (attr_to_dynamic_prop): Update.
4184 (dwarf2_per_cu_data::int_type): Rename to...
4185 (dwarf2_per_objfile::int_type): ... this.
4186 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
4187 (dwarf2_cu::addr_sized_int_type): ... this.
4188 (read_subrange_type): Update.
4189 (dwarf2_per_cu_data::addr_type): Rename to...
4190 (dwarf2_cu::addr_type): ... this.
4191 (set_die_type): Update.
4192
64874a40
SM
41932020-05-27 Simon Marchi <simon.marchi@efficios.com>
4194
4195 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
4196 data through per_cu->cu.
4197
4ab09049
SM
41982020-05-27 Simon Marchi <simon.marchi@efficios.com>
4199
4200 * dwarf2/read.c (lookup_dwo_comp_unit): Change
4201 dwarf2_per_cu_data parameter fo dwarf2_cu.
4202 (lookup_dwo_type_unit): Likewise.
4203 (read_cutu_die_from_dwo): Likewise.
4204 (lookup_dwo_unit): Likewise.
4205 (open_and_init_dwo_file): Likewise.
4206 (lookup_dwo_cutu): Likewise.
4207 (lookup_dwo_comp_unit): Likewise.
4208 (lookup_dwo_type_unit): Likewise.
4209 (cutu_reader::init_tu_and_read_dwo_dies): Update.
4210 (cutu_reader::cutu_reader): Update.
4211
47b14e86
SM
42122020-05-27 Simon Marchi <simon.marchi@efficios.com>
4213
4214 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
4215 parameter.
4216 (process_full_type_unit): Likewise.
4217 (process_queue): Update.
4218
43182c09
SM
42192020-05-27 Simon Marchi <simon.marchi@efficios.com>
4220
4221 * dwarf2/read.c (recursively_compute_inclusions): Add
4222 dwarf2_per_objfile parameter.
4223 (compute_compunit_symtab_includes): Likewise.
4224 (process_cu_includes): Update.
4225
7aa104c4
SM
42262020-05-27 Simon Marchi <simon.marchi@efficios.com>
4227
4228 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
4229 parameter.
4230 (create_type_unit_group): Update.
4231 (process_psymtab_comp_unit_reader): Update.
4232 (build_type_psymtabs_reader): Update.
4233
e3beb21d
SM
42342020-05-27 Simon Marchi <simon.marchi@efficios.com>
4235
4236 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
4237 object through m_this_cu->cu.
4238
d460f660
SM
42392020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4240
4241 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
4242 the info parameter.
4243 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
4244
ab432490
SM
42452020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4246
4247 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
4248 per_objfile parameter.
4249 (load_full_type_unit): Add per_objfile parameter.
4250 (read_signatured_type): Likewise.
4251 (load_full_comp_unit): Likewise.
4252 (load_cu): Likewise.
4253 (dw2_do_instantiate_symtab): Likewise.
4254 (dw2_get_file_names): Likewise.
4255 (dw2_map_symtabs_matching_filename): Update.
4256 (dw_expand_symtabs_matching_file_matcher): Update.
4257 (dw2_map_symbol_filenames): Update.
4258 (process_psymtab_comp_unit): Add per_objfile parameter.
4259 (build_type_psymtabs_1): Update.
4260 (process_skeletonless_type_unit): Update.
4261 (dwarf2_build_psymtabs_hard): Update.
4262 (load_partial_comp_unit): Add per_objfile parameter.
4263 (scan_partial_symbols): Update.
4264 (load_full_comp_unit): Add per_objfile parameter.
4265 (process_imported_unit_die): Update.
4266 (create_cus_hash_table): Update.
4267 (find_partial_die): Update.
4268 (dwarf2_read_addr_index): Update.
4269 (follow_die_offset): Update.
4270 (dwarf2_fetch_die_loc_sect_off): Update.
4271 (dwarf2_fetch_constant_bytes): Update.
4272 (dwarf2_fetch_die_type_sect_off): Update.
4273 (follow_die_sig_1): Update.
4274 (load_full_type_unit): Add per_objfile parameter.
4275 (read_signatured_type): Likewise.
4276
313bad1b
SM
42772020-05-27 Simon Marchi <simon.marchi@efficios.com>
4278
4279 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
4280 of objfile_name.
4281
c3699833
SM
42822020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4283
4284 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
4285 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
4286 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
4287 field.
4288 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
4289 (create_cus_from_index): Update.
4290 (dwarf2_read_gdb_index): Update.
4291 (create_cus_from_debug_names): Update.
4292 (dwarf2_read_debug_names): Update.
4293 (get_abbrev_section_for_cu): Update.
4294 (create_all_comp_units): Update.
4295 (read_attribute_value): Update.
4296 (get_debug_line_section): Update.
4297 * dwarf2/index-cache.c (index_cache::store): Update.
4298 * dwarf2/index-write.c (save_gdb_index_command): Update.
4299 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
4300
1859c670
SM
43012020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4302
4303 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
4304 member.
4305 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
4306 dwarf2_per_cu_data::per_bfd.
4307 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
4308 (create_type_unit_group): Likewise.
4309 (queue_comp_unit): Remove reference to
4310 per_cu->dwarf2_per_objfile.
4311 (maybe_queue_comp_unit): Likewise.
4312 (fill_in_sig_entry_from_dwo_entry): Assign new field.
4313 (create_cus_hash_table): Assign new field.
4314
5e22e966
SM
43152020-05-27 Simon Marchi <simon.marchi@efficios.com>
4316
4317 * dwarf2/read.c: Replace
4318 dwarf2_cu->per_cu->dwarf2_per_objfile references with
4319 dwarf2_cu->per_objfile throughout.
4320
97a1449a
SM
43212020-05-27 Simon Marchi <simon.marchi@efficios.com>
4322
4323 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
4324 parameter, don't use per_cu->dwarf2_per_objfile.
4325 (dw2_instantiate_symtab): Likewise.
4326 (dw2_find_last_source_symtab): Update.
4327 (dw2_map_expand_apply): Update.
4328 (dw2_lookup_symbol): Update.
4329 (dw2_expand_symtabs_for_function): Update.
4330 (dw2_expand_all_symtabs): Update.
4331 (dw2_expand_symtabs_with_fullname): Update.
4332 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
4333 don't use per_cu->dwarf2_per_objfile.
4334 (dw2_expand_marked_cus): Update.
4335 (dw2_find_pc_sect_compunit_symtab): Update.
4336 (dw2_debug_names_lookup_symbol): Update.
4337 (dw2_debug_names_expand_symtabs_for_function): Update.
4338 (dw2_debug_names_map_matching_symbols): Update.
4339 (dwarf2_psymtab::expand_psymtab): Update.
4340
9e021579
SM
43412020-05-27 Simon Marchi <simon.marchi@efficios.com>
4342
4343 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
4344 <per_objfile>: New member.
4345 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
4346 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
4347 call to dwarf2_cu.
4348 (cutu_reader::cutu_reader): Update.
4349 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
4350
ae090bdb
SM
43512020-05-27 Simon Marchi <simon.marchi@efficios.com>
4352
4353 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
4354 struct dwarf2_per_objfile.
4355 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
4356 dwarf2_per_bfd.
4357 * dwarf2/read.c (set_die_type): Update.
4358 (get_die_type_at_offset): Update.
4359
af758d11
SM
43602020-05-27 Tom Tromey <tom@tromey.com>
4361 Simon Marchi <simon.marchi@efficios.com>
4362
4363 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
4364 method.
4365 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
4366 get_symtab, set_symtab>: New methods.
4367 <m_symtabs>: New field.
4368 (struct dwarf2_psymtab): Derive from partial_symtab.
4369 <readin_p, get_compunit_symtab>: Declare methods.
4370 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
4371 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
4372 New methods.
4373 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
4374 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
4375 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
4376 (dw2_symtab_iter_next, dw2_print_stats)
4377 (dw2_expand_symtabs_with_fullname)
4378 (dw2_expand_symtabs_matching_one)
4379 (dw_expand_symtabs_matching_file_matcher)
4380 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
4381 (dw2_debug_names_iterator::next)
4382 (dw2_debug_names_map_matching_symbols)
4383 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
4384 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
4385 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
4386 New methods.
4387 (get_compunit_symtab, process_full_comp_unit)
4388 (process_full_type_unit): Update.
4389 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
4390
5989a64e
SM
43912020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4392
4393 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
4394 then introduce a new dwarf2_per_objfile type.
4395 <read_line_string>: Move to the new dwarf2_per_objfile type.
4396 <objfile>: Likewise.
4397 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
4398 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
4399 dwarf2_per_objfile->per_bfd.
4400 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
4401 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
4402 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
4403 (dwarf2_per_bfd::free_cached_comp_units): ... this.
4404 (dwarf2_has_info): Allocate dwarf2_per_bfd.
4405 (dwarf2_per_objfile::locate_sections): Rename to...
4406 (dwarf2_per_bfd::locate_sections): ... this.
4407 (dwarf2_per_objfile::get_cutu): Rename to...
4408 (dwarf2_per_bfd::get_cutu): ... this.
4409 (dwarf2_per_objfile::get_cu): Rename to...
4410 (dwarf2_per_bfd::get_cu): ... this.
4411 (dwarf2_per_objfile::get_tu): Rename to...
4412 (dwarf2_per_bfd::get_tu): ... this.
4413 (dwarf2_per_objfile::allocate_per_cu): Rename to...
4414 (dwarf2_per_bfd::allocate_per_cu): ... this.
4415 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
4416 (dwarf2_per_bfd::allocate_signatured_type): ... this.
4417 (get_gdb_index_contents_ftype): Change parameter from
4418 dwarf2_per_objfile to dwarf2_per_bfd.
4419 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
4420 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
4421
a50264ba
TT
44222020-05-27 Tom Tromey <tom@tromey.com>
4423 Simon Marchi <simon.marchi@efficios.com>
4424
4425 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
4426 (allocate_piece_closure): Set "per_objfile" member.
4427 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
4428 (locexpr_describe_location, loclist_describe_location): Use new
4429 member.
4430 * dwarf2/read.c (read_call_site_scope)
4431 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
4432 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
4433 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
4434 handle_data_member_location): Set per_objfile member.
4435 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
4436 member.
4437 (struct dwarf2_loclist_baton) <per_objfile>: New member.
4438
d3473f0c
TT
44392020-05-27 Tom Tromey <tom@tromey.com>
4440
4441 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
4442 allocate_signatured_type>: Declare new methods.
4443 <m_num_psymtabs>: New member.
4444 (struct dwarf2_per_cu_data) <index>: New member.
4445 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
4446 (dwarf2_per_objfile::allocate_signatured_type): New methods.
4447 (create_cu_from_index_list): Use allocate_per_cu.
4448 (create_signatured_type_table_from_index)
4449 (create_signatured_type_table_from_debug_names)
4450 (create_debug_type_hash_table, add_type_unit)
4451 (read_comp_units_from_section): Use allocate_signatured_type.
4452
5717c425
TT
44532020-05-27 Tom Tromey <tom@tromey.com>
4454
4455 * psymtab.c (partial_map_expand_apply)
4456 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
4457 (psym_lookup_global_symbol_language)
4458 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
4459 (psym_print_stats, psym_expand_symtabs_for_function)
4460 (psym_map_symbol_filenames, psym_map_matching_symbols)
4461 (psym_expand_symtabs_matching)
4462 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
4463 (maintenance_check_psymtabs): Update.
4464 * psympriv.h (struct partial_symtab) <readin_p,
4465 get_compunit_symtab>: Add objfile parameter.
4466 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
4467 Likewise.
4468 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
4469 get_compunit_symtab>: Likewise.
4470 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
4471
45940949
TT
44722020-05-27 Tom Tromey <tom@tromey.com>
4473
4474 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
4475 member.
4476 * dwarf2/read.c (delete_file_name_entry): Fix comment.
4477 (create_cu_from_index_list)
4478 (create_signatured_type_table_from_index)
4479 (create_signatured_type_table_from_debug_names)
4480 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
4481 (dwarf2_create_include_psymtab)
4482 (create_debug_type_hash_table, add_type_unit)
4483 (create_type_unit_group, read_comp_units_from_section)
4484 (dwarf2_compute_name, create_cus_hash_table)
4485 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
4486 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
4487 obstack.
4488 (dw2_get_real_path): Likewise. Change argument to
4489 dwarf2_per_objfile.
4490
f8c6d152
LM
44912020-05-27 Luis Machado <luis.machado@linaro.org>
4492
4493 PR tdep/26000
4494 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
4495 for ldrd (immediate).
4496
e98d2e6d
PW
44972020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4498
4499 * command.h: Add comment giving the name of class_tui.
4500 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
4501 create the fake command for the help for class_tui.
4502
53a47a3e
TT
45032020-05-26 Tom Tromey <tromey@adacore.com>
4504
4505 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
4506 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
4507 (val_atr): New function.
4508 (value_val_atr): Use it.
4509 * ada-valprint.c (print_optional_low_bound): Change low bound
4510 handling for enums.
4511 (val_print_packed_array_elements): Don't call discrete_position.
4512 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
4513 discrete_position for enum types.
4514 * language.c (default_print_array_index): Change type.
4515 * language.h (struct language_defn) <la_print_array_index>: Add
4516 index_type parameter, change type of index_value.
4517 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
4518 (default_print_array_index): Update.
4519 * valprint.c (maybe_print_array_index): Don't call
4520 value_from_longest. Update.
4521 (value_print_array_elements): Don't call discrete_position.
4522
0bc2354b
TT
45232020-05-26 Tom Tromey <tromey@adacore.com>
4524
4525 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
4526 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
4527
1218a4bf
CDA
45282020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
4529
4530 PR gdb/13519
4531 * avr-tdep.c (avr_integer_to_address): Return data or code
4532 address accordingly to the second 'type' argument of the
4533 function.
4534
92651b1d
MW
45352020-05-25 Michael Weghorn <m.weghorn@posteo.de>
4536
4537 * infcmd.c, inferior.h: (construct_inferior_arguments):
4538 Moved function from here to gdbsupport/common-inferior.{h,cc}
4539
0a4f5f8c
TT
45402020-05-23 Tom Tromey <tom@tromey.com>
4541
4542 Revert commit eca1f90c:
4543 * NEWS: Remove entry for completion styling.
4544 * completer.c (_rl_completion_prefix_display_length): Move
4545 declaration later.
4546 (gdb_fnprint): Revert.
4547 (gdb_display_match_list_1): Likewise.
4548 * cli/cli-style.c (completion_prefix_style)
4549 (completion_difference_style, completion_suffix_style): Remove.
4550 (_initialize_cli_style): Revert.
4551 * cli/cli-style.h (completion_prefix_style)
4552 (completion_difference_style, completion_suffix_style): Don't
4553 declare.
4554
e08bd6c5
PA
45552020-05-24 Pedro Alves <palves@redhat.com>
4556
4557 * symtab.c (completion_list_add_name): Return boolean indication
4558 of whether the symbol matched.
4559 (completion_list_add_symbol): Don't try to remove C++ aliases if
4560 the symbol didn't match in the first place.
4561 * symtab.h (completion_list_add_name): Return bool.
4562
ceacbf6e
SM
45632020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
4564
4565 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
4566 type::field.
4567
26f16254
JB
45682020-05-23 Joel Brobecker <brobecker@adacore.com>
4569
4570 GDB 9.2 released.
4571
eca1f90c
TT
45722020-05-23 Tom Tromey <tom@tromey.com>
4573
4574 * NEWS: Add entry for completion styling.
4575 * completer.c (_rl_completion_prefix_display_length): Move
4576 declaration earlier.
4577 (gdb_fnprint): Use completion_style.
4578 (gdb_display_match_list_1): Likewise.
4579 * cli/cli-style.c (completion_prefix_style)
4580 (completion_difference_style, completion_suffix_style): New
4581 globals.
4582 (_initialize_cli_style): Register new globals.
4583 * cli/cli-style.h (completion_prefix_style)
4584 (completion_difference_style, completion_suffix_style): Declare.
4585
51e2cfa2
PA
45862020-05-23 Pedro Alves <palves@redhat.com>
4587
4588 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
4589 (parse_escape): Use ISDIGIT instead of isdigit.
4590 (puts_debug): Use gdb_isprint instead of isprint.
4591 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
4592 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
4593 ISSPACE instead of isspace.
4594 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
4595 instead of isspace.
4596 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
4597 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
4598 instead of isxdigit and ISDIGIT instead of isdigit.
4599
80fc5e77
SM
46002020-05-22 Simon Marchi <simon.marchi@efficios.com>
4601
4602 * gdbtypes.h (struct type) <field>: New method.
4603 (TYPE_FIELDS): Remove, replace all uses with either type::fields
4604 or type::field.
4605
3cabb6b0
SM
46062020-05-22 Simon Marchi <simon.marchi@efficios.com>
4607
4608 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
4609 (TYPE_FIELDS): Use type::fields. Change all call sites that
4610 modify the propery to use type::set_fields instead.
4611
1f704f76
SM
46122020-05-22 Simon Marchi <simon.marchi@efficios.com>
4613
4614 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
4615 type::num_fields instead.
4616
5e33d5f4
SM
46172020-05-22 Simon Marchi <simon.marchi@efficios.com>
4618
4619 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
4620 methods.
4621 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
4622 that modify the number of fields to use type::set_num_fields
4623 instead.
4624
9392ebb3
TT
46252020-05-22 Tom Tromey <tromey@adacore.com>
4626
4627 * compile/compile-object-load.h (munmap_list_free): Don't
4628 declare.
4629
7c13f4e8
AB
46302020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
4631
4632 * annotate.c (annotate_source_line): Update return type, add call
4633 to update current symtab and line.
4634 * annotate.h (annotate_source_line): Update return type, and
4635 extend header comment.
4636 * source.c (info_line_command): Check annotation_level before
4637 calling annotate_source_line.
4638 * stack.c (print_frame_info): If calling annotate_source_line
4639 returns true, then don't print any other source line information.
4640
aa370940
SM
46412020-05-21 Simon Marchi <simon.marchi@efficios.com>
4642
4643 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
4644
84d53fa9
SM
46452020-05-21 Simon Marchi <simon.marchi@efficios.com>
4646
4647 * coffread.c (patch_type): Remove NULL check before xfree.
4648 * corefile.c (set_gnutarget): Likewise.
4649 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
4650 * exec.c (build_section_table): Likewise.
4651 * remote.c (remote_target::pass_signals): Likewise.
4652 * utils.c (n_spaces): Likewise.
4653 * cli/cli-script.c (document_command): Likewise.
4654 * i386-windows-tdep.c (core_process_module_section): Likewise.
4655 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
4656
9d428aae
SM
46572020-05-20 Simon Marchi <simon.marchi@efficios.com>
4658
4659 * symfile.c (reread_symbols): Clear objfile's section_offsets
4660 vector and section indices, re-compute them by calling
4661 sym_offsets.
4662
250106a7
TT
46632020-05-20 Tom Tromey <tromey@adacore.com>
4664
4665 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
ec16513e 4666 (desc_one_bound, desc_index_type): Compute field name.
250106a7 4667
9a0bacfb
TV
46682020-05-20 Tom de Vries <tdevries@suse.de>
4669
4670 PR symtab/25833
4671 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
4672
7b958a48
AM
46732020-05-20 Alan Modra <amodra@gmail.com>
4674
4675 PR 25993
4676 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
4677 bfd_set_filename.
4678 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
4679 passed to bfd_set_filename.
4680 * symfile-mem.c (add_vsyscall_page): Likewise for string
4681 passed to symbol_file_add_from_memory.
4682 (symbol_file_add_from_memory): Make name param a const char* and
4683 don't strdup.
4684
c7e97679
AM
46852020-05-20 Alan Modra <amodra@gmail.com>
4686
4687 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
4688 rather than accessing bfd->filename directly.
4689 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
4690 and use bfd_section_name.
4691 * dwarf2/frame.c (decode_frame_entry): Likewise.
4692 * exec.c (exec_set_section_address): Likewise.
4693 * solib-aix.c (solib_aix_bfd_open): Likewise.
4694 * stap-probe.c (get_stap_base_address): Likewise.
4695 * symfile.c (reread_symbols): Likewise.
4696
563c591b
TT
46972020-05-19 Tom Tromey <tromey@adacore.com>
4698
4699 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
4700
f408d82c
SM
47012020-05-19 Simon Marchi <simon.marchi@efficios.com>
4702
4703 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
4704
98c59b52
PA
47052020-05-19 Pedro Alves <palves@redhat.com>
4706
4707 * NEWS (set exec-file-mismatch): Adjust entry.
4708 * exec.c: Include "build-id.h".
4709 (validate_exec_file): Try to match build IDs instead of filenames.
4710 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
4711 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
4712 and pass down 'warn_if_slow'.
4713 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
4714 gdb_bfd_open_closure to pass it down.
4715 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
4716
4111f652
PA
47172020-05-19 Pedro Alves <palves@redhat.com>
4718
4719 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
4720 * target.c (target_fileio_open_1): Rename to target_fileio_open
4721 and make extern. Use bool.
4722 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
4723 (target_fileio_read_alloc_1): Adjust.
4724 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
4725 (target_fileio_open_warn_if_slow): Delete declaration.
4726
ad80db5b
PA
47272020-05-19 Pedro Alves <palves@redhat.com>
4728
4729 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
4730 Adjust all callers.
4731
1d6ce4d3
YS
47322020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
4733
4734 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
4735 whether disp is negative.
4736
9005fbbb
SM
47372020-05-19 Simon Marchi <simon.marchi@efficios.com>
4738
4739 * symfile.h (struct symfile_segment_data)
4740 <~symfile_segment_data>: Remove.
4741 <segment_info>: Change to std::vector.
4742 * symfile.c (default_symfile_segments): Update.
4743 * elfread.c (elf_symfile_segments): Update.
4744
68b888ff
SM
47452020-05-19 Simon Marchi <simon.marchi@efficios.com>
4746
4747 * symfile.h (struct symfile_segment_data) <struct segment>: New.
4748 <segments>: New.
4749 <segment_bases, segment_sizes>: Remove.
4750 * symfile.c (default_symfile_segments): Update.
4751 * elfread.c (elf_symfile_segments): Update.
4752 * remote.c (remote_target::get_offsets): Update.
4753 * solib-target.c (solib_target_relocate_section_addresses):
4754 Update.
4755
62982abd
SM
47562020-05-19 Simon Marchi <simon.marchi@efficios.com>
4757
4758 * symfile.h (struct symfile_segment_data): Initialize fields.
4759 <~symfile_segment_data>: Add.
4760 (symfile_segment_data_up): New.
4761 (struct sym_fns) <sym_segments>: Return a
4762 symfile_segment_data_up.
4763 (default_symfile_segments): Return a symfile_segment_data_up.
4764 (free_symfile_segment_data): Remove.
4765 (get_symfile_segment_data): Return a symfile_segment_data_up.
4766 * symfile.c (default_symfile_segments): Likewise.
4767 (get_symfile_segment_data): Likewise.
4768 (free_symfile_segment_data): Remove.
4769 (symfile_find_segment_sections): Update.
4770 * elfread.c (elf_symfile_segments): Return a
4771 symfile_segment_data_up.
4772 * remote.c (remote_target::get_offsets): Update.
4773 * solib-target.c (solib_target_relocate_section_addresses):
4774 Update.
4775 * symfile-debug.c (debug_sym_segments): Return a
4776 symfile_segment_data_up.
4777
7f204339
RO
47782020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4779
e52a0f1b
RO
4780 PR build/25981
4781 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
4782 Hardcode register numbers.
4783
7f204339
RO
4784 PR build/25981
4785 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
4786 procfs_find_LDT_entry): Remove.
4787 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
4788 procfs_find_LDT_entry): Remove.
4789 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
4790 Remove.
4791
7f32a4d5
PA
47922020-05-17 Pedro Alves <palves@redhat.com>
4793 Andrew Burgess <andrew.burgess@embecosm.com>
4794 Keno Fischer <keno@juliacomputing.com>
4795
4796 PR gdb/25741
4797 * breakpoint.c (build_target_condition_list): Update comments.
4798 (build_target_command_list): Update comments and skip matching
4799 locations.
4800 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
4801 a separate function. Simplify "set breakpoint auto-hw off"
4802 handling.
4803 (insert_breakpoints): Update comment.
4804 (tracepoint_locations_match): New parameter. For breakpoints,
4805 compare location types too, if the caller wants to.
4806 (handle_automatic_hardware_breakpoints): New functions.
4807 (bp_location_is_less_than): Also sort by location type and
4808 hardware breakpoint length.
4809 (update_global_location_list): Handle "set breakpoint auto-hw on"
4810 here.
4811 (update_breakpoint_locations): Ask breakpoint_locations_match to
4812 ignore location types.
4813
7d93a1e0
SM
48142020-05-16 Simon Marchi <simon.marchi@efficios.com>
4815
4816 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
4817 type::name instead.
4818
d0e39ea2
SM
48192020-05-16 Simon Marchi <simon.marchi@efficios.com>
4820
4821 * gdbtypes.h (struct type) <name, set_name>: New methods.
4822 (TYPE_CODE): Use type::name. Change all call sites used to set
4823 the name to use type::set_name instead.
4824
2dab0c7b
TT
48252020-05-16 Tom Tromey <tom@tromey.com>
4826
4827 * top.c (quit_force): Update.
4828 * infrun.c (handle_no_resumed): Update.
4829 * top.h (all_uis): New function.
4830 (ALL_UIS): Remove.
4831
59f7bd8d
SM
48322020-05-16 Simon Marchi <simon.marchi@efficios.com>
4833
4834 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
4835
9bf058f0
PA
48362020-05-16 Pedro Alves <palves@redhat.com>
4837
4838 * ia64-linux-nat.c
4839 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
4840 Declare method.
4841 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
4842
8f86ae1a
SM
48432020-05-15 Simon Marchi <simon.marchi@efficios.com>
4844
4845 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
4846 (sparc64_adi_info): Likewise.
4847
d6bc0792
TT
48482020-05-15 Tom Tromey <tom@tromey.com>
4849
4850 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
4851 block_objfile.
4852 (lookup_objfile_from_block): Remove.
4853 (lookup_symbol_in_block, lookup_symbol_in_static_block)
4854 (lookup_global_symbol): Use block_objfile.
4855 * symtab.h (lookup_objfile_from_block): Don't declare.
4856 * printcmd.c (clear_dangling_display_expressions): Use
4857 block_objfile.
4858 * parse.c (operator_check_standard): Use block_objfile.
4859
8c14c3a3
TT
48602020-05-15 Tom Tromey <tom@tromey.com>
4861
4862 * language.c (language_alloc_type_symbol): Set
4863 SYMBOL_SECTION.
4864 * symtab.c (initialize_objfile_symbol): Remove.
4865 (allocate_symbol): Remove.
4866 (allocate_template_symbol): Remove.
4867 * dwarf2/read.c (fixup_go_packaging): Use "new".
4868 (new_symbol): Use "new".
4869 (read_variable): Don't call initialize_objfile_symbol. Use
4870 "new".
4871 (read_func_scope): Use "new".
4872 * xcoffread.c (process_xcoff_symbol): Don't call
4873 initialize_objfile_symbol.
4874 (SYMBOL_DUP): Remove.
4875 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
4876 "new".
4877 * symtab.h (allocate_symbol, initialize_objfile_symbol)
4878 (allocate_template_symbol): Don't declare.
4879 (struct symbol): Add copy constructor. Change defaults.
4880 * jit.c (finalize_symtab): Use "new".
4881 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
4882 Use "new".
4883 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
4884 (common_block_end): Use "new".
4885 * mdebugread.c (parse_symbol): Use "new".
4886 (new_symbol): Likewise.
4887
5b4a1a8d
PW
48882020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4889
4890 * NEWS: Mention changes to help and apropos.
4891
57b4f16e
PW
48922020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4893
4894 * command.h (enum command_class): Improve comments, document
4895 that class_alias is for user-defined aliases, give the class
4896 name for each class, remove unused class_xdb.
4897 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
4898 * breakpoint.c (_initialize_breakpoint): Replace class_alias
4899 by a precise class.
4900 * infcmd.c (_initialize_infcmd): Likewise.
4901 * reverse.c (_initialize_reverse): Likewise.
4902 * stack.c (_initialize_stack): Likewise.
4903 * symfile.c (_initialize_symfile): Likewise.
4904 * tracepoint.c (_initialize_tracepoint): Likewise.
4905
7c05caf7
PW
49062020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4907
4908 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
4909 when their aliased command is traversed.
4910 (help_cmd): Add fput_command_names_styled call to
4911 output command name and aliases when command has an alias.
4912
3b3aaacb
PW
49132020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4914
4915 * cli/cli-decode.h (help_cmd_list): Remove declaration.
4916 * cli/cli-decode.c (help_cmd_list): Declare as static,
4917 remove prefix argument, use bool for recurse arg, rework to show the aliases of
4918 a command together with the command.
4919 (fput_command_name_styled, fput_command_names_styled): New functions.
4920 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
4921 fput_command_name_styled.
4922 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
4923 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
4924
7aa1b46f
PW
49252020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4926
4927 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
4928 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
4929 * command.h (cmd_show_list): Likewise.
4930 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
4931 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
4932
89bcba74
PW
49332020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4934
4935 * unittests/command-def-selftests.c (traverse_command_structure):
4936 Verify all commands of a list have the same prefix command and
4937 that only the top cmdlist commands have a null prefix.
4938
3f4d92eb
PW
49392020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4940
4941 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
4942 as prefix, not one of its aliases.
4943 (set_cmd_prefix): Remove.
4944 (do_add_cmd): Centralize the setting of the prefix of a command, when
4945 command is defined after its full chain of prefix commands.
4946 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
4947 (add_setshow_cmd_full): Likewise.
4948 (update_prefix_field_of_prefixed_commands): New function.
4949 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
4950 update_prefix_field_of_prefixed_commands.
4951 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
4952 addresses of remote_set_cmdlist and remote_show_cmdlist given
4953 as argument, not the address of an argument.
4954 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
4955 * gdb/remote.c (_initialize_remote): Likewise.
4956
0605465f
PW
49572020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4958
4959 * cli/cli-cmds.c (alias_command): Check for an existing alias
4960 using lookup_cmd_composition, as valid_command_p is too strict
4961 and forbids aliases that are the prefix of an existing alias
4962 or command.
4963 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
4964 command is properly recognised as a valid command.
4965
58e6ac70
PW
49662020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4967
4968 * unittests/help-doc-selftests.c: Rename to
4969 unittests/command-def-selftests.c
4970 * unittests/command-def-selftests.c (help_doc_tests): Update some
4971 comments.
4972 (command_structure_tests, traverse_command_structure): New namespace
4973 and function.
4974 (command_structure_invariants_tests): New function.
4975 (_initialize_command_def_selftests) Renamed from
4976 _initialize_help_doc_selftests, register command_structure_invariants
4977 selftest.
4978
a7b9ceb8
PW
49792020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4980
4981 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
4982 an alias of 'show'.
4983
b2188a06
JB
49842020-05-15 Joel Brobecker <brobecker@adacore.com>
4985
4986 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
4987 ada_is_fixed_point_type. Update all callers.
4988 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
4989 all callers.
4990 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
4991 Update all callers.
4992 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
4993 print_fixed_point_type. Update all callers.
4994 * ada-valprint.c (ada_value_print_num): Replace call to
4995 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
4996
a51951c2
KB
49972020-05-14 Kevin Buettner <kevinb@redhat.com>
4998
4999 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
5000 processors.
5001 (cpu_supports_bts): Add CV_AMD case.
5002
29d6859f
LM
50032020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
5004 Simon Marchi <simon.marchi@efficios.com>
5005
5006 * infrun.c (stop_all_threads): Collect multiple wait events at
5007 each pass.
5008
78134374
SM
50092020-05-14 Simon Marchi <simon.marchi@efficios.com>
5010
5011 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
5012 type::code instead.
5013
67607e24
SM
50142020-05-14 Simon Marchi <simon.marchi@efficios.com>
5015
5016 * gdbtypes.h (struct type) <code, set_code>: New methods.
5017 (TYPE_CODE): Use type::code. Change all call sites used to set
5018 the code to use type::set_code instead.
5019
a05575d3
TBA
50202020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5021 Tom de Vries <tdevries@suse.de>
5022 Pedro Alves <palves@redhat.com>
5023
5024 PR threads/25478
5025 * infrun.c (stop_all_threads): Do NOT ignore
5026 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
5027 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
5028 received.
5029 (handle_no_resumed): Remove code handling a live inferior with no
5030 threads.
5031 * remote.c (has_single_non_exited_thread): New.
5032 (remote_target::update_thread_list): Do not delete a thread if is
5033 the last thread of the process.
5034 * thread.c (thread_select): Call delete_exited_threads instead of
5035 prune_threads.
5036
6ad82919
TBA
50372020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5038
5039 * infrun.c (stop_all_threads): Enable/disable thread events of all
5040 targets. Move a debug message denoting the end of the function
5041 into the SCOPED_EXIT block.
5042
d890404b
TBA
50432020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5044
5045 * process-stratum-target.h: Include <set>.
5046 (all_non_exited_process_targets, switch_to_target_no_thread): New
5047 function declarations.
5048 * process-stratum-target.c (all_non_exited_process_targets)
5049 (switch_to_target_no_thread): New function implementations.
5050
293b3ebc
TBA
50512020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5052
5053 * infrun.c (handle_inferior_event): Extract out a piece of code
5054 into...
5055 (mark_non_executing_threads): ...this new function.
5056
7ca9b62a
TBA
50572020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5058
5059 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
5060 use.
5061
fc75c28b
TBA
50622020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5063
5064 * regcache.c (regcache_read_pc_protected): New function
5065 implementation that returns 0 if the PC cannot read via
5066 'regcache_read_pc'.
5067 * infrun.c (proceed): Call 'regcache_read_pc_protected'
5068 instead of 'regcache_read_pc'.
5069 (keep_going_pass_signal): Ditto.
5070
a89febbd
TT
50712020-05-13 Tom Tromey <tromey@adacore.com>
5072
5073 * ada-lang.c (align_value): Remove.
5074 (ada_template_to_fixed_record_type_1): Use align_up.
5075
f7e23710
TBA
50762020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5077
5078 * async-event.c: Update the copyright year.
5079 * async-event.h: Update the copyright year.
5080
02ff80c2
SM
50812020-05-12 Simon Marchi <simon.marchi@efficios.com>
5082
5083 * objfiles.h (is_addr_in_objfile,
5084 shared_objfile_contains_address_p): Return bool.
5085 * objfile.c (is_addr_in_objfile,
5086 shared_objfile_contains_address_p): Return bool.
5087
4fd6c7e8
TT
50882020-05-11 Tom Tromey <tromey@adacore.com>
5089
5090 * cli/cli-cmds.c (info_command): Restore.
5091 (_initialize_cli_cmds): Use add_prefix_command for "info".
5092 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
5093
5eb68a39
TT
50942020-05-11 Tom Tromey <tromey@adacore.com>
5095
5096 * ada-lang.c (ada_value_primitive_field): Now public.
5097 * ada-lang.h (ada_value_primitive_field): Declare.
5098 * ada-valprint.c (print_field_values): Use
5099 ada_value_primitive_field for wrapper fields.
5100
7666722f
TV
51012020-05-11 Tom de Vries <tdevries@suse.de>
5102
5103 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
5104 MODULE_DOMAIN.
5105
3ee6bb11
TV
51062020-05-11 Tom de Vries <tdevries@suse.de>
5107
5108 PR symtab/25941
5109 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
5110 with length 0, if not gdb-produced.
5111 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
5112
43434996
TV
51132020-05-09 Tom de Vries <tdevries@suse.de>
5114
5115 PR gdb/25955
5116 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
5117 calculation.
5118
2f78cffc
TT
51192020-05-09 Tom Tromey <tom@tromey.com>
5120
5121 * top.c (server_command): Now bool.
5122 * top.h (server_command): Now bool.
5123
4f7bc5ed
TT
51242020-05-08 Tom Tromey <tromey@adacore.com>
5125
5126 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
5127 already being processed.
5128
8be4b118
TT
51292020-05-08 Tom Tromey <tom@tromey.com>
5130
5131 * printcmd.c (struct display) <next>: Remove.
5132 <display>: New constructor.
5133 <exp_string>: Now a std::string.
5134 <enabled_p>: Now a bool.
5135 (display_number): Move definition earlier.
5136 (displays): Rename from display_chain. Now a std::vector.
5137 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
5138 (display_command): Update.
5139 (do_one_display, disable_display)
5140 (enable_disable_display_command, do_enable_disable_display):
5141 Update.
5142 (free_display): Remove.
5143 (clear_displays): Rewrite.
5144 (delete_display): Update.
5145 (map_display_numbers): Use function_view. Remove "data"
5146 parameter. Update.
5147 (do_delete_display): Remove.
5148 (undisplay_command): Update.
5149 (do_one_display, do_displays, disable_display)
5150 (info_display_command): Update.
5151 (do_enable_disable_display): Remove.
5152 (enable_disable_display_command)
5153 (clear_dangling_display_expressions): Update.
5154
94c93c35
TT
51552020-05-08 Tom Tromey <tom@tromey.com>
5156
5157 * symtab.c (set_symbol_cache_size)
5158 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
5159 (maintenance_print_symbol_cache_statistics): Update.
5160 * symmisc.c (print_symbol_bcache_statistics)
5161 (print_objfile_statistics, maintenance_print_objfiles)
5162 (maintenance_info_symtabs, maintenance_check_symtabs)
5163 (maintenance_expand_symtabs, maintenance_info_line_tables):
5164 Update.
5165 * symfile-debug.c (set_debug_symfile): Update.
5166 * source.c (forget_cached_source_info): Update.
5167 * python/python.c (gdbpy_progspaces): Update.
5168 * psymtab.c (maintenance_info_psymtabs): Update.
5169 * probe.c (parse_probes): Update.
5170 * linespec.c (iterate_over_all_matching_symtabs)
5171 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
5172 * guile/scm-progspace.c (gdbscm_progspaces): Update.
5173 * exec.c (exec_target::close): Update.
5174 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
5175 * breakpoint.c (print_one_breakpoint_location)
5176 (create_longjmp_master_breakpoint)
5177 (create_std_terminate_master_breakpoint): Update.
5178 * progspace.c (program_spaces): Now a std::vector.
5179 (maybe_new_address_space): Update.
5180 (add_program_space): Remove.
5181 (program_space::program_space): Update.
5182 (remove_program_space): Update.
5183 (number_of_program_spaces): Remove.
5184 (print_program_space, update_address_spaces): Update.
5185 * progspace.h (program_spaces): Change type.
5186 (ALL_PSPACES): Remove.
5187 (number_of_program_spaces): Don't declare.
5188 (struct program_space) <next>: Remove.
5189
a1fd1ac9
TT
51902020-05-08 Tom Tromey <tom@tromey.com>
5191
5192 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
5193 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
5194 (enable_break): Update.
5195 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
5196 (frv_fdpic_find_canonical_descriptor): Update.
5197 (frv_fetch_objfile_link_map): Update.
5198 * progspace.c (program_space::free_all_objfiles): Update.
5199 (program_space::solibs): New method.
5200 * progspace.h (struct program_space) <solibs>: New method.
5201 * solist.h (master_so_list): Don't declare.
5202 (ALL_SO_LIBS): Remove.
5203 * solib.h (so_list_head): Remove.
5204 (update_solib_list): Update comment.
5205 * solib.c (master_so_list): Remove.
5206 (solib_used, update_solib_list, solib_add)
5207 (info_sharedlibrary_command, clear_solib)
5208 (reload_shared_libraries_1, remove_user_added_objfile): Update.
5209
38eae084
TT
52102020-05-08 Tom Tromey <tom@tromey.com>
5211
5212 * extension.c (extension_languages): Now a std::array.
5213 (ALL_EXTENSION_LANGUAGES): Remove.
5214 (get_ext_lang_defn, get_ext_lang_of_file)
5215 (eval_ext_lang_from_control_command): Update.
5216 (finish_ext_lang_initialization)
5217 (auto_load_ext_lang_scripts_for_objfile)
5218 (ext_lang_type_printers::ext_lang_type_printers)
5219 (apply_ext_lang_type_printers)
5220 (ext_lang_type_printers::~ext_lang_type_printers)
5221 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
5222 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
5223 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
5224 (get_matching_xmethod_workers, ext_lang_colorize)
5225 (ext_lang_before_prompt): Update.
5226 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
5227
596dc4ad
TT
52282020-05-08 Tom Tromey <tom@tromey.com>
5229
5230 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
5231 overload.
5232 <swap_string, m_string>: Remove.
5233 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
5234 Update.
5235 * stabsread.c (define_symbol, read_type): Update.
5236 * linespec.c (find_linespec_symbols): Update.
5237 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
5238 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
5239 * dbxread.c (read_dbx_symtab): Update.
5240 * cp-support.h (cp_canonicalize_string_full)
5241 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
5242 Return unique_xmalloc_ptr.
5243 * cp-support.c (inspect_type): Update.
5244 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
5245 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
5246 Likewise.
5247 * c-typeprint.c (print_name_maybe_canonical): Update.
5248 * break-catch-throw.c (check_status_exception_catchpoint):
5249 Update.
5250
bf4cb9be
TV
52512020-05-08 Tom de Vries <tdevries@suse.de>
5252
5253 * infrun.c (follow_fork): Copy current_line and current_symtab to
5254 child thread.
5255
a1b68f28
SM
52562020-05-07 Simon Marchi <simon.marchi@efficios.com>
5257
5258 * async-event.c (struct async_signal_handler, struct
5259 async_event_handler): Reformat, remove typedef.
5260
98d48915
SM
52612020-05-07 Simon Marchi <simon.marchi@efficios.com>
5262
5263 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
5264 access thistype->main_type->dyn_prop_list directly.
5265
7aa91313
SM
52662020-05-07 Simon Marchi <simon.marchi@efficios.com>
5267
5268 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
5269 (remove_dyn_prop): Remove. Update all users to use
5270 type::remove_dyn_prop.
5271 * gdbtypes.c (remove_dyn_prop): Rename to...
5272 (type::remove_dyn_prop): ... this.
5273
5c54719c
SM
52742020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
5275
5276 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
5277 (add_dyn_prop): Remove. Update all users to use
5278 type::add_dyn_prop.
5279 * gdbtypes.c (add_dyn_prop): Rename to...
5280 (type::add_dyn_prop): ... this.
5281
24e99c6c
SM
52822020-05-07 Simon Marchi <simon.marchi@efficios.com>
5283
5284 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
5285 (get_dyn_prop): Remove. Update all users to use
5286 type::dyn_prop.
5287 * gdbtypes.c (get_dyn_prop): Rename to...
5288 (type::dyn_prop): ... this.
5289
0d4bf016
SM
52902020-05-06 Simon Marchi <simon.marchi@efficios.com>
5291
5292 * gdbtypes.h (struct main_type) <flag_static>: Remove.
5293
ac4a4f1c
SM
52942020-05-06 Simon Marchi <simon.marchi@efficios.com>
5295
5296 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
5297 instruction, skip it if it's there.
5298
a3bbacc1
SM
52992020-05-05 Simon Marchi <simon.marchi@efficios.com>
5300
5301 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
5302
c3236f84
SM
53032020-05-04 Simon Marchi <simon.marchi@efficios.com>
5304
5305 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
5306 * gdbtypes.c (recursive_dump_type): Remove use of
5307 TYPE_INCOMPLETE.
5308
3b6acaee
TT
53092020-05-03 Tom Tromey <tom@tromey.com>
5310
5311 * breakpoint.c (catch_command, tcatch_command): Remove.
5312 (_initialize_breakpoint): Use add_basic_prefix_cmd,
5313 add_show_prefix_cmd.
5314 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
5315 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
5316 Remove.
5317 (add_internal_problem_command): Use add_basic_prefix_cmd,
5318 add_show_prefix_cmd.
5319 * mips-tdep.c (set_mipsfpu_command): Remove.
5320 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
5321 * dwarf2/index-cache.c (set_index_cache_command): Remove.
5322 (_initialize_index_cache): Use add_basic_prefix_cmd.
5323 * memattr.c (dummy_cmd): Remove.
5324 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
5325 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
5326 (_initialize_tui_win): Use add_basic_prefix_cmd,
5327 add_show_prefix_cmd.
5328 * cli/cli-logging.c (set_logging_command): Remove.
5329 (_initialize_cli_logging): Use add_basic_prefix_cmd,
5330 add_show_prefix_cmd.
5331 (show_logging_command): Remove.
5332 * target.c (target_command): Remove.
5333 (add_target): Use add_basic_prefix_cmd.
5334
a51119cd
HD
53352020-05-02 Hannes Domani <ssbssa@yahoo.de>
5336
5337 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
5338
652fc23a 53392020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 5340
652fc23a
PW
5341 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
5342 info_command.
5343
117539e6
KR
53442020-04-30 Kamil Rytarowski <n54@gmx.com>
5345
5346 * nbsd-nat.c (nbsd_enable_proc_events)
5347 (nbsd_nat_target::post_startup_inferior): Add.
5348 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
5349 (nbsd_nat_target::update_thread_list): Rewrite.
5350 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
5351 "PTRACE_LWP_CREATE".
5352 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
5353
102e38eb 53542020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 5355
102e38eb
PW
5356 * stack.c (_initialize_stack): Remove duplicated creation
5357 of "frame" command and "f" alias.
5358
ee9d1e5f
HD
53592020-04-30 Hannes Domani <ssbssa@yahoo.de>
5360
5361 PR gdb/18706
5362 * gdbtypes.c (check_typedef): Calculate size of array of
5363 stubbed type.
5364
627c7fb8
HD
53652020-04-30 Hannes Domani <ssbssa@yahoo.de>
5366
5367 PR gdb/15559
5368 * i386-tdep.c (i386_push_dummy_call): Call
5369 i386_thiscall_push_dummy_call.
5370 (i386_thiscall_push_dummy_call): New function.
5371 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
5372 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
5373 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
5374
ffc2844e
SM
53752020-04-29 Simon Marchi <simon.marchi@efficios.com>
5376
5377 * gdbarch.sh (do_read): Add shellcheck disable directive for
5378 warning SC2162.
5379
1207375d
SM
53802020-04-29 Simon Marchi <simon.marchi@efficios.com>
5381
5382 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
5383 "referenced but not assigned" warning.
5384
9fdb2916
SM
53852020-04-29 Simon Marchi <simon.marchi@efficios.com>
5386
5387 * gdbarch.sh: Remove code that sets fallbackdefault.
5388
759cea5e
SM
53892020-04-29 Simon Marchi <simon.marchi@efficios.com>
5390
5391 * gdbarch.sh: Use shell operators && and || instead of
5392 -a and -o.
5393
cb02ab24
SM
53942020-04-29 Simon Marchi <simon.marchi@efficios.com>
5395
5396 * gdbarch.sh: Use $(...) instead of `...`.
5397
a6fc5ffc
SM
53982020-04-29 Simon Marchi <simon.marchi@efficios.com>
5399
5400 * gdbarch.sh: Use double quotes around variables.
5401
8d113d13
SM
54022020-04-29 Simon Marchi <simon.marchi@efficios.com>
5403
5404 * gdbarch.sh: Use %s with printf, instead of variables in the
5405 format string.
5406
ed6acedd
TT
54072020-04-29 Tom Tromey <tromey@adacore.com>
5408
5409 PR ada/25875:
5410 * dwarf2/read.c (update_enumeration_type_from_children): Compute
5411 type fields here.
5412 (read_enumeration_type): Call
5413 update_enumeration_type_from_children later. Update comments.
5414 (process_enumeration_scope): Don't create type fields.
5415
b68b1b58
KR
54162020-04-29 Kamil Rytarowski <n54@gmx.com>
5417
5418 * nbsd-tdep.c: Include "xml-syscall.h".
5419 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
5420
f94b2e03
KR
54212020-04-29 Kamil Rytarowski <n54@gmx.com>
5422
5423 * nbsd-nat.c: Include "sys/wait.h".
5424 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
5425 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
5426 (nbsd_nat_target::remove_exec_catchpoint)
5427 (nbsd_nat_target::set_syscall_catchpoint): Add.
5428 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
5429 (nbsd_nat_target::insert_exec_catchpoint)
5430 (nbsd_nat_target::remove_exec_catchpoint)
5431 (nbsd_nat_target::set_syscall_catchpoint): Add.
5432 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
5433 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
5434 `nbsd_get_syscall_number'.
5435
fc49bc72
TT
54362020-04-29 Tom Tromey <tom@tromey.com>
5437
5438 * stack.c (print_block_frame_labels): Remove.
5439
d642b692
HD
54402020-04-29 Hannes Domani <ssbssa@yahoo.de>
5441
5442 PR gdb/17320
5443 * ada-valprint.c (val_print_packed_array_elements): Move array
5444 end bracket to new line.
5445 (ada_val_print_string): Remove extra spaces before first array
5446 element.
5447 * c-valprint.c (c_value_print_array): Likewise.
5448 * m2-valprint.c (m2_print_array_contents): Likewise.
5449 (m2_value_print_inner): Likewise.
5450 * p-valprint.c (pascal_value_print_inner): Likewise.
5451 * valprint.c (generic_val_print_array): Likewise.
5452 (value_print_array_elements): Move first array element and array
5453 end bracket to new line.
5454
ea90f227
TV
54552020-04-29 Tom de Vries <tdevries@suse.de>
5456
5457 PR symtab/25889
5458 * linespec.c (find_method): Fix ix calculation.
5459
4498ef4f
KR
54602020-04-28 Kamil Rytarowski <n54@gmx.com>
5461
5462 * syscalls/update-netbsd.sh: New file.
5463 * syscalls/netbsd.xml: Regenerate.
5464 * data-directory/Makefile.in: Register `netbsd.xml' in
5465 `SYSCALLS_FILES'.
5466
a55e30b5
SM
54672020-04-28 Simon Marchi <simon.marchi@efficios.com>
5468
5469 * syscalls/update-freebsd.sh: Add double quotes.
5470
2b2fbab8
TT
54712020-04-28 Tom Tromey <tom@tromey.com>
5472
5473 * NEWS: Update.
5474 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
5475 (cmdpy_init): Allow class_tui.
5476
a65189c9
TV
54772020-04-28 Mark Williams <mark@myosotissp.com>
5478
5479 PR gdb/24480
5480 * dwarf2read.c: Add missing assingments to list_in_scope when
5481 start_symtab was already called.
5482
1b95cdb7
SM
54832020-04-28 Simon Marchi <simon.marchi@efficios.com>
5484
5485 PR gdb/25881
5486 * dwarf2/read.c (offset_map_type): Use
5487 gdb:hash_enum<sect_offset> as hash function.
5488
15cd93d0
TV
54892020-04-28 Tom de Vries <tdevries@suse.de>
5490
5491 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
5492 with DW_AT_signature.
5493
1eb39914
SM
54942020-04-27 Simon Marchi <simon.marchi@efficios.com>
5495
5496 * configure.ac: Remove check for fs_base/gs_base in
5497 user_regs_struct.
5498 * configure: Re-generate.
5499 * config.in: Re-generate.
5500 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
5501 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
5502 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
5503
991a3e2e
LM
55042020-04-27 Luis Machado <luis.machado@linaro.org>
5505
5506 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
5507 problematic inline frame unwinding situation.
5508 * frame.c (frame_id_computed_p): New function.
5509 * frame.h (frame_id_computed_p): New prototype.
5510
361ba0e8
TT
55112020-04-26 Tom Tromey <tom@tromey.com>
5512
5513 * command.h (enum command_class) <class_pseudo>: Remove.
5514
bc3609fd
PW
55152020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5516
5517 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
5518 and whitespace.
5519
b9771db7
KR
55202020-04-25 Kamil Rytarowski <n54@gmx.com>
5521
ec16513e
SM
5522 * inf-ptrace.c (inf_ptrace_target::wait): Remove
5523 `PT_GET_PROCESS_STATE' block.
b9771db7 5524
7151c1af
TT
55252020-04-24 Tom Tromey <tom@tromey.com>
5526
5527 * symtab.h (symbol_get_demangled_name): Don't declare.
5528 * symtab.c (symbol_get_demangled_name): Remove.
5529 (general_symbol_info::natural_name)
5530 (general_symbol_info::demangled_name): Update.
5531
906bb4c5
TT
55322020-04-24 Tom Tromey <tom@tromey.com>
5533
5534 PR rust/25025:
5535 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
5536
bcfe6157
TT
55372020-04-24 Tom Tromey <tom@tromey.com>
5538
5539 PR symtab/12707:
5540 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
5541 exists.
5542 (new_symbol): Likewise.
5543 * compile/compile-object-load.c (get_out_value_type): Use
5544 symbol_matches_search_name.
5545
f049a313
TT
55462020-04-24 Tom Tromey <tom@tromey.com>
5547
5548 * dwarf2/read.c (add_partial_symbol): Do not call
5549 compute_and_set_names.
5550
76e288d1
TT
55512020-04-24 Tom Tromey <tom@tromey.com>
5552
5553 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
5554 overload.
5555
2467f4f6
TT
55562020-04-24 Tom Tromey <tom@tromey.com>
5557
5558 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
5559 (add_psymbol_to_list): New overload. Make old overload call new
5560 one.
5561 * psympriv.h (add_psymbol_to_list): New overload.
5562
e61108c9
TT
55632020-04-24 Tom Tromey <tom@tromey.com>
5564
5565 * dwarf2/read.c (partial_die_info::read) <case
5566 DW_AT_linkage_name>: Use value_as_string.
5567 (dwarf2_string_attr): Use value_as_string.
5568 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
5569 method.
5570 * dwarf2/attribute.c (attribute::value_as_string): New method.
5571
8c87a452
TT
55722020-04-24 Tom Tromey <tom@tromey.com>
5573
5574 * symtab.c (general_symbol_info::natural_name)
5575 (general_symbol_info::demangled_name): Check for language_rust.
5576
787de330
TT
55772020-04-24 Tom Tromey <tom@tromey.com>
5578
5579 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
5580 (dwarf2_physname): ... from here.
5581 (partial_die_info::read): Add Rust "{" hack.
5582
ff985671
TT
55832020-04-24 Tom Tromey <tom@tromey.com>
5584
5585 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
5586 method.
5587 (symbol_set_demangled_name): Don't declare.
5588 * symtab.c (general_symbol_info::set_demangled_name): Rename from
5589 symbol_set_demangled_name.
5590 (general_symbol_info::set_language)
5591 (general_symbol_info::compute_and_set_names): Update.
5592 * minsyms.c (minimal_symbol_reader::install): Update.
5593 * dwarf2/read.c (new_symbol): Update.
5594
1acda803
TT
55952020-04-24 Tom Tromey <tromey@adacore.com>
5596
5597 PR python/23662:
5598 * python/py-type.c (convert_field): Handle
5599 FIELD_LOC_KIND_DWARF_BLOCK.
5600 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
5601 (typy_get_dynamic): Nw function.
5602 (type_object_getset): Add "dynamic".
5603 * NEWS: Add entry.
5604
d656f129
TT
56052020-04-24 Tom Tromey <tromey@adacore.com>
5606
5607 * ada-typeprint.c (print_choices, print_variant_part)
5608 (print_record_field_types_dynamic): New functions.
5609 (print_record_field_types): Use print_record_field_types_dynamic.
5610
7d79de9a
TT
56112020-04-24 Tom Tromey <tromey@adacore.com>
5612
5613 * dwarf2/read.c (handle_data_member_location): New overload.
5614 (dwarf2_add_field): Use it.
5615 (decode_locdesc): Add "computed" parameter. Update comment.
5616 * gdbtypes.c (is_dynamic_type_internal): Also look for
5617 FIELD_LOC_KIND_DWARF_BLOCK.
5618 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
5619 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
5620 virtual base classes.
5621 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
5622 FIELD_LOC_KIND_DWARF_BLOCK.
5623
f8e89861
TT
56242020-04-24 Tom Tromey <tromey@adacore.com>
5625
5626 * dwarf2/read.c (read_structure_type): Handle dynamic length.
5627 * gdbtypes.c (is_dynamic_type_internal): Check
5628 TYPE_HAS_DYNAMIC_LENGTH.
5629 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
5630 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
5631 New macros.
5632 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
5633 constant.
5634
9c6a1327
TT
56352020-04-24 Tom Tromey <tromey@adacore.com>
5636
5637 * dwarf2/read.c (struct variant_field): Rewrite.
5638 (struct variant_part_builder): New.
5639 (struct nextfield): Remove "variant" field. Add "offset".
5640 (struct field_info): Add "current_variant_part" and
5641 "variant_parts".
5642 (alloc_discriminant_info): Remove.
5643 (alloc_rust_variant): New function.
5644 (quirk_rust_enum): Update.
5645 (dwarf2_add_field): Set "offset" member. Don't handle
5646 DW_TAG_variant_part.
5647 (offset_map_type): New typedef.
5648 (convert_variant_range, create_one_variant)
5649 (create_one_variant_part, create_variant_parts)
5650 (add_variant_property): New functions.
5651 (dwarf2_attach_fields_to_type): Call add_variant_property.
5652 (read_structure_type): Don't handle DW_TAG_variant_part.
5653 (handle_variant_part, handle_variant): New functions.
5654 (handle_struct_member_die): Use them.
5655 (process_structure_scope): Don't handle variant parts.
5656 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
5657 (struct discriminant_info): Remove.
5658 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
5659 (struct main_type) <flag_discriminated_union>: Remove.
5660 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
5661 (rust_enum_variant): Return int. Remove "contents". Rewrite.
5662 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
5663 Update.
5664 * valops.c (value_union_variant): Remove.
5665 * value.h (value_union_variant): Don't declare.
5666
b249d2c2
TT
56672020-04-24 Tom Tromey <tromey@adacore.com>
5668
5669 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
5670 (ada_value_primitive_packed_val): Update.
5671 * ada-valprint.c (ada_value_print_1): Update.
5672 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
5673 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
5674 just an address. Use evaluate_for_locexpr_baton.
5675 (dwarf2_evaluate_property): Update.
5676 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
5677 array_view.
5678 * findvar.c (default_read_var_value): Update.
5679 * gdbtypes.c (compute_variant_fields_inner)
5680 (resolve_dynamic_type_internal): Update.
5681 (resolve_dynamic_type): Change type of valaddr parameter.
5682 * gdbtypes.h (resolve_dynamic_type): Update.
5683 * valarith.c (value_subscripted_rvalue): Update.
5684 * value.c (value_from_contents_and_address): Update.
5685
61122aa9
TT
56862020-04-24 Tom Tromey <tromey@adacore.com>
5687
5688 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
5689 "push_initial_value" parameter.
5690 (dwarf2_evaluate_property): Likewise.
5691 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
5692
ef83a141
TT
56932020-04-24 Tom Tromey <tromey@adacore.com>
5694
5695 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
5696 (variant::matches, compute_variant_fields_recurse)
5697 (compute_variant_fields_inner, compute_variant_fields): New
5698 functions.
5699 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
5700 Use resolved_type after type is made.
5701 (operator==): Add new cases.
5702 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
5703 (struct discriminant_range, struct variant, struct variant_part):
5704 New.
5705 (union dynamic_prop_data) <variant_parts, original_type>: New
5706 members.
5707 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
5708 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
5709 constants.
5710 * value.c (unpack_bits_as_long): Now public.
5711 * value.h (unpack_bits_as_long): Declare.
5712
675127ec
TT
57132020-04-24 Tom Tromey <tromey@adacore.com>
5714
5715 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
5716 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
5717
9852ceef
HD
57182020-04-24 Hannes Domani <ssbssa@yahoo.de>
5719
5720 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
5721
7632c6ce
KR
57222020-04-24 Kamil Rytarowski <n54@gmx.com>
5723
5724 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
5725 (remove_fork_catchpoint, post_startup_inferior)
5726 (post_attach): Move...
5727 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
5728 (remove_fork_catchpoint, post_startup_inferior)
5729 (post_attach): ...here.
5730 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
5731 (remove_fork_catchpoint, post_startup_inferior)
5732 (post_attach): Move...
5733 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
5734 (remove_fork_catchpoint, post_startup_inferior)
5735 (post_attach): ...here.
5736
7be2bb4f
TT
57372020-04-24 Tom Tromey <tromey@adacore.com>
5738
5739 * nat/windows-nat.h (struct windows_thread_info)
5740 <pc_adjusted>: New member.
5741 * windows-nat.c (windows_fetch_one_register): Check
5742 pc_adjusted.
5743 (windows_nat_target::get_windows_debug_event)
5744 (windows_nat_target::wait): Set pc_adjusted.
5745
f80cb3b4
TV
57462020-04-24 Tom de Vries <tdevries@suse.de>
5747
5748 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
5749 Run gdb-add-index inside temp dir.
5750
29514b87
TT
57512020-04-23 Tom Tromey <tromey@adacore.com>
5752
5753 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
5754 in loop.
5755
5939967b
LM
57562020-04-23 Luis Machado <luis.machado@linaro.org>
5757
5758 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
5759 get_frame_register instead of gdbarch_unwind_pc.
5760
70bc38f5
TV
57612020-04-23 Tom de Vries <tdevries@suse.de>
5762
5763 * symtab.c (lookup_global_symbol): Prefer def over decl.
5764
de82891c
TV
57652020-04-23 Tom de Vries <tdevries@suse.de>
5766
5767 PR symtab/25807
5768 * block.c (best_symbol, better_symbol): Promote to external.
5769 * block.h (best_symbol, better_symbol): Declare.
5770 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
5771 decl.
5772
ecc6c606
TT
57732020-04-23 Tom Tromey <tromey@adacore.com>
5774
5775 PR ada/25837:
5776 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
5777 "const char *", not a "const std::string &".
5778 <name_and_matcher::operator==>: Update.
5779 * unittests/lookup_name_info-selftests.c: Change type of
5780 "result".
5781
740480b8
TT
57822020-04-23 Tom Tromey <tom@tromey.com>
5783
5784 * inferior.h (iterate_over_inferiors): Don't declare.
5785 * inferior.c (iterate_over_inferiors): Remove.
5786 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
5787 Remove.
5788 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
5789 use iterate_over_inferiors.
5790 (darwin_resume_inferior_it)
5791 (struct resume_inferior_threads_param)
5792 (darwin_resume_inferior_threads_it): Remove.
5793 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
5794
ae3ab1f0
TV
57952020-04-23 Tom de Vries <tdevries@suse.de>
5796
5797 * blockframe.c (find_pc_partial_function): Use
5798 find_pc_sect_compunit_symtab rather than
5799 objfile->sf->qf->find_pc_sect_compunit_symtab.
5800
317d2668
TV
58012020-04-22 Tom de Vries <tdevries@suse.de>
5802
5803 PR symtab/25764
5804 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
5805 in psymtabs.
5806
eea9e357
TV
58072020-04-22 Tom de Vries <tdevries@suse.de>
5808
5809 PR symtab/25801
5810 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
5811 symtabs.
5812
3d5afab3
TV
58132020-04-22 Tom de Vries <tdevries@suse.de>
5814
5815 PR symtab/25700
5816 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
5817 CU if already created.
5818
d43b7a2d
TBA
58192020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5820
5821 * infrun.c (displaced_step_fixup): Switch to the event_thread
5822 before calling displaced_step_restore, not after.
5823
d89edf9b
MM
58242020-04-21 Markus Metzger <markus.t.metzger@intel.com>
5825
5826 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
5827 its inferior is not recorded by us.
5828 (record_btrace_target_open): Replace call to
5829 all_non_exited_threads () with call to current_inferior
5830 ()->non_exited_threads ().
5831 (record_btrace_target::stop_recording): Likewise.
5832 (record_btrace_target::close): Likewise.
5833 (record_btrace_target::wait): Likewise.
5834 (record_btrace_target::record_stop_replaying): Likewise.
5835
5897fd49
MM
58362020-04-21 Markus Metzger <markus.t.metzger@intel.com>
5837
5838 * btrace.c (btrace_enable): Throw an error on double enables and
5839 when enabling recording fails.
5840 (btrace_disable): Throw an error if the thread is not recorded.
5841
1a476b6d
MM
58422020-04-21 Markus Metzger <markus.t.metzger@intel.com>
5843
5844 * record-btrace.c (record_btrace_target::fetch_registers): Forward
5845 request if we do not have a thread_info.
5846
4778a5f8
TV
58472020-04-21 Tom de Vries <tdevries@suse.de>
5848
5849 PR gdb/25471
5850 * thread.c
5851 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
5852 exception in get_frame_id.
5853
0fa7617d
TT
58542020-04-20 Tom Tromey <tromey@adacore.com>
5855
5856 * python/python.c (struct gdbpy_event): Mark move constructor as
5857 noexcept.
5858 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
5859 constructor as noexcept.
5860 * completer.h (struct completion_result): Mark move constructor as
5861 noexcept.
5862 * completer.c (completion_result::completion_result): Use
5863 initialization style. Don't call reset_match_list.
5864
ad23bda0
MS
58652020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
5866
5867 * MAINTAINERS (Write After Approval): Add myself.
5868
45e1f031
TT
58692020-04-18 Tom Tromey <tom@tromey.com>
5870
5871 * windows-tdep.c (init_w32_command_list)
5872 (w32_prefix_command_valid): Restore.
5873 (_initialize_windows_tdep): Call init_w32_command_list.
5874
08feed99
TT
58752020-04-18 Tom Tromey <tom@tromey.com>
5876
5877 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
5878 * value.c (value_fn_field): Update.
5879 * valops.c (find_function_in_inferior)
5880 (value_allocate_space_in_inferior): Update.
5881 * tui/tui-winsource.c (tui_update_source_windows_with_line):
5882 Update.
5883 * tui/tui-source.c (tui_source_window::set_contents): Update.
5884 * symtab.c (lookup_global_or_static_symbol)
5885 (find_function_start_sal_1, skip_prologue_sal)
5886 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
5887 * symmisc.c (dump_msymbols, dump_symtab_1)
5888 (maintenance_print_one_line_table): Update.
5889 * symfile.c (init_entry_point_info, section_is_mapped)
5890 (list_overlays_command, simple_read_overlay_table)
5891 (simple_overlay_update_1): Update.
5892 * stap-probe.c (handle_stap_probe): Update.
5893 * stabsread.c (dbx_init_float_type, define_symbol)
5894 (read_one_struct_field, read_enum_type, read_range_type): Update.
5895 * source.c (info_line_command): Update.
5896 * python/python.c (gdbpy_source_objfile_script)
5897 (gdbpy_execute_objfile_script): Update.
5898 * python/py-type.c (save_objfile_types): Update.
5899 * python/py-objfile.c (py_free_objfile): Update.
5900 * python/py-inferior.c (python_new_objfile): Update.
5901 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
5902 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
5903 (maintenance_check_psymtabs): Update.
5904 * printcmd.c (info_address_command): Update.
5905 * objfiles.h (struct objfile) <arch>: New method, from
5906 get_objfile_arch.
5907 (get_objfile_arch): Don't declare.
5908 * objfiles.c (get_objfile_arch): Remove.
5909 (filter_overlapping_sections): Update.
5910 * minsyms.c (msymbol_is_function): Update.
5911 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
5912 (output_nondebug_symbol): Update.
5913 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
5914 (mdebug_expand_psymtab): Update.
5915 * machoread.c (macho_add_oso_symfile): Update.
5916 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
5917 Update.
5918 * linux-fork.c (checkpoint_command): Update.
5919 * linespec.c (convert_linespec_to_sals): Update.
5920 * jit.c (finalize_symtab): Update.
5921 * infrun.c (insert_exception_resume_from_probe): Update.
5922 * ia64-tdep.c (ia64_find_unwind_table): Update.
5923 * hppa-tdep.c (internalize_unwinds): Update.
5924 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
5925 Update.
5926 * gcore.c (call_target_sbrk): Update.
5927 * elfread.c (record_minimal_symbol, elf_symtab_read)
5928 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
5929 (elf_gnu_ifunc_resolve_by_got): Update.
5930 * dwarf2/read.c (create_addrmap_from_index)
5931 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
5932 (read_debug_names_from_section)
5933 (process_psymtab_comp_unit_reader, add_partial_symbol)
5934 (add_partial_subprogram, process_full_comp_unit)
5935 (read_file_scope, read_func_scope, read_lexical_block_scope)
5936 (read_call_site_scope, dwarf2_ranges_read)
5937 (dwarf2_record_block_ranges, dwarf2_add_field)
5938 (mark_common_block_symbol_computed, read_tag_pointer_type)
5939 (read_tag_string_type, dwarf2_init_float_type)
5940 (dwarf2_init_complex_target_type, read_base_type)
5941 (partial_die_info::read, partial_die_info::read)
5942 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
5943 (dwarf2_fetch_die_loc_sect_off): Update.
5944 * dwarf2/loc.c (dwarf2_find_location_expression)
5945 (class dwarf_evaluate_loc_desc, rw_pieced_value)
5946 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
5947 (dwarf2_loc_desc_get_symbol_read_needs)
5948 (locexpr_describe_location_piece, locexpr_describe_location_1)
5949 (loclist_describe_location): Update.
5950 * dwarf2/index-write.c (write_debug_names): Update.
5951 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
5952 * dtrace-probe.c (dtrace_process_dof): Update.
5953 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
5954 (process_one_symbol): Update.
5955 * ctfread.c (ctf_init_float_type, read_base_type): Update.
5956 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
5957 (coff_read_enum_type): Update.
5958 * cli/cli-cmds.c (edit_command, list_command): Update.
5959 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
5960 * breakpoint.c (create_overlay_event_breakpoint)
5961 (create_longjmp_master_breakpoint)
5962 (create_std_terminate_master_breakpoint)
5963 (create_exception_master_breakpoint, get_sal_arch): Update.
5964 * block.c (block_gdbarch): Update.
5965 * annotate.c (annotate_source_line): Update.
5966
0743fc83
TT
59672020-04-17 Tom Tromey <tromey@adacore.com>
5968
5969 * auto-load.c (show_auto_load_cmd): Remove.
5970 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
5971 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
5972 (maintenance_print_arc_command): Remove.
5973 * tui/tui-win.c (tui_command): Remove.
5974 (tui_get_cmd_list): Use add_basic_prefix_cmd.
5975 * tui/tui-layout.c (tui_layout_command): Remove.
5976 (_initialize_tui_layout): Use add_basic_prefix_cmd.
5977 * python/python.c (user_set_python, user_show_python): Remove.
5978 (_initialize_python): Use add_basic_prefix_cmd,
5979 add_show_prefix_cmd.
5980 * guile/guile.c (set_guile_command, show_guile_command): Remove.
5981 (install_gdb_commands): Use add_basic_prefix_cmd,
5982 add_show_prefix_cmd.
5983 (info_guile_command): Remove.
5984 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
5985 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
5986 add_show_prefix_cmd.
5987 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
5988 Remove do_set and do_show parameters.
5989 * cli/cli-style.c (set_style, show_style): Remove.
5990 (_initialize_cli_style): Use add_basic_prefix_cmd,
5991 add_show_prefix_cmd.
5992 (cli_style_option::add_setshow_commands): Remove do_set and
5993 do_show parameters.
5994 (cli_style_option::add_setshow_commands): Use
5995 add_basic_prefix_cmd, add_show_prefix_cmd.
5996 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
5997 (set_style_name): Remove.
5998 * cli/cli-dump.c (dump_command, append_command): Remove.
5999 (srec_dump_command, ihex_dump_command, verilog_dump_command)
6000 (tekhex_dump_command, binary_dump_command)
6001 (binary_append_command): Remove.
6002 (_initialize_cli_dump): Use add_basic_prefix_cmd.
6003 * windows-tdep.c (w32_prefix_command_valid): Remove global.
6004 (init_w32_command_list): Remove; move into ...
6005 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
6006 * valprint.c (set_print, show_print, set_print_raw)
6007 (show_print_raw): Remove.
6008 (_initialize_valprint): Use add_basic_prefix_cmd,
6009 add_show_prefix_cmd.
6010 * typeprint.c (set_print_type, show_print_type): Remove.
6011 (_initialize_typeprint): Use add_basic_prefix_cmd,
6012 add_show_prefix_cmd.
6013 * record.c (set_record_command, show_record_command): Remove.
6014 (_initialize_record): Use add_basic_prefix_cmd,
6015 add_show_prefix_cmd.
6016 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
6017 add_show_prefix_cmd.
6018 (info_command, show_command, set_debug, show_debug): Remove.
6019 * top.h (set_history, show_history): Don't declare.
6020 * top.c (set_history, show_history): Remove.
6021 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
6022 (unset_tdesc_cmd): Remove.
6023 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
6024 add_show_prefix_cmd.
6025 * symtab.c (info_module_command): Remove.
6026 (_initialize_symtab): Use add_basic_prefix_cmd.
6027 * symfile.c (overlay_command): Remove.
6028 (_initialize_symfile): Use add_basic_prefix_cmd.
6029 * sparc64-tdep.c (info_adi_command): Remove.
6030 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
6031 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
6032 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
6033 add_show_prefix_cmd.
6034 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
6035 (_initialize_serial): Use add_basic_prefix_cmd,
6036 add_show_prefix_cmd.
6037 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
6038 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
6039 add_show_prefix_cmd.
6040 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
6041 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
6042 add_show_prefix_cmd.
6043 * riscv-tdep.c (show_riscv_command, set_riscv_command)
6044 (show_debug_riscv_command, set_debug_riscv_command): Remove.
6045 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
6046 add_show_prefix_cmd.
6047 * remote.c (remote_command, set_remote_cmd): Remove.
6048 (_initialize_remote): Use add_basic_prefix_cmd.
6049 * record-full.c (set_record_full_command)
6050 (show_record_full_command): Remove.
6051 (_initialize_record_full): Use add_basic_prefix_cmd,
6052 add_show_prefix_cmd.
6053 * record-btrace.c (cmd_set_record_btrace)
6054 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
6055 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
6056 (cmd_show_record_btrace_pt): Remove.
6057 (_initialize_record_btrace): Use add_basic_prefix_cmd,
6058 add_show_prefix_cmd.
6059 * ravenscar-thread.c (set_ravenscar_command)
6060 (show_ravenscar_command): Remove.
6061 (_initialize_ravenscar): Use add_basic_prefix_cmd,
6062 add_show_prefix_cmd.
6063 * mips-tdep.c (show_mips_command, set_mips_command)
6064 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
6065 add_show_prefix_cmd.
6066 * maint.c (maintenance_command, maintenance_info_command)
6067 (maintenance_check_command, maintenance_print_command)
6068 (maintenance_set_cmd, maintenance_show_cmd): Remove.
6069 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
6070 add_show_prefix_cmd.
6071 (show_per_command_cmd): Remove.
6072 * maint-test-settings.c (maintenance_set_test_settings_cmd):
6073 Remove.
6074 (maintenance_show_test_settings_cmd): Remove.
6075 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
6076 add_show_prefix_cmd.
6077 * maint-test-options.c (maintenance_test_options_command):
6078 Remove.
6079 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
6080 * macrocmd.c (macro_command): Remove
6081 (_initialize_macrocmd): Use add_basic_prefix_cmd.
6082 * language.c (set_check, show_check): Remove.
6083 (_initialize_language): Use add_basic_prefix_cmd,
6084 add_show_prefix_cmd.
6085 * infcmd.c (unset_command): Remove.
6086 (_initialize_infcmd): Use add_basic_prefix_cmd.
6087 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
6088 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
6089 add_show_prefix_cmd.
6090 * go32-nat.c (go32_info_dos_command): Remove.
6091 (_initialize_go32_nat): Use add_basic_prefix_cmd.
6092 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
6093 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
6094 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
6095 (_initialize_frame): Use add_basic_prefix_cmd,
6096 add_show_prefix_cmd.
6097 * dcache.c (set_dcache_command, show_dcache_command): Remove.
6098 (_initialize_dcache): Use add_basic_prefix_cmd,
6099 add_show_prefix_cmd.
6100 * cp-support.c (maint_cplus_command): Remove.
6101 (_initialize_cp_support): Use add_basic_prefix_cmd.
6102 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
6103 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
6104 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
6105 add_basic_prefix_cmd, add_show_prefix_cmd.
6106 * breakpoint.c (save_command): Remove.
6107 (_initialize_breakpoint): Use add_basic_prefix_cmd.
6108 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
6109 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
6110 add_show_prefix_cmd.
6111 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
6112 (set_ada_command, show_ada_command): Remove.
6113 (_initialize_ada_language): Use add_basic_prefix_cmd,
6114 add_show_prefix_cmd.
6115 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
6116
3557f442
KR
61172020-04-16 Kamil Rytarowski <n54@gmx.com>
6118
6119 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
6120 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
6121
16197208
SM
61222020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
6123
6124 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
6125 warning messages.
6126
00ac85d3
SM
61272020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
6128
6129 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
6130 import table is not at beginning of .idata section.
6131
381ce63f
PA
61322020-04-16 Pedro Alves <palves@redhat.com>
6133
6134 * inferior.c (delete_inferior): Use delete operator directly
6135 instead of delete_program_space.
6136 * progspace.c (add_program_space): New, factored out from
6137 program_space::program_space.
6138 (remove_program_space): New, factored out from
6139 delete_program_space.
6140 (program_space::program_space): Remove intro comment. Rewrite.
6141 (program_space::~program_space): Remove intro comment. Call
6142 remove_program_space.
6143 (delete_program_space): Delete.
6144 * progspace.h (program_space::program_space): Make explicit. Move
6145 intro comment here, adjusted.
6146 (program_space::~program_space): Move intro comment here,
6147 adjusted.
6148 (delete_program_space): Remove.
6149
a010605f
TT
61502020-04-16 Tom Tromey <tromey@adacore.com>
6151
6152 * windows-nat.c (windows_nat::handle_access_violation): New
6153 function.
6154 * nat/windows-nat.h (handle_access_violation): Declare.
6155 * nat/windows-nat.c (handle_exception): Move Cygwin code to
6156 windows-nat.c. Call handle_access_violation.
6157
efba5c23
TV
61582020-04-16 Tom de Vries <tdevries@suse.de>
6159
6160 PR symtab/25791
6161 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
6162 CUs without psymtab.
6163
97ed802d
KB
61642020-04-16 Kevin Buettner <kevinb@redhat.com>
6165
6166 * python/python.c (do_start_initialization): Don't call
6167 PyEval_InitThreads for Python 3.9 and beyond.
6168
c7d64809
KR
61692020-04-15 Kamil Rytarowski <n54@gmx.com>
6170
6171 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
6172 thread functions.
6173 (obsd_nat_target::wait): Likewise.
6174
ce127a96
TT
61752020-04-15 Tom Tromey <tromey@adacore.com>
6176
6177 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
6178 (DEBUG_EXCEPT): Use debug_printf.
6179
99f1bc6a
AB
61802020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
6181
6182 * completer.c (class completion_tracker::completion_hash_entry)
6183 <hash_name>: New member function.
6184 (completion_tracker::discard_completions): New callback to hash a
6185 completion_hash_entry, pass this to htab_create_alloc.
6186
a0e9b532
JT
61872016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
6188
6189 * windows-nat.c (windows_make_so): Warn rather than stopping with
6190 an error if realpath() fails.
6191
06ca5dd4
KR
61922020-04-14 Kamil Rytarowski <n54@gmx.com>
6193
6194 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
6195 (nbsd_nat_target::info_proc): Add do_status.
6196
194d088f
TV
61972020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
6198 Tom de Vries <tdevries@suse.de>
6199
6200 PR symtab/25718
6201 * psympriv.h (struct partial_symtab::read_symtab)
6202 (struct partial_symtab::expand_psymtab)
6203 (struct partial_symtab::read_dependencies): Update comments.
6204 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
6205 read_symtab for includer.
6206 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
6207 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
6208 (struct dwarf2_include_psymtab::m_readin): Remove.
6209 (struct dwarf2_include_psymtab::includer): New member function.
6210 (dwarf2_psymtab::expand_psymtab): Assert !readin.
6211
c1a66c06
TV
62122020-04-14 Tom de Vries <tdevries@suse.de>
6213
6214 PR symtab/25720
6215 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
6216 with NULL symbol_matcher and lookup_name.
6217 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
6218 and lookup_name.
6219 * dwarf2/read.c (dw2_expand_symtabs_matching)
6220 (dw2_debug_names_expand_symtabs_matching): Same.
6221 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
6222 Make lookup_name a pointer. Update comment.
6223 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
6224 lookup_name being a pointer.
6225 * symfile.c (expand_symtabs_matching): Same.
6226 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
6227 * linespec.c (iterate_over_all_matching_symtabs): Same.
6228
400b5eca
TT
62292020-04-13 Tom Tromey <tom@tromey.com>
6230
6231 * run-on-main-thread.c: Update include.
6232 * unittests/main-thread-selftests.c: Update include.
6233 * tui/tui-win.c: Update include.
6234 * tui/tui-io.c: Update include.
6235 * tui/tui-interp.c: Update include.
6236 * tui/tui-hooks.c: Update include.
6237 * top.h: Update include.
6238 * top.c: Update include.
6239 * ser-base.c: Update include.
6240 * remote.c: Update include.
6241 * remote-notif.c: Update include.
6242 * remote-fileio.c: Update include.
6243 * record-full.c: Update include.
6244 * record-btrace.c: Update include.
6245 * python/python.c: Update include.
6246 * posix-hdep.c: Update include.
6247 * mingw-hdep.c: Update include.
6248 * mi/mi-main.c: Update include.
6249 * mi/mi-interp.c: Update include.
6250 * main.c: Update include.
6251 * linux-nat.c: Update include.
6252 * interps.c: Update include.
6253 * infrun.c: Update include.
6254 * inf-loop.c: Update include.
6255 * event-top.c: Update include.
6256 * event-loop.c: Move to ../gdbsupport/.
6257 * event-loop.h: Move to ../gdbsupport/.
6258 * async-event.h: Update include.
6259 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
6260
93b54c8e
TT
62612020-04-13 Tom Tromey <tom@tromey.com>
6262
6263 * tui/tui-win.c: Include async-event.h.
6264 * remote.c: Include async-event.h.
6265 * remote-notif.c: Include async-event.h.
6266 * record-full.c: Include async-event.h.
6267 * record-btrace.c: Include async-event.h.
6268 * infrun.c: Include async-event.h.
6269 * event-top.c: Include async-event.h.
6270 * event-loop.h: Move some declarations to async-event.h.
6271 * event-loop.c: Don't include ser-event.h or top.h. Move some
6272 code to async-event.c.
6273 * async-event.h: New file.
6274 * async-event.c: New file.
6275 * Makefile.in (COMMON_SFILES): Add async-event.c.
6276 (HFILES_NO_SRCDIR): Add async-event.h.
6277
c1cd3163
TT
62782020-04-13 Tom Tromey <tom@tromey.com>
6279
6280 * utils.c (flush_streams): New function.
6281 * event-loop.c (gdb_wait_for_event): Call flush_streams.
6282
29f2bf4f
TT
62832020-04-13 Tom Tromey <tom@tromey.com>
6284
6285 * event-loop.c (handle_file_event): Use warning, not
6286 printf_unfiltered.
6287
98029d02
TT
62882020-04-13 Tom Tromey <tom@tromey.com>
6289
6290 * event-loop.c: Include <chrono>.
6291
06cc9596
TT
62922020-04-13 Tom Tromey <tom@tromey.com>
6293
6294 * gdb_select.h: Move to ../gdbsupport/.
6295 * event-loop.c: Update include path.
6296 * top.c: Update include path.
6297 * ser-base.c: Update include path.
6298 * ui-file.c: Update include path.
6299 * ser-tcp.c: Update include path.
6300 * guile/scm-ports.c: Update include path.
6301 * posix-hdep.c: Update include path.
6302 * ser-unix.c: Update include path.
6303 * gdb_usleep.c: Update include path.
6304 * mingw-hdep.c: Update include path.
6305 * inflow.c: Update include path.
6306 * infrun.c: Update include path.
6307 * event-top.c: Update include path.
6308
8ae8e197
TT
63092020-04-13 Tom Tromey <tom@tromey.com>
6310
6311 * configure: Rebuild.
6312 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
6313
58cf28e8
TT
63142020-04-13 Tom Tromey <tom@tromey.com>
6315
6316 * event-loop.h (start_event_loop): Don't declare.
6317 * event-loop.c (start_event_loop): Move...
6318 * main.c (start_event_loop): ...here. Now static.
6319
b7f999ae
SDJ
63202020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
6321
6322 * MAINTAINERS: Update my email address.
6323
1085dfd4
KR
63242020-04-12 Kamil Rytarowski <n54@gmx.com>
6325
6326 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
6327 IP_ALL.
6328
49d1d1f5
KR
63292020-04-12 Kamil Rytarowski <n54@gmx.com>
6330
6331 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
aac66a4c 6332 (nbsd_nat_target::info_proc): Add do_cmdline.
49d1d1f5 6333
b4848d2a
KR
63342020-04-12 Kamil Rytarowski <n54@gmx.com>
6335
6336 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
aac66a4c 6337 (nbsd_nat_target::info_proc): Add do_cwd.
b4848d2a 6338
51c133d5
KR
63392020-04-12 Kamil Rytarowski <n54@gmx.com>
6340
6341 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
6342
54b8cbd0
KR
63432020-04-11 Kamil Rytarowski <n54@gmx.com>
6344
6345 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
6346 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
6347 (nbsd_nat_target::info_proc): New functions.
6348 * nbsd-nat.c (kinfo_get_vmmap): New function.
6349 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
6350 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
6351 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
6352 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
6353 functions.
6354 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
6355 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
6356 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
6357 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
6358 (KINFO_VME_FLAG_GROWS_DOWN): New.
6359
cf83625d
AS
63602020-04-10 Artur Shepilko <nomadbyte@gmail.com>
6361
6362 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
6363 bit shift.
6364
0c4311ab
TT
63652020-04-10 Tom Tromey <tromey@adacore.com>
6366
6367 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
6368
3e65b3e9
TT
63692020-04-10 Tom Tromey <tromey@adacore.com>
6370
6371 * symtab.c (get_symbol_address, get_msymbol_address): Skip
6372 separate debug files.
6373
13302e95
HD
63742020-04-10 Hannes Domani <ssbssa@yahoo.de>
6375
6376 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
6377 Move to...
6378 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
6379 ... here.
6380 * windows-nat.c (windows_nat_target::get_windows_debug_event):
6381 Check for STATUS_WX86_BREAKPOINT.
6382 (windows_nat_target::wait): Same.
6383
bdfc1e8a
TV
63842020-04-10 Tom de Vries <tdevries@suse.de>
6385
6386 PR cli/25808
6387 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
6388
f4460aec
SM
63892020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
6390
6391 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
6392 (Write After Approval): Remove Tom de Vries.
6393
a25198bb
BE
63942020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
6395
6396 revert partially:
6397 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
6398
aac66a4c
SM
6399 * buildsym.c (record_line): Fix undefined behavior and preserve
6400 lines at eof.
a25198bb 6401
206c98a6
KR
64022020-04-09 Kamil Rytarowski <n54@gmx.com>
6403
6404 * auxv.h (svr4_auxv_parse): New.
6405 * auxv.c (default_auxv_parse): Split into default_auxv_parse
6406 and generic_auxv_parse.
6407 (svr4_auxv_parse): Add.
6408 * obsd-tdep.c: Include "auxv.h".
6409 (obsd_auxv_parse): Remove.
6410 (obsd_init_abi): Remove comment.
6411 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
6412 from `obsd_auxv_parse' to `svr4_auxv_parse'.
6413 * nbsd-tdep.c: Include "auxv.h".
6414 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
6415
71fbdbaf
TT
64162020-04-08 Tom Tromey <tromey@adacore.com>
6417
6418 * nat/windows-nat.h (last_wait_event): Don't declare.
6419 (wait_for_debug_event): Update comment.
6420 * nat/windows-nat.c (last_wait_event): Now static.
6421
2c1d95e8
TT
64222020-04-08 Tom Tromey <tromey@adacore.com>
6423
6424 * windows-nat.c (wait_for_debug_event): Move to
6425 nat/windows-nat.c.
6426 * nat/windows-nat.h (wait_for_debug_event): Declare.
6427 * nat/windows-nat.c (wait_for_debug_event): Move from
6428 windows-nat.c. No longer static.
6429
d2977bc4
TT
64302020-04-08 Tom Tromey <tromey@adacore.com>
6431
6432 * windows-nat.c (get_windows_debug_event): Use
6433 fetch_pending_stop.
6434 * nat/windows-nat.h (fetch_pending_stop): Declare.
6435 * nat/windows-nat.c (fetch_pending_stop): New function.
6436
e758e19c
TT
64372020-04-08 Tom Tromey <tromey@adacore.com>
6438
6439 * windows-nat.c (windows_continue): Use matching_pending_stop and
6440 continue_last_debug_event.
6441 * nat/windows-nat.h (matching_pending_stop)
6442 (continue_last_debug_event): Declare.
6443 * nat/windows-nat.c (DEBUG_EVENTS): New define.
6444 (matching_pending_stop, continue_last_debug_event): New
6445 functions.
6446
8d30e395
TT
64472020-04-08 Tom Tromey <tromey@adacore.com>
6448
6449 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
6450 (handle_exception_result): Move to nat/windows-nat.h.
6451 (DEBUG_EXCEPTION_SIMPLE): Remove.
6452 (windows_nat::handle_ms_vc_exception): New function.
6453 (handle_exception): Move to nat/windows-nat.c.
6454 (get_windows_debug_event): Update.
6455 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
6456 nat/windows-nat.c.
6457 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
6458 (handle_exception_result): Move from windows-nat.c.
6459 (handle_exception): Declare.
6460 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
6461 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
6462 windows-nat.c.
6463
29de418d
TT
64642020-04-08 Tom Tromey <tromey@adacore.com>
6465
6466 * windows-nat.c (exception_count, event_count): Remove.
6467 (handle_exception, get_windows_debug_event)
6468 (do_initial_windows_stuff): Update.
6469
a816ba18
TT
64702020-04-08 Tom Tromey <tromey@adacore.com>
6471
6472 * windows-nat.c (windows_nat::handle_load_dll)
6473 (windows_nat::handle_unload_dll): Rename. No longer static.
6474 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
6475 Declare.
6476
a00caa12
TT
64772020-04-08 Tom Tromey <tromey@adacore.com>
6478
6479 * complaints.h (stop_whining): Declare at top-level.
6480 (complaint): Don't declare stop_whining.
6481
d41b524f
TT
64822020-04-08 Tom Tromey <tromey@adacore.com>
6483
6484 * windows-nat.c (windows_nat::handle_output_debug_string):
6485 Rename. No longer static.
6486 * nat/windows-nat.h (handle_output_debug_string): Declare.
6487
3c76026d
TT
64882020-04-08 Tom Tromey <tromey@adacore.com>
6489
6490 * windows-nat.c (current_process_handle, current_process_id)
6491 (main_thread_id, last_sig, current_event, last_wait_event)
6492 (current_windows_thread, desired_stop_thread_id, pending_stops)
6493 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
6494 (display_selectors, fake_create_process)
6495 (get_windows_debug_event): Update.
6496 * nat/windows-nat.h (current_process_handle, current_process_id)
6497 (main_thread_id, last_sig, current_event, last_wait_event)
6498 (current_windows_thread, desired_stop_thread_id, pending_stops)
6499 (struct pending_stop, siginfo_er): Move from windows-nat.c.
6500 * nat/windows-nat.c (current_process_handle, current_process_id)
6501 (main_thread_id, last_sig, current_event, last_wait_event)
6502 (current_windows_thread, desired_stop_thread_id, pending_stops)
6503 (siginfo_er): New globals. Move from windows-nat.c.
6504
9d8679cc
TT
65052020-04-08 Tom Tromey <tromey@adacore.com>
6506
6507 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
6508 (handle_load_dll): Update.
6509 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
6510
28688adf
TT
65112020-04-08 Tom Tromey <tromey@adacore.com>
6512
6513 * windows-nat.c (enum thread_disposition_type): Move to
6514 nat/windows-nat.h.
6515 (windows_nat::thread_rec): Rename from thread_rec. No longer
6516 static.
6517 (windows_add_thread, windows_nat_target::fetch_registers)
6518 (windows_nat_target::store_registers, handle_exception)
6519 (windows_nat_target::resume, get_windows_debug_event)
6520 (windows_nat_target::get_tib_address)
6521 (windows_nat_target::thread_name)
6522 (windows_nat_target::thread_alive): Update.
6523 * nat/windows-nat.h (enum thread_disposition_type): Move from
6524 windows-nat.c.
6525 (thread_rec): Declare.
6526
4834dad0
TT
65272020-04-08 Tom Tromey <tromey@adacore.com>
6528
6529 * windows-nat.c: Add "using namespace".
6530 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
6531 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
6532
65bafd5b
TT
65332020-04-08 Tom Tromey <tromey@adacore.com>
6534
6535 * nat/windows-nat.h (struct windows_thread_info): Declare
6536 destructor.
6537 * nat/windows-nat.c (~windows_thread_info): New.
6538
0a4afda3
TT
65392020-04-08 Tom Tromey <tromey@adacore.com>
6540
6541 PR gdb/22992
6542 * windows-nat.c (current_event): Update comment.
6543 (last_wait_event, desired_stop_thread_id): New globals.
6544 (struct pending_stop): New.
6545 (pending_stops): New global.
6546 (windows_nat_target) <stopped_by_sw_breakpoint>
6547 <supports_stopped_by_sw_breakpoint>: New methods.
6548 (windows_fetch_one_register): Add assertions. Adjust PC.
6549 (windows_continue): Handle pending stops. Suspend other threads
6550 when stepping. Use last_wait_event
6551 (wait_for_debug_event): New function.
6552 (get_windows_debug_event): Use wait_for_debug_event. Handle
6553 pending stops. Queue spurious stops.
6554 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
6555 (windows_nat_target::kill): Use wait_for_debug_event.
6556 * nat/windows-nat.h (struct windows_thread_info)
6557 <stopped_at_software_breakpoint>: New field.
6558 * nat/windows-nat.c (windows_thread_info::resume): Clear
6559 stopped_at_software_breakpoint.
6560
8e61ebec
TT
65612020-04-08 Tom Tromey <tromey@adacore.com>
6562
6563 * windows-nat.c (enum thread_disposition_type): New.
6564 (thread_rec): Replace "get_context" parameter with "disposition";
6565 change type.
6566 (windows_add_thread, windows_nat_target::fetch_registers)
6567 (windows_nat_target::store_registers, handle_exception)
6568 (windows_nat_target::resume, get_windows_debug_event)
6569 (windows_nat_target::get_tib_address)
6570 (windows_nat_target::thread_name)
6571 (windows_nat_target::thread_alive): Update.
6572
98a03287
TT
65732020-04-08 Tom Tromey <tromey@adacore.com>
6574
6575 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
6576 (windows_continue): Use windows_continue::resume.
6577 * nat/windows-nat.h (struct windows_thread_info) <suspend,
6578 resume>: Declare new methods.
6579 * nat/windows-nat.c: New file.
6580 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
6581
7c7411bc
TT
65822020-04-08 Tom Tromey <tromey@adacore.com>
6583
6584 * windows-nat.c (windows_add_thread, windows_delete_thread)
6585 (windows_nat_target::fetch_registers)
6586 (windows_nat_target::store_registers, fake_create_process)
6587 (windows_nat_target::resume, windows_nat_target::resume)
6588 (get_windows_debug_event, windows_nat_target::wait)
6589 (windows_nat_target::pid_to_str)
6590 (windows_nat_target::get_tib_address)
6591 (windows_nat_target::get_ada_task_ptid)
6592 (windows_nat_target::thread_name)
6593 (windows_nat_target::thread_alive): Use lwp, not tid.
6594
2950fdf7
TT
65952020-04-08 Tom Tromey <tromey@adacore.com>
6596
6597 * windows-nat.c (handle_exception)
6598 (windows_nat_target::thread_name): Update.
6599 * nat/windows-nat.h (windows_thread_info): Remove destructor.
6600 <name>: Now unique_xmalloc_ptr.
6601
62fe396b
TT
66022020-04-08 Tom Tromey <tromey@adacore.com>
6603
6604 * windows-nat.c (thread_rec)
6605 (windows_nat_target::fetch_registers): Update.
6606 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
6607 Update comment.
6608 <debug_registers_changed, reload_context>: Now bool.
6609
e9534bd2
TT
66102020-04-08 Tom Tromey <tromey@adacore.com>
6611
6612 * windows-nat.c (windows_add_thread): Use new.
6613 (windows_init_thread_list, windows_delete_thread): Use delete.
6614 (get_windows_debug_event): Update.
6615 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
6616 destructor, and initializers.
6617
ae1f8880
TT
66182020-04-08 Tom Tromey <tromey@adacore.com>
6619
6620 * windows-nat.c (struct windows_thread_info): Remove.
6621 * nat/windows-nat.h: New file.
6622
55a1e039
TT
66232020-04-08 Tom Tromey <tromey@adacore.com>
6624
6625 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
6626 (thread_rec, windows_add_thread, windows_delete_thread)
6627 (windows_continue): Update.
6628
93366324
TT
66292020-04-08 Tom Tromey <tromey@adacore.com>
6630
6631 * windows-nat.c (struct windows_thread_info): Remove typedef.
6632 (thread_head): Remove.
6633 (thread_list): New global.
6634 (thread_rec, windows_add_thread, windows_init_thread_list)
6635 (windows_delete_thread, windows_continue): Update.
6636
0f2265e2
SM
66372020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
6638
6639 * windows-tdep.h (windows_init_abi): Add comment.
6640 (cygwin_init_abi): New declaration.
6641 * windows-tdep.c: Split signal enumeration in two, one for
6642 Windows and one for Cygwin.
6643 (windows_gdb_signal_to_target): Only deal with signal of the
6644 Windows OS ABI.
6645 (cygwin_gdb_signal_to_target): New function.
6646 (windows_init_abi): Rename to windows_init_abi_common, don't set
6647 gdb_signal_to_target gdbarch method. Add new new function with
6648 this name.
6649 (cygwin_init_abi): New function.
6650 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
6651 comment. Don't call windows_init_abi.
6652 (amd64_windows_init_abi): Add comment, call windows_init_abi.
6653 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
6654 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
6655 i386_windows_init_abi_common, don't call windows_init_abi. Add
6656 a new function of this name.
6657 (i386_cygwin_init_abi): New function.
6658 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
6659 OS ABI Cygwin.
6660
3810f182
SM
66612020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
6662
6663 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
6664 parameter.c.
6665 (dwarf2_read_gdb_index): Update.
6666
063f8e80
KR
66672020-04-07 Kamil Rytarowski <n54@gmx.com>
6668
6669 * nbsd-tdep.c: Include "objfiles.h".
6670 (nbsd_skip_solib_resolver): New.
6671 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
6672
85a9510c 66732020-04-07 Nitika Achra <Nitika.Achra@amd.com>
6674
6675 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
6676 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
6677 with DW_LLE_base_addressx are being emitted in DWARFv5.
6678 Add the newly added kind DW_LOC_OFFSET_PAIR also.
6679 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
6680 unsigned integer.
6681
9fc3eaae 66822020-04-07 Nitika Achra <Nitika.Achra@amd.com>
6683
6684 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
6685 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
6686 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
6687 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
6688 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
6689 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
6690 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
6691
6692
41144253 66932020-04-07 Nitika Achra <Nitika.Achra@amd.com>
6694
6695 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
6696 (read_loclist_index): New function definition.
6697 (lookup_loclist_base): New function definition.
6698 (read_loclist_header): New function definition.
6699 (dwarf2_cu): Add loclist_base and loclist_header field.
6700 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
6701 (read_full_die_1): Read the value of DW_AT_loclists_base.
6702 (read_attribute_reprocess): Handle DW_FORM_loclistx.
6703 (read_attribute_value): Handle DW_FORM_loclistx.
6704 (skip_one_die): Handle DW_FORM_loclistx.
6705 (loclist_header): New structure declaration.
6706 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
6707
9f4e76a4
SM
67082020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
6709
6710 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
6711 constructor. Remove `addr` parameter from other constructor and
6712 add `per_cu` parameter.
6713 * dwarf2/read.c (create_partial_symtab): Update.
6714
25c11aca
TV
67152020-04-07 Tom de Vries <tdevries@suse.de>
6716
6717 PR symtab/25796
6718 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
6719 (partial_die_info::fixup): Inherit has_const_value.
6720
5707e24b
TV
67212020-04-07 Tom de Vries <tdevries@suse.de>
6722
6723 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
6724 symbols without address.
6725
05f00e22
KR
67262020-04-06 Kamil Rytarowski <n54@gmx.com>
6727
6728 * nbsd-nat.h (struct thread_info): Add forward declaration.
6729 (nbsd_nat_target::thread_alive): Add.
6730 (nbsd_nat_target::thread_name): Likewise.
6731 (nbsd_nat_target::update_thread_list): Likewise.
6732 (update_thread_list::post_attach): Likewise.
6733 (post_attach::pid_to_str): Likewise.
6734 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
6735 (nbsd_thread_lister): Add.
6736 (nbsd_nat_target::thread_alive): Likewise.
6737 (nbsd_nat_target::thread_name): Likewise.
6738 (nbsd_add_threads): Likewise.
6739 (update_thread_list::post_attach): Likewise.
6740 (nbsd_nat_target::update_thread_list): Likewise.
6741 (post_attach::pid_to_str): Likewise.
6742
6ee448cc
TT
67432020-04-06 Tom Tromey <tromey@adacore.com>
6744
6745 * ada-valprint.c (print_variant_part): Extract the variant field.
6746 (print_field_values): Use the field as the outer value when
6747 recursing.
6748
dea34e8c
TT
67492020-04-06 Tom Tromey <tromey@adacore.com>
6750
6751 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
6752 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
6753 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
6754 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
6755 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
6756
93689ce9
TT
67572020-04-06 Tom Tromey <tromey@adacore.com>
6758
6759 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
6760 TYPE_CODE_ERROR.
6761
79743962
KR
67622020-04-06 Kamil Rytarowski <n54@gmx.com>
6763
6764 * nbsd-tdep.c: Include "gdbarch.h".
6765 Define enum with NetBSD signal numbers.
6766 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
6767 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
6768 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
6769 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
6770 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
6771 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
6772 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
6773 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
6774 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
6775 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
6776 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
6777 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
6778
9e7c9a03
HD
67792020-04-03 Hannes Domani <ssbssa@yahoo.de>
6780
6781 PR gdb/25325
6782 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
6783
d9e49b61
TT
67842020-04-03 Tom Tromey <tromey@adacore.com>
6785
6786 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
6787 Read constant block.
6788
e0fc5c3f
SM
67892020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
6790
6791 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
6792 (gdb_bfd_get_full_section_contents): New declaration.
6793 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
6794 * windows-tdep.c (is_linked_with_cygwin_dll): Use
6795 gdb_bfd_get_full_section_contents.
6796
e2ff18a0
SM
67972020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
6798
6799 * exec.c (build_section_table): Replace internal_error with
6800 gdb_assert.
6801 (section_table_xfer_memory_partial): Likewise.
6802 * mdebugread.c (parse_partial_symbols): Likewise.
6803 * psymtab.c (lookup_partial_symbol): Likewise.
6804 * utils.c (wrap_here): Likewise.
6805
0830d301
TT
68062020-04-02 Tom Tromey <tromey@adacore.com>
6807
6808 * f-lang.c (build_fortran_types): Use arch_type to initialize
6809 builtin_complex_s32 in the TYPE_CODE_ERROR case.
6810
e7da7f8f
TT
68112020-04-02 Tom Tromey <tromey@adacore.com>
6812
6813 * dwarf2/read.c (partial_die_info::read): Do not create a vector
6814 of attributes.
6815
c90d28ac
AB
68162020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
6817 Bernd Edlinger <bernd.edlinger@hotmail.de>
6818 Tom Tromey <tromey@adacore.com>
6819
6820 * buildsym.c (buildsym_compunit::record_line): Remove
6821 deduplication code.
6822
1aa98955
TV
68232020-04-02 Tom de Vries <tdevries@suse.de>
6824
6825 PR ada/24671
6826 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
6827
d3214198
TV
68282020-04-02 Tom de Vries <tdevries@suse.de>
6829
6830 * dwarf2/read.c (dwarf2_gdb_index_functions,
6831 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
6832 NULL.
6833 * psymtab.c (psym_lookup_global_symbol_language): New function.
6834 (psym_functions): Init psym_lookup_global_symbol_language with
6835 psym_lookup_global_symbol_language.
6836 * symfile-debug.c (debug_sym_quick_functions): Init
6837 lookup_global_symbol_language with NULL.
6838 * symfile.c (set_initial_language): Remove fixme comment.
6839 * symfile.h (struct quick_symbol_functions): Add
6840 lookup_global_symbol_language.
6841 * symtab.c (find_quick_global_symbol_language): New function.
6842 (find_main_name): Use find_quick_global_symbol_language.
6843
2836752f
SM
68442020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
6845
6846 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
6847
64dc2d4b
BE
68482020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
6849
6850 * buildsym.c (record_line): Fix undefined behavior and preserve
6851 lines at eof.
6852
bbe3dc41
BE
68532020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
6854
6855 * buildsym.c (record_line): Fix the resizing condition.
6856
6b4a335b
TT
68572020-04-01 Tom Tromey <tom@tromey.com>
6858
6859 * value.h (value_literal_complex): Add comment.
6860 * valops.c (value_literal_complex): Refer to value.h.
6861
3638a098
TT
68622020-04-01 Tom Tromey <tom@tromey.com>
6863
6864 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
6865 (scalar_type): New rule, from typebase.
6866 (typebase): Use scalar_type. Recognize complex types.
6867 (field_name): Handle FLOAT_KEYWORD.
6868 (ident_tokens): Add _Complex and __complex__.
6869
c34e8714
TT
68702020-04-01 Tom Tromey <tom@tromey.com>
6871
6872 PR exp/25299:
6873 * valarith.c (promotion_type, complex_binop): New functions.
6874 (scalar_binop): Handle complex numbers. Use promotion_type.
6875 (value_pos, value_neg, value_complement): Handle complex numbers.
6876
fa649bb7
TT
68772020-04-01 Tom Tromey <tom@tromey.com>
6878
6879 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
6880 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
6881 (parse_number): Handle complex numbers.
6882
981c08ce
TT
68832020-04-01 Tom Tromey <tom@tromey.com>
6884
6885 * c-valprint.c (c_decorations): Change complex suffix to "i".
6886
4c99290d
TT
68872020-04-01 Tom Tromey <tom@tromey.com>
6888
6889 * valprint.c (generic_value_print_complex): Use accessors.
6890 * value.h (value_real_part, value_imaginary_part): Declare.
6891 * valops.c (value_real_part, value_imaginary_part): New
6892 functions.
6893 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
6894
5b930b45
TT
68952020-04-01 Tom Tromey <tom@tromey.com>
6896
6897 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
6898 (read_range_type): Update.
6899 * mdebugread.c (basic_type): Update.
6900 * go-lang.c (build_go_types): Use init_complex_type.
6901 * gdbtypes.h (struct main_type) <complex_type>: New member.
6902 (init_complex_type): Update.
6903 (arch_complex_type): Don't declare.
6904 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
6905 Make name if none given. Use alloc_type_copy. Look for cached
6906 complex type.
6907 (arch_complex_type): Remove.
6908 (gdbtypes_post_init): Use init_complex_type.
6909 * f-lang.c (build_fortran_types): Use init_complex_type.
6910 * dwarf2/read.c (read_base_type): Update.
6911 * d-lang.c (build_d_types): Use init_complex_type.
6912 * ctfread.c (read_base_type): Update.
6913
53cccef1
TBA
69142020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6915
6916 * infrun.c (stop_all_threads): Update assertion, plus when
6917 stopping threads, take into account that we might be trying
6918 to stop an all-stop target.
6919 (stop_waiting): Call 'stop_all_threads' if there exists a
6920 non-stop target.
6921
a0714d30
TBA
69222020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6923
6924 * target.h (exists_non_stop_target): New function declaration.
6925 * target.c (exists_non_stop_target): New function.
6926
60e22c1e
HD
69272020-04-01 Hannes Domani <ssbssa@yahoo.de>
6928
6929 PR gdb/24789
6930 * eval.c (is_integral_or_integral_reference): New function.
6931 (evaluate_subexp_standard): Allow integer references in
6932 pointer arithmetic.
6933
e139a727
TBA
69342020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6935
6936 * remote.c (remote_target::remote_parse_stop_reply): Remove the
6937 check for no ptid in the stop reply when the target is non-stop.
6938
e0802d59
TT
69392020-04-01 Tom Tromey <tromey@adacore.com>
6940
6941 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
6942 "name" parameter to rvalue reference. Initialize m_name_holder.
6943 <lookup_name_info>: New overloads.
6944 <name>: Return gdb::string_view.
6945 <c_str>: New method.
6946 <make_ignore_params>: Update.
6947 <search_name_hash>: Update.
6948 <language_lookup_name>: Return const char *.
6949 <m_name>: Change type.
6950 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
6951 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
6952 (lookup_name_info::match_any): Update.
6953 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
6954 Update.
6955 * minsyms.c (linkage_name_str): Update.
6956 * language.c (default_symbol_name_matcher): Update.
6957 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
6958 Update.
6959 * ada-lang.c (ada_fold_name): Change parameter to string_view.
6960 (ada_lookup_name_info::ada_lookup_name_info): Update.
6961 (literal_symbol_name_matcher): Update.
6962
8c072cb6
TT
69632020-04-01 Tom Tromey <tromey@adacore.com>
6964
6965 * psymtab.c (psymtab_search_name): Remove function.
6966 (psym_lookup_symbol): Create search name and lookup name here.
6967 (lookup_partial_symbol): Remove "name" parameter; add
6968 lookup_name.
6969 (psym_expand_symtabs_for_function): Update.
6970
6f29a534
TT
69712020-03-31 Joel Jones <joelkevinjones@gmail.com>
6972
6973 PR tui/25597:
6974 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
6975
af62665e
TT
69762020-03-31 Tom Tromey <tromey@adacore.com>
6977
6978 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
6979 memcpy.
6980
d1a89da5
NC
69812020-03-30 Nelson Chu <nelson.chu@sifive.com>
6982
6983 * features/riscv/32bit-csr.xml: Regenerated.
6984 * features/riscv/64bit-csr.xml: Regenerated.
6985
d8af9068
TT
69862020-03-30 Tom Tromey <tromey@adacore.com>
6987
6988 * ada-valprint.c (print_variant_part): Update.
6989 * ada-lang.h (ada_which_variant_applies): Update.
6990 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
6991 outer_valaddr parameters; replace with "outer" value parameter.
6992 (to_fixed_variant_branch_type): Update.
6993
227c0bf4
PFC
69942020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6995
6996 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
6997 <list>. Remove inclusion of observable.h.
6998 (PPC_DEBUG_CURRENT_VERSION): Move up define.
6999 (struct arch_lwp_info): New struct.
7000 (class ppc_linux_dreg_interface): New class.
7001 (struct ppc_linux_process_info): New struct.
7002 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
7003 <low_new_clone, low_forget_process, low_prepare_to_resume>
7004 <copy_thread_dreg_state, mark_thread_stale>
7005 <mark_debug_registers_changed, register_hw_breakpoint>
7006 <clear_hw_breakpoint, register_wp, clear_wp>
7007 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
7008 <num_memory_accesses, get_trigger_type>
7009 <create_watchpoint_request, hwdebug_point_cmp>
7010 <init_arch_lwp_info, get_arch_lwp_info>
7011 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
7012 methods.
7013 <struct ptid_hash>: New inner struct.
7014 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
7015 members.
7016 (saved_dabr_value, hwdebug_info, max_slots_number)
7017 (struct hw_break_tuple, struct thread_points, ppc_threads)
7018 (have_ptrace_hwdebug_interface)
7019 (hwdebug_find_thread_points_by_tid)
7020 (hwdebug_insert_point, hwdebug_remove_point): Remove.
7021 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
7022 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
7023 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
7024 use m_dreg_interface.
7025 (hwdebug_point_cmp): Change to...
7026 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
7027 reference arguments instead of pointers.
7028 (ppc_linux_nat_target::ranged_break_num_registers): Use
7029 m_dreg_interface.
7030 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
7031 m_dreg_interface. Call register_hw_breakpoint.
7032 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
7033 m_dreg_interface. Call clear_hw_breakpoint.
7034 (get_trigger_type): Change to...
7035 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
7036 comment.
7037 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
7038 use m_dreg_interface. Call register_hw_breakpoint.
7039 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
7040 use m_dreg_interface. Call clear_hw_breakpoint.
7041 (can_use_watchpoint_cond_accel): Change to...
7042 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
7043 method. Update comment, use m_dreg_interface and
7044 m_process_info.
7045 (calculate_dvc): Change to...
7046 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
7047 m_dreg_interface.
7048 (num_memory_accesses): Change to...
7049 (ppc_linux_nat_target::num_memory_accesses): ...this method.
7050 (check_condition): Change to...
7051 (ppc_linux_nat_target::check_condition): ...this method.
7052 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
7053 comment, use m_dreg_interface.
7054 (create_watchpoint_request): Change to...
7055 (ppc_linux_nat_target::create_watchpoint_request): ...this
7056 method. Use m_dreg_interface.
7057 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
7058 m_dreg_interface. Call register_hw_breakpoint or register_wp.
7059 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
7060 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
7061 (ppc_linux_nat_target::low_forget_process)
7062 (ppc_linux_nat_target::low_new_fork)
7063 (ppc_linux_nat_target::low_new_clone)
7064 (ppc_linux_nat_target::low_delete_thread)
7065 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
7066 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
7067 only call mark_thread_stale.
7068 (ppc_linux_thread_exit): Remove.
7069 (ppc_linux_nat_target::stopped_data_address): Change to...
7070 (ppc_linux_nat_target::low_stopped_data_address): This. Add
7071 comment, use m_dreg_interface and m_thread_hw_breakpoints.
7072 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
7073 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
7074 comment. Call low_stopped_data_address.
7075 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
7076 m_dreg_interface.
7077 (ppc_linux_nat_target::masked_watch_num_registers): Use
7078 m_dreg_interface.
7079 (ppc_linux_nat_target::copy_thread_dreg_state)
7080 (ppc_linux_nat_target::mark_thread_stale)
7081 (ppc_linux_nat_target::mark_debug_registers_changed)
7082 (ppc_linux_nat_target::register_hw_breakpoint)
7083 (ppc_linux_nat_target::clear_hw_breakpoint)
7084 (ppc_linux_nat_target::register_wp)
7085 (ppc_linux_nat_target::clear_wp)
7086 (ppc_linux_nat_target::init_arch_lwp_info)
7087 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
7088 (_initialize_ppc_linux_nat): Remove observer callback.
7089
4db10d8f
PFC
70902020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
7091
7092 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
7093 (ppc_linux_nat_target::auxv_parse)
7094 (ppc_linux_nat_target::read_description)
7095 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
7096 Move up.
7097
1310c1b0
PFC
70982020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
7099
7100 * linux-nat.h (low_new_clone): New method.
7101 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
7102
69b037c3
SM
71032020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
7104
7105 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
7106 (dbx_expand_psymtab): ... this.
7107 (start_psymtab): Update.
7108 * mdebugread.c (psymtab_to_symtab_1): Rename to...
7109 (mdebug_expand_psymtab): ... this.
7110 (parse_partial_symbols): Update.
7111 (new_psymtab): Update.
7112 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
7113 (xcoff_expand_psymtab): ... this.
7114 (xcoff_start_psymtab): Update.
7115
48993951
SM
71162020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
7117
7118 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
7119 <expand_dependencies>: ... this.
7120 * psymtab.c (partial_symtab::read_dependencies): Rename to...
7121 (partial_symtab::expand_dependencies): ... this.
7122 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
7123 Update.
7124 (dwarf2_psymtab::expand_psymtab): Update.
7125 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
7126 * mdebugread.c (psymtab_to_symtab_1): Update.
7127 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
7128
3ad83046
SM
71292020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
7130
7131 * psympriv.h (discard_psymtab): Remove.
7132 * dbxread.c (dbx_end_psymtab): Update.
7133 * xcoffread.c (xcoff_end_psymtab): Update.
7134
4d1b9ab6
TT
71352020-03-28 Tom Tromey <tom@tromey.com>
7136
7137 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
7138 comment.
7139
f1749218
TT
71402020-03-28 Tom Tromey <tom@tromey.com>
7141
7142 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
7143
ebea7626
HD
71442020-03-27 Hannes Domani <ssbssa@yahoo.de>
7145
7146 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
7147
a879b4d5
JB
71482020-03-26 John Baldwin <jhb@FreeBSD.org>
7149
7150 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
7151
0826b30a
TT
71522020-03-26 Tom Tromey <tom@tromey.com>
7153
7154 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
7155 (mark_common_block_symbol_computed, read_tag_string_type)
7156 (attr_to_dynamic_prop, read_subrange_type): Update.
7157 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
7158 to be methods on struct attribute.
7159 (skip_one_die, process_imported_unit_die, read_namespace_alias)
7160 (read_call_site_scope, partial_die_info::read)
7161 (partial_die_info::read, lookup_die_type, follow_die_ref):
7162 Update.
7163 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
7164 from dwarf2_get_ref_die_offset.
7165 (attribute::constant_value): New method, from
7166 dwarf2_get_attr_constant_value.
7167 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
7168 Declare method.
7169 <constant_value>: New method.
7170
2b2558bf
TT
71712020-03-26 Tom Tromey <tom@tromey.com>
7172
7173 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
7174 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
7175 (dwarf_type_encoding_name): Move to stringify.c.
7176 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
7177 * dwarf2/stringify.c: New file.
7178 * dwarf2/stringify.h: New file.
7179
eeb64781
TT
71802020-03-26 Tom Tromey <tom@tromey.com>
7181
7182 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
7183 Rewrite.
7184
a39fdb41
TT
71852020-03-26 Tom Tromey <tom@tromey.com>
7186
7187 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
7188 methods.
7189 * dwarf2/read.c (lookup_addr_base): Move to die.h.
7190 (lookup_ranges_base): Likewise.
7191 (read_cutu_die_from_dwo, read_full_die_1): Update.
7192
436c571c
TT
71932020-03-26 Tom Tromey <tom@tromey.com>
7194
7195 * dwarf2/read.c (read_import_statement, read_file_scope)
7196 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
7197 (read_lexical_block_scope, read_call_site_scope)
7198 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
7199 (handle_struct_member_die, process_structure_scope)
7200 (update_enumeration_type_from_children)
7201 (process_enumeration_scope, read_array_type, read_common_block)
7202 (read_namespace, read_module, read_subroutine_type): Update.
7203 (sibling_die): Remove.
7204
052c8bb8
TT
72052020-03-26 Tom Tromey <tom@tromey.com>
7206
7207 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
7208 (build_type_psymtabs_reader, read_structure_type)
7209 (read_enumeration_type, read_full_die_1): Update.
7210 (dwarf2_attr_no_follow): Move to die.h.
7211 * dwarf2/die.h (struct die_info) <attr>: New method.
7212
2b24b6e4
TT
72132020-03-26 Tom Tromey <tom@tromey.com>
7214
7215 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
7216 <base_address>: Now an optional.
7217 (dwarf2_find_base_address, dwarf2_rnglists_process)
7218 (dwarf2_ranges_process, fill_in_loclist_baton)
7219 (dwarf2_symbol_mark_computed): Update.
7220
c2d50fd0
TT
72212020-03-26 Tom Tromey <tom@tromey.com>
7222
7223 * dwarf2/read.c (struct die_info): Move to die.h.
7224 * dwarf2/die.h: New file.
7225
0df7ad3a
TT
72262020-03-26 Tom Tromey <tom@tromey.com>
7227
7228 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
7229 * dwarf2/read.c
7230 (dwarf2_statement_list_fits_in_line_number_section_complaint):
7231 Move to line-header.c.
7232 (read_checked_initial_length_and_offset, read_formatted_entries):
7233 Likewise.
7234 (dwarf_decode_line_header): Split into two.
7235 * dwarf2/line-header.c
7236 (dwarf2_statement_list_fits_in_line_number_section_complaint):
7237 Move from read.c.
7238 (read_checked_initial_length_and_offset, read_formatted_entries):
7239 Likewise.
7240 (dwarf_decode_line_header): New function, split from read.c.
7241
86c0bb4c
TT
72422020-03-26 Tom Tromey <tom@tromey.com>
7243
7244 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
7245 Declare method.
7246 * dwarf2/read.c (read_attribute_value): Update.
7247 (dwarf2_per_objfile::read_line_string): Rename from
7248 read_indirect_line_string.
7249 (read_formatted_entries): Update.
7250
2ef46c2f
TT
72512020-03-26 Tom Tromey <tom@tromey.com>
7252
7253 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
7254 variable.
7255
4f9c1eda
TT
72562020-03-26 Tom Tromey <tom@tromey.com>
7257
7258 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
7259 const.
7260 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
7261 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
7262 parameter const.
7263
5a0e026f
TT
72642020-03-26 Tom Tromey <tom@tromey.com>
7265
7266 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
7267 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
7268 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
7269 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
7270
8844c11b
TT
72712020-03-26 Tom Tromey <tom@tromey.com>
7272
7273 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
7274 file_names_size, file_full_name, file_file_name>: Use const.
7275 <file_name_at, file_names>: Add const overload.
7276 * dwarf2/line-header.c (line_header::file_file_name)
7277 (line_header::file_full_name): Update.
7278
c90ec28a
TT
72792020-03-26 Tom Tromey <tom@tromey.com>
7280
7281 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
7282 (macro_start_file, consume_improper_spaces)
7283 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
7284 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
7285 (dwarf_decode_macros): Move to macro.c.
7286 * dwarf2/macro.c: New file.
7287 * dwarf2/macro.h: New file.
7288 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
7289
4f44ae6c
TT
72902020-03-26 Tom Tromey <tom@tromey.com>
7291
7292 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
7293 method.
7294 * dwarf2/section.c: New method. From
7295 read_indirect_string_at_offset_from.
7296 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
7297 (read_indirect_string_at_offset_from): Move to section.c.
7298 (read_indirect_string_at_offset): Rewrite.
7299 (read_indirect_line_string_at_offset): Remove.
7300 (read_indirect_string, read_indirect_line_string)
7301 (dwarf_decode_macro_bytes): Update.
7302
a0194fa8
TT
73032020-03-26 Tom Tromey <tom@tromey.com>
7304
7305 * dwarf2/section.h (struct dwarf2_section_info)
7306 <overload_complaint>: Declare.
7307 (dwarf2_section_buffer_overflow_complaint): Don't declare.
7308 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
7309 Rename from dwarf2_section_buffer_overflow_complaint.
7310 * dwarf2/read.c (skip_one_die, partial_die_info::read)
7311 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
7312
3d27bbdb
TT
73132020-03-26 Tom Tromey <tom@tromey.com>
7314
7315 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
7316 Declare.
7317 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
7318 Move from read.c.
7319 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
7320 to section.c.
7321
9eac9650
TT
73222020-03-26 Tom Tromey <tom@tromey.com>
7323
7324 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
7325
bf80d710
TT
73262020-03-26 Tom Tromey <tom@tromey.com>
7327
7328 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
7329 "builder".
7330 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
7331 parameter.
7332 (dwarf_decode_macros): Update.
7333
0314b390
TT
73342020-03-26 Tom Tromey <tom@tromey.com>
7335
7336 * dwarf2/read.c (read_attribute_value): Update.
7337 (read_indirect_string_from_dwz): Move to dwz.c; change into
7338 method.
7339 (dwarf_decode_macro_bytes): Update.
7340 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
7341 * dwarf2/dwz.c: New file.
7342 * Makefile.in (COMMON_SFILES): Add dwz.c.
7343
9fda78b6
TT
73442020-03-26 Tom Tromey <tom@tromey.com>
7345
7346 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
7347 * dwarf2/read.c: Add include.
7348 * dwarf2/index-write.c: Add include.
7349 * dwarf2/index-cache.c: Add include.
7350 * dwarf2/dwz.h: New file.
7351
33aa3c10
TT
73522020-03-25 Tom Tromey <tom@tromey.com>
7353
7354 * compile/compile-object-load.c (get_out_value_type): Mention
7355 correct symbol name in error message.
7356
d503b685
HD
73572020-03-25 Hannes Domani <ssbssa@yahoo.de>
7358
7359 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
7360
7b1eff95
TV
73612020-03-25 Tom de Vries <tdevries@suse.de>
7362
7363 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
7364 * symmisc.c (dump_symtab_1): Print user and includes fields.
7365 (maintenance_info_symtabs): Same.
7366
dd895392
AB
73672020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
7368
7369 PR gdb/25534
7370 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
7371 (riscv_regcache_cooked_write): New function.
7372 (riscv_push_dummy_call): Use new function.
7373 (riscv_return_value): Likewise.
7374
5ab2fbf1
SM
73752020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
7376
7377 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
7378 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
7379 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
7380 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
7381 * infrun.c (follow_fork): Likewise.
7382 (follow_fork_inferior): Likewise.
7383 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
7384 * linux-nat.h (class linux_nat_target): Likewise.
7385 * remote.c (class remote_target) <follow_fork>: Likewise.
7386 (remote_target::follow_fork): Likewise.
7387 * target-delegates.c: Re-generate.
7388 * target.c (default_follow_fork): Likewise.
7389 (target_follow_fork): Likewise.
7390 * target.h (struct target_ops) <follow_fork>: Likewise.
7391 (target_follow_fork): Likewise.
7392
a64fafb5
TV
73932020-03-24 Tom de Vries <tdevries@suse.de>
7394
7395 * psymtab.c (maintenance_info_psymtabs): Print user field.
7396
fe26d3a3
TT
73972020-03-20 Tom Tromey <tromey@adacore.com>
7398
7399 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
7400 const.
7401 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
7402 const.
7403
c884cc46
SM
74042020-03-20 Simon Marchi <simon.marchi@efficios.com>
7405
7406 * ptrace.m4: Don't check for ptrace declaration.
7407 * config.in: Re-generate.
7408 * configure: Re-generate.
7409 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
7410 not defined.
7411
1ff700c2
KR
74122020-03-20 Kamil Rytarowski <n54@gmx.com>
7413
7414 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
7415 `PTRACE_TYPE_RET'.
7416 * i386-bsd-nat.c (gdb_ptrace): Likewise.
7417 * sparc-nat.c (gdb_ptrace): Likewise.
7418 * x86-bsd-nat.c (gdb_ptrace): Likewise.
7419
f7d4f0b1
TT
74202020-03-20 Tom Tromey <tromey@adacore.com>
7421
7422 * c-exp.y (lex_one_token): Fix assert.
7423
f67210ff
TT
74242020-03-20 Tom Tromey <tromey@adacore.com>
7425
7426 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
7427 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
7428 strncpy call.
7429
1773be9e
TT
74302020-03-20 Tom Tromey <tromey@adacore.com>
7431
7432 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
7433
70304be9
TT
74342020-03-20 Tom Tromey <tromey@adacore.com>
7435
7436 * ada-valprint.c (print_variant_part): Remove parameters; switch
7437 to value-based API.
7438 (print_field_values): Likewise.
7439 (ada_val_print_struct_union): Likewise.
7440 (ada_value_print_1): Update.
7441
9faa006d
KR
74422020-03-20 Kamil Rytarowski <n54@gmx.com>
7443
7444 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
7445 nbsd_nat_target instead of inf_ptrace_target.
7446 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
7447 nbsd_nat_target.
7448
4a90f062
KR
74492020-03-20 Kamil Rytarowski <n54@gmx.com>
7450
7451 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
7452 it to the ptrace call.
7453 * (store_registers): Likewise.
7454
74552020-03-20 Kamil Rytarowski <n54@gmx.com>
c7da12c7
KR
7456
7457 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
7458 it to the ptrace call.
7459 * (store_registers): Likewise.
7460
2d07da27
LM
74612020-03-19 Luis Machado <luis.machado@linaro.org>
7462
7463 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
7464 valid, fetch vg value from ptrace.
7465
f09db380
KR
74662020-03-19 Kamil Rytarowski <n54@gmx.com>
7467 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
7468 * inf-ptrace.c: Likewise.
7469 * (gdb_ptrace): Add.
7470 * (inf_ptrace_target::resume): Update.
7471 * (inf_ptrace_target::xfer_partial): Likewise.
7472 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
7473 * (inf_ptrace_peek_poke): Update.
7474
fcc7376e
KR
74752020-03-19 Kamil Rytarowski <n54@gmx.com>
7476
7477 * x86-bsd-nat.c (gdb_ptrace): New.
7478 * (x86bsd_dr_set): Add new argument `ptid'.
7479 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
7480 x86bsd_dr_set_addr): Update.
7481
cada5fc9
AB
74822020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
7483
7484 * remote.c (remote_target::process_stop_reply): Handle events for
7485 all threads differently.
7486
19a2740f
AB
74872020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
7488
7489 * completer.c (completion_tracker::remove_completion): Define new
7490 function.
7491 * completer.h (completion_tracker::remove_completion): Declare new
7492 function.
7493 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
7494 when adding a C++ function symbol.
7495
724fd9ba
AB
74962020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
7497
7498 * completer.c (completion_tracker::completion_hash_entry): Define
7499 new class.
7500 (advance_to_filename_complete_word_point): Call
7501 recompute_lowest_common_denominator.
7502 (completion_tracker::completion_tracker): Call discard_completions
7503 to setup the hash table.
7504 (completion_tracker::discard_completions): Allow for being called
7505 from the constructor, pass new equal function, and element deleter
7506 when constructing the hash table. Initialise new class member
7507 variables.
7508 (completion_tracker::maybe_add_completion): Remove use of
7509 m_entries_vec, and store more information into m_entries_hash.
7510 (completion_tracker::recompute_lcd_visitor): New function, most
7511 content taken from...
7512 (completion_tracker::recompute_lowest_common_denominator):
7513 ...here, this now just visits each item in the hash calling the
7514 above visitor.
7515 (completion_tracker::build_completion_result): Remove use of
7516 m_entries_vec, call recompute_lowest_common_denominator.
7517 * completer.h (completion_tracker::have_completions): Remove use
7518 of m_entries_vec.
7519 (completion_tracker::completion_hash_entry): Declare new class.
7520 (completion_tracker::recompute_lowest_common_denominator): Change
7521 function signature.
7522 (completion_tracker::recompute_lcd_visitor): Declare new function.
7523 (completion_tracker::m_entries_vec): Delete.
7524 (completion_tracker::m_entries_hash): Initialize to NULL.
7525 (completion_tracker::m_lowest_common_denominator_valid): New
7526 member variable.
7527 (completion_tracker::m_lowest_common_denominator_max_length): New
7528 member variable.
7529
5a82b8a1
KR
75302020-03-17 Kamil Rytarowski <n54@gmx.com>
7531
7532 * regformats/regdef.h: Put reg in gdb namespace.
7533
fb516a69
KR
75342020-03-17 Kamil Rytarowski <n54@gmx.com>
7535
7536 * i386-bsd-nat.c (gdb_ptrace): New.
7537 * (i386bsd_fetch_inferior_registers,
7538 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
7539 * (i386bsd_fetch_inferior_registers,
7540 i386bsd_store_inferior_registers) Use gdb_ptrace.
7541
1c0aa1fb
KR
75422020-03-17 Kamil Rytarowski <n54@gmx.com>
7543
7544 * amd64-bsd-nat.c (gdb_ptrace): New.
7545 * (amd64bsd_fetch_inferior_registers,
7546 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
7547 * (amd64bsd_fetch_inferior_registers,
7548 amd64bsd_store_inferior_registers) Use gdb_ptrace.
7549
5ccd2fb7
KR
75502020-03-17 Kamil Rytarowski <n54@gmx.com>
7551
7552 * user-regs.c (user_reg::read): Rename to...
7553 (user_reg::xread): ...this.
7554 * (append_user_reg): Rename argument `read' to `xread'.
7555 * (user_reg_add_builtin): Likewise.
7556 * (user_reg_add): Likewise.
7557 * (value_of_user_reg): Likewise.
7558
2108a63a
KR
75592020-03-17 Kamil Rytarowski <n54@gmx.com>
7560
7561 * sparc-nat.c (gdb_ptrace): New.
7562 * sparc-nat.c (sparc_fetch_inferior_registers)
7563 (sparc_store_inferior_registers) Remove obsolete comment.
7564 * sparc-nat.c (sparc_fetch_inferior_registers)
7565 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
7566 * sparc-nat.c (sparc_fetch_inferior_registers)
7567 (sparc_store_inferior_registers) Use gdb_ptrace.
7568
a225c9a8
KR
75692020-03-17 Kamil Rytarowski <n54@gmx.com>
7570
7571 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
7572 it to the ptrace call.
7573 * sh-nbsd-nat.c (store_registers): Likewise.
7574
98097623
KR
75752020-03-17 Kamil Rytarowski <n54@gmx.com>
7576
7577 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
7578 nbsd_nat_target instead of inf_ptrace_target.
7579 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
7580 nbsd_nat_target.
7581
9e38d619
KR
75822020-03-17 Kamil Rytarowski <n54@gmx.com>
7583
7584 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
7585
a2ecbe9f
KR
75862020-03-17 Kamil Rytarowski <n54@gmx.com>
7587
7588 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
7589 <sys/sysctl.h>.
7590 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
7591
58990295
TV
75922020-03-17 Tom de Vries <tdevries@suse.de>
7593
7594 PR gdb/23710
7595 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
7596 fields.
7597 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
7598 fields.
7599 (process_imported_unit_die): Skip import of c++ CUs.
7600
771dd3a8
TT
76012020-03-16 Tom Tromey <tom@tromey.com>
7602
7603 * p-valprint.c (pascal_object_print_value): Initialize
7604 base_value.
7605
817a7585
AK
76062020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
7607 Shahab Vahedi <shahab@synopsys.com>
7608
7609 * Makefile.in: Add arch/arc.o
7610 * configure.tgt: Likewise.
7611 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
7612 (_initialize_arc_tdep): Don't initialize old target descriptions.
aac66a4c 7613 (arc_read_description): New function to cache target descriptions.
817a7585
AK
7614 * arc-tdep.h (arc_read_description): Add proto type.
7615 * arch/arc.c: New file.
7616 * arch/arc.h: Likewise.
7617 * features/Makefile: Replace old target descriptions with new.
7618 * features/arc-arcompact.c: Remove.
7619 * features/arc-arcompact.xml: Likewise.
7620 * features/arc-v2.c: Likewise
7621 * features/arc-v2.xml: Likewise
7622 * features/arc/aux-arcompact.xml: New file.
7623 * features/arc/aux-v2.xml: Likewise.
7624 * features/arc/core-arcompact.xml: Likewise.
7625 * features/arc/core-v2.xml: Likewise.
7626 * features/arc/aux-arcompact.c: Generate.
7627 * features/arc/aux-v2.c: Likewise.
7628 * features/arc/core-arcompact.c: Likewise.
7629 * features/arc/core-v2.c: Likewise.
7630 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
7631
67430cd0
TT
76322020-03-16 Tom Tromey <tromey@adacore.com>
7633
7634 PR gdb/25663:
7635 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
7636 putting value into bcache.
7637
30efb6c7
SM
76382020-03-16 Simon Marchi <simon.marchi@efficios.com>
7639
7640 PR gdb/21500
7641 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
7642 to...
7643 (amd64_windows_init_abi_common): ... this. Don't set size of
7644 long type.
7645 (amd64_windows_init_abi): New function.
7646 (amd64_cygwin_init_abi): New function.
7647 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
7648 the Cygwin OS ABI.
7649 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
7650 comment.
7651
8db52437
SM
76522020-03-16 Simon Marchi <simon.marchi@efficios.com>
7653
7654 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
7655 * windows-tdep.c (CYGWIN_DLL_NAME): New.
7656 (pe_import_directory_entry): New struct type.
7657 (is_linked_with_cygwin_dll): New function.
7658 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
7659 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
7660 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
7661
5982a56a
SM
76622020-03-16 Simon Marchi <simon.marchi@efficios.com>
7663
7664 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
7665 i386_cygwin_core_osabi_sniffer.
7666
7a1998df
SM
76672020-03-16 Simon Marchi <simon.marchi@efficios.com>
7668
7669 * i386-cygwin-tdep.c: Rename to...
7670 * i386-windows-tdep.c: ... this.
7671 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
7672 i386-windows-tdep.c.
7673 * configure.tgt: Likewise.
7674
053205cc
SM
76752020-03-16 Simon Marchi <simon.marchi@efficios.com>
7676
7677 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
7678 * osabi.c (gdb_osabi_names): Add "Windows".
7679 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
7680 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
7681 (i386_cygwin_core_osabi_sniffer): New function, extracted from
7682 i386_cygwin_osabi_sniffer.
7683 (_initialize_i386_cygwin_tdep): Register OS ABI
7684 GDB_OSABI_WINDOWS for i386.
7685 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
7686 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
7687 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
7688 for x86-64.
7689 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
7690 when the target matches '*-*-mingw*'.
7691
fe4b2ee6
SM
76922020-03-16 Simon Marchi <simon.marchi@efficios.com>
7693
7694 * defs.h (enum gdb_osabi): Move to...
7695 * osabi.h (enum gdb_osabi): ... here.
7696 * gdbarch.sh: Include osabi.h in gdbarch.h.
7697 * gdbarch.h: Re-generate.
7698
cb9b645d
SM
76992020-03-16 Simon Marchi <simon.marchi@efficios.com>
7700
7701 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
7702 function.
7703 (_initialize_amd64_windows_tdep): Register osabi sniffer.
7704
3293bbaf
TT
77052020-03-14 Tom Tromey <tom@tromey.com>
7706
7707 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
7708 for C++.
7709 (c_type_print_modifier): Likewise. Add "language" parameter.
7710 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
7711 (c_type_print_base_1): Update.
7712 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
7713 constants.
7714 * type-stack.c (type_stack::insert): Handle tp_atomic and
7715 tp_restrict.
7716 (type_stack::follow_type_instance_flags): Likewise.
7717 (type_stack::follow_types): Likewise. Merge type-following code.
7718 * c-exp.y (RESTRICT, ATOMIC): New tokens.
7719 (space_identifier, cv_with_space_id)
7720 (const_or_volatile_or_space_identifier_noopt)
7721 (const_or_volatile_or_space_identifier): Remove.
7722 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
7723 rules.
7724 (ptr_operator, typebase): Update.
7725 (enum token_flag) <FLAG_C>: New constant.
7726 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
7727 "_Atomic".
7728 (lex_one_token): Handle FLAG_C.
7729
154151a6
KR
77302020-03-14 Kamil Rytarowski <n54@gmx.com>
7731
7732 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
7733 it to the ptrace call.
7734 * m68k-bsd-nat.c (store_registers): Likewise.
7735
bc107784
KR
77362020-03-14 Kamil Rytarowski <n54@gmx.com>
7737
7738 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
7739 gdb_byte *.
7740 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
7741 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
7742 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
7743
01a80117
KR
77442020-03-14 Kamil Rytarowski <n54@gmx.com>
7745
7746 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
7747 nbsd_nat_target instead of inf_ptrace_target.
7748 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
7749 nbsd_nat_target.
7750
f90280ca
KR
77512020-03-14 Kamil Rytarowski <n54@gmx.com>
7752
7753 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
7754 register_t.
7755
6def66f1
KR
77562020-03-14 Kamil Rytarowski <n54@gmx.com>
7757
7758 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
7759 it to the ptrace call.
7760 * alpha-bsd-nat.c (store_registers): Likewise.
7761
66eaca97
KR
77622020-03-14 Kamil Rytarowski <n54@gmx.com>
7763
7764 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
7765 includes.
7766 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
7767 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
7768 fill_fpregset): Likewise.
7769
4fed520b
KR
77702020-03-14 Kamil Rytarowski <n54@gmx.com>
7771
7772 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
7773 nbsd_nat_target instead of inf_ptrace_target.
7774 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
7775 nbsd_nat_target.
7776
2190cf06
KR
77772020-03-14 Kamil Rytarowski <n54@gmx.com>
7778
7779 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
7780 register_t.
7781
75c56d3d
KR
77822020-03-14 Kamil Rytarowski <n54@gmx.com>
7783
7784 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
7785 it to the ptrace call.
7786 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
7787 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
7788 * arm-nbsd-nat.c (store_register): Likewise.
7789 * arm-nbsd-nat.c (store_regs): Likewise.
7790 * arm-nbsd-nat.c (store_fp_register): Likewise.
7791 * arm-nbsd-nat.c (store_fp_regs): Likewise.
7792
6018d381
KR
77932020-03-14 Kamil Rytarowski <n54@gmx.com>
7794
7795 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
7796 nbsd_nat_target instead of inf_ptrace_target.
7797 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
7798 nbsd_nat_target.
7799
013f99f0
KR
78002020-03-14 Kamil Rytarowski <n54@gmx.com>
7801
7802 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
7803 it to the ptrace call.
7804 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
7805
12753073
KR
78062020-03-14 Kamil Rytarowski <n54@gmx.com>
7807
6227b330
KR
7808 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
7809 it to the ptrace call.
7810 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
7811
78122020-03-14 Kamil Rytarowski <n54@gmx.com>
7813
7814 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
7815 gdb_byte *.
12753073
KR
7816 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
7817
d5be5fa4
KR
78182020-03-14 Kamil Rytarowski <n54@gmx.com>
7819
7820 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
7821 instead of inf_ptrace_target.
7822 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
7823 nbsd_nat_target.
7824
8110f842
KR
78252020-03-14 Kamil Rytarowski <n54@gmx.com>
7826
7827 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
7828 register_t.
7829
52feded7
KR
78302020-03-14 Kamil Rytarowski <n54@gmx.com>
7831
7832 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
7833 register_t.
7834
25567eee
KR
78352020-03-14 Kamil Rytarowski <n54@gmx.com>
7836
7837 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
7838 register_t.
7839
426a9c18
TT
78402020-03-13 Tom Tromey <tom@tromey.com>
7841
7842 * value.h (val_print): Don't declare.
7843 * valprint.h (val_print_array_elements)
7844 (val_print_scalar_formatted, generic_val_print): Don't declare.
7845 * valprint.c (generic_val_print_array): Take a struct value.
7846 (generic_val_print_ptr, generic_val_print_memberptr)
7847 (generic_val_print_bool, generic_val_print_int)
7848 (generic_val_print_char, generic_val_print_complex)
7849 (generic_val_print): Remove.
7850 (generic_value_print): Update.
7851 (do_val_print): Remove unused parameters. Don't call
7852 la_val_print.
7853 (val_print): Remove.
7854 (common_val_print): Update. Don't call value_check_printable.
7855 (val_print_scalar_formatted, val_print_array_elements): Remove.
7856 * rust-lang.c (rust_val_print): Remove.
7857 (rust_language_defn): Update.
7858 * p-valprint.c (pascal_val_print): Remove.
7859 (pascal_value_print_inner): Update.
7860 (pascal_object_print_val_fields, pascal_object_print_val):
7861 Remove.
7862 (pascal_object_print_static_field): Update.
7863 * p-lang.h (pascal_val_print): Don't declare.
7864 * p-lang.c (pascal_language_defn): Update.
7865 * opencl-lang.c (opencl_language_defn): Update.
7866 * objc-lang.c (objc_language_defn): Update.
7867 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
7868 * m2-lang.h (m2_val_print): Don't declare.
7869 * m2-lang.c (m2_language_defn): Update.
7870 * language.h (struct language_defn) <la_val_print>: Remove.
7871 * language.c (unk_lang_value_print_inner): Rename. Change
7872 argument types.
7873 (unknown_language_defn, auto_language_defn): Update.
7874 * go-valprint.c (go_val_print): Remove.
7875 * go-lang.h (go_val_print): Don't declare.
7876 * go-lang.c (go_language_defn): Update.
7877 * f-valprint.c (f_val_print): Remove.
7878 * f-lang.h (f_value_print): Don't declare.
7879 * f-lang.c (f_language_defn): Update.
7880 * d-valprint.c (d_val_print): Remove.
7881 * d-lang.h (d_value_print): Don't declare.
7882 * d-lang.c (d_language_defn): Update.
7883 * cp-valprint.c (cp_print_value_fields)
7884 (cp_print_value_fields_rtti, cp_print_value): Remove.
7885 (cp_print_static_field): Update.
7886 * c-valprint.c (c_val_print_array, c_val_print_ptr)
7887 (c_val_print_struct, c_val_print_union, c_val_print_int)
7888 (c_val_print_memberptr, c_val_print): Remove.
7889 * c-lang.h (c_val_print_array, cp_print_value_fields)
7890 (cp_print_value_fields_rtti): Don't declare.
7891 * c-lang.c (c_language_defn, cplus_language_defn)
7892 (asm_language_defn, minimal_language_defn): Update.
7893 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
7894 (ada_val_print_enum): Take a struct value.
7895 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
7896 (ada_val_print): Remove.
7897 (ada_value_print_1): Update.
7898 (printable_val_type): Remove.
7899 * ada-lang.h (ada_val_print): Don't declare.
7900 * ada-lang.c (ada_language_defn): Update.
7901
42331a1e
TT
79022020-03-13 Tom Tromey <tom@tromey.com>
7903
7904 * valprint.c (do_val_print): Update.
7905 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
7906 a struct value.
7907 (value_to_value_object_no_release): Declare.
7908 * python/py-value.c (value_to_value_object_no_release): New
7909 function.
7910 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
7911 struct value.
7912 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
7913 function.
7914 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
7915 a struct value.
7916 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
7917 Declare.
7918 (gdbscm_apply_val_pretty_printer): Take a struct value.
7919 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
7920 value.
7921 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
7922 value.
7923 * extension-priv.h (struct extension_language_ops)
7924 <apply_val_pretty_printer>: Take a struct value.
7925 * cp-valprint.c (cp_print_value): Create a struct value.
7926 (cp_print_value): Update.
7927
3a916a97
TT
79282020-03-13 Tom Tromey <tom@tromey.com>
7929
7930 * ada-valprint.c (print_field_values): Call common_val_print.
7931
b59eac37
TT
79322020-03-13 Tom Tromey <tom@tromey.com>
7933
7934 * ada-valprint.c (val_print_packed_array_elements): Remove
7935 bitoffset and val parameters. Call common_val_print.
7936 (ada_val_print_string): Remove offset, address, and original_value
7937 parameters.
7938 (ada_val_print_array): Update.
7939 (ada_value_print_array): New function.
7940 (ada_value_print_1): Call it.
7941
03371129
TT
79422020-03-13 Tom Tromey <tom@tromey.com>
7943
7944 * ada-valprint.c (ada_value_print): Use common_val_print.
7945
2e088f8b
TT
79462020-03-13 Tom Tromey <tom@tromey.com>
7947
7948 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
7949
39ef85a8
TT
79502020-03-13 Tom Tromey <tom@tromey.com>
7951
7952 * ada-valprint.c (ada_value_print_num): New function.
7953 (ada_value_print_1): Use it.
7954
b9fa6e07
TT
79552020-03-13 Tom Tromey <tom@tromey.com>
7956
7957 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
7958
416595d6
TT
79592020-03-13 Tom Tromey <tom@tromey.com>
7960
7961 * ada-valprint.c (ada_value_print_ptr): New function.
7962 (ada_value_print_1): Use it.
7963
5b5e15ec
TT
79642020-03-13 Tom Tromey <tom@tromey.com>
7965
7966 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
7967 call common_val_print.
7968 (ada_val_print_1): Update.
7969 (ada_value_print_1): New function.
7970 (ada_value_print_inner): Rewrite.
7971
fbf54e75
TT
79722020-03-13 Tom Tromey <tom@tromey.com>
7973
7974 * cp-valprint.c (cp_print_value_fields): Update.
7975 (cp_print_value): New function.
7976
64b653ca
TT
79772020-03-13 Tom Tromey <tom@tromey.com>
7978
7979 * m2-valprint.c (m2_value_print_inner): Use
7980 cp_print_value_fields.
7981 * cp-valprint.c (cp_print_value_fields): New function.
7982 * c-valprint.c (c_value_print_struct): New function.
7983 (c_value_print_inner): Use c_value_print_struct.
7984 * c-lang.h (cp_print_value_fields): Declare.
7985
6999f067
TT
79862020-03-13 Tom Tromey <tom@tromey.com>
7987
7988 * c-valprint.c (c_value_print_array): New function.
7989 (c_value_print_inner): Use it.
7990
ce80b8bd
TT
79912020-03-13 Tom Tromey <tom@tromey.com>
7992
7993 * c-valprint.c (c_value_print_memberptr): New function.
7994 (c_value_print_inner): Use it.
7995
2faac269
TT
79962020-03-13 Tom Tromey <tom@tromey.com>
7997
7998 * c-valprint.c (c_value_print_int): New function.
7999 (c_value_print_inner): Use it.
8000
da3e2c29
TT
80012020-03-13 Tom Tromey <tom@tromey.com>
8002
8003 * c-valprint.c (c_value_print_ptr): New function.
8004 (c_value_print_inner): Use it.
8005
50836231
TT
80062020-03-13 Tom Tromey <tom@tromey.com>
8007
8008 * c-valprint.c (c_value_print_inner): Rewrite.
8009
4f412b6e
TT
80102020-03-13 Tom Tromey <tom@tromey.com>
8011
8012 * valprint.c (generic_value_print_complex): New function.
8013 (generic_value_print): Use it.
8014
f5354008
TT
80152020-03-13 Tom Tromey <tom@tromey.com>
8016
8017 * valprint.c (generic_val_print_float): Don't call
8018 val_print_scalar_formatted.
8019 (generic_val_print, generic_value_print): Update.
8020
3eec3b05
TT
80212020-03-13 Tom Tromey <tom@tromey.com>
8022
8023 * valprint.c (generic_value_print_char): New function
8024 (generic_value_print): Use it.
8025
fdddfccb
TT
80262020-03-13 Tom Tromey <tom@tromey.com>
8027
8028 * valprint.c (generic_value_print_int): New function.
8029 (generic_value_print): Use it.
8030
6dde7521
TT
80312020-03-13 Tom Tromey <tom@tromey.com>
8032
8033 * valprint.c (generic_value_print_bool): New function.
8034 (generic_value_print): Use it.
8035
4112d2e6
TT
80362020-03-13 Tom Tromey <tom@tromey.com>
8037
8038 * valprint.c (generic_val_print_func): Simplify.
8039 (generic_val_print, generic_value_print): Update.
8040
65786af6
TT
80412020-03-13 Tom Tromey <tom@tromey.com>
8042
8043 * valprint.c (generic_val_print_flags): Remove.
8044 (generic_val_print, generic_value_print): Update.
8045 (val_print_type_code_flags): Add original_value parameter.
8046
40f3ce18
TT
80472020-03-13 Tom Tromey <tom@tromey.com>
8048
8049 * valprint.c (generic_val_print): Update.
8050 (generic_value_print): Update.
8051 * valprint.c (generic_val_print_enum): Don't call
8052 val_print_scalar_formatted.
8053
2a5b130b
TT
80542020-03-13 Tom Tromey <tom@tromey.com>
8055
8056 * valprint.c (generic_value_print): Call generic_value_print_ptr.
8057 * valprint.c (generic_value_print_ptr): New function.
8058
abc66ce9
TT
80592020-03-13 Tom Tromey <tom@tromey.com>
8060
8061 * valprint.c (generic_value_print): Rewrite.
8062
07a32858
TT
80632020-03-13 Tom Tromey <tom@tromey.com>
8064
8065 * p-valprint.c (pascal_object_print_value_fields)
8066 (pascal_object_print_value): New functions.
8067
64d64d3a
TT
80682020-03-13 Tom Tromey <tom@tromey.com>
8069
8070 * p-valprint.c (pascal_value_print_inner): Rewrite.
8071
6a95a1f5
TT
80722020-03-13 Tom Tromey <tom@tromey.com>
8073
8074 * f-valprint.c (f_value_print_innner): Rewrite.
8075
59fcdac6
TT
80762020-03-13 Tom Tromey <tom@tromey.com>
8077
8078 * m2-valprint.c (m2_print_unbounded_array): New overload.
8079 (m2_print_unbounded_array): Update.
8080 (m2_print_array_contents): Take a struct value.
8081 (m2_value_print_inner): Rewrite.
8082
d133c3e1
TT
80832020-03-13 Tom Tromey <tom@tromey.com>
8084
8085 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
8086 (d_value_print_inner): New function.
8087 * d-lang.h (d_value_print_inner): Declare.
8088 * d-lang.c (d_language_defn): Use d_value_print_inner.
8089
23b0f06b
TT
80902020-03-13 Tom Tromey <tom@tromey.com>
8091
8092 * go-valprint.c (go_value_print_inner): New function.
8093 * go-lang.h (go_value_print_inner): Declare.
8094 * go-lang.c (go_language_defn): Use go_value_print_inner.
8095
5f56f7cb
TT
80962020-03-13 Tom Tromey <tom@tromey.com>
8097
8098 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
8099 API.
8100 (rust_val_print): Rewrite.
8101 (rust_value_print_inner): New function, from rust_val_print.
8102 (rust_language_defn): Use rust_value_print_inner.
8103
26792ee0
TT
81042020-03-13 Tom Tromey <tom@tromey.com>
8105
8106 * ada-valprint.c (ada_value_print_inner): New function.
8107 * ada-lang.h (ada_value_print_inner): Declare.
8108 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
8109
24051bbe
TT
81102020-03-13 Tom Tromey <tom@tromey.com>
8111
8112 * f-valprint.c (f_value_print_innner): New function.
8113 * f-lang.h (f_value_print_innner): Declare.
8114 * f-lang.c (f_language_defn): Use f_value_print_innner.
8115
c0941be6
TT
81162020-03-13 Tom Tromey <tom@tromey.com>
8117
8118 * p-valprint.c (pascal_value_print_inner): New function.
8119 * p-lang.h (pascal_value_print_inner): Declare.
8120 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
8121
62c4663d
TT
81222020-03-13 Tom Tromey <tom@tromey.com>
8123
8124 * m2-valprint.c (m2_value_print_inner): New function.
8125 * m2-lang.h (m2_value_print_inner): Declare.
8126 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
8127
62182190
TT
81282020-03-13 Tom Tromey <tom@tromey.com>
8129
8130 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
8131 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
8132 * c-valprint.c (c_value_print_inner): New function.
8133 * c-lang.h (c_value_print_inner): Declare.
8134 * c-lang.c (c_language_defn, cplus_language_defn)
8135 (asm_language_defn, minimal_language_defn): Use
8136 c_value_print_inner.
8137
1e592a8a
TT
81382020-03-13 Tom Tromey <tom@tromey.com>
8139
8140 * p-valprint.c (pascal_object_print_value_fields): Now static.
8141 * p-lang.h (pascal_object_print_value_fields): Don't declare.
8142
7fe471e9
TT
81432020-03-13 Tom Tromey <tom@tromey.com>
8144
8145 * c-valprint.c (c_val_print_array): Simplify.
8146
d121c6ce
TT
81472020-03-13 Tom Tromey <tom@tromey.com>
8148
8149 * valprint.c (value_print_array_elements): New function.
8150 * valprint.h (value_print_array_elements): Declare.
8151
4dba70ee
TT
81522020-03-13 Tom Tromey <tom@tromey.com>
8153
8154 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
8155 * mips-tdep.c (mips_print_register): Use
8156 value_print_scalar_formatted.
8157
4f9ae810
TT
81582020-03-13 Tom Tromey <tom@tromey.com>
8159
8160 * valprint.h (value_print_scalar_formatted): Declare.
8161 * valprint.c (value_print_scalar_formatted): New function.
8162
156bfec9
TT
81632020-03-13 Tom Tromey <tom@tromey.com>
8164
8165 * valprint.h (generic_value_print): Declare.
8166 * valprint.c (generic_value_print): New function.
8167
2b4e573d
TT
81682020-03-13 Tom Tromey <tom@tromey.com>
8169
8170 * valprint.c (do_val_print): Call la_value_print_inner, if
8171 available.
8172 * rust-lang.c (rust_language_defn): Update.
8173 * p-lang.c (pascal_language_defn): Update.
8174 * opencl-lang.c (opencl_language_defn): Update.
8175 * objc-lang.c (objc_language_defn): Update.
8176 * m2-lang.c (m2_language_defn): Update.
8177 * language.h (struct language_defn) <la_value_print_inner>: New
8178 member.
8179 * language.c (unknown_language_defn, auto_language_defn): Update.
8180 * go-lang.c (go_language_defn): Update.
8181 * f-lang.c (f_language_defn): Update.
8182 * d-lang.c (d_language_defn): Update.
8183 * c-lang.c (c_language_defn, cplus_language_defn)
8184 (asm_language_defn, minimal_language_defn): Update.
8185 * ada-lang.c (ada_language_defn): Update.
8186
a1f6a07c
TT
81872020-03-13 Tom Tromey <tom@tromey.com>
8188
8189 * c-valprint.c (c_value_print): Use common_val_print.
8190
410cf315
TT
81912020-03-13 Tom Tromey <tom@tromey.com>
8192
8193 * cp-valprint.c (cp_print_static_field): Use common_val_print.
8194
72a45c93
TT
81952020-03-13 Tom Tromey <tom@tromey.com>
8196
8197 * f-valprint.c (f77_print_array_1, f_val_print): Use
8198 common_val_print.
8199
040f66bd
TT
82002020-03-13 Tom Tromey <tom@tromey.com>
8201
8202 * riscv-tdep.c (riscv_print_one_register_info): Use
8203 common_val_print.
8204
a6e05a6c
TT
82052020-03-13 Tom Tromey <tom@tromey.com>
8206
8207 * mi/mi-main.c (output_register): Use common_val_print.
8208
3444c526
TT
82092020-03-13 Tom Tromey <tom@tromey.com>
8210
8211 * infcmd.c (default_print_one_register_info): Use
8212 common_val_print.
8213
c2a44efe
TT
82142020-03-13 Tom Tromey <tom@tromey.com>
8215
8216 * valprint.h (common_val_print_checked): Declare.
8217 * valprint.c (common_val_print_checked): New function.
8218 * stack.c (print_frame_arg): Use common_val_print_checked.
8219
b0c26e99
TT
82202020-03-13 Tom Tromey <tom@tromey.com>
8221
8222 * valprint.c (do_val_print): New function, from val_print.
8223 (val_print): Use do_val_print.
8224 (common_val_print): Use do_val_print.
8225
ce3acbe9
TT
82262020-03-13 Tom Tromey <tom@tromey.com>
8227
8228 * valprint.c (value_print): Use scoped_value_mark.
8229
96c7f873
TV
82302020-03-13 Tom de Vries <tdevries@suse.de>
8231
8232 PR symtab/25646
8233 * psymtab.c (partial_symtab::partial_symtab): Don't set
8234 globals_offset and statics_offset. Push element onto
8235 current_global_psymbols and current_static_psymbols stacks.
8236 (concat): New function.
8237 (end_psymtab_common): Set globals_offset and statics_offset. Pop
8238 element from current_global_psymbols and current_static_psymbols
8239 stacks. Concat popped elements to global_psymbols and
8240 static_symbols.
8241 (add_psymbol_to_list): Use current_global_psymbols and
8242 current_static_psymbols stacks.
8243 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
8244 current_static_psymbols fields.
8245
6ba0a321
CB
82462020-03-12 Christian Biesinger <cbiesinger@google.com>
8247
8248 * corelow.c (sniff_core_bfd): Remove.
8249 (class core_target) <m_core_vec>: Remove.
8250 (core_target::core_target): Update.
8251 (core_file_fns): Remove.
8252 (deprecated_add_core_fns): Remove.
8253 (default_core_sniffer): Remove.
8254 (sniff_core_bfd): Remove.
8255 (default_check_format): Remove.
8256 (gdb_check_format): Remove.
8257 (core_target_open): Update.
8258 (core_target::get_core_register_section): Update.
8259 (get_core_registers_cb): Update.
8260 (core_target::fetch_registers): Update.
8261 * gdbcore.h (struct core_fns): Remove.
8262 (deprecated_add_core_fns): Remove.
8263 (default_core_sniffer): Remove.
8264 (default_check_format): Remove.
8265
227031b2
TT
82662020-03-12 Tom Tromey <tom@tromey.com>
8267
8268 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
8269 CORE_ADDR.
8270 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
8271
53807e9f
TT
82722020-03-12 Tom Tromey <tom@tromey.com>
8273
8274 * remote.c (remote_target::download_tracepoint)
8275 (remote_target::enable_tracepoint)
8276 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
8277 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
8278 sprintf_vma.
8279
64f25102
TT
82802020-03-12 Tom Tromey <tom@tromey.com>
8281
8282 * symfile-mem.c: Update CORE_ADDR size assert.
8283
272cd5a3
SM
82842020-03-12 Simon Marchi <simon.marchi@efficios.com>
8285
8286 * selftest.m4: Move to gdbsupport/.
8287 * acinclude.m4: Update path to selftest.m4.
8288
74cd3f9d
SM
82892020-03-12 Simon Marchi <simon.marchi@efficios.com>
8290
8291 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
8292 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
8293 gdbarch-selfselftests.c and selftest-arch.c.
8294 (SUBDIR_UNITTESTS_OBS): Rename to...
8295 (SELFTESTS_OBS): ... this.
8296 (COMMON_SFILES): Remove disasm-selftests.c and
8297 gdbarch-selftests.c.
8298 * configure.ac: Don't add selftest-arch.{c,o} to
8299 CONFIG_{SRCS,OBS}.
8300 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
8301 preprocessor conditions.
8302
db6878ac
SM
83032020-03-12 Simon Marchi <simon.marchi@efficios.com>
8304
8305 * configure.ac: Don't source bfd/development.sh.
8306 * selftest.m4: Modify comment.
8307 * configure: Re-generate.
8308
4d696a5c
SM
83092020-03-12 Simon Marchi <simon.marchi@efficios.com>
8310
8311 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
8312 not "true" or "false".
8313 * configure: Re-generate.
8314
8dd8e1c7
CB
83152020-03-12 Christian Biesinger <cbiesinger@google.com>
8316
8317 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
8318 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
8319 renamed to arm_nbsd_supply_gregset.
8320 (fetch_register): Update to call arm_nbsd_supply_gregset.
8321 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
8322 (arm_netbsd_nat_target::fetch_registers): Update.
8323 (fetch_elfcore_registers): Removed.
8324 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
8325 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
8326 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
8327 not require NetBSD system headers.
8328 (arm_nbsd_regset): New struct.
8329 (arm_nbsd_iterate_over_regset_sections): New function.
8330 (arm_netbsd_init_abi_common): Updated to call
8331 set_gdbarch_iterate_over_regset_sections.
8332 * arm-nbsd-tdep.h: New file.
8333
dd69bf7a
KB
83342020-03-11 Kevin Buettner <kevinb@redhat.com>
8335
8336 * symtab.c (find_pc_sect_line): Add check which prevents infinite
8337 recursion.
8338
a0761e34
SM
83392020-03-11 Simon Marchi <simon.marchi@efficios.com>
8340
8341 * configure: Re-generate.
8342
e7a82140
TT
83432020-03-11 Tom Tromey <tromey@adacore.com>
8344
8345 * ada-typeprint.c (print_choices): Fix comment.
8346
dcc050c8
AB
83472020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
8348
8349 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
8350 previous item in the list, when the list has no items.
8351
1c33af77
TV
83522020-03-11 Tom de Vries <tdevries@suse.de>
8353
8354 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
8355 PROP_LOCLIST handling code.
8356
8c95582d
AB
83572020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
8358
8359 * buildsym-legacy.c (record_line): Pass extra parameter to
8360 record_line.
8361 * buildsym.c (buildsym_compunit::record_line): Take an extra
8362 parameter, reduce duplication in the line table, and record the
8363 is_stmt flag in the line table.
8364 * buildsym.h (buildsym_compunit::record_line): Add extra
8365 parameter.
8366 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
8367 non-statement lines.
8368 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
8369 this to the symtab builder.
8370 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
8371 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
8372 through to dwarf_record_line_1.
8373 * infrun.c (process_event_stop_test): When stepping, don't stop at
8374 a non-statement instruction, and only refresh the step info when
8375 we land in the middle of a line's range. Also add an extra
8376 comment.
8377 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
8378 field.
8379 * record-btrace.c (btrace_find_line_range): Only record lines
8380 marked as is-statement.
8381 * stack.c (frame_show_address): Show the frame address if we are
8382 in a non-statement sal.
8383 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
8384 (maintenance_print_one_line_table): Print a header for the is_stmt
8385 column, and include is_stmt information in the output.
8386 * symtab.c (find_pc_sect_line): Find lines marked as statements in
8387 preference to non-statements.
8388 (find_pcs_for_symtab_line): Prefer is-statement entries.
8389 (find_line_common): Likewise.
8390 * symtab.h (struct linetable_entry): Add is_stmt field.
8391 (struct symtab_and_line): Likewise.
8392 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
8393 arranging the line table.
8394
e4003a34
TV
83952020-03-07 Tom de Vries <tdevries@suse.de>
8396
8397 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
8398 DIE.
8399
e8932576
TT
84002020-03-07 Tom Tromey <tom@tromey.com>
8401
8402 * valops.c (value_literal_complex): Remove obsolete comment.
8403 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
8404 comment.
8405
29734269
SM
84062020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
8407
8408 * infrun.h: Forward-declare thread_info.
8409 (set_step_info): Add thread_info parameter, add doc.
8410 * infrun.c (set_step_info): Add thread_info parameter, move doc
8411 to header.
8412 * infrun.c (process_event_stop_test): Pass thread to
8413 set_step_info call.
8414 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
8415 set_step_info.
8416 (prepare_one_step): Add thread_info parameter, pass it to
8417 set_step_frame and prepare_one_step (recursive) call.
8418 (step_1): Pass thread to prepare_one_step call.
8419 (step_command_fsm::should_stop): Pass thread to
8420 prepare_one_step.
8421 (until_next_fsm): Pass thread to set_step_frame call.
8422 (finish_command): Pass thread to set_step_info call.
8423
b7d64b29
HD
84242020-03-06 Hannes Domani <ssbssa@yahoo.de>
8425
8426 * windows-tdep.c (windows_solib_create_inferior_hook):
8427 Check if inferior is running.
8428
09f2921c
TV
84292020-03-06 Tom de Vries <tdevries@suse.de>
8430
8431 * NEWS: Fix "the the".
8432 * ctfread.c: Same.
8433
fd760e79
TV
84342020-03-06 Tom de Vries <tdevries@suse.de>
8435
8436 * psymtab.c (psymtab_to_symtab): Don't print "done.".
8437
20ea4a60
AB
84382020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
8439
8440 * .dir-locals.el: Add a comment referencing the other copies of
8441 this file.
8442
0afbabf0
JB
84432020-03-05 John Baldwin <jhb@FreeBSD.org>
8444
8445 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
8446 psargs.
8447
842806cb
TBA
84482020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8449
8450 * .gitattributes: New file.
8451
be1e3d3e
TT
84522020-03-04 Tom Tromey <tom@tromey.com>
8453
8454 * symmisc.c (print_symbol_bcache_statistics)
8455 (print_objfile_statistics): Update.
8456 * symfile.c (allocate_symtab): Use intern.
8457 * psymtab.c (partial_symtab::partial_symtab): Use intern.
8458 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
8459 macro_cache>: Remove.
8460 <string_cache>: New member.
8461 (struct objfile) <intern>: New methods.
8462 * elfread.c (elf_symtab_read): Use intern.
8463 * dwarf2/read.c (fixup_go_packaging): Intern package name.
8464 (dwarf2_compute_name, dwarf2_physname)
8465 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
8466 names.
8467 (guess_partial_die_structure_name): Update.
8468 (partial_die_info::fixup): Intern name.
8469 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
8470 name.
8471 (dwarf2_name): Intern name. Update.
8472 * buildsym.c (buildsym_compunit::get_macro_table): Use
8473 string_cache.
8474
4e7625fd
TT
84752020-03-04 Tom Tromey <tom@tromey.com>
8476
8477 * jit.c (bfd_open_from_target_memory): Make "target" const.
8478 * corefile.c (gnutarget): Now const.
8479 * gdbcore.h (gnutarget): Now const.
8480
46f9f931
HD
84812020-03-04 Hannes Domani <ssbssa@yahoo.de>
8482
8483 * NEWS: Mention support for WOW64 processes.
8484 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
8485 (amd64_windows_segment_register_p): Remove static.
8486 (_initialize_amd64_windows_nat): Update.
8487 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
8488 * i386-windows-nat.c (context_offset): Update.
8489 (i386_mappings): Rename and remove static.
8490 (i386_windows_segment_register_p): Remove static.
8491 (_initialize_i386_windows_nat): Update.
8492 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
8493 (STATUS_WX86_SINGLE_STEP): New macro.
8494 (EnumProcessModulesEx): New macro.
8495 (Wow64SuspendThread): New macro.
8496 (Wow64GetThreadContext): New macro.
8497 (Wow64SetThreadContext): New macro.
8498 (Wow64GetThreadSelectorEntry): New macro.
8499 (windows_set_context_register_offsets): Add static.
8500 (windows_set_segment_register_p): Likewise.
8501 (windows_add_thread): Adapt for WOW64 processes.
8502 (windows_fetch_one_register): Likewise.
8503 (windows_nat_target::fetch_registers): Likewise.
8504 (windows_store_one_register): Likewise.
8505 (display_selector): Likewise.
8506 (display_selectors): Likewise.
8507 (handle_exception): Likewise.
8508 (windows_continue): Likewise.
8509 (windows_nat_target::resume): Likewise.
8510 (windows_add_all_dlls): Likewise.
8511 (do_initial_windows_stuff): Likewise.
8512 (windows_nat_target::attach): Likewise.
8513 (windows_get_exec_module_filename): Likewise.
8514 (windows_nat_target::create_inferior): Likewise.
8515 (windows_xfer_siginfo): Likewise.
8516 (_initialize_loadable): Initialize Wow64SuspendThread,
8517 Wow64GetThreadContext, Wow64SetThreadContext,
8518 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
8519 * windows-nat.h (windows_set_context_register_offsets):
8520 Remove declaration.
8521 (windows_set_segment_register_p): Likewise.
8522 (i386_windows_segment_register_p): Add declaration.
8523 (amd64_windows_segment_register_p): Likewise.
8524
440cf44e
LM
85252020-03-04 Luis Machado <luis.machado@linaro.org>
8526
8527 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
8528 in "info registers" for AArch64/ARM.
8529
8530 The change caused "info registers" to not print GPR's.
8531
8532 gdb/ChangeLog:
8533
8534 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
8535
8536 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
8537 when reg->group is empty and reggroup is not.
8538
1009d92f
TT
85392020-03-03 Tom Tromey <tromey@adacore.com>
8540
8541 * dwarf2/frame.c (struct dwarf2_frame_cache)
8542 <checked_tailcall_bottom, entry_cfa_sp_offset,
8543 entry_cfa_sp_offset_p>: Remove members.
8544 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
8545 (dwarf2_frame_prev_register): Don't call
8546 dwarf2_tailcall_sniffer_first.
8547 (dwarf2_append_unwinders): Don't append tailcall unwinder.
8548 * frame-unwind.c (add_unwinder): New fuction.
8549 (frame_unwind_init): Use it. Add tailcall unwinder.
8550
5e5d66b6
AB
85512020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
8552 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
8553
8554 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
8555 value should be printed as true.
8556
584cf46d
HD
85572020-03-03 Hannes Domani <ssbssa@yahoo.de>
8558
8559 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
8560 (windows_init_abi): Set and use windows_so_ops.
8561
7b973adc
SDJ
85622020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
8563
8564 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
8565 when verifying if dealing with a convenience variable.
8566
bb7b70ab
LM
85672020-03-03 Luis Machado <luis.machado@linaro.org>
8568
8569 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
8570
9822cb57
SM
85712020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
8572
8573 * infrun.c (gdbarch_supports_displaced_stepping): New.
8574 (use_displaced_stepping): Break up conditions in smaller pieces.
8575 Use gdbarch_supports_displaced_stepping.
8576 (displaced_step_prepare_throw): Use
8577 gdbarch_supports_displaced_stepping.
8578
63e163f2
AB
85792020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
8580
8581 * NEWS: Mention new behaviour of the history filename.
8582 * top.c (write_history_p): Add comment.
8583 (show_write_history_p): Add header comment, give a different
8584 message when history writing is on, but the history filename is
8585 empty.
8586 (history_filename): Add comment.
8587 (history_filename_empty): New function.
8588 (show_history_filename): Add header comment, give a different
8589 message when the filename is empty.
8590 (init_history): Compare history_filename against nullptr, and only
8591 read history if the filename is not empty.
8592 (set_history_filename): Add header comment, and only make
8593 non-empty filenames absolute.
8594 (init_main): Make the filename argument to 'set history filename'
8595 optional.
8596
81b86b97
CB
85972020-03-02 Christian Biesinger <cbiesinger@google.com>
8598
8599 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
8600 (arm_supply_vfpregset): ...this, and update to use VFP registers.
8601 (fetch_fp_register): Update.
8602 (fetch_fp_regs): Update.
8603 (store_fp_register): Update.
8604 (store_fp_regs): Update.
8605 (arm_netbsd_nat_target::read_description): New function.
8606 (fetch_elfcore_registers): Update.
8607
24ed6739
AB
86082020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
8609
8610 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
8611 general_thread if the stop reply is missing a thread-id.
8612 (remote_target::process_stop_reply): Use the first non-exited
8613 thread if the target didn't pass a thread-id.
8614 * infrun.c (do_target_wait): Move call to
8615 switch_to_inferior_no_thread to ....
8616 (do_target_wait_1): ... here.
8617
a84bb2a0
JT
86182020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
8619
8620 * debuginfod-support.c: Include defs.h first.
8621
658dadf0
TV
86222020-02-28 Tom de Vries <tdevries@suse.de>
8623
8624 * symfile.c (set_initial_language): Use default language for lookup.
8625
4ebe4877
SM
86262020-02-28 Simon Marchi <simon.marchi@efficios.com>
8627
8628 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
8629 reader variable, pass `this` to read_cutu_die_from_dwo.
8630
e5da1139
AM
86312020-02-27 Aaron Merey <amerey@redhat.com>
8632
8633 * source.c (open_source_file): Check for nullptr when computing
8634 srcpath.
8635
317f7127
TT
86362020-02-27 Tom Tromey <tromey@adacore.com>
8637
8638 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
8639 member.
8640 (dwarf2_add_field): Don't update nfields.
8641 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
8642
3104d9ee
AB
86432020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8644
8645 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
8646 abs.
8647
b83470bf
TT
86482020-02-26 Tom Tromey <tom@tromey.com>
8649
8650 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
8651 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
8652 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
8653 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
8654 per_cu_data.
8655
edfe0a0c
TT
86562020-02-26 Tom Tromey <tom@tromey.com>
8657
8658 * dwarf2/index-write.c (psym_index_map): Change type.
8659 (add_address_entry_worker, write_one_signatured_type)
8660 (recursively_count_psymbols, recursively_write_psymbols)
8661 (class debug_names, psyms_seen_size, write_gdbindex)
8662 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
8663
0d79cdc4
AM
86642020-02-26 Aaron Merey <amerey@redhat.com>
8665
8666 * Makefile.in: Handle optional debuginfod support.
8667 * NEWS: Update.
8668 * README: Add --with-debuginfod summary.
8669 * config.in: Regenerate.
8670 * configure: Regenerate.
8671 * configure.ac: Handle optional debuginfod support.
8672 * debuginfod-support.c: debuginfod helper functions.
8673 * debuginfod-support.h: Ditto.
8674 * doc/gdb.texinfo: Add --with-debuginfod to configure options
8675 summary.
8676 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
8677 when a dwz file cannot be found.
8678 * elfread.c (elf_symfile_read): Query debuginfod servers when a
8679 debuginfo file cannot be found.
8680 * source.c (open_source_file): Query debuginfod servers when a
8681 source file cannot be found.
8682 * top.c (print_gdb_configuration): Include
8683 --{with,without}-debuginfod in the output.
8684
b65ce565
JG
86852020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
8686
8687 * thread.c (thr_try_catch_cmd): Print thread name.
8688
d4c9a4f8
SM
86892020-02-26 Simon Marchi <simon.marchi@efficios.com>
8690
8691 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
8692 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
8693 dwarf2_fetch_die_type_sect_off): Move to...
8694 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
8695 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
8696 dwarf2_fetch_die_type_sect_off): ... here.
8697 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
8698 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
8699 dwarf2_fetch_die_type_sect_off): Move doc to header file.
8700
0dce4280
TV
87012020-02-26 Tom de Vries <tdevries@suse.de>
8702
8703 PR gdb/25603
8704 * symfile.c (set_initial_language): Exit-early if
8705 language_mode == language_mode_manual.
8706
450a1bfc
SM
87072020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
8708
8709 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
8710 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
8711 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
8712
9e80cfa1
AB
87132020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
8714
8715 * gdbtypes.c (create_array_type_with_stride): Handle negative
8716 array strides.
8717 * valarith.c (value_subscripted_rvalue): Likewise.
8718
09624f1f
LM
87192020-02-25 Luis Machado <luis.machado@linaro.org>
8720
8721 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
8722
8cb5117c
SM
87232020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
8724
8725 * loc.h (dwarf2_get_die_type): Move to...
8726 * read.h (dwarf2_get_die_type): ... here.
8727 * read.c (dwarf2_get_die_type): Move doc to header.
8728
c325c44e
JB
87292020-02-25 Joel Brobecker <brobecker@adacore.com>
8730
8731 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
8732 'gnulib/Makefile.in' to the list.
8733
4ac93832
TT
87342020-02-24 Tom Tromey <tom@tromey.com>
8735
8736 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
8737 Remove.
8738 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
8739 XOBNEWVEC.
8740
197400e8
TT
87412020-02-24 Tom Tromey <tom@tromey.com>
8742
8743 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
8744 New method.
8745 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
8746 (dw2_do_instantiate_symtab, dw2_get_file_names)
8747 (build_type_psymtab_dependencies, load_full_type_unit): Update.
8748
76935768
TT
87492020-02-24 Tom Tromey <tom@tromey.com>
8750
8751 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
8752 make_scoped_restore.
8753 (dwarf2_psymtab::read_symtab): Don't clear
8754 reading_partial_symbols.
8755
a88ef40d
TV
87562020-02-24 Tom de Vries <tdevries@suse.de>
8757
8758 PR gdb/25592
8759 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
8760
c9af6521
TV
87612020-02-24 Tom de Vries <tdevries@suse.de>
8762
8763 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
8764 commands layout next/prev/regs.
8765
5707a07a
TT
87662020-02-22 Tom Tromey <tom@tromey.com>
8767
8768 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
8769 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
8770
3b0fb49e
TT
87712020-02-22 Tom Tromey <tom@tromey.com>
8772
8773 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
8774
283be8bf
TT
87752020-02-22 Tom Tromey <tom@tromey.com>
8776
8777 * tui/tui-win.c (_initialize_tui_win): Add usage text.
8778 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
8779 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
8780 * tui/tui.c (_initialize_tui): Add usage text.
8781
ca793b96
TT
87822020-02-22 Tom Tromey <tom@tromey.com>
8783
8784 * tui/tui-win.c (tui_set_focus_command)
8785 (tui_set_win_height_command): Use error_no_arg.
8786 (_initialize_tui_win): Update help text.
8787 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
8788
432b5c40
TT
87892020-02-22 Tom Tromey <tom@tromey.com>
8790
8791 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
8792 * tui/tui-disasm.h (struct tui_disasm_window)
8793 <display_start_addr>: Declare.
8794 * tui/tui-source.h (struct tui_source_window)
8795 <display_start_addr>: Declare.
8796 * tui/tui-winsource.h (struct tui_source_window_base)
8797 <show_source_line, display_start_addr>: New methods.
8798 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
8799 Rename and move to protected section.
8800 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
8801 (tui_source_window_base::do_erase_source_content): Update.
8802 (tui_source_window_base::show_source_line): Now a method.
8803 (tui_source_window_base::show_source_content)
8804 (tui_source_window_base::tui_source_window_base)
8805 (tui_source_window_base::rerender)
8806 (tui_source_window_base::refill)
8807 (tui_source_window_base::do_scroll_horizontal)
8808 (tui_source_window_base::set_is_exec_point_at)
8809 (tui_source_window_base::update_breakpoint_info)
8810 (tui_source_window_base::update_exec_info): Update.
8811 * tui/tui-source.c (tui_source_window::set_contents)
8812 (tui_source_window::showing_source_p)
8813 (tui_source_window::do_scroll_vertical)
8814 (tui_source_window::location_matches_p)
8815 (tui_source_window::line_is_displayed): Update.
8816 (tui_source_window::display_start_addr): New method.
8817 * tui/tui-disasm.c (tui_disasm_window::set_contents)
8818 (tui_disasm_window::do_scroll_vertical)
8819 (tui_disasm_window::location_matches_p): Update.
8820 (tui_disasm_window::display_start_addr): New method.
8821
01b1af32
TT
88222020-02-22 Tom Tromey <tom@tromey.com>
8823
8824 * NEWS: Add entry for gdb.register_window_type.
8825 * tui/tui-layout.h (window_factory): New typedef.
8826 (tui_register_window): Declare.
8827 * tui/tui-layout.c (saved_tui_windows): New global.
8828 (tui_apply_current_layout): Use it.
8829 (tui_register_window): New function.
8830 * python/python.c (do_start_initialization): Call
8831 gdbpy_initialize_tui.
8832 (python_GdbMethods): Add "register_window_type" function.
8833 * python/python-internal.h (gdbpy_register_tui_window)
8834 (gdbpy_initialize_tui): Declare.
8835 * python/py-tui.c: New file.
8836 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
8837
fc96d20b
TT
88382020-02-22 Tom Tromey <tom@tromey.com>
8839
8840 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
8841
935c78c0
TT
88422020-02-22 Tom Tromey <tom@tromey.com>
8843
8844 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
8845 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
8846 * tui/tui-data.c (tui_set_win_with_focus): Remove.
8847 (tui_set_win_focus_to): Move from tui-win.c.
8848
0240c8f1
TT
88492020-02-22 Tom Tromey <tom@tromey.com>
8850
8851 * tui/tui-layout.c (make_standard_window, get_locator_window): New
8852 functions.
8853 (known_window_types): New global.
8854 (tui_get_window_by_name): Reimplement.
8855 (initialize_known_windows): New function.
8856 (validate_window_name): Rewrite.
8857 (_initialize_tui_layout): Call initialize_known_windows.
8858
fdb01f0c
TT
88592020-02-22 Tom Tromey <tom@tromey.com>
8860
8861 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
8862 Remove constants.
8863 * tui/tui-winsource.h (struct tui_source_window_base)
8864 <tui_source_window_base>: Remove parameter.
8865 * tui/tui-winsource.c
8866 (tui_source_window_base::tui_source_window_base): Remove
8867 parameter.
8868 (tui_source_window_base::refill): Update.
8869 * tui/tui-stack.h (struct tui_locator_window)
8870 <tui_locator_window>: Update.
8871 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
8872 Default the constructor.
8873 * tui/tui-regs.h (struct tui_data_item_window)
8874 <tui_data_item_window>: Default the constructor.
8875 (struct tui_data_window) <tui_data_window>: Likewise.
8876 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
8877 Default the constructor.
8878 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
8879 Default the constructor.
8880 <type>: Remove.
8881 (struct tui_win_info) <tui_win_info>: Default the constructor.
8882 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
8883 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
8884 Default the constructor.
8885
865a5aec
TT
88862020-02-22 Tom Tromey <tom@tromey.com>
8887
8888 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
8889 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
8890 * tui/tui-win.c (tui_resize_all): Don't call
8891 tui_delete_invisible_windows.
8892 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
8893 done.
8894 (tui_set_layout): Update.
8895 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
8896 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
8897 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
8898
e098d18c
TT
88992020-02-22 Tom Tromey <tom@tromey.com>
8900
8901 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
8902 correctly.
8903
eb9c8874
TT
89042020-02-22 Tom Tromey <tom@tromey.com>
8905
8906 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
8907
7eed1a8e
TT
89082020-02-22 Tom Tromey <tom@tromey.com>
8909
8910 * tui/tui-winsource.h (struct tui_source_window_iterator)
8911 <inner_iterator>: New etytypedef.
8912 <tui_source_window_iterator>: Take "end" parameter.
8913 <tui_source_window_iterator>: Take iterator.
8914 <operator*, advance>: Update.
8915 <m_iter>: Change type.
8916 <m_end>: New field.
8917 (struct tui_source_windows) <begin, end>: Update.
8918 * tui/tui-layout.c (tui_windows): New global.
8919 (tui_apply_current_layout): Clear tui_windows.
8920 (tui_layout_window::apply): Update tui_windows.
8921 * tui/tui-data.h (tui_windows): Declare.
8922 (all_tui_windows): Now inline function.
8923 (class tui_window_iterator, struct all_tui_windows): Remove.
8924
7c043ba6
TT
89252020-02-22 Tom Tromey <tom@tromey.com>
8926
8927 PR tui/17850:
8928 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
8929 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
8930 "height" argument.
8931 (class tui_layout_window) <get_sizes>: Likewise.
8932 (class tui_layout_split) <tui_layout_split>: Add "vertical"
8933 argument.
8934 <get_sizes>: Add "height" argument.
8935 <m_vertical>: New field.
8936 * tui/tui-layout.c (tui_layout_split::clone): Update.
8937 (tui_layout_split::get_sizes): Add "height" argument.
8938 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
8939 (tui_new_layout_command): Parse "-horizontal".
8940 (_initialize_tui_layout): Update help string.
8941 (tui_layout_split::specification): Add "-horizontal" when needed.
8942 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
8943 argument.
8944 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
8945 New methods.
8946
6bc56648
TT
89472020-02-22 Tom Tromey <tom@tromey.com>
8948
8949 * tui/tui-layout.h (enum tui_adjust_result): New.
8950 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
8951 (class tui_layout_window) <adjust_size>: Return
8952 tui_adjust_result. Rewrite.
8953 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
8954 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
8955
c22fef7e
TT
89562020-02-22 Tom Tromey <tom@tromey.com>
8957
8958 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
8959 parameter and return types.
8960 (class tui_layout_base) <specification>: Add "depth".
8961 (class tui_layout_window) <specification>: Add "depth".
8962 (class tui_layout_split) <specification>: Add "depth".
8963 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
8964 and return types.
8965 (tui_new_layout_command): Parse sub-layouts.
8966 (_initialize_tui_layout): Update help string.
8967 (tui_layout_window::specification): Add "depth".
8968 (add_layout_command): Update.
8969
ee325b61
TT
89702020-02-22 Tom Tromey <tom@tromey.com>
8971
8972 * NEWS: Add "tui new-layout" item.
8973 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
8974 Add new-layout command to help text.
8975 (validate_window_name): New function.
8976 (tui_new_layout_command): New function.
8977 (_initialize_tui_layout): Register "new-layout".
8978 (tui_layout_window::specification): New method.
8979 (tui_layout_window::specification): New method.
8980 * tui/tui-layout.h (class tui_layout_base) <specification>: New
8981 method.
8982 (class tui_layout_window) <specification>: New method.
8983 (class tui_layout_split) <specification>: New method.
8984
416eb92d
TT
89852020-02-22 Tom Tromey <tom@tromey.com>
8986
8987 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
8988 * tui/tui-win.c (window_name_completer): Update comment.
8989 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
8990 Declare method.
8991 (class tui_layout_window) <replace_window>: Likewise.
8992 (class tui_layout_split) <replace_window>: Likewise.
8993 (tui_set_layout): Don't declare.
8994 (tui_set_initial_layout): Declare function.
8995 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
8996 (asm_regs_layout): New globals.
8997 (tui_current_layout, show_layout): Remove.
8998 (tui_set_layout, tui_add_win_to_layout): Rewrite.
8999 (find_layout, tui_apply_layout): New function.
9000 (layout_completer): Remove.
9001 (tui_next_layout): Reimplement.
9002 (tui_next_layout_command): New function.
9003 (tui_set_initial_layout, tui_prev_layout_command): New functions.
9004 (tui_regs_layout): Reimplement.
9005 (tui_regs_layout_command): New function.
9006 (extract_display_start_addr): Rewrite.
9007 (next_layout, prev_layout): Remove.
9008 (tui_layout_window::replace_window): New method.
9009 (tui_layout_split::replace_window): New method.
9010 (destroy_layout): New function.
9011 (layout_list): New global.
9012 (add_layout_command): New function.
9013 (initialize_layouts): Update.
9014 (tui_layout_command): New function.
9015 (_initialize_tui_layout): Install "layout" commands.
9016 * tui/tui-data.h (enum tui_layout_type): Remove.
9017 (tui_current_layout): Don't declare.
9018
0dbc2fc7
TT
90192020-02-22 Tom Tromey <tom@tromey.com>
9020
9021 * tui/tui-regs.c (tui_reg_layout): Remove.
9022 (tui_reg_command): Use tui_regs_layout.
9023 * tui/tui-layout.h (tui_reg_command): Declare.
9024 * tui/tui-layout.c (tui_reg_command): New function.
9025
5afe342e
TT
90262020-02-22 Tom Tromey <tom@tromey.com>
9027
9028 * tui/tui.c (tui_rl_delete_other_windows): Call
9029 tui_remove_some_windows.
9030 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
9031 Declare method.
9032 (class tui_layout_window) <remove_windows>: New method.
9033 (class tui_layout_split) <remove_windows>: Declare.
9034 (tui_remove_some_windows): Declare.
9035 * tui/tui-layout.c (tui_remove_some_windows): New function.
9036 (tui_layout_split::remove_windows): New method.
9037
427326a8
TT
90382020-02-22 Tom Tromey <tom@tromey.com>
9039
9040 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
9041 * tui/tui-layout.h (tui_next_layout): Declare.
9042 * tui/tui-layout.c (tui_next_layout): New function.
9043
3fe12b6d
TT
90442020-02-22 Tom Tromey <tom@tromey.com>
9045
9046 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
9047 correct coordinates.
9048
59b8b5d2
TT
90492020-02-22 Tom Tromey <tom@tromey.com>
9050
9051 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
9052 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
9053 DATA_WIN case.
9054
2a3d458b
TT
90552020-02-22 Tom Tromey <tom@tromey.com>
9056
9057 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
9058 TUI_DISASM_WIN, not tui_win_list.
9059
3f0cbb04
TT
90602020-02-22 Tom Tromey <tom@tromey.com>
9061
9062 * valprint.c (generic_val_print_enum_1)
9063 (val_print_type_code_flags): Style member names.
9064 * rust-lang.c (val_print_struct, rust_print_enum)
9065 (rust_print_struct_def, rust_internal_print_type): Style member
9066 names.
9067 * p-valprint.c (pascal_object_print_value_fields): Style member
9068 names. Only call fprintf_symbol_filtered for static members.
9069 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
9070 * f-valprint.c (f_val_print): Style member names.
9071 * f-typeprint.c (f_type_print_base): Style member names.
9072 * cp-valprint.c (cp_print_value_fields): Style member names. Only
9073 call fprintf_symbol_filtered for static members.
9074 (cp_print_class_member): Style member names.
9075 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
9076 member names.
9077 * ada-valprint.c (ada_print_scalar): Style enum names.
9078 (ada_val_print_enum): Likewise.
9079 * ada-typeprint.c (print_enum_type): Style enum names.
9080
d4d947ae
TT
90812020-02-21 Tom Tromey <tom@tromey.com>
9082
9083 * psympriv.h (struct partial_symtab): Update comment.
9084
e94e944b
TT
90852020-02-21 Tom Tromey <tromey@adacore.com>
9086
9087 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
9088 type is CORE_ADDR.
9089
1eb73179
TV
90902020-02-21 Tom de Vries <tdevries@suse.de>
9091
9092 PR gdb/25534
9093 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
9094 if dependencies[i]->user != NULL.
9095
4f180d53
AT
90962020-02-21 Ali Tamur <tamur@google.com>
9097
9098 * dwarf2/read.c (dwarf2_name): Add null check.
9099
22b6cd70
TT
91002020-02-20 Tom Tromey <tom@tromey.com>
9101
9102 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
9103 ">=", in binary search.
9104 (dwarf2_find_containing_comp_unit): New overload.
9105 (run_test): New self-test.
9106 (_initialize_dwarf2_read): Register new test.
9107
bd0cf5a6
NC
91082020-02-20 Nelson Chu <nelson.chu@sifive.com>
9109
9110 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
9111 * riscv-tdep.h: Likewise.
9112 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
9113 rv32-only CSR.
9114 * features/riscv/64bit-csr.xml: Regenerated.
9115
3f702acd
SDJ
91162020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
9117 Tom Tromey <tom@tromey.com>
9118
9119 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
9120 of 'fputc_unfiltered'.
9121 (putchar_unfiltered): Call 'fputc_unfiltered'.
9122 (fputc_unfiltered): Call 'fputs_unfiltered'.
9123
d13c7322
AB
91242020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
9125
9126 * config.in: Regenerate.
9127 * configure: Regenerate.
9128 * configure.ac: Add --with-python-libdir option.
9129 * main.c: Use WITH_PYTHON_LIBDIR.
9130
869d8950
TT
91312020-02-19 Tom Tromey <tom@tromey.com>
9132
9133 * symtab.c (general_symbol_info::compute_and_set_names): Use
9134 obstack_strndup. Simplify call to symbol_set_demangled_name.
9135
298e9637
SM
91362020-02-19 Simon Marchi <simon.marchi@efficios.com>
9137
9138 * dwarf2/read.c (allocate_signatured_type_table,
9139 allocate_dwo_unit_table, allocate_type_unit_groups_table,
9140 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
9141 Remove objfile parameter, update all callers.
9142
08410482
DE
91432020-02-19 Doug Evans <dje@google.com>
9144
9145 PR rust/25535
9146 * rust-lang.c (rust_print_enum): Apply embedded_offset to
9147 rust_enum_variant calculation.
9148
dfdeeca1
TT
91492020-02-19 Tom Tromey <tromey@adacore.com>
9150
9151 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
9152
2ef5453b
TT
91532020-02-19 Tom Tromey <tromey@adacore.com>
9154
9155 * ada-lang.c (cache_symbol): Use obstack_strdup.
9156
9f1528a1
AB
91572020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
9158
9159 * configure: Regenerate.
9160
d3c22fa8
TT
91612020-02-19 Tom Tromey <tromey@adacore.com>
9162
9163 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
9164 NULL check.
9165
bf84f706
MR
91662020-02-19 Maciej W. Rozycki <macro@wdc.com>
9167
9168 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
9169
d1c9b20f
AB
91702020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
9171
9172 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
9173 if GDBSERVER is not defined.
9174 (riscv_tdesc_cache): Likewise, also store const target_desc.
9175 (STATIC_IN_GDB): Define.
9176 (riscv_create_target_description): Update declaration with
9177 STATIC_IN_GDB.
9178 (riscv_lookup_target_description): New function, only define if
9179 GDBSERVER is not defined.
9180 * arch/riscv.h (riscv_create_target_description): Declare only
9181 when GDBSERVER is defined.
9182 (riscv_lookup_target_description): New declaration when GDBSERVER
9183 is not defined.
9184 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
9185 (riscv_linux_read_features): ...this, and return
9186 riscv_gdbarch_features instead of target_desc.
9187 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
9188 (riscv_linux_read_description): Rename to...
9189 (riscv_linux_read_features): ...this.
9190 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
9191 Update to use riscv_gdbarch_features and
9192 riscv_lookup_target_description.
9193 * riscv-tdep.c (riscv_find_default_target_description): Use
9194 riscv_lookup_target_description instead of
9195 riscv_create_target_description.
9196
373d7ac0
SM
91972020-02-18 Simon Marchi <simon.marchi@efficios.com>
9198
9199 * valprint.c (generic_val_print_enum_1): When printing a flag
9200 enum with value 0 and there is no enumerator with value 0, print
9201 just "0" instead of "(unknown: 0x0)".
9202
b29a2df0
SM
92032020-02-18 Simon Marchi <simon.marchi@efficios.com>
9204
9205 * valprint.c (generic_val_print_enum_1): Print unknown part of
9206 flag enum in hex.
9207
6740f0cc
SM
92082020-02-18 Simon Marchi <simon.marchi@efficios.com>
9209
9210 * dwarf2/read.c (update_enumeration_type_from_children): Allow
9211 flag enums to contain duplicate enumerators.
9212 * valprint.c (generic_val_print_enum_1): Update comment.
9213
edd45eb0
SM
92142020-02-18 Simon Marchi <simon.marchi@efficios.com>
9215
9216 * dwarf2/read.c: Include "count-one-bits.h".
9217 (update_enumeration_type_from_children): If an enumerator has
9218 multiple bits set, don't treat the enumeration as a "flag enum".
9219 * valprint.c (generic_val_print_enum_1): Assert that enumerators
9220 of flag enums have 0 or 1 bit set.
9221
6d0cf446
BE
92222020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
9223
9224 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
9225 conversion.
9226 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
9227 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
9228 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
9229 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
9230 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
9231
7001c1b7
SM
92322020-02-18 Simon Marchi <simon.marchi@efficios.com>
9233
9234 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
9235
fdb61c6c
SM
92362020-02-14 Simon Marchi <simon.marchi@efficios.com>
9237
9238 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
9239 displaced_step_closure_up.
9240 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
9241 (struct displaced_step_closure_up):
9242 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
9243 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
9244 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
9245 Likewise.
9246 * gdbarch.sh (displaced_step_copy_insn): Likewise.
9247 * gdbarch.c, gdbarch.h: Re-generate.
9248 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
9249 displaced_step_closure_up.
9250 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
9251 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
9252 * infrun.h (displaced_step_closure_up): New type alias.
9253 (struct displaced_step_inferior_state) <step_closure>: Change
9254 type to displaced_step_closure_up.
9255 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
9256 displaced_step_closure_up.
9257 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
9258
a4a38eb4
TT
92592020-02-14 Tom Tromey <tom@tromey.com>
9260
9261 * minidebug.c (gnu_debug_key): New global.
9262 (find_separate_debug_file_in_section): Use it.
9263
e8217e61
SM
92642020-02-14 Simon Marchi <simon.marchi@efficios.com>
9265
9266 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
9267 std::unique_ptr.
9268 * gdbarch.c: Re-generate.
9269 * gdbarch.h: Re-generate.
9270 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
9271 change.
9272 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
9273 type to std::unique_ptr.
9274 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
9275 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
9276 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
9277 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
9278 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
9279 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
9280 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
9281 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
9282 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
9283
d8d83535
SM
92842020-02-14 Simon Marchi <simon.marchi@efficios.com>
9285
9286 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
9287 std::unique_ptr.
9288 (displaced_step_clear): Rename to...
9289 (displaced_step_reset): ... this. Just call displaced->reset ().
9290 (displaced_step_clear_cleanup): Rename to...
9291 (displaced_step_reset_cleanup): ... this.
9292 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
9293 (displaced_step_fixup): Likewise.
9294 (resume_1): Likewise.
9295 (handle_inferior_event): Restore child's memory before calling
9296 displaced_step_fixup on the parent.
9297 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
9298 to std::unique_ptr.
9299 <step_closure>: Change type to std::unique_ptr.
9300
5f661e03
SM
93012020-02-14 Simon Marchi <simon.marchi@efficios.com>
9302
9303 * arm-tdep.c: Include count-one-bits.h.
9304 (cleanup_block_store_pc): Use count_one_bits.
9305 (cleanup_block_load_pc): Use count_one_bits.
9306 (arm_copy_block_xfer): Use count_one_bits.
9307 (thumb2_copy_block_xfer): Use count_one_bits.
9308 (thumb_copy_pop_pc_16bit): Use count_one_bits.
9309 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
9310 (thumb_get_next_pcs_raw): Use count_one_bits.
9311 (arm_get_next_pcs_raw): Use count_one_bits_l.
9312 * arch/arm.c (bitcount): Remove.
9313 * arch/arm.h (bitcount): Remove.
9314
8084e579
TT
93152020-02-14 Tom Tromey <tromey@adacore.com>
9316
9317 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
9318 Update.
9319 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
9320 * dwarf2/loc.c (call_site_find_chain_1): Return
9321 unique_xmalloc_ptr.
9322 (call_site_find_chain): Likewise.
9323
258bf0ee
RB
93242020-02-14 Richard Biener <rguenther@suse.de>
9325
9326 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
9327 on expression with division operators.
9328
f98a8458
AKS
93292020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
9330
9331 * MAINTAINERS (Write After Approval): Adding myself.
9332
d1437c0e
TT
93332020-02-12 Tom Tromey <tom@tromey.com>
9334
9335 * event-loop.c (event_data, gdb_event, event_handler_func):
9336 Remove.
9337
3d4560f7
TT
93382020-02-12 Tom Tromey <tom@tromey.com>
9339
9340 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
9341 (dwarf2_frame_objfile_data): Add comment.
9342 (find_comp_unit, set_comp_unit): New functions.
9343 (dwarf2_frame_find_fde): Use find_comp_unit.
9344 (dwarf2_build_frame_info): Use set_comp_unit.
9345
21982304
TT
93462020-02-12 Tom Tromey <tom@tromey.com>
9347
9348 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
9349 (comp_unit): Don't initialize objfile.
9350 (execute_cfa_program): Add text_offset parameter.
9351 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
9352 (dwarf2_frame_cache): Update.
9353 (dwarf2_build_frame_info): Don't set "objfile" member.
9354
4debb237
TT
93552020-02-12 Tom Tromey <tom@tromey.com>
9356
9357 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
9358 (decode_frame_entry): Likewise.
9359 (dwarf2_build_frame_info): Update.
9360
0d404d44
TT
93612020-02-12 Tom Tromey <tom@tromey.com>
9362
9363 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
9364 (decode_frame_entry_1): Use the comp_unit obstack.
9365
a7a3ae5c
TT
93662020-02-12 Tom Tromey <tom@tromey.com>
9367
9368 * dwarf2/frame.c (struct comp_unit): Add initializers and
9369 constructor.
9370 (dwarf2_frame_objfile_data): Store a comp_unit.
9371 (dwarf2_frame_find_fde): Update.
9372 (dwarf2_build_frame_info): Use "new".
9373
a9d65418
TT
93742020-02-12 Tom Tromey <tom@tromey.com>
9375
9376 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
9377 (dwarf2_fde_table): Typedef for std::vector.
9378 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
9379 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
9380 (decode_frame_entry): Update.
9381 (dwarf2_build_frame_info): Use "new".
9382
7559c217
CB
93832020-02-12 Christian Biesinger <cbiesinger@google.com>
9384
9385 * arm-tdep.c (arm_gdbarch_init): Update.
9386 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
9387 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
9388 have_neon, is_m>: Change to bool.
9389
aeefc73c
CB
93902020-02-12 Christian Biesinger <cbiesinger@google.com>
9391
9392 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
9393
d27b8e5f
TT
93942020-02-12 Tom Tromey <tom@tromey.com>
9395
9396 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
9397
cd5900f3
HD
93982020-02-12 Hannes Domani <ssbssa@yahoo.de>
9399
9400 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
9401 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
9402
f056b22b
TT
94032020-02-11 Tom Tromey <tom@tromey.com>
9404
9405 * psymtab.h: Update comment.
9406
f92ff6b5
TT
94072020-02-11 Tom Tromey <tom@tromey.com>
9408
9409 * gdb_obstack.h (struct auto_obstack): Use
9410 DISABLE_COPY_AND_ASSIGN.
9411
3fd6912b
TT
94122020-02-11 Tom Tromey <tom@tromey.com>
9413
9414 * dwarf2/frame.h (struct objfile): Don't forward declare.
9415
69ed9b74
CB
94162020-02-11 Christian Biesinger <cbiesinger@google.com>
9417
9418 * cris-tdep.c (cris_supply_gregset): Change signature to match
9419 what struct regset expects.
9420 (cris_regset): New struct.
9421 (fetch_core_registers): Remove.
9422 (cris_iterate_over_regset_sections): New function.
9423 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
9424 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
9425
bda874f6
CB
94262020-02-11 Christian Biesinger <cbiesinger@google.com>
9427
9428 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
9429 registers.
9430
754e1564
CB
94312020-02-11 Christian Biesinger <cbiesinger@google.com>
9432
9433 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
9434
8ddd8e0e
SM
94352020-02-11 Simon Marchi <simon.marchi@efficios.com>
9436
9437 * configure: Re-generate.
9438
898e7f60
SM
94392020-02-11 Simon Marchi <simon.marchi@efficios.com>
9440
9441 * configure: Re-generate.
9442
58df732b
SM
94432020-02-11 Simon Marchi <simon.marchi@efficios.com>
9444
9445 * acinclude: Update warning.m4 path.
9446 * warning.m4: Move to gdbsupport.
9447
da5bd37e
TT
94482020-02-11 Tom Tromey <tromey@adacore.com>
9449
9450 * remote.c (remote_console_output): Update.
9451 * printcmd.c (printf_command): Update.
9452 * event-loop.c (gdb_wait_for_event): Update.
9453 * linux-nat.c (sigchld_handler): Update.
9454 * remote-sim.c (gdb_os_write_stdout): Update.
9455 (gdb_os_flush_stdout): Update.
9456 (gdb_os_flush_stderr): Update.
9457 (gdb_os_write_stderr): Update.
9458 * exceptions.c (print_exception): Update.
9459 * remote-fileio.c (remote_fileio_func_read): Update.
9460 (remote_fileio_func_write): Update.
9461 * tui/tui.c (tui_enable): Update.
9462 * tui/tui-interp.c (tui_interp::init): Update.
9463 * utils.c (init_page_info): Update.
9464 (putchar_unfiltered, fputc_unfiltered): Update.
9465 (gdb_flush): Update.
9466 (emit_style_escape): Update.
9467 (flush_wrap_buffer, fputs_maybe_filtered): Update.
9468 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
9469 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
9470 (stderr_file::write): Update.
9471 (stderr_file::puts): Update.
9472 * ui-file.h (ui_file_isatty, ui_file_write)
9473 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
9474 (ui_file_puts): Don't declare.
9475
85f0dd3c
TV
94762020-02-10 Tom de Vries <tdevries@suse.de>
9477
9478 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
9479 sentinel to char *.
9480
2e927613
TV
94812020-02-09 Tom de Vries <tdevries@suse.de>
9482
9483 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
9484 filename if it matches "<artificial>".
9485
6bafc845
HD
94862020-02-09 Hannes Domani <ssbssa@yahoo.de>
9487
9488 * windows-tdep.c (struct enum_value_name): New struct.
9489 (create_enum): New function.
9490 (windows_get_siginfo_type): Create and use enum types.
9491
7928d571
HD
94922020-02-09 Hannes Domani <ssbssa@yahoo.de>
9493
9494 * NEWS: Mention $_siginfo support for Windows.
9495 * windows-nat.c (handle_exception): Set siginfo_er.
9496 (windows_nat_target::mourn_inferior): Reset siginfo_er.
9497 (windows_xfer_siginfo): New function.
9498 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
9499 * windows-tdep.c (struct windows_gdbarch_data): New struct.
9500 (init_windows_gdbarch_data): New function.
9501 (get_windows_gdbarch_data): New function.
9502 (windows_get_siginfo_type): New function.
9503 (windows_init_abi): Register windows_get_siginfo_type.
9504 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
9505
6751ebae
TT
95062020-02-08 Tom Tromey <tom@tromey.com>
9507
9508 * dwarf2/read.c (class cutu_reader) <cutu_reader,
9509 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
9510 <keep>: Declare method.
9511 <m_keep>: Remove member.
9512 <~cutu_reader>: Remove.
9513 (cutu_reader::init_tu_and_read_dwo_dies): Update.
9514 (cutu_reader::cutu_reader): Update.
9515 (cutu_reader::keep): Rename from ~cutu_reader.
9516 (process_psymtab_comp_unit, build_type_psymtabs_1)
9517 (process_skeletonless_type_unit, load_partial_comp_unit)
9518 (load_full_comp_unit, dwarf2_read_addr_index)
9519 (read_signatured_type): Update.
9520
135f5437
TT
95212020-02-08 Tom Tromey <tom@tromey.com>
9522
9523 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
9524 "want_partial_unit" parameter.
9525 (process_psymtab_comp_unit): Change want_partial_unit to bool.
9526 Inline check for DW_TAG_partial_unit.
9527 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
9528
9f66ff1c
TT
95292020-02-08 Tom Tromey <tom@tromey.com>
9530
9531 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
9532 read.c.
9533 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
9534 read.c.
9535
c8a7a66f
TT
95362020-02-08 Tom Tromey <tom@tromey.com>
9537
9538 * dwarf2/read.c (read_address): Move to comp-unit.c.
9539 (dwarf2_rnglists_process, dwarf2_ranges_process)
9540 (read_attribute_value, dwarf_decode_lines_1)
9541 (var_decode_location, decode_locdesc): Update.
9542 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
9543 read.c. Remove "cu" parameter.
9544 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
9545 method.
9546
8266302d
TT
95472020-02-08 Tom Tromey <tom@tromey.com>
9548
9549 * dwarf2/read.c (read_attribute_value, read_indirect_string)
9550 (read_indirect_line_string): Update.
9551 * dwarf2/comp-unit.c (read_offset): Remove.
9552 (read_comp_unit_head): Update.
9553 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
9554 method.
9555 (read_offset): Don't declare.
9556
4057dfde
TT
95572020-02-08 Tom Tromey <tom@tromey.com>
9558
9559 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
9560 * dwarf2/read.c (struct comp_unit_head): Move to
9561 dwarf2/comp-unit.h.
9562 (enum class rcuh_kind): Move to comp-unit.h.
9563 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
9564 (read_comp_unit_head, error_check_comp_unit_head)
9565 (read_and_check_comp_unit_head): Move to comp-unit.c.
9566 (read_offset, dwarf_unit_type_name): Likewise.
9567 (create_debug_type_hash_table, read_cutu_die_from_dwo)
9568 (cutu_reader::cutu_reader, read_call_site_scope)
9569 (find_partial_die, follow_die_offset): Update.
9570 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
9571
24aa364d
TT
95722020-02-08 Tom Tromey <tom@tromey.com>
9573
9574 * dwarf2/read.c (read_offset_1): Move to leb.c.
9575 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
9576 (dwarf_decode_macro_bytes): Update.
9577 * dwarf2/leb.c (read_offset): Rename; move from read.c.
9578 * dwarf2/leb.h (read_offset): Declare.
9579
2c7d5afc
TT
95802020-02-08 Tom Tromey <tom@tromey.com>
9581
9582 * dwarf2/read.c (dwarf2_section_size): Remove.
9583 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
9584 Update.
9585 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
9586
4075cb26
TT
95872020-02-08 Tom Tromey <tom@tromey.com>
9588
9589 * dwarf2/read.c (read_initial_length): Move to leb.c.
9590 * dwarf2/leb.h (read_initial_length): Declare.
9591 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
9592 handle_nonstd parameter.
9593 * dwarf2/frame.c (read_initial_length): Remove.
9594 (decode_frame_entry_1): Update.
9595
09ba997f
TT
95962020-02-08 Tom Tromey <tom@tromey.com>
9597
9598 * dwarf2/loc.c (dwarf2_find_location_expression)
9599 (dwarf_evaluate_loc_desc::get_tls_address)
9600 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
9601 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
9602 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
9603 (dwarf2_compile_property_to_c)
9604 (dwarf2_loc_desc_get_symbol_read_needs)
9605 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
9606 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
9607 (loclist_describe_location, loclist_tracepoint_var_ref)
9608 (loclist_generate_c_location): Update.
9609 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
9610 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
9611 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
9612 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
9613 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
9614 (dwarf2_per_cu_data::addr_size)
9615 (dwarf2_per_cu_data::ref_addr_size)
9616 (dwarf2_per_cu_data::text_offset)
9617 (dwarf2_per_cu_data::addr_type): Now methods.
9618 (per_cu_header_read_in): Make per_cu "const".
9619 (dwarf2_version): Remove.
9620 (dwarf2_per_cu_data::int_type): Now a method.
9621 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
9622 (set_die_type, read_array_type, read_subrange_index_type)
9623 (read_tag_string_type, read_subrange_type): Update.
9624 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
9625 offset_size, ref_addr_size, text_offset, addr_type, version,
9626 objfile, int_type, addr_sized_int_type>: Declare methods.
9627
96c738c0
TT
96282020-02-08 Tom Tromey <tom@tromey.com>
9629
9630 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
9631 Move earlier.
9632
8fdd972c
TT
96332020-02-08 Tom Tromey <tom@tromey.com>
9634
9635 * dwarf2/read.h (dwarf_line_debug): Declare.
9636 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
9637 * dwarf2/read.c: Move line_header code to new files.
9638 (dwarf_line_debug): No longer static.
9639 * dwarf2/line-header.c: New file.
9640 * dwarf2/line-header.h: New file.
9641
03075812
TT
96422020-02-08 Tom Tromey <tom@tromey.com>
9643
9644 * dwarf2/read.c (struct line_header) <file_full_name,
9645 file_file_name>: Return unique_xmalloc_ptr.
9646 (line_header::file_file_name): Update.
9647 (line_header::file_full_name): Update.
9648 (dw2_get_file_names_reader): Update.
9649 (macro_start_file): Update.
9650
bb822404
TT
96512020-02-08 Tom Tromey <tom@tromey.com>
9652
9653 * dwarf2/read.c (struct line_header) <file_full_name,
9654 file_file_name>: Declare methods.
9655 (dw2_get_file_names_reader): Update.
9656 (file_file_name): Now a method.
9657 (file_full_name): Likewise.
9658 (macro_start_file): Update.
9659
009b64fc
TT
96602020-02-08 Tom Tromey <tom@tromey.com>
9661
9662 * dwarf2/read.c (dwarf_always_disassemble)
9663 (show_dwarf_always_disassemble): Move to loc.c.
9664 (_initialize_dwarf2_read): Move "always-disassemble" registration
9665 to loc.c.
9666 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
9667 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
9668 static.
9669 (show_dwarf_always_disassemble): Move from read.c.
9670 (_initialize_dwarf2loc): Move always-disassemble from read.c.
9671
5895093f
TT
96722020-02-08 Tom Tromey <tom@tromey.com>
9673
9674 * dwarf2/read.c (~dwarf2_per_objfile): Update.
9675 (create_quick_file_names_table): Return htab_up.
9676 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
9677 Update.
9678 * dwarf2/read.h (struct dwarf2_per_objfile)
9679 <quick_file_names_table>: Now htab_up.
9680
b3b32279
TT
96812020-02-08 Tom Tromey <tom@tromey.com>
9682
9683 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
9684
1d33d811
TT
96852020-02-08 Tom Tromey <tom@tromey.com>
9686
9687 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
9688 Rewrite.
9689 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
9690 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
9691 (abbrev_table::abbrev_table): No longer inline.
9692 (ABBREV_HASH_SIZE): Remove.
9693 (abbrev_table::m_abbrevs): Now an htab_up.
9694
86de1d91
TT
96952020-02-08 Tom Tromey <tom@tromey.com>
9696
9697 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
9698 (cutu_reader): Update.
9699 (build_type_psymtabs_1): Update.
9700 * dwarf2/abbrev.c (abbrev_table::read): Rename.
9701 (abbrev_table::alloc_abbrev): Update.
9702 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
9703 (abbrev_table::read): New static method, renamed from
9704 abbrev_table_read_table.
9705 (abbrev_table::alloc_abbrev)
9706 (abbrev_table::add_abbrev): Now private.
9707 (abbrev_table::abbrev_table): Now private.
9708 (abbrev_table::m_abbrev_obstack): Now private. Rename.
9709
0335378b
TT
97102020-02-08 Tom Tromey <tom@tromey.com>
9711
9712 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
9713 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
9714 htab_up.
9715
48b490f2
TT
97162020-02-08 Tom Tromey <tom@tromey.com>
9717
9718 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
9719 htab_up.
9720 (lookup_dwo_unit_in_dwp): Update.
9721 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
9722 on obstack.
9723
bc68fb19
TT
97242020-02-08 Tom Tromey <tom@tromey.com>
9725
9726 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
9727 obstack.
9728
d15acc42
TT
97292020-02-08 Tom Tromey <tom@tromey.com>
9730
9731 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
9732 line_header_hash.
9733 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
9734 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
9735 Change type to htab_up.
9736
eaa5fa8b
TT
97372020-02-08 Tom Tromey <tom@tromey.com>
9738
9739 * dwarf2/read.c (allocate_type_unit_groups_table): Return
9740 htab_up. Don't allocate on obstack.
9741 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
9742 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
9743 Change type to htab_up.
9744
b0b6a987
TT
97452020-02-08 Tom Tromey <tom@tromey.com>
9746
9747 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
9748 Change type to htab_up.
9749 * dwarf2/read.c (create_signatured_type_table_from_index)
9750 (create_signatured_type_table_from_debug_names)
9751 (create_all_type_units, add_type_unit)
9752 (lookup_dwo_signatured_type, lookup_signatured_type)
9753 (process_skeletonless_type_unit): Update.
9754 (create_debug_type_hash_table, create_debug_types_hash_table):
9755 Change type of types_htab.
9756 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
9757 htab_up. Don't allocate on obstack.
9758 (create_cus_hash_table): Change type of cus_htab parameter.
9759 (struct dwo_file) <cus, tus>: Now htab_up.
9760 (lookup_dwo_signatured_type, lookup_dwo_cutu)
9761 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
9762 (queue_and_load_all_dwo_tus): Update.
9763 * dwarf2/index-write.c (write_gdbindex): Update.
9764 (write_debug_names): Update.
9765
39856def
TT
97662020-02-08 Tom Tromey <tom@tromey.com>
9767
9768 * dwarf2/read.h (struct dwarf2_queue_item): Move from
9769 dwarf2/read.c. Remove "next" member. Add constructor ntad
9770 destructor.
9771 (struct dwarf2_per_objfile) <queue>: New member.
9772 * dwarf2/read.c (struct dwarf2_queue_item): Move to
9773 dwarf2/read.h.
9774 (dwarf2_queue, dwarf2_queue_tail): Remove.
9775 (class dwarf2_queue_guard): Add parameter to constructor. Use
9776 DISABLE_COPY_AND_ASSIGN.
9777 <m_per_objfile>: New member.
9778 <~dwarf2_queue_guard>: Rewrite.
9779 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
9780 Update.
9781 (~dwarf2_queue_item): New.
9782
3e225074
TT
97832020-02-08 Tom Tromey <tom@tromey.com>
9784
9785 * dwarf2/read.c (struct die_info) <has_children>: New member.
9786 (dw2_get_file_names_reader): Remove has_children.
9787 (dw2_get_file_names): Update.
9788 (read_cutu_die_from_dwo): Remove has_children.
9789 (cutu_reader::init_tu_and_read_dwo_dies)
9790 (cutu_reader::cutu_reader): Update.
9791 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
9792 Remove has_children.
9793 (build_type_psymtabs_1, process_skeletonless_type_unit)
9794 (load_partial_comp_unit, load_full_comp_unit): Update.
9795 (create_dwo_cu_reader): Remove has_children.
9796 (create_cus_hash_table, read_die_and_children): Update.
9797 (read_full_die_1,read_full_die): Remove has_children.
9798 (read_signatured_type): Update.
9799 (class cutu_reader) <has_children>: Remove.
9800
82ca8957
TT
98012020-02-08 Tom Tromey <tom@tromey.com>
9802
9803 * dwarf2/expr.c: Rename from dwarf2expr.c.
9804 * dwarf2/expr.h: Rename from dwarf2expr.h.
9805 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
9806 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
9807 * dwarf2/frame.c: Rename from dwarf2-frame.c.
9808 * dwarf2/frame.h: Rename from dwarf2-frame.h.
9809 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
9810 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
9811 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
9812 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
9813 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
9814 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
9815 * dwarf2/loc.c: Rename from dwarf2loc.c.
9816 * dwarf2/loc.h: Rename from dwarf2loc.h.
9817 * dwarf2/read.c: Rename from dwarf2read.c.
9818 * dwarf2/read.h: Rename from dwarf2read.h.
9819 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
9820 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
9821 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
9822 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
9823 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
9824 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
9825 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
9826 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
9827 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
9828 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
9829 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
9830 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
9831 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
9832 Update.
9833 * Makefile.in (COMMON_SFILES): Update.
9834 (HFILES_NO_SRCDIR): Update.
9835
9e35d499
TT
98362020-02-08 Tom Tromey <tom@tromey.com>
9837
9838 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
9839 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
9840
1eba2311
TT
98412020-02-08 Tom Tromey <tom@tromey.com>
9842
9843 * dwarf2read.h (struct die_info): Don't declare.
9844
e41c2da2
TT
98452020-02-08 Tom Tromey <tom@tromey.com>
9846
9847 * dwarf2read.h (die_info_ptr): Remove typedef.
9848
4fc6c0d5
TT
98492020-02-08 Tom Tromey <tom@tromey.com>
9850
9851 * dwarf2read.c (read_call_site_scope)
9852 (handle_data_member_location, dwarf2_add_member_fn)
9853 (mark_common_block_symbol_computed, read_common_block)
9854 (attr_to_dynamic_prop, partial_die_info::read)
9855 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
9856 (dwarf2_symbol_mark_computed, set_die_type): Update.
9857 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
9858 method.
9859 (attr_form_is_block): Don't declare.
9860 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
9861
cd6c91b4
TT
98622020-02-08 Tom Tromey <tom@tromey.com>
9863
9864 * dwarf2read.c (dwarf2_find_base_address, )
9865 (read_call_site_scope, rust_containing_type)
9866 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
9867 (handle_data_member_location, dwarf2_add_member_fn)
9868 (get_alignment, read_structure_type, process_structure_scope)
9869 (mark_common_block_symbol_computed, read_common_block)
9870 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
9871 (partial_die_info::read, read_attribute_value, new_symbol)
9872 (lookup_die_type, dwarf2_get_ref_die_offset)
9873 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
9874 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
9875 (dwarf2_symbol_mark_computed): Update.
9876 * dwarf2/attribute.h (struct attribute) <value_as_address,
9877 form_is_section_offset, form_is_constant, form_is_ref>: Declare
9878 methods.
9879 (value_as_address, attr_form_is_section_offset)
9880 (attr_form_is_constant, attr_form_is_ref): Don't declare.
9881 * dwarf2/attribute.c (attribute::value_as_address)
9882 (attribute::form_is_section_offset, attribute::form_is_constant)
9883 (attribute::form_is_ref): Now methods.
9884
162dce55
TT
98852020-02-08 Tom Tromey <tom@tromey.com>
9886
9887 * dwarf2read.c (struct attribute, DW_STRING)
9888 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
9889 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
9890 (attr_form_is_block, attr_form_is_section_offset)
9891 (attr_form_is_constant, attr_form_is_ref): Move.
9892 * dwarf2/attribute.h: New file.
9893 * dwarf2/attribute.c: New file, from dwarf2read.c.
9894 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
9895
3054dd54
TT
98962020-02-08 Tom Tromey <tom@tromey.com>
9897
9898 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
9899 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
9900 Move.
9901 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
9902 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
9903 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
9904 abbrev.c.
9905 * dwarf2/abbrev.h: New file.
9906 * dwarf2/abbrev.c: New file, from dwarf2read.c.
9907 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
9908
96b79293
TT
99092020-02-08 Tom Tromey <tom@tromey.com>
9910
9911 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
9912 (dwarf2_section_size, dwarf2_get_section_info)
9913 (create_signatured_type_table_from_debug_names)
9914 (create_addrmap_from_aranges, read_debug_names_from_section)
9915 (get_gdb_index_contents_from_section, read_comp_unit_head)
9916 (error_check_comp_unit_head, read_abbrev_offset)
9917 (create_debug_type_hash_table, init_cu_die_reader)
9918 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
9919 (read_comp_units_from_section, create_cus_hash_table)
9920 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
9921 (create_dwp_v2_section, dwarf2_rnglists_process)
9922 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
9923 (abbrev_table_read_table, read_indirect_string_at_offset_from)
9924 (read_indirect_string_from_dwz, read_addr_index_1)
9925 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
9926 (dwarf_decode_macro_bytes, dwarf_decode_macros)
9927 (fill_in_loclist_baton): Update.
9928 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
9929 get_containing_section, get_bfd_owner, get_bfd_section,
9930 get_file_name, get_id, get_flags, empty, read>: Declare methods.
9931 (dwarf2_read_section, get_section_name, get_section_file_name)
9932 (get_containing_section, get_section_bfd_owner)
9933 (get_section_bfd_section, get_section_name, get_section_file_name)
9934 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
9935 declare.
9936 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
9937 (dwarf2_section_info::get_bfd_owner)
9938 (dwarf2_section_info::get_bfd_section)
9939 (dwarf2_section_info::get_name)
9940 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
9941 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
9942 (dwarf2_section_info::read): Now methods.
9943 * dwarf-index-write.c (class debug_names): Update.
9944
2c86cff9
TT
99452020-02-08 Tom Tromey <tom@tromey.com>
9946
9947 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
9948 Move to dwarf2/section.h.
9949 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
9950 (get_section_bfd_section, get_section_name)
9951 (get_section_file_name, get_section_id, get_section_flags)
9952 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
9953 dwarf2/section.c.
9954 * dwarf2/section.h: New file.
9955 * dwarf2/section.c: New file, from dwarf2read.c.
9956 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
9957
f4382c45
TT
99582020-02-08 Tom Tromey <tom@tromey.com>
9959
9960 * dwarf2read.h (read_unsigned_leb128): Don't declare.
9961 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
9962 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
9963 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
9964 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
9965 * dwarf2/leb.h: New file, from dwarf2read.c.
9966 * dwarf2/leb.c: New file, from dwarf2read.c.
9967 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
9968 Remove.
9969 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
9970 (COMMON_SFILES): Add dwarf2/leb.c.
9971
01840b7a
JB
99722020-02-08 Joel Brobecker <brobecker@adacore.com>
9973
9974 GDB 9.1 released.
9975
dfcb27e4
IB
99762020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
9977
9978 PR gdb/25190:
aac66a4c
SM
9979 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
9980 * gdb/remote.c (remote_console_output): Update.
9981 * gdb/ui-file.c (fputs_unfiltered): Rename to...
9982 (ui_file_puts): ...this.
9983 * gdb/ui-file.h (ui_file_puts): Add declaration.
9984 * gdb/utils.c (emit_style_escape): Update.
9985 (flush_wrap_buffer): Update.
9986 (fputs_maybe_filtered): Update.
9987 (fputs_unfiltered): Add function.
dfcb27e4 9988
faa17681
IB
99892020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
9990
aac66a4c
SM
9991 * gdb/event-loop.c (gdb_wait_for_event): Update.
9992 * gdb/printcmd.c (printf_command): Update.
9993 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
9994 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
9995 (gdb_os_flush_stderr): Update.
9996 * gdb/remote.c (remote_console_output): Update.
9997 * gdb/ui-file.c (gdb_flush): Rename to...
9998 (ui_file_flush): ...this.
9999 (stderr_file::write): Update.
10000 (stderr_file::puts): Update.
10001 * gdb/ui-file.h (gdb_flush): Rename to...
10002 (ui_file_flush): ...this.
10003 * gdb/utils.c (gdb_flush): Add function.
10004 * gdb/utils.h (gdb_flush): Add declaration.
faa17681 10005
5abbbe1d
TT
100062020-02-07 Tom Tromey <tromey@adacore.com>
10007
10008 PR breakpoints/24915:
10009 * source.c (find_and_open_source): Do not check basenames_may_differ.
10010
919adfe8
TT
100112020-02-07 Tom Tromey <tom@tromey.com>
10012
10013 * README: Update gdbserver documentation.
10014 * gdbserver: Move to top level.
10015 * configure.tgt (build_gdbserver): Remove.
10016 * configure.ac: Remove --enable-gdbserver.
10017 * configure: Rebuild.
10018 * Makefile.in (distclean): Don't mention gdbserver.
10019
1d5d29e7
SV
100202020-02-06 Shahab Vahedi <shahab@synopsys.com>
10021
10022 * source-cache.c (source_cache::ensure): Surround
10023 get_plain_source_lines with a try/catch.
10024 (source_cache::get_line_charpos): Get rid of try/catch
10025 and only check for the return value of "ensure".
10026 * tui/tui-source.c (tui_source_window::set_contents):
10027 Simplify "nlines" calculation.
10028
6eb1129c
SV
100292020-02-06 Shahab Vahedi <shahab@synopsys.com>
10030
10031 * MAINTAINERS (Write After Approval): Add myself.
10032
c6a42d11
CB
100332020-02-05 Christian Biesinger <cbiesinger@google.com>
10034
10035 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
10036 function call.
10037
c8ecdda6
CB
100382020-02-05 Christian Biesinger <cbiesinger@google.com>
10039
10040 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
10041
f6480e70
MR
100422020-02-05 Maciej W. Rozycki <macro@wdc.com>
10043
10044 * nat/riscv-linux-tdesc.h: New file.
10045 * nat/riscv-linux-tdesc.c: New file, taking code from...
10046 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
10047 ... here.
10048 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
10049 NATDEPFILES.
10050
dcc9fbc6
AB
100512020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
10052
10053 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
10054 we don't set the fake simulator ptid to the null_ptid.
10055
719546c4
SM
100562020-02-03 Simon Marchi <simon.marchi@efficios.com>
10057
10058 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
10059 * gdbthread.h (class thread_info) <resumed>: Likewise.
10060 * infrun.c (resume_1): Likewise.
10061 (proceed): Likewise.
10062 (infrun_thread_stop_requested): Likewise.
10063 (stop_all_threads): Likewise.
10064 (handle_inferior_event): Likewise.
10065 (restart_threads): Likewise.
10066 (finish_step_over): Likewise.
10067 (keep_going_stepped_thread): Likewise.
10068 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
10069 (linux_handle_extended_wait): Likewise.
10070 * record-btrace.c (get_thread_current_frame_id): Likewise.
10071 * record-full.c (record_full_wait_1): Likewise.
10072 * remote.c (remote_target::process_initial_stop_replies): Likewise.
10073 * target.c (target_resume): Likewise.
10074 * thread.c (set_running_thread): Likewise.
10075
e409c542
AKS
100762020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
10077
10078 * f-valprint.c (f77_print_array_1): Changed datatype of index
10079 variable to LONGEST from int to enable it to contain bound
10080 values correctly.
10081
ee98c0da
MR
100822020-02-03 Maciej W. Rozycki <macro@wdc.com>
10083
10084 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
10085 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
10086 offsets according to FLEN determined.
10087 (riscv_linux_nat_target::read_description): Determine FLEN
10088 dynamically.
10089 (riscv_linux_nat_target::fetch_registers): Size regset buffer
10090 according to FLEN determined.
10091 (riscv_linux_nat_target::store_registers): Likewise.
10092
aa66aac4
SV
100932020-02-01 Shahab Vahedi <shahab@synopsys.com>
10094
10095 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
10096 when reg->group is empty and reggroup is not.
10097
fd9faca8
TT
100982020-01-31 Tom Tromey <tromey@adacore.com>
10099
10100 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
10101 Call beneath target's mourn_inferior after unpushing.
10102
42330a68
AB
101032020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
10104
10105 PR tui/9765
10106 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
10107 have enough lines to fill the screen, still return the lowest
10108 address we found.
10109
7a27a45b
AB
101102020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
10111
10112 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
10113 '-', '<', and '>' commands.
10114
c47f70e2
PA
101152020-01-29 Pedro Alves <palves@redhat.com>
10116 Sergio Durigan Junior <sergiodj@redhat.com>
10117
10118 * infcmd.c (construct_inferior_arguments): Assert that
10119 'argc' is greater than 0.
10120
5133a315
LM
101212020-01-29 Luis Machado <luis.machado@linaro.org>
10122
10123 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
10124 (BRK_INSN_MASK): Define to 0xd4200000.
10125 (aarch64_program_breakpoint_here_p): New function.
10126 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
10127 * arch-utils.c (default_program_breakpoint_here_p): Moved from
10128 breakpoint.c.
10129 * arch-utils.h (default_program_breakpoint_here_p): Moved from
10130 breakpoint.h
10131 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
10132 call gdbarch_program_breakpoint_here_p.
10133 (program_breakpoint_here): Moved to arch-utils.c, renamed to
10134 default_program_breakpoint_here_p, changed return type to bool and
10135 simplified.
10136 * breakpoint.h (program_breakpoint_here): Moved prototype to
10137 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
10138 return type to bool.
10139 * gdbarch.c: Regenerate.
10140 * gdbarch.h: Regenerate.
10141 * gdbarch.sh (program_breakpoint_here_p): New method.
10142 * infrun.c (handle_signal_stop): Call
10143 gdbarch_program_breakpoint_here_p.
10144
168f8c6b
TT
101452020-01-26 Tom Tromey <tom@tromey.com>
10146
10147 * ctfread.c (struct ctf_fp_info): Reindent.
10148 (_initialize_ctfread): Remove.
10149
128a391f
TT
101502020-01-26 Tom Tromey <tom@tromey.com>
10151
10152 * psymtab.c (partial_map_expand_apply)
10153 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
10154 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
10155 (psym_print_stats, psym_expand_symtabs_for_function)
10156 (psym_map_symbol_filenames, psym_map_matching_symbols)
10157 (psym_expand_symtabs_matching)
10158 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
10159 (maintenance_check_psymtabs): Use new methods.
10160 * psympriv.h (struct partial_symtab) <readin_p,
10161 get_compunit_symtab>: New methods.
10162 <readin, compunit_symtab>: Remove members.
10163 (struct standard_psymtab): New.
10164 (struct legacy_psymtab): Derive from standard_psymtab.
10165 * dwarf2read.h (struct dwarf2_psymtab): Derive from
10166 standard_psymtab.
10167 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
10168
0494dbec
TT
101692020-01-26 Tom Tromey <tom@tromey.com>
10170
10171 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
10172 read_dependencies. Add assert.
10173 * psymtab.c (partial_symtab::read_dependencies): New method.
10174 * psympriv.h (struct partial_symtab) <read_dependencies>: New
10175 method.
10176 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
10177 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
10178 read_dependencies.
10179 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
10180 Add assert.
10181
8566b89b
TT
101822020-01-26 Tom Tromey <tom@tromey.com>
10183
10184 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
10185 Call expand_psymtab.
10186 (xcoff_read_symtab): Call expand_psymtab.
10187 (xcoff_start_psymtab, xcoff_end_psymtab): Set
10188 legacy_expand_psymtab.
10189 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
10190 method.
10191 (struct legacy_psymtab) <expand_psymtab>: Implement.
10192 <legacy_expand_psymtab>: New member.
10193 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
10194 (parse_partial_symbols): Set legacy_expand_psymtab.
10195 (psymtab_to_symtab_1): Change argument order. Call
10196 expand_psymtab.
10197 (new_psymtab): Set legacy_expand_psymtab.
10198 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
10199 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
10200 expand_psymtab.
10201 (dwarf2_psymtab::expand_psymtab): Rename from
10202 psymtab_to_symtab_1. Call expand_psymtab.
10203 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
10204 (dbx_end_psymtab): Likewise.
10205 (dbx_psymtab_to_symtab_1): Change argument order. Call
10206 expand_psymtab.
10207 (dbx_read_symtab): Call expand_psymtab.
10208 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
10209 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
10210 (ctf_psymtab::read_symtab): Call expand_psymtab.
10211
077cbab2
TT
102122020-01-26 Tom Tromey <tom@tromey.com>
10213
10214 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
10215 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
10216 messages.
10217 * mdebugread.c (mdebug_read_symtab): Remove prints.
10218 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
10219 assert.
10220 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
10221
891813be
TT
102222020-01-26 Tom Tromey <tom@tromey.com>
10223
10224 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
10225 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
10226 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
10227 legacy_symtab.
10228 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
10229 * psymtab.c (psymtab_to_symtab): Call method.
10230 (dump_psymtab): Update.
10231 * psympriv.h (struct partial_symtab): Add virtual destructor.
10232 <read_symtab>: New method.
10233 (struct legacy_symtab): New.
10234 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
10235 (struct pst_map) <pst>: Now a legacy_psymtab.
10236 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
10237 (new_psymtab): Use legacy_psymtab.
10238 * dwarf2read.h (struct dwarf2_psymtab): New.
10239 (struct dwarf2_per_cu_data) <psymtab>: Use it.
10240 * dwarf2read.c (dwarf2_create_include_psymtab)
10241 (dwarf2_build_include_psymtabs, create_type_unit_group)
10242 (create_partial_symtab, process_psymtab_comp_unit_reader)
10243 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
10244 (set_partial_user): Use dwarf2_psymtab.
10245 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
10246 (psymtab_to_symtab_1, process_full_comp_unit)
10247 (process_full_type_unit, dwarf2_ranges_read)
10248 (dwarf2_get_pc_bounds, psymtab_include_file_name)
10249 (dwarf_decode_lines): Use dwarf2_psymtab.
10250 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
10251 (add_address_entry_worker, write_one_signatured_type)
10252 (recursively_count_psymbols, recursively_write_psymbols)
10253 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
10254 (write_debug_names): Likewise.
10255 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
10256 <pst>: Now a legacy_psymtab.
10257 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
10258 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
10259 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
10260 * ctfread.c (struct ctf_psymtab): New.
10261 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
10262 ctf_psymtab.
10263 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
10264 (create_partial_symtab): Return a ctf_psymtab.
10265 (scan_partial_symbols): Update.
10266
c3693a1d
TT
102672020-01-26 Tom Tromey <tom@tromey.com>
10268
10269 * xcoffread.c (xcoff_start_psymtab): Use new.
10270 * psymtab.c (partial_symtab::partial_symtab): New constructor,
10271 renamed from start_psymtab_common.
10272 * psympriv.h (struct partial_symtab): Add new constructor.
10273 (start_psymtab_common): Don't declare.
10274 * mdebugread.c (parse_partial_symbols): Use new.
10275 * dwarf2read.c (create_partial_symtab): Use new.
10276 * dbxread.c (start_psymtab): Use new.
10277 * ctfread.c (create_partial_symtab): Use new.
10278
32caafd0
TT
102792020-01-26 Tom Tromey <tom@tromey.com>
10280
10281 * xcoffread.c (xcoff_end_psymtab): Use new.
10282 * psymtab.c (start_psymtab_common): Use new.
10283 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
10284 Update.
10285 * psympriv.h (struct partial_symtab): Add parameters to
10286 constructor. Don't inline.
10287 (allocate_psymtab): Don't declare.
10288 * mdebugread.c (new_psymtab): Use new.
10289 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
10290 * dbxread.c (dbx_end_psymtab): Use new.
10291
abaa2f23
TT
102922020-01-26 Tom Tromey <tom@tromey.com>
10293
10294 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
10295 allocate_psymtab. Update documentation.
10296 * psymtab.c (psymtab_storage::install_psymtab): Rename from
10297 allocate_psymtab. Do not use new.
10298 (allocate_psymtab): Use new. Update.
10299
6d94535f
TT
103002020-01-26 Tom Tromey <tom@tromey.com>
10301
10302 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
10303 * psymtab.c (psym_print_stats): Update.
10304 * psympriv.h (struct partial_symtab) <readin,
10305 psymtabs_addrmap_supported, anonymous>: Now bool.
10306 * mdebugread.c (psymtab_to_symtab_1): Update.
10307 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
10308 (build_type_psymtabs_reader, psymtab_to_symtab_1)
10309 (process_full_comp_unit, process_full_type_unit): Update.
10310 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
10311 * ctfread.c (psymtab_to_symtab): Update.
10312
6f17252b
TT
103132020-01-26 Tom Tromey <tom@tromey.com>
10314
10315 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
10316 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
10317 * psymtab.c (psymtab_storage): Delete psymtabs.
10318 (psymtab_storage::allocate_psymtab): Use new.
10319 (psymtab_storage::discard_psymtab): Use delete.
10320 * psympriv.h (struct partial_symtab): Add constructor and
10321 initializers.
10322
f6f1cebc
TT
103232020-01-26 Tom Tromey <tom@tromey.com>
10324
10325 * machoread.c: Do not include psympriv.h.
10326
e47e48f6
PW
103272020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10328
10329 * NEWS: Mention the new option and the set/show commands.
10330
a2fedca9
PW
103312020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10332
10333 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
10334 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
10335 (validate_exec_file): New variables, enums, functions.
10336 (exec_file_locate_attach, print_section_info): Style the filenames.
10337 (_initialize_exec): Install show_exec_file_mismatch_command and
10338 set_exec_file_mismatch_command.
10339 * gdbcore.h (validate_exec_file): Declare.
10340 * infcmd.c (attach_command): Call validate_exec_file.
10341 * remote.c ( remote_target::remote_add_inferior): Likewise.
10342
7ffa82e1
AB
103432020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10344
10345 * frame.c (find_frame_sal): Move call to get_next_frame into more
10346 inner scope.
10347 * inline-frame.c (inilne_state) <inline_state>: Update argument
10348 types.
10349 (inilne_state) <skipped_symbol>: Rename to...
10350 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
10351 (skip_inline_frames): Build vector of skipped symbols and use this
10352 to reate the inline_state.
10353 (inline_skipped_symbol): Add a comment and some assertions, fetch
10354 skipped symbol from the list.
10355
3d92a3e3
AB
103562020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10357
10358 * buildsym.c (lte_is_less_than): Delete.
10359 (buildsym_compunit::end_symtab_with_blockvector): Create local
10360 lambda function to sort line table entries, and use
10361 std::stable_sort instead of std::sort.
10362 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
10363 markers when looking for a previous line.
10364
94a72be7
AB
103652020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10366
10367 * dwarf2read.c (lnp_state_machine::record_line): Include
10368 end_sequence parameter in debug print out. Record the line if we
10369 are at an end_sequence marker even if it's not the start of a
10370 statement.
10371 * symmisc.c (maintenance_print_one_line_table): Print end of
10372 sequence markers with 'END' not '0'.
10373
53af73bf
PA
103742020-01-24 Pedro Alves <palves@redhat.com>
10375
10376 PR gdb/25410
10377 * thread.c (scoped_restore_current_thread::restore): Use
10378 switch_to_inferior_no_thread.
10379 * exec.c: Include "progspace-and-thread.h".
10380 (add_target_sections, remove_target_sections):
10381 scoped_restore_current_pspace_and_thread instead of
10382 scoped_restore_current_thread.
10383 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
10384 and aspace to the inferior before calling clone_program_space.
10385 Remove stale comment.
10386
3050c6f4
CB
103872020-01-24 Christian Biesinger <cbiesinger@google.com>
10388
10389 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
10390 (arm_netbsd_nat_target::fetch_registers): ...this.
10391 (arm_nbsd_nat_target::store_registers): Rename to...
10392 (arm_netbsd_nat_target::store_registers): ...this.
10393
73685c7e
CB
103942020-01-24 Christian Biesinger <cbiesinger@google.com>
10395
10396 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
10397 register_t.
10398
89203d40
CB
103992020-01-24 Christian Biesinger <cbiesinger@google.com>
10400
10401 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
10402 Update comment.
10403 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
10404 Likewise.
10405 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
10406 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
10407 the correct replacement (iterate_over_regset_sections).
10408 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
10409 Update comment.
10410
1ba1ac88
AB
104112020-01-24 Graham Markall <graham.markall@embecosm.com>
10412
10413 PR gdb/23718
10414 * gdb/python/python.c (execute_gdb_command): Call
10415 async_enable_stdin in catch block.
10416
f3364a6d
AB
104172020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10418
10419 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
10420 SWITCH_THRU_ALL_UIS.
10421
733d0a67
AB
104222020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10423
10424 PR tui/9765
10425 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
10426 comment, add extra parameter, and update to store previous symbol
10427 when appropriate.
10428 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
10429 add extra parameter.
10430 * tui/tui-disasm.c (tui_disassemble): Update header comment,
10431 remove unneeded parameter, add try/catch around gdb_print_insn,
10432 rewrite to add items to asm_lines vector.
10433 (tui_find_backward_disassembly_start_address): New function.
10434 (tui_find_disassembly_address): Updated throughout.
10435 (tui_disasm_window::set_contents): Update for changes to
10436 tui_disassemble.
10437 (tui_disasm_window::do_scroll_vertical): No need to adjust the
10438 number of lines to scroll.
10439
b3b3bada
SM
104402020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
10441
10442 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
10443 (SECT_OFF_DATA): Likewise.
10444 (SECT_OFF_RODATA): Likewise.
10445 (SECT_OFF_TEXT): Likewise.
10446 (SECT_OFF_BSS): Likewise.
10447 (struct objfile) <text_section_offset, data_section_offset>: New
10448 methods.
10449 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
10450 objfile::text_section_offset.
10451 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
10452 * coffread.c (coff_symtab_read): Likewise.
10453 (enter_linenos): Likewise.
10454 (process_coff_symbol): Likewise.
10455 * ctfread.c (get_objfile_text_range): Likewise.
10456 * dtrace-probe.c (dtrace_probe::get_relocated_address):
10457 Use objfile::data_section_offset.
10458 * dwarf2-frame.c (execute_cfa_program): Use
10459 objfile::text_section_offset.
10460 (dwarf2_frame_find_fde): Likewise.
10461 * dwarf2read.c (create_addrmap_from_index): Likewise.
10462 (create_addrmap_from_aranges): Likewise.
10463 (dw2_find_pc_sect_compunit_symtab): Likewise.
10464 (process_psymtab_comp_unit_reader): Likewise.
10465 (add_partial_symbol): Likewise.
10466 (add_partial_subprogram): Likewise.
10467 (process_full_comp_unit): Likewise.
10468 (read_file_scope): Likewise.
10469 (read_func_scope): Likewise.
10470 (read_lexical_block_scope): Likewise.
10471 (read_call_site_scope): Likewise.
10472 (dwarf2_rnglists_process): Likewise.
10473 (dwarf2_ranges_process): Likewise.
10474 (dwarf2_ranges_read): Likewise.
10475 (dwarf_decode_lines_1): Likewise.
10476 (new_symbol): Likewise.
10477 (dwarf2_fetch_die_loc_sect_off): Likewise.
10478 (dwarf2_per_cu_text_offset): Likewise.
10479 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
10480 * hppa-tdep.c (read_unwind_info): Likewise.
10481 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
10482 * psympriv.h (struct partial_symtab): Likewise.
10483 * psymtab.c (find_pc_sect_psymtab): Likewise.
10484 * solib-svr4.c (enable_break): Likewise.
10485 * stap-probe.c (relocate_address): Use
10486 objfile::data_section_offset.
10487 * xcoffread.c (enter_line_range): Use
10488 objfile::text_section_offset.
10489 (read_xcoff_symtab): Likewise.
10490
ab53f382
SM
104912020-01-23 Simon Marchi <simon.marchi@efficios.com>
10492
10493 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
10494 declaration to narrower scopes.
10495
e7eee665
SM
104962020-01-23 Simon Marchi <simon.marchi@efficios.com>
10497
10498 * darwin-nat.h (struct darwin_exception_msg, enum
10499 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
10500 Move up.
10501 (class darwin_nat_target) <wait_1, check_new_threads,
10502 decode_exception_message, decode_message, stop_inferior,
10503 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
10504 * darwin-nat.c (darwin_check_new_threads): Rename to...
10505 (darwin_nat_target::check_new_threads): ... this.
10506 (darwin_suspend_inferior_it): Remove.
10507 (darwin_decode_exception_message): Rename to...
10508 (darwin_nat_target::decode_exception_message): ... this.
10509 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
10510 (darwin_decode_message): Rename to...
10511 (darwin_nat_target::decode_message): ... this.
10512 (cancel_breakpoint): Rename to...
10513 (darwin_nat_target::cancel_breakpoint): ... this.
10514 (darwin_wait): Rename to...
10515 (darwin_nat_target::wait_1): ... this. Use range-based for loop
10516 instead of iterate_over_inferiors.
10517 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
10518 (darwin_stop_inferior): Rename to...
10519 (darwin_nat_target::stop_inferior): ... this.
10520 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
10521 (darwin_init_thread_list): Rename to...
10522 (darwin_nat_target::init_thread_list): ... this.
10523 (darwin_ptrace_him): Rename to...
10524 (darwin_nat_target::ptrace_him): ... this.
10525 (darwin_nat_target::create_inferior): Pass lambda function to
10526 fork_inferior.
10527 (darwin_nat_target::detach): Call stop_inferior instead of
10528 darwin_stop_inferior.
10529 * fork-inferior.h (fork_inferior): Change init_trace_fun
10530 parameter to gdb::function_view.
10531 * fork-inferior.c (fork_inferior): Likewise.
10532
c162ed3e
HD
105332020-01-23 Hannes Domani <ssbssa@yahoo.de>
10534
10535 * i386-cygwin-tdep.c (core_process_module_section): Update.
10536 * windows-nat.c (struct lm_info_windows): Add text_offset.
10537 (windows_xfer_shared_libraries): Update.
10538 * windows-tdep.c (windows_xfer_shared_library):
10539 Add text_offset_cached argument.
10540 * windows-tdep.h (windows_xfer_shared_library): Update.
10541
a1237872
SM
105422020-01-21 Simon Marchi <simon.marchi@efficios.com>
10543
10544 * gdbarch.sh: Add declaration for _initialize_gdbarch.
10545
b3ee6dd9
SM
105462020-01-21 Simon Marchi <simon.marchi@efficios.com>
10547
10548 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
10549 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
10550 replace with range-based for.
10551 (gdbsim_interrupt_inferior): Remove.
10552 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
10553 with a range-based for. Inline code from
10554 gdbsim_interrupt_inferior.
10555
f9fac3c8
SM
105562020-01-21 Simon Marchi <simon.marchi@efficios.com>
10557
10558 * infrun.c (proceed): Fix indentation.
10559
f6474de9
TT
105602020-01-21 Tom Tromey <tromey@adacore.com>
10561
10562 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
10563 * python/python.c (python_extension_ops): Update.
10564 (gdbpy_colorize): New function.
10565 * python/lib/gdb/__init__.py (colorize): New function.
10566 * extension.h (ext_lang_colorize): Declare.
10567 * extension.c (ext_lang_colorize): New function.
10568 * extension-priv.h (struct extension_language_ops) <colorize>: New
10569 member.
10570 * cli/cli-style.c (_initialize_cli_style): Update help text.
10571
f0c702d4
LM
105722020-01-21 Luis Machado <luis.machado@linaro.org>
10573
10574 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
10575 <cond>: Change type to bool.
10576 (aarch64_displaced_step_b_cond): Update cond to use bool type.
10577 (aarch64_displaced_step_cb): Likewise.
10578 (aarch64_displaced_step_tb): Likewise.
10579
1ab139e5
LM
105802020-01-21 Luis Machado <luis.machado@linaro.org>
10581
10582 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
10583 output.
10584
0c271889
LM
105852020-01-21 Luis Machado <luis.machado@linaro.org>
10586
10587 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
10588 <pc_adjust>: Adjust the documentation.
10589 (aarch64_displaced_step_fixup): Check if PC really moved before
10590 adjusting it.
10591
4d89c1c7
TT
105922020-01-19 Tom Tromey <tom@tromey.com>
10593
10594 * disasm.c (~gdb_disassembler): New destructor.
10595 (gdb_buffered_insn_length): Call disassemble_free_target.
10596 * disasm.h (class gdb_disassembler): Declare destructor. Use
10597 DISABLE_COPY_AND_ASSIGN.
10598
c0ab21c2
TT
105992020-01-19 Tom Tromey <tom@tromey.com>
10600
10601 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
10602 (die_reader_func_ftype): Remove.
10603 (cutu_reader): New class.
10604 (dw2_get_file_names_reader): Remove "data" parameter.
10605 (dw2_get_file_names): Use cutu_reader.
10606 (create_debug_type_hash_table): Update.
10607 (read_cutu_die_from_dwo): Update comment.
10608 (lookup_dwo_unit): Add dwo_name parameter.
10609 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
10610 die_reader_func_ftype and data parameters.
10611 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
10612 Remove die_reader_func_ftype and data parameters.
10613 (~cutu_reader): New; from init_cutu_and_read_dies.
10614 (cutu_reader::cutu_reader): Rename from
10615 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
10616 and data parameters.
10617 (init_cutu_and_read_dies_simple): Remove.
10618 (struct process_psymtab_comp_unit_data): Remove.
10619 (process_psymtab_comp_unit_reader): Remove data parameter; add
10620 want_partial_unit and pretend_language parameters.
10621 (process_psymtab_comp_unit): Use cutu_reader.
10622 (build_type_psymtabs_reader): Remove data parameter.
10623 (build_type_psymtabs_1): Use cutu_reader.
10624 (process_skeletonless_type_unit): Likewise.
10625 (load_partial_comp_unit_reader): Remove.
10626 (load_partial_comp_unit): Use cutu_reader.
10627 (load_full_comp_unit_reader): Remove.
10628 (load_full_comp_unit): Use cutu_reader.
10629 (struct create_dwo_cu_data): Remove.
10630 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
10631 dwo_unit parameters.
10632 (create_cus_hash_table): Use cutu_reader.
10633 (struct dwarf2_read_addr_index_data): Remove.
10634 (dwarf2_read_addr_index_reader): Remove.
10635 (dwarf2_read_addr_index): Use cutu_reader.
10636 (read_signatured_type_reader): Remove.
10637 (read_signatured_type): Use cutu_reader.
10638
45bbae5c
TT
106392020-01-19 Tom Tromey <tom@tromey.com>
10640
10641 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
10642 * tui/tui-wingeneral.h (class tui_suppress_output): New.
10643 (tui_wrefresh): Declare.
10644 * tui/tui-wingeneral.c (suppress_output): New global.
10645 (tui_suppress_output, ~tui_suppress_output): New constructor and
10646 destructor.
10647 (tui_wrefresh): New function.
10648 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
10649 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
10650 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
10651 method.
10652 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
10653 tui_wrefresh.
10654 (tui_data_window::no_refresh): New method.
10655 (tui_data_item_window::refresh_window): Call tui_wrefresh.
10656 (tui_reg_command): Use tui_suppress_output
10657 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
10658 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
10659 method.
10660 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
10661
4f13c1c0
TT
106622020-01-19 Tom Tromey <tom@tromey.com>
10663
10664 * tui/tui-winsource.c (tui_update_source_windows_with_line):
10665 Handle case where symtab is null.
10666
fa47e446
SM
106672020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
10668
10669 * linux-fork.c (one_fork_p): Simplify.
10670
26f42329
SM
106712020-01-17 Simon Marchi <simon.marchi@efficios.com>
10672
10673 * top.c (struct qt_args): Remove.
10674 (kill_or_detach): Change return type to void, replace `void *`
10675 parameter with a proper one.
10676 (print_inferior_quit_action): Likewise.
10677 (quit_confirm): Use range-based for loop to iterate over inferiors.
10678 (quit_force): Likewise.
10679
a9ac81b1
SM
106802020-01-17 Simon Marchi <simon.marchi@efficios.com>
10681
10682 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
10683 `void *` parameter with proper parameters.
10684 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
10685 (print_one_inferior): Change return type to void, replace `void *`
10686 parameter with proper parameters.
10687 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
10688 inferiors.
10689 (get_other_inferior): Remove.
10690 (mi_cmd_remove_inferior): Use range-based loop to iterate over
10691 inferiors.
10692
788eca49
SM
106932020-01-17 Simon Marchi <simon.marchi@efficios.com>
10694
10695 * mi/mi-interp.c (report_initial_inferior): Remove.
10696 (mi_interp::init): Use range-based for to iterate over inferiors.
10697
d9bc85b6
SM
106982020-01-17 Simon Marchi <simon.marchi@efficios.com>
10699
10700 * python/py-inferior.c (build_inferior_list): Remove.
10701 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
10702
40c94099
CB
107032020-01-16 Christian Biesinger <cbiesinger@google.com>
10704
10705 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
10706 (btrace_stitch_trace): Likewise.
10707 * charset.c (intermediate_encoding): Likewise (vaild).
10708 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
10709 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
10710 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
10711
e0cdfe3c
HD
107122020-01-16 Hannes Domani <ssbssa@yahoo.de>
10713
10714 * windows-tdep.c (windows_get_tlb_type):
10715 Add rtl_user_process_parameters type.
10716
790f1718 107172020-01-16 Pedro Alves <palves@redhat.com>
aac66a4c 10718 Norbert Lange <nolange79@gmail.com>
790f1718
PA
10719
10720 PR build/24805
10721 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
10722 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
10723 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
10724 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
10725 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
10726 (ps_plog): Redeclare exported functions with default visibility.
10727
3112ed97
NA
107282020-01-16 Nitika Achra <Nitika.Achra@amd.com>
10729
10730 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
10731 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
10732
8dc3273e
SM
107332020-01-15 Simon Marchi <simon.marchi@efficios.com>
10734
10735 * infcmd.c (post_create_inferior): Use get_thread_regcache
10736 instead of get_current_regcache.
10737
ff47f4f0
TT
107382020-01-14 Tom Tromey <tom@tromey.com>
10739
10740 PR symtab/12535:
10741 * python/python.c (gdbpy_decode_line): Treat empty string the same
10742 as no argument.
10743
975f45b7
TT
107442020-01-14 Tom Tromey <tom@tromey.com>
10745
10746 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
10747
25e57356
TT
107482020-01-14 Tom Tromey <tom@tromey.com>
10749
10750 * nat/linux-btrace.c: Don't include <config.h>.
10751 * nat/linux-ptrace.c: Don't include <config.h>.
10752 * nat/x86-linux-dregs.c: Don't include <config.h>.
10753
05ea2a05
TT
107542020-01-14 Tom Tromey <tom@tromey.com>
10755
10756 * configure: Rebuild.
10757 * configure.ac: Move many checks to ../gdbsupport/common.m4.
10758
01027315
TT
107592020-01-14 Tom Tromey <tom@tromey.com>
10760
10761 * nat/x86-linux-dregs.c: Include configh.h.
10762 * nat/linux-ptrace.c: Include configh.h.
10763 * nat/linux-btrace.c: Include configh.h.
10764 * defs.h: Include config.h, bfd.h.
10765 * configure.ac: Don't source common.host.
10766 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
10767 * configure: Rebuild.
10768 * acinclude.m4: Update path.
10769 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
10770 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
10771 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
10772 (CLIBS): Add LIBSUPPORT.
10773 (CDEPS): Likewise.
10774 (COMMON_SFILES): Remove gdbsupport files.
10775 (HFILES_NO_SRCDIR): Likewise.
10776 (stamp-version): Update path to create-version.sh.
10777 (ALLDEPFILES): Remove gdbsupport files.
10778
b2ceabe8
TT
107792020-01-14 Tom Tromey <tom@tromey.com>
10780
10781 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
10782 USE_WIN32API when needed.
10783 * configure.ac (USE_WIN32API): Don't define.
10784 (WIN32LIBS): Use WIN32APILIBS.
10785 * configure: Rebuild.
10786
25c51f71
TT
107872020-01-14 Tom Tromey <tom@tromey.com>
10788
10789 * configure: Rebuild.
10790 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
10791
717c684d
BE
107922020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
10793
10794 * skip.c (skip_function_command): Make skip w/o arguments use the
10795 name of the inlined function if pc is inside any inlined function.
10796
7da6a5b9
LM
107972020-01-14 Luis Machado <luis.machado@linaro.org>
10798
10799 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
10800 * infrun.c (resume_1): Likewise.
10801 (handle_inferior_event): Remove stale comment.
10802 * linux-nat.c (linux_nat_target::resume): Update comments.
10803 (save_stop_reason): Likewise.
10804 (linux_nat_filter_event): Likewise.
10805 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
10806
44e4c775
AB
108072020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
10808
10809 * elfread.c (record_minimal_symbol): Set section index to 0 for
10810 non-allocatable sections.
10811
18a8505e
AT
10812
108132020-01-13 Ali Tamur <tamur@google.com>
10814
10815 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
10816 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
10817 to gdb::optional. Update comments.
10818 (dwo_file): Update comments.
10819 (read_attribute): Update API to take an additional out parameter,
10820 need_reprocess. This is used to mark attributes that need other
10821 attributes (e.g. str_offsets_base) for correct computation which may not
10822 have been read yet.
10823 (read_attribute_reprocess): New function declaration.
10824 (read_addr_index): Likewise.
10825 (read_dwo_str_index): Likewise.
10826 (read_stub_str_index): Likewise.
10827 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
10828 (lookup_addr_base): New function definition.
10829 (lookup_ranges_base): Likewise.
10830 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
10831 lookup_ranges_base.
10832 (init_cutu_and_read_dies): Update comments.
10833 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
10834 unit. This is used to inherit parent's str_offsets_base and addr_base.
10835 Update comments.
10836 (init_cutu_and_read_dies_simple): Reflect API changes.
10837 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
10838 (create_cus_hash_table): Change API to take parent compile unit.
10839 Reflect API changes.
10840 (open_and_init_dwo_file): Reflect API changes.
10841 (dwarf2_get_pc_bounds): Update comments.
10842 (dwarf2_record_block_ranges): Likewise.
10843 (read_full_die_1): Change implementation to reprocess attributes that
10844 need str_offsets_base and addr_base.
10845 (partial_die_info::read): Likewise.
10846 (read_attribute_reprocess): New function definition.
10847 (read_attribute_value): Change API to take an additional out parameter,
10848 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
10849 when a non-dwo compile unit has index based attributes.
10850 (read_attribute): Reflect API changes.
10851 (read_addr_index_1): Reflect API changes. Update comments.
10852 (dwarf2_read_addr_index_data): Reflect API changes.
10853 (dwarf2_read_addr_index): Likewise.
10854 (read_str_index): Change API and implementation. This becomes a helper
10855 to be used by the new string index related methods. Update error
10856 message and comments.
10857 (read_dwo_str_index): New function definition.
10858 (read_stub_str_index): Likewise.
10859 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
10860 * symfile.h (dwarf2_debug_sections): Likewise.
10861 * xcoffread.c (dwarf2_debug_sections): Likewise.
10862
0cac9354
SM
108632020-01-13 Simon Marchi <simon.marchi@efficios.com>
10864
10865 * gdbcore.h (struct core_fns) <core_read_registers>: Change
10866 core_reg_sect type to gdb_byte *.
10867 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
10868 * cris-tdep.c (fetch_core_registers): Likewise.
10869 * corelow.c (core_target::get_core_register_section): Change
10870 type of `contents` to gdb::byte_vector.
10871
9a6d629c
AB
108722020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
10873
10874 * tui/tui-wingeneral.c (box_win): Position the title in the center
10875 of the border.
10876
d8b2f9e3
SM
108772020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
10878
10879 * corelow.c (core_target::get_core_register_section): Use
10880 std::vector instead of alloca.
10881
bb564c58
SM
108822020-01-13 Simon Marchi <simon.marchi@efficios.com>
10883
10884 * warning.m4: Add -Wmissing-declarations to build_warnings.
10885 * configure: Re-generate.
10886
6b366111
SM
108872020-01-13 Simon Marchi <simon.marchi@efficios.com>
10888
10889 * python/python.c (init__gdb_module): Add declaration.
10890
6c265988
SM
108912020-01-13 Simon Marchi <simon.marchi@efficios.com>
10892
10893 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
10894 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
10895 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
10896 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
10897 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
10898 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
10899 * ada-exp.y (_initialize_ada_exp): Add declaration.
10900 * ada-lang.c (_initialize_ada_language): Add declaration.
10901 * ada-tasks.c (_initialize_tasks): Add declaration.
10902 * agent.c (_initialize_agent): Add declaration.
10903 * aix-thread.c (_initialize_aix_thread): Add declaration.
10904 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
10905 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
10906 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
10907 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
10908 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
10909 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
10910 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
10911 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
10912 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
10913 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
10914 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
10915 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
10916 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
10917 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
10918 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
10919 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
10920 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
10921 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
10922 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
10923 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
10924 * annotate.c (_initialize_annotate): Add declaration.
10925 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
10926 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
10927 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
10928 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
10929 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
10930 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
10931 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
10932 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
10933 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
10934 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
10935 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
10936 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
10937 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
10938 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
10939 * auto-load.c (_initialize_auto_load): Add declaration.
10940 * auxv.c (_initialize_auxv): Add declaration.
10941 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
10942 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
10943 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
10944 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
10945 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
10946 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
10947 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
10948 * breakpoint.c (_initialize_breakpoint): Add declaration.
10949 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
10950 * btrace.c (_initialize_btrace): Add declaration.
10951 * charset.c (_initialize_charset): Add declaration.
10952 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
10953 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
10954 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
10955 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
10956 * cli/cli-script.c (_initialize_cli_script): Add declaration.
10957 * cli/cli-style.c (_initialize_cli_style): Add declaration.
10958 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
10959 * coffread.c (_initialize_coffread): Add declaration.
10960 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
10961 * compile/compile.c (_initialize_compile): Add declaration.
10962 * complaints.c (_initialize_complaints): Add declaration.
10963 * completer.c (_initialize_completer): Add declaration.
10964 * copying.c (_initialize_copying): Add declaration.
10965 * corefile.c (_initialize_core): Add declaration.
10966 * corelow.c (_initialize_corelow): Add declaration.
10967 * cp-abi.c (_initialize_cp_abi): Add declaration.
10968 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
10969 * cp-support.c (_initialize_cp_support): Add declaration.
10970 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
10971 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
10972 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
10973 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
10974 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
10975 * ctfread.c (_initialize_ctfread): Add declaration.
10976 * d-lang.c (_initialize_d_language): Add declaration.
10977 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
10978 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
10979 * dbxread.c (_initialize_dbxread): Add declaration.
10980 * dcache.c (_initialize_dcache): Add declaration.
10981 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
10982 * disasm.c (_initialize_disasm): Add declaration.
10983 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
10984 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
10985 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
10986 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
10987 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
10988 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
10989 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
10990 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
10991 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
10992 * elfread.c (_initialize_elfread): Add declaration.
10993 * exec.c (_initialize_exec): Add declaration.
10994 * extension.c (_initialize_extension): Add declaration.
10995 * f-lang.c (_initialize_f_language): Add declaration.
10996 * f-valprint.c (_initialize_f_valprint): Add declaration.
10997 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
10998 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
10999 * filesystem.c (_initialize_filesystem): Add declaration.
11000 * findcmd.c (_initialize_mem_search): Add declaration.
11001 * findvar.c (_initialize_findvar): Add declaration.
11002 * fork-child.c (_initialize_fork_child): Add declaration.
11003 * frame-base.c (_initialize_frame_base): Add declaration.
11004 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
11005 * frame.c (_initialize_frame): Add declaration.
11006 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
11007 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
11008 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
11009 * gcore.c (_initialize_gcore): Add declaration.
11010 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
11011 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
11012 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
11013 * gdbarch.c (_initialize_gdbarch): Add declaration.
11014 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
11015 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
11016 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
11017 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
11018 * go-lang.c (_initialize_go_language): Add declaration.
11019 * go32-nat.c (_initialize_go32_nat): Add declaration.
11020 * guile/guile.c (_initialize_guile): Add declaration.
11021 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
11022 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
11023 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
11024 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
11025 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
11026 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
11027 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
11028 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
11029 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
11030 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
11031 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
11032 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
11033 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
11034 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
11035 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
11036 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
11037 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
11038 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
11039 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
11040 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
11041 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
11042 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
11043 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
11044 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
11045 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
11046 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
11047 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
11048 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
11049 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
11050 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
11051 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
11052 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
11053 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
11054 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
11055 * infcall.c (_initialize_infcall): Add declaration.
11056 * infcmd.c (_initialize_infcmd): Add declaration.
11057 * inflow.c (_initialize_inflow): Add declaration.
11058 * infrun.c (_initialize_infrun): Add declaration.
11059 * interps.c (_initialize_interpreter): Add declaration.
11060 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
11061 * jit.c (_initialize_jit): Add declaration.
11062 * language.c (_initialize_language): Add declaration.
11063 * linux-fork.c (_initialize_linux_fork): Add declaration.
11064 * linux-nat.c (_initialize_linux_nat): Add declaration.
11065 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
11066 * linux-thread-db.c (_initialize_thread_db): Add declaration.
11067 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
11068 * m2-lang.c (_initialize_m2_language): Add declaration.
11069 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
11070 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
11071 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
11072 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
11073 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
11074 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
11075 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
11076 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
11077 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
11078 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
11079 * machoread.c (_initialize_machoread): Add declaration.
11080 * macrocmd.c (_initialize_macrocmd): Add declaration.
11081 * macroscope.c (_initialize_macroscope): Add declaration.
11082 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
11083 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
11084 * maint.c (_initialize_maint_cmds): Add declaration.
11085 * mdebugread.c (_initialize_mdebugread): Add declaration.
11086 * memattr.c (_initialize_mem): Add declaration.
11087 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
11088 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
11089 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
11090 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
11091 * mi/mi-main.c (_initialize_mi_main): Add declaration.
11092 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
11093 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
11094 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
11095 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
11096 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
11097 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
11098 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
11099 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
11100 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
11101 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
11102 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
11103 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
11104 * mipsread.c (_initialize_mipsread): Add declaration.
11105 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
11106 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
11107 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
11108 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
11109 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
11110 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
11111 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
11112 * nto-procfs.c (_initialize_procfs): Add declaration.
11113 * objc-lang.c (_initialize_objc_language): Add declaration.
11114 * observable.c (_initialize_observer): Add declaration.
11115 * opencl-lang.c (_initialize_opencl_language): Add declaration.
11116 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
11117 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
11118 * osabi.c (_initialize_gdb_osabi): Add declaration.
11119 * osdata.c (_initialize_osdata): Add declaration.
11120 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
11121 * parse.c (_initialize_parse): Add declaration.
11122 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
11123 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
11124 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
11125 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
11126 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
11127 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
11128 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
11129 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
11130 * printcmd.c (_initialize_printcmd): Add declaration.
11131 * probe.c (_initialize_probe): Add declaration.
11132 * proc-api.c (_initialize_proc_api): Add declaration.
11133 * proc-events.c (_initialize_proc_events): Add declaration.
11134 * proc-service.c (_initialize_proc_service): Add declaration.
11135 * procfs.c (_initialize_procfs): Add declaration.
11136 * producer.c (_initialize_producer): Add declaration.
11137 * psymtab.c (_initialize_psymtab): Add declaration.
11138 * python/python.c (_initialize_python): Add declaration.
11139 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
11140 * record-btrace.c (_initialize_record_btrace): Add declaration.
11141 * record-full.c (_initialize_record_full): Add declaration.
11142 * record.c (_initialize_record): Add declaration.
11143 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
11144 * regcache.c (_initialize_regcache): Add declaration.
11145 * reggroups.c (_initialize_reggroup): Add declaration.
11146 * remote-notif.c (_initialize_notif): Add declaration.
11147 * remote-sim.c (_initialize_remote_sim): Add declaration.
11148 * remote.c (_initialize_remote): Add declaration.
11149 * reverse.c (_initialize_reverse): Add declaration.
11150 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
11151 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
11152 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
11153 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
11154 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
11155 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
11156 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
11157 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
11158 Add declaration.
11159 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
11160 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
11161 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
11162 * rust-exp.y (_initialize_rust_exp): Add declaration.
11163 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
11164 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
11165 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
11166 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
11167 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
11168 * score-tdep.c (_initialize_score_tdep): Add declaration.
11169 * ser-go32.c (_initialize_ser_dos): Add declaration.
11170 * ser-mingw.c (_initialize_ser_windows): Add declaration.
11171 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
11172 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
11173 * ser-uds.c (_initialize_ser_socket): Add declaration.
11174 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
11175 * serial.c (_initialize_serial): Add declaration.
11176 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
11177 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
11178 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
11179 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
11180 * skip.c (_initialize_step_skip): Add declaration.
11181 * sol-thread.c (_initialize_sol_thread): Add declaration.
11182 * solib-aix.c (_initialize_solib_aix): Add declaration.
11183 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
11184 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
11185 * solib-frv.c (_initialize_frv_solib): Add declaration.
11186 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
11187 * solib-target.c (_initialize_solib_target): Add declaration.
11188 * solib.c (_initialize_solib): Add declaration.
11189 * source-cache.c (_initialize_source_cache): Add declaration.
11190 * source.c (_initialize_source): Add declaration.
11191 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
11192 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
11193 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
11194 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
11195 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
11196 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
11197 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
11198 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
11199 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
11200 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
11201 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
11202 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
11203 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
11204 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
11205 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
11206 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
11207 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
11208 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
11209 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
11210 * stabsread.c (_initialize_stabsread): Add declaration.
11211 * stack.c (_initialize_stack): Add declaration.
11212 * stap-probe.c (_initialize_stap_probe): Add declaration.
11213 * std-regs.c (_initialize_frame_reg): Add declaration.
11214 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
11215 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
11216 * symfile.c (_initialize_symfile): Add declaration.
11217 * symmisc.c (_initialize_symmisc): Add declaration.
11218 * symtab.c (_initialize_symtab): Add declaration.
11219 * target.c (_initialize_target): Add declaration.
11220 * target-connection.c (_initialize_target_connection): Add
11221 declaration.
11222 * target-dcache.c (_initialize_target_dcache): Add declaration.
11223 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
11224 * thread.c (_initialize_thread): Add declaration.
11225 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
11226 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
11227 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
11228 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
11229 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
11230 * tracectf.c (_initialize_ctf): Add declaration.
11231 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
11232 * tracefile.c (_initialize_tracefile): Add declaration.
11233 * tracepoint.c (_initialize_tracepoint): Add declaration.
11234 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
11235 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
11236 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
11237 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
11238 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
11239 * tui/tui-win.c (_initialize_tui_win): Add declaration.
11240 * tui/tui.c (_initialize_tui): Add declaration.
11241 * typeprint.c (_initialize_typeprint): Add declaration.
11242 * ui-style.c (_initialize_ui_style): Add declaration.
11243 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
11244 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
11245 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
11246 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
11247 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
11248 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
11249 * unittests/filtered_iterator-selftests.c
11250 (_initialize_filtered_iterator_selftests): Add declaration.
11251 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
11252 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
11253 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
11254 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
11255 * unittests/main-thread-selftests.c
11256 (_initialize_main_thread_selftests): Add declaration.
11257 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
11258 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
11259 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
11260 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
11261 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
11262 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
11263 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
11264 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
11265 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
11266 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
11267 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
11268 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
11269 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
11270 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
11271 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
11272 declaration.
11273 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
11274 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
11275 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
11276 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
11277 * user-regs.c (_initialize_user_regs): Add declaration.
11278 * utils.c (_initialize_utils): Add declaration.
11279 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
11280 * valops.c (_initialize_valops): Add declaration.
11281 * valprint.c (_initialize_valprint): Add declaration.
11282 * value.c (_initialize_values): Add declaration.
11283 * varobj.c (_initialize_varobj): Add declaration.
11284 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
11285 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
11286 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
11287 * windows-nat.c (_initialize_windows_nat): Add declaration.
11288 (_initialize_check_for_gdb_ini): Add declaration.
11289 (_initialize_loadable): Add declaration.
11290 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
11291 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
11292 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
11293 * xcoffread.c (_initialize_xcoffread): Add declaration.
11294 * xml-support.c (_initialize_xml_support): Add declaration.
11295 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
11296 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
11297 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
11298 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
11299
e2de1eec
SM
113002020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
11301
11302 * regformats/regdat.sh: Generate declaration for init function.
11303
e0037b4c
SM
113042020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
11305
11306 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
11307 up.
11308 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
11309 close_one_inferior>: New methods.
11310 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
11311 pass down target to find_inferior_pid.
11312 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
11313 Pass down target to find_inferior_ptid.
11314 (gdbsim_target::create_inferior): Pass down target to
11315 add_thread_silent.
11316 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
11317 target down to find_inferior_ptid and switch_to_thread.
11318 (gdbsim_target::close): Update to call close_one_inferior.
11319 (struct resume_data): Remove.
11320 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
11321 directly, rather than through a void pointer.
11322 (gdbsim_target::resume): Update to call resume_one_inferior.
11323
58920b5b
SM
113242020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
11325
11326 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
11327
4ec89149
PA
113282020-01-12 Pedro Alves <palves@redhat.com>
11329
11330 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
11331 directly for the current inferior instead of
11332 discard_all_inferiors.
11333 (discard_all_inferiors): Delete.
11334
7c392d1d
TT
113352020-01-11 Tom Tromey <tom@tromey.com>
11336
11337 * tui/tui-wingeneral.c (box_win): Check cli_styling.
11338 * tui/tui-winsource.c (tui_source_window_base::refill): Use
11339 deprecated_safe_get_selected_frame.
11340
d9ebdab7
TBA
113412020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11342
11343 * inferior.c (print_inferior): Switch inferior before printing it.
11344
f3c469b9
PA
113452020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
11346 Pedro Alves <palves@redhat.com>
11347
11348 * progspace-and-thread.c (switch_to_program_space_and_thread):
11349 Assert there's an inferior for PSPACE. Use
11350 switch_to_inferior_no_thread to switch the inferior too.
11351 * progspace.c (program_space::~program_space): Call
11352 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
11353 (program_space::free_all_objfiles): Don't call clear_symtab_users
11354 here.
11355 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
11356
65c574f6
PA
113572020-01-10 Pedro Alves <palves@redhat.com>
11358
11359 * NEWS: Mention multi-target debugging, "info connections", and
11360 "add-inferior -no-connection".
11361
2f4fcf00
PA
113622020-01-10 Pedro Alves <palves@redhat.com>
11363
11364 * infrun.c: Include "target-connection.h".
11365 (check_multi_target_resumption): New.
11366 (proceed): Call it.
11367 * target-connection.c (make_target_connection_string): Make
11368 extern.
11369 * target-connection.h (make_target_connection_string): Declare.
11370
121b3efd
PA
113712020-01-10 Pedro Alves <palves@redhat.com>
11372
11373 * Makefile.in (COMMON_SFILES): Add target-connection.c.
11374 * inferior.c (uiout_field_connection): New function.
11375 (print_inferior): Add new "connection-id" column.
11376 (add_inferior_command): Show connection number/string of added
11377 inferior.
11378 * process-stratum-target.h
11379 (process_stratum_target::connection_string): New virtual method.
11380 (process_stratum_target::connection_number): New field.
11381 * remote.c (remote_target::connection_string): New override.
11382 * target-connection.c: New file.
11383 * target-connection.h: New file.
11384 * target.c (decref_target): Remove process_stratum targets from
11385 the connection list.
11386 (target_stack::push): Add process_stratum targets to the
11387 connection list.
11388
4f837581
PA
113892020-01-10 Pedro Alves <palves@redhat.com>
11390
11391 Revert:
11392 2016-04-12 Pedro Alves <palves@redhat.com>
11393 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
11394 Remove references to name.
11395 * serial.h (struct serial) <name>: Delete.
11396
f4ec508e
PA
113972020-01-10 Pedro Alves <palves@redhat.com>
11398
11399 * gdbarch-selftests.c (register_to_value_test): Remove "target
11400 already pushed" check.
11401
5b6d1e4f
PA
114022020-01-10 Pedro Alves <palves@redhat.com>
11403 John Baldwin <jhb@FreeBSD.org>
11404
11405 * aarch64-linux-nat.c
11406 (aarch64_linux_nat_target::thread_architecture): Adjust.
11407 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
11408 (task_command_1): Likewise.
11409 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
11410 (aix_thread_target::wait, aix_thread_target::fetch_registers)
11411 (aix_thread_target::store_registers)
11412 (aix_thread_target::thread_alive): Adjust.
11413 * amd64-fbsd-tdep.c: Include "inferior.h".
11414 (amd64fbsd_get_thread_local_address): Pass down target.
11415 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
11416 thread's gdbarch instead of target_gdbarch.
11417 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
11418 get_last_target_status.
11419 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
11420 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
11421 inferiors.
11422 (update_inserted_breakpoint_locations): Skip if inferiors with no
11423 execution.
11424 (update_global_location_list): When handling moribund locations,
11425 find representative inferior for location's pspace, and use thread
11426 count of its process_stratum target.
11427 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
11428 * bsd-uthread.c (bsd_uthread_target::wait): Use
11429 as_process_stratum_target and adjust thread_change_ptid and
11430 add_thread calls.
11431 (bsd_uthread_target::update_thread_list): Use
11432 as_process_stratum_target and adjust find_thread_ptid,
11433 thread_change_ptid and add_thread calls.
11434 * btrace.c (maint_btrace_packet_history_cmd): Adjust
11435 find_thread_ptid call.
11436 * corelow.c (add_to_thread_list): Adjust add_thread call.
11437 (core_target_open): Adjust add_thread_silent and thread_count
11438 calls.
11439 (core_target::pid_to_str): Adjust find_inferior_ptid call.
11440 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
11441 * event-top.c (async_disconnect): Pop targets from all inferiors.
11442 * exec.c (add_target_sections): Push exec target on all inferiors
11443 sharing the program space.
11444 (remove_target_sections): Remove the exec target from all
11445 inferiors sharing the program space.
11446 (exec_on_vfork): New.
11447 * exec.h (exec_on_vfork): Declare.
11448 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
11449 Pass it down.
11450 (fbsd_nat_target::update_thread_list): Adjust.
11451 (fbsd_nat_target::resume): Adjust.
11452 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
11453 down.
11454 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
11455 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
11456 get_thread_arch_regcache call.
11457 * fork-child.c (gdb_startup_inferior): Pass target down to
11458 startup_inferior and set_executing.
11459 * gdbthread.h (struct process_stratum_target): Forward declare.
11460 (add_thread, add_thread_silent, add_thread_with_info)
11461 (in_thread_list): Add process_stratum_target parameter.
11462 (find_thread_ptid(inferior*, ptid_t)): New overload.
11463 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
11464 parameter.
11465 (all_threads()): Delete overload.
11466 (all_threads, all_non_exited_threads): Add process_stratum_target
11467 parameter.
11468 (all_threads_safe): Use brace initialization.
11469 (thread_count): Add process_stratum_target parameter.
11470 (set_resumed, set_running, set_stop_requested, set_executing)
11471 (threads_are_executing, finish_thread_state): Add
11472 process_stratum_target parameter.
11473 (switch_to_thread): Use is_current_thread.
11474 * i386-fbsd-tdep.c: Include "inferior.h".
11475 (i386fbsd_get_thread_local_address): Pass down target.
11476 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
11477 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
11478 have_inferiors check.
11479 * inf-ptrace.c (inf_ptrace_target::create_inferior)
11480 (inf_ptrace_target::attach): Adjust.
11481 * infcall.c (run_inferior_call): Adjust.
11482 * infcmd.c (run_command_1): Pass target to
11483 scoped_finish_thread_state.
11484 (proceed_thread_callback): Skip inferiors with no execution.
11485 (continue_command): Rename 'all_threads' local to avoid hiding
11486 'all_threads' function. Adjust get_last_target_status call.
11487 (prepare_one_step): Adjust set_running call.
11488 (signal_command): Use user_visible_resume_target. Compare thread
11489 pointers instead of inferior_ptid.
11490 (info_program_command): Adjust to pass down target.
11491 (attach_command): Mark target's 'thread_executing' flag.
11492 (stop_current_target_threads_ns): New, factored out from ...
11493 (interrupt_target_1): ... this. Switch inferior before making
11494 target calls.
11495 * inferior-iter.h
11496 (struct all_inferiors_iterator, struct all_inferiors_range)
11497 (struct all_inferiors_safe_range)
11498 (struct all_non_exited_inferiors_range): Filter on
11499 process_stratum_target too. Remove explicit.
11500 * inferior.c (inferior::inferior): Push dummy target on target
11501 stack.
11502 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
11503 Add process_stratum_target parameter, and pass it down.
11504 (have_live_inferiors): Adjust.
11505 (switch_to_inferior_and_push_target): New.
11506 (add_inferior_command, clone_inferior_command): Handle
11507 "-no-connection" parameter. Use
11508 switch_to_inferior_and_push_target.
11509 (_initialize_inferior): Mention "-no-connection" option in
11510 the help of "add-inferior" and "clone-inferior" commands.
11511 * inferior.h: Include "process-stratum-target.h".
11512 (interrupt_target_1): Use bool.
11513 (struct inferior) <push_target, unpush_target, target_is_pushed,
11514 find_target_beneath, top_target, process_target, target_at,
11515 m_stack>: New.
11516 (discard_all_inferiors): Delete.
11517 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
11518 (all_inferiors, all_non_exited_inferiors): Add
11519 process_stratum_target parameter.
11520 * infrun.c: Include "gdb_select.h" and <unordered_map>.
11521 (target_last_proc_target): New global.
11522 (follow_fork_inferior): Push target on new inferior. Pass target
11523 to add_thread_silent. Call exec_on_vfork. Handle target's
11524 reference count.
11525 (follow_fork): Adjust get_last_target_status call. Also consider
11526 target.
11527 (follow_exec): Push target on new inferior.
11528 (struct execution_control_state) <target>: New field.
11529 (user_visible_resume_target): New.
11530 (do_target_resume): Call target_async.
11531 (resume_1): Set target's threads_executing flag. Consider resume
11532 target.
11533 (commit_resume_all_targets): New.
11534 (proceed): Also consider resume target. Skip threads of inferiors
11535 with no execution. Commit resumtion in all targets.
11536 (start_remote): Pass current inferior to wait_for_inferior.
11537 (infrun_thread_stop_requested): Consider target as well. Pass
11538 thread_info pointer to clear_inline_frame_state instead of ptid.
11539 (infrun_thread_thread_exit): Consider target as well.
11540 (random_pending_event_thread): New inferior parameter. Use it.
11541 (do_target_wait): Rename to ...
11542 (do_target_wait_1): ... this. Add inferior parameter, and pass it
11543 down.
11544 (threads_are_resumed_pending_p, do_target_wait): New.
11545 (prepare_for_detach): Adjust calls.
11546 (wait_for_inferior): New inferior parameter. Handle it. Use
11547 do_target_wait_1 instead of do_target_wait.
11548 (fetch_inferior_event): Adjust. Switch to representative
11549 inferior. Pass target down.
11550 (set_last_target_status): Add process_stratum_target parameter.
11551 Save target in global.
11552 (get_last_target_status): Add process_stratum_target parameter and
11553 handle it.
11554 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
11555 (context_switch): Check inferior_ptid == null_ptid before calling
11556 inferior_thread().
11557 (get_inferior_stop_soon): Pass down target.
11558 (wait_one): Rename to ...
11559 (poll_one_curr_target): ... this.
11560 (struct wait_one_event): New.
11561 (wait_one): New.
11562 (stop_all_threads): Adjust.
11563 (handle_no_resumed, handle_inferior_event): Adjust to consider the
11564 event's target.
11565 (switch_back_to_stepped_thread): Also consider target.
11566 (print_stop_event): Update.
11567 (normal_stop): Update. Also consider the resume target.
11568 * infrun.h (wait_for_inferior): Remove declaration.
11569 (user_visible_resume_target): New declaration.
11570 (get_last_target_status, set_last_target_status): New
11571 process_stratum_target parameter.
11572 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
11573 process_stratum_target parameter, and use it.
11574 (clear_inline_frame_state (thread_info*)): New.
11575 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
11576 process_stratum_target parameter.
11577 (clear_inline_frame_state (thread_info*)): Declare.
11578 * linux-fork.c (delete_checkpoint_command): Pass target down to
11579 find_thread_ptid.
11580 (checkpoint_command): Adjust.
11581 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
11582 instead of just tweaking inferior_ptid.
11583 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
11584 (exit_lwp): Pass target down to find_thread_ptid.
11585 (attach_proc_task_lwp_callback): Pass target down to
11586 add_thread/set_running/set_executing.
11587 (linux_nat_target::attach): Pass target down to
11588 thread_change_ptid.
11589 (get_detach_signal): Pass target down to find_thread_ptid.
11590 Consider last target status's target.
11591 (linux_resume_one_lwp_throw, resume_lwp)
11592 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
11593 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
11594 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
11595 (linux_nat_target::async_wait_fd): New.
11596 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
11597 target down.
11598 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
11599 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
11600 * linux-thread-db.c (struct thread_db_info::process_target): New
11601 field.
11602 (add_thread_db_info): Save target.
11603 (get_thread_db_info): New process_stratum_target parameter. Also
11604 match target.
11605 (delete_thread_db_info): New process_stratum_target parameter.
11606 Also match target.
11607 (thread_from_lwp): Adjust to pass down target.
11608 (thread_db_notice_clone): Pass down target.
11609 (check_thread_db_callback): Pass down target.
11610 (try_thread_db_load_1): Always push the thread_db target.
11611 (try_thread_db_load, record_thread): Pass target down.
11612 (thread_db_target::detach): Pass target down. Always unpush the
11613 thread_db target.
11614 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
11615 target down. Always unpush the thread_db target.
11616 (find_new_threads_callback, thread_db_find_new_threads_2)
11617 (thread_db_target::update_thread_list): Pass target down.
11618 (thread_db_target::pid_to_str): Pass current inferior down.
11619 (thread_db_target::get_thread_local_address): Pass target down.
11620 (thread_db_target::resume, maintenance_check_libthread_db): Pass
11621 target down.
11622 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
11623 * procfs.c (procfs_target::procfs_init_inferior): Declare.
11624 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
11625 (procfs_init_inferior): Rename to ...
11626 (procfs_target::procfs_init_inferior): ... this and adjust.
11627 (procfs_target::create_inferior, procfs_notice_thread)
11628 (procfs_do_thread_registers): Adjust.
11629 * ppc-fbsd-tdep.c: Include "inferior.h".
11630 (ppcfbsd_get_thread_local_address): Pass down target.
11631 * proc-service.c (ps_xfer_memory): Switch current inferior and
11632 program space as well.
11633 (get_ps_regcache): Pass target down.
11634 * process-stratum-target.c
11635 (process_stratum_target::thread_address_space)
11636 (process_stratum_target::thread_architecture): Pass target down.
11637 * process-stratum-target.h
11638 (process_stratum_target::threads_executing): New field.
11639 (as_process_stratum_target): New.
11640 * ravenscar-thread.c
11641 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
11642 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
11643 down.
11644 * record-btrace.c (record_btrace_target::info_record): Adjust.
11645 (record_btrace_target::record_method)
11646 (record_btrace_target::record_is_replaying)
11647 (record_btrace_target::fetch_registers)
11648 (get_thread_current_frame_id, record_btrace_target::resume)
11649 (record_btrace_target::wait, record_btrace_target::stop): Pass
11650 target down.
11651 * record-full.c (record_full_wait_1): Switch to event thread.
11652 Pass target down.
11653 * regcache.c (regcache::regcache)
11654 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
11655 process_stratum_target parameter and handle it.
11656 (current_thread_target): New global.
11657 (get_thread_regcache): Add process_stratum_target parameter and
11658 handle it. Switch inferior before calling target method.
11659 (get_thread_regcache): Pass target down.
11660 (get_thread_regcache_for_ptid): Pass target down.
11661 (registers_changed_ptid): Add process_stratum_target parameter and
11662 handle it.
11663 (registers_changed_thread, registers_changed): Pass target down.
11664 (test_get_thread_arch_aspace_regcache): New.
11665 (current_regcache_test): Define a couple local test_target_ops
11666 instances and use them for testing.
11667 (readwrite_regcache): Pass process_stratum_target parameter.
11668 (cooked_read_test, cooked_write_test): Pass mock_target down.
11669 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
11670 (get_thread_arch_aspace_regcache): Add process_stratum_target
11671 parameter.
11672 (regcache::target): New method.
11673 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
11674 (regcache::registers_changed_ptid): Add process_stratum_target
11675 parameter.
11676 (regcache::m_target): New field.
11677 (registers_changed_ptid): Add process_stratum_target parameter.
11678 * remote.c (remote_state::supports_vCont_probed): New field.
11679 (remote_target::async_wait_fd): New method.
11680 (remote_unpush_and_throw): Add remote_target parameter.
11681 (get_current_remote_target): Adjust.
11682 (remote_target::remote_add_inferior): Push target.
11683 (remote_target::remote_add_thread)
11684 (remote_target::remote_notice_new_inferior)
11685 (get_remote_thread_info): Pass target down.
11686 (remote_target::update_thread_list): Skip threads of inferiors
11687 bound to other targets. (remote_target::close): Don't discard
11688 inferiors. (remote_target::add_current_inferior_and_thread)
11689 (remote_target::process_initial_stop_replies)
11690 (remote_target::start_remote)
11691 (remote_target::remote_serial_quit_handler): Pass down target.
11692 (remote_target::remote_unpush_target): New remote_target
11693 parameter. Unpush the target from all inferiors.
11694 (remote_target::remote_unpush_and_throw): New remote_target
11695 parameter. Pass it down.
11696 (remote_target::open_1): Check whether the current inferior has
11697 execution instead of checking whether any inferior is live. Pass
11698 target down.
11699 (remote_target::remote_detach_1): Pass down target. Use
11700 remote_unpush_target.
11701 (extended_remote_target::attach): Pass down target.
11702 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
11703 (remote_target::append_resumption): Pass down target.
11704 (remote_target::append_pending_thread_resumptions)
11705 (remote_target::remote_resume_with_hc, remote_target::resume)
11706 (remote_target::commit_resume): Pass down target.
11707 (remote_target::remote_stop_ns): Check supports_vCont_probed.
11708 (remote_target::interrupt_query)
11709 (remote_target::remove_new_fork_children)
11710 (remote_target::check_pending_events_prevent_wildcard_vcont)
11711 (remote_target::remote_parse_stop_reply)
11712 (remote_target::process_stop_reply): Pass down target.
11713 (first_remote_resumed_thread): New remote_target parameter. Pass
11714 it down.
11715 (remote_target::wait_as): Pass down target.
11716 (unpush_and_perror): New remote_target parameter. Pass it down.
11717 (remote_target::readchar, remote_target::remote_serial_write)
11718 (remote_target::getpkt_or_notif_sane_1)
11719 (remote_target::kill_new_fork_children, remote_target::kill): Pass
11720 down target.
11721 (remote_target::mourn_inferior): Pass down target. Use
11722 remote_unpush_target.
11723 (remote_target::core_of_thread)
11724 (remote_target::remote_btrace_maybe_reopen): Pass down target.
11725 (remote_target::pid_to_exec_file)
11726 (remote_target::thread_handle_to_thread_info): Pass down target.
11727 (remote_target::async_wait_fd): New.
11728 * riscv-fbsd-tdep.c: Include "inferior.h".
11729 (riscv_fbsd_get_thread_local_address): Pass down target.
11730 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
11731 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
11732 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
11733 Adjust.
11734 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
11735 * solib-svr4.c (enable_break): Pass down target.
11736 * spu-multiarch.c (parse_spufs_run): Pass down target.
11737 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
11738 * target-delegates.c: Regenerate.
11739 * target.c (g_target_stack): Delete.
11740 (current_top_target): Return the current inferior's top target.
11741 (target_has_execution_1): Refer to the passed-in inferior's top
11742 target.
11743 (target_supports_terminal_ours): Check whether the initial
11744 inferior was already created.
11745 (decref_target): New.
11746 (target_stack::push): Incref/decref the target.
11747 (push_target, push_target, unpush_target): Adjust.
11748 (target_stack::unpush): Defref target.
11749 (target_is_pushed): Return bool. Adjust to refer to the current
11750 inferior's target stack.
11751 (dispose_inferior): Delete, and inline parts ...
11752 (target_preopen): ... here. Only dispose of the current inferior.
11753 (target_detach): Hold strong target reference while detaching.
11754 Pass target down.
11755 (target_thread_name): Add assertion.
11756 (target_resume): Pass down target.
11757 (target_ops::beneath, find_target_at): Adjust to refer to the
11758 current inferior's target stack.
11759 (get_dummy_target): New.
11760 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
11761 has a thread running.
11762 (initialize_targets): Rename to ...
11763 (_initialize_target): ... this.
11764 * target.h: Include "gdbsupport/refcounted-object.h".
11765 (struct target_ops): Inherit refcounted_object.
11766 (target_ops::shortname, target_ops::longname): Make const.
11767 (target_ops::async_wait_fd): New method.
11768 (decref_target): Declare.
11769 (struct target_ops_ref_policy): New.
11770 (target_ops_ref): New typedef.
11771 (get_dummy_target): Declare function.
11772 (target_is_pushed): Return bool.
11773 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
11774 (all_matching_threads_iterator::all_matching_threads_iterator):
11775 Handle filter target.
11776 * thread-iter.h (struct all_matching_threads_iterator, struct
11777 all_matching_threads_range, class all_non_exited_threads_range):
11778 Filter by target too. Remove explicit.
11779 * thread.c (threads_executing): Delete.
11780 (inferior_thread): Pass down current inferior.
11781 (clear_thread_inferior_resources): Pass down thread pointer
11782 instead of ptid_t.
11783 (add_thread_silent, add_thread_with_info, add_thread): Add
11784 process_stratum_target parameter. Use it for thread and inferior
11785 searches.
11786 (is_current_thread): New.
11787 (thread_info::deletable): Use it.
11788 (find_thread_ptid, thread_count, in_thread_list)
11789 (thread_change_ptid, set_resumed, set_running): New
11790 process_stratum_target parameter. Pass it down.
11791 (set_executing): New process_stratum_target parameter. Pass it
11792 down. Adjust reference to 'threads_executing'.
11793 (threads_are_executing): New process_stratum_target parameter.
11794 Adjust reference to 'threads_executing'.
11795 (set_stop_requested, finish_thread_state): New
11796 process_stratum_target parameter. Pass it down.
11797 (switch_to_thread): Also match inferior.
11798 (switch_to_thread): New process_stratum_target parameter. Pass it
11799 down.
11800 (update_threads_executing): Reimplement.
11801 * top.c (quit_force): Pop targets from all inferior.
11802 (gdb_init): Don't call initialize_targets.
11803 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
11804 Declare.
11805 (windows_add_thread, windows_delete_thread): Adjust.
11806 (get_windows_debug_event): Rename to ...
11807 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
11808 * tracefile-tfile.c (tfile_target_open): Pass down target.
11809 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
11810 Forward declare.
11811 (switch_to_thread): Add process_stratum_target parameter.
11812 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
11813 parameter. Use it.
11814 (mi_on_resume): Pass target down.
11815 * nat/fork-inferior.c (startup_inferior): Add
11816 process_stratum_target parameter. Pass it down.
11817 * nat/fork-inferior.h (startup_inferior): Add
11818 process_stratum_target parameter.
11819 * python/py-threadevent.c (py_get_event_thread): Pass target down.
11820
75c6c844
PA
118212020-01-10 Pedro Alves <palves@redhat.com>
11822
11823 * remote.c (remote_target::start_remote): Don't set inferior_ptid
11824 directly. Instead find the first thread in the thread list and
11825 use switch_to_thread.
11826
78f2c40a
PA
118272020-01-10 Pedro Alves <palves@redhat.com>
11828
11829 * remote.c (remote_target::remote_add_inferior): Don't bind a
11830 process to the current inferior if the current inferior is already
11831 bound to a process.
11832
e7af6c70
TBA
118332020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11834 Pedro Alves <palves@redhat.com>
11835
11836 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
11837 If no process is specified, return null_ptid instead of
11838 inferior_ptid.
11839 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
11840 TARGET_WAITKIND_SIGNALLED with no pid.
11841
31ba933e
PA
118422020-01-10 Pedro Alves <palves@redhat.com>
11843
11844 * remote.c (first_remote_resumed_thread): New.
11845 (remote_target::wait_as): Use it as default event_ptid instead of
11846 inferior_ptid.
11847
735fc2ca
PA
118482020-01-10 Pedro Alves <palves@redhat.com>
11849
11850 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
11851
c17e02e1
PA
118522020-01-10 Pedro Alves <palves@redhat.com>
11853
11854 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
11855 not -1.
11856
ab1ddbcf
PA
118572020-01-10 Pedro Alves <palves@redhat.com>
11858
11859 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
11860 ptid to get_last_target_status.
11861 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
11862 ptid to get_last_target_status.
11863 * infcmd.c (continue_command): Don't pass a target_waitstatus to
11864 get_last_target_status.
11865 (info_program_command): Don't pass a target_waitstatus to
11866 get_last_target_status.
11867 * infrun.c (init_wait_for_inferior): Use
11868 nullify_last_target_wait_ptid.
11869 (get_last_target_status): Handle nullptr arguments.
11870 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
11871 (print_stop_event): Don't pass a ptid to get_last_target_status.
11872 (normal_stop): Don't pass a ptid to get_last_target_status.
11873 * infrun.h (get_last_target_status, set_last_target_status): Move
11874 comments here and update.
11875 (nullify_last_target_wait_ptid): Declare.
11876 * linux-fork.c (fork_load_infrun_state): Remove local extern
11877 declaration of nullify_last_target_wait_ptid.
11878 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
11879 to get_last_target_status.
11880
f3f8ece4
PA
118812020-01-10 Pedro Alves <palves@redhat.com>
11882
11883 * gdbthread.h (scoped_restore_current_thread)
11884 <dont_restore, restore, m_dont_restore>: Declare.
11885 * thread.c (thread_alive): Add assertion. Return bool.
11886 (switch_to_thread_if_alive): New.
11887 (prune_threads): Switch inferior/thread.
11888 (print_thread_info_1): Switch thread before calling target methods.
11889 (scoped_restore_current_thread::restore): New, factored out from
11890 ...
11891 (scoped_restore_current_thread::~scoped_restore_current_thread):
11892 ... this.
11893 (scoped_restore_current_thread::scoped_restore_current_thread):
11894 Add assertion.
11895 (thread_apply_all_command, thread_select): Use
11896 switch_to_thread_if_alive.
11897 * infrun.c (proceed, restart_threads, handle_signal_stop)
11898 (switch_back_to_stepped_thread): Switch current thread before
11899 calling target methods.
11900
db2d40f7
PA
119012020-01-10 Pedro Alves <palves@redhat.com>
11902
11903 * inferior.c (switch_to_inferior_no_thread): New function,
11904 factored out from ...
11905 (inferior_command): ... here.
11906 * inferior.h (switch_to_inferior_no_thread): Declare.
11907 * mi/mi-main.c (run_one_inferior): Use
11908 switch_to_inferior_no_thread.
11909
bd420a2d
PA
119102020-01-10 Pedro Alves <palves@redhat.com>
11911
11912 * infcmd.c (kill_command): Remove dead code.
11913
ddf5db90
PA
119142020-01-10 Pedro Alves <palves@redhat.com>
11915
11916 * remote.c (remote_target::mourn_inferior): No longer check
11917 whether the target is running.
11918
5018ce90
PA
119192020-01-10 Pedro Alves <palves@redhat.com>
11920
11921 * corelow.c (core_target::has_execution): Change parameter type to
11922 inferior pointer.
11923 * inferior.c (number_of_live_inferiors): Use
11924 inferior::has_execution instead of target_has_execution_1.
11925 * inferior.h (inferior::has_execution): New.
11926 * linux-thread-db.c (thread_db_target::update_thread_list): Use
11927 inferior::has_execution instead of target_has_execution_1.
11928 * process-stratum-target.c
11929 (process_stratum_target::has_execution): Change parameter type to
11930 inferior pointer. Check the inferior's PID instead of
11931 inferior_ptid.
11932 * process-stratum-target.h
11933 (process_stratum_target::has_execution): Change parameter type to
11934 inferior pointer.
11935 * record-full.c (record_full_core_target::has_execution): Change
11936 parameter type to inferior pointer.
11937 * target.c (target_has_execution_1): Change parameter type to
11938 inferior pointer.
11939 (target_has_execution_current): Adjust.
11940 * target.h (target_ops::has_execution): Change parameter type to
11941 inferior pointer.
11942 (target_has_execution_1): Change parameter type to inferior
11943 pointer. Change return type to bool.
11944 * tracefile.h (tracefile_target::has_execution): Change parameter
11945 type to inferior pointer.
11946
74375d18
PA
119472020-01-10 Pedro Alves <palves@redhat.com>
11948
11949 * exceptions.c (print_flush): Remove current_top_target() check.
11950
acdf84a6
PA
119512020-01-10 Pedro Alves <palves@redhat.com>
11952
11953 * remote.c (show_remote_exec_file): Show the current inferior's
11954 exec-file instead of the command variable's value.
11955
ec506636
PA
119562020-01-10 Pedro Alves <palves@redhat.com>
11957
11958 * record-full.c (record_full_resume_ptid): New global.
11959 (record_full_target::resume): Set it.
11960 (record_full_wait_1): Use record_full_resume_ptid instead of
11961 inferior_ptid.
11962
873657b9
PA
119632020-01-10 Pedro Alves <palves@redhat.com>
11964
11965 * gdbthread.h (scoped_restore_current_thread)
11966 <dont_restore, restore, m_dont_restore>: Declare.
11967 * thread.c (thread_alive): Add assertion. Return bool.
11968 (switch_to_thread_if_alive): New.
11969 (prune_threads): Switch inferior/thread.
11970 (print_thread_info_1): Switch thread before calling target methods.
11971 (scoped_restore_current_thread::restore): New, factored out from
11972 ...
11973 (scoped_restore_current_thread::~scoped_restore_current_thread):
11974 ... this.
11975 (scoped_restore_current_thread::scoped_restore_current_thread):
11976 Add assertion.
11977 (thread_apply_all_command, thread_select): Use
11978 switch_to_thread_if_alive.
11979
7f0ae84c
GB
119802020-01-10 George Barrett <bob@bob131.so>
11981
11982 * stap-probe.c (stap_modify_semaphore): Don't check for null
11983 semaphores.
11984 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
11985 for null semaphores.
11986
f5a7c406
AB
119872020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
11988
11989 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
11990 all source windows, and maintain horizontal scroll status while
11991 doing so.
11992
9ae6bf64
TT
119932020-01-09 Tom Tromey <tom@tromey.com>
11994
11995 PR tui/18932:
11996 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
11997 update_source_window, not print_source_lines.
11998
b2efe70c
AB
119992020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
12000
12001 * tui/tui.c (tui_enable): Register tui hooks after calling
12002 tui_display_main.
12003
5f23a082
CB
120042020-01-09 Christian Biesinger <cbiesinger@google.com>
12005
12006 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
12007
3061113b
SM
120082020-01-08 Simon Marchi <simon.marchi@efficios.com>
12009
12010 * thread.c (print_thread_info_1): Fix indentation.
12011
57d75002
CB
120122020-01-09 Christian Biesinger <cbiesinger@google.com>
12013
12014 * symtab.c (general_symbol_info::compute_and_set_names): Move the
12015 unique_xmalloc_ptr outside the if to always free the demangled name.
12016
6a053cb1
TT
120172020-01-08 Tom Tromey <tromey@adacore.com>
12018
12019 * xcoffread.c (enter_line_range, read_xcoff_symtab)
12020 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
12021 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
12022 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
12023 Remove.
12024 (section_offsets): New typedef.
12025 * symtab.c (fixup_section, get_msymbol_address): Update.
12026 * symmisc.c (dump_msymbols): Update.
12027 * symfile.h (relative_addr_info_to_section_offsets)
12028 (symfile_map_offsets_to_segments): Update.
12029 * symfile.c (build_section_addr_info_from_objfile)
12030 (init_objfile_sect_indices): Update.
12031 (struct place_section_arg): Change type of "offsets".
12032 (place_section): Update.
12033 (relative_addr_info_to_section_offsets): Change type of
12034 "section_offsets". Remove "num_sections" parameter.
12035 (default_symfile_offsets, syms_from_objfile_1)
12036 (set_objfile_default_section_offset): Update.
12037 (reread_symbols): No need to preserve section offsets by hand.
12038 (symfile_map_offsets_to_segments): Change type of "offsets".
12039 * stap-probe.c (relocate_address): Update.
12040 * stabsread.h (process_one_symbol): Update.
12041 * solib-target.c (struct lm_info_target) <offsets>: Change type.
12042 (solib_target_relocate_section_addresses): Update.
12043 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
12044 Update.
12045 * solib-frv.c (frv_relocate_main_executable): Update.
12046 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
12047 * solib-aix.c (solib_aix_get_section_offsets): Change return
12048 type.
12049 (solib_aix_solib_create_inferior_hook): Update.
12050 * remote.c (remote_target::get_offsets): Update.
12051 * psymtab.c (find_pc_sect_psymtab): Update.
12052 * psympriv.h (struct partial_symbol) <address, text_low,
12053 text_high>: Update.
12054 * objfiles.h (obj_section_offset): Update.
12055 (struct objfile) <section_offsets>: Change type.
12056 <num_sections>: Remove.
12057 (objfile_relocate): Update.
12058 * objfiles.c (entry_point_address_query): Update
12059 (relocate_one_symbol): Change type of "section_offsets".
12060 (objfile_relocate1, objfile_relocate1): Change type of
12061 "new_offsets".
12062 (objfile_rebase1): Update.
12063 * mipsread.c (mipscoff_symfile_read): Update.
12064 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
12065 parameter.
12066 * mdebugread.c (parse_symbol): Change type of "section_offsets".
12067 (parse_external, psymtab_to_symtab_1): Update.
12068 * machoread.c (macho_symfile_offsets): Update.
12069 * ia64-tdep.c (ia64_find_unwind_table): Update.
12070 * hppa-tdep.c (read_unwind_info): Update.
12071 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
12072 * dwarf2read.c (create_addrmap_from_index)
12073 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
12074 (process_psymtab_comp_unit_reader, add_partial_symbol)
12075 (add_partial_subprogram, process_full_comp_unit)
12076 (read_file_scope, read_func_scope, read_lexical_block_scope)
12077 (read_call_site_scope, dwarf2_rnglists_process)
12078 (dwarf2_ranges_process, dwarf2_ranges_read)
12079 (dwarf_decode_lines_1, var_decode_location, new_symbol)
12080 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
12081 Update.
12082 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
12083 Update.
12084 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
12085 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
12086 (process_one_symbol): Change type of "section_offsets".
12087 * ctfread.c (get_objfile_text_range): Update.
12088 * coffread.c (coff_symtab_read, enter_linenos)
12089 (process_coff_symbol): Update.
12090 * coff-pe-read.c (add_pe_forwarded_sym): Update.
12091 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
12092
456e800a
TT
120932020-01-08 Tom Tromey <tromey@adacore.com>
12094
12095 * dwarf2read.c (parse_macro_definition): Use std::string.
12096 (parse_macro_definition): Likewise.
12097
6dfa2fc2
TT
120982020-01-08 Tom Tromey <tromey@adacore.com>
12099
12100 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
12101 (ATTR_ALLOC_CHUNK): Remove.
12102
421d1616
TT
121032020-01-08 Tom Tromey <tromey@adacore.com>
12104
12105 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
12106
43816ebc
TT
121072020-01-08 Tom Tromey <tromey@adacore.com>
12108
12109 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
12110 (dwarf2_compute_name, open_dwo_file): Likewise.
12111 (process_enumeration_scope): Use std::vector.
12112 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
12113 (partial_die_info::fixup, dwarf2_start_subfile)
12114 (guess_full_die_structure_name, dwarf2_name): Likewise.
12115 (determine_prefix): Update.
12116 (guess_full_die_structure_name): Make return type const.
12117 (partial_die_full_name): Return unique_xmalloc_ptr.
12118 (DW_FIELD_ALLOC_CHUNK): Remove.
12119
4212d509
TT
121202020-01-07 Tom Tromey <tromey@adacore.com>
12121
12122 PR build/24937:
12123 * stap-probe.c (class stap_static_probe_ops): Add constructor.
12124
06a6207a
JT
121252020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
12126
12127 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
12128
153d79c4
AB
121292020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
12130
12131 * stack.c (print_frame_info): Move disassemble_next_line code
12132 inside source_print block.
12133
66182876
EZ
121342020-01-06 Eli Zaretskii <eliz@gnu.org>
12135
12136 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
12137 gdb/signals.h, as we are now using native signal symbols.
12138
cbfa8581
SV
121392020-01-06 Shahab Vahedi <shahab@synopsys.com>
12140
12141 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
12142 overflow by an early check of content vs threshold.
aac66a4c 12143 * tui/tui-source.c (tui_source_window::line_is_displayed):
cbfa8581
SV
12144 Likewise.
12145
3f602821
EZ
121462020-01-06 Eli Zaretskii <eliz@gnu.org>
12147
12148 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
12149
a08c904d
JT
121502020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
12151
12152 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
12153 export table if no section contains it's RVA.
12154
89a65580
EZ
121552020-01-06 Eli Zaretskii <eliz@gnu.org>
12156
12157 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
12158
8b7fcda2
HD
121592020-01-06 Hannes Domani <ssbssa@yahoo.de>
12160
12161 * source.c (print_source_lines_base): Set last_line_listed.
12162
a61b4f69
SV
121632020-01-06 Shahab Vahedi <shahab@synopsys.com>
12164
12165 * tui/tui-disasm.c: Remove trailing spaces.
12166
559e7e50
EZ
121672020-01-06 Eli Zaretskii <eliz@gnu.org>
12168 Pedro Alves <palves@redhat.com>
12169
12170 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
12171 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
12172 (windows_gdb_signal_to_target): New function, uses the above
12173 enumeration to convert GDB internal signal codes to equivalent
12174 Windows codes.
12175 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
12176 * windows-nat.c: Include "gdb_wait.h".
12177 (get_windows_debug_event): Extract the fatal exception from the
12178 exit status and convert to the equivalent Posix signal number.
12179 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
12180 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
12181 * gdbsupport/gdb_wait.c: New file, implements
12182 windows_status_to_termsig.
12183 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
12184 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
12185
f2302a34
AB
121862020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
12187
12188 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
12189 show_layout.
12190
6a5206eb
LM
121912020-01-05 Luis Machado <luis.machado@linaro.org>
12192
12193 * aarch64-linux-nat.c
12194 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
12195 and bfd_mach_aarch64.
12196
6ec1d75e
PW
121972020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12198
12199 * ui-file.c (stdio_file::can_emit_style_escape)
12200 (tee_file::can_emit_style_escape): Ensure style is used also on
12201 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
12202 to gdb_stdout.
12203 * main.c (set_gdb_data_directory): Use file style to output the
12204 warning that the given pathname is not a directory.
12205 * top.c (show_history_filename, gdb_safe_append_history)
12206 (show_gdb_datadir): Use file style.
12207
44f81a76
HD
122082020-01-03 Hannes Domani <ssbssa@yahoo.de>
12209
12210 * solib-target.c (struct lm_info_target):
12211 Change offsets to be a unique_xmalloc_ptr.
12212 (solib_target_relocate_section_addresses): Update.
12213
25057eb0
HD
122142020-01-03 Hannes Domani <ssbssa@yahoo.de>
12215
12216 * windows-nat.c (windows_clear_solib): Free so_list linked list.
12217
6e2118f5
BE
122182020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
12219
12220 * MAINTAINERS (Write After Approval): Add myself.
12221
8133c7dc
LM
122222020-01-02 Luis Machado <luis.machado@linaro.org>
12223
12224 * proc-service.c (get_ps_regcache): Remove reference to obsolete
12225 Cell BE architecture.
12226 * target.h (struct target_ops) <thread_architecture>: Likewise.
12227
48189bec
HD
122282020-01-01 Hannes Domani <ssbssa@yahoo.de>
12229
12230 * Makefile.in: Use INSTALL_PROGRAM_ENV.
12231
ead1063b
HD
122322020-01-01 Hannes Domani <ssbssa@yahoo.de>
12233
12234 * MAINTAINERS (Write After Approval): Add myself.
12235
e5d78223
JB
122362020-01-01 Joel Brobecker <brobecker@adacore.com>
12237
12238 * gdbarch.sh: Update copyright year range of generated files.
12239
b811d2c2
JB
122402020-01-01 Joel Brobecker <brobecker@adacore.com>
12241
12242 Update copyright year range in all GDB files.
12243
5f4def5c
JB
122442020-01-01 Joel Brobecker <brobecker@adacore.com>
12245
12246 * copyright.py: Convert to Python 3.
12247
51fd4002
JB
122482020-01-01 Joel Brobecker <brobecker@adacore.com>
12249
12250 * copyright.py: Adapt after move of gnulib directory from gdb
12251 directory to toplevel directory.
12252
5fb651f2
JB
122532020-01-01 Joel Brobecker <brobecker@adacore.com>
12254
12255 * copyright.py (main): Exit if run from the wrong directory.
12256
5dd8bf88
JB
122572020-01-01 Joel Brobecker <brobecker@adacore.com>
12258
12259 * top.c (print_gdb_version): Change copyright year to 2020.
12260
9f71dacb 122612020-01-01 Joel Brobecker <brobecker@adacore.com>
3d34df0a 12262
9f71dacb 12263 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
3d34df0a 12264
9f71dacb 12265For older changes see ChangeLog-2019.
c906108c
SS
12266\f
12267Local Variables:
12268mode: change-log
12269left-margin: 8
12270fill-column: 74
12271version-control: never
57da7796 12272coding: utf-8
c906108c 12273End: