Convert CORE_ADDR to Python using gdb_py_object_from_ulongest
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
b017825f
TT
12020-08-17 Tom Tromey <tromey@adacore.com>
2
3 * python/py-inferior.c (infpy_search_memory): Use
4 gdb_py_object_from_ulongest.
5 * python/py-infevents.c (create_inferior_call_event_object)
6 (create_memory_changed_event_object): Use
7 gdb_py_object_from_ulongest.
8 * python/py-linetable.c (ltpy_entry_get_pc): Use
9 gdb_py_object_from_ulongest.
10
7635cf79
SM
112020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
12
13 * loc.c (class symbol_needs_eval_context): Fix indentation.
14
f54be24b
SM
152020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
16
17 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
18 bool.
19
53d5a2a5
TV
202020-08-17 Tom de Vries <tdevries@suse.de>
21
22 PR gdb/26393
23 * gdbtypes.c (dump_dynamic_prop): New function.
24 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
25
547ce8f0
TV
262020-08-15 Tom de Vries <tdevries@suse.de>
27
28 PR backtrace/26390
29 * stack.c (print_frame_args): Temporarily set the selected
30 frame to FRAME while printing the frame's arguments.
31
6ea815e7
PFC
322020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
33
34 PR breakpoints/26385
35 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
36 Always clear watchpoint with PTRACE_SET_DEBUGREG.
37
6e562fa3
PFC
382020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
39
40 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
41 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
42 and >= to check return value instead of == -1 and != -1.
43
d369b608
SM
442020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
45
46 * utils.h (class gdb_argv) <as_array_view>: New method.
47 * utils.c (gdb_argv_as_array_view_test): New.
48 (_initialize_utils): Register selftest.
49 * maint.c (maintenance_selftest): Use the new method.
50
b31488a3
KR
512020-08-13 Kamil Rytarowski <n54@gmx.com>
52
53 * target.h (supports_dumpcore, dumpcore): New
54 function declarations.
55 * target.c (supports_dumpcore, dumpcore): New
56 functions.
57 * target-delegates.c: Rebuild.
58 * gcore.c (gcore_command): Use target_supports_dumpcore ()
59 and target_dumpcore ().
60
002a3166
AM
612020-08-13 Aaron Merey <amerey@redhat.com>
62
63 * debuginfod-support.c: Replace global variables with user_data.
64
ece5bc8a
SM
652020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
66
67 * maint.c (maintenance_selftest): Split args and pass array_view
68 to run_tests.
69
6d8a0a5e
LM
702020-08-12 Luis Machado <luis.machado@linaro.org>
71
72 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
73 type's length.
74 Use %s and pulongest to print the length.
75
7cf663a9
PA
762020-08-12 Pedro Alves <palves@redhat.com>
77
78 * NEWS: Move "Multi-target debugging support" item to the
79 "Changes since GDB 9" section.
80
27c7b875
PA
812020-08-12 Pedro Alves <palves@redhat.com>
82
83 PR gdb/26336
84 * progspace.c (program_space::remove_objfile): Invalidate the
85 frame cache.
86
1796a2a1
TV
872020-08-11 Tom de Vries <tdevries@suse.de>
88
89 * MAINTAINERS: Mark ms1 as deleted.
90
f8e3fe0d
LM
912020-08-10 Luis Machado <luis.machado@linaro.org>
92
93 PR gdb/26310
94
95 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
96 act accordingly.
97 (aarch64_analyze_prologue_test): Add more unit tests to exercise
98 movz/str/stur/stp skipping behavior.
99
cc308722
LM
1002020-08-10 Luis Machado <luis.machado@linaro.org>
101
102 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
103 struct user_sve_header instead of struct sve_context.
104
041d9819
SM
1052020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
106
107 * read.h (dwarf2_fetch_die_loc_sect_off,
108 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
109 `void *` parameter with function_view.
110 * read.c (dwarf2_fetch_die_loc_sect_off,
111 dwarf2_fetch_die_loc_cu_off): Likewise.
112 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
113 (per_cu_dwarf_call): Adjust.
114 (get_frame_address_in_block_wrapper): Remove.
115 (indirect_synthetic_pointer): Adjust.
116 (get_ax_pc): Remove.
117 (dwarf2_compile_expr_to_ax): Adjust.
118
38f8aa06
TV
1192020-08-08 Tom de Vries <tdevries@suse.de>
120
121 PR build/26344
122 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
123 constructor.
124 * regcache.c (get_thread_arch_aspace_regcache): Same.
125
a52b3ae2
TT
1262020-08-07 Tom Tromey <tromey@adacore.com>
127
128 * ravenscar-thread.c
129 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
130 New method.
131 (ravenscar_thread_target::wait): Check
132 runtime_initialized.
133 (ravenscar_thread_target::prepare_to_store)
134 (ravenscar_thread_target::stopped_by_sw_breakpoint)
135 (ravenscar_thread_target::stopped_by_hw_breakpoint)
136 (ravenscar_thread_target::stopped_by_watchpoint)
137 (ravenscar_thread_target::stopped_data_address)
138 (ravenscar_thread_target::core_of_thread): Use
139 scoped_restore_current_thread and
140 set_base_thread_from_ravenscar_task.
141
0e29517d
TT
1422020-08-07 Tom Tromey <tromey@adacore.com>
143
144 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
145
592f9bd7
TT
1462020-08-07 Tom Tromey <tromey@adacore.com>
147
148 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
149 update_inferior_ptid before update_thread_list.
150 (temporarily_change_regcache_ptid): New class.
151 (ravenscar_thread_target::fetch_registers)
152 (ravenscar_thread_target::store_registers)
153 (ravenscar_thread_target::prepare_to_store): Use base thread when
154 forwarding operation.
155
39e2018a
TT
1562020-08-07 Tom Tromey <tromey@adacore.com>
157
158 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
159 "is_pid" case.
160
2080266b
TT
1612020-08-07 Tom Tromey <tromey@adacore.com>
162
163 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
164 New methods.
165 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
166 first.
167 (ravenscar_thread_target::add_thread): Rename from
168 ravenscar_add_thread.
169 (ravenscar_thread_target::update_thread_list): Use a lambda.
170 (ravenscar_thread_target::xfer_partial): New method.
171
78c02f21
TT
1722020-08-07 Tom Tromey <tromey@adacore.com>
173
174 * ada-lang.h (ada_task_list_iterator_ftype): Now a
175 gdb::function_view.
176 (iterate_over_live_ada_tasks): Change type of argument.
177 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
178 of argument.
179
d5d833af
TT
1802020-08-07 Tom Tromey <tromey@adacore.com>
181
182 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
183 Remove.
184 (ravenscar_thread_target::extra_thread_info): Remove.
185 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
186 defer to target beneath for non-Ravenscar threads.
187
a8ac85bb
TT
1882020-08-07 Tom Tromey <tromey@adacore.com>
189
190 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
191 get_base_thread_from_ravenscar_task>: Now methods.
192 <m_cpu_map>: New member.
193 (ravenscar_thread_target::get_thread_base_cpu): Rename from
194 ravenscar_get_thread_base_cpu. Check m_cpu_map.
195 (ravenscar_thread_target::task_is_currently_active): Update.
196 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
197 Now a method.
198 (ravenscar_thread_target::add_active_thread): Put initial thread
199 into the m_cpu_map.
200
550ab58d
TT
2012020-08-07 Tom Tromey <tromey@adacore.com>
202
203 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
204 event_ptid.
205
e9546579
TT
2062020-08-07 Tom Tromey <tromey@adacore.com>
207
208 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
209 runtime_initialized.
210
3d4470e5
TT
2112020-08-07 Tom Tromey <tromey@adacore.com>
212
213 * ravenscar-thread.c (ravenscar_thread_target): Don't call
214 add_active_thread.
215 (ravenscar_thread_target::add_active_thread): Now public.
216 (ravenscar_inferior_created): Call add_active_thread after pushing
217 the target.
218
888bdb2b
SM
2192020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
220
221 * regcache.c (ptid_regcache_map): New type.
222 (target_ptid_regcache_map): New type.
223 (regcaches): Change type to target_ptid_regcache_map.
224 (get_thread_arch_aspace_regcache): Update to regcaches' new
225 type.
226 (regcache_thread_ptid_changed): Likewise.
227 (registers_changed_ptid): Likewise.
228 (regcaches_size): Likewise.
229 (regcaches_test): Update.
230 (regcache_thread_ptid_changed): Update.
231 * regcache.h (regcache_up): New type.
232 * gdbsupport/ptid.h (hash_ptid): New struct.
233
b161a60d
SM
2342020-08-07 Simon Marchi <simon.marchi@efficios.com>
235
236 * observable.h (thread_ptid_changed): Add parameter
237 `process_stratum_target *`.
238 * infrun.c (infrun_thread_ptid_changed): Add parameter
239 `process_stratum_target *` and use it.
240 (selftests): New namespace.
241 (infrun_thread_ptid_changed): New function.
242 (_initialize_infrun): Register selftest.
243 * regcache.c (regcache_thread_ptid_changed): Add parameter
244 `process_stratum_target *` and use it.
245 (regcache_thread_ptid_changed): New function.
246 (_initialize_regcache): Register selftest.
247 * thread.c (thread_change_ptid): Pass target to
248 thread_ptid_changed observable.
249
d2854d8d
CT
2502020-08-06 Caroline Tice <cmtice@google.com>
251
fe4c3d43
SM
252 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
253 (struct dwp_sections): Update field comments. Add loclists and
254 rnglists fields.
255 (struct virtual_v2_dwo_sections): Rename struct to
256 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
257 size & offset fields for loclists and rnglists.
258 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
259 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
260 skipping dummy type units.
261 (create_dwp_hash_table): Update the large comment above the function to
262 discuss Version 5 DWP files as well, with references. Update all the
263 version checks in the function to check for version 5 as well. Add new
264 section at the end to create dwp hash table for version 5.
265 (create_dwp_v2_section): Rename function to
266 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
267 Add V5 to error message text.
268 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
269 into calls to create_dwp_v2_or_v5_section.
270 (create_dwo_unit_in_dwp_v5): New function.
271 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
272 check for version2; add else clause to handle version 5.
273 (open_and_init_dwo_file): Add code to check dwarf version & only call
274 create_debug_types_hash_table (with sections.types) if version is not 5;
275 else call create_debug_type_hash_table, with sections.info.
276 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
277 version 5.
278 (dwarf2_locate_v5_dwp_sections): New function.
279 (open_and_init_dwp_file): Add else-if clause for version 5 to call
280 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
d2854d8d 281
159ed7d9
SM
2822020-08-06 Simon Marchi <simon.marchi@efficios.com>
283
284 * regcache.h (class regcache): Remove friend
285 registers_changed_ptid.
286 <regcache_thread_ptid_changed>: Remove.
287 <regcaches>: Remove.
288 * regcache.c (regcache::regcaches): Rename to...
289 (regcaches): ... this. Make static.
290 (get_thread_arch_aspace_regcache): Update.
291 (regcache::regcache_thread_ptid_changed): Rename to...
292 (regcache_thread_ptid_changed): ... this. Update.
293 (class regcache_access): Remove.
294 (regcaches_test): Update.
295 (_initialize_regcache): Update.
296 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
297 <forward_list>.
298
174981ae
SM
2992020-08-06 Simon Marchi <simon.marchi@efficios.com>
300
301 * regcache.h (class regcache) <current_regcache>: Rename to...
302 <regcaches>: ... this. Move doc here.
303 * regcache.c (regcache::current_regcache) Rename to...
304 (regcache::regcaches): ... this. Move doc to header.
305 (get_thread_arch_aspace_regcache): Update.
306 (regcache::regcache_thread_ptid_changed): Update.
307 (registers_changed_ptid): Update.
308 (class regcache_access) <current_regcache_size>: Rename to...
309 <regcaches_size>: ... this.
310 (current_regcache_test): Rename to...
311 (regcaches_test): ... this.
312 (_initialize_regcache): Update.
313
ed908db6
VC
3142020-08-06 Victor Collod <vcollod@nvidia.com>
315
316 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
317
b5582ab7
KB
3182020-08-05 Kevin Buettner <kevinb@redhat.com>
319
320 * corelow.c (core_target::build_file_mappings): Don't output
321 null pathname in warning.
322
ea946b86
SM
3232020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
324
325 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
326 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
327 gdb.dwarf2/dw2-single-line-discriminators.exp,
328 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
329
57d02173
TT
3302020-08-05 Tom Tromey <tromey@adacore.com>
331
332 PR rust/26197:
333 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
334 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
335 Fix off-by-one and type size errors in ordinary case.
336
5555c86d
TV
3372020-08-05 Tom de Vries <tdevries@suse.de>
338
339 * gdbtypes.c (type_not_allocated, type_not_associated): Use
340 "prop->const_val () == 0" instead of "prop->const_val () != 0".
341
97916bfe
SM
3422020-08-04 Simon Marchi <simon.marchi@efficios.com>
343
344 * frame.h (frame_id_p): Return bool.
345 (frame_id_artificial_p): Return bool.
346 (frame_id_eq): Return bool.
347 (has_stack_frames): Return bool.
348 (get_selected_frame): Fix typo in comment.
349 (get_frame_pc_if_available): Return bool.
350 (get_frame_address_in_block_if_available): Return bool.
351 (get_frame_func_if_available): Return bool.
352 (read_frame_register_unsigned): Return bool.
353 (get_frame_register_bytes): Return bool.
354 (safe_frame_unwind_memory): Return bool.
355 (deprecated_frame_register_read): Return bool.
356 (frame_unwinder_is): Return bool.
357 * frame.c (struct frame_info) <prev_arch::p>: Change type to
358 bool.
359 <this_id::p>: Likewise.
360 <prev_p>: Likewise.
361 (frame_stash_add): Return bool.
362 (get_frame_id): Use bool.
363 (frame_id_build_special) Use bool.
364 (frame_id_build_unavailable_stack): Use bool.
365 (frame_id_build): Use bool.
366 (frame_id_p): Return bool, use true/false instead of 1/0.
367 (frame_id_artificial_p): Likewise.
368 (frame_id_eq): Likewise.
369 (frame_id_inner): Likewise.
370 (get_frame_func_if_available): Likewise.
371 (read_frame_register_unsigned): Likewise.
372 (deprecated_frame_register_read): Likewise.
373 (get_frame_register_bytes): Likewise.
374 (has_stack_frames): Likewise.
375 (inside_main_func): Likewise.
376 (inside_entry_func): Likewise.
377 (get_frame_pc_if_available): Likewise.
378 (get_frame_address_in_block_if_available): Likewise.
379 (frame_unwinder_is): Likewise.
380 (safe_frame_unwind_memory): Likewise.
381 (frame_unwind_arch): Likewise.
382
fedfee88
SM
3832020-08-04 Simon Marchi <simon.marchi@efficios.com>
384
385 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
386 type to cached_copy_status.
387 (fprintf_frame): Adjust.
388 (get_frame_func_if_available): Adjust.
389 (frame_cleanup_after_sniffer): Adjust.
390
6cfa9b59
MW
3912020-08-04 Mark Wielaard <mark@klomp.org>
392
393 * MAINTAINERS (Write After Approval): Update email address.
394
66d6346b
SM
3952020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
396
397 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
398 dynamic_prop::const_val.
399
8a6d5e35
SM
4002020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
401
402 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
403 dynamic_prop::kind.
404
51d6067d
SM
4052020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
406
407 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
408
b26e2ae7
JM
4092020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
410
411 * configure.tgt: Set gdb_sim for bpf-*-* targets.
412
39791af2
JM
4132020-08-04 Weimin Pan <weimin.pan@oracle.com>
414 Jose E. Marchesi <jose.marchesi@oracle.com>
415
416 * configure.tgt: Add entry for bpf-*-*.
417 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
418 (ALLDEPFILES): Add bpf-tdep.c.
419 * bpf-tdep.c: New file.
420 * MAINTAINERS: Add bpf target and maintainer.
421 * NEWS: Mention the support for the new target.
422
521894aa
TV
4232020-08-04 Tom de Vries <tdevries@suse.de>
424
425 PR symtab/23270
426 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
427 Error.
428
5d6356e9
JB
4292020-08-03 John Baldwin <jhb@FreeBSD.org>
430
431 * syscalls/freebsd.xml: Regenerate.
432
0cf82b81
JB
4332020-08-03 John Baldwin <jhb@FreeBSD.org>
434
435 * syscalls/update-freebsd.sh: Fix usage and year range.
436
8f34b746
TV
4372020-08-03 Tom de Vries <tdevries@suse.de>
438
439 PR symtab/26333
440 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
441 DW_LNE_lo_user/DW_LNE_hi_user range.
442
5e500d33
SM
4432020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
444
445 PR ada/26318
446 * ada-lang.c (ada_modulus): Return 0 if property is not of const
447 kind.
448
78319c15
TBA
4492020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
450
451 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
452
4c55e970
TBA
4532020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
454
455 * breakpoint.c (set_breakpoint_condition): Update the condition
456 expressions after checking that the input condition string parses
457 successfully and does not contain junk at the end.
458
1e620590
TBA
4592020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
460
461 * breakpoint.c (set_breakpoint_condition): Update the
462 condition string after parsing the new condition successfully.
463
c8693053
RO
4642020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
465
466 * proc-api.c (_STRUCTURED_PROC): Don't define.
467 * proc-events.c: Likewise.
468 * proc-flags.c: Likewise.
469 * proc-why.c: Likewise.
470 * procfs.c: Likewise.
471
472 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
473 * configure, config.in: Regenerate.
474
5a99adb8
TV
4752020-07-30 Tom de Vries <tdevries@suse.de>
476
477 PR build/26320
478 * ui-style.h (struct ui_file_style::color): Wrap m_value and
479 m_red/m_green/m_blue in a union.
480
8ba83e91
TV
4812020-07-29 Tom de Vries <tdevries@suse.de>
482
483 PR tdep/26280
484 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
485
f75a0693
AB
4862020-07-28 Tom Tromey <tromey@adacore.com>
487
488 PR symtab/26270:
489 * symtab.h (find_pc_partial_function_sym): Declare.
490 * cli/cli-cmds.c (disassemble_command): Use
491 find_pc_partial_function_sym. Check asm_demangle.
492 * blockframe.c (cache_pc_function_sym): New global.
493 (cache_pc_function_name): Remove.
494 (clear_pc_function_cache): Update.
495 (find_pc_partial_function_sym): New function, from
496 find_pc_partial_function.
497 (find_pc_partial_function): Rewrite using
498 find_pc_partial_function_sym.
499
16f3242c
TT
5002020-07-28 Tom Tromey <tromey@adacore.com>
501
502 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
503 help. Add usage.
504
4888741a
TT
5052020-07-28 Tom Tromey <tromey@adacore.com>
506
507 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
508 <DW_OP_GNU_variable_value>: Cast to address type.
509
4d46f402
KR
5102020-07-28 Kamil Rytarowski <n54@gmx.com>
511
512 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
513 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
514 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
515 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
516 (nbsd_get_siginfo_type): New.
517 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
518 (_initialize_nbsd_tdep): New.
519
d70f978b
L
5202020-07-28 H.J. Lu <hongjiu.lu@intel.com>
521
522 PR binutils/26301
523 * configure: Regenerated.
524
377170fa
L
5252020-07-28 H.J. Lu <hongjiu.lu@intel.com>
526
527 PR binutils/26301
528 * configure: Regenerated.
529
43d5901d
AB
5302020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
531
532 * python/py-frame.c: Remove 'user-regs.h' include.
533 (frapy_read_register): Rewrite to make use of
534 gdbpy_parse_register_id.
535 * python/py-registers.c (gdbpy_parse_register_id): New function,
536 moved here from python/py-unwind.c. Updated the return type, and
537 also accepts register descriptor objects.
538 * python/py-unwind.c: Remove 'user-regs.h' include.
539 (pyuw_parse_register_id): Moved to python/py-registers.c.
540 (unwind_infopy_add_saved_register): Update to use
541 gdbpy_parse_register_id.
542 (pending_framepy_read_register): Likewise.
543 * python/python-internal.h (gdbpy_parse_register_id): Declare.
544
14fa8fb3
AB
5452020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
546
547 * python/py-registers.c: Add 'user-regs.h' include.
548 (register_descriptor_iter_find): New function.
549 (register_descriptor_iterator_object_methods): New static global
550 methods array.
551 (register_descriptor_iterator_object_type): Add pointer to methods
552 array.
553
ddce1758
JB
5542020-07-27 John Baldwin <jhb@FreeBSD.org>
555
556 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
557 for all architectures on FreeBSD 11.3 and later.
558
a4089f52
TT
5592020-07-27 Tom Tromey <tromey@adacore.com>
560
561 * gcore.h (load_corefile): Don't declare.
562
95420d30
TV
5632020-07-27 Tom de Vries <tdevries@suse.de>
564
565 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
566 * config.in: Regenerate.
567 * configure: Regenerate.
568
05a6b8c2
EZ
5692020-07-26 Eli Zaretskii <eliz@gnu.org>
570
571 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
572 ws2tcpip.h. When checking whether socklen_t type is defined, use
573 ws2tcpip.h if it is available and sys/socket.h isn't.
574 * configure: Regenerate.
575 * config.in: Regenerate.
576
e79eb02f
AB
5772020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
578
579 PR fortran/23051
580 PR fortran/26139
581 * valops.c (value_ind): Pass address to
582 readjust_indirect_value_type.
583 * value.c (readjust_indirect_value_type): Make parameter
584 non-const, and add extra address parameter. Resolve original type
585 before using it.
586 * value.h (readjust_indirect_value_type): Update function
587 signature and comment.
588
876518dd
TV
5892020-07-25 Tom de Vries <tdevries@suse.de>
590
591 PR symtab/26243
592 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
593 entries.
594
f6720b1c
AM
5952020-07-24 Aaron Merey <amerey@redhat.com>
596
597 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
598 * configure: Rebuild.
599
513487e1
KB
6002020-07-23 Kevin Buettner <kevinb@redhat.com>
601
602 PR corefiles/26294
603 * corelow.c (_initialize_corelow): Add period to help text
604 for "maintenance print core-file-backed-mappings".
605
e7bc9db8
PA
6062020-07-23 Pedro Alves <pedro@palves.net>
607
608 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
609 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
610 meanwhile.
611 * frame.c (frame_cache_generation, get_frame_cache_generation):
612 New.
613 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
614 (get_prev_frame_if_no_cycle): On exception, don't touch
615 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
616 * frame.h (get_frame_cache_generation): Declare.
617
90fcc466
TV
6182020-07-23 Tom de Vries <tdevries@suse.de>
619
620 PR tui/26282
621 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
622 New default constructor.
623
78344df7
AB
6242020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
625
626 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
627 exclude non-statement entries.
628
b089853a
KB
6292020-07-22 Kevin Buettner <kevinb@redhat.com>
630
631 * NEWS (New commands): Mention new command
632 "maintenance print core-file-backed-mappings".
633
09c2f5d4
KB
6342020-07-22 Kevin Buettner <kevinb@redhat.com>
635
636 * corelow.c (gdbcmd.h): Include.
637 (core_target::info_proc_mappings): New method.
638 (get_current_core_target): New function.
639 (maintenance_print_core_file_backed_mappings): New function.
640 (_initialize_corelow): Add core-file-backed-mappings to
641 "maint print" commands.
642
9c5ec5c2 6432020-07-22 Kevin Buettner <kevinb@redhat.com>
fe4c3d43 644
9c5ec5c2
KB
645 * linux-tdep.c (dump_note_entry_p): New function.
646 (linux_dump_mapping_p_ftype): New typedef.
647 (linux_find_memory_regions_full): Add new parameter,
648 should_dump_mapping_p.
649 (linux_find_memory_regions): Adjust call to
650 linux_find_memory_regions_full.
651 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
652 call to linux_find_memory_regions_full.
653
db082f59
KB
6542020-07-22 Kevin Buettner <kevinb@redhat.com>
655
656 * corelow.c (solist.h, unordered_map): Include.
657 (class core_target): Add field m_core_file_mappings and
658 method build_file_mappings.
659 (core_target::core_target): Call build_file_mappings.
660 (core_target::~core_target): Free memory associated with
661 m_core_file_mappings.
662 (core_target::build_file_mappings): New method.
663 (core_target::xfer_partial): Use m_core_file_mappings
664 for memory transfers.
665 * linux-tdep.c (linux_read_core_file_mappings): New
666 function.
667 (linux_core_info_proc_mappings): Rewrite to use
668 linux_read_core_file_mappings.
669 (linux_init_abi): Register linux_read_core_file_mappings.
670
7e183d27
KB
6712020-07-22 Kevin Buettner <kevinb@redhat.com>
672
673 * arch-utils.c (default_read_core_file_mappings): New function.
674 * arch-utils.c (default_read_core_file_mappings): Declare.
675 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
676 * gdbarch.h, gdbarch.c: Regenerate.
677
2735d421
KB
6782020-07-22 Kevin Buettner <kevinb@redhat.com>
679
680 PR corefiles/25631
681 * corelow.c (core_target:xfer_partial): Revise
682 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
683 case after first checking the stratum beneath the core
684 target.
685 (has_all_memory): Return true.
686 * target.c (raw_memory_xfer_partial): Revise comment
687 regarding use of has_all_memory.
688
e56cb451
KB
6892020-07-22 Kevin Buettner <kevinb@redhat.com>
690
691 * exec.h (section_table_xfer_memory): Revise declaration,
692 replacing section name parameter with an optional callback
693 predicate.
694 * exec.c (section_table_xfer_memory): Likewise.
695 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
696 of section_table_xfer_memory.
697
32fa152e
TT
6982020-07-22 Tom Tromey <tromey@adacore.com>
699
700 * mi/mi-cmd-stack.c (list_args_or_locals): Use
701 lookup_symbol_search_name.
702
a67a1c41
AB
7032020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
704
705 * python/py-registers.c (gdbpy_register_object_data_init): Remove
706 redundant local variable.
707 (gdbpy_get_register_descriptor): Extract descriptor vector as a
708 reference, not pointer, update code accordingly.
709
a7b4ff4f
SM
7102020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
711 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
712
713 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
714 * jit.c (jit_breakpoint_re_set_internal): Use the
715 `skip_jit_symbol_lookup` field.
716
2340e834
SM
7172020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
718 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
719
720 * jit.c (jit_read_descriptor): Define the descriptor address once,
721 use twice.
722 (jit_breakpoint_deleted): Move the declaration of the loop variable
723 `iter` into the loop header.
724 (jit_breakpoint_re_set_internal): Move the declaration of the local
725 variable `objf_data` to the first point of definition.
726 (jit_event_handler): Move the declaration of local variables
727 `code_entry`, `entry_addr`, and `objf` to their first point of use.
728 Rename `objf` to `jited`.
729
c1072906
SM
7302020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
731
732 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
733 Remove.
734 * jit.c (get_jiter_objfile_data): Update.
735
c8474dc3
TBA
7362020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
737 Simon Marchi <simon.marchi@polymtl.ca>
738
739 * jit.c (struct jit_program_space_data): Remove.
740 (jit_program_space_key): Remove.
741 (jiter_objfile_data::~jiter_objfile_data): Remove program space
742 stuff.
743 (get_jit_program_space_data): Remove.
744 (jit_breakpoint_deleted): Iterate on all of the program space's
745 objfiles.
746 (jit_inferior_init): Likewise.
747 (jit_breakpoint_re_set_internal): Likewise. Also change return
748 type to void.
749 (jit_breakpoint_re_set): Pass current_program_space to
750 jit_breakpoint_re_set_internal.
751
77208eb7
SM
7522020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
753
754 * jit.h (struct jiter_objfile_data) <cached_code_address,
755 jit_breakpoint>: Move to here from ...
756 * jit.c (jit_program_space_data): ... here.
757 (jiter_objfile_data::~jiter_objfile_data): Update.
758 (jit_breakpoint_deleted): Update.
759 (jit_breakpoint_re_set_internal): Update.
760
8c1c720f
SM
7612020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
762
763 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
764 checks.
765 (jit_read_descriptor): Remove NULL check.
766 (jit_event_handler): Add an assertion.
767
0e74a041
SM
7682020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
769
770 * jit.h (struct jit_objfile_data): Split into...
771 (struct jiter_objfile_data): ... this ...
772 (struct jited_objfile_data): ... and this.
773 * objfiles.h (struct objfile) <jit_data>: Remove.
774 <jiter_data, jited_data>: New fields.
775 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
776 (jiter_objfile_data::~jiter_objfile_data): ... this.
777 (get_jit_objfile_data): Rename to ...
778 (get_jiter_objfile_data): ... this.
779 (add_objfile_entry): Update.
780 (jit_read_descriptor): Use get_jiter_objfile_data.
781 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
782 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
783 (jit_inferior_exit_hook): Use objfile's jited_data field.
784
238b5c9f
SM
7852020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
786
787 * jit.h: Forward-declare `struct minimal_symbol`.
788 (struct jit_objfile_data): Migrate to here from jit.c; also add a
789 constructor, destructor, and an objfile* field.
790 * jit.c (jit_objfile_data): Remove.
791 (struct jit_objfile_data): Migrate from here to jit.h.
792 (jit_objfile_data::~jit_objfile_data): New destructor
793 implementation with code moved from free_objfile_data.
794 (free_objfile_data): Delete.
795 (get_jit_objfile_data): Update to use the jit_data field of objfile.
796 (jit_find_objf_with_entry_addr): Ditto.
797 (jit_inferior_exit_hook): Ditto.
798 (_initialize_jit): Remove the call to
799 register_objfile_data_with_cleanup.
800 * objfiles.h (struct objfile) <jit_data>: New field.
801
fe053b9e
TBA
8022020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
803
804 * jit.h: Forward-declare `struct objfile`.
805 (jit_event_handler): Add a second parameter, the JITer objfile.
806 * jit.c (jit_read_descriptor): Change the signature to take the
807 JITer objfile as an argument instead of the jit_program_space_data.
808 (jit_inferior_init): Update the call to jit_read_descriptor.
809 (jit_event_handler): Use the new JITer objfile argument when calling
810 jit_read_descriptor.
811 * breakpoint.c (handle_jit_event): Update the call to
812 jit_event_handler to pass the JITer objfile.
813
4cec0c66
JB
8142020-07-21 John Baldwin <jhb@FreeBSD.org>
815
816 * gdbarch.c: Regenerate.
817 * gdbarch.h: Regenerate.
818 * gdbarch.sh (handle_segmentation_fault): Remove method.
819 * infrun.c (handle_segmentation_fault): Remove.
820 (print_signal_received_reason): Remove call to
821 handle_segmentation_fault.
822
0e42f66a
JB
8232020-07-21 John Baldwin <jhb@FreeBSD.org>
824
825 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
826 Rename to sparc64_linux_report_signal_info and add siggnal
827 argument.
828 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
829 instead of sparc64_linux_handle_segmentation_fault.
830
77bdfeb2
JB
8312020-07-21 John Baldwin <jhb@FreeBSD.org>
832
833 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
834 i386_linux_report_signal_info instead of
835 i386_linux_handle_segmentation_fault.
836 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
837 to i386_linux_report_signal_info and add siggnal argument.
838 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
839 of i386_linux_handle_segmentation_fault.
840 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
841 to i386_linux_report_signal_info and add siggnal argument.
842
ad97bfc5
JB
8432020-07-21 John Baldwin <jhb@FreeBSD.org>
844
845 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
846 hook if present.
847
272bb05c
JB
8482020-07-21 John Baldwin <jhb@FreeBSD.org>
849
850 * gdbarch.c: Regenerate.
851 * gdbarch.h: Regenerate.
852 * gdbarch.sh (report_signal_info): New method.
853 * infrun.c (print_signal_received_reason): Invoke gdbarch
854 report_signal_info hook if present.
855
baf8791e
AB
8562020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
857
858 * python/py-registers.c : Add 'unordered_map' include.
859 (gdbpy_new_reggroup): Renamed to...
860 (gdbpy_get_reggroup): ...this. Update to only create register
861 group descriptors when needed.
862 (gdbpy_reggroup_iter_next): Update.
863
f7306dac
AB
8642020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
865
866 * python/py-registers.c (gdbpy_register_object_data): New static
867 global.
868 (gdbpy_register_object_data_init): New function.
869 (gdbpy_new_register_descriptor): Renamed to...
870 (gdbpy_get_register_descriptor): ...this, and update to reuse
871 existing register descriptors where possible.
872 (gdbpy_register_descriptor_iter_next): Update.
873 (gdbpy_initialize_registers): Register new gdbarch data.
874
05c309a8
SM
8752020-07-21 Simon Marchi <simon.marchi@efficios.com>
876
877 * linux-nat.c (stopped_pids): Make static.
878
d1fd641e
SM
8792020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
880
881 PR ada/26235
882 * gdbtypes.c (ada_discrete_type_low_bound,
883 ada_discrete_type_high_bound): Handle undefined bounds.
884
1de14d77
KR
8852020-07-21 Kamil Rytarowski <n54@gmx.com>
886
887 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
888 declaration.
889 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
890 function.
891
ed810cc7
JB
8922020-07-20 John Baldwin <jhb@FreeBSD.org>
893
894 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
895 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
896 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
897 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
898 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
899 method.
900
ae5369e7
LC
9012020-07-20 Ludovic Courtès <ludo@gnu.org>
902
903 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
904 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
905 which are deprecated in Guile 3.0.
906 * configure.ac (try_guile_versions): Add "guile-3.0".
907 * configure (try_guile_versions): Regenerate.
908 * NEWS: Update entry.
909
68cf161c
LC
9102020-07-20 Ludovic Courtès <ludo@gnu.org>
911 Doug Evans <dje@google.com>
912
913 PR gdb/21104
914 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
915 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
916 USING_GUILE_BEFORE_2_2.
917 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
918 Change type to 'scm_t_port_type *'.
919 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
920 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
921 parameter and honor it. Update callers.
922 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
923 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
924 functions.
925 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
926 USING_GUILE_BEFORE_2_2.
927 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
928 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
929 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
930 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
931 and 'SCM_PORT_TYPE'.
932 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
933 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
934 (gdbscm_memory_port_read, gdbscm_memory_port_write)
935 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
936 [!USING_GUILE_BEFORE_2_2]: New functions.
937 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
938 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
939 'gdbscm_memory_port_read'.
940 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
941 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
942 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
943 function.
944 (ioscm_init_memory_port): Remove.
945 (ioscm_init_memory_port_stream): New function
946 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
947 function.
948 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
949 Return scm_from_uint (0).
950 (gdbscm_set_memory_port_read_buffer_size_x)
951 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
952 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
953 Return scm_from_uint (0).
954 (gdbscm_set_memory_port_write_buffer_size_x)
955 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
956 * configure.ac (try_guile_versions): Add "guile-2.2".
957 * configure: Regenerate.
958 * NEWS: Add entry.
959
aee91db3
TT
9602020-07-18 Tom Tromey <tom@tromey.com>
961
962 * linux-nat.c (linux_multi_process): Remove.
963 (linux_nat_target::supports_multi_process): Return true.
964
0e267416
AB
9652020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
966
967 * arch/riscv.c (riscv_tdesc_cache): Change map type.
968 (riscv_lookup_target_description): Return pointer out of
969 unique_ptr.
970 * target-descriptions.c (allocate_target_description): Add
971 comment.
972 (target_desc_deleter::operator()): Likewise.
973 * target-descriptions.h (struct target_desc_deleter): Moved to
974 gdbsupport/tdesc.h.
975 (target_desc_up): Likewise.
976
f80c8ec4
TT
9772020-07-17 Tom Tromey <tromey@adacore.com>
978
979 * linux-nat.c (linux_nat_target::supports_non_stop)
980 (linux_nat_target::always_non_stop_p): Use "true".
981 (linux_nat_target::supports_disable_randomization): Use "true" and
982 "false".
983
d0ce17d8
CT
9842020-07-16 Caroline Tice <cmtice@google.com>
985
986 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
987 (RNGLIST_HEADER_SIZE64): New constant definition.
988 (struct dwop_section_names): Add rnglists_dwo.
989 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
990 (struct loclist_header): Rename to 'loclists_rnglists_header'.
991 (struct dwo_sections): Add rnglists field.
992 (read_attribut_reprocess): Add tag parameter.
993 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
994 (cu_debug_rnglists_section): New function (decl & definition).
995 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
996 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
997 die whose range is being checked; get rnglist section from
998 cu_debug_rnglists_section, to get from either objfile or dwo file as
999 appropriate. Add cases for DW_RLE_base_addressx,
1000 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
1001 the base address to DW_RLE_offset_pairs (not to all ranges), moving
1002 test inside if-condition and updating complaint message.
1003 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
1004 dwarf2_rnglists_process.
1005 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
1006 dwarf2_ranges_process.
1007 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
1008 need_ranges_base and update comment appropriately. Also pass die tag
1009 to dwarf2_ranges_read.
1010 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
1011 need_ranges_base and update comment appropriately. Also pass die tag
1012 to dwarf2_ranges_process.
1013 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
1014 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
1015 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
1016 need_ranges_base and update comment appropriately. Also pass die tag
1017 to read_attribute_reprocess and dwarf2_ranges_read.
1018 (read_loclist_header): Rename function to read_loclists_rnglists_header,
1019 and update function comment appropriately.
1020 (read_loclist_index): Call read_loclists_rnglists_header instead of
1021 read_loclist_header.
1022 (read_rnglist_index): New function.
1023 (read_attribute_reprocess): Add tag parameter. Add code for
1024 DW_FORM_rnglistx, passing tag to read_rnglist_index.
1025 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
1026
3dcc261c
AB
10272020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
1028
1029 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
1030 being resolved.
1031
ccb9eba6
AB
10322020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
1033
1034 * arch-utils.c (show_architecture): Update formatting of messages.
1035
cf88be68
SM
10362020-07-12 Simon Marchi <simon.marchi@efficios.com>
1037
1038 * gdbtypes.h (struct type) <bounds>: Handle array and string
1039 types.
1040 * ada-lang.c (assign_aggregate): Use type::bounds on
1041 array/string type.
1042 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
1043 * c-varobj.c (c_number_of_children): Likewise.
1044 (c_describe_child): Likewise.
1045 * eval.c (evaluate_subexp_for_sizeof): Likewise.
1046 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
1047 (f_type_print_base): Likewise.
1048 * f-valprint.c (f77_array_offset_tbl): Likewise.
1049 (f77_get_upperbound): Likewise.
1050 (f77_print_array_1): Likewise.
1051 * guile/scm-type.c (gdbscm_type_range): Likewise.
1052 * m2-typeprint.c (m2_array): Likewise.
1053 (m2_is_long_set_of_type): Likewise.
1054 * m2-valprint.c (get_long_set_bounds): Likewise.
1055 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
1056 * python/py-type.c (typy_range): Likewise.
1057 * rust-lang.c (rust_internal_print_type): Likewise.
1058 * type-stack.c (type_stack::follow_types): Likewise.
1059 * valarith.c (value_subscripted_rvalue): Likewise.
1060 * valops.c (value_cast): Likewise.
1061
509971ae
SM
10622020-07-12 Simon Marchi <simon.marchi@efficios.com>
1063
1064 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
1065 callers to use the equivalent accessor methods.
1066
107406b7
SM
10672020-07-12 Simon Marchi <simon.marchi@efficios.com>
1068
1069 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
1070 (struct type) <bit_stride>: New method.
1071 (TYPE_BIT_STRIDE): Remove.
1072 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
1073
bb789949
SM
10742020-07-12 Simon Marchi <simon.marchi@efficios.com>
1075
1076 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
1077 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
1078 callers to use the equivalent accessor methods instead.
1079
39498edb
SM
10802020-07-12 Simon Marchi <simon.marchi@efficios.com>
1081
1082 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
1083 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
1084 callers to use the equivalent accessor methods instead.
1085
3b606f38
SM
10862020-07-12 Simon Marchi <simon.marchi@efficios.com>
1087
1088 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
1089 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
1090 to use dynamic_prop::kind.
1091
064d9cb9
SM
10922020-07-12 Simon Marchi <simon.marchi@efficios.com>
1093
1094 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
1095 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
1096 to get the bound property's kind and check against
1097 PROP_UNDEFINED.
1098
5537ddd0
SM
10992020-07-12 Simon Marchi <simon.marchi@efficios.com>
1100
1101 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
1102 all callers to use type::range_bounds followed by
1103 dynamic_prop::{low,high}.
1104
8c2e4e06
SM
11052020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
1106
1107 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
1108 const_val, set_const_val, baton, set_locexpr, set_loclist,
1109 set_addr_offset, variant_parts, set_variant_parts,
1110 original_type, set_original_type>: New methods.
1111 <kind>: Rename to...
1112 <m_kind>: ... this. Update all users to use the new methods
1113 instead.
1114 <data>: Rename to...
1115 <m_data>: ... this. Update all users to use the new methods
1116 instead.
1117
7c6f2712
SM
11182020-07-12 Simon Marchi <simon.marchi@efficios.com>
1119
1120 * gdbtypes.c (get_discrete_bounds): Return failure if
1121 the range type's bounds are not both defined and constant
1122 values.
1123 (get_array_bounds): Update comment. Remove undefined bound check.
1124
599088e3
SM
11252020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
1126
1127 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
1128 the type::bounds method directly.
1129
c4dfcb36
SM
11302020-07-12 Simon Marchi <simon.marchi@efficios.com>
1131
1132 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
1133 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
1134 are used to set the range type's bounds to use set_bounds.
1135
0a278aa7
PW
11362020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1137
1138 * exec.c (_initialize_exec): Update exec-file-mismatch help.
1139
cce20f10
PA
11402020-07-10 Pedro Alves <pedro@palves.net>
1141
1142 * gdbthread.h (inferior_ref): Define.
1143 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
1144 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
1145 * thread.c
1146 (scoped_restore_current_thread::restore):
1147 Adjust to gdb::ref_ptr.
1148 (scoped_restore_current_thread::~scoped_restore_current_thread):
1149 Remove manual decref handling.
1150 (scoped_restore_current_thread::scoped_restore_current_thread):
1151 Adjust to use
1152 inferior_ref::new_reference/thread_info_ref::new_reference.
1153 Incref the thread before calling get_frame_id instead of after.
1154 Let TARGET_CLOSE_ERROR propagate.
1155
6d7aa592
PA
11562020-07-10 Pedro Alves <pedro@palves.net>
1157
1158 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
1159 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
1160 NOT_AVAILABLE_ERROR.
1161 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
1162 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
1163
b3e3a4c1
SM
11642020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
1165 Pedro Alves <pedro@palves.net>
1166
1167 PR gdb/26199
1168 * infrun.c (threads_are_resumed_pending_p): Delete.
1169 (do_target_wait): Remove threads_are_executing and
1170 threads_are_resumed_pending_p checks from the inferior_matches
1171 lambda. Update comments.
1172
d6cc5d98
PA
11732020-07-10 Pedro Alves <pedro@palves.net>
1174
1175 PR gdb/26199
1176 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
1177 executing threads.
1178
7d3badc6
PA
11792020-07-10 Pedro Alves <pedro@palves.net>
1180
1181 PR gdb/26199
1182 * infrun.c (handle_no_resumed): Handle multiple targets.
1183
42bd97a6
PA
11842020-07-10 Pedro Alves <pedro@palves.net>
1185
1186 PR gdb/26199
1187 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
1188 target_is_async_p.
1189
43667cc6
PA
11902020-07-10 Pedro Alves <pedro@palves.net>
1191
1192 PR gdb/26199
1193 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
1194 threads, not all threads.
1195
96118d11
PA
11962020-07-10 Pedro Alves <pedro@palves.net>
1197
1198 PR gdb/26199
1199 * remote.c (remote_target::open_1): Pass remote target pointer as
1200 data to create_async_event_handler.
1201 (remote_async_inferior_event_handler): Mark async event handler
1202 before returning if the remote target still has either pending
1203 events or unacknowledged notifications.
1204
54904d81
JB
12052020-07-10 John Baldwin <jhb@FreeBSD.org>
1206
1207 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
1208 declaration.
1209 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
1210 function.
1211
f37e5866
JB
12122020-07-09 John Baldwin <jhb@FreeBSD.org>
1213
1214 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
1215 inferior_ptid.
1216
fc238d4a
JB
12172020-07-09 John Baldwin <jhb@FreeBSD.org>
1218
1219 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
1220 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
1221 AT_FREEBSD_PS_STRINGS.
1222
6e2469ff
HD
12232020-07-08 Hannes Domani <ssbssa@yahoo.de>
1224
1225 * auto-load.c (auto_load_objfile_script_1): Convert drive part
1226 of debugfile path on Windows.
1227
d1076c41
JB
12282020-07-08 John Baldwin <jhb@FreeBSD.org>
1229
1230 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
1231 argument to 'data'.
1232
15f3b077
TT
12332020-07-08 Tom Tromey <tromey@adacore.com>
1234
1235 * ada-lang.c (ada_exception_message_1): Use read_memory.
1236
9fc501fd
AB
12372020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1238
1239 PR python/22748
1240 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
1241 special handling for inline frames.
1242 * findvar.c (value_of_register_lazy): Skip inline frames when
1243 creating lazy register values.
1244 * frame.c (frame_id_computed_p): Delete definition.
1245 * frame.h (frame_id_computed_p): Delete declaration.
1246
64cb3757
AB
12472020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1248
1249 * NEWS: Mention additions to Python API.
1250 * python/py-arch.c (archpy_register_groups): New function.
1251 (arch_object_methods): Add 'register_groups' method.
1252 * python/py-registers.c (reggroup_iterator_object): New struct.
1253 (reggroup_object): New struct.
1254 (gdbpy_new_reggroup): New function.
1255 (gdbpy_reggroup_to_string): New function.
1256 (gdbpy_reggroup_name): New function.
1257 (gdbpy_reggroup_iter): New function.
1258 (gdbpy_reggroup_iter_next): New function.
1259 (gdbpy_new_reggroup_iterator): New function
1260 (gdbpy_initialize_registers): Register new types.
1261 (reggroup_iterator_object_type): Define new Python type.
1262 (gdbpy_reggroup_getset): New static global.
1263 (reggroup_object_type): Define new Python type.
1264 * python/python-internal.h
1265
0f767f94
AB
12662020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1267
1268 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
1269 * python/py-arch.c (archpy_registers): New function.
1270 (arch_object_methods): Add 'registers' method.
1271 * python/py-registers.c: New file.
1272 * python/python-internal.h
1273 (gdbpy_new_register_descriptor_iterator): Declare.
1274 (gdbpy_initialize_registers): Declare.
1275 * python/python.c (do_start_initialization): Call
1276 gdbpy_initialize_registers.
1277 * NEWS: Mention additions to the Python API.
1278
87dbc774
AB
12792020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1280
1281 * NEWS: Mention new Python API method.
1282 * python/py-unwind.c (pending_framepy_architecture): New function.
1283 (pending_frame_object_methods): Add architecture method.
1284
3bc98c0c
AB
12852020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1286
1287 * gdbarch.c: Regenerate.
1288 * gdbarch.h: Regenerate.
1289 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
1290 (gdbarch_data): Use internal_error for the case where
1291 deprecated_set_gdbarch_data was originally needed.
1292 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
1293 and use passed in obstack.
1294 (libunwind_frame_set_descr): Should no longer get back NULL from
1295 gdbarch_data.
1296 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
1297 type.
1298 * user-regs.c (user_regs_init): Update parameters, and use passed
1299 in obstack.
1300 (user_reg_add): Should no longer get back NULL from gdbarch_data.
1301 (_initialize_user_regs): Register as a pre-init gdbarch data type.
1302
d8cc8af6
TV
13032020-07-06 Tom de Vries <tdevries@suse.de>
1304
1305 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
1306 End-Of-Sequence in lte_is_less_than.
1307 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
1308 "gdb: Don't reorder line table entries too much when sorting".
1309
947f7597
TV
13102020-07-06 Tom de Vries <tdevries@suse.de>
1311
1312 PR tui/26205
1313 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
1314
1e7c1b22
TV
13152020-07-05 Tom de Vries <tdevries@suse.de>
1316
1317 PR build/26187
1318 * inferior.h (struct infcall_suspend_state_deleter): If available, use
1319 std::uncaught_exceptions instead of deprecated
1320 std::uncaught_exception.
1321
a36158ec
SM
13222020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
1323
1324 * macroexp.h (macro_stringify): Return
1325 gdb::unique_xmalloc_ptr<char>.
1326 * macroexp.c (macro_stringify): Likewise.
1327 * macrotab.c (fixup_definition): Update.
1328
14d960c8
SM
13292020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
1330
1331 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
1332 (lex_one_token): Update.
1333 * macroexp.c (struct macro_buffer) <release>: Return
1334 gdb::unique_xmalloc_ptr<char>.
1335 (macro_stringify): Update.
1336 (macro_expand): Update.
1337 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
1338 * macroexp.h (macro_expand_next): Likewise.
1339
211d5b1c
SM
13402020-07-02 Simon Marchi <simon.marchi@efficios.com>
1341
1342 * macroexp.h (macro_lookup_ftype): Remove.
1343 (macro_expand, macro_expand_once, macro_expand_next): Remove
1344 lookup function parameters, add scope parameter.
1345 * macroexp.c (scan, substitute_args, expand, maybe_expand,
1346 macro_expand, macro_expand_once, macro_expand_next): Likewise.
1347 * macroscope.h (standard_macro_lookup): Change parameter type
1348 to macro_scope.
1349 * macroscope.c (standard_macro_lookup): Likewise.
1350 * c-exp.y (lex_one_token): Update.
1351 * macrocmd.c (macro_expand_command): Likewise.
1352 (macro_expand_once_command): Likewise.
1353
b1a35af2
SM
13542020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
1355
1356 * inf-loop.c (inferior_event_handler): Remove client_data param.
1357 * inf-loop.h (inferior_event_handler): Likewise.
1358 * infcmd.c (step_1): Adjust.
1359 * infrun.c (proceed): Adjust.
1360 (fetch_inferior_event): Remove client_data param.
1361 (infrun_async_inferior_event_handler): Adjust.
1362 * infrun.h (fetch_inferior_event): Remove `void *` param.
1363 * linux-nat.c (handle_target_event): Adjust.
1364 * record-btrace.c (record_btrace_handle_async_inferior_event):
1365 Adjust.
1366 * record-full.c (record_full_async_inferior_event_handler):
1367 Adjust.
1368 * remote.c (remote_async_inferior_event_handler): Adjust.
1369
1cdf9e33
TT
13702020-07-01 Tom Tromey <tom@tromey.com>
1371
1372 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
1373 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
1374
32c1e210
TT
13752020-07-01 Tom Tromey <tom@tromey.com>
1376
1377 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
1378 tui_gen_win_info.
1379 (tui_win_info::make_window): Merge with
1380 tui_gen_win_info::make_window.
1381 (tui_win_info::make_visible): Move from tui_gen_win_info.
1382 * tui/tui-win.c (tui_win_info::max_width): Move from
1383 tui_gen_win_info.
1384 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
1385 type.
1386 <window_factory>: Likewise.
1387 * tui/tui-layout.c (tui_win_info::resize): Move from
1388 tui_gen_win_info.
1389 (make_standard_window): Change return type.
1390 (get_locator_window, tui_get_window_by_name): Likewise.
1391 (tui_layout_window::apply): Remove a cast.
1392 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
1393 (struct tui_win_info): Merge with tui_gen_win_info.
1394 (struct tui_gen_win_info): Remove.
1395
a30cb6da
TT
13962020-07-01 Tom Tromey <tom@tromey.com>
1397
1398 * tui/tui-stack.h (struct tui_locator_window): Derive from
1399 tui_win_info.
1400 <do_scroll_horizontal, do_scroll_vertical>: New methods.
1401 <can_box>: New method.
1402
1eb2161f
TT
14032020-07-01 Tom Tromey <tom@tromey.com>
1404
1405 * tui/tui-stack.h (struct tui_locator_window): Remove body.
1406
7134f2eb
TT
14072020-07-01 Tom Tromey <tom@tromey.com>
1408
1409 * tui/tui-regs.c (tui_data_window::display_registers_from)
1410 (tui_data_window::display_registers_from)
1411 (tui_data_window::first_data_item_displayed)
1412 (tui_data_window::delete_data_content_windows): Update.
1413 (tui_data_window::refresh_window, tui_data_window::no_refresh):
1414 Remove.
1415 (tui_data_window::check_register_values): Update.
1416 (tui_data_item_window::rerender): Add parameters. Update.
1417 (tui_data_item_window::refresh_window): Remove.
1418 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
1419 virtual.
1420 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
1421 tui_gen_win_info.
1422 <refresh_window, max_height, min_height>: Remove.
1423 <rerender>: Add parameters.
1424 <x, y, visible>: New members.
1425 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
1426 <m_item_width>: New member.
1427
22b7b041
TT
14282020-07-01 Tom Tromey <tom@tromey.com>
1429
1430 * tui/tui-regs.c (tui_data_window::show_register_group)
1431 (tui_data_window::check_register_values): Update.
1432 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
1433 from item_no.
1434
c9753adb
TT
14352020-07-01 Tom Tromey <tom@tromey.com>
1436
1437 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
1438 useless "if".
1439
9ab26b4a
TT
14402020-07-01 Tom Tromey <tom@tromey.com>
1441
1442 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
1443 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
1444
e555083f
TT
14452020-07-01 Tom Tromey <tom@tromey.com>
1446
1447 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
1448 * tui/tui-winsource.h (enum tui_line_or_address_kind)
1449 (struct tui_line_or_address): Move from tui-data.h.
1450 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
1451 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
1452 (tui_cmd_window, tui_source_window_base, tui_source_window)
1453 (tui_disasm_window): Don't declare.
1454 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
1455 to tui-winsource.h.
1456 (SINGLE_KEY): Move to tui-stack.c.
1457
7a02bab7
TT
14582020-07-01 Tom Tromey <tom@tromey.com>
1459
1460 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
1461 std::string.
1462 * tui/tui-regs.c (class tab_expansion_file): New.
1463 (tab_expansion_file::write): New method.
1464 (tui_register_format): Change return type. Use
1465 tab_expansion_file.
1466 (tui_get_register, tui_data_window::display_registers_from)
1467 (tui_data_item_window::rerender): Update.
1468 * tui/tui-io.h (tui_expand_tabs): Don't declare.
1469 * tui/tui-io.c (tui_expand_tabs): Remove.
1470
ea68593b
TT
14712020-07-01 Tom Tromey <tom@tromey.com>
1472
1473 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
1474
a8caed5d
FS
14752020-07-01 Fangrui Song <maskray@google.com>
1476
1477 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
1478
9cdf9820
AKS
14792020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
1480
1481 * dwarf2/read.c (set_die_type): Removed conditions to restrict
1482 forms for DW_AT_associated and DW_AT_allocated attributes,
1483 which is already checked in function attr_to_dynamic_prop.
1484
a1520ad8
TT
14852020-06-30 Tom Tromey <tromey@adacore.com>
1486
1487 * dwarf2/read.c (quirk_rust_enum): Correctly call
1488 alloc_rust_variant for default-less enum.
1489
5ac58899
TT
14902020-06-30 Tom Tromey <tromey@adacore.com>
1491
1492 PR build/26183:
1493 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
1494 gdb::to_string.
1495
19b187a9
SM
14962020-06-29 Simon Marchi <simon.marchi@efficios.com>
1497
1498 * gdbarch.sh (displaced_step_copy_insn): Update doc.
1499 * gdbarch.h: Re-generate.
1500
cd4c4c07
TT
15012020-06-28 Tom Tromey <tom@tromey.com>
1502
1503 * command.h (cmd_types): Remove.
1504 (cmd_type): Don't declare.
1505 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
1506 typedef.
1507 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
1508 * cli/cli-decode.c (cmd_type): Remove.
1509
05779d57
PA
15102020-06-27 Pedro Alves <palves@redhat.com>
1511
1512 * fork-child.c (prefork_hook): Adjust.
1513 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
1514 Delete.
1515 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
1516 * inferior.c (inferior::set_tty, inferior::tty): New methods.
1517 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
1518 Remove declarations.
1519 (struct inferior) <set_tty, tty>: New methods.
1520 (struct inferior) <terminal>: Rename to ...
1521 (struct inferior) <m_terminal>: ... this and make private.
1522 * main.c (captured_main_1): Adjust.
1523 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
1524 (mi_cmd_inferior_tty_show): Adjust.
1525 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
1526 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
1527
1776e3e5
NA
15282020-06-26 Nick Alcock <nick.alcock@oracle.com>
1529
1530 * configure.ac: Add --enable-libctf: handle --disable-static
1531 properly.
1532 * acinclude.m4: sinclude ../config/enable.m4.
1533 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
1534 (LIBCTF): Substitute in.
1535 (CTF_DEPS): New, likewise.
1536 (CLIBS): libctf needs symbols from libbfd: move earlier.
1537 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
1538 flags.
1539 * ctfread.c: Surround in ENABLE_LIBCTF.
1540 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
1541 * configure: Regenerate.
1542 * config.in: Likewise.
1543
58373b80
SM
15442020-06-25 Simon Marchi <simon.marchi@efficios.com>
1545
1546 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
1547
277474ee
SM
15482020-06-25 Simon Marchi <simon.marchi@efficios.com>
1549
1550 * inferior.h (struct inferior) <terminal>: Change type to
1551 gdb::unique_xmalloc_ptr<char>.
1552 * inferior.c (inferior::~inferior): Don't free inf->terminal.
1553 * infcmd.c (set_inferior_io_terminal): Don't free terminal
1554 field, adjust to unique pointer.
1555 (get_inferior_io_terminal): Adjust to unique pointer.
1556
6d74da72
AB
15572020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1558
1559 * riscv-tdep.c (riscv_print_registers_info): Loop over all
1560 registers, not just the known core set of registers.
1561
2e52d038
AB
15622020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1563
1564 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
1565 fflags, frm, and fcsr registers.
1566 (riscv_register_reggroup_p): Remove unknown CSRs from save and
1567 restore groups.
1568 (riscv_tdesc_unknown_reg): New function.
1569 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
1570 tdesc_use_registers.
1571 * riscv-tdep.h (struct gdbarch_tdep): Add
1572 unknown_csrs_first_regnum, unknown_csrs_count,
1573 duplicate_fflags_regnum, duplicate_frm_regnum, and
1574 duplicate_fcsr_regnum fields.
1575
be64fd07
AB
15762020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1577
1578 * target-descriptions.c (tdesc_use_registers): Add new parameter a
1579 callback, use the callback (when not null) to help number unknown
1580 registers.
1581 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
1582 (tdesc_use_registers): Add extra parameter to declaration.
1583
3b9fce96
AB
15842020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1585
1586 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
1587 in the file.
1588 (class riscv_pending_register_alias): Likewise.
1589 (riscv_register_feature::register_info): Change 'required_p' field
1590 to 'required', and change its type. Add 'check' member function.
1591 (riscv_register_feature::register_info::check): Define new member
1592 function.
1593 (riscv_xreg_feature): Change initialisation of 'required' field.
1594 (riscv_freg_feature): Likewise.
1595 (riscv_virtual_feature): Likewise.
1596 (riscv_csr_feature): Likewise.
1597 (riscv_check_tdesc_feature): Take extra parameter, the csr
1598 tdesc_feature, rewrite the function to use the new
1599 riscv_register_feature::register_info::check function.
1600 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
1601
865bad26
AB
16022020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1603
1604 * features/Makefile: Remove all references to the deleted files
1605 below.
1606 * features/riscv/32bit-csr.c: Deleted.
1607 * features/riscv/32bit-csr.xml: Deleted.
1608 * features/riscv/64bit-csr.c: Deleted.
1609 * features/riscv/64bit-csr.xml: Deleted.
1610 * features/riscv/rebuild-csr-xml.sh: Deleted.
1611
ed69cbc8
AB
16122020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1613
1614 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
1615 whitespace error for declaration of names member variable.
1616 (struct riscv_register_feature): Add new prefer_first_name member
1617 variable, and fix whitespace error in declaration of registers.
1618 (riscv_xreg_feature): Initialize prefer_first_name field.
1619 (riscv_freg_feature): Likewise.
1620 (riscv_virtual_feature): Likewise.
1621 (riscv_csr_feature): Likewise.
1622 (riscv_register_name): Expand on comments. Remove register name
1623 modifications for CSR and virtual registers.
1624
4445e8f5
AB
16252020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1626
1627 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
1628 errors.
1629
767a879e
AB
16302020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1631
1632 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
1633 riscv-opc.h.
1634 (class riscv_pending_register_alias): New class.
1635 (riscv_check_tdesc_feature): Take vector of pending aliases and
1636 populate it as appropriate.
1637 (riscv_setup_register_aliases): Delete.
1638 (riscv_gdbarch_init): Create vector of pending aliases and pass it
1639 to riscv_check_tdesc_feature in all cases. Use the vector to
1640 create the register aliases.
1641
bb6e55f3
RO
16422020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1643
1644 * sol2-tdep.c (sol2_static_transform_name): Remove.
1645 (sol2_init_abi): Don't register it.
1646 * gdbarch.sh (static_transform_name): Remove.
1647 * gdbarch.c, gdbarch.h: Regenerate.
1648
1649 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
1650 gdbarch_static_transform_name.
1651 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
1652 * stabsread.c (define_symbol) <'X'>: Remove.
1653 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
1654 handling.
1655 <'V'>: Likewise.
1656 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
1657 <'S'>: Remove call to gdbarch_static_transform_name.
1658
c6d36836
RO
16592020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1660
1661 * procfs.c (procfs_pre_trace): New function.
1662 (procfs_target::create_inferior): Pass it to fork_inferior.
1663
a7e6196b
RO
16642020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1665
1666 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
1667 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
1668 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
1669 sol2-tdep.o, sparc-sol2-tdep.o.
1670 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
1671 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
1672 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
1673 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
1674
d412e696
RO
16752020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1676
1677 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
1678 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
1679 Call sol2_init_abi.
1680 Remove calls to set_gdbarch_skip_solib_resolver,
1681 set_gdbarch_core_pid_to_str.
1682 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
1683 (i386_sol2_static_transform_name): Remove.
1684 (i386_sol2_init_abi): Call sol2_init_abi.
1685 Remove calls to set_gdbarch_sofun_address_maybe_missing,
1686 set_gdbarch_static_transform_name,
1687 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
1688 Use sol2_sigtramp_p.
1689 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
1690 (sol2_sigtramp_p): New function.
1691 (sol2_static_transform_name): New function.
1692 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
1693 (sol2_init_abi): New function.
1694 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
1695 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
1696 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
1697 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
1698 (sparc_sol2_static_transform_name): Remove.
1699 (sparc32_sol2_init_abi): Call sol2_init_abi.
1700 Remove calls to set_gdbarch_sofun_address_maybe_missing,
1701 set_gdbarch_static_transform_name,
1702 set_gdbarch_skip_solib_resolver,
1703 set_gdbarch_core_pid_to_str.
1704 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
1705 (sparc_sol2_static_transform_name): Remove
1706 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
1707 call sol2_sigtramp_p.
1708 (sparc64_sol2_init_abi): Call sol2_init_abi.
1709 Remove calls to set_gdbarch_sofun_address_maybe_missing,
1710 set_gdbarch_static_transform_name,
1711 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
1712
a8654e7d
PW
17132020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1714
1715 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
1716 * exec.c (validate_exec_file): If from_tty, set both
1717 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
1718 * symfile.c (symbol_file_add_with_addrs): if always_confirm
1719 and from_tty, unconditionally ask a confirmation.
1720
caa7fd04
AB
17212020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1722
1723 * target-descriptions.c (tdesc_architecture_name): Protect against
1724 NULL pointer dereference.
1725 (maint_print_xml_tdesc_cmd): New function.
1726 (_initialize_target_descriptions): Register new 'maint print
1727 xml-tdesc' command and give it the filename completer.
1728 * NEWS: Mention new 'maint print xml-tdesc' command.
1729
fbf42f4e
AB
17302020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1731
1732 * target-descriptions.c (class tdesc_compatible_info): New class.
1733 (struct target_desc): Change type of compatible vector.
1734 (tdesc_compatible_p): Update for change in type of
1735 target_desc::compatible.
1736 (tdesc_compatible_info_list): New function.
1737 (tdesc_compatible_info_arch_name): New function.
1738 (tdesc_add_compatible): Update for change in type of
1739 target_desc::compatible.
1740 (print_c_tdesc::visit_pre): Likewise.
1741
20821f4e
AB
17422020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1743
1744 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
1745 whitespace to underscore.
1746 (maint_print_c_tdesc_cmd): Use fake filename for target
1747 descriptions that came from the target.
1748 (_initialize_target_descriptions): Add filename command completion
1749 for 'maint print c-tdesc'.
1750
1fb5ee62
SM
17512020-06-23 Simon Marchi <simon.marchi@efficios.com>
1752
1753 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
1754 lines.
1755
fc3ecb3e
SM
17562020-06-23 Simon Marchi <simon.marchi@efficios.com>
1757
1758 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
1759 lines.
1760 (dwarf2_find_location_expression): Likewise.
1761 (call_site_parameter_matches): Likewise.
1762 (dwarf2_compile_expr_to_ax): Likewise.
1763 (disassemble_dwarf_expression): Likewise.
1764 (loclist_describe_location): Likewise.
1765
236ef034
PA
17662020-06-23 Pedro Alves <palves@redhat.com>
1767
1768 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
1769 progspace-and-thread.h. Include scoped-mock-context.h instead.
1770 (register_to_value_test): Use scoped_mock_context.
1771 * regcache.c: Include "scoped-mock-context.h".
1772 (cooked_read_test): Don't error out if a target is already pushed.
1773 Use scoped_mock_context. Adjust.
1774 * scoped-mock-context.h: New file.
1775
39e7ecca
AB
17762020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1777
1778 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
1779 initializer.
1780 (ada_language::is_string_type_p): New member function.
1781 * c-lang.c (c_language_data): Delete la_is_string_type_p
1782 initializer.
1783 (cplus_language_data): Likewise.
1784 (asm_language_data): Likewise.
1785 (minimal_language_data): Likewise.
1786 * d-lang.c (d_language_data): Likewise.
1787 * f-lang.c (f_is_string_type_p): Delete function, implementation
1788 moved to f_language::is_string_type_p.
1789 (f_language_data): Delete la_is_string_type_p initializer.
1790 (f_language::is_string_type_p): New member function,
1791 implementation from f_is_string_type_p.
1792 * go-lang.c (go_is_string_type_p): Delete function, implementation
1793 moved to go_language::is_string_type_p.
1794 (go_language_data): Delete la_is_string_type_p initializer.
1795 (go_language::is_string_type_p): New member function,
1796 implementation from go_is_string_type_p.
1797 * language.c (language_defn::is_string_type_p): Define new member
1798 function.
1799 (default_is_string_type_p): Make static, add comment copied from
1800 header file.
1801 (unknown_language_data): Delete la_is_string_type_p initializer.
1802 (unknown_language::is_string_type_p): New member function.
1803 (auto_language_data): Delete la_is_string_type_p initializer.
1804 (auto_language::is_string_type_p): New member function.
1805 * language.h (language_data): Delete la_is_string_type_p field.
1806 (language_defn::is_string_type_p): Declare new function.
1807 (default_is_string_type_p): Delete desclaration, move comment to
1808 definition.
1809 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
1810 moved to m2_language::is_string_type_p.
1811 (m2_language_data): Delete la_is_string_type_p initializer.
1812 (m2_language::is_string_type_p): New member function,
1813 implementation from m2_is_string_type_p.
1814 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
1815 initializer.
1816 * opencl-lang.c (opencl_language_data): Likewise.
1817 * p-lang.c (pascal_is_string_type_p): Delete function,
1818 implementation moved to pascal_language::is_string_type_p.
1819 (pascal_language_data): Delete la_is_string_type_p initializer.
1820 (pascal_language::is_string_type_p): New member function,
1821 implementation from pascal_is_string_type_p.
1822 * rust-lang.c (rust_is_string_type_p): Delete function,
1823 implementation moved to rust_language::is_string_type_p.
1824 (rust_language_data): Delete la_is_string_type_p initializer.
1825 (rust_language::is_string_type_p): New member function,
1826 implementation from rust_is_string_type_p.
1827 * valprint.c (val_print_scalar_or_string_type_p): Update call to
1828 is_string_type_p.
1829
4ffc13fb
AB
18302020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1831
1832 * ada-lang.c (ada_language_data): Delete la_print_typedef
1833 initializer.
1834 (ada_language::print_typedef): New member function.
1835 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
1836 (cplus_language_data): Likewise.
1837 (asm_language_data): Likewise.
1838 (minimal_language_data): Likewise.
1839 * d-lang.c (d_language_data): Likewise.
1840 * f-lang.c (f_language_data): Likewise.
1841 (f_language::print_typedef): New member function.
1842 * go-lang.c (go_language_data): Delete la_print_typedef
1843 initializer.
1844 * language.c (language_defn::print_typedef): Define member
1845 function.
1846 (unknown_language_data): Delete la_print_typedef initializer.
1847 (unknown_language::print_typedef): New member function.
1848 (auto_language_data): Delete la_print_typedef initializer.
1849 (auto_language::print_typedef): New member function.
1850 * language.h (language_data): Delete la_print_typedef field.
1851 (language_defn::print_typedef): Declare new member function.
1852 (LA_PRINT_TYPEDEF): Update call to print_typedef.
1853 (default_print_typedef): Delete declaration.
1854 * m2-lang.c (m2_language_data): Delete la_print_typedef
1855 initializer.
1856 (m2_language::print_typedef): New member function.
1857 * objc-lang.c (objc_language_data): Delete la_print_typedef
1858 initializer.
1859 * opencl-lang.c (opencl_language_data): Likewise.
1860 * p-lang.c (pascal_language_data): Likewise.
1861 (pascal_language::print_typedef): New member function.
1862 * rust-lang.c (rust_print_typedef): Delete function,
1863 implementation moved to rust_language::print_typedef.
1864 (rust_language): Delete la_print_typedef initializer.
1865 (rust_language::print_typedef): New member function,
1866 implementation from rust_print_typedef.
1867 * typeprint.c (default_print_typedef): Delete.
1868
d711ee67
AB
18692020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1870
1871 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
1872 (ada_language::printstr): New member function.
1873 * c-lang.c (c_language_data): Delete la_printstr initializer.
1874 (cplus_language_data): Likewise.
1875 (asm_language_data): Likewise.
1876 (minimal_language_data): Likewise.
1877 * d-lang.c (d_language_data): Likewise.
1878 * f-lang.c (f_printstr): Rename to f_language::printstr.
1879 (f_language_data): Delete la_printstr initializer.
1880 (f_language::printstr): New member function, implementation from
1881 f_printstr.
1882 * go-lang.c (go_language_data): Delete la_printstr initializer.
1883 * language.c (language_defn::printstr): Define new member
1884 function.
1885 (unk_lang_printstr): Delete.
1886 (unknown_language_data): Delete la_printstr initializer.
1887 (unknown_language::printstr): New member function.
1888 (auto_language_data): Delete la_printstr initializer.
1889 (auto_language::printstr): New member function.
1890 * language.h (language_data): Delete la_printstr field.
1891 (language_defn::printstr): Declare new member function.
1892 (LA_PRINT_STRING): Update call to printstr.
1893 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
1894 (m2_language_data): Delete la_printstr initializer.
1895 (m2_language::printstr): New member function, implementation from
1896 m2_printstr.
1897 * objc-lang.c (objc_language_data): Delete la_printstr
1898 initializer.
1899 * opencl-lang.c (opencl_language_data): Likewise.
1900 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
1901 (pascal_language_data): Delete la_printstr initializer.
1902 (pascal_language::printstr): New member function, implementation
1903 from pascal_printstr.
1904 * p-lang.h (pascal_printstr): Delete declaration.
1905 * rust-lang.c (rust_printstr): Update header comment.
1906 (rust_language_data): Delete la_printstr initializer.
1907 (rust_language::printstr): New member function.
1908
52b50f2c
AB
19092020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1910
1911 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
1912 (ada_language::printchar): New member function.
1913 * c-lang.c (c_language_data): Delete la_printchar initializer.
1914 (cplus_language_data): Likewise.
1915 (asm_language_data): Likewise.
1916 (minimal_language_data): Likewise.
1917 * d-lang.c (d_language_data): Likewise.
1918 * f-lang.c (f_printchar): Rename to f_language::printchar.
1919 (f_language_data): Delete la_printchar initializer.
1920 (f_language::printchar): New member function, implementation from
1921 f_printchar.
1922 * go-lang.c (go_language_data): Delete la_printchar initializer.
1923 * language.c (unk_lang_printchar): Delete.
1924 (language_defn::printchar): Define new member function.
1925 (unknown_language_data): Delete la_printchar initializer.
1926 (unknown_language::printchar): New member function.
1927 (auto_language_data): Delete la_printchar initializer.
1928 (auto_language::printchar): New member function.
1929 * language.h (language_data): Delete la_printchar field.
1930 (language_defn::printchar): Declare new member function.
1931 (LA_PRINT_CHAR): Update call to printchar.
1932 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
1933 (m2_language::printchar): New member function.
1934 * objc-lang.c (objc_language_data): Delete la_printchar
1935 initializer.
1936 * opencl-lang.c (opencl_language_data): Likewise.
1937 * p-lang.c (pascal_language_data): Delete la_printchar
1938 initializer.
1939 (pascal_language::printchar): New member function.
1940 * rust-lang.c (rust_printchar): Rename to
1941 rust_language::printchar.
1942 (rust_language_data): Delete la_printchar initializer.
1943 (rust_language::printchar): New member function, implementation
1944 from rust_printchar.
1945
ec8cec5b
AB
19462020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1947
1948 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
1949 (ada_language_data): Delete la_emitchar initializer.
1950 (ada_language::emitchar): New member function, implementation from
1951 emit_char.
1952 * c-lang.c (c_language_data): Delete la_emitchar initializer.
1953 (cplus_language_data): Likewise.
1954 (asm_language_data): Likewise.
1955 (minimal_language_data): Likewise.
1956 * d-lang.c (d_language_data): Likewise.
1957 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
1958 (f_language_data): Delete la_emitchar initializer.
1959 (f_language::emitchar): New member function, implementation from
1960 f_emit_char.
1961 * go-lang.c (go_language_data): Delete la_emitchar initializer.
1962 * language.c (unk_lang_emit_char): Delete.
1963 (language_defn::emitchar): New member function definition.
1964 (unknown_language_data): Delete la_emitchar initializer.
1965 (unknown_language::emitchar): New member function.
1966 (auto_language_data): Delete la_emitchar initializer.
1967 (auto_language::emitchar): New member function.
1968 * language.h (language_data): Delete la_emitchar field.
1969 (language_defn::emitchar): New member field declaration.
1970 (LA_EMIT_CHAR): Update call to emitchar.
1971 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
1972 (m2_language_data): Delete la_emitchar initializer.
1973 (m2_language::emitchar): New member function, implementation from
1974 m2_emit_char.
1975 * objc-lang.c (objc_language_data): Delete la_emitchar
1976 initializer.
1977 * opencl-lang.c (opencl_language_data): Likewise.
1978 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
1979 (pascal_language_data): Delete la_emitchar initializer.
1980 (pascal_language::emitchar): New member function, implementation
1981 from pascal_emit_char.
1982 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
1983 (rust_language_data): Delete la_emitchar initializer.
1984 (rust_language::emitchar): New member function, implementation
1985 from rust_emitchar.
1986
1bf9c363
AB
19872020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1988
1989 * ada-lang.c (resolve): Rename to ada_language::post_parser.
1990 (ada_language_data): Delete la_post_parser initializer.
1991 (ada_language::post_parser): New member function.
1992 * c-lang.c (c_language_data): Delete la_post_parser initializer.
1993 (cplus_language_data): Likewise.
1994 (asm_language_data): Likewise.
1995 (minimal_language_data): Likewise.
1996 * d-lang.c (d_language_data): Likewise.
1997 * f-lang.c (f_language_data): Likewise.
1998 * go-lang.c (go_language_data): Likewise.
1999 * language.c (unknown_language_data): Likewise.
2000 (auto_language_data): Likewise.
2001 * language.h (language_data): Delete la_post_parser field.
2002 (language_defn::post_parser): New member function.
2003 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
2004 * objc-lang.c (objc_language_data): Likewise.
2005 * opencl-lang.c (opencl_language_data): Likewise.
2006 * p-lang.c (pascal_language_data): Likewise.
2007 * parse.c (parse_exp_in_context): Update call to post_parser.
2008 (null_post_parser): Delete definition.
2009 * parser-defs.h (null_post_parser): Delete declaration.
2010 * rust-lang.c (rust_language_data): Delete la_post_parser
2011 initializer.
2012
87afa652
AB
20132020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2014
2015 * ada-lang.c (parse): Rename to ada_language::parser.
2016 (ada_language_data): Delete la_parser initializer.
2017 (ada_language::parser): New member function, implementation from
2018 parse.
2019 * c-lang.c (c_language_data): Delete la_parser initializer.
2020 (cplus_language_data): Likewise.
2021 (asm_language_data): Likewise.
2022 (minimal_language_data): Likewise.
2023 * d-lang.c (d_language_data): Likewise.
2024 (d_language::parser): New member function.
2025 * f-lang.c (f_language_data): Delete la_parser initializer.
2026 (f_language::parser): New member function.
2027 * go-lang.c (go_language_data): Delete la_parser initializer.
2028 (go_language::parser): New member function.
2029 * language.c (unk_lang_parser): Delete.
2030 (language_defn::parser): Define new member function.
2031 (unknown_language_data): Delete la_parser initializer.
2032 (unknown_language::parser): New member function.
2033 (auto_language_data): Delete la_parser initializer.
2034 (auto_language::parser): New member function.
2035 * language.h (language_data): Delete la_parser field.
2036 (language_defn::parser): Declare new member function.
2037 * m2-lang.c (m2_language_data): Delete la_parser initializer.
2038 (m2_language::parser): New member function.
2039 * objc-lang.c (objc_language_data): Delete la_parser initializer.
2040 * opencl-lang.c (opencl_language_data): Likewise.
2041 * p-lang.c (pascal_language_data): Likewise.
2042 (pascal_language::parser): New member function.
2043 * parse.c (parse_exp_in_context): Update call to parser.
2044 * rust-lang.c (rust_language_data): Delete la_parser initializer.
2045 (rust_language::parser): New member function.
2046
37825800
AB
20472020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2048
2049 * top.c (print_gdb_configuration): Print --with-python-libdir
2050 configuration value.
2051
5b860c93
PW
20522020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2053
2054 * NEWS: Mention change to the alias command.
2055
cf00cd6f
PW
20562020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2057
2058 * cli/cli-cmds.c (lookup_cmd_for_default_args)
2059 (alias_command_completer)
2060 (make_alias_options_def_group): New functions.
2061 (alias_opts, alias_option_defs): New struct and array.
2062 (alias_usage_error): Update usage.
2063 (alias_command): Handles optional DEFAULT-ARGS... arguments.
2064 Use option framework.
2065 (_initialize_cli_cmds): Update alias command help.
2066 Update aliases command help.
2067 (show_user):
2068 Add NULL for new default_args lookup_cmd argument.
2069 (valid_command_p): Rename to validate_aliased_command.
2070 Add NULL for new default_args lookup_cmd argument. Verify that the
2071 aliased_command has no default args.
2072 * cli/cli-decode.c (help_cmd): Show aliases definitions.
2073 (lookup_cmd_1, lookup_cmd): New argument default_args.
2074 (add_alias_cmd):
2075 Add NULL for new default_args lookup_cmd argument.
2076 (print_help_for_command): Show default args under the layout
2077 alias some_alias = some_aliased_cmd some_alias_default_arg.
2078 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
2079 xfree default_args in destructor.
2080 * cli/cli-script.c (process_next_line, do_define_command):
2081 Add NULL for new default_args lookup_cmd argument.
2082 * command.h: Declare new default_args argument in lookup_cmd
2083 and lookup_cmd_1.
2084 * completer.c (complete_line_internal_1):
2085 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
2086 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
2087 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
2088 Likewise.
2089 * infcmd.c (_initialize_infcmd): Likewise.
2090 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
2091 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
2092 * python/py-param.c (add_setshow_generic): Likewise.
2093 * remote.c (_initialize_remote): Likewise.
2094 * top.c (execute_command): Prepend default_args if command has some.
2095 (set_verbose):
2096 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
2097 * tracepoint.c (validate_actionline, encode_actions_1):
2098 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
2099
bd920864
TBA
21002020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2101
2102 * jit.c (jit_read_descriptor): Use bool as the return type.
2103 (jit_breakpoint_re_set_internal): Use bool as the return type.
2104 Invert the return value logic; return true if the jit breakpoint
2105 has been successfully initialized.
2106 (jit_inferior_init): Update the call to
2107 jit_breakpoint_re_set_internal.
2108
f8098322
PA
21092020-06-22 Pedro Alves <palves@redhat.com>
2110
2111 PR gdb/25939
2112 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
2113 Use the current inferior instead. Don't return
2114 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
2115 wait again.
2116 * sol-thread.c (sol_thread_target::wait): Don't reference
2117 inferior_ptid.
2118 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
2119 (sol_update_thread_list_callback): Use the current inferior's pid
2120 instead of inferior_ptid.
2121
196535a6
RO
21222020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2123
2124 * procfs.c: Cleanup many comments.
2125
2126 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
2127 (AFTER_WATCHFLAG): Replace by value.
2128
2129 (MAIN_PROC_NAME_FORMAT): Inline ...
2130 (create_procinfo): ... here.
2131
2132 (procfs_debug_inferior): Remove SYS_exec handling.
2133 (syscall_is_exec): Likewise.
2134 (procfs_set_exec_trap): Likewise.
2135
2136 (syscall_is_lwp_exit): Inline in callers.
2137 (syscall_is_exit): Likewise.
2138 (syscall_is_exec): Likewise.
2139 (syscall_is_lwp_create): Likewise.
2140
2141 (invalidate_cache): Remove #if 0 code.
2142
2143 (make_signal_thread_runnable): Remove.
2144 (procfs_target::resume): Remove #if 0 code.
2145
cf6f3e86
RO
21462020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2147
2148 PR gdb/25939
2149 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
2150 call ...
2151 (procfs_target::create_inferior): ... here.
2152
48e9cc84
PW
21532020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2154
2155 * exec.c (validate_exec_file): Ensure the build-id is up to
2156 date by calling reopen_exec_file (that checks file timestamp
2157 to decide to re-read the file).
2158
3922b302
PA
21592020-06-18 Pedro Alves <palves@redhat.com>
2160
2161 PR gdb/25412
2162 * gdbthread.h (delete_thread, delete_thread_silent)
2163 (find_thread_ptid): Update comments.
2164 * thread.c (current_thread_): New global.
2165 (is_current_thread): Move higher, and reimplement.
2166 (inferior_thread): Reimplement.
2167 (set_thread_exited): Use bool. Add assertions.
2168 (add_thread_silent): Simplify thread-reuse handling by always
2169 calling delete_thread.
2170 (delete_thread): Remove intro comment.
2171 (find_thread_ptid): Skip exited threads.
2172 (switch_to_thread_no_regs): Write to current_thread_.
2173 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
2174 INFERIOR_PTID. Clear current_thread_.
2175
6dbdab44
PA
21762020-06-18 Pedro Alves <palves@redhat.com>
2177
2178 * aix-thread.c (pd_update): Use switch_to_thread.
2179
2da4b788
PA
21802020-06-18 Pedro Alves <palves@redhat.com>
2181
2182 * ravenscar-thread.c (ravenscar_thread_target): Update.
2183 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
2184 (ravenscar_thread_target::add_active_thread): ... this. Don't
2185 set m_base_ptid here. Update to avoid referencing inferior_ptid.
2186 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
2187
50838d1b
PA
21882020-06-18 Pedro Alves <palves@redhat.com>
2189
2190 * nat/windows-nat.c (current_windows_thread): Remove.
2191 * nat/windows-nat.h (current_windows_thread): Remove.
2192 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
2193 Adjust.
2194 (display_selectors): Adjust to fetch the current
2195 windows_thread_info based on inferior_ptid.
2196 (fake_create_process): No longer write to current_windows_thread.
2197 (windows_nat_target::get_windows_debug_event):
2198 Don't set inferior_ptid or current_windows_thread.
2199 (windows_nat_target::wait): Adjust to not rely on
2200 current_windows_thread.
2201 (do_initial_windows_stuff): Now a method of windows_nat_target.
2202 Switch to the last_ptid thread.
2203 (windows_nat_target::attach): Adjust.
2204 (windows_nat_target::detach): Use switch_to_no_thread instead of
2205 writing to inferior_ptid directly.
2206 (windows_nat_target::create_inferior): Adjust.
2207
31ce04e9
PA
22082020-06-18 Pedro Alves <palves@redhat.com>
2209
2210 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
2211
1ee1a363
PA
22122020-06-18 Pedro Alves <palves@redhat.com>
2213
2214 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
2215 after creating it, instead of writing to inferior_ptid. Don't
2216 write to inferior_ptid.
2217
6d350754
PA
22182020-06-18 Pedro Alves <palves@redhat.com>
2219
2220 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
2221
5d971d48
PA
22222020-06-18 Pedro Alves <palves@redhat.com>
2223
2224 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
2225 it, instead of writing to inferior_ptid.
2226
86e57d1b
PA
22272020-06-18 Pedro Alves <palves@redhat.com>
2228
2229 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
2230 to inferior_ptid.
2231
f2e1c129
PA
22322020-06-18 Pedro Alves <palves@redhat.com>
2233
2234 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
2235 instead of writing to inferior_ptid directly.
2236
60db1b85
PA
22372020-06-18 Pedro Alves <palves@redhat.com>
2238
2239 * corelow.c (core_target::close): Use switch_to_no_thread instead
2240 of writing to inferior_ptid directly.
2241 (add_to_thread_list, core_target_open): Use switch_to_thread
2242 instead of writing to inferior_ptid directly.
2243
fe7d6a8d
PA
22442020-06-18 Pedro Alves <palves@redhat.com>
2245
2246 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
2247 inferior_ptid.
2248 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
2249 inferior_ptid.
2250 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
2251 inferior_ptid directly.
2252 (darwin_nat_target::init_thread_list): Switch to thread, instead
2253 of writing to inferior_ptid.
2254 (darwin_nat_target::attach): Don't write to inferior_ptid.
2255 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
2256
975f8708
PA
22572020-06-18 Pedro Alves <palves@redhat.com>
2258
2259 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
2260 thread.
2261 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
2262 Instead use switch_to_thread.
2263 (gnu_nat_target::detach): Use switch_to_no_thread
2264 instead of writing to inferior_ptid directly. Used passed-in
2265 inferior instead of looking up the inferior by pid.
2266
1a204730
PA
22672020-06-18 Pedro Alves <palves@redhat.com>
2268
2269 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
2270 inferior_ptid.
2271
ebe84f23
PA
22722020-06-18 Pedro Alves <palves@redhat.com>
2273
2274 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
2275 inferior_ptid.
2276 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
2277 thread.
2278 (nto_procfs_target::detach): Avoid referencing
2279 inferior_ptid. Use switch_to_no_thread instead of writing to
2280 inferior_ptid directly.
2281 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
2282 instead of writing to inferior_ptid directly.
2283 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
2284 to thread.
2285
191f02e5
PA
22862020-06-18 Pedro Alves <palves@redhat.com>
2287
2288 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
2289 after creating it, instead of writing to inferior_ptid.
2290 (gdbsim_target_open): Use switch_to_no_thread instead of writing
2291 to inferior_ptid directly.
2292 (gdbsim_target::wait): Don't write to inferior_ptid.
2293
0ac55310
PA
22942020-06-18 Pedro Alves <palves@redhat.com>
2295
2296 * remote.c (remote_target::remote_notice_new_inferior): Use
2297 switch_to_thread instead of writing to inferior_ptid directly.
2298 (remote_target::add_current_inferior_and_thread): Use
2299 switch_to_no_thread instead of writing to inferior_ptid directly.
2300 (extended_remote_target::attach): Use switch_to_inferior_no_thread
2301 and switch_to_thread instead of using set_current_inferior or
2302 writing to inferior_ptid directly.
2303
5233f39b
PA
23042020-06-18 Pedro Alves <palves@redhat.com>
2305
2306 * tracectf.c (ctf_target_open): Switch to added thread instead of
2307 writing to inferior_ptid directly.
2308 (ctf_target::close): Use switch_to_no_thread instead of writing to
2309 inferior_ptid directly.
2310
087e161b
PA
23112020-06-18 Pedro Alves <palves@redhat.com>
2312
2313 * tracefile-tfile.c (tfile_target_open): Don't write to
2314 inferior_ptid directly, instead switch to added thread.
2315 (tfile_target::close): Use switch_to_no_thread instead of writing
2316 to inferior_ptid directly.
2317
7fb43e53
PA
23182020-06-18 Pedro Alves <palves@redhat.com>
2319
2320 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
2321 (procfs_target::detach): Use switch_to_no_thread
2322 instead of writing to inferior_ptid directly.
2323 (do_attach): Change return type to void. Switch to the added
2324 thread.
2325 (procfs_target::create_inferior): Switch to the added thread.
2326 (procfs_do_thread_registers): Don't write to inferior_ptid.
2327
18493a00
PA
23282020-06-18 Pedro Alves <palves@redhat.com>
2329
2330 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
2331 of writing to inferior_ptid.
2332 (scoped_restore_exited_inferior): Delete.
2333 (handle_vfork_child_exec_or_exit): Simplify using
2334 scoped_restore_current_pspace_and_thread. Use switch_to_thread
2335 instead of writing to inferior_ptid.
2336 (THREAD_STOPPED_BY): Delete.
2337 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
2338 (thread_stopped_by_hw_breakpoint): Delete.
2339 (save_waitstatus): Use
2340 scoped_restore_current_thread+switch_to_thread, and call
2341 target_stopped_by_watchpoint instead of
2342 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
2343 instead of thread_stopped_by_sw_breakpoint, and
2344 target_stopped_by_hw_breakpoint instead of
2345 thread_stopped_by_hw_breakpoint.
2346 (handle_inferior_event)
2347 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
2348 inferior_ptid directly, nor
2349 set_current_inferior/set_current_program_space. Use
2350 switch_to_thread / switch_to_inferior_no_thread instead.
2351
a0776b13
PA
23522020-06-18 Pedro Alves <palves@redhat.com>
2353
2354 * target.c (generic_mourn_inferior): Use switch_to_no_thread
2355 instead of writing to inferior_ptid.
2356
6155c136
PA
23572020-06-18 Pedro Alves <palves@redhat.com>
2358
2359 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
2360 added thread.
2361 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
2362 to the added thread.
2363 (inf_ptrace_target::detach_success): Use switch_to_no_thread
2364 instead of writing to inferior_ptid.
2365
c5316fc6
PA
23662020-06-18 Pedro Alves <palves@redhat.com>
2367
2368 * gdbarch-selftests.c: Include "progspace-and-thread.h".
2369 (register_to_value_test): Mock a program_space too. Heap-allocate
2370 the address space. Don't write to inferior_ptid. Use
2371 switch_to_thread instead.
2372
8df01799
PA
23732020-06-18 Pedro Alves <palves@redhat.com>
2374
2375 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
2376 Delete.
2377 (find_signalled_thread()): New, factored out from
2378 linux_make_corefile_notes and adjusted to handle exited threads.
2379 (linux_make_corefile_notes): Adjust to use the new
2380 find_signalled_thread.
2381
41792d68
PA
23822020-06-18 Pedro Alves <palves@redhat.com>
2383
2384 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
2385 of saving/restoring inferior_ptid.
2386
612f258a
TT
23872020-06-17 Tom Tromey <tom@tromey.com>
2388
2389 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
2390 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
2391 declare.
2392 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
2393
efb763a5
SM
23942020-06-15 Simon Marchi <simon.marchi@efficios.com>
2395
2396 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
2397 of partial symtabs.
2398
2951f6c0
SM
23992020-06-17 Simon Marchi <simon.marchi@efficios.com>
2400
2401 * regformats/reg-arm.dat: Remove.
2402 * regformats/reg-bfin.dat: Remove.
2403 * regformats/reg-cris.dat: Remove.
2404 * regformats/reg-crisv32.dat: Remove.
2405 * regformats/reg-m32r.dat: Remove.
2406 * regformats/reg-tilegx.dat: Remove.
2407 * regformats/reg-tilegx32.dat: Remove.
2408
7d458ea5
SM
24092020-06-17 Simon Marchi <simon.marchi@efficios.com>
2410
2411 * features/Makefile (WHICH): Remove arm files.
2412 * regformats/arm/arm-with-iwmmxt.dat: Remove.
2413 * regformats/arm/arm-with-neon.dat: Remove.
2414 * regformats/arm/arm-with-vfpv2.dat: Remove.
2415 * regformats/arm/arm-with-vfpv3.dat: Remove.
2416
3af96c0d
SM
24172020-06-17 Simon Marchi <simon.marchi@efficios.com>
2418
2419 * features/Makefile (XMLTOC): Remove rx.xml.
2420
b25e22fd
PA
24212020-06-17 Pedro Alves <palves@redhat.com>
2422
2423 * gdbthread.h (thread_control_state) <trap_expected> Update
2424 comments.
2425
a78a19b1
AB
24262020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2427
2428 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
2429 ada_language::lookup_symbol_nonlocal.
2430 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
2431 (ada_language::lookup_symbol_nonlocal): New member function,
2432 implementation from ada_lookup_symbol_nonlocal.
2433 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
2434 initializer.
2435 (cplus_language_data): Delete la_lookup_symbol_nonlocal
2436 initializer.
2437 (cplus_language::lookup_symbol_nonlocal): New member function.
2438 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
2439 (minimal_language_data) Likewise.
2440 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
2441 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
2442 initializer.
2443 (d_language::lookup_symbol_nonlocal): New member function.
2444 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
2445 initializer.
2446 (f_language::lookup_symbol_nonlocal): New member function.
2447 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
2448 initializer.
2449 * language.c (unknown_language_data): Likewise.
2450 (auto_language_data): Likewise.
2451 * language.h (language_data): Delete la_lookup_symbol_nonlocal
2452 field.
2453 (language_defn::lookup_symbol_nonlocal): New member function.
2454 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
2455 initializer.
2456 * objc-lang.c (objc_language_data): Likewise.
2457 * opencl-lang.c (opencl_language_data): Likewise.
2458 * p-lang.c (pascal_language_data): Likewise.
2459 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
2460 rust_language::lookup_symbol_nonlocal.
2461 (rust_language_data): Delete la_lookup_symbol_nonlocal
2462 initializer.
2463 (rust_language::lookup_symbol_nonlocal): New member function,
2464 implementation from rust_lookup_symbol_nonlocal.
2465 * symtab.c (lookup_symbol_aux): Update call to
2466 lookup_symbol_nonlocal.
2467 (basic_lookup_symbol_nonlocal): Rename to...
2468 (language_defn::lookup_symbol_nonlocal): ...this, and update
2469 header comment. Remove language_defn parameter, and replace with
2470 uses of `this'.
2471 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
2472
ebe2334e
AB
24732020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2474
2475 * ada-lang.c (ada_language_data): Delete la_value_print_inner
2476 initializer.
2477 (ada_language::value_print_inner): New member function.
2478 * c-lang.c (c_language_data): Delete la_value_print_inner
2479 initializer.
2480 (cplus_language_data): Likewise.
2481 (asm_language_data): Likewise.
2482 (minimal_language_data): Likewise.
2483 * d-lang.c (d_language_data): Likewise.
2484 (d_language::value_print_inner): New member function.
2485 * f-lang.c (f_language_data): Delete la_value_print_inner
2486 initializer.
2487 (f_language::value_print_inner): New member function.
2488 * f-lang.h (f_value_print_innner): Rename to...
2489 (f_value_print_inner): ...this (note spelling of 'inner').
2490 * f-valprint.c (f_value_print_innner): Rename to...
2491 (f_value_print_inner): ...this (note spelling of 'inner').
2492 * go-lang.c (go_language_data): Delete la_value_print_inner
2493 initializer.
2494 (go_language::value_print_inner): New member function.
2495 * language.c (language_defn::value_print_inner): Define new member
2496 function.
2497 (unk_lang_value_print_inner): Delete.
2498 (unknown_language_data): Delete la_value_print_inner initializer.
2499 (unknown_language::value_print_inner): New member function.
2500 (auto_language_data): Delete la_value_print_inner initializer.
2501 (auto_language::value_print_inner): New member function.
2502 * language.h (language_data): Delete la_value_print_inner field.
2503 (language_defn::value_print_inner): Delcare new member function.
2504 * m2-lang.c (m2_language_data): Delete la_value_print_inner
2505 initializer.
2506 (m2_language::value_print_inner): New member function.
2507 * objc-lang.c (objc_language_data): Delete la_value_print_inner
2508 initializer.
2509 * opencl-lang.c (opencl_language_data): Likewise.
2510 * p-lang.c (pascal_language_data): Likewise.
2511 (pascal_language::value_print_inner): New member function.
2512 * rust-lang.c (rust_language_data): Delete la_value_print_inner
2513 initializer.
2514 (rust_language::value_print_inner): New member function.
2515 * valprint.c (do_val_print): Update call to value_print_inner.
2516
a1d1fa3e
AB
25172020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2518
2519 * ada-lang.c (ada_language_data): Delete la_value_print
2520 initializer.
2521 (ada_language::value_print): New member function.
2522 * c-lang.c (c_language_data): Delete la_value_print initializer.
2523 (cplus_language_data): Likewise.
2524 (asm_language_data): Likewise.
2525 (minimal_language_data): Likewise.
2526 * d-lang.c (d_language_data): Likewise.
2527 * f-lang.c (f_language_data): Likewise.
2528 * go-lang.c (go_language_data): Likewise.
2529 * language.c (unk_lang_value_print): Delete.
2530 (language_defn::value_print): Define new member function.
2531 (unknown_language_data): Delete la_value_print initializer.
2532 (unknown_language::value_print): New member function.
2533 (auto_language_data): Delete la_value_print initializer.
2534 (auto_language::value_print): New member function.
2535 * language.h (language_data): Delete la_value_print field.
2536 (language_defn::value_print): Declare new member function.
2537 (LA_VALUE_PRINT): Update call to value_print.
2538 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
2539 * objc-lang.c (objc_language_data): Likewise.
2540 * opencl-lang.c (opencl_language_data): Likewise.
2541 * p-lang.c (pascal_language_data): Likewise.
2542 (pascal_language::value_print): New member function.
2543 * rust-lang.c (rust_language_data): Delete la_value_print
2544 initializer.
2545
f16a9f57
AB
25462020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2547
2548 * ada-lang.c (ada_watch_location_expression): Rename to
2549 ada_language::watch_location_expression.
2550 (ada_language_data): Delete la_watch_location_expression
2551 initializer.
2552 (ada_language::watch_location_expression): New member function,
2553 implementation from ada_watch_location_expression.
2554 * breakpoint.c (watch_command_1): Update call to
2555 watch_location_expression.
2556 * c-lang.c (c_watch_location_expression): Rename to
2557 language_defn::watch_location_expression.
2558 (c_language_data): Delete la_watch_location_expression
2559 initializer.
2560 (cplus_language_data): Likewise.
2561 (asm_language_data): Likewise.
2562 (minimal_language_data): Likewise.
2563 * c-lang.h (c_watch_location_expression): Delete declaration.
2564 * d-lang.c (d_language_data): Delete la_watch_location_expression
2565 initializer.
2566 * f-lang.c (f_language_data): Likewise.
2567 * go-lang.c (go_language_data): Likewise.
2568 * language.c (language_defn::watch_location_expression): Member
2569 function implementation from c_watch_location_expression.
2570 (unknown_language_data): Delete la_watch_location_expression
2571 initializer.
2572 (auto_language_data): Likewise.
2573 * language.h (language_data): Delete la_watch_location_expression
2574 field.
2575 (language_defn::watch_location_expression): Declare new member
2576 function.
2577 * m2-lang.c (m2_language_data): Delete
2578 la_watch_location_expression initializer.
2579 * objc-lang.c (objc_language_data): Likewise.
2580 * opencl-lang.c (opencl_language_data): Likewise.
2581 * p-lang.c (pascal_language_data): Likewise.
2582 * rust-lang.c (rust_watch_location_expression): Rename to
2583 rust_language::watch_location_expression.
2584 (rust_language_data): Delete la_watch_location_expression
2585 initializer.
2586 (rust_language::watch_location_expression): New member function,
2587 implementation from rust_watch_location_expression.
2588
7e56227d
AB
25892020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2590
2591 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
2592 ada_language::collect_symbol_completion_matches.
2593 (ada_language_data): Delete la_collect_symbol_completion_matches
2594 initializer.
2595 (ada_language::collect_symbol_completion_matches): New member
2596 function, implementation from
2597 ada_collect_symbol_completion_matches.
2598 * c-lang.c (c_language_data): Delete
2599 la_collect_symbol_completion_matches initializer.
2600 (cplus_language_data): Likewise.
2601 (asm_language_data): Likewise.
2602 (minimal_language_data): Likewise.
2603 * d-lang.c (d_language_data): Likewise.
2604 * f-lang.c (f_collect_symbol_completion_matches): Rename to
2605 f_language::collect_symbol_completion_matches.
2606 (f_language_data): Delete la_collect_symbol_completion_matches
2607 initializer.
2608 (f_language::collect_symbol_completion_matches) New member
2609 function, implementation from f_collect_symbol_completion_matches.
2610 * go-lang.c (go_language_data): Delete
2611 la_collect_symbol_completion_matches initializer.
2612 * language.c (unknown_language_data): Likewise.
2613 (auto_language_data): Likewise.
2614 * language.h (language_data): Delete
2615 la_collect_symbol_completion_matches field.
2616 (language_defn::collect_symbol_completion_matches): New member
2617 function.
2618 * m2-lang.c (m2_language_data): Delete
2619 la_collect_symbol_completion_matches initializer.
2620 * objc-lang.c (objc_language_data): Likewise.
2621 * opencl-lang.c (opencl_language_data): Likewise.
2622 * p-lang.c (pascal_language_data): Likewise.
2623 * rust-lang.c (rust_language_data): Likewise.
2624 * symtab.c (default_collect_symbol_completion_matches): Delete.
2625 (collect_symbol_completion_matches): Update call to
2626 collect_symbol_completion_matches.
2627 (collect_symbol_completion_matches_type): Likewise.
2628 * symtab.h (default_collect_symbol_completion_matches): Delete
2629 declaration.
2630
53fc67f8
AB
26312020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2632
2633 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
2634 (ada_language_data): Delete la_word_break_characters initializer.
2635 (ada_language::word_break_characters): New member function.
2636 * c-lang.c (c_language_data): Delete la_word_break_characters
2637 initializer.
2638 (cplus_language_data): Likewise.
2639 (asm_language_data): Likewise.
2640 (minimal_language_data): Likewise.
2641 * completer.c: Update global comment.
2642 (advance_to_expression_complete_word_point): Update call to
2643 word_break_characters.
2644 (complete_files_symbols): Likewise.
2645 (complete_line_internal_1): Likewise.
2646 (default_completer_handle_brkchars): Likewise.
2647 (skip_quoted_chars): Likewise.
2648 * d-lang.c (d_language_data): Delete la_word_break_characters
2649 initializer.
2650 * f-lang.c (f_word_break_characters): Delete.
2651 (f_language_data): Delete la_word_break_characters initializer.
2652 (f_language::word_break_characters): New member function.
2653 * go-lang.c (go_language_data): Delete la_word_break_characters
2654 initializer.
2655 * language.c (unknown_language_data): Likewise.
2656 (auto_language_data): Likewise.
2657 * language.h (default_word_break_characters): Move declaration to
2658 earlier in the file.
2659 (language_data): Delete la_word_break_characters field.
2660 (language_defn::word_break_characters): New member function.
2661 * m2-lang.c (m2_language_data): Delete la_word_break_characters
2662 initializer.
2663 * objc-lang.c (objc_language_data): Likewise.
2664 * opencl-lang.c (opencl_language_data): Likewise.
2665 * p-lang.c (pascal_language_data): Likewise.
2666 * rust-lang.c (rust_language_data): Likewise.
2667
c9debfb9
AB
26682020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2669
2670 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
2671 (ada_language_data): Delete la_get_symbol_name_matcher
2672 initializer.
2673 (language_defn::get_symbol_name_matcher_inner): New member
2674 function.
2675 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
2676 initializer.
2677 (cplus_language_data): Likewise.
2678 (cplus_language::get_symbol_name_matcher_inner): New member
2679 function.
2680 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
2681 (minimal_language_data): Likewise.
2682 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
2683 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
2684 initializer.
2685 * dictionary.c (iter_match_first_hashed): Update call to
2686 get_symbol_name_matcher.
2687 (iter_match_next_hashed): Likewise.
2688 (iter_match_next_linear): Likewise.
2689 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
2690 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
2691 initializer.
2692 (f_language::get_symbol_name_matcher_inner): New member function.
2693 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
2694 initializer.
2695 * language.c (default_symbol_name_matcher): Update header comment,
2696 make static.
2697 (language_defn::get_symbol_name_matcher): New definition.
2698 (language_defn::get_symbol_name_matcher_inner): Likewise.
2699 (get_symbol_name_matcher): Delete.
2700 (unknown_language_data): Delete la_get_symbol_name_matcher
2701 initializer.
2702 (auto_language_data): Likewise.
2703 * language.h (language_data): Delete la_get_symbol_name_matcher
2704 field.
2705 (language_defn::get_symbol_name_matcher): New member function.
2706 (language_defn::get_symbol_name_matcher_inner): Likewise.
2707 (default_symbol_name_matcher): Delete declaration.
2708 * linespec.c (find_methods): Update call to
2709 get_symbol_name_matcher.
2710 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
2711 initializer.
2712 * minsyms.c (lookup_minimal_symbol): Update call to
2713 get_symbol_name_matcher.
2714 (iterate_over_minimal_symbols): Likewise.
2715 * objc-lang.c (objc_language_data): Delete
2716 la_get_symbol_name_matcher initializer.
2717 * opencl-lang.c (opencl_language_data): Likewise.
2718 * p-lang.c (pascal_language_data): Likewise.
2719 * psymtab.c (psymbol_name_matches): Update call to
2720 get_symbol_name_matcher.
2721 * rust-lang.c (rust_language_data): Delete
2722 la_get_symbol_name_matcher initializer.
2723 * symtab.c (symbol_matches_search_name): Update call to
2724 get_symbol_name_matcher.
2725 (compare_symbol_name): Likewise.
2726
9a49ad8c
AB
27272020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2728
2729 * ada-lang.c (ada_language_data): Delete la_compute_program
2730 initializer.
2731 * c-lang.c (c_language_data): Likewise.
2732 (c_language::compute_program): New member function.
2733 (cplus_language_data): Delete la_compute_program initializer.
2734 (cplus_language::compute_program): New member function.
2735 (asm_language_data): Delete la_compute_program initializer.
2736 (minimal_language_data): Likewise.
2737 * c-lang.h (c_compute_program): Update comment.
2738 (cplus_compute_program): Likewise.
2739 * compile/compile-c-support.c (c_compute_program): Likewise.
2740 (cplus_compute_program): Likewise.
2741 * compile/compile.c (compile_to_object): Update call to
2742 la_compute_program.
2743 * d-lang.c (d_language_data): Delete la_compute_program
2744 initializer.
2745 * f-lang.c (f_language_data): Likewise.
2746 * go-lang.c (go_language_data): Likewise.
2747 * language.c (unknown_language_data): Likewise.
2748 (auto_language_data): Likewise.
2749 * language.h (language_data): Delete la_compute_program field.
2750 (language_defn::compute_program): New member function.
2751 * m2-lang.c (m2_language_data): Delete la_compute_program
2752 initializer.
2753 * objc-lang.c (objc_language_data): Likewise.
2754 * opencl-lang.c (opencl_language_data): Likewise.
2755 * p-lang.c (pascal_language_data): Likewise.
2756 * rust-lang.c (rust_language_data): Likewise.
2757
eff93b4d
AB
27582020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2759
2760 * ada-lang.c (ada_language_data) Delete
2761 la_class_name_from_physname initializer.
2762 * c-lang.c (c_language_data): Likewise.
2763 (cplus_language_data): Likewise.
2764 (cplus_language::class_name_from_physname): New member function.
2765 (asm_language_data): Delete la_class_name_from_physname
2766 initializer.
2767 (minimal_language_data): Likewise.
2768 * d-lang.c (d_language_data): Likewise.
2769 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
2770 method on language_defn class.
2771 (guess_full_die_structure_name): Likewise.
2772 * f-lang.c (f_language_data): Delete la_class_name_from_physname
2773 initializer.
2774 * go-lang.c (go_language_data): Likewise.
2775 * language.c (language_class_name_from_physname): Delete.
2776 (unk_lang_class_name): Delete.
2777 (unknown_language_data): Delete la_class_name_from_physname
2778 initializer.
2779 (auto_language_data): Likewise.
2780 * language.h (language_data): Delete la_class_name_from_physname
2781 field.
2782 (language_defn::class_name_from_physname): New function.
2783 (language_class_name_from_physname): Delete declaration.
2784 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
2785 initializer.
2786 * objc-lang.c (objc_language_data): Likewise.
2787 * opencl-lang.c (opencl_language_data): Likewise.
2788 * p-lang.c (pascal_language_data): Likewise.
2789 * rust-lang.c (rust_language_data): Likewise.
2790
de543742
TT
27912020-06-16 Tom Tromey <tom@tromey.com>
2792
2793 * tui/tui-data.h (STATUS_NAME): New macro.
2794 * tui/tui-layout.c (tui_remove_some_windows)
2795 (initialize_known_windows, tui_register_window)
2796 (tui_layout_split::remove_windows, initialize_layouts)
2797 (tui_new_layout_command): Don't use hard-coded window names.
2798
a350efd4
TT
27992020-06-16 Tom Tromey <tom@tromey.com>
2800
2801 PR tui/25348:
2802 * tui/tui.c (tui_ensure_readline_initialized): Rename from
2803 tui_initialize_readline. Only run once. Call rl_initialize.
2804 * tui/tui.h (tui_ensure_readline_initialized): Rename from
2805 tui_initialize_readline.
2806 * tui/tui-io.c (tui_setup_io): Call
2807 tui_ensure_readline_initialized.
2808 * tui/tui-interp.c (tui_interp::init): Update.
2809
39ec0490
TT
28102020-06-16 Tom Tromey <tom@tromey.com>
2811
2812 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
2813 Also preserve the status window.
2814
d2d1ea20
TT
28152020-06-16 Tom Tromey <tom@tromey.com>
2816
2817 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
2818 where m_window==nullptr.
2819
66920317
TT
28202020-06-15 Tom Tromey <tromey@adacore.com>
2821
2822 * windows-nat.c (windows_nat::handle_output_debug_string):
2823 Update.
2824 (windows_nat::handle_ms_vc_exception): Update.
2825 * target.h (target_read_string): Change API.
2826 * target.c (target_read_string): Change API.
2827 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
2828 Update.
2829 * solib-frv.c (frv_current_sos): Update.
2830 * solib-dsbt.c (dsbt_current_sos): Update.
2831 * solib-darwin.c (darwin_current_sos): Update.
2832 * linux-thread-db.c (inferior_has_bug): Update.
2833 * expprint.c (print_subexp_standard): Update.
2834 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
2835 (ada_exception_message_1): Update.
2836
a5d871dd
TT
28372020-06-15 Tom Tromey <tromey@adacore.com>
2838
2839 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
2840
670e35fa
TT
28412020-06-15 Tom Tromey <tromey@adacore.com>
2842
2843 * valprint.c (read_string): Update comment.
2844 * target.c (MIN): Remove.
2845 (target_read_string): Rewrite.
2846
f5272a3b
TT
28472020-06-15 Tom Tromey <tromey@adacore.com>
2848
2849 * corefile.c (read_memory_string): Remove.
2850 * ada-valprint.c (ada_value_print_ptr): Update.
2851 * ada-lang.h (ada_tag_name): Change return type.
2852 * ada-lang.c (type_from_tag): Update.
2853 (ada_tag_name_from_tsd): Change return type. Use
2854 target_read_string.
2855 (ada_tag_name): Likewise.
2856 * gdbcore.h (read_memory_string): Don't declare.
2857
2c074f49
HD
28582020-06-14 Hannes Domani <ssbssa@yahoo.de>
2859
2860 * symtab.c (rbreak_command): Ignore Windows drive colon.
2861
6a17d503
SM
28622020-06-12 Simon Marchi <simon.marchi@efficios.com>
2863
2864 * NEWS: Mention removed GDBserver host support.
2865
453c733f
NC
28662020-06-12 Nelson Chu <nelson.chu@sifive.com>
2867
2868 * features/riscv/rebuild-csr-xml.sh: Updated.
2869
2b4e6a3f
TT
28702020-06-11 Tom Tromey <tom@tromey.com>
2871
2872 PR gdb/18318:
2873 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
2874
4412332f
JG
28752020-06-09 Jonny Grant <jg@jguk.org>
28762020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
2877
2878 * main.c (captured_main_1): Don't print new line after help.
2879 (print_gdb_help): add mailing list and IRC channel information
2880 to --help. Add new lines between items in the footer. Remove
2881 quotes around bug url.
2882
2f33032a
KS
28832020-06-11 Keith Seitz <keiths@redhat.com>
2884
2885 PR gdb/21356
2886 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
2887 Resolve typedefs for type length calculations.
2888
7ab96794
TV
28892020-06-10 Tom de Vries <tdevries@suse.de>
2890
2891 PR ada/24713
2892 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
2893 (write_psymbols): Enable .gdb_index for ada.
2894 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
2895 ada.
2896
e5f3ece2
TV
28972020-06-10 Tom de Vries <tdevries@suse.de>
2898
2899 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
2900 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
2901 namei" instead of "const char *name" argument.
2902 (dw2_map_matching_symbols): Use "offset_type namei" variant of
2903 dw2_symtab_iter_init.
2904
940da03e
SM
29052020-06-08 Simon Marchi <simon.marchi@efficios.com>
2906
2907 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
2908 to use type::field and field::type instead.
2909
b6cdac4b
SM
29102020-06-08 Simon Marchi <simon.marchi@efficios.com>
2911
2912 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
2913 to use field::type instead.
2914
5d14b6e5
SM
29152020-06-08 Simon Marchi <simon.marchi@efficios.com>
2916
2917 * gdbtypes.h (struct field) <type, set_type>: New methods.
2918 Rename `type` field to...
2919 <m_type>: ... this. Change references throughout to use type or
2920 set_type methods.
2921 (FIELD_TYPE): Use field::type. Change call sites that modify
2922 the field's type to use field::set_type instead.
2923
3d967001
SM
29242020-06-08 Simon Marchi <simon.marchi@efficios.com>
2925
2926 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
2927 to use type::index_type instead.
2928
262abc0d
SM
29292020-06-08 Simon Marchi <simon.marchi@efficios.com>
2930
2931 * gdbtypes.h (struct type) <index_type, set_index_type>: New
2932 methods.
2933 (TYPE_INDEX_TYPE): Use type::index_type.
2934 * gdbtypes.c (create_array_type_with_stride): Likewise.
2935
82836c92
TT
29362020-06-07 Tom Tromey <tom@tromey.com>
2937
2938 * valprint.c (generic_val_print_float): Remove "embedded_offset"
2939 parameter.
2940 (generic_value_print): Update.
2941
940dace9
AB
29422020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
2943
2944 Revert commit 982a38f60b0.
2945 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
2946
982a38f6
AB
29472020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
2948
2949 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
2950 avoid use after free.
2951
82f06518
TV
29522020-06-05 Tom de Vries <tdevries@suse.de>
2953
2954 * NEWS: Fix typos.
2955
f8c41851
SM
29562020-06-04 Simon Marchi <simon.marchi@efficios.com>
2957
2958 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
2959 the per_bfd object.
2960 (dwarf2_read_debug_names): Likewise.
2961 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
2962 object when re-using a per_bfd object with an index.
2963
f9b5d5ea
TV
29642020-06-03 Tom de Vries <tdevries@suse.de>
2965
2966 PR symtab/26046
2967 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
2968 children for C++.
2969 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
2970 DW_TAG_subprogram.
2971
f6eee2d0
AB
29722020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2973
2974 * ada-lang.c (ada_language_data): Delete skip_trampoline
2975 initializer.
2976 * c-lang.c (c_language_data): Likewise.
2977 (cplus_language_data): Likewise.
2978 (cplus_language::skip_trampoline): New member function.
2979 (asm_language_data): Delete skip_trampoline initializer.
2980 (minimal_language_data): Likewise.
2981 * d-lang.c (d_language_data): Likewise.
2982 * f-lang.c (f_language_data): Likewise.
2983 * go-lang.c (go_language_data): Likewise.
2984 * language.c (unk_lang_trampoline): Delete function.
2985 (skip_language_trampoline): Update.
2986 (unknown_language_data): Delete skip_trampoline initializer.
2987 (auto_language_data): Likewise.
2988 * language.h (language_data): Delete skip_trampoline field.
2989 (language_defn::skip_trampoline): New function.
2990 * m2-lang.c (m2_language_data): Delete skip_trampoline
2991 initializer.
2992 * objc-lang.c (objc_skip_trampoline): Delete function, move
2993 implementation to objc_language::skip_trampoline.
2994 (objc_language_data): Delete skip_trampoline initializer.
2995 (objc_language::skip_trampoline): New member function with
2996 implementation from objc_skip_trampoline.
2997 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
2998 initializer.
2999 * p-lang.c (pascal_language_data): Likewise.
3000 * rust-lang.c (rust_language_data): Likewise.
3001
0a50df5d
AB
30022020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3003
3004 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
3005 (ada_language::demangle): New member function.
3006 * c-lang.c (c_language_data): Delete la_demangle initializer.
3007 (cplus_language_data): Delete la_demangle initializer.
3008 (cplus_language::demangle): New member function.
3009 (asm_language_data): Delete la_demangle initializer.
3010 (minimal_language_data): Delete la_demangle initializer.
3011 * d-lang.c (d_language_data): Delete la_demangle initializer.
3012 (d_language::demangle): New member function.
3013 * f-lang.c (f_language_data): Delete la_demangle initializer.
3014 (f_language::demangle): New member function.
3015 * go-lang.c (go_language_data): Delete la_demangle initializer.
3016 (go_language::demangle): New member function.
3017 * language.c (language_demangle): Update.
3018 (unk_lang_demangle): Delete.
3019 (unknown_language_data): Delete la_demangle initializer.
3020 (unknown_language::demangle): New member function.
3021 (auto_language_data): Delete la_demangle initializer.
3022 (auto_language::demangle): New member function.
3023 * language.h (language_data): Delete la_demangle field.
3024 (language_defn::demangle): New function.
3025 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
3026 * objc-lang.c (objc_language_data): Delete la_demangle
3027 initializer.
3028 (objc_language::demangle): New member function.
3029 * opencl-lang.c (opencl_language_data): Delete la_demangle
3030 initializer.
3031 * p-lang.c (pascal_language_data): Likewise.
3032 * rust-lang.c (rust_language_data): Likewise.
3033 (rust_language::demangle): New member function.
3034
fbfb0a46
AB
30352020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3036
3037 * ada-lang.c (ada_language_data): Delete la_print_type
3038 initializer.
3039 (ada_language::print_type): New member function.
3040 * c-lang.c (c_language_data): Delete la_print_type initializer.
3041 (c_language::print_type): New member function.
3042 (cplus_language_data): Delete la_print_type initializer.
3043 (cplus_language::print_type): New member function.
3044 (asm_language_data): Delete la_print_type initializer.
3045 (asm_language::print_type): New member function.
3046 (minimal_language_data): Delete la_print_type initializer.
3047 (minimal_language::print_type): New member function.
3048 * d-lang.c (d_language_data): Delete la_print_type initializer.
3049 (d_language::print_type): New member function.
3050 * f-lang.c (f_language_data): Delete la_print_type initializer.
3051 (f_language::print_type): New member function.
3052 * go-lang.c (go_language_data): Delete la_print_type initializer.
3053 (go_language::print_type): New member function.
3054 * language.c (unk_lang_print_type): Delete.
3055 (unknown_language_data): Delete la_print_type initializer.
3056 (unknown_language::print_type): New member function.
3057 (auto_language_data): Delete la_print_type initializer.
3058 (auto_language::print_type): New member function.
3059 * language.h (language_data): Delete la_print_type field.
3060 (language_defn::print_type): New function.
3061 (LA_PRINT_TYPE): Update.
3062 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
3063 (m2_language::print_type): New member function.
3064 * objc-lang.c (objc_language_data): Delete la_print_type
3065 initializer.
3066 (objc_language::print_type): New member function.
3067 * opencl-lang.c (opencl_print_type): Delete, implementation moved
3068 to opencl_language::print_type.
3069 (opencl_language_data): Delete la_print_type initializer.
3070 (opencl_language::print_type): New member function, implementation
3071 from opencl_print_type.
3072 * p-lang.c (pascal_language_data): Delete la_print_type
3073 initializer.
3074 (pascal_language::print_type): New member function.
3075 * rust-lang.c (rust_print_type): Delete, implementation moved to
3076 rust_language::print_type.
3077 (rust_language_data): Delete la_print_type initializer.
3078 (rust_language::print_type): New member function, implementation
3079 from rust_print_type.
3080
6f827019
AB
30812020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3082
3083 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
3084 implementation moves to...
3085 (ada_language::sniff_from_mangled_name): ...here. Update return
3086 type.
3087 (ada_language_data): Delete la_sniff_from_mangled_name
3088 initializer.
3089 * c-lang.c (c_language_data): Likewise.
3090 (cplus_language_data): Likewise.
3091 (cplus_language::sniff_from_mangled_name): New member function,
3092 implementation taken from gdb_sniff_from_mangled_name.
3093 (asm_language_data): Delete la_sniff_from_mangled_name
3094 initializer.
3095 (minimal_language_data): Likewise.
3096 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
3097 implementation moves to cplus_language::sniff_from_mangled_name.
3098 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
3099 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
3100 moves to...
3101 (d_language::sniff_from_mangled_name): ...here.
3102 (d_language_data): Delete la_sniff_from_mangled_name initializer.
3103 * f-lang.c (f_language_data): Likewise.
3104 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
3105 moves to...
3106 (go_language::sniff_from_mangled_name): ...here.
3107 (go_language_data): Delete la_sniff_from_mangled_name initializer.
3108 * language.c (language_sniff_from_mangled_name): Delete.
3109 (unknown_language_data): Delete la_sniff_from_mangled_name
3110 initializer.
3111 (auto_language_data): Likewise.
3112 * language.h (language_data): Delete la_sniff_from_mangled_name
3113 field.
3114 (language_defn::sniff_from_mangled_name): New function.
3115 (language_sniff_from_mangled_name): Delete declaration.
3116 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
3117 field.
3118 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
3119 implementation moves to...
3120 (objc_language::sniff_from_mangled_name): ...here.
3121 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
3122 * opencl-lang.c (opencl_language_data): Likewise.
3123 * p-lang.c (pascal_language_data): Likewise.
3124 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
3125 implementation moves to...
3126 (rust_language::sniff_from_mangled_name): ...here.
3127 (rust_language_data): Delete la_sniff_from_mangled_name
3128 initializer.
3129 * symtab.c (symbol_find_demangled_name): Call
3130 sniff_from_mangled_name member function.
3131
fb8006fd
AB
31322020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3133
3134 * ada-lang.c (ada_language_data): Delete la_search_name_hash
3135 initializer.
3136 * c-lang.c (c_language_data): Likewise.
3137 (cplus_language_data): Likewise.
3138 (cplus_language::search_name_hash): New member function.
3139 (asm_language_data): Delete la_search_name_hash initializer.
3140 (minimal_language_data): Likewise.
3141 * d-lang.c (d_language_data): Likewise.
3142 * dictionary.c (default_search_name_hash): Rename to...
3143 (language_defn::search_name_hash): ...this.
3144 * f-lang.c (f_language_data): Likewise.
3145 (f_language::search_name_hash): New member function.
3146 * go-lang.c (go_language_data): Delete la_search_name_hash
3147 initializer.
3148 * language.c (unknown_language_data): Likewise.
3149 (auto_language_data): Likewise.
3150 * language.h (struct language_data): Delete la_search_name_hash
3151 field.
3152 (language_defn::search_name_hash): Declare new member function.
3153 (default_search_name_hash): Delete declaration.
3154 * m2-lang.c (m2_language_data): Delete la_search_name_hash
3155 initializer.
3156 * objc-lang.c (objc_language_data): Likewise.
3157 * opencl-lang.c (opencl_language_data): Likewise.
3158 * p-lang.c (pascal_language_data): Likewise.
3159 * rust-lang.c (rust_language_data): Likewise.
3160 * symtab.c (search_name_hash): Update call.
3161
8e25bafe
AB
31622020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3163
3164 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
3165 initializer.
3166 * c-lang.c (class compile_instance): Declare.
3167 (c_language_data): Delete la_get_compile_instance initializer.
3168 (c_language::get_compile_instance): New member function.
3169 (cplus_language_data): Delete la_get_compile_instance initializer.
3170 (cplus_language::get_compile_instance): New member function.
3171 (asm_language_data): Delete la_get_compile_instance initializer.
3172 (minimal_language_data): Likewise.
3173 * c-lang.h (c_get_compile_context): Update comment.
3174 (cplus_get_compile_context): Update comment.
3175 * compile/compile.c (compile_to_object): Update calls, don't rely
3176 on function pointer being NULL.
3177 * d-lang.c (d_language_data): Delete la_get_compile_instance
3178 initializer.
3179 * f-lang.c (f_language_data): Likewise.
3180 * go-lang.c (go_language_data): Likewise.
3181 * language.c (unknown_language_data): Likewise.
3182 (auto_language_data): Likewise.
3183 * language.h (language_data): Delete la_get_compile_instance field.
3184 (language_defn::get_compile_instance): New member function.
3185 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
3186 initializer.
3187 * objc-lang.c (objc_language_data): Likewise.
3188 * opencl-lang.c (opencl_language_data): Likewise.
3189 * p-lang.c (pascal_language_data): Likewise.
3190 * rust-lang.c (rust_language_data): Likewise.
3191
4009ee92
AB
31922020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3193
3194 * ada-lang.c (ada_add_all_symbols): Update comment.
3195 (ada_iterate_over_symbols): Delete, move implementation to...
3196 (ada_language::iterate_over_symbols): ...here, a new member
3197 function, rewrite to use range based for loop.
3198 (ada_language_data): Delete la_iterate_over_symbols initializer.
3199 * c-lang.c (c_language_data): Likewise.
3200 (cplus_language_data): Likewise.
3201 (asm_language_data): Likewise.
3202 (minimal_language_data): Likewise.
3203 * d-lang.c (d_language_data): Likewise.
3204 * f-lang.c (f_language_data): Likewise.
3205 * go-lang.c (go_language_data): Likewise.
3206 * language.c (unknown_language_data): Likewise.
3207 (auto_language_data): Likewise.
3208 * language.h (language_data): Delete la_iterate_over_symbols field.
3209 (language_defn::iterate_over_symbols): New member function.
3210 (LA_ITERATE_OVER_SYMBOLS): Update.
3211 * linespec.c (iterate_over_all_matching_symtabs): Update.
3212 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
3213 initializer.
3214 * objc-lang.c (objc_language_data): Likewise.
3215 * opencl-lang.c (opencl_language_data): Likewise.
3216 * p-lang.c (pascal_language_data): Likewise.
3217 * rust-lang.c (rust_language_data): Likewise.
3218
54f4ca46
AB
32192020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3220
3221 * ada-lang.c (ada_language_data): Delete
3222 la_lookup_transparent_type initializer.
3223 * c-lang.c (c_language_data): Likewise.
3224 (cplus_language_data): Likewise.
3225 (cplus_language::lookup_transparent_type): New member function.
3226 (asm_language_data): Delete la_lookup_transparent_type
3227 initializer.
3228 (minimal_language_data): Likewise.
3229 * d-lang.c (d_language_data): Likewise.
3230 * f-lang.c (f_language_data): Likewise.
3231 * go-lang.c (go_language_data): Likewise.
3232 * language.c (unknown_language_data): Likewise.
3233 (auto_language_data): Likewise.
3234 * language.h (struct language_data): Delete
3235 la_lookup_transparent_type field.
3236 (language_defn::lookup_transparent_type): New member function.
3237 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
3238 initializer.
3239 * objc-lang.c (objc_language_data): Likewise.
3240 * opencl-lang.c (opencl_language_data): Likewise.
3241 * p-lang.c (pascal_language_data): Likewise.
3242 * rust-lang.c (rust_language_data): Likewise.
3243 * symtab.c (symbol_matches_domain): Update call.
3244
1fb314aa
AB
32452020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3246
3247 * ada-lang.c (ada_language_arch_info): Delete function, move
3248 implementation to...
3249 (ada_language::language_arch_info): ...here, a new member
3250 function.
3251 (ada_language_data): Delete la_language_arch_info.
3252 * c-lang.c (c_language_data): Likewise.
3253 (c_language::language_arch_info): New member function.
3254 (cplus_language_arch_info): Delete function, move
3255 implementation to...
3256 (cplus_language::language_arch_info): ...here, a new member
3257 function.
3258 (cplus_language_data): Delete la_language_arch_info.
3259 (asm_language_data): Likewise.
3260 (asm_language::language_arch_info): New member function.
3261 (minimal_language_data): Delete la_language_arch_info.
3262 (minimal_language::language_arch_info): New member function.
3263 * d-lang.c (d_language_arch_info): Delete function, move
3264 implementation to...
3265 (d_language::language_arch_info): ...here, a new member
3266 function.
3267 (d_language_data): Delete la_language_arch_info.
3268 * f-lang.c (f_language_arch_info): Delete function, move
3269 implementation to...
3270 (f_language::language_arch_info): ...here, a new member
3271 function.
3272 (f_language_data): Delete la_language_arch_info.
3273 * go-lang.c (go_language_arch_info): Delete function, move
3274 implementation to...
3275 (go_language::language_arch_info): ...here, a new member
3276 function.
3277 (go_language_data): Delete la_language_arch_info.
3278 * language.c (unknown_language_data): Likewise.
3279 (unknown_language::language_arch_info): New member function.
3280 (auto_language_data): Delete la_language_arch_info.
3281 (auto_language::language_arch_info): New member function.
3282 (language_gdbarch_post_init): Update call to
3283 la_language_arch_info.
3284 * language.h (language_data): Delete la_language_arch_info
3285 function pointer.
3286 (language_defn::language_arch_info): New function.
3287 * m2-lang.c (m2_language_arch_info): Delete function, move
3288 implementation to...
3289 (m2_language::language_arch_info): ...here, a new member
3290 function.
3291 (m2_language_data): Delete la_language_arch_info.
3292 * objc-lang.c (objc_language_arch_info): Delete function, move
3293 implementation to...
3294 (objc_language::language_arch_info): ...here, a new member
3295 function.
3296 (objc_language_data): Delete la_language_arch_info.
3297 * opencl-lang.c (opencl_language_arch_info): Delete function, move
3298 implementation to...
3299 (opencl_language::language_arch_info): ...here, a new member
3300 function.
3301 (opencl_language_data): Delete la_language_arch_info.
3302 * p-lang.c (pascal_language_arch_info): Delete function, move
3303 implementation to...
3304 (pascal_language::language_arch_info): ...here, a new member
3305 function.
3306 (pascal_language_data): Delete la_language_arch_info.
3307 * rust-lang.c (rust_language_arch_info): Delete function, move
3308 implementation to...
3309 (rust_language::language_arch_info): ...here, a new member
3310 function.
3311 (rust_language_data): Delete la_language_arch_info.
3312
48448202
AB
33132020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3314
3315 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
3316 initializer.
3317 * c-lang.c (c_language_data): Likewise.
3318 (cplus_language_data): Likewise.
3319 (cplus_language::pass_by_reference_info): New method.
3320 (asm_language_data): Delete la_pass_by_reference initializer.
3321 (minimal_language_data): Likewise.
3322 * cp-abi.c (cp_pass_by_reference): Remove use of
3323 default_pass_by_reference.
3324 * d-lang.c (d_language_data): Likewise.
3325 * f-lang.c (f_language_data): Likewise.
3326 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
3327 default_pass_by_reference.
3328 * go-lang.c (go_language_data): Likewise.
3329 * language.c (language_pass_by_reference): Update.
3330 (default_pass_by_reference): Delete.
3331 (unknown_language_data): Delete la_pass_by_reference
3332 initializer.
3333 (auto_language_data): Likewise.
3334 * language.h (struct language_data): Delete la_pass_by_reference
3335 field.
3336 (language_defn::pass_by_reference_info): New member function.
3337 (default_pass_by_reference): Delete declaration.
3338 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
3339 initializer.
3340 * objc-lang.c (objc_language_data): Likewise.
3341 * opencl-lang.c (opencl_language_data): Likewise.
3342 * p-lang.c (pascal_language_data): Likewise.
3343 * rust-lang.c (rust_language_data): Likewise.
3344
15e5fd35
AB
33452020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3346
3347 * ada-lang.c (ada_read_var_value): Delete function, move
3348 implementation to...
3349 (ada_language::read_var_value): ...here.
3350 (ada_language_data): Delete la_read_var_value initializer.
3351 * c-lang.c (c_language_data): Likewise.
3352 (cplus_language_data): Likewise.
3353 (minimal_language_data): Likewise.
3354 * d-lang.c (d_language_data): Likewise.
3355 * f-lang.c (f_language_data): Likewise.
3356 * findvar.c (default_read_var_value): Rename to...
3357 (language_defn::read_var_value): ...this.
3358 * findvar.c (read_var_value): Update header comment, and change to
3359 call member function instead of function pointer.
3360 * go-lang.c (go_language_data): Likewise.
3361 * language.c (unknown_language_data): Delete la_read_var_value
3362 initializer.
3363 (auto_language_data): Likewise.
3364 * language.h (struct language_data): Delete la_read_var_value
3365 field.
3366 (language_defn::read_var_value): New member function.
3367 (default_read_var_value): Delete declaration.
3368 * m2-lang.c (m2_language_data): Delete la_read_var_value
3369 initializer.
3370 * objc-lang.c (objc_language_data): Likewise.
3371 * opencl-lang.c (opencl_language_data): Likewise.
3372 * p-lang.c (pascal_language_data): Likewise.
3373 * rust-lang.c (rust_language_data): Likewise.
3374 * value.h (default_read_var_value): Delete declaration.
3375
5bd40f2a
AB
33762020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3377
3378 * ada-lang.c (ada_print_array_index): Delete function, move
3379 implementation to...
3380 (ada_language::print_array_index): ...here.
3381 (ada_language_data): Delete la_print_array_index initializer.
3382 * c-lang.c (c_language_data): Likewise.
3383 (cplus_language_data): Likewise.
3384 (minimal_language_data): Likewise.
3385 * d-lang.c (d_language_data): Likewise.
3386 * f-lang.c (f_language_data): Likewise.
3387 * go-lang.c (go_language_data): Likewise.
3388 * language.c (default_print_array_index): Delete function, move
3389 implementation to...
3390 (language_defn::print_array_index): ...here.
3391 (unknown_language_data): Delete la_print_array_index initializer.
3392 (auto_language_data): Likewise.
3393 * language.h (struct language_data): Delete la_print_array_index
3394 field.
3395 (language_defn::print_array_index): New member function.
3396 (LA_PRINT_ARRAY_INDEX): Update.
3397 (default_print_array_index): Delete declaration.
3398 * m2-lang.c (m2_language_data): Delete la_print_array_index
3399 initializer.
3400 * objc-lang.c (objc_language_data): Likewise.
3401 * opencl-lang.c (opencl_language_data): Likewise.
3402 * p-lang.c (pascal_language_data): Likewise.
3403 * rust-lang.c (rust_language_data): Likewise.
3404
0874fd07
AB
34052020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3406
3407 * gdb/ada-lang.c (ada_language_defn): Convert to...
3408 (ada_language_data): ...this.
3409 (class ada_language): New class.
3410 (ada_language_defn): New static global.
3411 * gdb/c-lang.c (c_language_defn): Convert to...
3412 (c_language_data): ...this.
3413 (class c_language): New class.
3414 (c_language_defn): New static global.
3415 (cplus_language_defn): Convert to...
3416 (cplus_language_data): ...this.
3417 (class cplus_language): New class.
3418 (cplus_language_defn): New static global.
3419 (asm_language_defn): Convert to...
3420 (asm_language_data): ...this.
3421 (class asm_language): New class.
3422 (asm_language_defn): New static global.
3423 (minimal_language_defn): Convert to...
3424 (minimal_language_data): ...this.
3425 (class minimal_language): New class.
3426 (minimal_language_defn): New static global.
3427 * gdb/d-lang.c (d_language_defn): Convert to...
3428 (d_language_data): ...this.
3429 (class d_language): New class.
3430 (d_language_defn): New static global.
3431 * gdb/f-lang.c (f_language_defn): Convert to...
3432 (f_language_data): ...this.
3433 (class f_language): New class.
3434 (f_language_defn): New static global.
3435 * gdb/go-lang.c (go_language_defn): Convert to...
3436 (go_language_data): ...this.
3437 (class go_language): New class.
3438 (go_language_defn): New static global.
3439 * gdb/language.c (unknown_language_defn): Remove declaration.
3440 (current_language): Initialize to nullptr, real initialization is
3441 moved to _initialize_language.
3442 (languages): Delete global.
3443 (language_defn::languages): Define.
3444 (set_language_command): Use language_defn::languages.
3445 (set_language): Likewise.
3446 (range_error): Likewise.
3447 (language_enum): Likewise.
3448 (language_def): Likewise.
3449 (add_set_language_command): Use language_def::languages for the
3450 language list, and language_def to lookup language pointers.
3451 (skip_language_trampoline): Use language_defn::languages.
3452 (unknown_language_defn): Convert to...
3453 (unknown_language_data): ...this.
3454 (class unknown_language): New class.
3455 (unknown_language_defn): New static global.
3456 (auto_language_defn): Convert to...
3457 (auto_language_data): ...this.
3458 (class auto_language): New class.
3459 (auto_language_defn): New static global.
3460 (language_gdbarch_post_init): Use language_defn::languages.
3461 (_initialize_language): Initialize current_language.
3462 * gdb/language.h (struct language_defn): Rename to...
3463 (struct language_data): ...this.
3464 (struct language_defn): New.
3465 (auto_language_defn): Delete.
3466 (unknown_language_defn): Delete.
3467 (minimal_language_defn): Delete.
3468 (ada_language_defn): Delete.
3469 (asm_language_defn): Delete.
3470 (c_language_defn): Delete.
3471 (cplus_language_defn): Delete.
3472 (d_language_defn): Delete.
3473 (f_language_defn): Delete.
3474 (go_language_defn): Delete.
3475 (m2_language_defn): Delete.
3476 (objc_language_defn): Delete.
3477 (opencl_language_defn): Delete.
3478 (pascal_language_defn): Delete.
3479 (rust_language_defn): Delete.
3480 * gdb/m2-lang.c (m2_language_defn): Convert to...
3481 (m2_language_data): ...this.
3482 (class m2_language): New class.
3483 (m2_language_defn): New static global.
3484 * gdb/objc-lang.c (objc_language_defn): Convert to...
3485 (objc_language_data): ...this.
3486 (class objc_language): New class.
3487 (objc_language_defn): New static global.
3488 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
3489 (opencl_language_data): ...this.
3490 (class opencl_language): New class.
3491 (opencl_language_defn): New static global.
3492 * gdb/p-lang.c (pascal_language_defn): Convert to...
3493 (pascal_language_data): ...this.
3494 (class pascal_language): New class.
3495 (pascal_language_defn): New static global.
3496 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
3497 language pointer, update comment format.
3498 * gdb/rust-lang.c (rust_language_defn): Convert to...
3499 (rust_language_data): ...this.
3500 (class rust_language): New class.
3501 (rust_language_defn): New static global.
3502
1313c56e
AB
35032020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
3504
3505 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
3506 member variable.
3507 <m_stmt_at_address>: New member variable.
3508 (lnp_state_machine::record_line): Don't record some lines, update
3509 tracking of is_stmt at the same address.
3510 (lnp_state_machine::lnp_state_machine): Initialise new member
3511 variables.
3512
b7ed9f3d
ST
35132020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
3514
3515 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
3516 "-include gnu-nat-mig.h".
3517 * gnu-nat-mig.h: New file.
3518 * gnu-nat.c: Include "gnu-nat-mig.h".
3519 (exc_server, msg_reply_server, notify_server,
3520 process_reply_server): Remove declarations.
3521
14a8ad62
ST
35222020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3523
3524 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
3525 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
3526 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
3527 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
3528 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
3529 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
3530 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
3531 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
3532 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
3533 to gnu_nat_target class.
3534 * gnu-nat.c: Likewise.
3535 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
3536 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
3537 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
3538 object.
3539 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
3540 instead of `gnu_target'.
3541
0af5e106
ST
35422020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3543
3544 * i386-gnu-tdep.c: Include "gdbcore.h"
3545 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
3546 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
3547 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
3548 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
3549 i386_gnu_sigcontext_addr): New functions
3550 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
3551 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
3552 tdep.
3553
078f2fc9
ST
35542020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3555
3556 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
3557 before fork_inferior call. Avoid calling it if target_is_pushed returns
3558 true.
3559
53dff92c
ST
35602020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3561
3562 * gnu-nat.h (gnu_target): New variable declaration.
3563 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
3564 gnu_target.
3565 * gnu-nat.c (gnu_target): New variable.
3566 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
3567 add_thread_silent, and add_thread calls.
3568 (gnu_nat_target::create_inferior): Pass gnu_target to
3569 add_thread_silent, thread_change_ptid call.
3570 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
3571 call.
3572
5a8b8627
ST
35732020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3574
3575 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
3576 (gnu_nat_target::find_memory_regions): Remove unused
3577 `old_address' variable.
3578
366f550a
ST
35792020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3580
3581 * gnu-nat.c: Include "gdbarch.h".
3582
f14871bf
ST
35832020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3584
3585 * reply_mig_hack.awk (Error return): Cast function through
3586 void *, to bypass compiler function call check.
3587
c6887cfb
ST
35882020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3589
3590 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
3591 $(srcdir)/reply_mig_hack.awk.
3592
6930bffe
ST
35932020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3594
3595 * gnu-nat.h (gnu_debug_flag): Set type to bool.
3596
112c22ed
JG
35972020-05-30 Jonny Grant <jg@jguk.org>
3598
3599 * configure.ac (ACX_BUGURL): change bug URL to https.
3600
f68f85b5
PA
36012020-05-30 Pedro Alves <palves@redhat.com>
3602
3603 * cp-support.c (replace_typedefs_template): New.
3604 (replace_typedefs_qualified_name): Handle
3605 DEMANGLE_COMPONENT_TEMPLATE.
3606
976ca316
SM
36072020-05-29 Simon Marchi <simon.marchi@efficios.com>
3608
3609 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
3610 dwarf2/index-cache.h, dwarf2/index-write.c,
3611 dwarf2/index-write.h, dwarf2/line-header.c,
3612 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
3613 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
3614 variables and fields from `dwarf2_per_objfile` to just
3615 `per_objfile` throughout.
3616
989ade05
SM
36172020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
3618
3619 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
3620 <push_dwarf_reg_entry_value>: Add comment.
3621
c47bae85
KB
36222020-05-28 Kevin Buettner <kevinb@redhat.com>
3623 Keith Seitz <keiths@redhat.com>
3624
3625 * python/python.c (do_start_initialization): Call PyEval_SaveThread
3626 instead of PyEval_ReleaseLock.
3627 (class gdbpy_gil): Move to earlier in file.
3628 (finalize_python): Set gdb_python_initialized.
3629 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
3630 when not initialized.
3631
44486dcf
SM
36322020-05-28 Simon Marchi <simon.marchi@efficios.com>
3633
3634 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
3635 <push_dwarf_reg_entry_value>: Remove assert. Override
3636 per_objfile with caller_per_objfile.
3637
f030440d
TV
36382020-05-28 Tom de Vries <tdevries@suse.de>
3639
3640 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
3641 PR gold/15646 workaround to symbol kind "type".
3642
f0fbb768
TT
36432020-05-27 Tom Tromey <tromey@adacore.com>
3644
3645 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
3646
af0b2a3e
TT
36472020-05-27 Tom Tromey <tromey@adacore.com>
3648
3649 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
3650 Use htab_find_with_hash.
3651 <add_abbrev>: Remove "abbrev_number" parameter.
3652 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
3653 "abbrev_number" parameter. Use htab_find_slot_with_hash.
3654 (hash_abbrev): Add comment.
3655 (abbrev_table::lookup_abbrev): Move to header file.
3656 (abbrev_table::read): Update.
3657
7d00ffec
TT
36582020-05-27 Tom Tromey <tromey@adacore.com>
3659
3660 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
3661 method.
3662 <canonical_name>: New member.
3663 <raw_name>: Rename from "name".
3664 (partial_die_info): Initialize canonical_name.
3665 (scan_partial_symbols): Check raw_name.
3666 (partial_die_parent_scope, partial_die_full_name)
3667 (add_partial_symbol, add_partial_subprogram)
3668 (add_partial_enumeration, load_partial_dies): Use "name" method.
3669 (partial_die_info::name): New method.
3670 (partial_die_info::read, guess_partial_die_structure_name)
3671 (partial_die_info::fixup): Update.
3672
697bba18
TT
36732020-05-27 Tom Tromey <tromey@adacore.com>
3674
3675 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
3676 <get_ref_die_offset>: Inline.
3677 <get_ref_die_offset_complaint>: New method.
3678 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
3679 (attribute::get_ref_die_offset_complaint): Rename from
3680 get_ref_die_offset. Just issue complaint.
3681
c17ace43
HD
36822020-05-27 Hannes Domani <ssbssa@yahoo.de>
3683
3684 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
3685
96445f0b
HD
36862020-05-27 Hannes Domani <ssbssa@yahoo.de>
3687
3688 * exec.c (exec_file_attach): Use errno value of first openp failure.
3689
ac637ec3
HD
36902020-05-27 Hannes Domani <ssbssa@yahoo.de>
3691
3692 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
3693 Don't close thread handle.
3694
17ee85fc
TT
36952020-05-27 Tom Tromey <tom@tromey.com>
3696 Simon Marchi <simon.marchi@efficios.com>
3697
3698 * objfiles.h (struct objfile) <partial_symtabs>: Now a
3699 shared_ptr.
3700 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
3701 member.
3702 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
3703 dwarf2_per_bfd_objfile_data_key>: New globals.
3704 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
3705 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
3706 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
3707 shared.
3708 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
3709 short-circuit when sharing.
3710 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
3711 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
3712
39b16f87
SM
37132020-05-27 Simon Marchi <simon.marchi@efficios.com>
3714
3715 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
3716 to...
3717 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
3718 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
3719
fcf23d5b
SM
37202020-05-27 Simon Marchi <simon.marchi@efficios.com>
3721
3722 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
3723 build_name_components, find_name_components_bounds>:
3724 Add per_objfile parameter.
3725 (struct mapped_index) <symbol_name_at>: Likewise.
3726 (struct mapped_debug_names): Remove constructor.
3727 <dwarf2_per_objfile>: Remove field.
3728 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
3729 (mapped_index_base::find_name_components_bounds,
3730 mapped_index_base::build_name_components,
3731 dw2_expand_symtabs_matching_symbol): Likewise.
3732 (class mock_mapped_index) <symbol_name_at>: Likewise.
3733 (check_match): Likewise.
3734 (check_find_bounds_finds): Likewise.
3735 (test_mapped_index_find_name_component_bounds): Update.
3736 (CHECK_MATCH): Update.
3737 (dw2_expand_symtabs_matching): Update.
3738 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
3739 per_objfile parameter.
3740 <find_vec_in_debug_names>: Likewise.
3741 <m_per_objfile>: New field.
3742 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
3743 parameter.
3744 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
3745 (dw2_debug_names_iterator::next): Update.
3746 (dw2_debug_names_lookup_symbol): Update.
3747 (dw2_debug_names_expand_symtabs_for_function): Update.
3748 (dw2_debug_names_map_matching_symbols): Update.
3749 (dw2_debug_names_expand_symtabs_matching): Update.
3750 (dwarf2_read_debug_names): Update.
3751
7188ed02
SM
37522020-05-27 Simon Marchi <simon.marchi@efficios.com>
3753
3754 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
3755 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
3756 move to dwarf2_per_objfile.
3757 <read_in_chain>: Remove.
3758 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
3759 remove_all_cus, age_comp_units>: New methods.
3760 <m_dwarf2_cus>: New member.
3761 (struct dwarf2_per_cu_data) <cu>: Remove.
3762 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
3763 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
3764 moved to methods of dwarf2_per_objfile.
3765 (dwarf2_clear_marks): Remove.
3766 (dwarf2_queue_item::~dwarf2_queue_item): Update.
3767 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
3768 (dwarf2_per_bfd::free_cached_comp_units): Remove.
3769 (dwarf2_per_objfile::remove_all_cus): New.
3770 (class free_cached_comp_units) <~free_cached_comp_units>:
3771 Update.
3772 (load_cu): Update.
3773 (dw2_do_instantiate_symtab): Adjust.
3774 (fill_in_sig_entry_from_dwo_entry): Adjust.
3775 (cutu_reader::init_tu_and_read_dwo_dies): Update.
3776 (cutu_reader::cutu_reader): Likewise.
3777 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
3778 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
3779 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
3780 and dwarf2_per_objfile::age_comp_units.
3781 (load_partial_comp_unit): Update.
3782 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
3783 (process_queue): Likewise.
3784 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
3785 backlink.
3786 (dwarf2_read_addr_index): Likewise.
3787 (follow_die_offset): Likewise.
3788 (dwarf2_fetch_die_loc_sect_off): Likewise.
3789 (dwarf2_fetch_constant_bytes): Likewise.
3790 (dwarf2_fetch_die_type_sect_off): Likewise.
3791 (follow_die_sig_1): Likewise.
3792 (load_full_type_unit): Likewise.
3793 (read_signatured_type): Likewise.
3794 (dwarf2_cu::dwarf2_cu): Don't set cu field.
3795 (dwarf2_cu::~dwarf2_cu): Remove.
3796 (dwarf2_per_objfile::get_cu): New.
3797 (dwarf2_per_objfile::set_cu): New.
3798 (age_cached_comp_units): Rename to...
3799 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
3800 to std::unordered_map.
3801 (free_one_cached_comp_unit): Rename to...
3802 (dwarf2_per_objfile::remove_cu): ... this. Adjust
3803 to std::unordered_map.
3804 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
3805 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
3806 a dwarf2_per_objfile in data.
3807 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
3808 (dwarf2_clear_marks): Remove.
3809
2e671100
SM
38102020-05-27 Simon Marchi <simon.marchi@efficios.com>
3811
3812 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
3813 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
3814 (init_tu_and_read_dwo_dies): Likewise.
3815 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
3816 (cutu_reader::cutu_reader): Likewise.
3817 (load_partial_comp_unit): Likewise.
3818 (process_psymtab_comp_unit): Update.
3819 (build_type_psymtabs_1): Update.
3820 (process_skeletonless_type_unit): Update.
3821 (load_full_comp_unit): Update.
3822 (find_partial_die): Update.
3823 (dwarf2_read_addr_index): Update.
3824 (read_signatured_type): Update.
3825
2e6a9f79
SM
38262020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3827
3828 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
3829 m_header_read_in>: New fields.
3830 <get_header>: New method.
3831 * dwarf2/read.c (per_cu_header_read_in): Remove.
3832 (dwarf2_per_cu_data::get_header): New.
3833 (dwarf2_per_cu_data::addr_size): Update.
3834 (dwarf2_per_cu_data::offset_size): Update.
3835 (dwarf2_per_cu_data::ref_addr_size): Update.
3836
1b555f17
SM
38372020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3838
3839 * dwarf2/read.c (load_cu): Return dwarf2_cu.
3840 (dw2_do_instantiate_symtab): Update.
3841 (queue_and_load_all_dwo_tus): Change parameter from
3842 dwarf2_per_cu_data to dwarf2_cu.
3843 (dwarf2_fetch_die_loc_sect_off): Update.
3844 (dwarf2_fetch_constant_bytes): Update.
3845 (dwarf2_fetch_die_type_sect_off): Update.
3846
8fc0b21d
SM
38472020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3848
3849 * dwarf2/read.c (process_full_comp_unit,
3850 process_full_type_unit): Remove per_cu, per_objfile paramters.
3851 Add dwarf2_cu parameter.
3852 (process_queue): Update.
3853
168c9250
SM
38542020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3855
3856 * dwarf2/read.c (create_cu_from_index_list): Replace
3857 dwarf2_per_objfile parameter with dwarf2_per_bfd.
3858 (create_cus_from_index_list): Likewise.
3859 (create_cus_from_index): Likewise.
3860 (create_signatured_type_table_from_index): Likewise.
3861 (create_cus_from_debug_names_list): Likewise.
3862 (create_cus_from_debug_names): Likewise.
3863 (dwarf2_read_gdb_index): Update.
3864 (dwarf2_read_debug_names): Update.
3865
e286671b
TT
38662020-05-27 Tom Tromey <tom@tromey.com>
3867 Simon Marchi <simon.marchi@efficios.com>
3868
3869 * dwarf2/read.h (struct dwarf2_per_objfile)
3870 <get_type_for_signatured_type, set_type_for_signatured_type>:
3871 New methods.
3872 <m_type_map>: New member.
3873 (struct signatured_type) <type>: Remove.
3874 * dwarf2/read.c
3875 (dwarf2_per_objfile::get_type_for_signatured_type,
3876 dwarf2_per_objfile::set_type_for_signatured_type): New.
3877 (get_signatured_type): Use new methods.
3878
8adb8487
TT
38792020-05-27 Tom Tromey <tom@tromey.com>
3880 Simon Marchi <simon.marchi@efficios.com>
3881
3882 * dwarf2/read.h (struct type_unit_group_unshareable): New.
3883 (struct dwarf2_per_objfile) <type_units>: New member.
3884 <get_type_unit_group_unshareable>: New method.
3885 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
3886 num_symtabs, symtabs>: Remove; move to
3887 type_unit_group_unshareable.
3888 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
3889 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
3890 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
3891
127bbf4b
SM
38922020-05-27 Simon Marchi <simon.marchi@efficios.com>
3893
3894 * dwarf2/read.h (struct dwarf2_per_cu_data):
3895 <dwarf2_per_objfile>: Remove.
3896 * dwarf2/read.c (create_cu_from_index_list): Don't assign
3897 dwarf2_per_objfile.
3898 (create_signatured_type_table_from_index): Likewise.
3899 (create_signatured_type_table_from_debug_names): Likewise.
3900 (create_debug_type_hash_table): Likewise.
3901 (fill_in_sig_entry_from_dwo_entry): Likewise.
3902 (create_type_unit_group): Likewise.
3903 (read_comp_units_from_section): Likewise.
3904 (create_cus_hash_table): Likewise.
3905
f6e649dd
SM
39062020-05-27 Simon Marchi <simon.marchi@efficios.com>
3907
3908 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
3909 dwarf2_per_cu_data::dwarf2_per_objfile.
3910 (compute_compunit_symtab_includes): Likewise.
3911 (dwarf2_cu::start_symtab): Likewise.
3912
aa66c379
SM
39132020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3914
3915 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
3916 parameter.
3917 * dwarf2/read.c (get_die_type_at_offset): Likewise.
3918 (read_namespace_alias): Update.
3919 (lookup_die_type): Update.
3920 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
3921 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
3922 Update.
3923 (disassemble_dwarf_expression): Update.
3924
120ce1b5
SM
39252020-05-27 Simon Marchi <simon.marchi@efficios.com>
3926
3927 * dwarf2/read.h (struct dwarf2_queue_item): Add
3928 dwarf2_per_objfile parameter, assign new parameter.
3929 <per_objfile>: New field.
3930 * dwarf2/read.c (free_one_cached_comp_unit): Add
3931 dwarf2_per_objfile parameter.
3932 (queue_comp_unit): Likewise.
3933 (dw2_do_instantiate_symtab): Update.
3934 (process_psymtab_comp_unit): Update.
3935 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
3936 (process_imported_unit_die): Update.
3937 (queue_and_load_dwo_tu): Update.
3938 (follow_die_offset): Update.
3939 (follow_die_sig_1): Update.
3940
9f47c707
SM
39412020-05-27 Simon Marchi <simon.marchi@efficios.com>
3942
3943 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
3944 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
3945 (read_call_site_scope): Assign per_objfile.
3946 (dwarf2_per_cu_data::objfile): Remove.
3947 * gdbtypes.h (struct call_site) <per_objfile>: New member.
3948 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
3949 dwarf2_per_objfile parameter.
3950 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
3951 dwarf2_per_objfile parameter.
3952 (dwarf_expr_reg_to_entry_parameter): Add output
3953 dwarf2_per_objfile parameter.
3954 (locexpr_get_frame_base): Update.
3955 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
3956 <push_dwarf_reg_entry_value>: Update.
3957 <call_site_to_target_addr>: Update.
3958 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
3959 parameter.
3960 (value_of_dwarf_reg_entry): Update.
3961 (rw_pieced_value): Update.
3962 (indirect_synthetic_pointer): Update.
3963 (dwarf2_evaluate_property): Update.
3964 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
3965 parameter.
3966 (locexpr_read_variable): Update.
3967 (locexpr_get_symbol_read_needs): Update.
3968 (loclist_read_variable): Update.
3969
14095eb3
SM
39702020-05-27 Simon Marchi <simon.marchi@efficios.com>
3971
3972 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
3973 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
3974 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
3975 parameter.
3976 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
3977 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
3978 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
3979 parameter.
3980 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
3981 sect_variable_value): Add dwarf2_per_objfile parameter.
3982 (class dwarf_evaluate_loc_desc) <dwarf_call,
3983 dwarf_variable_value>: Update.
3984 (fetch_const_value_from_synthetic_pointer): Add
3985 dwarf2_per_objfile parameter.
3986 (fetch_const_value_from_synthetic_pointer): Update.
3987 (coerced_pieced_ref): Update.
3988 (class symbol_needs_eval_context) <dwarf_call,
3989 dwarf_variable_value>: Update.
3990 (dwarf2_compile_expr_to_ax): Update.
3991
3c3cd3d4
SM
39922020-05-27 Simon Marchi <simon.marchi@efficios.com>
3993
3994 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
3995 parameter.
3996 (dwarf2_evaluate_loc_desc_full): Update.
3997
82ca3f51
SM
39982020-05-27 Simon Marchi <simon.marchi@efficios.com>
3999
4000 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
4001 parameter.
4002 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
4003 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
4004 dwarf2_per_objfile parameter.
4005 (decode_debug_loc_dwo_addresses): Likewise.
4006 (dwarf2_find_location_expression): Update.
4007 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
4008 (locexpr_describe_location_piece): Add dwarf2_per_objfile
4009 parameter.
4010 (disassemble_dwarf_expression): Add dwarf2_per_objfile
4011 parameter.
4012 (locexpr_describe_location_1): Likewise.
4013 (locexpr_describe_location): Update.
4014
4b167ea1
SM
40152020-05-27 Simon Marchi <simon.marchi@efficios.com>
4016
4017 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
4018 Remove.
4019 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
4020 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
4021 (dwarf2_compile_property_to_c): Update.
4022 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
4023 use text offset from objfile.
4024 (locexpr_tracepoint_var_ref): Update.
4025 (locexpr_generate_c_location): Update.
4026 (loclist_describe_location): Update.
4027 (loclist_tracepoint_var_ref): Update.
4028 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
4029 dwarf2_per_objfile parameter.
4030 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
4031 use text offset from objfile.
4032 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
4033
89b07335
SM
40342020-05-27 Simon Marchi <simon.marchi@efficios.com>
4035
4036 * dwarf2/expr.h (struct dwarf_expr_context)
4037 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
4038 <offset>: Remove.
4039 <per_objfile>: New member.
4040 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
4041 dwarf2_per_objfile parameter. Don't set offset, set
4042 per_objfile.
4043 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
4044 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
4045 a dwarf2_per_objfile object instead of an offset.
4046 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
4047 constructor.
4048 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
4049 to dwarf2_expr_executor constructor. Don't set offset.
4050 (dwarf2_fetch_cfa_info): Update.
4051 (struct dwarf2_frame_cache) <text_offset>: Remove.
4052 <per_objfile>: New field.
4053 (dwarf2_frame_cache): Update.
4054 (dwarf2_frame_prev_register): Update.
4055 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
4056 <dwarf_evaluate_loc_desc>: Add constructor.
4057 (dwarf2_evaluate_loc_desc_full): Update.
4058 (dwarf2_locexpr_baton_eval): Update.
4059 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
4060 Add constructor.
4061 (dwarf2_loc_desc_get_symbol_read_needs): Update.
4062
293e7e51
SM
40632020-05-27 Simon Marchi <simon.marchi@efficios.com>
4064
4065 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
4066 addr_sized_int_type>: Move to dwarf2_cu.
4067 <int_type>: Move to dwarf2_per_objfile.
4068 (struct dwarf2_per_objfile) <int_type>: Move here.
4069 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
4070 addr_sized_int_type>: Move here.
4071 (read_func_scope): Update.
4072 (read_array_type): Update.
4073 (read_tag_string_type): Update.
4074 (attr_to_dynamic_prop): Update.
4075 (dwarf2_per_cu_data::int_type): Rename to...
4076 (dwarf2_per_objfile::int_type): ... this.
4077 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
4078 (dwarf2_cu::addr_sized_int_type): ... this.
4079 (read_subrange_type): Update.
4080 (dwarf2_per_cu_data::addr_type): Rename to...
4081 (dwarf2_cu::addr_type): ... this.
4082 (set_die_type): Update.
4083
64874a40
SM
40842020-05-27 Simon Marchi <simon.marchi@efficios.com>
4085
4086 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
4087 data through per_cu->cu.
4088
4ab09049
SM
40892020-05-27 Simon Marchi <simon.marchi@efficios.com>
4090
4091 * dwarf2/read.c (lookup_dwo_comp_unit): Change
4092 dwarf2_per_cu_data parameter fo dwarf2_cu.
4093 (lookup_dwo_type_unit): Likewise.
4094 (read_cutu_die_from_dwo): Likewise.
4095 (lookup_dwo_unit): Likewise.
4096 (open_and_init_dwo_file): Likewise.
4097 (lookup_dwo_cutu): Likewise.
4098 (lookup_dwo_comp_unit): Likewise.
4099 (lookup_dwo_type_unit): Likewise.
4100 (cutu_reader::init_tu_and_read_dwo_dies): Update.
4101 (cutu_reader::cutu_reader): Update.
4102
47b14e86
SM
41032020-05-27 Simon Marchi <simon.marchi@efficios.com>
4104
4105 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
4106 parameter.
4107 (process_full_type_unit): Likewise.
4108 (process_queue): Update.
4109
43182c09
SM
41102020-05-27 Simon Marchi <simon.marchi@efficios.com>
4111
4112 * dwarf2/read.c (recursively_compute_inclusions): Add
4113 dwarf2_per_objfile parameter.
4114 (compute_compunit_symtab_includes): Likewise.
4115 (process_cu_includes): Update.
4116
7aa104c4
SM
41172020-05-27 Simon Marchi <simon.marchi@efficios.com>
4118
4119 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
4120 parameter.
4121 (create_type_unit_group): Update.
4122 (process_psymtab_comp_unit_reader): Update.
4123 (build_type_psymtabs_reader): Update.
4124
e3beb21d
SM
41252020-05-27 Simon Marchi <simon.marchi@efficios.com>
4126
4127 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
4128 object through m_this_cu->cu.
4129
d460f660
SM
41302020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4131
4132 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
4133 the info parameter.
4134 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
4135
ab432490
SM
41362020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4137
4138 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
4139 per_objfile parameter.
4140 (load_full_type_unit): Add per_objfile parameter.
4141 (read_signatured_type): Likewise.
4142 (load_full_comp_unit): Likewise.
4143 (load_cu): Likewise.
4144 (dw2_do_instantiate_symtab): Likewise.
4145 (dw2_get_file_names): Likewise.
4146 (dw2_map_symtabs_matching_filename): Update.
4147 (dw_expand_symtabs_matching_file_matcher): Update.
4148 (dw2_map_symbol_filenames): Update.
4149 (process_psymtab_comp_unit): Add per_objfile parameter.
4150 (build_type_psymtabs_1): Update.
4151 (process_skeletonless_type_unit): Update.
4152 (dwarf2_build_psymtabs_hard): Update.
4153 (load_partial_comp_unit): Add per_objfile parameter.
4154 (scan_partial_symbols): Update.
4155 (load_full_comp_unit): Add per_objfile parameter.
4156 (process_imported_unit_die): Update.
4157 (create_cus_hash_table): Update.
4158 (find_partial_die): Update.
4159 (dwarf2_read_addr_index): Update.
4160 (follow_die_offset): Update.
4161 (dwarf2_fetch_die_loc_sect_off): Update.
4162 (dwarf2_fetch_constant_bytes): Update.
4163 (dwarf2_fetch_die_type_sect_off): Update.
4164 (follow_die_sig_1): Update.
4165 (load_full_type_unit): Add per_objfile parameter.
4166 (read_signatured_type): Likewise.
4167
313bad1b
SM
41682020-05-27 Simon Marchi <simon.marchi@efficios.com>
4169
4170 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
4171 of objfile_name.
4172
c3699833
SM
41732020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4174
4175 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
4176 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
4177 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
4178 field.
4179 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
4180 (create_cus_from_index): Update.
4181 (dwarf2_read_gdb_index): Update.
4182 (create_cus_from_debug_names): Update.
4183 (dwarf2_read_debug_names): Update.
4184 (get_abbrev_section_for_cu): Update.
4185 (create_all_comp_units): Update.
4186 (read_attribute_value): Update.
4187 (get_debug_line_section): Update.
4188 * dwarf2/index-cache.c (index_cache::store): Update.
4189 * dwarf2/index-write.c (save_gdb_index_command): Update.
4190 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
4191
1859c670
SM
41922020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4193
4194 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
4195 member.
4196 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
4197 dwarf2_per_cu_data::per_bfd.
4198 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
4199 (create_type_unit_group): Likewise.
4200 (queue_comp_unit): Remove reference to
4201 per_cu->dwarf2_per_objfile.
4202 (maybe_queue_comp_unit): Likewise.
4203 (fill_in_sig_entry_from_dwo_entry): Assign new field.
4204 (create_cus_hash_table): Assign new field.
4205
5e22e966
SM
42062020-05-27 Simon Marchi <simon.marchi@efficios.com>
4207
4208 * dwarf2/read.c: Replace
4209 dwarf2_cu->per_cu->dwarf2_per_objfile references with
4210 dwarf2_cu->per_objfile throughout.
4211
97a1449a
SM
42122020-05-27 Simon Marchi <simon.marchi@efficios.com>
4213
4214 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
4215 parameter, don't use per_cu->dwarf2_per_objfile.
4216 (dw2_instantiate_symtab): Likewise.
4217 (dw2_find_last_source_symtab): Update.
4218 (dw2_map_expand_apply): Update.
4219 (dw2_lookup_symbol): Update.
4220 (dw2_expand_symtabs_for_function): Update.
4221 (dw2_expand_all_symtabs): Update.
4222 (dw2_expand_symtabs_with_fullname): Update.
4223 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
4224 don't use per_cu->dwarf2_per_objfile.
4225 (dw2_expand_marked_cus): Update.
4226 (dw2_find_pc_sect_compunit_symtab): Update.
4227 (dw2_debug_names_lookup_symbol): Update.
4228 (dw2_debug_names_expand_symtabs_for_function): Update.
4229 (dw2_debug_names_map_matching_symbols): Update.
4230 (dwarf2_psymtab::expand_psymtab): Update.
4231
9e021579
SM
42322020-05-27 Simon Marchi <simon.marchi@efficios.com>
4233
4234 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
4235 <per_objfile>: New member.
4236 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
4237 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
4238 call to dwarf2_cu.
4239 (cutu_reader::cutu_reader): Update.
4240 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
4241
ae090bdb
SM
42422020-05-27 Simon Marchi <simon.marchi@efficios.com>
4243
4244 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
4245 struct dwarf2_per_objfile.
4246 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
4247 dwarf2_per_bfd.
4248 * dwarf2/read.c (set_die_type): Update.
4249 (get_die_type_at_offset): Update.
4250
af758d11
SM
42512020-05-27 Tom Tromey <tom@tromey.com>
4252 Simon Marchi <simon.marchi@efficios.com>
4253
4254 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
4255 method.
4256 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
4257 get_symtab, set_symtab>: New methods.
4258 <m_symtabs>: New field.
4259 (struct dwarf2_psymtab): Derive from partial_symtab.
4260 <readin_p, get_compunit_symtab>: Declare methods.
4261 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
4262 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
4263 New methods.
4264 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
4265 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
4266 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
4267 (dw2_symtab_iter_next, dw2_print_stats)
4268 (dw2_expand_symtabs_with_fullname)
4269 (dw2_expand_symtabs_matching_one)
4270 (dw_expand_symtabs_matching_file_matcher)
4271 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
4272 (dw2_debug_names_iterator::next)
4273 (dw2_debug_names_map_matching_symbols)
4274 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
4275 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
4276 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
4277 New methods.
4278 (get_compunit_symtab, process_full_comp_unit)
4279 (process_full_type_unit): Update.
4280 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
4281
5989a64e
SM
42822020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4283
4284 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
4285 then introduce a new dwarf2_per_objfile type.
4286 <read_line_string>: Move to the new dwarf2_per_objfile type.
4287 <objfile>: Likewise.
4288 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
4289 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
4290 dwarf2_per_objfile->per_bfd.
4291 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
4292 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
4293 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
4294 (dwarf2_per_bfd::free_cached_comp_units): ... this.
4295 (dwarf2_has_info): Allocate dwarf2_per_bfd.
4296 (dwarf2_per_objfile::locate_sections): Rename to...
4297 (dwarf2_per_bfd::locate_sections): ... this.
4298 (dwarf2_per_objfile::get_cutu): Rename to...
4299 (dwarf2_per_bfd::get_cutu): ... this.
4300 (dwarf2_per_objfile::get_cu): Rename to...
4301 (dwarf2_per_bfd::get_cu): ... this.
4302 (dwarf2_per_objfile::get_tu): Rename to...
4303 (dwarf2_per_bfd::get_tu): ... this.
4304 (dwarf2_per_objfile::allocate_per_cu): Rename to...
4305 (dwarf2_per_bfd::allocate_per_cu): ... this.
4306 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
4307 (dwarf2_per_bfd::allocate_signatured_type): ... this.
4308 (get_gdb_index_contents_ftype): Change parameter from
4309 dwarf2_per_objfile to dwarf2_per_bfd.
4310 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
4311 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
4312
a50264ba
TT
43132020-05-27 Tom Tromey <tom@tromey.com>
4314 Simon Marchi <simon.marchi@efficios.com>
4315
4316 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
4317 (allocate_piece_closure): Set "per_objfile" member.
4318 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
4319 (locexpr_describe_location, loclist_describe_location): Use new
4320 member.
4321 * dwarf2/read.c (read_call_site_scope)
4322 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
4323 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
4324 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
4325 handle_data_member_location): Set per_objfile member.
4326 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
4327 member.
4328 (struct dwarf2_loclist_baton) <per_objfile>: New member.
4329
d3473f0c
TT
43302020-05-27 Tom Tromey <tom@tromey.com>
4331
4332 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
4333 allocate_signatured_type>: Declare new methods.
4334 <m_num_psymtabs>: New member.
4335 (struct dwarf2_per_cu_data) <index>: New member.
4336 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
4337 (dwarf2_per_objfile::allocate_signatured_type): New methods.
4338 (create_cu_from_index_list): Use allocate_per_cu.
4339 (create_signatured_type_table_from_index)
4340 (create_signatured_type_table_from_debug_names)
4341 (create_debug_type_hash_table, add_type_unit)
4342 (read_comp_units_from_section): Use allocate_signatured_type.
4343
5717c425
TT
43442020-05-27 Tom Tromey <tom@tromey.com>
4345
4346 * psymtab.c (partial_map_expand_apply)
4347 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
4348 (psym_lookup_global_symbol_language)
4349 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
4350 (psym_print_stats, psym_expand_symtabs_for_function)
4351 (psym_map_symbol_filenames, psym_map_matching_symbols)
4352 (psym_expand_symtabs_matching)
4353 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
4354 (maintenance_check_psymtabs): Update.
4355 * psympriv.h (struct partial_symtab) <readin_p,
4356 get_compunit_symtab>: Add objfile parameter.
4357 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
4358 Likewise.
4359 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
4360 get_compunit_symtab>: Likewise.
4361 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
4362
45940949
TT
43632020-05-27 Tom Tromey <tom@tromey.com>
4364
4365 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
4366 member.
4367 * dwarf2/read.c (delete_file_name_entry): Fix comment.
4368 (create_cu_from_index_list)
4369 (create_signatured_type_table_from_index)
4370 (create_signatured_type_table_from_debug_names)
4371 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
4372 (dwarf2_create_include_psymtab)
4373 (create_debug_type_hash_table, add_type_unit)
4374 (create_type_unit_group, read_comp_units_from_section)
4375 (dwarf2_compute_name, create_cus_hash_table)
4376 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
4377 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
4378 obstack.
4379 (dw2_get_real_path): Likewise. Change argument to
4380 dwarf2_per_objfile.
4381
f8c6d152
LM
43822020-05-27 Luis Machado <luis.machado@linaro.org>
4383
4384 PR tdep/26000
4385 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
4386 for ldrd (immediate).
4387
e98d2e6d
PW
43882020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4389
4390 * command.h: Add comment giving the name of class_tui.
4391 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
4392 create the fake command for the help for class_tui.
4393
53a47a3e
TT
43942020-05-26 Tom Tromey <tromey@adacore.com>
4395
4396 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
4397 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
4398 (val_atr): New function.
4399 (value_val_atr): Use it.
4400 * ada-valprint.c (print_optional_low_bound): Change low bound
4401 handling for enums.
4402 (val_print_packed_array_elements): Don't call discrete_position.
4403 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
4404 discrete_position for enum types.
4405 * language.c (default_print_array_index): Change type.
4406 * language.h (struct language_defn) <la_print_array_index>: Add
4407 index_type parameter, change type of index_value.
4408 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
4409 (default_print_array_index): Update.
4410 * valprint.c (maybe_print_array_index): Don't call
4411 value_from_longest. Update.
4412 (value_print_array_elements): Don't call discrete_position.
4413
0bc2354b
TT
44142020-05-26 Tom Tromey <tromey@adacore.com>
4415
4416 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
4417 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
4418
1218a4bf
CDA
44192020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
4420
4421 PR gdb/13519
4422 * avr-tdep.c (avr_integer_to_address): Return data or code
4423 address accordingly to the second 'type' argument of the
4424 function.
4425
92651b1d
MW
44262020-05-25 Michael Weghorn <m.weghorn@posteo.de>
4427
4428 * infcmd.c, inferior.h: (construct_inferior_arguments):
4429 Moved function from here to gdbsupport/common-inferior.{h,cc}
4430
0a4f5f8c
TT
44312020-05-23 Tom Tromey <tom@tromey.com>
4432
4433 Revert commit eca1f90c:
4434 * NEWS: Remove entry for completion styling.
4435 * completer.c (_rl_completion_prefix_display_length): Move
4436 declaration later.
4437 (gdb_fnprint): Revert.
4438 (gdb_display_match_list_1): Likewise.
4439 * cli/cli-style.c (completion_prefix_style)
4440 (completion_difference_style, completion_suffix_style): Remove.
4441 (_initialize_cli_style): Revert.
4442 * cli/cli-style.h (completion_prefix_style)
4443 (completion_difference_style, completion_suffix_style): Don't
4444 declare.
4445
e08bd6c5
PA
44462020-05-24 Pedro Alves <palves@redhat.com>
4447
4448 * symtab.c (completion_list_add_name): Return boolean indication
4449 of whether the symbol matched.
4450 (completion_list_add_symbol): Don't try to remove C++ aliases if
4451 the symbol didn't match in the first place.
4452 * symtab.h (completion_list_add_name): Return bool.
4453
ceacbf6e
SM
44542020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
4455
4456 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
4457 type::field.
4458
26f16254
JB
44592020-05-23 Joel Brobecker <brobecker@adacore.com>
4460
4461 GDB 9.2 released.
4462
eca1f90c
TT
44632020-05-23 Tom Tromey <tom@tromey.com>
4464
4465 * NEWS: Add entry for completion styling.
4466 * completer.c (_rl_completion_prefix_display_length): Move
4467 declaration earlier.
4468 (gdb_fnprint): Use completion_style.
4469 (gdb_display_match_list_1): Likewise.
4470 * cli/cli-style.c (completion_prefix_style)
4471 (completion_difference_style, completion_suffix_style): New
4472 globals.
4473 (_initialize_cli_style): Register new globals.
4474 * cli/cli-style.h (completion_prefix_style)
4475 (completion_difference_style, completion_suffix_style): Declare.
4476
51e2cfa2
PA
44772020-05-23 Pedro Alves <palves@redhat.com>
4478
4479 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
4480 (parse_escape): Use ISDIGIT instead of isdigit.
4481 (puts_debug): Use gdb_isprint instead of isprint.
4482 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
4483 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
4484 ISSPACE instead of isspace.
4485 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
4486 instead of isspace.
4487 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
4488 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
4489 instead of isxdigit and ISDIGIT instead of isdigit.
4490
80fc5e77
SM
44912020-05-22 Simon Marchi <simon.marchi@efficios.com>
4492
4493 * gdbtypes.h (struct type) <field>: New method.
4494 (TYPE_FIELDS): Remove, replace all uses with either type::fields
4495 or type::field.
4496
3cabb6b0
SM
44972020-05-22 Simon Marchi <simon.marchi@efficios.com>
4498
4499 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
4500 (TYPE_FIELDS): Use type::fields. Change all call sites that
4501 modify the propery to use type::set_fields instead.
4502
1f704f76
SM
45032020-05-22 Simon Marchi <simon.marchi@efficios.com>
4504
4505 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
4506 type::num_fields instead.
4507
5e33d5f4
SM
45082020-05-22 Simon Marchi <simon.marchi@efficios.com>
4509
4510 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
4511 methods.
4512 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
4513 that modify the number of fields to use type::set_num_fields
4514 instead.
4515
9392ebb3
TT
45162020-05-22 Tom Tromey <tromey@adacore.com>
4517
4518 * compile/compile-object-load.h (munmap_list_free): Don't
4519 declare.
4520
7c13f4e8
AB
45212020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
4522
4523 * annotate.c (annotate_source_line): Update return type, add call
4524 to update current symtab and line.
4525 * annotate.h (annotate_source_line): Update return type, and
4526 extend header comment.
4527 * source.c (info_line_command): Check annotation_level before
4528 calling annotate_source_line.
4529 * stack.c (print_frame_info): If calling annotate_source_line
4530 returns true, then don't print any other source line information.
4531
aa370940
SM
45322020-05-21 Simon Marchi <simon.marchi@efficios.com>
4533
4534 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
4535
84d53fa9
SM
45362020-05-21 Simon Marchi <simon.marchi@efficios.com>
4537
4538 * coffread.c (patch_type): Remove NULL check before xfree.
4539 * corefile.c (set_gnutarget): Likewise.
4540 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
4541 * exec.c (build_section_table): Likewise.
4542 * remote.c (remote_target::pass_signals): Likewise.
4543 * utils.c (n_spaces): Likewise.
4544 * cli/cli-script.c (document_command): Likewise.
4545 * i386-windows-tdep.c (core_process_module_section): Likewise.
4546 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
4547
9d428aae
SM
45482020-05-20 Simon Marchi <simon.marchi@efficios.com>
4549
4550 * symfile.c (reread_symbols): Clear objfile's section_offsets
4551 vector and section indices, re-compute them by calling
4552 sym_offsets.
4553
250106a7
TT
45542020-05-20 Tom Tromey <tromey@adacore.com>
4555
4556 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
ec16513e 4557 (desc_one_bound, desc_index_type): Compute field name.
250106a7 4558
9a0bacfb
TV
45592020-05-20 Tom de Vries <tdevries@suse.de>
4560
4561 PR symtab/25833
4562 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
4563
7b958a48
AM
45642020-05-20 Alan Modra <amodra@gmail.com>
4565
4566 PR 25993
4567 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
4568 bfd_set_filename.
4569 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
4570 passed to bfd_set_filename.
4571 * symfile-mem.c (add_vsyscall_page): Likewise for string
4572 passed to symbol_file_add_from_memory.
4573 (symbol_file_add_from_memory): Make name param a const char* and
4574 don't strdup.
4575
c7e97679
AM
45762020-05-20 Alan Modra <amodra@gmail.com>
4577
4578 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
4579 rather than accessing bfd->filename directly.
4580 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
4581 and use bfd_section_name.
4582 * dwarf2/frame.c (decode_frame_entry): Likewise.
4583 * exec.c (exec_set_section_address): Likewise.
4584 * solib-aix.c (solib_aix_bfd_open): Likewise.
4585 * stap-probe.c (get_stap_base_address): Likewise.
4586 * symfile.c (reread_symbols): Likewise.
4587
563c591b
TT
45882020-05-19 Tom Tromey <tromey@adacore.com>
4589
4590 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
4591
f408d82c
SM
45922020-05-19 Simon Marchi <simon.marchi@efficios.com>
4593
4594 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
4595
98c59b52
PA
45962020-05-19 Pedro Alves <palves@redhat.com>
4597
4598 * NEWS (set exec-file-mismatch): Adjust entry.
4599 * exec.c: Include "build-id.h".
4600 (validate_exec_file): Try to match build IDs instead of filenames.
4601 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
4602 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
4603 and pass down 'warn_if_slow'.
4604 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
4605 gdb_bfd_open_closure to pass it down.
4606 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
4607
4111f652
PA
46082020-05-19 Pedro Alves <palves@redhat.com>
4609
4610 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
4611 * target.c (target_fileio_open_1): Rename to target_fileio_open
4612 and make extern. Use bool.
4613 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
4614 (target_fileio_read_alloc_1): Adjust.
4615 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
4616 (target_fileio_open_warn_if_slow): Delete declaration.
4617
ad80db5b
PA
46182020-05-19 Pedro Alves <palves@redhat.com>
4619
4620 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
4621 Adjust all callers.
4622
1d6ce4d3
YS
46232020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
4624
4625 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
4626 whether disp is negative.
4627
9005fbbb
SM
46282020-05-19 Simon Marchi <simon.marchi@efficios.com>
4629
4630 * symfile.h (struct symfile_segment_data)
4631 <~symfile_segment_data>: Remove.
4632 <segment_info>: Change to std::vector.
4633 * symfile.c (default_symfile_segments): Update.
4634 * elfread.c (elf_symfile_segments): Update.
4635
68b888ff
SM
46362020-05-19 Simon Marchi <simon.marchi@efficios.com>
4637
4638 * symfile.h (struct symfile_segment_data) <struct segment>: New.
4639 <segments>: New.
4640 <segment_bases, segment_sizes>: Remove.
4641 * symfile.c (default_symfile_segments): Update.
4642 * elfread.c (elf_symfile_segments): Update.
4643 * remote.c (remote_target::get_offsets): Update.
4644 * solib-target.c (solib_target_relocate_section_addresses):
4645 Update.
4646
62982abd
SM
46472020-05-19 Simon Marchi <simon.marchi@efficios.com>
4648
4649 * symfile.h (struct symfile_segment_data): Initialize fields.
4650 <~symfile_segment_data>: Add.
4651 (symfile_segment_data_up): New.
4652 (struct sym_fns) <sym_segments>: Return a
4653 symfile_segment_data_up.
4654 (default_symfile_segments): Return a symfile_segment_data_up.
4655 (free_symfile_segment_data): Remove.
4656 (get_symfile_segment_data): Return a symfile_segment_data_up.
4657 * symfile.c (default_symfile_segments): Likewise.
4658 (get_symfile_segment_data): Likewise.
4659 (free_symfile_segment_data): Remove.
4660 (symfile_find_segment_sections): Update.
4661 * elfread.c (elf_symfile_segments): Return a
4662 symfile_segment_data_up.
4663 * remote.c (remote_target::get_offsets): Update.
4664 * solib-target.c (solib_target_relocate_section_addresses):
4665 Update.
4666 * symfile-debug.c (debug_sym_segments): Return a
4667 symfile_segment_data_up.
4668
7f204339
RO
46692020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4670
e52a0f1b
RO
4671 PR build/25981
4672 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
4673 Hardcode register numbers.
4674
7f204339
RO
4675 PR build/25981
4676 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
4677 procfs_find_LDT_entry): Remove.
4678 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
4679 procfs_find_LDT_entry): Remove.
4680 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
4681 Remove.
4682
7f32a4d5
PA
46832020-05-17 Pedro Alves <palves@redhat.com>
4684 Andrew Burgess <andrew.burgess@embecosm.com>
4685 Keno Fischer <keno@juliacomputing.com>
4686
4687 PR gdb/25741
4688 * breakpoint.c (build_target_condition_list): Update comments.
4689 (build_target_command_list): Update comments and skip matching
4690 locations.
4691 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
4692 a separate function. Simplify "set breakpoint auto-hw off"
4693 handling.
4694 (insert_breakpoints): Update comment.
4695 (tracepoint_locations_match): New parameter. For breakpoints,
4696 compare location types too, if the caller wants to.
4697 (handle_automatic_hardware_breakpoints): New functions.
4698 (bp_location_is_less_than): Also sort by location type and
4699 hardware breakpoint length.
4700 (update_global_location_list): Handle "set breakpoint auto-hw on"
4701 here.
4702 (update_breakpoint_locations): Ask breakpoint_locations_match to
4703 ignore location types.
4704
7d93a1e0
SM
47052020-05-16 Simon Marchi <simon.marchi@efficios.com>
4706
4707 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
4708 type::name instead.
4709
d0e39ea2
SM
47102020-05-16 Simon Marchi <simon.marchi@efficios.com>
4711
4712 * gdbtypes.h (struct type) <name, set_name>: New methods.
4713 (TYPE_CODE): Use type::name. Change all call sites used to set
4714 the name to use type::set_name instead.
4715
2dab0c7b
TT
47162020-05-16 Tom Tromey <tom@tromey.com>
4717
4718 * top.c (quit_force): Update.
4719 * infrun.c (handle_no_resumed): Update.
4720 * top.h (all_uis): New function.
4721 (ALL_UIS): Remove.
4722
59f7bd8d
SM
47232020-05-16 Simon Marchi <simon.marchi@efficios.com>
4724
4725 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
4726
9bf058f0
PA
47272020-05-16 Pedro Alves <palves@redhat.com>
4728
4729 * ia64-linux-nat.c
4730 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
4731 Declare method.
4732 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
4733
8f86ae1a
SM
47342020-05-15 Simon Marchi <simon.marchi@efficios.com>
4735
4736 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
4737 (sparc64_adi_info): Likewise.
4738
d6bc0792
TT
47392020-05-15 Tom Tromey <tom@tromey.com>
4740
4741 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
4742 block_objfile.
4743 (lookup_objfile_from_block): Remove.
4744 (lookup_symbol_in_block, lookup_symbol_in_static_block)
4745 (lookup_global_symbol): Use block_objfile.
4746 * symtab.h (lookup_objfile_from_block): Don't declare.
4747 * printcmd.c (clear_dangling_display_expressions): Use
4748 block_objfile.
4749 * parse.c (operator_check_standard): Use block_objfile.
4750
8c14c3a3
TT
47512020-05-15 Tom Tromey <tom@tromey.com>
4752
4753 * language.c (language_alloc_type_symbol): Set
4754 SYMBOL_SECTION.
4755 * symtab.c (initialize_objfile_symbol): Remove.
4756 (allocate_symbol): Remove.
4757 (allocate_template_symbol): Remove.
4758 * dwarf2/read.c (fixup_go_packaging): Use "new".
4759 (new_symbol): Use "new".
4760 (read_variable): Don't call initialize_objfile_symbol. Use
4761 "new".
4762 (read_func_scope): Use "new".
4763 * xcoffread.c (process_xcoff_symbol): Don't call
4764 initialize_objfile_symbol.
4765 (SYMBOL_DUP): Remove.
4766 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
4767 "new".
4768 * symtab.h (allocate_symbol, initialize_objfile_symbol)
4769 (allocate_template_symbol): Don't declare.
4770 (struct symbol): Add copy constructor. Change defaults.
4771 * jit.c (finalize_symtab): Use "new".
4772 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
4773 Use "new".
4774 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
4775 (common_block_end): Use "new".
4776 * mdebugread.c (parse_symbol): Use "new".
4777 (new_symbol): Likewise.
4778
5b4a1a8d
PW
47792020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4780
4781 * NEWS: Mention changes to help and apropos.
4782
57b4f16e
PW
47832020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4784
4785 * command.h (enum command_class): Improve comments, document
4786 that class_alias is for user-defined aliases, give the class
4787 name for each class, remove unused class_xdb.
4788 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
4789 * breakpoint.c (_initialize_breakpoint): Replace class_alias
4790 by a precise class.
4791 * infcmd.c (_initialize_infcmd): Likewise.
4792 * reverse.c (_initialize_reverse): Likewise.
4793 * stack.c (_initialize_stack): Likewise.
4794 * symfile.c (_initialize_symfile): Likewise.
4795 * tracepoint.c (_initialize_tracepoint): Likewise.
4796
7c05caf7
PW
47972020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4798
4799 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
4800 when their aliased command is traversed.
4801 (help_cmd): Add fput_command_names_styled call to
4802 output command name and aliases when command has an alias.
4803
3b3aaacb
PW
48042020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4805
4806 * cli/cli-decode.h (help_cmd_list): Remove declaration.
4807 * cli/cli-decode.c (help_cmd_list): Declare as static,
4808 remove prefix argument, use bool for recurse arg, rework to show the aliases of
4809 a command together with the command.
4810 (fput_command_name_styled, fput_command_names_styled): New functions.
4811 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
4812 fput_command_name_styled.
4813 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
4814 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
4815
7aa1b46f
PW
48162020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4817
4818 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
4819 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
4820 * command.h (cmd_show_list): Likewise.
4821 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
4822 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
4823
89bcba74
PW
48242020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4825
4826 * unittests/command-def-selftests.c (traverse_command_structure):
4827 Verify all commands of a list have the same prefix command and
4828 that only the top cmdlist commands have a null prefix.
4829
3f4d92eb
PW
48302020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4831
4832 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
4833 as prefix, not one of its aliases.
4834 (set_cmd_prefix): Remove.
4835 (do_add_cmd): Centralize the setting of the prefix of a command, when
4836 command is defined after its full chain of prefix commands.
4837 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
4838 (add_setshow_cmd_full): Likewise.
4839 (update_prefix_field_of_prefixed_commands): New function.
4840 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
4841 update_prefix_field_of_prefixed_commands.
4842 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
4843 addresses of remote_set_cmdlist and remote_show_cmdlist given
4844 as argument, not the address of an argument.
4845 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
4846 * gdb/remote.c (_initialize_remote): Likewise.
4847
0605465f
PW
48482020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4849
4850 * cli/cli-cmds.c (alias_command): Check for an existing alias
4851 using lookup_cmd_composition, as valid_command_p is too strict
4852 and forbids aliases that are the prefix of an existing alias
4853 or command.
4854 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
4855 command is properly recognised as a valid command.
4856
58e6ac70
PW
48572020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4858
4859 * unittests/help-doc-selftests.c: Rename to
4860 unittests/command-def-selftests.c
4861 * unittests/command-def-selftests.c (help_doc_tests): Update some
4862 comments.
4863 (command_structure_tests, traverse_command_structure): New namespace
4864 and function.
4865 (command_structure_invariants_tests): New function.
4866 (_initialize_command_def_selftests) Renamed from
4867 _initialize_help_doc_selftests, register command_structure_invariants
4868 selftest.
4869
a7b9ceb8
PW
48702020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4871
4872 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
4873 an alias of 'show'.
4874
b2188a06
JB
48752020-05-15 Joel Brobecker <brobecker@adacore.com>
4876
4877 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
4878 ada_is_fixed_point_type. Update all callers.
4879 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
4880 all callers.
4881 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
4882 Update all callers.
4883 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
4884 print_fixed_point_type. Update all callers.
4885 * ada-valprint.c (ada_value_print_num): Replace call to
4886 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
4887
a51951c2
KB
48882020-05-14 Kevin Buettner <kevinb@redhat.com>
4889
4890 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
4891 processors.
4892 (cpu_supports_bts): Add CV_AMD case.
4893
29d6859f
LM
48942020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
4895 Simon Marchi <simon.marchi@efficios.com>
4896
4897 * infrun.c (stop_all_threads): Collect multiple wait events at
4898 each pass.
4899
78134374
SM
49002020-05-14 Simon Marchi <simon.marchi@efficios.com>
4901
4902 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
4903 type::code instead.
4904
67607e24
SM
49052020-05-14 Simon Marchi <simon.marchi@efficios.com>
4906
4907 * gdbtypes.h (struct type) <code, set_code>: New methods.
4908 (TYPE_CODE): Use type::code. Change all call sites used to set
4909 the code to use type::set_code instead.
4910
a05575d3
TBA
49112020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4912 Tom de Vries <tdevries@suse.de>
4913 Pedro Alves <palves@redhat.com>
4914
4915 PR threads/25478
4916 * infrun.c (stop_all_threads): Do NOT ignore
4917 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
4918 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
4919 received.
4920 (handle_no_resumed): Remove code handling a live inferior with no
4921 threads.
4922 * remote.c (has_single_non_exited_thread): New.
4923 (remote_target::update_thread_list): Do not delete a thread if is
4924 the last thread of the process.
4925 * thread.c (thread_select): Call delete_exited_threads instead of
4926 prune_threads.
4927
6ad82919
TBA
49282020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4929
4930 * infrun.c (stop_all_threads): Enable/disable thread events of all
4931 targets. Move a debug message denoting the end of the function
4932 into the SCOPED_EXIT block.
4933
d890404b
TBA
49342020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4935
4936 * process-stratum-target.h: Include <set>.
4937 (all_non_exited_process_targets, switch_to_target_no_thread): New
4938 function declarations.
4939 * process-stratum-target.c (all_non_exited_process_targets)
4940 (switch_to_target_no_thread): New function implementations.
4941
293b3ebc
TBA
49422020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4943
4944 * infrun.c (handle_inferior_event): Extract out a piece of code
4945 into...
4946 (mark_non_executing_threads): ...this new function.
4947
7ca9b62a
TBA
49482020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4949
4950 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
4951 use.
4952
fc75c28b
TBA
49532020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4954
4955 * regcache.c (regcache_read_pc_protected): New function
4956 implementation that returns 0 if the PC cannot read via
4957 'regcache_read_pc'.
4958 * infrun.c (proceed): Call 'regcache_read_pc_protected'
4959 instead of 'regcache_read_pc'.
4960 (keep_going_pass_signal): Ditto.
4961
a89febbd
TT
49622020-05-13 Tom Tromey <tromey@adacore.com>
4963
4964 * ada-lang.c (align_value): Remove.
4965 (ada_template_to_fixed_record_type_1): Use align_up.
4966
f7e23710
TBA
49672020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4968
4969 * async-event.c: Update the copyright year.
4970 * async-event.h: Update the copyright year.
4971
02ff80c2
SM
49722020-05-12 Simon Marchi <simon.marchi@efficios.com>
4973
4974 * objfiles.h (is_addr_in_objfile,
4975 shared_objfile_contains_address_p): Return bool.
4976 * objfile.c (is_addr_in_objfile,
4977 shared_objfile_contains_address_p): Return bool.
4978
4fd6c7e8
TT
49792020-05-11 Tom Tromey <tromey@adacore.com>
4980
4981 * cli/cli-cmds.c (info_command): Restore.
4982 (_initialize_cli_cmds): Use add_prefix_command for "info".
4983 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
4984
5eb68a39
TT
49852020-05-11 Tom Tromey <tromey@adacore.com>
4986
4987 * ada-lang.c (ada_value_primitive_field): Now public.
4988 * ada-lang.h (ada_value_primitive_field): Declare.
4989 * ada-valprint.c (print_field_values): Use
4990 ada_value_primitive_field for wrapper fields.
4991
7666722f
TV
49922020-05-11 Tom de Vries <tdevries@suse.de>
4993
4994 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
4995 MODULE_DOMAIN.
4996
3ee6bb11
TV
49972020-05-11 Tom de Vries <tdevries@suse.de>
4998
4999 PR symtab/25941
5000 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
5001 with length 0, if not gdb-produced.
5002 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
5003
43434996
TV
50042020-05-09 Tom de Vries <tdevries@suse.de>
5005
5006 PR gdb/25955
5007 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
5008 calculation.
5009
2f78cffc
TT
50102020-05-09 Tom Tromey <tom@tromey.com>
5011
5012 * top.c (server_command): Now bool.
5013 * top.h (server_command): Now bool.
5014
4f7bc5ed
TT
50152020-05-08 Tom Tromey <tromey@adacore.com>
5016
5017 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
5018 already being processed.
5019
8be4b118
TT
50202020-05-08 Tom Tromey <tom@tromey.com>
5021
5022 * printcmd.c (struct display) <next>: Remove.
5023 <display>: New constructor.
5024 <exp_string>: Now a std::string.
5025 <enabled_p>: Now a bool.
5026 (display_number): Move definition earlier.
5027 (displays): Rename from display_chain. Now a std::vector.
5028 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
5029 (display_command): Update.
5030 (do_one_display, disable_display)
5031 (enable_disable_display_command, do_enable_disable_display):
5032 Update.
5033 (free_display): Remove.
5034 (clear_displays): Rewrite.
5035 (delete_display): Update.
5036 (map_display_numbers): Use function_view. Remove "data"
5037 parameter. Update.
5038 (do_delete_display): Remove.
5039 (undisplay_command): Update.
5040 (do_one_display, do_displays, disable_display)
5041 (info_display_command): Update.
5042 (do_enable_disable_display): Remove.
5043 (enable_disable_display_command)
5044 (clear_dangling_display_expressions): Update.
5045
94c93c35
TT
50462020-05-08 Tom Tromey <tom@tromey.com>
5047
5048 * symtab.c (set_symbol_cache_size)
5049 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
5050 (maintenance_print_symbol_cache_statistics): Update.
5051 * symmisc.c (print_symbol_bcache_statistics)
5052 (print_objfile_statistics, maintenance_print_objfiles)
5053 (maintenance_info_symtabs, maintenance_check_symtabs)
5054 (maintenance_expand_symtabs, maintenance_info_line_tables):
5055 Update.
5056 * symfile-debug.c (set_debug_symfile): Update.
5057 * source.c (forget_cached_source_info): Update.
5058 * python/python.c (gdbpy_progspaces): Update.
5059 * psymtab.c (maintenance_info_psymtabs): Update.
5060 * probe.c (parse_probes): Update.
5061 * linespec.c (iterate_over_all_matching_symtabs)
5062 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
5063 * guile/scm-progspace.c (gdbscm_progspaces): Update.
5064 * exec.c (exec_target::close): Update.
5065 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
5066 * breakpoint.c (print_one_breakpoint_location)
5067 (create_longjmp_master_breakpoint)
5068 (create_std_terminate_master_breakpoint): Update.
5069 * progspace.c (program_spaces): Now a std::vector.
5070 (maybe_new_address_space): Update.
5071 (add_program_space): Remove.
5072 (program_space::program_space): Update.
5073 (remove_program_space): Update.
5074 (number_of_program_spaces): Remove.
5075 (print_program_space, update_address_spaces): Update.
5076 * progspace.h (program_spaces): Change type.
5077 (ALL_PSPACES): Remove.
5078 (number_of_program_spaces): Don't declare.
5079 (struct program_space) <next>: Remove.
5080
a1fd1ac9
TT
50812020-05-08 Tom Tromey <tom@tromey.com>
5082
5083 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
5084 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
5085 (enable_break): Update.
5086 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
5087 (frv_fdpic_find_canonical_descriptor): Update.
5088 (frv_fetch_objfile_link_map): Update.
5089 * progspace.c (program_space::free_all_objfiles): Update.
5090 (program_space::solibs): New method.
5091 * progspace.h (struct program_space) <solibs>: New method.
5092 * solist.h (master_so_list): Don't declare.
5093 (ALL_SO_LIBS): Remove.
5094 * solib.h (so_list_head): Remove.
5095 (update_solib_list): Update comment.
5096 * solib.c (master_so_list): Remove.
5097 (solib_used, update_solib_list, solib_add)
5098 (info_sharedlibrary_command, clear_solib)
5099 (reload_shared_libraries_1, remove_user_added_objfile): Update.
5100
38eae084
TT
51012020-05-08 Tom Tromey <tom@tromey.com>
5102
5103 * extension.c (extension_languages): Now a std::array.
5104 (ALL_EXTENSION_LANGUAGES): Remove.
5105 (get_ext_lang_defn, get_ext_lang_of_file)
5106 (eval_ext_lang_from_control_command): Update.
5107 (finish_ext_lang_initialization)
5108 (auto_load_ext_lang_scripts_for_objfile)
5109 (ext_lang_type_printers::ext_lang_type_printers)
5110 (apply_ext_lang_type_printers)
5111 (ext_lang_type_printers::~ext_lang_type_printers)
5112 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
5113 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
5114 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
5115 (get_matching_xmethod_workers, ext_lang_colorize)
5116 (ext_lang_before_prompt): Update.
5117 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
5118
596dc4ad
TT
51192020-05-08 Tom Tromey <tom@tromey.com>
5120
5121 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
5122 overload.
5123 <swap_string, m_string>: Remove.
5124 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
5125 Update.
5126 * stabsread.c (define_symbol, read_type): Update.
5127 * linespec.c (find_linespec_symbols): Update.
5128 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
5129 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
5130 * dbxread.c (read_dbx_symtab): Update.
5131 * cp-support.h (cp_canonicalize_string_full)
5132 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
5133 Return unique_xmalloc_ptr.
5134 * cp-support.c (inspect_type): Update.
5135 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
5136 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
5137 Likewise.
5138 * c-typeprint.c (print_name_maybe_canonical): Update.
5139 * break-catch-throw.c (check_status_exception_catchpoint):
5140 Update.
5141
bf4cb9be
TV
51422020-05-08 Tom de Vries <tdevries@suse.de>
5143
5144 * infrun.c (follow_fork): Copy current_line and current_symtab to
5145 child thread.
5146
a1b68f28
SM
51472020-05-07 Simon Marchi <simon.marchi@efficios.com>
5148
5149 * async-event.c (struct async_signal_handler, struct
5150 async_event_handler): Reformat, remove typedef.
5151
98d48915
SM
51522020-05-07 Simon Marchi <simon.marchi@efficios.com>
5153
5154 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
5155 access thistype->main_type->dyn_prop_list directly.
5156
7aa91313
SM
51572020-05-07 Simon Marchi <simon.marchi@efficios.com>
5158
5159 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
5160 (remove_dyn_prop): Remove. Update all users to use
5161 type::remove_dyn_prop.
5162 * gdbtypes.c (remove_dyn_prop): Rename to...
5163 (type::remove_dyn_prop): ... this.
5164
5c54719c
SM
51652020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
5166
5167 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
5168 (add_dyn_prop): Remove. Update all users to use
5169 type::add_dyn_prop.
5170 * gdbtypes.c (add_dyn_prop): Rename to...
5171 (type::add_dyn_prop): ... this.
5172
24e99c6c
SM
51732020-05-07 Simon Marchi <simon.marchi@efficios.com>
5174
5175 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
5176 (get_dyn_prop): Remove. Update all users to use
5177 type::dyn_prop.
5178 * gdbtypes.c (get_dyn_prop): Rename to...
5179 (type::dyn_prop): ... this.
5180
0d4bf016
SM
51812020-05-06 Simon Marchi <simon.marchi@efficios.com>
5182
5183 * gdbtypes.h (struct main_type) <flag_static>: Remove.
5184
ac4a4f1c
SM
51852020-05-06 Simon Marchi <simon.marchi@efficios.com>
5186
5187 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
5188 instruction, skip it if it's there.
5189
a3bbacc1
SM
51902020-05-05 Simon Marchi <simon.marchi@efficios.com>
5191
5192 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
5193
c3236f84
SM
51942020-05-04 Simon Marchi <simon.marchi@efficios.com>
5195
5196 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
5197 * gdbtypes.c (recursive_dump_type): Remove use of
5198 TYPE_INCOMPLETE.
5199
3b6acaee
TT
52002020-05-03 Tom Tromey <tom@tromey.com>
5201
5202 * breakpoint.c (catch_command, tcatch_command): Remove.
5203 (_initialize_breakpoint): Use add_basic_prefix_cmd,
5204 add_show_prefix_cmd.
5205 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
5206 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
5207 Remove.
5208 (add_internal_problem_command): Use add_basic_prefix_cmd,
5209 add_show_prefix_cmd.
5210 * mips-tdep.c (set_mipsfpu_command): Remove.
5211 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
5212 * dwarf2/index-cache.c (set_index_cache_command): Remove.
5213 (_initialize_index_cache): Use add_basic_prefix_cmd.
5214 * memattr.c (dummy_cmd): Remove.
5215 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
5216 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
5217 (_initialize_tui_win): Use add_basic_prefix_cmd,
5218 add_show_prefix_cmd.
5219 * cli/cli-logging.c (set_logging_command): Remove.
5220 (_initialize_cli_logging): Use add_basic_prefix_cmd,
5221 add_show_prefix_cmd.
5222 (show_logging_command): Remove.
5223 * target.c (target_command): Remove.
5224 (add_target): Use add_basic_prefix_cmd.
5225
a51119cd
HD
52262020-05-02 Hannes Domani <ssbssa@yahoo.de>
5227
5228 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
5229
652fc23a 52302020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 5231
652fc23a
PW
5232 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
5233 info_command.
5234
117539e6
KR
52352020-04-30 Kamil Rytarowski <n54@gmx.com>
5236
5237 * nbsd-nat.c (nbsd_enable_proc_events)
5238 (nbsd_nat_target::post_startup_inferior): Add.
5239 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
5240 (nbsd_nat_target::update_thread_list): Rewrite.
5241 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
5242 "PTRACE_LWP_CREATE".
5243 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
5244
102e38eb 52452020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 5246
102e38eb
PW
5247 * stack.c (_initialize_stack): Remove duplicated creation
5248 of "frame" command and "f" alias.
5249
ee9d1e5f
HD
52502020-04-30 Hannes Domani <ssbssa@yahoo.de>
5251
5252 PR gdb/18706
5253 * gdbtypes.c (check_typedef): Calculate size of array of
5254 stubbed type.
5255
627c7fb8
HD
52562020-04-30 Hannes Domani <ssbssa@yahoo.de>
5257
5258 PR gdb/15559
5259 * i386-tdep.c (i386_push_dummy_call): Call
5260 i386_thiscall_push_dummy_call.
5261 (i386_thiscall_push_dummy_call): New function.
5262 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
5263 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
5264 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
5265
ffc2844e
SM
52662020-04-29 Simon Marchi <simon.marchi@efficios.com>
5267
5268 * gdbarch.sh (do_read): Add shellcheck disable directive for
5269 warning SC2162.
5270
1207375d
SM
52712020-04-29 Simon Marchi <simon.marchi@efficios.com>
5272
5273 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
5274 "referenced but not assigned" warning.
5275
9fdb2916
SM
52762020-04-29 Simon Marchi <simon.marchi@efficios.com>
5277
5278 * gdbarch.sh: Remove code that sets fallbackdefault.
5279
759cea5e
SM
52802020-04-29 Simon Marchi <simon.marchi@efficios.com>
5281
5282 * gdbarch.sh: Use shell operators && and || instead of
5283 -a and -o.
5284
cb02ab24
SM
52852020-04-29 Simon Marchi <simon.marchi@efficios.com>
5286
5287 * gdbarch.sh: Use $(...) instead of `...`.
5288
a6fc5ffc
SM
52892020-04-29 Simon Marchi <simon.marchi@efficios.com>
5290
5291 * gdbarch.sh: Use double quotes around variables.
5292
8d113d13
SM
52932020-04-29 Simon Marchi <simon.marchi@efficios.com>
5294
5295 * gdbarch.sh: Use %s with printf, instead of variables in the
5296 format string.
5297
ed6acedd
TT
52982020-04-29 Tom Tromey <tromey@adacore.com>
5299
5300 PR ada/25875:
5301 * dwarf2/read.c (update_enumeration_type_from_children): Compute
5302 type fields here.
5303 (read_enumeration_type): Call
5304 update_enumeration_type_from_children later. Update comments.
5305 (process_enumeration_scope): Don't create type fields.
5306
b68b1b58
KR
53072020-04-29 Kamil Rytarowski <n54@gmx.com>
5308
5309 * nbsd-tdep.c: Include "xml-syscall.h".
5310 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
5311
f94b2e03
KR
53122020-04-29 Kamil Rytarowski <n54@gmx.com>
5313
5314 * nbsd-nat.c: Include "sys/wait.h".
5315 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
5316 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
5317 (nbsd_nat_target::remove_exec_catchpoint)
5318 (nbsd_nat_target::set_syscall_catchpoint): Add.
5319 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
5320 (nbsd_nat_target::insert_exec_catchpoint)
5321 (nbsd_nat_target::remove_exec_catchpoint)
5322 (nbsd_nat_target::set_syscall_catchpoint): Add.
5323 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
5324 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
5325 `nbsd_get_syscall_number'.
5326
fc49bc72
TT
53272020-04-29 Tom Tromey <tom@tromey.com>
5328
5329 * stack.c (print_block_frame_labels): Remove.
5330
d642b692
HD
53312020-04-29 Hannes Domani <ssbssa@yahoo.de>
5332
5333 PR gdb/17320
5334 * ada-valprint.c (val_print_packed_array_elements): Move array
5335 end bracket to new line.
5336 (ada_val_print_string): Remove extra spaces before first array
5337 element.
5338 * c-valprint.c (c_value_print_array): Likewise.
5339 * m2-valprint.c (m2_print_array_contents): Likewise.
5340 (m2_value_print_inner): Likewise.
5341 * p-valprint.c (pascal_value_print_inner): Likewise.
5342 * valprint.c (generic_val_print_array): Likewise.
5343 (value_print_array_elements): Move first array element and array
5344 end bracket to new line.
5345
ea90f227
TV
53462020-04-29 Tom de Vries <tdevries@suse.de>
5347
5348 PR symtab/25889
5349 * linespec.c (find_method): Fix ix calculation.
5350
4498ef4f
KR
53512020-04-28 Kamil Rytarowski <n54@gmx.com>
5352
5353 * syscalls/update-netbsd.sh: New file.
5354 * syscalls/netbsd.xml: Regenerate.
5355 * data-directory/Makefile.in: Register `netbsd.xml' in
5356 `SYSCALLS_FILES'.
5357
a55e30b5
SM
53582020-04-28 Simon Marchi <simon.marchi@efficios.com>
5359
5360 * syscalls/update-freebsd.sh: Add double quotes.
5361
2b2fbab8
TT
53622020-04-28 Tom Tromey <tom@tromey.com>
5363
5364 * NEWS: Update.
5365 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
5366 (cmdpy_init): Allow class_tui.
5367
a65189c9
TV
53682020-04-28 Mark Williams <mark@myosotissp.com>
5369
5370 PR gdb/24480
5371 * dwarf2read.c: Add missing assingments to list_in_scope when
5372 start_symtab was already called.
5373
1b95cdb7
SM
53742020-04-28 Simon Marchi <simon.marchi@efficios.com>
5375
5376 PR gdb/25881
5377 * dwarf2/read.c (offset_map_type): Use
5378 gdb:hash_enum<sect_offset> as hash function.
5379
15cd93d0
TV
53802020-04-28 Tom de Vries <tdevries@suse.de>
5381
5382 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
5383 with DW_AT_signature.
5384
1eb39914
SM
53852020-04-27 Simon Marchi <simon.marchi@efficios.com>
5386
5387 * configure.ac: Remove check for fs_base/gs_base in
5388 user_regs_struct.
5389 * configure: Re-generate.
5390 * config.in: Re-generate.
5391 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
5392 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
5393 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
5394
991a3e2e
LM
53952020-04-27 Luis Machado <luis.machado@linaro.org>
5396
5397 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
5398 problematic inline frame unwinding situation.
5399 * frame.c (frame_id_computed_p): New function.
5400 * frame.h (frame_id_computed_p): New prototype.
5401
361ba0e8
TT
54022020-04-26 Tom Tromey <tom@tromey.com>
5403
5404 * command.h (enum command_class) <class_pseudo>: Remove.
5405
bc3609fd
PW
54062020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5407
5408 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
5409 and whitespace.
5410
b9771db7
KR
54112020-04-25 Kamil Rytarowski <n54@gmx.com>
5412
ec16513e
SM
5413 * inf-ptrace.c (inf_ptrace_target::wait): Remove
5414 `PT_GET_PROCESS_STATE' block.
b9771db7 5415
7151c1af
TT
54162020-04-24 Tom Tromey <tom@tromey.com>
5417
5418 * symtab.h (symbol_get_demangled_name): Don't declare.
5419 * symtab.c (symbol_get_demangled_name): Remove.
5420 (general_symbol_info::natural_name)
5421 (general_symbol_info::demangled_name): Update.
5422
906bb4c5
TT
54232020-04-24 Tom Tromey <tom@tromey.com>
5424
5425 PR rust/25025:
5426 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
5427
bcfe6157
TT
54282020-04-24 Tom Tromey <tom@tromey.com>
5429
5430 PR symtab/12707:
5431 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
5432 exists.
5433 (new_symbol): Likewise.
5434 * compile/compile-object-load.c (get_out_value_type): Use
5435 symbol_matches_search_name.
5436
f049a313
TT
54372020-04-24 Tom Tromey <tom@tromey.com>
5438
5439 * dwarf2/read.c (add_partial_symbol): Do not call
5440 compute_and_set_names.
5441
76e288d1
TT
54422020-04-24 Tom Tromey <tom@tromey.com>
5443
5444 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
5445 overload.
5446
2467f4f6
TT
54472020-04-24 Tom Tromey <tom@tromey.com>
5448
5449 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
5450 (add_psymbol_to_list): New overload. Make old overload call new
5451 one.
5452 * psympriv.h (add_psymbol_to_list): New overload.
5453
e61108c9
TT
54542020-04-24 Tom Tromey <tom@tromey.com>
5455
5456 * dwarf2/read.c (partial_die_info::read) <case
5457 DW_AT_linkage_name>: Use value_as_string.
5458 (dwarf2_string_attr): Use value_as_string.
5459 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
5460 method.
5461 * dwarf2/attribute.c (attribute::value_as_string): New method.
5462
8c87a452
TT
54632020-04-24 Tom Tromey <tom@tromey.com>
5464
5465 * symtab.c (general_symbol_info::natural_name)
5466 (general_symbol_info::demangled_name): Check for language_rust.
5467
787de330
TT
54682020-04-24 Tom Tromey <tom@tromey.com>
5469
5470 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
5471 (dwarf2_physname): ... from here.
5472 (partial_die_info::read): Add Rust "{" hack.
5473
ff985671
TT
54742020-04-24 Tom Tromey <tom@tromey.com>
5475
5476 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
5477 method.
5478 (symbol_set_demangled_name): Don't declare.
5479 * symtab.c (general_symbol_info::set_demangled_name): Rename from
5480 symbol_set_demangled_name.
5481 (general_symbol_info::set_language)
5482 (general_symbol_info::compute_and_set_names): Update.
5483 * minsyms.c (minimal_symbol_reader::install): Update.
5484 * dwarf2/read.c (new_symbol): Update.
5485
1acda803
TT
54862020-04-24 Tom Tromey <tromey@adacore.com>
5487
5488 PR python/23662:
5489 * python/py-type.c (convert_field): Handle
5490 FIELD_LOC_KIND_DWARF_BLOCK.
5491 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
5492 (typy_get_dynamic): Nw function.
5493 (type_object_getset): Add "dynamic".
5494 * NEWS: Add entry.
5495
d656f129
TT
54962020-04-24 Tom Tromey <tromey@adacore.com>
5497
5498 * ada-typeprint.c (print_choices, print_variant_part)
5499 (print_record_field_types_dynamic): New functions.
5500 (print_record_field_types): Use print_record_field_types_dynamic.
5501
7d79de9a
TT
55022020-04-24 Tom Tromey <tromey@adacore.com>
5503
5504 * dwarf2/read.c (handle_data_member_location): New overload.
5505 (dwarf2_add_field): Use it.
5506 (decode_locdesc): Add "computed" parameter. Update comment.
5507 * gdbtypes.c (is_dynamic_type_internal): Also look for
5508 FIELD_LOC_KIND_DWARF_BLOCK.
5509 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
5510 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
5511 virtual base classes.
5512 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
5513 FIELD_LOC_KIND_DWARF_BLOCK.
5514
f8e89861
TT
55152020-04-24 Tom Tromey <tromey@adacore.com>
5516
5517 * dwarf2/read.c (read_structure_type): Handle dynamic length.
5518 * gdbtypes.c (is_dynamic_type_internal): Check
5519 TYPE_HAS_DYNAMIC_LENGTH.
5520 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
5521 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
5522 New macros.
5523 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
5524 constant.
5525
9c6a1327
TT
55262020-04-24 Tom Tromey <tromey@adacore.com>
5527
5528 * dwarf2/read.c (struct variant_field): Rewrite.
5529 (struct variant_part_builder): New.
5530 (struct nextfield): Remove "variant" field. Add "offset".
5531 (struct field_info): Add "current_variant_part" and
5532 "variant_parts".
5533 (alloc_discriminant_info): Remove.
5534 (alloc_rust_variant): New function.
5535 (quirk_rust_enum): Update.
5536 (dwarf2_add_field): Set "offset" member. Don't handle
5537 DW_TAG_variant_part.
5538 (offset_map_type): New typedef.
5539 (convert_variant_range, create_one_variant)
5540 (create_one_variant_part, create_variant_parts)
5541 (add_variant_property): New functions.
5542 (dwarf2_attach_fields_to_type): Call add_variant_property.
5543 (read_structure_type): Don't handle DW_TAG_variant_part.
5544 (handle_variant_part, handle_variant): New functions.
5545 (handle_struct_member_die): Use them.
5546 (process_structure_scope): Don't handle variant parts.
5547 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
5548 (struct discriminant_info): Remove.
5549 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
5550 (struct main_type) <flag_discriminated_union>: Remove.
5551 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
5552 (rust_enum_variant): Return int. Remove "contents". Rewrite.
5553 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
5554 Update.
5555 * valops.c (value_union_variant): Remove.
5556 * value.h (value_union_variant): Don't declare.
5557
b249d2c2
TT
55582020-04-24 Tom Tromey <tromey@adacore.com>
5559
5560 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
5561 (ada_value_primitive_packed_val): Update.
5562 * ada-valprint.c (ada_value_print_1): Update.
5563 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
5564 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
5565 just an address. Use evaluate_for_locexpr_baton.
5566 (dwarf2_evaluate_property): Update.
5567 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
5568 array_view.
5569 * findvar.c (default_read_var_value): Update.
5570 * gdbtypes.c (compute_variant_fields_inner)
5571 (resolve_dynamic_type_internal): Update.
5572 (resolve_dynamic_type): Change type of valaddr parameter.
5573 * gdbtypes.h (resolve_dynamic_type): Update.
5574 * valarith.c (value_subscripted_rvalue): Update.
5575 * value.c (value_from_contents_and_address): Update.
5576
61122aa9
TT
55772020-04-24 Tom Tromey <tromey@adacore.com>
5578
5579 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
5580 "push_initial_value" parameter.
5581 (dwarf2_evaluate_property): Likewise.
5582 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
5583
ef83a141
TT
55842020-04-24 Tom Tromey <tromey@adacore.com>
5585
5586 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
5587 (variant::matches, compute_variant_fields_recurse)
5588 (compute_variant_fields_inner, compute_variant_fields): New
5589 functions.
5590 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
5591 Use resolved_type after type is made.
5592 (operator==): Add new cases.
5593 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
5594 (struct discriminant_range, struct variant, struct variant_part):
5595 New.
5596 (union dynamic_prop_data) <variant_parts, original_type>: New
5597 members.
5598 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
5599 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
5600 constants.
5601 * value.c (unpack_bits_as_long): Now public.
5602 * value.h (unpack_bits_as_long): Declare.
5603
675127ec
TT
56042020-04-24 Tom Tromey <tromey@adacore.com>
5605
5606 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
5607 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
5608
9852ceef
HD
56092020-04-24 Hannes Domani <ssbssa@yahoo.de>
5610
5611 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
5612
7632c6ce
KR
56132020-04-24 Kamil Rytarowski <n54@gmx.com>
5614
5615 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
5616 (remove_fork_catchpoint, post_startup_inferior)
5617 (post_attach): Move...
5618 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
5619 (remove_fork_catchpoint, post_startup_inferior)
5620 (post_attach): ...here.
5621 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
5622 (remove_fork_catchpoint, post_startup_inferior)
5623 (post_attach): Move...
5624 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
5625 (remove_fork_catchpoint, post_startup_inferior)
5626 (post_attach): ...here.
5627
7be2bb4f
TT
56282020-04-24 Tom Tromey <tromey@adacore.com>
5629
5630 * nat/windows-nat.h (struct windows_thread_info)
5631 <pc_adjusted>: New member.
5632 * windows-nat.c (windows_fetch_one_register): Check
5633 pc_adjusted.
5634 (windows_nat_target::get_windows_debug_event)
5635 (windows_nat_target::wait): Set pc_adjusted.
5636
f80cb3b4
TV
56372020-04-24 Tom de Vries <tdevries@suse.de>
5638
5639 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
5640 Run gdb-add-index inside temp dir.
5641
29514b87
TT
56422020-04-23 Tom Tromey <tromey@adacore.com>
5643
5644 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
5645 in loop.
5646
5939967b
LM
56472020-04-23 Luis Machado <luis.machado@linaro.org>
5648
5649 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
5650 get_frame_register instead of gdbarch_unwind_pc.
5651
70bc38f5
TV
56522020-04-23 Tom de Vries <tdevries@suse.de>
5653
5654 * symtab.c (lookup_global_symbol): Prefer def over decl.
5655
de82891c
TV
56562020-04-23 Tom de Vries <tdevries@suse.de>
5657
5658 PR symtab/25807
5659 * block.c (best_symbol, better_symbol): Promote to external.
5660 * block.h (best_symbol, better_symbol): Declare.
5661 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
5662 decl.
5663
ecc6c606
TT
56642020-04-23 Tom Tromey <tromey@adacore.com>
5665
5666 PR ada/25837:
5667 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
5668 "const char *", not a "const std::string &".
5669 <name_and_matcher::operator==>: Update.
5670 * unittests/lookup_name_info-selftests.c: Change type of
5671 "result".
5672
740480b8
TT
56732020-04-23 Tom Tromey <tom@tromey.com>
5674
5675 * inferior.h (iterate_over_inferiors): Don't declare.
5676 * inferior.c (iterate_over_inferiors): Remove.
5677 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
5678 Remove.
5679 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
5680 use iterate_over_inferiors.
5681 (darwin_resume_inferior_it)
5682 (struct resume_inferior_threads_param)
5683 (darwin_resume_inferior_threads_it): Remove.
5684 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
5685
ae3ab1f0
TV
56862020-04-23 Tom de Vries <tdevries@suse.de>
5687
5688 * blockframe.c (find_pc_partial_function): Use
5689 find_pc_sect_compunit_symtab rather than
5690 objfile->sf->qf->find_pc_sect_compunit_symtab.
5691
317d2668
TV
56922020-04-22 Tom de Vries <tdevries@suse.de>
5693
5694 PR symtab/25764
5695 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
5696 in psymtabs.
5697
eea9e357
TV
56982020-04-22 Tom de Vries <tdevries@suse.de>
5699
5700 PR symtab/25801
5701 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
5702 symtabs.
5703
3d5afab3
TV
57042020-04-22 Tom de Vries <tdevries@suse.de>
5705
5706 PR symtab/25700
5707 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
5708 CU if already created.
5709
d43b7a2d
TBA
57102020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5711
5712 * infrun.c (displaced_step_fixup): Switch to the event_thread
5713 before calling displaced_step_restore, not after.
5714
d89edf9b
MM
57152020-04-21 Markus Metzger <markus.t.metzger@intel.com>
5716
5717 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
5718 its inferior is not recorded by us.
5719 (record_btrace_target_open): Replace call to
5720 all_non_exited_threads () with call to current_inferior
5721 ()->non_exited_threads ().
5722 (record_btrace_target::stop_recording): Likewise.
5723 (record_btrace_target::close): Likewise.
5724 (record_btrace_target::wait): Likewise.
5725 (record_btrace_target::record_stop_replaying): Likewise.
5726
5897fd49
MM
57272020-04-21 Markus Metzger <markus.t.metzger@intel.com>
5728
5729 * btrace.c (btrace_enable): Throw an error on double enables and
5730 when enabling recording fails.
5731 (btrace_disable): Throw an error if the thread is not recorded.
5732
1a476b6d
MM
57332020-04-21 Markus Metzger <markus.t.metzger@intel.com>
5734
5735 * record-btrace.c (record_btrace_target::fetch_registers): Forward
5736 request if we do not have a thread_info.
5737
4778a5f8
TV
57382020-04-21 Tom de Vries <tdevries@suse.de>
5739
5740 PR gdb/25471
5741 * thread.c
5742 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
5743 exception in get_frame_id.
5744
0fa7617d
TT
57452020-04-20 Tom Tromey <tromey@adacore.com>
5746
5747 * python/python.c (struct gdbpy_event): Mark move constructor as
5748 noexcept.
5749 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
5750 constructor as noexcept.
5751 * completer.h (struct completion_result): Mark move constructor as
5752 noexcept.
5753 * completer.c (completion_result::completion_result): Use
5754 initialization style. Don't call reset_match_list.
5755
ad23bda0
MS
57562020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
5757
5758 * MAINTAINERS (Write After Approval): Add myself.
5759
45e1f031
TT
57602020-04-18 Tom Tromey <tom@tromey.com>
5761
5762 * windows-tdep.c (init_w32_command_list)
5763 (w32_prefix_command_valid): Restore.
5764 (_initialize_windows_tdep): Call init_w32_command_list.
5765
08feed99
TT
57662020-04-18 Tom Tromey <tom@tromey.com>
5767
5768 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
5769 * value.c (value_fn_field): Update.
5770 * valops.c (find_function_in_inferior)
5771 (value_allocate_space_in_inferior): Update.
5772 * tui/tui-winsource.c (tui_update_source_windows_with_line):
5773 Update.
5774 * tui/tui-source.c (tui_source_window::set_contents): Update.
5775 * symtab.c (lookup_global_or_static_symbol)
5776 (find_function_start_sal_1, skip_prologue_sal)
5777 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
5778 * symmisc.c (dump_msymbols, dump_symtab_1)
5779 (maintenance_print_one_line_table): Update.
5780 * symfile.c (init_entry_point_info, section_is_mapped)
5781 (list_overlays_command, simple_read_overlay_table)
5782 (simple_overlay_update_1): Update.
5783 * stap-probe.c (handle_stap_probe): Update.
5784 * stabsread.c (dbx_init_float_type, define_symbol)
5785 (read_one_struct_field, read_enum_type, read_range_type): Update.
5786 * source.c (info_line_command): Update.
5787 * python/python.c (gdbpy_source_objfile_script)
5788 (gdbpy_execute_objfile_script): Update.
5789 * python/py-type.c (save_objfile_types): Update.
5790 * python/py-objfile.c (py_free_objfile): Update.
5791 * python/py-inferior.c (python_new_objfile): Update.
5792 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
5793 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
5794 (maintenance_check_psymtabs): Update.
5795 * printcmd.c (info_address_command): Update.
5796 * objfiles.h (struct objfile) <arch>: New method, from
5797 get_objfile_arch.
5798 (get_objfile_arch): Don't declare.
5799 * objfiles.c (get_objfile_arch): Remove.
5800 (filter_overlapping_sections): Update.
5801 * minsyms.c (msymbol_is_function): Update.
5802 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
5803 (output_nondebug_symbol): Update.
5804 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
5805 (mdebug_expand_psymtab): Update.
5806 * machoread.c (macho_add_oso_symfile): Update.
5807 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
5808 Update.
5809 * linux-fork.c (checkpoint_command): Update.
5810 * linespec.c (convert_linespec_to_sals): Update.
5811 * jit.c (finalize_symtab): Update.
5812 * infrun.c (insert_exception_resume_from_probe): Update.
5813 * ia64-tdep.c (ia64_find_unwind_table): Update.
5814 * hppa-tdep.c (internalize_unwinds): Update.
5815 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
5816 Update.
5817 * gcore.c (call_target_sbrk): Update.
5818 * elfread.c (record_minimal_symbol, elf_symtab_read)
5819 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
5820 (elf_gnu_ifunc_resolve_by_got): Update.
5821 * dwarf2/read.c (create_addrmap_from_index)
5822 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
5823 (read_debug_names_from_section)
5824 (process_psymtab_comp_unit_reader, add_partial_symbol)
5825 (add_partial_subprogram, process_full_comp_unit)
5826 (read_file_scope, read_func_scope, read_lexical_block_scope)
5827 (read_call_site_scope, dwarf2_ranges_read)
5828 (dwarf2_record_block_ranges, dwarf2_add_field)
5829 (mark_common_block_symbol_computed, read_tag_pointer_type)
5830 (read_tag_string_type, dwarf2_init_float_type)
5831 (dwarf2_init_complex_target_type, read_base_type)
5832 (partial_die_info::read, partial_die_info::read)
5833 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
5834 (dwarf2_fetch_die_loc_sect_off): Update.
5835 * dwarf2/loc.c (dwarf2_find_location_expression)
5836 (class dwarf_evaluate_loc_desc, rw_pieced_value)
5837 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
5838 (dwarf2_loc_desc_get_symbol_read_needs)
5839 (locexpr_describe_location_piece, locexpr_describe_location_1)
5840 (loclist_describe_location): Update.
5841 * dwarf2/index-write.c (write_debug_names): Update.
5842 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
5843 * dtrace-probe.c (dtrace_process_dof): Update.
5844 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
5845 (process_one_symbol): Update.
5846 * ctfread.c (ctf_init_float_type, read_base_type): Update.
5847 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
5848 (coff_read_enum_type): Update.
5849 * cli/cli-cmds.c (edit_command, list_command): Update.
5850 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
5851 * breakpoint.c (create_overlay_event_breakpoint)
5852 (create_longjmp_master_breakpoint)
5853 (create_std_terminate_master_breakpoint)
5854 (create_exception_master_breakpoint, get_sal_arch): Update.
5855 * block.c (block_gdbarch): Update.
5856 * annotate.c (annotate_source_line): Update.
5857
0743fc83
TT
58582020-04-17 Tom Tromey <tromey@adacore.com>
5859
5860 * auto-load.c (show_auto_load_cmd): Remove.
5861 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
5862 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
5863 (maintenance_print_arc_command): Remove.
5864 * tui/tui-win.c (tui_command): Remove.
5865 (tui_get_cmd_list): Use add_basic_prefix_cmd.
5866 * tui/tui-layout.c (tui_layout_command): Remove.
5867 (_initialize_tui_layout): Use add_basic_prefix_cmd.
5868 * python/python.c (user_set_python, user_show_python): Remove.
5869 (_initialize_python): Use add_basic_prefix_cmd,
5870 add_show_prefix_cmd.
5871 * guile/guile.c (set_guile_command, show_guile_command): Remove.
5872 (install_gdb_commands): Use add_basic_prefix_cmd,
5873 add_show_prefix_cmd.
5874 (info_guile_command): Remove.
5875 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
5876 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
5877 add_show_prefix_cmd.
5878 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
5879 Remove do_set and do_show parameters.
5880 * cli/cli-style.c (set_style, show_style): Remove.
5881 (_initialize_cli_style): Use add_basic_prefix_cmd,
5882 add_show_prefix_cmd.
5883 (cli_style_option::add_setshow_commands): Remove do_set and
5884 do_show parameters.
5885 (cli_style_option::add_setshow_commands): Use
5886 add_basic_prefix_cmd, add_show_prefix_cmd.
5887 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
5888 (set_style_name): Remove.
5889 * cli/cli-dump.c (dump_command, append_command): Remove.
5890 (srec_dump_command, ihex_dump_command, verilog_dump_command)
5891 (tekhex_dump_command, binary_dump_command)
5892 (binary_append_command): Remove.
5893 (_initialize_cli_dump): Use add_basic_prefix_cmd.
5894 * windows-tdep.c (w32_prefix_command_valid): Remove global.
5895 (init_w32_command_list): Remove; move into ...
5896 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
5897 * valprint.c (set_print, show_print, set_print_raw)
5898 (show_print_raw): Remove.
5899 (_initialize_valprint): Use add_basic_prefix_cmd,
5900 add_show_prefix_cmd.
5901 * typeprint.c (set_print_type, show_print_type): Remove.
5902 (_initialize_typeprint): Use add_basic_prefix_cmd,
5903 add_show_prefix_cmd.
5904 * record.c (set_record_command, show_record_command): Remove.
5905 (_initialize_record): Use add_basic_prefix_cmd,
5906 add_show_prefix_cmd.
5907 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
5908 add_show_prefix_cmd.
5909 (info_command, show_command, set_debug, show_debug): Remove.
5910 * top.h (set_history, show_history): Don't declare.
5911 * top.c (set_history, show_history): Remove.
5912 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
5913 (unset_tdesc_cmd): Remove.
5914 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
5915 add_show_prefix_cmd.
5916 * symtab.c (info_module_command): Remove.
5917 (_initialize_symtab): Use add_basic_prefix_cmd.
5918 * symfile.c (overlay_command): Remove.
5919 (_initialize_symfile): Use add_basic_prefix_cmd.
5920 * sparc64-tdep.c (info_adi_command): Remove.
5921 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
5922 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
5923 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
5924 add_show_prefix_cmd.
5925 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
5926 (_initialize_serial): Use add_basic_prefix_cmd,
5927 add_show_prefix_cmd.
5928 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
5929 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
5930 add_show_prefix_cmd.
5931 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
5932 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
5933 add_show_prefix_cmd.
5934 * riscv-tdep.c (show_riscv_command, set_riscv_command)
5935 (show_debug_riscv_command, set_debug_riscv_command): Remove.
5936 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
5937 add_show_prefix_cmd.
5938 * remote.c (remote_command, set_remote_cmd): Remove.
5939 (_initialize_remote): Use add_basic_prefix_cmd.
5940 * record-full.c (set_record_full_command)
5941 (show_record_full_command): Remove.
5942 (_initialize_record_full): Use add_basic_prefix_cmd,
5943 add_show_prefix_cmd.
5944 * record-btrace.c (cmd_set_record_btrace)
5945 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
5946 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
5947 (cmd_show_record_btrace_pt): Remove.
5948 (_initialize_record_btrace): Use add_basic_prefix_cmd,
5949 add_show_prefix_cmd.
5950 * ravenscar-thread.c (set_ravenscar_command)
5951 (show_ravenscar_command): Remove.
5952 (_initialize_ravenscar): Use add_basic_prefix_cmd,
5953 add_show_prefix_cmd.
5954 * mips-tdep.c (show_mips_command, set_mips_command)
5955 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
5956 add_show_prefix_cmd.
5957 * maint.c (maintenance_command, maintenance_info_command)
5958 (maintenance_check_command, maintenance_print_command)
5959 (maintenance_set_cmd, maintenance_show_cmd): Remove.
5960 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
5961 add_show_prefix_cmd.
5962 (show_per_command_cmd): Remove.
5963 * maint-test-settings.c (maintenance_set_test_settings_cmd):
5964 Remove.
5965 (maintenance_show_test_settings_cmd): Remove.
5966 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
5967 add_show_prefix_cmd.
5968 * maint-test-options.c (maintenance_test_options_command):
5969 Remove.
5970 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
5971 * macrocmd.c (macro_command): Remove
5972 (_initialize_macrocmd): Use add_basic_prefix_cmd.
5973 * language.c (set_check, show_check): Remove.
5974 (_initialize_language): Use add_basic_prefix_cmd,
5975 add_show_prefix_cmd.
5976 * infcmd.c (unset_command): Remove.
5977 (_initialize_infcmd): Use add_basic_prefix_cmd.
5978 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
5979 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
5980 add_show_prefix_cmd.
5981 * go32-nat.c (go32_info_dos_command): Remove.
5982 (_initialize_go32_nat): Use add_basic_prefix_cmd.
5983 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
5984 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
5985 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
5986 (_initialize_frame): Use add_basic_prefix_cmd,
5987 add_show_prefix_cmd.
5988 * dcache.c (set_dcache_command, show_dcache_command): Remove.
5989 (_initialize_dcache): Use add_basic_prefix_cmd,
5990 add_show_prefix_cmd.
5991 * cp-support.c (maint_cplus_command): Remove.
5992 (_initialize_cp_support): Use add_basic_prefix_cmd.
5993 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
5994 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
5995 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
5996 add_basic_prefix_cmd, add_show_prefix_cmd.
5997 * breakpoint.c (save_command): Remove.
5998 (_initialize_breakpoint): Use add_basic_prefix_cmd.
5999 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
6000 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
6001 add_show_prefix_cmd.
6002 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
6003 (set_ada_command, show_ada_command): Remove.
6004 (_initialize_ada_language): Use add_basic_prefix_cmd,
6005 add_show_prefix_cmd.
6006 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
6007
3557f442
KR
60082020-04-16 Kamil Rytarowski <n54@gmx.com>
6009
6010 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
6011 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
6012
16197208
SM
60132020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
6014
6015 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
6016 warning messages.
6017
00ac85d3
SM
60182020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
6019
6020 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
6021 import table is not at beginning of .idata section.
6022
381ce63f
PA
60232020-04-16 Pedro Alves <palves@redhat.com>
6024
6025 * inferior.c (delete_inferior): Use delete operator directly
6026 instead of delete_program_space.
6027 * progspace.c (add_program_space): New, factored out from
6028 program_space::program_space.
6029 (remove_program_space): New, factored out from
6030 delete_program_space.
6031 (program_space::program_space): Remove intro comment. Rewrite.
6032 (program_space::~program_space): Remove intro comment. Call
6033 remove_program_space.
6034 (delete_program_space): Delete.
6035 * progspace.h (program_space::program_space): Make explicit. Move
6036 intro comment here, adjusted.
6037 (program_space::~program_space): Move intro comment here,
6038 adjusted.
6039 (delete_program_space): Remove.
6040
a010605f
TT
60412020-04-16 Tom Tromey <tromey@adacore.com>
6042
6043 * windows-nat.c (windows_nat::handle_access_violation): New
6044 function.
6045 * nat/windows-nat.h (handle_access_violation): Declare.
6046 * nat/windows-nat.c (handle_exception): Move Cygwin code to
6047 windows-nat.c. Call handle_access_violation.
6048
efba5c23
TV
60492020-04-16 Tom de Vries <tdevries@suse.de>
6050
6051 PR symtab/25791
6052 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
6053 CUs without psymtab.
6054
97ed802d
KB
60552020-04-16 Kevin Buettner <kevinb@redhat.com>
6056
6057 * python/python.c (do_start_initialization): Don't call
6058 PyEval_InitThreads for Python 3.9 and beyond.
6059
c7d64809
KR
60602020-04-15 Kamil Rytarowski <n54@gmx.com>
6061
6062 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
6063 thread functions.
6064 (obsd_nat_target::wait): Likewise.
6065
ce127a96
TT
60662020-04-15 Tom Tromey <tromey@adacore.com>
6067
6068 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
6069 (DEBUG_EXCEPT): Use debug_printf.
6070
99f1bc6a
AB
60712020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
6072
6073 * completer.c (class completion_tracker::completion_hash_entry)
6074 <hash_name>: New member function.
6075 (completion_tracker::discard_completions): New callback to hash a
6076 completion_hash_entry, pass this to htab_create_alloc.
6077
a0e9b532
JT
60782016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
6079
6080 * windows-nat.c (windows_make_so): Warn rather than stopping with
6081 an error if realpath() fails.
6082
06ca5dd4
KR
60832020-04-14 Kamil Rytarowski <n54@gmx.com>
6084
6085 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
6086 (nbsd_nat_target::info_proc): Add do_status.
6087
194d088f
TV
60882020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
6089 Tom de Vries <tdevries@suse.de>
6090
6091 PR symtab/25718
6092 * psympriv.h (struct partial_symtab::read_symtab)
6093 (struct partial_symtab::expand_psymtab)
6094 (struct partial_symtab::read_dependencies): Update comments.
6095 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
6096 read_symtab for includer.
6097 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
6098 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
6099 (struct dwarf2_include_psymtab::m_readin): Remove.
6100 (struct dwarf2_include_psymtab::includer): New member function.
6101 (dwarf2_psymtab::expand_psymtab): Assert !readin.
6102
c1a66c06
TV
61032020-04-14 Tom de Vries <tdevries@suse.de>
6104
6105 PR symtab/25720
6106 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
6107 with NULL symbol_matcher and lookup_name.
6108 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
6109 and lookup_name.
6110 * dwarf2/read.c (dw2_expand_symtabs_matching)
6111 (dw2_debug_names_expand_symtabs_matching): Same.
6112 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
6113 Make lookup_name a pointer. Update comment.
6114 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
6115 lookup_name being a pointer.
6116 * symfile.c (expand_symtabs_matching): Same.
6117 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
6118 * linespec.c (iterate_over_all_matching_symtabs): Same.
6119
400b5eca
TT
61202020-04-13 Tom Tromey <tom@tromey.com>
6121
6122 * run-on-main-thread.c: Update include.
6123 * unittests/main-thread-selftests.c: Update include.
6124 * tui/tui-win.c: Update include.
6125 * tui/tui-io.c: Update include.
6126 * tui/tui-interp.c: Update include.
6127 * tui/tui-hooks.c: Update include.
6128 * top.h: Update include.
6129 * top.c: Update include.
6130 * ser-base.c: Update include.
6131 * remote.c: Update include.
6132 * remote-notif.c: Update include.
6133 * remote-fileio.c: Update include.
6134 * record-full.c: Update include.
6135 * record-btrace.c: Update include.
6136 * python/python.c: Update include.
6137 * posix-hdep.c: Update include.
6138 * mingw-hdep.c: Update include.
6139 * mi/mi-main.c: Update include.
6140 * mi/mi-interp.c: Update include.
6141 * main.c: Update include.
6142 * linux-nat.c: Update include.
6143 * interps.c: Update include.
6144 * infrun.c: Update include.
6145 * inf-loop.c: Update include.
6146 * event-top.c: Update include.
6147 * event-loop.c: Move to ../gdbsupport/.
6148 * event-loop.h: Move to ../gdbsupport/.
6149 * async-event.h: Update include.
6150 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
6151
93b54c8e
TT
61522020-04-13 Tom Tromey <tom@tromey.com>
6153
6154 * tui/tui-win.c: Include async-event.h.
6155 * remote.c: Include async-event.h.
6156 * remote-notif.c: Include async-event.h.
6157 * record-full.c: Include async-event.h.
6158 * record-btrace.c: Include async-event.h.
6159 * infrun.c: Include async-event.h.
6160 * event-top.c: Include async-event.h.
6161 * event-loop.h: Move some declarations to async-event.h.
6162 * event-loop.c: Don't include ser-event.h or top.h. Move some
6163 code to async-event.c.
6164 * async-event.h: New file.
6165 * async-event.c: New file.
6166 * Makefile.in (COMMON_SFILES): Add async-event.c.
6167 (HFILES_NO_SRCDIR): Add async-event.h.
6168
c1cd3163
TT
61692020-04-13 Tom Tromey <tom@tromey.com>
6170
6171 * utils.c (flush_streams): New function.
6172 * event-loop.c (gdb_wait_for_event): Call flush_streams.
6173
29f2bf4f
TT
61742020-04-13 Tom Tromey <tom@tromey.com>
6175
6176 * event-loop.c (handle_file_event): Use warning, not
6177 printf_unfiltered.
6178
98029d02
TT
61792020-04-13 Tom Tromey <tom@tromey.com>
6180
6181 * event-loop.c: Include <chrono>.
6182
06cc9596
TT
61832020-04-13 Tom Tromey <tom@tromey.com>
6184
6185 * gdb_select.h: Move to ../gdbsupport/.
6186 * event-loop.c: Update include path.
6187 * top.c: Update include path.
6188 * ser-base.c: Update include path.
6189 * ui-file.c: Update include path.
6190 * ser-tcp.c: Update include path.
6191 * guile/scm-ports.c: Update include path.
6192 * posix-hdep.c: Update include path.
6193 * ser-unix.c: Update include path.
6194 * gdb_usleep.c: Update include path.
6195 * mingw-hdep.c: Update include path.
6196 * inflow.c: Update include path.
6197 * infrun.c: Update include path.
6198 * event-top.c: Update include path.
6199
8ae8e197
TT
62002020-04-13 Tom Tromey <tom@tromey.com>
6201
6202 * configure: Rebuild.
6203 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
6204
58cf28e8
TT
62052020-04-13 Tom Tromey <tom@tromey.com>
6206
6207 * event-loop.h (start_event_loop): Don't declare.
6208 * event-loop.c (start_event_loop): Move...
6209 * main.c (start_event_loop): ...here. Now static.
6210
b7f999ae
SDJ
62112020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
6212
6213 * MAINTAINERS: Update my email address.
6214
1085dfd4
KR
62152020-04-12 Kamil Rytarowski <n54@gmx.com>
6216
6217 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
6218 IP_ALL.
6219
49d1d1f5
KR
62202020-04-12 Kamil Rytarowski <n54@gmx.com>
6221
6222 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
aac66a4c 6223 (nbsd_nat_target::info_proc): Add do_cmdline.
49d1d1f5 6224
b4848d2a
KR
62252020-04-12 Kamil Rytarowski <n54@gmx.com>
6226
6227 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
aac66a4c 6228 (nbsd_nat_target::info_proc): Add do_cwd.
b4848d2a 6229
51c133d5
KR
62302020-04-12 Kamil Rytarowski <n54@gmx.com>
6231
6232 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
6233
54b8cbd0
KR
62342020-04-11 Kamil Rytarowski <n54@gmx.com>
6235
6236 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
6237 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
6238 (nbsd_nat_target::info_proc): New functions.
6239 * nbsd-nat.c (kinfo_get_vmmap): New function.
6240 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
6241 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
6242 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
6243 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
6244 functions.
6245 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
6246 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
6247 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
6248 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
6249 (KINFO_VME_FLAG_GROWS_DOWN): New.
6250
cf83625d
AS
62512020-04-10 Artur Shepilko <nomadbyte@gmail.com>
6252
6253 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
6254 bit shift.
6255
0c4311ab
TT
62562020-04-10 Tom Tromey <tromey@adacore.com>
6257
6258 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
6259
3e65b3e9
TT
62602020-04-10 Tom Tromey <tromey@adacore.com>
6261
6262 * symtab.c (get_symbol_address, get_msymbol_address): Skip
6263 separate debug files.
6264
13302e95
HD
62652020-04-10 Hannes Domani <ssbssa@yahoo.de>
6266
6267 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
6268 Move to...
6269 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
6270 ... here.
6271 * windows-nat.c (windows_nat_target::get_windows_debug_event):
6272 Check for STATUS_WX86_BREAKPOINT.
6273 (windows_nat_target::wait): Same.
6274
bdfc1e8a
TV
62752020-04-10 Tom de Vries <tdevries@suse.de>
6276
6277 PR cli/25808
6278 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
6279
f4460aec
SM
62802020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
6281
6282 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
6283 (Write After Approval): Remove Tom de Vries.
6284
a25198bb
BE
62852020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
6286
6287 revert partially:
6288 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
6289
aac66a4c
SM
6290 * buildsym.c (record_line): Fix undefined behavior and preserve
6291 lines at eof.
a25198bb 6292
206c98a6
KR
62932020-04-09 Kamil Rytarowski <n54@gmx.com>
6294
6295 * auxv.h (svr4_auxv_parse): New.
6296 * auxv.c (default_auxv_parse): Split into default_auxv_parse
6297 and generic_auxv_parse.
6298 (svr4_auxv_parse): Add.
6299 * obsd-tdep.c: Include "auxv.h".
6300 (obsd_auxv_parse): Remove.
6301 (obsd_init_abi): Remove comment.
6302 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
6303 from `obsd_auxv_parse' to `svr4_auxv_parse'.
6304 * nbsd-tdep.c: Include "auxv.h".
6305 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
6306
71fbdbaf
TT
63072020-04-08 Tom Tromey <tromey@adacore.com>
6308
6309 * nat/windows-nat.h (last_wait_event): Don't declare.
6310 (wait_for_debug_event): Update comment.
6311 * nat/windows-nat.c (last_wait_event): Now static.
6312
2c1d95e8
TT
63132020-04-08 Tom Tromey <tromey@adacore.com>
6314
6315 * windows-nat.c (wait_for_debug_event): Move to
6316 nat/windows-nat.c.
6317 * nat/windows-nat.h (wait_for_debug_event): Declare.
6318 * nat/windows-nat.c (wait_for_debug_event): Move from
6319 windows-nat.c. No longer static.
6320
d2977bc4
TT
63212020-04-08 Tom Tromey <tromey@adacore.com>
6322
6323 * windows-nat.c (get_windows_debug_event): Use
6324 fetch_pending_stop.
6325 * nat/windows-nat.h (fetch_pending_stop): Declare.
6326 * nat/windows-nat.c (fetch_pending_stop): New function.
6327
e758e19c
TT
63282020-04-08 Tom Tromey <tromey@adacore.com>
6329
6330 * windows-nat.c (windows_continue): Use matching_pending_stop and
6331 continue_last_debug_event.
6332 * nat/windows-nat.h (matching_pending_stop)
6333 (continue_last_debug_event): Declare.
6334 * nat/windows-nat.c (DEBUG_EVENTS): New define.
6335 (matching_pending_stop, continue_last_debug_event): New
6336 functions.
6337
8d30e395
TT
63382020-04-08 Tom Tromey <tromey@adacore.com>
6339
6340 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
6341 (handle_exception_result): Move to nat/windows-nat.h.
6342 (DEBUG_EXCEPTION_SIMPLE): Remove.
6343 (windows_nat::handle_ms_vc_exception): New function.
6344 (handle_exception): Move to nat/windows-nat.c.
6345 (get_windows_debug_event): Update.
6346 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
6347 nat/windows-nat.c.
6348 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
6349 (handle_exception_result): Move from windows-nat.c.
6350 (handle_exception): Declare.
6351 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
6352 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
6353 windows-nat.c.
6354
29de418d
TT
63552020-04-08 Tom Tromey <tromey@adacore.com>
6356
6357 * windows-nat.c (exception_count, event_count): Remove.
6358 (handle_exception, get_windows_debug_event)
6359 (do_initial_windows_stuff): Update.
6360
a816ba18
TT
63612020-04-08 Tom Tromey <tromey@adacore.com>
6362
6363 * windows-nat.c (windows_nat::handle_load_dll)
6364 (windows_nat::handle_unload_dll): Rename. No longer static.
6365 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
6366 Declare.
6367
a00caa12
TT
63682020-04-08 Tom Tromey <tromey@adacore.com>
6369
6370 * complaints.h (stop_whining): Declare at top-level.
6371 (complaint): Don't declare stop_whining.
6372
d41b524f
TT
63732020-04-08 Tom Tromey <tromey@adacore.com>
6374
6375 * windows-nat.c (windows_nat::handle_output_debug_string):
6376 Rename. No longer static.
6377 * nat/windows-nat.h (handle_output_debug_string): Declare.
6378
3c76026d
TT
63792020-04-08 Tom Tromey <tromey@adacore.com>
6380
6381 * windows-nat.c (current_process_handle, current_process_id)
6382 (main_thread_id, last_sig, current_event, last_wait_event)
6383 (current_windows_thread, desired_stop_thread_id, pending_stops)
6384 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
6385 (display_selectors, fake_create_process)
6386 (get_windows_debug_event): Update.
6387 * nat/windows-nat.h (current_process_handle, current_process_id)
6388 (main_thread_id, last_sig, current_event, last_wait_event)
6389 (current_windows_thread, desired_stop_thread_id, pending_stops)
6390 (struct pending_stop, siginfo_er): Move from windows-nat.c.
6391 * nat/windows-nat.c (current_process_handle, current_process_id)
6392 (main_thread_id, last_sig, current_event, last_wait_event)
6393 (current_windows_thread, desired_stop_thread_id, pending_stops)
6394 (siginfo_er): New globals. Move from windows-nat.c.
6395
9d8679cc
TT
63962020-04-08 Tom Tromey <tromey@adacore.com>
6397
6398 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
6399 (handle_load_dll): Update.
6400 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
6401
28688adf
TT
64022020-04-08 Tom Tromey <tromey@adacore.com>
6403
6404 * windows-nat.c (enum thread_disposition_type): Move to
6405 nat/windows-nat.h.
6406 (windows_nat::thread_rec): Rename from thread_rec. No longer
6407 static.
6408 (windows_add_thread, windows_nat_target::fetch_registers)
6409 (windows_nat_target::store_registers, handle_exception)
6410 (windows_nat_target::resume, get_windows_debug_event)
6411 (windows_nat_target::get_tib_address)
6412 (windows_nat_target::thread_name)
6413 (windows_nat_target::thread_alive): Update.
6414 * nat/windows-nat.h (enum thread_disposition_type): Move from
6415 windows-nat.c.
6416 (thread_rec): Declare.
6417
4834dad0
TT
64182020-04-08 Tom Tromey <tromey@adacore.com>
6419
6420 * windows-nat.c: Add "using namespace".
6421 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
6422 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
6423
65bafd5b
TT
64242020-04-08 Tom Tromey <tromey@adacore.com>
6425
6426 * nat/windows-nat.h (struct windows_thread_info): Declare
6427 destructor.
6428 * nat/windows-nat.c (~windows_thread_info): New.
6429
0a4afda3
TT
64302020-04-08 Tom Tromey <tromey@adacore.com>
6431
6432 PR gdb/22992
6433 * windows-nat.c (current_event): Update comment.
6434 (last_wait_event, desired_stop_thread_id): New globals.
6435 (struct pending_stop): New.
6436 (pending_stops): New global.
6437 (windows_nat_target) <stopped_by_sw_breakpoint>
6438 <supports_stopped_by_sw_breakpoint>: New methods.
6439 (windows_fetch_one_register): Add assertions. Adjust PC.
6440 (windows_continue): Handle pending stops. Suspend other threads
6441 when stepping. Use last_wait_event
6442 (wait_for_debug_event): New function.
6443 (get_windows_debug_event): Use wait_for_debug_event. Handle
6444 pending stops. Queue spurious stops.
6445 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
6446 (windows_nat_target::kill): Use wait_for_debug_event.
6447 * nat/windows-nat.h (struct windows_thread_info)
6448 <stopped_at_software_breakpoint>: New field.
6449 * nat/windows-nat.c (windows_thread_info::resume): Clear
6450 stopped_at_software_breakpoint.
6451
8e61ebec
TT
64522020-04-08 Tom Tromey <tromey@adacore.com>
6453
6454 * windows-nat.c (enum thread_disposition_type): New.
6455 (thread_rec): Replace "get_context" parameter with "disposition";
6456 change type.
6457 (windows_add_thread, windows_nat_target::fetch_registers)
6458 (windows_nat_target::store_registers, handle_exception)
6459 (windows_nat_target::resume, get_windows_debug_event)
6460 (windows_nat_target::get_tib_address)
6461 (windows_nat_target::thread_name)
6462 (windows_nat_target::thread_alive): Update.
6463
98a03287
TT
64642020-04-08 Tom Tromey <tromey@adacore.com>
6465
6466 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
6467 (windows_continue): Use windows_continue::resume.
6468 * nat/windows-nat.h (struct windows_thread_info) <suspend,
6469 resume>: Declare new methods.
6470 * nat/windows-nat.c: New file.
6471 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
6472
7c7411bc
TT
64732020-04-08 Tom Tromey <tromey@adacore.com>
6474
6475 * windows-nat.c (windows_add_thread, windows_delete_thread)
6476 (windows_nat_target::fetch_registers)
6477 (windows_nat_target::store_registers, fake_create_process)
6478 (windows_nat_target::resume, windows_nat_target::resume)
6479 (get_windows_debug_event, windows_nat_target::wait)
6480 (windows_nat_target::pid_to_str)
6481 (windows_nat_target::get_tib_address)
6482 (windows_nat_target::get_ada_task_ptid)
6483 (windows_nat_target::thread_name)
6484 (windows_nat_target::thread_alive): Use lwp, not tid.
6485
2950fdf7
TT
64862020-04-08 Tom Tromey <tromey@adacore.com>
6487
6488 * windows-nat.c (handle_exception)
6489 (windows_nat_target::thread_name): Update.
6490 * nat/windows-nat.h (windows_thread_info): Remove destructor.
6491 <name>: Now unique_xmalloc_ptr.
6492
62fe396b
TT
64932020-04-08 Tom Tromey <tromey@adacore.com>
6494
6495 * windows-nat.c (thread_rec)
6496 (windows_nat_target::fetch_registers): Update.
6497 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
6498 Update comment.
6499 <debug_registers_changed, reload_context>: Now bool.
6500
e9534bd2
TT
65012020-04-08 Tom Tromey <tromey@adacore.com>
6502
6503 * windows-nat.c (windows_add_thread): Use new.
6504 (windows_init_thread_list, windows_delete_thread): Use delete.
6505 (get_windows_debug_event): Update.
6506 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
6507 destructor, and initializers.
6508
ae1f8880
TT
65092020-04-08 Tom Tromey <tromey@adacore.com>
6510
6511 * windows-nat.c (struct windows_thread_info): Remove.
6512 * nat/windows-nat.h: New file.
6513
55a1e039
TT
65142020-04-08 Tom Tromey <tromey@adacore.com>
6515
6516 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
6517 (thread_rec, windows_add_thread, windows_delete_thread)
6518 (windows_continue): Update.
6519
93366324
TT
65202020-04-08 Tom Tromey <tromey@adacore.com>
6521
6522 * windows-nat.c (struct windows_thread_info): Remove typedef.
6523 (thread_head): Remove.
6524 (thread_list): New global.
6525 (thread_rec, windows_add_thread, windows_init_thread_list)
6526 (windows_delete_thread, windows_continue): Update.
6527
0f2265e2
SM
65282020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
6529
6530 * windows-tdep.h (windows_init_abi): Add comment.
6531 (cygwin_init_abi): New declaration.
6532 * windows-tdep.c: Split signal enumeration in two, one for
6533 Windows and one for Cygwin.
6534 (windows_gdb_signal_to_target): Only deal with signal of the
6535 Windows OS ABI.
6536 (cygwin_gdb_signal_to_target): New function.
6537 (windows_init_abi): Rename to windows_init_abi_common, don't set
6538 gdb_signal_to_target gdbarch method. Add new new function with
6539 this name.
6540 (cygwin_init_abi): New function.
6541 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
6542 comment. Don't call windows_init_abi.
6543 (amd64_windows_init_abi): Add comment, call windows_init_abi.
6544 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
6545 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
6546 i386_windows_init_abi_common, don't call windows_init_abi. Add
6547 a new function of this name.
6548 (i386_cygwin_init_abi): New function.
6549 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
6550 OS ABI Cygwin.
6551
3810f182
SM
65522020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
6553
6554 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
6555 parameter.c.
6556 (dwarf2_read_gdb_index): Update.
6557
063f8e80
KR
65582020-04-07 Kamil Rytarowski <n54@gmx.com>
6559
6560 * nbsd-tdep.c: Include "objfiles.h".
6561 (nbsd_skip_solib_resolver): New.
6562 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
6563
85a9510c 65642020-04-07 Nitika Achra <Nitika.Achra@amd.com>
6565
6566 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
6567 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
6568 with DW_LLE_base_addressx are being emitted in DWARFv5.
6569 Add the newly added kind DW_LOC_OFFSET_PAIR also.
6570 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
6571 unsigned integer.
6572
9fc3eaae 65732020-04-07 Nitika Achra <Nitika.Achra@amd.com>
6574
6575 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
6576 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
6577 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
6578 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
6579 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
6580 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
6581 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
6582
6583
41144253 65842020-04-07 Nitika Achra <Nitika.Achra@amd.com>
6585
6586 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
6587 (read_loclist_index): New function definition.
6588 (lookup_loclist_base): New function definition.
6589 (read_loclist_header): New function definition.
6590 (dwarf2_cu): Add loclist_base and loclist_header field.
6591 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
6592 (read_full_die_1): Read the value of DW_AT_loclists_base.
6593 (read_attribute_reprocess): Handle DW_FORM_loclistx.
6594 (read_attribute_value): Handle DW_FORM_loclistx.
6595 (skip_one_die): Handle DW_FORM_loclistx.
6596 (loclist_header): New structure declaration.
6597 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
6598
9f4e76a4
SM
65992020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
6600
6601 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
6602 constructor. Remove `addr` parameter from other constructor and
6603 add `per_cu` parameter.
6604 * dwarf2/read.c (create_partial_symtab): Update.
6605
25c11aca
TV
66062020-04-07 Tom de Vries <tdevries@suse.de>
6607
6608 PR symtab/25796
6609 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
6610 (partial_die_info::fixup): Inherit has_const_value.
6611
5707e24b
TV
66122020-04-07 Tom de Vries <tdevries@suse.de>
6613
6614 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
6615 symbols without address.
6616
05f00e22
KR
66172020-04-06 Kamil Rytarowski <n54@gmx.com>
6618
6619 * nbsd-nat.h (struct thread_info): Add forward declaration.
6620 (nbsd_nat_target::thread_alive): Add.
6621 (nbsd_nat_target::thread_name): Likewise.
6622 (nbsd_nat_target::update_thread_list): Likewise.
6623 (update_thread_list::post_attach): Likewise.
6624 (post_attach::pid_to_str): Likewise.
6625 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
6626 (nbsd_thread_lister): Add.
6627 (nbsd_nat_target::thread_alive): Likewise.
6628 (nbsd_nat_target::thread_name): Likewise.
6629 (nbsd_add_threads): Likewise.
6630 (update_thread_list::post_attach): Likewise.
6631 (nbsd_nat_target::update_thread_list): Likewise.
6632 (post_attach::pid_to_str): Likewise.
6633
6ee448cc
TT
66342020-04-06 Tom Tromey <tromey@adacore.com>
6635
6636 * ada-valprint.c (print_variant_part): Extract the variant field.
6637 (print_field_values): Use the field as the outer value when
6638 recursing.
6639
dea34e8c
TT
66402020-04-06 Tom Tromey <tromey@adacore.com>
6641
6642 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
6643 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
6644 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
6645 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
6646 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
6647
93689ce9
TT
66482020-04-06 Tom Tromey <tromey@adacore.com>
6649
6650 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
6651 TYPE_CODE_ERROR.
6652
79743962
KR
66532020-04-06 Kamil Rytarowski <n54@gmx.com>
6654
6655 * nbsd-tdep.c: Include "gdbarch.h".
6656 Define enum with NetBSD signal numbers.
6657 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
6658 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
6659 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
6660 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
6661 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
6662 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
6663 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
6664 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
6665 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
6666 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
6667 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
6668 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
6669
9e7c9a03
HD
66702020-04-03 Hannes Domani <ssbssa@yahoo.de>
6671
6672 PR gdb/25325
6673 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
6674
d9e49b61
TT
66752020-04-03 Tom Tromey <tromey@adacore.com>
6676
6677 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
6678 Read constant block.
6679
e0fc5c3f
SM
66802020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
6681
6682 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
6683 (gdb_bfd_get_full_section_contents): New declaration.
6684 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
6685 * windows-tdep.c (is_linked_with_cygwin_dll): Use
6686 gdb_bfd_get_full_section_contents.
6687
e2ff18a0
SM
66882020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
6689
6690 * exec.c (build_section_table): Replace internal_error with
6691 gdb_assert.
6692 (section_table_xfer_memory_partial): Likewise.
6693 * mdebugread.c (parse_partial_symbols): Likewise.
6694 * psymtab.c (lookup_partial_symbol): Likewise.
6695 * utils.c (wrap_here): Likewise.
6696
0830d301
TT
66972020-04-02 Tom Tromey <tromey@adacore.com>
6698
6699 * f-lang.c (build_fortran_types): Use arch_type to initialize
6700 builtin_complex_s32 in the TYPE_CODE_ERROR case.
6701
e7da7f8f
TT
67022020-04-02 Tom Tromey <tromey@adacore.com>
6703
6704 * dwarf2/read.c (partial_die_info::read): Do not create a vector
6705 of attributes.
6706
c90d28ac
AB
67072020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
6708 Bernd Edlinger <bernd.edlinger@hotmail.de>
6709 Tom Tromey <tromey@adacore.com>
6710
6711 * buildsym.c (buildsym_compunit::record_line): Remove
6712 deduplication code.
6713
1aa98955
TV
67142020-04-02 Tom de Vries <tdevries@suse.de>
6715
6716 PR ada/24671
6717 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
6718
d3214198
TV
67192020-04-02 Tom de Vries <tdevries@suse.de>
6720
6721 * dwarf2/read.c (dwarf2_gdb_index_functions,
6722 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
6723 NULL.
6724 * psymtab.c (psym_lookup_global_symbol_language): New function.
6725 (psym_functions): Init psym_lookup_global_symbol_language with
6726 psym_lookup_global_symbol_language.
6727 * symfile-debug.c (debug_sym_quick_functions): Init
6728 lookup_global_symbol_language with NULL.
6729 * symfile.c (set_initial_language): Remove fixme comment.
6730 * symfile.h (struct quick_symbol_functions): Add
6731 lookup_global_symbol_language.
6732 * symtab.c (find_quick_global_symbol_language): New function.
6733 (find_main_name): Use find_quick_global_symbol_language.
6734
2836752f
SM
67352020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
6736
6737 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
6738
64dc2d4b
BE
67392020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
6740
6741 * buildsym.c (record_line): Fix undefined behavior and preserve
6742 lines at eof.
6743
bbe3dc41
BE
67442020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
6745
6746 * buildsym.c (record_line): Fix the resizing condition.
6747
6b4a335b
TT
67482020-04-01 Tom Tromey <tom@tromey.com>
6749
6750 * value.h (value_literal_complex): Add comment.
6751 * valops.c (value_literal_complex): Refer to value.h.
6752
3638a098
TT
67532020-04-01 Tom Tromey <tom@tromey.com>
6754
6755 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
6756 (scalar_type): New rule, from typebase.
6757 (typebase): Use scalar_type. Recognize complex types.
6758 (field_name): Handle FLOAT_KEYWORD.
6759 (ident_tokens): Add _Complex and __complex__.
6760
c34e8714
TT
67612020-04-01 Tom Tromey <tom@tromey.com>
6762
6763 PR exp/25299:
6764 * valarith.c (promotion_type, complex_binop): New functions.
6765 (scalar_binop): Handle complex numbers. Use promotion_type.
6766 (value_pos, value_neg, value_complement): Handle complex numbers.
6767
fa649bb7
TT
67682020-04-01 Tom Tromey <tom@tromey.com>
6769
6770 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
6771 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
6772 (parse_number): Handle complex numbers.
6773
981c08ce
TT
67742020-04-01 Tom Tromey <tom@tromey.com>
6775
6776 * c-valprint.c (c_decorations): Change complex suffix to "i".
6777
4c99290d
TT
67782020-04-01 Tom Tromey <tom@tromey.com>
6779
6780 * valprint.c (generic_value_print_complex): Use accessors.
6781 * value.h (value_real_part, value_imaginary_part): Declare.
6782 * valops.c (value_real_part, value_imaginary_part): New
6783 functions.
6784 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
6785
5b930b45
TT
67862020-04-01 Tom Tromey <tom@tromey.com>
6787
6788 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
6789 (read_range_type): Update.
6790 * mdebugread.c (basic_type): Update.
6791 * go-lang.c (build_go_types): Use init_complex_type.
6792 * gdbtypes.h (struct main_type) <complex_type>: New member.
6793 (init_complex_type): Update.
6794 (arch_complex_type): Don't declare.
6795 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
6796 Make name if none given. Use alloc_type_copy. Look for cached
6797 complex type.
6798 (arch_complex_type): Remove.
6799 (gdbtypes_post_init): Use init_complex_type.
6800 * f-lang.c (build_fortran_types): Use init_complex_type.
6801 * dwarf2/read.c (read_base_type): Update.
6802 * d-lang.c (build_d_types): Use init_complex_type.
6803 * ctfread.c (read_base_type): Update.
6804
53cccef1
TBA
68052020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6806
6807 * infrun.c (stop_all_threads): Update assertion, plus when
6808 stopping threads, take into account that we might be trying
6809 to stop an all-stop target.
6810 (stop_waiting): Call 'stop_all_threads' if there exists a
6811 non-stop target.
6812
a0714d30
TBA
68132020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6814
6815 * target.h (exists_non_stop_target): New function declaration.
6816 * target.c (exists_non_stop_target): New function.
6817
60e22c1e
HD
68182020-04-01 Hannes Domani <ssbssa@yahoo.de>
6819
6820 PR gdb/24789
6821 * eval.c (is_integral_or_integral_reference): New function.
6822 (evaluate_subexp_standard): Allow integer references in
6823 pointer arithmetic.
6824
e139a727
TBA
68252020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6826
6827 * remote.c (remote_target::remote_parse_stop_reply): Remove the
6828 check for no ptid in the stop reply when the target is non-stop.
6829
e0802d59
TT
68302020-04-01 Tom Tromey <tromey@adacore.com>
6831
6832 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
6833 "name" parameter to rvalue reference. Initialize m_name_holder.
6834 <lookup_name_info>: New overloads.
6835 <name>: Return gdb::string_view.
6836 <c_str>: New method.
6837 <make_ignore_params>: Update.
6838 <search_name_hash>: Update.
6839 <language_lookup_name>: Return const char *.
6840 <m_name>: Change type.
6841 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
6842 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
6843 (lookup_name_info::match_any): Update.
6844 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
6845 Update.
6846 * minsyms.c (linkage_name_str): Update.
6847 * language.c (default_symbol_name_matcher): Update.
6848 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
6849 Update.
6850 * ada-lang.c (ada_fold_name): Change parameter to string_view.
6851 (ada_lookup_name_info::ada_lookup_name_info): Update.
6852 (literal_symbol_name_matcher): Update.
6853
8c072cb6
TT
68542020-04-01 Tom Tromey <tromey@adacore.com>
6855
6856 * psymtab.c (psymtab_search_name): Remove function.
6857 (psym_lookup_symbol): Create search name and lookup name here.
6858 (lookup_partial_symbol): Remove "name" parameter; add
6859 lookup_name.
6860 (psym_expand_symtabs_for_function): Update.
6861
6f29a534
TT
68622020-03-31 Joel Jones <joelkevinjones@gmail.com>
6863
6864 PR tui/25597:
6865 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
6866
af62665e
TT
68672020-03-31 Tom Tromey <tromey@adacore.com>
6868
6869 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
6870 memcpy.
6871
d1a89da5
NC
68722020-03-30 Nelson Chu <nelson.chu@sifive.com>
6873
6874 * features/riscv/32bit-csr.xml: Regenerated.
6875 * features/riscv/64bit-csr.xml: Regenerated.
6876
d8af9068
TT
68772020-03-30 Tom Tromey <tromey@adacore.com>
6878
6879 * ada-valprint.c (print_variant_part): Update.
6880 * ada-lang.h (ada_which_variant_applies): Update.
6881 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
6882 outer_valaddr parameters; replace with "outer" value parameter.
6883 (to_fixed_variant_branch_type): Update.
6884
227c0bf4
PFC
68852020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6886
6887 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
6888 <list>. Remove inclusion of observable.h.
6889 (PPC_DEBUG_CURRENT_VERSION): Move up define.
6890 (struct arch_lwp_info): New struct.
6891 (class ppc_linux_dreg_interface): New class.
6892 (struct ppc_linux_process_info): New struct.
6893 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
6894 <low_new_clone, low_forget_process, low_prepare_to_resume>
6895 <copy_thread_dreg_state, mark_thread_stale>
6896 <mark_debug_registers_changed, register_hw_breakpoint>
6897 <clear_hw_breakpoint, register_wp, clear_wp>
6898 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
6899 <num_memory_accesses, get_trigger_type>
6900 <create_watchpoint_request, hwdebug_point_cmp>
6901 <init_arch_lwp_info, get_arch_lwp_info>
6902 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
6903 methods.
6904 <struct ptid_hash>: New inner struct.
6905 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
6906 members.
6907 (saved_dabr_value, hwdebug_info, max_slots_number)
6908 (struct hw_break_tuple, struct thread_points, ppc_threads)
6909 (have_ptrace_hwdebug_interface)
6910 (hwdebug_find_thread_points_by_tid)
6911 (hwdebug_insert_point, hwdebug_remove_point): Remove.
6912 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
6913 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
6914 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
6915 use m_dreg_interface.
6916 (hwdebug_point_cmp): Change to...
6917 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
6918 reference arguments instead of pointers.
6919 (ppc_linux_nat_target::ranged_break_num_registers): Use
6920 m_dreg_interface.
6921 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
6922 m_dreg_interface. Call register_hw_breakpoint.
6923 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
6924 m_dreg_interface. Call clear_hw_breakpoint.
6925 (get_trigger_type): Change to...
6926 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
6927 comment.
6928 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
6929 use m_dreg_interface. Call register_hw_breakpoint.
6930 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
6931 use m_dreg_interface. Call clear_hw_breakpoint.
6932 (can_use_watchpoint_cond_accel): Change to...
6933 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
6934 method. Update comment, use m_dreg_interface and
6935 m_process_info.
6936 (calculate_dvc): Change to...
6937 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
6938 m_dreg_interface.
6939 (num_memory_accesses): Change to...
6940 (ppc_linux_nat_target::num_memory_accesses): ...this method.
6941 (check_condition): Change to...
6942 (ppc_linux_nat_target::check_condition): ...this method.
6943 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
6944 comment, use m_dreg_interface.
6945 (create_watchpoint_request): Change to...
6946 (ppc_linux_nat_target::create_watchpoint_request): ...this
6947 method. Use m_dreg_interface.
6948 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
6949 m_dreg_interface. Call register_hw_breakpoint or register_wp.
6950 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
6951 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
6952 (ppc_linux_nat_target::low_forget_process)
6953 (ppc_linux_nat_target::low_new_fork)
6954 (ppc_linux_nat_target::low_new_clone)
6955 (ppc_linux_nat_target::low_delete_thread)
6956 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
6957 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
6958 only call mark_thread_stale.
6959 (ppc_linux_thread_exit): Remove.
6960 (ppc_linux_nat_target::stopped_data_address): Change to...
6961 (ppc_linux_nat_target::low_stopped_data_address): This. Add
6962 comment, use m_dreg_interface and m_thread_hw_breakpoints.
6963 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
6964 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
6965 comment. Call low_stopped_data_address.
6966 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
6967 m_dreg_interface.
6968 (ppc_linux_nat_target::masked_watch_num_registers): Use
6969 m_dreg_interface.
6970 (ppc_linux_nat_target::copy_thread_dreg_state)
6971 (ppc_linux_nat_target::mark_thread_stale)
6972 (ppc_linux_nat_target::mark_debug_registers_changed)
6973 (ppc_linux_nat_target::register_hw_breakpoint)
6974 (ppc_linux_nat_target::clear_hw_breakpoint)
6975 (ppc_linux_nat_target::register_wp)
6976 (ppc_linux_nat_target::clear_wp)
6977 (ppc_linux_nat_target::init_arch_lwp_info)
6978 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
6979 (_initialize_ppc_linux_nat): Remove observer callback.
6980
4db10d8f
PFC
69812020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6982
6983 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
6984 (ppc_linux_nat_target::auxv_parse)
6985 (ppc_linux_nat_target::read_description)
6986 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
6987 Move up.
6988
1310c1b0
PFC
69892020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6990
6991 * linux-nat.h (low_new_clone): New method.
6992 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
6993
69b037c3
SM
69942020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
6995
6996 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
6997 (dbx_expand_psymtab): ... this.
6998 (start_psymtab): Update.
6999 * mdebugread.c (psymtab_to_symtab_1): Rename to...
7000 (mdebug_expand_psymtab): ... this.
7001 (parse_partial_symbols): Update.
7002 (new_psymtab): Update.
7003 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
7004 (xcoff_expand_psymtab): ... this.
7005 (xcoff_start_psymtab): Update.
7006
48993951
SM
70072020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
7008
7009 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
7010 <expand_dependencies>: ... this.
7011 * psymtab.c (partial_symtab::read_dependencies): Rename to...
7012 (partial_symtab::expand_dependencies): ... this.
7013 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
7014 Update.
7015 (dwarf2_psymtab::expand_psymtab): Update.
7016 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
7017 * mdebugread.c (psymtab_to_symtab_1): Update.
7018 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
7019
3ad83046
SM
70202020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
7021
7022 * psympriv.h (discard_psymtab): Remove.
7023 * dbxread.c (dbx_end_psymtab): Update.
7024 * xcoffread.c (xcoff_end_psymtab): Update.
7025
4d1b9ab6
TT
70262020-03-28 Tom Tromey <tom@tromey.com>
7027
7028 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
7029 comment.
7030
f1749218
TT
70312020-03-28 Tom Tromey <tom@tromey.com>
7032
7033 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
7034
ebea7626
HD
70352020-03-27 Hannes Domani <ssbssa@yahoo.de>
7036
7037 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
7038
a879b4d5
JB
70392020-03-26 John Baldwin <jhb@FreeBSD.org>
7040
7041 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
7042
0826b30a
TT
70432020-03-26 Tom Tromey <tom@tromey.com>
7044
7045 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
7046 (mark_common_block_symbol_computed, read_tag_string_type)
7047 (attr_to_dynamic_prop, read_subrange_type): Update.
7048 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
7049 to be methods on struct attribute.
7050 (skip_one_die, process_imported_unit_die, read_namespace_alias)
7051 (read_call_site_scope, partial_die_info::read)
7052 (partial_die_info::read, lookup_die_type, follow_die_ref):
7053 Update.
7054 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
7055 from dwarf2_get_ref_die_offset.
7056 (attribute::constant_value): New method, from
7057 dwarf2_get_attr_constant_value.
7058 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
7059 Declare method.
7060 <constant_value>: New method.
7061
2b2558bf
TT
70622020-03-26 Tom Tromey <tom@tromey.com>
7063
7064 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
7065 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
7066 (dwarf_type_encoding_name): Move to stringify.c.
7067 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
7068 * dwarf2/stringify.c: New file.
7069 * dwarf2/stringify.h: New file.
7070
eeb64781
TT
70712020-03-26 Tom Tromey <tom@tromey.com>
7072
7073 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
7074 Rewrite.
7075
a39fdb41
TT
70762020-03-26 Tom Tromey <tom@tromey.com>
7077
7078 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
7079 methods.
7080 * dwarf2/read.c (lookup_addr_base): Move to die.h.
7081 (lookup_ranges_base): Likewise.
7082 (read_cutu_die_from_dwo, read_full_die_1): Update.
7083
436c571c
TT
70842020-03-26 Tom Tromey <tom@tromey.com>
7085
7086 * dwarf2/read.c (read_import_statement, read_file_scope)
7087 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
7088 (read_lexical_block_scope, read_call_site_scope)
7089 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
7090 (handle_struct_member_die, process_structure_scope)
7091 (update_enumeration_type_from_children)
7092 (process_enumeration_scope, read_array_type, read_common_block)
7093 (read_namespace, read_module, read_subroutine_type): Update.
7094 (sibling_die): Remove.
7095
052c8bb8
TT
70962020-03-26 Tom Tromey <tom@tromey.com>
7097
7098 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
7099 (build_type_psymtabs_reader, read_structure_type)
7100 (read_enumeration_type, read_full_die_1): Update.
7101 (dwarf2_attr_no_follow): Move to die.h.
7102 * dwarf2/die.h (struct die_info) <attr>: New method.
7103
2b24b6e4
TT
71042020-03-26 Tom Tromey <tom@tromey.com>
7105
7106 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
7107 <base_address>: Now an optional.
7108 (dwarf2_find_base_address, dwarf2_rnglists_process)
7109 (dwarf2_ranges_process, fill_in_loclist_baton)
7110 (dwarf2_symbol_mark_computed): Update.
7111
c2d50fd0
TT
71122020-03-26 Tom Tromey <tom@tromey.com>
7113
7114 * dwarf2/read.c (struct die_info): Move to die.h.
7115 * dwarf2/die.h: New file.
7116
0df7ad3a
TT
71172020-03-26 Tom Tromey <tom@tromey.com>
7118
7119 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
7120 * dwarf2/read.c
7121 (dwarf2_statement_list_fits_in_line_number_section_complaint):
7122 Move to line-header.c.
7123 (read_checked_initial_length_and_offset, read_formatted_entries):
7124 Likewise.
7125 (dwarf_decode_line_header): Split into two.
7126 * dwarf2/line-header.c
7127 (dwarf2_statement_list_fits_in_line_number_section_complaint):
7128 Move from read.c.
7129 (read_checked_initial_length_and_offset, read_formatted_entries):
7130 Likewise.
7131 (dwarf_decode_line_header): New function, split from read.c.
7132
86c0bb4c
TT
71332020-03-26 Tom Tromey <tom@tromey.com>
7134
7135 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
7136 Declare method.
7137 * dwarf2/read.c (read_attribute_value): Update.
7138 (dwarf2_per_objfile::read_line_string): Rename from
7139 read_indirect_line_string.
7140 (read_formatted_entries): Update.
7141
2ef46c2f
TT
71422020-03-26 Tom Tromey <tom@tromey.com>
7143
7144 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
7145 variable.
7146
4f9c1eda
TT
71472020-03-26 Tom Tromey <tom@tromey.com>
7148
7149 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
7150 const.
7151 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
7152 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
7153 parameter const.
7154
5a0e026f
TT
71552020-03-26 Tom Tromey <tom@tromey.com>
7156
7157 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
7158 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
7159 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
7160 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
7161
8844c11b
TT
71622020-03-26 Tom Tromey <tom@tromey.com>
7163
7164 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
7165 file_names_size, file_full_name, file_file_name>: Use const.
7166 <file_name_at, file_names>: Add const overload.
7167 * dwarf2/line-header.c (line_header::file_file_name)
7168 (line_header::file_full_name): Update.
7169
c90ec28a
TT
71702020-03-26 Tom Tromey <tom@tromey.com>
7171
7172 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
7173 (macro_start_file, consume_improper_spaces)
7174 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
7175 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
7176 (dwarf_decode_macros): Move to macro.c.
7177 * dwarf2/macro.c: New file.
7178 * dwarf2/macro.h: New file.
7179 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
7180
4f44ae6c
TT
71812020-03-26 Tom Tromey <tom@tromey.com>
7182
7183 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
7184 method.
7185 * dwarf2/section.c: New method. From
7186 read_indirect_string_at_offset_from.
7187 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
7188 (read_indirect_string_at_offset_from): Move to section.c.
7189 (read_indirect_string_at_offset): Rewrite.
7190 (read_indirect_line_string_at_offset): Remove.
7191 (read_indirect_string, read_indirect_line_string)
7192 (dwarf_decode_macro_bytes): Update.
7193
a0194fa8
TT
71942020-03-26 Tom Tromey <tom@tromey.com>
7195
7196 * dwarf2/section.h (struct dwarf2_section_info)
7197 <overload_complaint>: Declare.
7198 (dwarf2_section_buffer_overflow_complaint): Don't declare.
7199 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
7200 Rename from dwarf2_section_buffer_overflow_complaint.
7201 * dwarf2/read.c (skip_one_die, partial_die_info::read)
7202 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
7203
3d27bbdb
TT
72042020-03-26 Tom Tromey <tom@tromey.com>
7205
7206 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
7207 Declare.
7208 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
7209 Move from read.c.
7210 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
7211 to section.c.
7212
9eac9650
TT
72132020-03-26 Tom Tromey <tom@tromey.com>
7214
7215 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
7216
bf80d710
TT
72172020-03-26 Tom Tromey <tom@tromey.com>
7218
7219 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
7220 "builder".
7221 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
7222 parameter.
7223 (dwarf_decode_macros): Update.
7224
0314b390
TT
72252020-03-26 Tom Tromey <tom@tromey.com>
7226
7227 * dwarf2/read.c (read_attribute_value): Update.
7228 (read_indirect_string_from_dwz): Move to dwz.c; change into
7229 method.
7230 (dwarf_decode_macro_bytes): Update.
7231 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
7232 * dwarf2/dwz.c: New file.
7233 * Makefile.in (COMMON_SFILES): Add dwz.c.
7234
9fda78b6
TT
72352020-03-26 Tom Tromey <tom@tromey.com>
7236
7237 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
7238 * dwarf2/read.c: Add include.
7239 * dwarf2/index-write.c: Add include.
7240 * dwarf2/index-cache.c: Add include.
7241 * dwarf2/dwz.h: New file.
7242
33aa3c10
TT
72432020-03-25 Tom Tromey <tom@tromey.com>
7244
7245 * compile/compile-object-load.c (get_out_value_type): Mention
7246 correct symbol name in error message.
7247
d503b685
HD
72482020-03-25 Hannes Domani <ssbssa@yahoo.de>
7249
7250 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
7251
7b1eff95
TV
72522020-03-25 Tom de Vries <tdevries@suse.de>
7253
7254 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
7255 * symmisc.c (dump_symtab_1): Print user and includes fields.
7256 (maintenance_info_symtabs): Same.
7257
dd895392
AB
72582020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
7259
7260 PR gdb/25534
7261 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
7262 (riscv_regcache_cooked_write): New function.
7263 (riscv_push_dummy_call): Use new function.
7264 (riscv_return_value): Likewise.
7265
5ab2fbf1
SM
72662020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
7267
7268 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
7269 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
7270 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
7271 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
7272 * infrun.c (follow_fork): Likewise.
7273 (follow_fork_inferior): Likewise.
7274 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
7275 * linux-nat.h (class linux_nat_target): Likewise.
7276 * remote.c (class remote_target) <follow_fork>: Likewise.
7277 (remote_target::follow_fork): Likewise.
7278 * target-delegates.c: Re-generate.
7279 * target.c (default_follow_fork): Likewise.
7280 (target_follow_fork): Likewise.
7281 * target.h (struct target_ops) <follow_fork>: Likewise.
7282 (target_follow_fork): Likewise.
7283
a64fafb5
TV
72842020-03-24 Tom de Vries <tdevries@suse.de>
7285
7286 * psymtab.c (maintenance_info_psymtabs): Print user field.
7287
fe26d3a3
TT
72882020-03-20 Tom Tromey <tromey@adacore.com>
7289
7290 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
7291 const.
7292 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
7293 const.
7294
c884cc46
SM
72952020-03-20 Simon Marchi <simon.marchi@efficios.com>
7296
7297 * ptrace.m4: Don't check for ptrace declaration.
7298 * config.in: Re-generate.
7299 * configure: Re-generate.
7300 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
7301 not defined.
7302
1ff700c2
KR
73032020-03-20 Kamil Rytarowski <n54@gmx.com>
7304
7305 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
7306 `PTRACE_TYPE_RET'.
7307 * i386-bsd-nat.c (gdb_ptrace): Likewise.
7308 * sparc-nat.c (gdb_ptrace): Likewise.
7309 * x86-bsd-nat.c (gdb_ptrace): Likewise.
7310
f7d4f0b1
TT
73112020-03-20 Tom Tromey <tromey@adacore.com>
7312
7313 * c-exp.y (lex_one_token): Fix assert.
7314
f67210ff
TT
73152020-03-20 Tom Tromey <tromey@adacore.com>
7316
7317 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
7318 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
7319 strncpy call.
7320
1773be9e
TT
73212020-03-20 Tom Tromey <tromey@adacore.com>
7322
7323 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
7324
70304be9
TT
73252020-03-20 Tom Tromey <tromey@adacore.com>
7326
7327 * ada-valprint.c (print_variant_part): Remove parameters; switch
7328 to value-based API.
7329 (print_field_values): Likewise.
7330 (ada_val_print_struct_union): Likewise.
7331 (ada_value_print_1): Update.
7332
9faa006d
KR
73332020-03-20 Kamil Rytarowski <n54@gmx.com>
7334
7335 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
7336 nbsd_nat_target instead of inf_ptrace_target.
7337 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
7338 nbsd_nat_target.
7339
4a90f062
KR
73402020-03-20 Kamil Rytarowski <n54@gmx.com>
7341
7342 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
7343 it to the ptrace call.
7344 * (store_registers): Likewise.
7345
73462020-03-20 Kamil Rytarowski <n54@gmx.com>
c7da12c7
KR
7347
7348 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
7349 it to the ptrace call.
7350 * (store_registers): Likewise.
7351
2d07da27
LM
73522020-03-19 Luis Machado <luis.machado@linaro.org>
7353
7354 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
7355 valid, fetch vg value from ptrace.
7356
f09db380
KR
73572020-03-19 Kamil Rytarowski <n54@gmx.com>
7358 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
7359 * inf-ptrace.c: Likewise.
7360 * (gdb_ptrace): Add.
7361 * (inf_ptrace_target::resume): Update.
7362 * (inf_ptrace_target::xfer_partial): Likewise.
7363 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
7364 * (inf_ptrace_peek_poke): Update.
7365
fcc7376e
KR
73662020-03-19 Kamil Rytarowski <n54@gmx.com>
7367
7368 * x86-bsd-nat.c (gdb_ptrace): New.
7369 * (x86bsd_dr_set): Add new argument `ptid'.
7370 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
7371 x86bsd_dr_set_addr): Update.
7372
cada5fc9
AB
73732020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
7374
7375 * remote.c (remote_target::process_stop_reply): Handle events for
7376 all threads differently.
7377
19a2740f
AB
73782020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
7379
7380 * completer.c (completion_tracker::remove_completion): Define new
7381 function.
7382 * completer.h (completion_tracker::remove_completion): Declare new
7383 function.
7384 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
7385 when adding a C++ function symbol.
7386
724fd9ba
AB
73872020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
7388
7389 * completer.c (completion_tracker::completion_hash_entry): Define
7390 new class.
7391 (advance_to_filename_complete_word_point): Call
7392 recompute_lowest_common_denominator.
7393 (completion_tracker::completion_tracker): Call discard_completions
7394 to setup the hash table.
7395 (completion_tracker::discard_completions): Allow for being called
7396 from the constructor, pass new equal function, and element deleter
7397 when constructing the hash table. Initialise new class member
7398 variables.
7399 (completion_tracker::maybe_add_completion): Remove use of
7400 m_entries_vec, and store more information into m_entries_hash.
7401 (completion_tracker::recompute_lcd_visitor): New function, most
7402 content taken from...
7403 (completion_tracker::recompute_lowest_common_denominator):
7404 ...here, this now just visits each item in the hash calling the
7405 above visitor.
7406 (completion_tracker::build_completion_result): Remove use of
7407 m_entries_vec, call recompute_lowest_common_denominator.
7408 * completer.h (completion_tracker::have_completions): Remove use
7409 of m_entries_vec.
7410 (completion_tracker::completion_hash_entry): Declare new class.
7411 (completion_tracker::recompute_lowest_common_denominator): Change
7412 function signature.
7413 (completion_tracker::recompute_lcd_visitor): Declare new function.
7414 (completion_tracker::m_entries_vec): Delete.
7415 (completion_tracker::m_entries_hash): Initialize to NULL.
7416 (completion_tracker::m_lowest_common_denominator_valid): New
7417 member variable.
7418 (completion_tracker::m_lowest_common_denominator_max_length): New
7419 member variable.
7420
5a82b8a1
KR
74212020-03-17 Kamil Rytarowski <n54@gmx.com>
7422
7423 * regformats/regdef.h: Put reg in gdb namespace.
7424
fb516a69
KR
74252020-03-17 Kamil Rytarowski <n54@gmx.com>
7426
7427 * i386-bsd-nat.c (gdb_ptrace): New.
7428 * (i386bsd_fetch_inferior_registers,
7429 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
7430 * (i386bsd_fetch_inferior_registers,
7431 i386bsd_store_inferior_registers) Use gdb_ptrace.
7432
1c0aa1fb
KR
74332020-03-17 Kamil Rytarowski <n54@gmx.com>
7434
7435 * amd64-bsd-nat.c (gdb_ptrace): New.
7436 * (amd64bsd_fetch_inferior_registers,
7437 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
7438 * (amd64bsd_fetch_inferior_registers,
7439 amd64bsd_store_inferior_registers) Use gdb_ptrace.
7440
5ccd2fb7
KR
74412020-03-17 Kamil Rytarowski <n54@gmx.com>
7442
7443 * user-regs.c (user_reg::read): Rename to...
7444 (user_reg::xread): ...this.
7445 * (append_user_reg): Rename argument `read' to `xread'.
7446 * (user_reg_add_builtin): Likewise.
7447 * (user_reg_add): Likewise.
7448 * (value_of_user_reg): Likewise.
7449
2108a63a
KR
74502020-03-17 Kamil Rytarowski <n54@gmx.com>
7451
7452 * sparc-nat.c (gdb_ptrace): New.
7453 * sparc-nat.c (sparc_fetch_inferior_registers)
7454 (sparc_store_inferior_registers) Remove obsolete comment.
7455 * sparc-nat.c (sparc_fetch_inferior_registers)
7456 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
7457 * sparc-nat.c (sparc_fetch_inferior_registers)
7458 (sparc_store_inferior_registers) Use gdb_ptrace.
7459
a225c9a8
KR
74602020-03-17 Kamil Rytarowski <n54@gmx.com>
7461
7462 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
7463 it to the ptrace call.
7464 * sh-nbsd-nat.c (store_registers): Likewise.
7465
98097623
KR
74662020-03-17 Kamil Rytarowski <n54@gmx.com>
7467
7468 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
7469 nbsd_nat_target instead of inf_ptrace_target.
7470 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
7471 nbsd_nat_target.
7472
9e38d619
KR
74732020-03-17 Kamil Rytarowski <n54@gmx.com>
7474
7475 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
7476
a2ecbe9f
KR
74772020-03-17 Kamil Rytarowski <n54@gmx.com>
7478
7479 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
7480 <sys/sysctl.h>.
7481 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
7482
58990295
TV
74832020-03-17 Tom de Vries <tdevries@suse.de>
7484
7485 PR gdb/23710
7486 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
7487 fields.
7488 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
7489 fields.
7490 (process_imported_unit_die): Skip import of c++ CUs.
7491
771dd3a8
TT
74922020-03-16 Tom Tromey <tom@tromey.com>
7493
7494 * p-valprint.c (pascal_object_print_value): Initialize
7495 base_value.
7496
817a7585
AK
74972020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
7498 Shahab Vahedi <shahab@synopsys.com>
7499
7500 * Makefile.in: Add arch/arc.o
7501 * configure.tgt: Likewise.
7502 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
7503 (_initialize_arc_tdep): Don't initialize old target descriptions.
aac66a4c 7504 (arc_read_description): New function to cache target descriptions.
817a7585
AK
7505 * arc-tdep.h (arc_read_description): Add proto type.
7506 * arch/arc.c: New file.
7507 * arch/arc.h: Likewise.
7508 * features/Makefile: Replace old target descriptions with new.
7509 * features/arc-arcompact.c: Remove.
7510 * features/arc-arcompact.xml: Likewise.
7511 * features/arc-v2.c: Likewise
7512 * features/arc-v2.xml: Likewise
7513 * features/arc/aux-arcompact.xml: New file.
7514 * features/arc/aux-v2.xml: Likewise.
7515 * features/arc/core-arcompact.xml: Likewise.
7516 * features/arc/core-v2.xml: Likewise.
7517 * features/arc/aux-arcompact.c: Generate.
7518 * features/arc/aux-v2.c: Likewise.
7519 * features/arc/core-arcompact.c: Likewise.
7520 * features/arc/core-v2.c: Likewise.
7521 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
7522
67430cd0
TT
75232020-03-16 Tom Tromey <tromey@adacore.com>
7524
7525 PR gdb/25663:
7526 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
7527 putting value into bcache.
7528
30efb6c7
SM
75292020-03-16 Simon Marchi <simon.marchi@efficios.com>
7530
7531 PR gdb/21500
7532 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
7533 to...
7534 (amd64_windows_init_abi_common): ... this. Don't set size of
7535 long type.
7536 (amd64_windows_init_abi): New function.
7537 (amd64_cygwin_init_abi): New function.
7538 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
7539 the Cygwin OS ABI.
7540 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
7541 comment.
7542
8db52437
SM
75432020-03-16 Simon Marchi <simon.marchi@efficios.com>
7544
7545 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
7546 * windows-tdep.c (CYGWIN_DLL_NAME): New.
7547 (pe_import_directory_entry): New struct type.
7548 (is_linked_with_cygwin_dll): New function.
7549 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
7550 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
7551 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
7552
5982a56a
SM
75532020-03-16 Simon Marchi <simon.marchi@efficios.com>
7554
7555 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
7556 i386_cygwin_core_osabi_sniffer.
7557
7a1998df
SM
75582020-03-16 Simon Marchi <simon.marchi@efficios.com>
7559
7560 * i386-cygwin-tdep.c: Rename to...
7561 * i386-windows-tdep.c: ... this.
7562 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
7563 i386-windows-tdep.c.
7564 * configure.tgt: Likewise.
7565
053205cc
SM
75662020-03-16 Simon Marchi <simon.marchi@efficios.com>
7567
7568 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
7569 * osabi.c (gdb_osabi_names): Add "Windows".
7570 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
7571 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
7572 (i386_cygwin_core_osabi_sniffer): New function, extracted from
7573 i386_cygwin_osabi_sniffer.
7574 (_initialize_i386_cygwin_tdep): Register OS ABI
7575 GDB_OSABI_WINDOWS for i386.
7576 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
7577 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
7578 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
7579 for x86-64.
7580 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
7581 when the target matches '*-*-mingw*'.
7582
fe4b2ee6
SM
75832020-03-16 Simon Marchi <simon.marchi@efficios.com>
7584
7585 * defs.h (enum gdb_osabi): Move to...
7586 * osabi.h (enum gdb_osabi): ... here.
7587 * gdbarch.sh: Include osabi.h in gdbarch.h.
7588 * gdbarch.h: Re-generate.
7589
cb9b645d
SM
75902020-03-16 Simon Marchi <simon.marchi@efficios.com>
7591
7592 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
7593 function.
7594 (_initialize_amd64_windows_tdep): Register osabi sniffer.
7595
3293bbaf
TT
75962020-03-14 Tom Tromey <tom@tromey.com>
7597
7598 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
7599 for C++.
7600 (c_type_print_modifier): Likewise. Add "language" parameter.
7601 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
7602 (c_type_print_base_1): Update.
7603 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
7604 constants.
7605 * type-stack.c (type_stack::insert): Handle tp_atomic and
7606 tp_restrict.
7607 (type_stack::follow_type_instance_flags): Likewise.
7608 (type_stack::follow_types): Likewise. Merge type-following code.
7609 * c-exp.y (RESTRICT, ATOMIC): New tokens.
7610 (space_identifier, cv_with_space_id)
7611 (const_or_volatile_or_space_identifier_noopt)
7612 (const_or_volatile_or_space_identifier): Remove.
7613 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
7614 rules.
7615 (ptr_operator, typebase): Update.
7616 (enum token_flag) <FLAG_C>: New constant.
7617 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
7618 "_Atomic".
7619 (lex_one_token): Handle FLAG_C.
7620
154151a6
KR
76212020-03-14 Kamil Rytarowski <n54@gmx.com>
7622
7623 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
7624 it to the ptrace call.
7625 * m68k-bsd-nat.c (store_registers): Likewise.
7626
bc107784
KR
76272020-03-14 Kamil Rytarowski <n54@gmx.com>
7628
7629 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
7630 gdb_byte *.
7631 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
7632 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
7633 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
7634
01a80117
KR
76352020-03-14 Kamil Rytarowski <n54@gmx.com>
7636
7637 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
7638 nbsd_nat_target instead of inf_ptrace_target.
7639 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
7640 nbsd_nat_target.
7641
f90280ca
KR
76422020-03-14 Kamil Rytarowski <n54@gmx.com>
7643
7644 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
7645 register_t.
7646
6def66f1
KR
76472020-03-14 Kamil Rytarowski <n54@gmx.com>
7648
7649 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
7650 it to the ptrace call.
7651 * alpha-bsd-nat.c (store_registers): Likewise.
7652
66eaca97
KR
76532020-03-14 Kamil Rytarowski <n54@gmx.com>
7654
7655 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
7656 includes.
7657 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
7658 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
7659 fill_fpregset): Likewise.
7660
4fed520b
KR
76612020-03-14 Kamil Rytarowski <n54@gmx.com>
7662
7663 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
7664 nbsd_nat_target instead of inf_ptrace_target.
7665 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
7666 nbsd_nat_target.
7667
2190cf06
KR
76682020-03-14 Kamil Rytarowski <n54@gmx.com>
7669
7670 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
7671 register_t.
7672
75c56d3d
KR
76732020-03-14 Kamil Rytarowski <n54@gmx.com>
7674
7675 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
7676 it to the ptrace call.
7677 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
7678 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
7679 * arm-nbsd-nat.c (store_register): Likewise.
7680 * arm-nbsd-nat.c (store_regs): Likewise.
7681 * arm-nbsd-nat.c (store_fp_register): Likewise.
7682 * arm-nbsd-nat.c (store_fp_regs): Likewise.
7683
6018d381
KR
76842020-03-14 Kamil Rytarowski <n54@gmx.com>
7685
7686 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
7687 nbsd_nat_target instead of inf_ptrace_target.
7688 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
7689 nbsd_nat_target.
7690
013f99f0
KR
76912020-03-14 Kamil Rytarowski <n54@gmx.com>
7692
7693 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
7694 it to the ptrace call.
7695 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
7696
12753073
KR
76972020-03-14 Kamil Rytarowski <n54@gmx.com>
7698
6227b330
KR
7699 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
7700 it to the ptrace call.
7701 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
7702
77032020-03-14 Kamil Rytarowski <n54@gmx.com>
7704
7705 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
7706 gdb_byte *.
12753073
KR
7707 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
7708
d5be5fa4
KR
77092020-03-14 Kamil Rytarowski <n54@gmx.com>
7710
7711 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
7712 instead of inf_ptrace_target.
7713 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
7714 nbsd_nat_target.
7715
8110f842
KR
77162020-03-14 Kamil Rytarowski <n54@gmx.com>
7717
7718 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
7719 register_t.
7720
52feded7
KR
77212020-03-14 Kamil Rytarowski <n54@gmx.com>
7722
7723 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
7724 register_t.
7725
25567eee
KR
77262020-03-14 Kamil Rytarowski <n54@gmx.com>
7727
7728 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
7729 register_t.
7730
426a9c18
TT
77312020-03-13 Tom Tromey <tom@tromey.com>
7732
7733 * value.h (val_print): Don't declare.
7734 * valprint.h (val_print_array_elements)
7735 (val_print_scalar_formatted, generic_val_print): Don't declare.
7736 * valprint.c (generic_val_print_array): Take a struct value.
7737 (generic_val_print_ptr, generic_val_print_memberptr)
7738 (generic_val_print_bool, generic_val_print_int)
7739 (generic_val_print_char, generic_val_print_complex)
7740 (generic_val_print): Remove.
7741 (generic_value_print): Update.
7742 (do_val_print): Remove unused parameters. Don't call
7743 la_val_print.
7744 (val_print): Remove.
7745 (common_val_print): Update. Don't call value_check_printable.
7746 (val_print_scalar_formatted, val_print_array_elements): Remove.
7747 * rust-lang.c (rust_val_print): Remove.
7748 (rust_language_defn): Update.
7749 * p-valprint.c (pascal_val_print): Remove.
7750 (pascal_value_print_inner): Update.
7751 (pascal_object_print_val_fields, pascal_object_print_val):
7752 Remove.
7753 (pascal_object_print_static_field): Update.
7754 * p-lang.h (pascal_val_print): Don't declare.
7755 * p-lang.c (pascal_language_defn): Update.
7756 * opencl-lang.c (opencl_language_defn): Update.
7757 * objc-lang.c (objc_language_defn): Update.
7758 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
7759 * m2-lang.h (m2_val_print): Don't declare.
7760 * m2-lang.c (m2_language_defn): Update.
7761 * language.h (struct language_defn) <la_val_print>: Remove.
7762 * language.c (unk_lang_value_print_inner): Rename. Change
7763 argument types.
7764 (unknown_language_defn, auto_language_defn): Update.
7765 * go-valprint.c (go_val_print): Remove.
7766 * go-lang.h (go_val_print): Don't declare.
7767 * go-lang.c (go_language_defn): Update.
7768 * f-valprint.c (f_val_print): Remove.
7769 * f-lang.h (f_value_print): Don't declare.
7770 * f-lang.c (f_language_defn): Update.
7771 * d-valprint.c (d_val_print): Remove.
7772 * d-lang.h (d_value_print): Don't declare.
7773 * d-lang.c (d_language_defn): Update.
7774 * cp-valprint.c (cp_print_value_fields)
7775 (cp_print_value_fields_rtti, cp_print_value): Remove.
7776 (cp_print_static_field): Update.
7777 * c-valprint.c (c_val_print_array, c_val_print_ptr)
7778 (c_val_print_struct, c_val_print_union, c_val_print_int)
7779 (c_val_print_memberptr, c_val_print): Remove.
7780 * c-lang.h (c_val_print_array, cp_print_value_fields)
7781 (cp_print_value_fields_rtti): Don't declare.
7782 * c-lang.c (c_language_defn, cplus_language_defn)
7783 (asm_language_defn, minimal_language_defn): Update.
7784 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
7785 (ada_val_print_enum): Take a struct value.
7786 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
7787 (ada_val_print): Remove.
7788 (ada_value_print_1): Update.
7789 (printable_val_type): Remove.
7790 * ada-lang.h (ada_val_print): Don't declare.
7791 * ada-lang.c (ada_language_defn): Update.
7792
42331a1e
TT
77932020-03-13 Tom Tromey <tom@tromey.com>
7794
7795 * valprint.c (do_val_print): Update.
7796 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
7797 a struct value.
7798 (value_to_value_object_no_release): Declare.
7799 * python/py-value.c (value_to_value_object_no_release): New
7800 function.
7801 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
7802 struct value.
7803 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
7804 function.
7805 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
7806 a struct value.
7807 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
7808 Declare.
7809 (gdbscm_apply_val_pretty_printer): Take a struct value.
7810 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
7811 value.
7812 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
7813 value.
7814 * extension-priv.h (struct extension_language_ops)
7815 <apply_val_pretty_printer>: Take a struct value.
7816 * cp-valprint.c (cp_print_value): Create a struct value.
7817 (cp_print_value): Update.
7818
3a916a97
TT
78192020-03-13 Tom Tromey <tom@tromey.com>
7820
7821 * ada-valprint.c (print_field_values): Call common_val_print.
7822
b59eac37
TT
78232020-03-13 Tom Tromey <tom@tromey.com>
7824
7825 * ada-valprint.c (val_print_packed_array_elements): Remove
7826 bitoffset and val parameters. Call common_val_print.
7827 (ada_val_print_string): Remove offset, address, and original_value
7828 parameters.
7829 (ada_val_print_array): Update.
7830 (ada_value_print_array): New function.
7831 (ada_value_print_1): Call it.
7832
03371129
TT
78332020-03-13 Tom Tromey <tom@tromey.com>
7834
7835 * ada-valprint.c (ada_value_print): Use common_val_print.
7836
2e088f8b
TT
78372020-03-13 Tom Tromey <tom@tromey.com>
7838
7839 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
7840
39ef85a8
TT
78412020-03-13 Tom Tromey <tom@tromey.com>
7842
7843 * ada-valprint.c (ada_value_print_num): New function.
7844 (ada_value_print_1): Use it.
7845
b9fa6e07
TT
78462020-03-13 Tom Tromey <tom@tromey.com>
7847
7848 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
7849
416595d6
TT
78502020-03-13 Tom Tromey <tom@tromey.com>
7851
7852 * ada-valprint.c (ada_value_print_ptr): New function.
7853 (ada_value_print_1): Use it.
7854
5b5e15ec
TT
78552020-03-13 Tom Tromey <tom@tromey.com>
7856
7857 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
7858 call common_val_print.
7859 (ada_val_print_1): Update.
7860 (ada_value_print_1): New function.
7861 (ada_value_print_inner): Rewrite.
7862
fbf54e75
TT
78632020-03-13 Tom Tromey <tom@tromey.com>
7864
7865 * cp-valprint.c (cp_print_value_fields): Update.
7866 (cp_print_value): New function.
7867
64b653ca
TT
78682020-03-13 Tom Tromey <tom@tromey.com>
7869
7870 * m2-valprint.c (m2_value_print_inner): Use
7871 cp_print_value_fields.
7872 * cp-valprint.c (cp_print_value_fields): New function.
7873 * c-valprint.c (c_value_print_struct): New function.
7874 (c_value_print_inner): Use c_value_print_struct.
7875 * c-lang.h (cp_print_value_fields): Declare.
7876
6999f067
TT
78772020-03-13 Tom Tromey <tom@tromey.com>
7878
7879 * c-valprint.c (c_value_print_array): New function.
7880 (c_value_print_inner): Use it.
7881
ce80b8bd
TT
78822020-03-13 Tom Tromey <tom@tromey.com>
7883
7884 * c-valprint.c (c_value_print_memberptr): New function.
7885 (c_value_print_inner): Use it.
7886
2faac269
TT
78872020-03-13 Tom Tromey <tom@tromey.com>
7888
7889 * c-valprint.c (c_value_print_int): New function.
7890 (c_value_print_inner): Use it.
7891
da3e2c29
TT
78922020-03-13 Tom Tromey <tom@tromey.com>
7893
7894 * c-valprint.c (c_value_print_ptr): New function.
7895 (c_value_print_inner): Use it.
7896
50836231
TT
78972020-03-13 Tom Tromey <tom@tromey.com>
7898
7899 * c-valprint.c (c_value_print_inner): Rewrite.
7900
4f412b6e
TT
79012020-03-13 Tom Tromey <tom@tromey.com>
7902
7903 * valprint.c (generic_value_print_complex): New function.
7904 (generic_value_print): Use it.
7905
f5354008
TT
79062020-03-13 Tom Tromey <tom@tromey.com>
7907
7908 * valprint.c (generic_val_print_float): Don't call
7909 val_print_scalar_formatted.
7910 (generic_val_print, generic_value_print): Update.
7911
3eec3b05
TT
79122020-03-13 Tom Tromey <tom@tromey.com>
7913
7914 * valprint.c (generic_value_print_char): New function
7915 (generic_value_print): Use it.
7916
fdddfccb
TT
79172020-03-13 Tom Tromey <tom@tromey.com>
7918
7919 * valprint.c (generic_value_print_int): New function.
7920 (generic_value_print): Use it.
7921
6dde7521
TT
79222020-03-13 Tom Tromey <tom@tromey.com>
7923
7924 * valprint.c (generic_value_print_bool): New function.
7925 (generic_value_print): Use it.
7926
4112d2e6
TT
79272020-03-13 Tom Tromey <tom@tromey.com>
7928
7929 * valprint.c (generic_val_print_func): Simplify.
7930 (generic_val_print, generic_value_print): Update.
7931
65786af6
TT
79322020-03-13 Tom Tromey <tom@tromey.com>
7933
7934 * valprint.c (generic_val_print_flags): Remove.
7935 (generic_val_print, generic_value_print): Update.
7936 (val_print_type_code_flags): Add original_value parameter.
7937
40f3ce18
TT
79382020-03-13 Tom Tromey <tom@tromey.com>
7939
7940 * valprint.c (generic_val_print): Update.
7941 (generic_value_print): Update.
7942 * valprint.c (generic_val_print_enum): Don't call
7943 val_print_scalar_formatted.
7944
2a5b130b
TT
79452020-03-13 Tom Tromey <tom@tromey.com>
7946
7947 * valprint.c (generic_value_print): Call generic_value_print_ptr.
7948 * valprint.c (generic_value_print_ptr): New function.
7949
abc66ce9
TT
79502020-03-13 Tom Tromey <tom@tromey.com>
7951
7952 * valprint.c (generic_value_print): Rewrite.
7953
07a32858
TT
79542020-03-13 Tom Tromey <tom@tromey.com>
7955
7956 * p-valprint.c (pascal_object_print_value_fields)
7957 (pascal_object_print_value): New functions.
7958
64d64d3a
TT
79592020-03-13 Tom Tromey <tom@tromey.com>
7960
7961 * p-valprint.c (pascal_value_print_inner): Rewrite.
7962
6a95a1f5
TT
79632020-03-13 Tom Tromey <tom@tromey.com>
7964
7965 * f-valprint.c (f_value_print_innner): Rewrite.
7966
59fcdac6
TT
79672020-03-13 Tom Tromey <tom@tromey.com>
7968
7969 * m2-valprint.c (m2_print_unbounded_array): New overload.
7970 (m2_print_unbounded_array): Update.
7971 (m2_print_array_contents): Take a struct value.
7972 (m2_value_print_inner): Rewrite.
7973
d133c3e1
TT
79742020-03-13 Tom Tromey <tom@tromey.com>
7975
7976 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
7977 (d_value_print_inner): New function.
7978 * d-lang.h (d_value_print_inner): Declare.
7979 * d-lang.c (d_language_defn): Use d_value_print_inner.
7980
23b0f06b
TT
79812020-03-13 Tom Tromey <tom@tromey.com>
7982
7983 * go-valprint.c (go_value_print_inner): New function.
7984 * go-lang.h (go_value_print_inner): Declare.
7985 * go-lang.c (go_language_defn): Use go_value_print_inner.
7986
5f56f7cb
TT
79872020-03-13 Tom Tromey <tom@tromey.com>
7988
7989 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
7990 API.
7991 (rust_val_print): Rewrite.
7992 (rust_value_print_inner): New function, from rust_val_print.
7993 (rust_language_defn): Use rust_value_print_inner.
7994
26792ee0
TT
79952020-03-13 Tom Tromey <tom@tromey.com>
7996
7997 * ada-valprint.c (ada_value_print_inner): New function.
7998 * ada-lang.h (ada_value_print_inner): Declare.
7999 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
8000
24051bbe
TT
80012020-03-13 Tom Tromey <tom@tromey.com>
8002
8003 * f-valprint.c (f_value_print_innner): New function.
8004 * f-lang.h (f_value_print_innner): Declare.
8005 * f-lang.c (f_language_defn): Use f_value_print_innner.
8006
c0941be6
TT
80072020-03-13 Tom Tromey <tom@tromey.com>
8008
8009 * p-valprint.c (pascal_value_print_inner): New function.
8010 * p-lang.h (pascal_value_print_inner): Declare.
8011 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
8012
62c4663d
TT
80132020-03-13 Tom Tromey <tom@tromey.com>
8014
8015 * m2-valprint.c (m2_value_print_inner): New function.
8016 * m2-lang.h (m2_value_print_inner): Declare.
8017 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
8018
62182190
TT
80192020-03-13 Tom Tromey <tom@tromey.com>
8020
8021 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
8022 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
8023 * c-valprint.c (c_value_print_inner): New function.
8024 * c-lang.h (c_value_print_inner): Declare.
8025 * c-lang.c (c_language_defn, cplus_language_defn)
8026 (asm_language_defn, minimal_language_defn): Use
8027 c_value_print_inner.
8028
1e592a8a
TT
80292020-03-13 Tom Tromey <tom@tromey.com>
8030
8031 * p-valprint.c (pascal_object_print_value_fields): Now static.
8032 * p-lang.h (pascal_object_print_value_fields): Don't declare.
8033
7fe471e9
TT
80342020-03-13 Tom Tromey <tom@tromey.com>
8035
8036 * c-valprint.c (c_val_print_array): Simplify.
8037
d121c6ce
TT
80382020-03-13 Tom Tromey <tom@tromey.com>
8039
8040 * valprint.c (value_print_array_elements): New function.
8041 * valprint.h (value_print_array_elements): Declare.
8042
4dba70ee
TT
80432020-03-13 Tom Tromey <tom@tromey.com>
8044
8045 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
8046 * mips-tdep.c (mips_print_register): Use
8047 value_print_scalar_formatted.
8048
4f9ae810
TT
80492020-03-13 Tom Tromey <tom@tromey.com>
8050
8051 * valprint.h (value_print_scalar_formatted): Declare.
8052 * valprint.c (value_print_scalar_formatted): New function.
8053
156bfec9
TT
80542020-03-13 Tom Tromey <tom@tromey.com>
8055
8056 * valprint.h (generic_value_print): Declare.
8057 * valprint.c (generic_value_print): New function.
8058
2b4e573d
TT
80592020-03-13 Tom Tromey <tom@tromey.com>
8060
8061 * valprint.c (do_val_print): Call la_value_print_inner, if
8062 available.
8063 * rust-lang.c (rust_language_defn): Update.
8064 * p-lang.c (pascal_language_defn): Update.
8065 * opencl-lang.c (opencl_language_defn): Update.
8066 * objc-lang.c (objc_language_defn): Update.
8067 * m2-lang.c (m2_language_defn): Update.
8068 * language.h (struct language_defn) <la_value_print_inner>: New
8069 member.
8070 * language.c (unknown_language_defn, auto_language_defn): Update.
8071 * go-lang.c (go_language_defn): Update.
8072 * f-lang.c (f_language_defn): Update.
8073 * d-lang.c (d_language_defn): Update.
8074 * c-lang.c (c_language_defn, cplus_language_defn)
8075 (asm_language_defn, minimal_language_defn): Update.
8076 * ada-lang.c (ada_language_defn): Update.
8077
a1f6a07c
TT
80782020-03-13 Tom Tromey <tom@tromey.com>
8079
8080 * c-valprint.c (c_value_print): Use common_val_print.
8081
410cf315
TT
80822020-03-13 Tom Tromey <tom@tromey.com>
8083
8084 * cp-valprint.c (cp_print_static_field): Use common_val_print.
8085
72a45c93
TT
80862020-03-13 Tom Tromey <tom@tromey.com>
8087
8088 * f-valprint.c (f77_print_array_1, f_val_print): Use
8089 common_val_print.
8090
040f66bd
TT
80912020-03-13 Tom Tromey <tom@tromey.com>
8092
8093 * riscv-tdep.c (riscv_print_one_register_info): Use
8094 common_val_print.
8095
a6e05a6c
TT
80962020-03-13 Tom Tromey <tom@tromey.com>
8097
8098 * mi/mi-main.c (output_register): Use common_val_print.
8099
3444c526
TT
81002020-03-13 Tom Tromey <tom@tromey.com>
8101
8102 * infcmd.c (default_print_one_register_info): Use
8103 common_val_print.
8104
c2a44efe
TT
81052020-03-13 Tom Tromey <tom@tromey.com>
8106
8107 * valprint.h (common_val_print_checked): Declare.
8108 * valprint.c (common_val_print_checked): New function.
8109 * stack.c (print_frame_arg): Use common_val_print_checked.
8110
b0c26e99
TT
81112020-03-13 Tom Tromey <tom@tromey.com>
8112
8113 * valprint.c (do_val_print): New function, from val_print.
8114 (val_print): Use do_val_print.
8115 (common_val_print): Use do_val_print.
8116
ce3acbe9
TT
81172020-03-13 Tom Tromey <tom@tromey.com>
8118
8119 * valprint.c (value_print): Use scoped_value_mark.
8120
96c7f873
TV
81212020-03-13 Tom de Vries <tdevries@suse.de>
8122
8123 PR symtab/25646
8124 * psymtab.c (partial_symtab::partial_symtab): Don't set
8125 globals_offset and statics_offset. Push element onto
8126 current_global_psymbols and current_static_psymbols stacks.
8127 (concat): New function.
8128 (end_psymtab_common): Set globals_offset and statics_offset. Pop
8129 element from current_global_psymbols and current_static_psymbols
8130 stacks. Concat popped elements to global_psymbols and
8131 static_symbols.
8132 (add_psymbol_to_list): Use current_global_psymbols and
8133 current_static_psymbols stacks.
8134 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
8135 current_static_psymbols fields.
8136
6ba0a321
CB
81372020-03-12 Christian Biesinger <cbiesinger@google.com>
8138
8139 * corelow.c (sniff_core_bfd): Remove.
8140 (class core_target) <m_core_vec>: Remove.
8141 (core_target::core_target): Update.
8142 (core_file_fns): Remove.
8143 (deprecated_add_core_fns): Remove.
8144 (default_core_sniffer): Remove.
8145 (sniff_core_bfd): Remove.
8146 (default_check_format): Remove.
8147 (gdb_check_format): Remove.
8148 (core_target_open): Update.
8149 (core_target::get_core_register_section): Update.
8150 (get_core_registers_cb): Update.
8151 (core_target::fetch_registers): Update.
8152 * gdbcore.h (struct core_fns): Remove.
8153 (deprecated_add_core_fns): Remove.
8154 (default_core_sniffer): Remove.
8155 (default_check_format): Remove.
8156
227031b2
TT
81572020-03-12 Tom Tromey <tom@tromey.com>
8158
8159 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
8160 CORE_ADDR.
8161 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
8162
53807e9f
TT
81632020-03-12 Tom Tromey <tom@tromey.com>
8164
8165 * remote.c (remote_target::download_tracepoint)
8166 (remote_target::enable_tracepoint)
8167 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
8168 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
8169 sprintf_vma.
8170
64f25102
TT
81712020-03-12 Tom Tromey <tom@tromey.com>
8172
8173 * symfile-mem.c: Update CORE_ADDR size assert.
8174
272cd5a3
SM
81752020-03-12 Simon Marchi <simon.marchi@efficios.com>
8176
8177 * selftest.m4: Move to gdbsupport/.
8178 * acinclude.m4: Update path to selftest.m4.
8179
74cd3f9d
SM
81802020-03-12 Simon Marchi <simon.marchi@efficios.com>
8181
8182 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
8183 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
8184 gdbarch-selfselftests.c and selftest-arch.c.
8185 (SUBDIR_UNITTESTS_OBS): Rename to...
8186 (SELFTESTS_OBS): ... this.
8187 (COMMON_SFILES): Remove disasm-selftests.c and
8188 gdbarch-selftests.c.
8189 * configure.ac: Don't add selftest-arch.{c,o} to
8190 CONFIG_{SRCS,OBS}.
8191 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
8192 preprocessor conditions.
8193
db6878ac
SM
81942020-03-12 Simon Marchi <simon.marchi@efficios.com>
8195
8196 * configure.ac: Don't source bfd/development.sh.
8197 * selftest.m4: Modify comment.
8198 * configure: Re-generate.
8199
4d696a5c
SM
82002020-03-12 Simon Marchi <simon.marchi@efficios.com>
8201
8202 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
8203 not "true" or "false".
8204 * configure: Re-generate.
8205
8dd8e1c7
CB
82062020-03-12 Christian Biesinger <cbiesinger@google.com>
8207
8208 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
8209 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
8210 renamed to arm_nbsd_supply_gregset.
8211 (fetch_register): Update to call arm_nbsd_supply_gregset.
8212 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
8213 (arm_netbsd_nat_target::fetch_registers): Update.
8214 (fetch_elfcore_registers): Removed.
8215 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
8216 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
8217 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
8218 not require NetBSD system headers.
8219 (arm_nbsd_regset): New struct.
8220 (arm_nbsd_iterate_over_regset_sections): New function.
8221 (arm_netbsd_init_abi_common): Updated to call
8222 set_gdbarch_iterate_over_regset_sections.
8223 * arm-nbsd-tdep.h: New file.
8224
dd69bf7a
KB
82252020-03-11 Kevin Buettner <kevinb@redhat.com>
8226
8227 * symtab.c (find_pc_sect_line): Add check which prevents infinite
8228 recursion.
8229
a0761e34
SM
82302020-03-11 Simon Marchi <simon.marchi@efficios.com>
8231
8232 * configure: Re-generate.
8233
e7a82140
TT
82342020-03-11 Tom Tromey <tromey@adacore.com>
8235
8236 * ada-typeprint.c (print_choices): Fix comment.
8237
dcc050c8
AB
82382020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
8239
8240 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
8241 previous item in the list, when the list has no items.
8242
1c33af77
TV
82432020-03-11 Tom de Vries <tdevries@suse.de>
8244
8245 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
8246 PROP_LOCLIST handling code.
8247
8c95582d
AB
82482020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
8249
8250 * buildsym-legacy.c (record_line): Pass extra parameter to
8251 record_line.
8252 * buildsym.c (buildsym_compunit::record_line): Take an extra
8253 parameter, reduce duplication in the line table, and record the
8254 is_stmt flag in the line table.
8255 * buildsym.h (buildsym_compunit::record_line): Add extra
8256 parameter.
8257 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
8258 non-statement lines.
8259 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
8260 this to the symtab builder.
8261 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
8262 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
8263 through to dwarf_record_line_1.
8264 * infrun.c (process_event_stop_test): When stepping, don't stop at
8265 a non-statement instruction, and only refresh the step info when
8266 we land in the middle of a line's range. Also add an extra
8267 comment.
8268 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
8269 field.
8270 * record-btrace.c (btrace_find_line_range): Only record lines
8271 marked as is-statement.
8272 * stack.c (frame_show_address): Show the frame address if we are
8273 in a non-statement sal.
8274 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
8275 (maintenance_print_one_line_table): Print a header for the is_stmt
8276 column, and include is_stmt information in the output.
8277 * symtab.c (find_pc_sect_line): Find lines marked as statements in
8278 preference to non-statements.
8279 (find_pcs_for_symtab_line): Prefer is-statement entries.
8280 (find_line_common): Likewise.
8281 * symtab.h (struct linetable_entry): Add is_stmt field.
8282 (struct symtab_and_line): Likewise.
8283 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
8284 arranging the line table.
8285
e4003a34
TV
82862020-03-07 Tom de Vries <tdevries@suse.de>
8287
8288 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
8289 DIE.
8290
e8932576
TT
82912020-03-07 Tom Tromey <tom@tromey.com>
8292
8293 * valops.c (value_literal_complex): Remove obsolete comment.
8294 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
8295 comment.
8296
29734269
SM
82972020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
8298
8299 * infrun.h: Forward-declare thread_info.
8300 (set_step_info): Add thread_info parameter, add doc.
8301 * infrun.c (set_step_info): Add thread_info parameter, move doc
8302 to header.
8303 * infrun.c (process_event_stop_test): Pass thread to
8304 set_step_info call.
8305 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
8306 set_step_info.
8307 (prepare_one_step): Add thread_info parameter, pass it to
8308 set_step_frame and prepare_one_step (recursive) call.
8309 (step_1): Pass thread to prepare_one_step call.
8310 (step_command_fsm::should_stop): Pass thread to
8311 prepare_one_step.
8312 (until_next_fsm): Pass thread to set_step_frame call.
8313 (finish_command): Pass thread to set_step_info call.
8314
b7d64b29
HD
83152020-03-06 Hannes Domani <ssbssa@yahoo.de>
8316
8317 * windows-tdep.c (windows_solib_create_inferior_hook):
8318 Check if inferior is running.
8319
09f2921c
TV
83202020-03-06 Tom de Vries <tdevries@suse.de>
8321
8322 * NEWS: Fix "the the".
8323 * ctfread.c: Same.
8324
fd760e79
TV
83252020-03-06 Tom de Vries <tdevries@suse.de>
8326
8327 * psymtab.c (psymtab_to_symtab): Don't print "done.".
8328
20ea4a60
AB
83292020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
8330
8331 * .dir-locals.el: Add a comment referencing the other copies of
8332 this file.
8333
0afbabf0
JB
83342020-03-05 John Baldwin <jhb@FreeBSD.org>
8335
8336 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
8337 psargs.
8338
842806cb
TBA
83392020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8340
8341 * .gitattributes: New file.
8342
be1e3d3e
TT
83432020-03-04 Tom Tromey <tom@tromey.com>
8344
8345 * symmisc.c (print_symbol_bcache_statistics)
8346 (print_objfile_statistics): Update.
8347 * symfile.c (allocate_symtab): Use intern.
8348 * psymtab.c (partial_symtab::partial_symtab): Use intern.
8349 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
8350 macro_cache>: Remove.
8351 <string_cache>: New member.
8352 (struct objfile) <intern>: New methods.
8353 * elfread.c (elf_symtab_read): Use intern.
8354 * dwarf2/read.c (fixup_go_packaging): Intern package name.
8355 (dwarf2_compute_name, dwarf2_physname)
8356 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
8357 names.
8358 (guess_partial_die_structure_name): Update.
8359 (partial_die_info::fixup): Intern name.
8360 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
8361 name.
8362 (dwarf2_name): Intern name. Update.
8363 * buildsym.c (buildsym_compunit::get_macro_table): Use
8364 string_cache.
8365
4e7625fd
TT
83662020-03-04 Tom Tromey <tom@tromey.com>
8367
8368 * jit.c (bfd_open_from_target_memory): Make "target" const.
8369 * corefile.c (gnutarget): Now const.
8370 * gdbcore.h (gnutarget): Now const.
8371
46f9f931
HD
83722020-03-04 Hannes Domani <ssbssa@yahoo.de>
8373
8374 * NEWS: Mention support for WOW64 processes.
8375 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
8376 (amd64_windows_segment_register_p): Remove static.
8377 (_initialize_amd64_windows_nat): Update.
8378 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
8379 * i386-windows-nat.c (context_offset): Update.
8380 (i386_mappings): Rename and remove static.
8381 (i386_windows_segment_register_p): Remove static.
8382 (_initialize_i386_windows_nat): Update.
8383 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
8384 (STATUS_WX86_SINGLE_STEP): New macro.
8385 (EnumProcessModulesEx): New macro.
8386 (Wow64SuspendThread): New macro.
8387 (Wow64GetThreadContext): New macro.
8388 (Wow64SetThreadContext): New macro.
8389 (Wow64GetThreadSelectorEntry): New macro.
8390 (windows_set_context_register_offsets): Add static.
8391 (windows_set_segment_register_p): Likewise.
8392 (windows_add_thread): Adapt for WOW64 processes.
8393 (windows_fetch_one_register): Likewise.
8394 (windows_nat_target::fetch_registers): Likewise.
8395 (windows_store_one_register): Likewise.
8396 (display_selector): Likewise.
8397 (display_selectors): Likewise.
8398 (handle_exception): Likewise.
8399 (windows_continue): Likewise.
8400 (windows_nat_target::resume): Likewise.
8401 (windows_add_all_dlls): Likewise.
8402 (do_initial_windows_stuff): Likewise.
8403 (windows_nat_target::attach): Likewise.
8404 (windows_get_exec_module_filename): Likewise.
8405 (windows_nat_target::create_inferior): Likewise.
8406 (windows_xfer_siginfo): Likewise.
8407 (_initialize_loadable): Initialize Wow64SuspendThread,
8408 Wow64GetThreadContext, Wow64SetThreadContext,
8409 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
8410 * windows-nat.h (windows_set_context_register_offsets):
8411 Remove declaration.
8412 (windows_set_segment_register_p): Likewise.
8413 (i386_windows_segment_register_p): Add declaration.
8414 (amd64_windows_segment_register_p): Likewise.
8415
440cf44e
LM
84162020-03-04 Luis Machado <luis.machado@linaro.org>
8417
8418 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
8419 in "info registers" for AArch64/ARM.
8420
8421 The change caused "info registers" to not print GPR's.
8422
8423 gdb/ChangeLog:
8424
8425 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
8426
8427 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
8428 when reg->group is empty and reggroup is not.
8429
1009d92f
TT
84302020-03-03 Tom Tromey <tromey@adacore.com>
8431
8432 * dwarf2/frame.c (struct dwarf2_frame_cache)
8433 <checked_tailcall_bottom, entry_cfa_sp_offset,
8434 entry_cfa_sp_offset_p>: Remove members.
8435 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
8436 (dwarf2_frame_prev_register): Don't call
8437 dwarf2_tailcall_sniffer_first.
8438 (dwarf2_append_unwinders): Don't append tailcall unwinder.
8439 * frame-unwind.c (add_unwinder): New fuction.
8440 (frame_unwind_init): Use it. Add tailcall unwinder.
8441
5e5d66b6
AB
84422020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
8443 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
8444
8445 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
8446 value should be printed as true.
8447
584cf46d
HD
84482020-03-03 Hannes Domani <ssbssa@yahoo.de>
8449
8450 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
8451 (windows_init_abi): Set and use windows_so_ops.
8452
7b973adc
SDJ
84532020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
8454
8455 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
8456 when verifying if dealing with a convenience variable.
8457
bb7b70ab
LM
84582020-03-03 Luis Machado <luis.machado@linaro.org>
8459
8460 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
8461
9822cb57
SM
84622020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
8463
8464 * infrun.c (gdbarch_supports_displaced_stepping): New.
8465 (use_displaced_stepping): Break up conditions in smaller pieces.
8466 Use gdbarch_supports_displaced_stepping.
8467 (displaced_step_prepare_throw): Use
8468 gdbarch_supports_displaced_stepping.
8469
63e163f2
AB
84702020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
8471
8472 * NEWS: Mention new behaviour of the history filename.
8473 * top.c (write_history_p): Add comment.
8474 (show_write_history_p): Add header comment, give a different
8475 message when history writing is on, but the history filename is
8476 empty.
8477 (history_filename): Add comment.
8478 (history_filename_empty): New function.
8479 (show_history_filename): Add header comment, give a different
8480 message when the filename is empty.
8481 (init_history): Compare history_filename against nullptr, and only
8482 read history if the filename is not empty.
8483 (set_history_filename): Add header comment, and only make
8484 non-empty filenames absolute.
8485 (init_main): Make the filename argument to 'set history filename'
8486 optional.
8487
81b86b97
CB
84882020-03-02 Christian Biesinger <cbiesinger@google.com>
8489
8490 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
8491 (arm_supply_vfpregset): ...this, and update to use VFP registers.
8492 (fetch_fp_register): Update.
8493 (fetch_fp_regs): Update.
8494 (store_fp_register): Update.
8495 (store_fp_regs): Update.
8496 (arm_netbsd_nat_target::read_description): New function.
8497 (fetch_elfcore_registers): Update.
8498
24ed6739
AB
84992020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
8500
8501 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
8502 general_thread if the stop reply is missing a thread-id.
8503 (remote_target::process_stop_reply): Use the first non-exited
8504 thread if the target didn't pass a thread-id.
8505 * infrun.c (do_target_wait): Move call to
8506 switch_to_inferior_no_thread to ....
8507 (do_target_wait_1): ... here.
8508
a84bb2a0
JT
85092020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
8510
8511 * debuginfod-support.c: Include defs.h first.
8512
658dadf0
TV
85132020-02-28 Tom de Vries <tdevries@suse.de>
8514
8515 * symfile.c (set_initial_language): Use default language for lookup.
8516
4ebe4877
SM
85172020-02-28 Simon Marchi <simon.marchi@efficios.com>
8518
8519 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
8520 reader variable, pass `this` to read_cutu_die_from_dwo.
8521
e5da1139
AM
85222020-02-27 Aaron Merey <amerey@redhat.com>
8523
8524 * source.c (open_source_file): Check for nullptr when computing
8525 srcpath.
8526
317f7127
TT
85272020-02-27 Tom Tromey <tromey@adacore.com>
8528
8529 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
8530 member.
8531 (dwarf2_add_field): Don't update nfields.
8532 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
8533
3104d9ee
AB
85342020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8535
8536 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
8537 abs.
8538
b83470bf
TT
85392020-02-26 Tom Tromey <tom@tromey.com>
8540
8541 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
8542 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
8543 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
8544 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
8545 per_cu_data.
8546
edfe0a0c
TT
85472020-02-26 Tom Tromey <tom@tromey.com>
8548
8549 * dwarf2/index-write.c (psym_index_map): Change type.
8550 (add_address_entry_worker, write_one_signatured_type)
8551 (recursively_count_psymbols, recursively_write_psymbols)
8552 (class debug_names, psyms_seen_size, write_gdbindex)
8553 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
8554
0d79cdc4
AM
85552020-02-26 Aaron Merey <amerey@redhat.com>
8556
8557 * Makefile.in: Handle optional debuginfod support.
8558 * NEWS: Update.
8559 * README: Add --with-debuginfod summary.
8560 * config.in: Regenerate.
8561 * configure: Regenerate.
8562 * configure.ac: Handle optional debuginfod support.
8563 * debuginfod-support.c: debuginfod helper functions.
8564 * debuginfod-support.h: Ditto.
8565 * doc/gdb.texinfo: Add --with-debuginfod to configure options
8566 summary.
8567 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
8568 when a dwz file cannot be found.
8569 * elfread.c (elf_symfile_read): Query debuginfod servers when a
8570 debuginfo file cannot be found.
8571 * source.c (open_source_file): Query debuginfod servers when a
8572 source file cannot be found.
8573 * top.c (print_gdb_configuration): Include
8574 --{with,without}-debuginfod in the output.
8575
b65ce565
JG
85762020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
8577
8578 * thread.c (thr_try_catch_cmd): Print thread name.
8579
d4c9a4f8
SM
85802020-02-26 Simon Marchi <simon.marchi@efficios.com>
8581
8582 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
8583 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
8584 dwarf2_fetch_die_type_sect_off): Move to...
8585 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
8586 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
8587 dwarf2_fetch_die_type_sect_off): ... here.
8588 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
8589 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
8590 dwarf2_fetch_die_type_sect_off): Move doc to header file.
8591
0dce4280
TV
85922020-02-26 Tom de Vries <tdevries@suse.de>
8593
8594 PR gdb/25603
8595 * symfile.c (set_initial_language): Exit-early if
8596 language_mode == language_mode_manual.
8597
450a1bfc
SM
85982020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
8599
8600 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
8601 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
8602 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
8603
9e80cfa1
AB
86042020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
8605
8606 * gdbtypes.c (create_array_type_with_stride): Handle negative
8607 array strides.
8608 * valarith.c (value_subscripted_rvalue): Likewise.
8609
09624f1f
LM
86102020-02-25 Luis Machado <luis.machado@linaro.org>
8611
8612 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
8613
8cb5117c
SM
86142020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
8615
8616 * loc.h (dwarf2_get_die_type): Move to...
8617 * read.h (dwarf2_get_die_type): ... here.
8618 * read.c (dwarf2_get_die_type): Move doc to header.
8619
c325c44e
JB
86202020-02-25 Joel Brobecker <brobecker@adacore.com>
8621
8622 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
8623 'gnulib/Makefile.in' to the list.
8624
4ac93832
TT
86252020-02-24 Tom Tromey <tom@tromey.com>
8626
8627 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
8628 Remove.
8629 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
8630 XOBNEWVEC.
8631
197400e8
TT
86322020-02-24 Tom Tromey <tom@tromey.com>
8633
8634 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
8635 New method.
8636 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
8637 (dw2_do_instantiate_symtab, dw2_get_file_names)
8638 (build_type_psymtab_dependencies, load_full_type_unit): Update.
8639
76935768
TT
86402020-02-24 Tom Tromey <tom@tromey.com>
8641
8642 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
8643 make_scoped_restore.
8644 (dwarf2_psymtab::read_symtab): Don't clear
8645 reading_partial_symbols.
8646
a88ef40d
TV
86472020-02-24 Tom de Vries <tdevries@suse.de>
8648
8649 PR gdb/25592
8650 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
8651
c9af6521
TV
86522020-02-24 Tom de Vries <tdevries@suse.de>
8653
8654 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
8655 commands layout next/prev/regs.
8656
5707a07a
TT
86572020-02-22 Tom Tromey <tom@tromey.com>
8658
8659 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
8660 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
8661
3b0fb49e
TT
86622020-02-22 Tom Tromey <tom@tromey.com>
8663
8664 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
8665
283be8bf
TT
86662020-02-22 Tom Tromey <tom@tromey.com>
8667
8668 * tui/tui-win.c (_initialize_tui_win): Add usage text.
8669 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
8670 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
8671 * tui/tui.c (_initialize_tui): Add usage text.
8672
ca793b96
TT
86732020-02-22 Tom Tromey <tom@tromey.com>
8674
8675 * tui/tui-win.c (tui_set_focus_command)
8676 (tui_set_win_height_command): Use error_no_arg.
8677 (_initialize_tui_win): Update help text.
8678 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
8679
432b5c40
TT
86802020-02-22 Tom Tromey <tom@tromey.com>
8681
8682 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
8683 * tui/tui-disasm.h (struct tui_disasm_window)
8684 <display_start_addr>: Declare.
8685 * tui/tui-source.h (struct tui_source_window)
8686 <display_start_addr>: Declare.
8687 * tui/tui-winsource.h (struct tui_source_window_base)
8688 <show_source_line, display_start_addr>: New methods.
8689 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
8690 Rename and move to protected section.
8691 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
8692 (tui_source_window_base::do_erase_source_content): Update.
8693 (tui_source_window_base::show_source_line): Now a method.
8694 (tui_source_window_base::show_source_content)
8695 (tui_source_window_base::tui_source_window_base)
8696 (tui_source_window_base::rerender)
8697 (tui_source_window_base::refill)
8698 (tui_source_window_base::do_scroll_horizontal)
8699 (tui_source_window_base::set_is_exec_point_at)
8700 (tui_source_window_base::update_breakpoint_info)
8701 (tui_source_window_base::update_exec_info): Update.
8702 * tui/tui-source.c (tui_source_window::set_contents)
8703 (tui_source_window::showing_source_p)
8704 (tui_source_window::do_scroll_vertical)
8705 (tui_source_window::location_matches_p)
8706 (tui_source_window::line_is_displayed): Update.
8707 (tui_source_window::display_start_addr): New method.
8708 * tui/tui-disasm.c (tui_disasm_window::set_contents)
8709 (tui_disasm_window::do_scroll_vertical)
8710 (tui_disasm_window::location_matches_p): Update.
8711 (tui_disasm_window::display_start_addr): New method.
8712
01b1af32
TT
87132020-02-22 Tom Tromey <tom@tromey.com>
8714
8715 * NEWS: Add entry for gdb.register_window_type.
8716 * tui/tui-layout.h (window_factory): New typedef.
8717 (tui_register_window): Declare.
8718 * tui/tui-layout.c (saved_tui_windows): New global.
8719 (tui_apply_current_layout): Use it.
8720 (tui_register_window): New function.
8721 * python/python.c (do_start_initialization): Call
8722 gdbpy_initialize_tui.
8723 (python_GdbMethods): Add "register_window_type" function.
8724 * python/python-internal.h (gdbpy_register_tui_window)
8725 (gdbpy_initialize_tui): Declare.
8726 * python/py-tui.c: New file.
8727 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
8728
fc96d20b
TT
87292020-02-22 Tom Tromey <tom@tromey.com>
8730
8731 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
8732
935c78c0
TT
87332020-02-22 Tom Tromey <tom@tromey.com>
8734
8735 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
8736 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
8737 * tui/tui-data.c (tui_set_win_with_focus): Remove.
8738 (tui_set_win_focus_to): Move from tui-win.c.
8739
0240c8f1
TT
87402020-02-22 Tom Tromey <tom@tromey.com>
8741
8742 * tui/tui-layout.c (make_standard_window, get_locator_window): New
8743 functions.
8744 (known_window_types): New global.
8745 (tui_get_window_by_name): Reimplement.
8746 (initialize_known_windows): New function.
8747 (validate_window_name): Rewrite.
8748 (_initialize_tui_layout): Call initialize_known_windows.
8749
fdb01f0c
TT
87502020-02-22 Tom Tromey <tom@tromey.com>
8751
8752 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
8753 Remove constants.
8754 * tui/tui-winsource.h (struct tui_source_window_base)
8755 <tui_source_window_base>: Remove parameter.
8756 * tui/tui-winsource.c
8757 (tui_source_window_base::tui_source_window_base): Remove
8758 parameter.
8759 (tui_source_window_base::refill): Update.
8760 * tui/tui-stack.h (struct tui_locator_window)
8761 <tui_locator_window>: Update.
8762 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
8763 Default the constructor.
8764 * tui/tui-regs.h (struct tui_data_item_window)
8765 <tui_data_item_window>: Default the constructor.
8766 (struct tui_data_window) <tui_data_window>: Likewise.
8767 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
8768 Default the constructor.
8769 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
8770 Default the constructor.
8771 <type>: Remove.
8772 (struct tui_win_info) <tui_win_info>: Default the constructor.
8773 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
8774 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
8775 Default the constructor.
8776
865a5aec
TT
87772020-02-22 Tom Tromey <tom@tromey.com>
8778
8779 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
8780 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
8781 * tui/tui-win.c (tui_resize_all): Don't call
8782 tui_delete_invisible_windows.
8783 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
8784 done.
8785 (tui_set_layout): Update.
8786 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
8787 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
8788 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
8789
e098d18c
TT
87902020-02-22 Tom Tromey <tom@tromey.com>
8791
8792 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
8793 correctly.
8794
eb9c8874
TT
87952020-02-22 Tom Tromey <tom@tromey.com>
8796
8797 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
8798
7eed1a8e
TT
87992020-02-22 Tom Tromey <tom@tromey.com>
8800
8801 * tui/tui-winsource.h (struct tui_source_window_iterator)
8802 <inner_iterator>: New etytypedef.
8803 <tui_source_window_iterator>: Take "end" parameter.
8804 <tui_source_window_iterator>: Take iterator.
8805 <operator*, advance>: Update.
8806 <m_iter>: Change type.
8807 <m_end>: New field.
8808 (struct tui_source_windows) <begin, end>: Update.
8809 * tui/tui-layout.c (tui_windows): New global.
8810 (tui_apply_current_layout): Clear tui_windows.
8811 (tui_layout_window::apply): Update tui_windows.
8812 * tui/tui-data.h (tui_windows): Declare.
8813 (all_tui_windows): Now inline function.
8814 (class tui_window_iterator, struct all_tui_windows): Remove.
8815
7c043ba6
TT
88162020-02-22 Tom Tromey <tom@tromey.com>
8817
8818 PR tui/17850:
8819 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
8820 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
8821 "height" argument.
8822 (class tui_layout_window) <get_sizes>: Likewise.
8823 (class tui_layout_split) <tui_layout_split>: Add "vertical"
8824 argument.
8825 <get_sizes>: Add "height" argument.
8826 <m_vertical>: New field.
8827 * tui/tui-layout.c (tui_layout_split::clone): Update.
8828 (tui_layout_split::get_sizes): Add "height" argument.
8829 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
8830 (tui_new_layout_command): Parse "-horizontal".
8831 (_initialize_tui_layout): Update help string.
8832 (tui_layout_split::specification): Add "-horizontal" when needed.
8833 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
8834 argument.
8835 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
8836 New methods.
8837
6bc56648
TT
88382020-02-22 Tom Tromey <tom@tromey.com>
8839
8840 * tui/tui-layout.h (enum tui_adjust_result): New.
8841 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
8842 (class tui_layout_window) <adjust_size>: Return
8843 tui_adjust_result. Rewrite.
8844 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
8845 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
8846
c22fef7e
TT
88472020-02-22 Tom Tromey <tom@tromey.com>
8848
8849 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
8850 parameter and return types.
8851 (class tui_layout_base) <specification>: Add "depth".
8852 (class tui_layout_window) <specification>: Add "depth".
8853 (class tui_layout_split) <specification>: Add "depth".
8854 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
8855 and return types.
8856 (tui_new_layout_command): Parse sub-layouts.
8857 (_initialize_tui_layout): Update help string.
8858 (tui_layout_window::specification): Add "depth".
8859 (add_layout_command): Update.
8860
ee325b61
TT
88612020-02-22 Tom Tromey <tom@tromey.com>
8862
8863 * NEWS: Add "tui new-layout" item.
8864 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
8865 Add new-layout command to help text.
8866 (validate_window_name): New function.
8867 (tui_new_layout_command): New function.
8868 (_initialize_tui_layout): Register "new-layout".
8869 (tui_layout_window::specification): New method.
8870 (tui_layout_window::specification): New method.
8871 * tui/tui-layout.h (class tui_layout_base) <specification>: New
8872 method.
8873 (class tui_layout_window) <specification>: New method.
8874 (class tui_layout_split) <specification>: New method.
8875
416eb92d
TT
88762020-02-22 Tom Tromey <tom@tromey.com>
8877
8878 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
8879 * tui/tui-win.c (window_name_completer): Update comment.
8880 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
8881 Declare method.
8882 (class tui_layout_window) <replace_window>: Likewise.
8883 (class tui_layout_split) <replace_window>: Likewise.
8884 (tui_set_layout): Don't declare.
8885 (tui_set_initial_layout): Declare function.
8886 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
8887 (asm_regs_layout): New globals.
8888 (tui_current_layout, show_layout): Remove.
8889 (tui_set_layout, tui_add_win_to_layout): Rewrite.
8890 (find_layout, tui_apply_layout): New function.
8891 (layout_completer): Remove.
8892 (tui_next_layout): Reimplement.
8893 (tui_next_layout_command): New function.
8894 (tui_set_initial_layout, tui_prev_layout_command): New functions.
8895 (tui_regs_layout): Reimplement.
8896 (tui_regs_layout_command): New function.
8897 (extract_display_start_addr): Rewrite.
8898 (next_layout, prev_layout): Remove.
8899 (tui_layout_window::replace_window): New method.
8900 (tui_layout_split::replace_window): New method.
8901 (destroy_layout): New function.
8902 (layout_list): New global.
8903 (add_layout_command): New function.
8904 (initialize_layouts): Update.
8905 (tui_layout_command): New function.
8906 (_initialize_tui_layout): Install "layout" commands.
8907 * tui/tui-data.h (enum tui_layout_type): Remove.
8908 (tui_current_layout): Don't declare.
8909
0dbc2fc7
TT
89102020-02-22 Tom Tromey <tom@tromey.com>
8911
8912 * tui/tui-regs.c (tui_reg_layout): Remove.
8913 (tui_reg_command): Use tui_regs_layout.
8914 * tui/tui-layout.h (tui_reg_command): Declare.
8915 * tui/tui-layout.c (tui_reg_command): New function.
8916
5afe342e
TT
89172020-02-22 Tom Tromey <tom@tromey.com>
8918
8919 * tui/tui.c (tui_rl_delete_other_windows): Call
8920 tui_remove_some_windows.
8921 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
8922 Declare method.
8923 (class tui_layout_window) <remove_windows>: New method.
8924 (class tui_layout_split) <remove_windows>: Declare.
8925 (tui_remove_some_windows): Declare.
8926 * tui/tui-layout.c (tui_remove_some_windows): New function.
8927 (tui_layout_split::remove_windows): New method.
8928
427326a8
TT
89292020-02-22 Tom Tromey <tom@tromey.com>
8930
8931 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
8932 * tui/tui-layout.h (tui_next_layout): Declare.
8933 * tui/tui-layout.c (tui_next_layout): New function.
8934
3fe12b6d
TT
89352020-02-22 Tom Tromey <tom@tromey.com>
8936
8937 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
8938 correct coordinates.
8939
59b8b5d2
TT
89402020-02-22 Tom Tromey <tom@tromey.com>
8941
8942 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
8943 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
8944 DATA_WIN case.
8945
2a3d458b
TT
89462020-02-22 Tom Tromey <tom@tromey.com>
8947
8948 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
8949 TUI_DISASM_WIN, not tui_win_list.
8950
3f0cbb04
TT
89512020-02-22 Tom Tromey <tom@tromey.com>
8952
8953 * valprint.c (generic_val_print_enum_1)
8954 (val_print_type_code_flags): Style member names.
8955 * rust-lang.c (val_print_struct, rust_print_enum)
8956 (rust_print_struct_def, rust_internal_print_type): Style member
8957 names.
8958 * p-valprint.c (pascal_object_print_value_fields): Style member
8959 names. Only call fprintf_symbol_filtered for static members.
8960 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
8961 * f-valprint.c (f_val_print): Style member names.
8962 * f-typeprint.c (f_type_print_base): Style member names.
8963 * cp-valprint.c (cp_print_value_fields): Style member names. Only
8964 call fprintf_symbol_filtered for static members.
8965 (cp_print_class_member): Style member names.
8966 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
8967 member names.
8968 * ada-valprint.c (ada_print_scalar): Style enum names.
8969 (ada_val_print_enum): Likewise.
8970 * ada-typeprint.c (print_enum_type): Style enum names.
8971
d4d947ae
TT
89722020-02-21 Tom Tromey <tom@tromey.com>
8973
8974 * psympriv.h (struct partial_symtab): Update comment.
8975
e94e944b
TT
89762020-02-21 Tom Tromey <tromey@adacore.com>
8977
8978 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
8979 type is CORE_ADDR.
8980
1eb73179
TV
89812020-02-21 Tom de Vries <tdevries@suse.de>
8982
8983 PR gdb/25534
8984 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
8985 if dependencies[i]->user != NULL.
8986
4f180d53
AT
89872020-02-21 Ali Tamur <tamur@google.com>
8988
8989 * dwarf2/read.c (dwarf2_name): Add null check.
8990
22b6cd70
TT
89912020-02-20 Tom Tromey <tom@tromey.com>
8992
8993 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
8994 ">=", in binary search.
8995 (dwarf2_find_containing_comp_unit): New overload.
8996 (run_test): New self-test.
8997 (_initialize_dwarf2_read): Register new test.
8998
bd0cf5a6
NC
89992020-02-20 Nelson Chu <nelson.chu@sifive.com>
9000
9001 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
9002 * riscv-tdep.h: Likewise.
9003 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
9004 rv32-only CSR.
9005 * features/riscv/64bit-csr.xml: Regenerated.
9006
3f702acd
SDJ
90072020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
9008 Tom Tromey <tom@tromey.com>
9009
9010 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
9011 of 'fputc_unfiltered'.
9012 (putchar_unfiltered): Call 'fputc_unfiltered'.
9013 (fputc_unfiltered): Call 'fputs_unfiltered'.
9014
d13c7322
AB
90152020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
9016
9017 * config.in: Regenerate.
9018 * configure: Regenerate.
9019 * configure.ac: Add --with-python-libdir option.
9020 * main.c: Use WITH_PYTHON_LIBDIR.
9021
869d8950
TT
90222020-02-19 Tom Tromey <tom@tromey.com>
9023
9024 * symtab.c (general_symbol_info::compute_and_set_names): Use
9025 obstack_strndup. Simplify call to symbol_set_demangled_name.
9026
298e9637
SM
90272020-02-19 Simon Marchi <simon.marchi@efficios.com>
9028
9029 * dwarf2/read.c (allocate_signatured_type_table,
9030 allocate_dwo_unit_table, allocate_type_unit_groups_table,
9031 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
9032 Remove objfile parameter, update all callers.
9033
08410482
DE
90342020-02-19 Doug Evans <dje@google.com>
9035
9036 PR rust/25535
9037 * rust-lang.c (rust_print_enum): Apply embedded_offset to
9038 rust_enum_variant calculation.
9039
dfdeeca1
TT
90402020-02-19 Tom Tromey <tromey@adacore.com>
9041
9042 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
9043
2ef5453b
TT
90442020-02-19 Tom Tromey <tromey@adacore.com>
9045
9046 * ada-lang.c (cache_symbol): Use obstack_strdup.
9047
9f1528a1
AB
90482020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
9049
9050 * configure: Regenerate.
9051
d3c22fa8
TT
90522020-02-19 Tom Tromey <tromey@adacore.com>
9053
9054 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
9055 NULL check.
9056
bf84f706
MR
90572020-02-19 Maciej W. Rozycki <macro@wdc.com>
9058
9059 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
9060
d1c9b20f
AB
90612020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
9062
9063 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
9064 if GDBSERVER is not defined.
9065 (riscv_tdesc_cache): Likewise, also store const target_desc.
9066 (STATIC_IN_GDB): Define.
9067 (riscv_create_target_description): Update declaration with
9068 STATIC_IN_GDB.
9069 (riscv_lookup_target_description): New function, only define if
9070 GDBSERVER is not defined.
9071 * arch/riscv.h (riscv_create_target_description): Declare only
9072 when GDBSERVER is defined.
9073 (riscv_lookup_target_description): New declaration when GDBSERVER
9074 is not defined.
9075 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
9076 (riscv_linux_read_features): ...this, and return
9077 riscv_gdbarch_features instead of target_desc.
9078 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
9079 (riscv_linux_read_description): Rename to...
9080 (riscv_linux_read_features): ...this.
9081 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
9082 Update to use riscv_gdbarch_features and
9083 riscv_lookup_target_description.
9084 * riscv-tdep.c (riscv_find_default_target_description): Use
9085 riscv_lookup_target_description instead of
9086 riscv_create_target_description.
9087
373d7ac0
SM
90882020-02-18 Simon Marchi <simon.marchi@efficios.com>
9089
9090 * valprint.c (generic_val_print_enum_1): When printing a flag
9091 enum with value 0 and there is no enumerator with value 0, print
9092 just "0" instead of "(unknown: 0x0)".
9093
b29a2df0
SM
90942020-02-18 Simon Marchi <simon.marchi@efficios.com>
9095
9096 * valprint.c (generic_val_print_enum_1): Print unknown part of
9097 flag enum in hex.
9098
6740f0cc
SM
90992020-02-18 Simon Marchi <simon.marchi@efficios.com>
9100
9101 * dwarf2/read.c (update_enumeration_type_from_children): Allow
9102 flag enums to contain duplicate enumerators.
9103 * valprint.c (generic_val_print_enum_1): Update comment.
9104
edd45eb0
SM
91052020-02-18 Simon Marchi <simon.marchi@efficios.com>
9106
9107 * dwarf2/read.c: Include "count-one-bits.h".
9108 (update_enumeration_type_from_children): If an enumerator has
9109 multiple bits set, don't treat the enumeration as a "flag enum".
9110 * valprint.c (generic_val_print_enum_1): Assert that enumerators
9111 of flag enums have 0 or 1 bit set.
9112
6d0cf446
BE
91132020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
9114
9115 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
9116 conversion.
9117 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
9118 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
9119 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
9120 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
9121 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
9122
7001c1b7
SM
91232020-02-18 Simon Marchi <simon.marchi@efficios.com>
9124
9125 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
9126
fdb61c6c
SM
91272020-02-14 Simon Marchi <simon.marchi@efficios.com>
9128
9129 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
9130 displaced_step_closure_up.
9131 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
9132 (struct displaced_step_closure_up):
9133 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
9134 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
9135 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
9136 Likewise.
9137 * gdbarch.sh (displaced_step_copy_insn): Likewise.
9138 * gdbarch.c, gdbarch.h: Re-generate.
9139 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
9140 displaced_step_closure_up.
9141 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
9142 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
9143 * infrun.h (displaced_step_closure_up): New type alias.
9144 (struct displaced_step_inferior_state) <step_closure>: Change
9145 type to displaced_step_closure_up.
9146 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
9147 displaced_step_closure_up.
9148 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
9149
a4a38eb4
TT
91502020-02-14 Tom Tromey <tom@tromey.com>
9151
9152 * minidebug.c (gnu_debug_key): New global.
9153 (find_separate_debug_file_in_section): Use it.
9154
e8217e61
SM
91552020-02-14 Simon Marchi <simon.marchi@efficios.com>
9156
9157 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
9158 std::unique_ptr.
9159 * gdbarch.c: Re-generate.
9160 * gdbarch.h: Re-generate.
9161 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
9162 change.
9163 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
9164 type to std::unique_ptr.
9165 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
9166 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
9167 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
9168 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
9169 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
9170 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
9171 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
9172 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
9173 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
9174
d8d83535
SM
91752020-02-14 Simon Marchi <simon.marchi@efficios.com>
9176
9177 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
9178 std::unique_ptr.
9179 (displaced_step_clear): Rename to...
9180 (displaced_step_reset): ... this. Just call displaced->reset ().
9181 (displaced_step_clear_cleanup): Rename to...
9182 (displaced_step_reset_cleanup): ... this.
9183 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
9184 (displaced_step_fixup): Likewise.
9185 (resume_1): Likewise.
9186 (handle_inferior_event): Restore child's memory before calling
9187 displaced_step_fixup on the parent.
9188 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
9189 to std::unique_ptr.
9190 <step_closure>: Change type to std::unique_ptr.
9191
5f661e03
SM
91922020-02-14 Simon Marchi <simon.marchi@efficios.com>
9193
9194 * arm-tdep.c: Include count-one-bits.h.
9195 (cleanup_block_store_pc): Use count_one_bits.
9196 (cleanup_block_load_pc): Use count_one_bits.
9197 (arm_copy_block_xfer): Use count_one_bits.
9198 (thumb2_copy_block_xfer): Use count_one_bits.
9199 (thumb_copy_pop_pc_16bit): Use count_one_bits.
9200 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
9201 (thumb_get_next_pcs_raw): Use count_one_bits.
9202 (arm_get_next_pcs_raw): Use count_one_bits_l.
9203 * arch/arm.c (bitcount): Remove.
9204 * arch/arm.h (bitcount): Remove.
9205
8084e579
TT
92062020-02-14 Tom Tromey <tromey@adacore.com>
9207
9208 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
9209 Update.
9210 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
9211 * dwarf2/loc.c (call_site_find_chain_1): Return
9212 unique_xmalloc_ptr.
9213 (call_site_find_chain): Likewise.
9214
258bf0ee
RB
92152020-02-14 Richard Biener <rguenther@suse.de>
9216
9217 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
9218 on expression with division operators.
9219
f98a8458
AKS
92202020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
9221
9222 * MAINTAINERS (Write After Approval): Adding myself.
9223
d1437c0e
TT
92242020-02-12 Tom Tromey <tom@tromey.com>
9225
9226 * event-loop.c (event_data, gdb_event, event_handler_func):
9227 Remove.
9228
3d4560f7
TT
92292020-02-12 Tom Tromey <tom@tromey.com>
9230
9231 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
9232 (dwarf2_frame_objfile_data): Add comment.
9233 (find_comp_unit, set_comp_unit): New functions.
9234 (dwarf2_frame_find_fde): Use find_comp_unit.
9235 (dwarf2_build_frame_info): Use set_comp_unit.
9236
21982304
TT
92372020-02-12 Tom Tromey <tom@tromey.com>
9238
9239 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
9240 (comp_unit): Don't initialize objfile.
9241 (execute_cfa_program): Add text_offset parameter.
9242 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
9243 (dwarf2_frame_cache): Update.
9244 (dwarf2_build_frame_info): Don't set "objfile" member.
9245
4debb237
TT
92462020-02-12 Tom Tromey <tom@tromey.com>
9247
9248 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
9249 (decode_frame_entry): Likewise.
9250 (dwarf2_build_frame_info): Update.
9251
0d404d44
TT
92522020-02-12 Tom Tromey <tom@tromey.com>
9253
9254 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
9255 (decode_frame_entry_1): Use the comp_unit obstack.
9256
a7a3ae5c
TT
92572020-02-12 Tom Tromey <tom@tromey.com>
9258
9259 * dwarf2/frame.c (struct comp_unit): Add initializers and
9260 constructor.
9261 (dwarf2_frame_objfile_data): Store a comp_unit.
9262 (dwarf2_frame_find_fde): Update.
9263 (dwarf2_build_frame_info): Use "new".
9264
a9d65418
TT
92652020-02-12 Tom Tromey <tom@tromey.com>
9266
9267 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
9268 (dwarf2_fde_table): Typedef for std::vector.
9269 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
9270 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
9271 (decode_frame_entry): Update.
9272 (dwarf2_build_frame_info): Use "new".
9273
7559c217
CB
92742020-02-12 Christian Biesinger <cbiesinger@google.com>
9275
9276 * arm-tdep.c (arm_gdbarch_init): Update.
9277 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
9278 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
9279 have_neon, is_m>: Change to bool.
9280
aeefc73c
CB
92812020-02-12 Christian Biesinger <cbiesinger@google.com>
9282
9283 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
9284
d27b8e5f
TT
92852020-02-12 Tom Tromey <tom@tromey.com>
9286
9287 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
9288
cd5900f3
HD
92892020-02-12 Hannes Domani <ssbssa@yahoo.de>
9290
9291 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
9292 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
9293
f056b22b
TT
92942020-02-11 Tom Tromey <tom@tromey.com>
9295
9296 * psymtab.h: Update comment.
9297
f92ff6b5
TT
92982020-02-11 Tom Tromey <tom@tromey.com>
9299
9300 * gdb_obstack.h (struct auto_obstack): Use
9301 DISABLE_COPY_AND_ASSIGN.
9302
3fd6912b
TT
93032020-02-11 Tom Tromey <tom@tromey.com>
9304
9305 * dwarf2/frame.h (struct objfile): Don't forward declare.
9306
69ed9b74
CB
93072020-02-11 Christian Biesinger <cbiesinger@google.com>
9308
9309 * cris-tdep.c (cris_supply_gregset): Change signature to match
9310 what struct regset expects.
9311 (cris_regset): New struct.
9312 (fetch_core_registers): Remove.
9313 (cris_iterate_over_regset_sections): New function.
9314 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
9315 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
9316
bda874f6
CB
93172020-02-11 Christian Biesinger <cbiesinger@google.com>
9318
9319 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
9320 registers.
9321
754e1564
CB
93222020-02-11 Christian Biesinger <cbiesinger@google.com>
9323
9324 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
9325
8ddd8e0e
SM
93262020-02-11 Simon Marchi <simon.marchi@efficios.com>
9327
9328 * configure: Re-generate.
9329
898e7f60
SM
93302020-02-11 Simon Marchi <simon.marchi@efficios.com>
9331
9332 * configure: Re-generate.
9333
58df732b
SM
93342020-02-11 Simon Marchi <simon.marchi@efficios.com>
9335
9336 * acinclude: Update warning.m4 path.
9337 * warning.m4: Move to gdbsupport.
9338
da5bd37e
TT
93392020-02-11 Tom Tromey <tromey@adacore.com>
9340
9341 * remote.c (remote_console_output): Update.
9342 * printcmd.c (printf_command): Update.
9343 * event-loop.c (gdb_wait_for_event): Update.
9344 * linux-nat.c (sigchld_handler): Update.
9345 * remote-sim.c (gdb_os_write_stdout): Update.
9346 (gdb_os_flush_stdout): Update.
9347 (gdb_os_flush_stderr): Update.
9348 (gdb_os_write_stderr): Update.
9349 * exceptions.c (print_exception): Update.
9350 * remote-fileio.c (remote_fileio_func_read): Update.
9351 (remote_fileio_func_write): Update.
9352 * tui/tui.c (tui_enable): Update.
9353 * tui/tui-interp.c (tui_interp::init): Update.
9354 * utils.c (init_page_info): Update.
9355 (putchar_unfiltered, fputc_unfiltered): Update.
9356 (gdb_flush): Update.
9357 (emit_style_escape): Update.
9358 (flush_wrap_buffer, fputs_maybe_filtered): Update.
9359 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
9360 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
9361 (stderr_file::write): Update.
9362 (stderr_file::puts): Update.
9363 * ui-file.h (ui_file_isatty, ui_file_write)
9364 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
9365 (ui_file_puts): Don't declare.
9366
85f0dd3c
TV
93672020-02-10 Tom de Vries <tdevries@suse.de>
9368
9369 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
9370 sentinel to char *.
9371
2e927613
TV
93722020-02-09 Tom de Vries <tdevries@suse.de>
9373
9374 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
9375 filename if it matches "<artificial>".
9376
6bafc845
HD
93772020-02-09 Hannes Domani <ssbssa@yahoo.de>
9378
9379 * windows-tdep.c (struct enum_value_name): New struct.
9380 (create_enum): New function.
9381 (windows_get_siginfo_type): Create and use enum types.
9382
7928d571
HD
93832020-02-09 Hannes Domani <ssbssa@yahoo.de>
9384
9385 * NEWS: Mention $_siginfo support for Windows.
9386 * windows-nat.c (handle_exception): Set siginfo_er.
9387 (windows_nat_target::mourn_inferior): Reset siginfo_er.
9388 (windows_xfer_siginfo): New function.
9389 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
9390 * windows-tdep.c (struct windows_gdbarch_data): New struct.
9391 (init_windows_gdbarch_data): New function.
9392 (get_windows_gdbarch_data): New function.
9393 (windows_get_siginfo_type): New function.
9394 (windows_init_abi): Register windows_get_siginfo_type.
9395 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
9396
6751ebae
TT
93972020-02-08 Tom Tromey <tom@tromey.com>
9398
9399 * dwarf2/read.c (class cutu_reader) <cutu_reader,
9400 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
9401 <keep>: Declare method.
9402 <m_keep>: Remove member.
9403 <~cutu_reader>: Remove.
9404 (cutu_reader::init_tu_and_read_dwo_dies): Update.
9405 (cutu_reader::cutu_reader): Update.
9406 (cutu_reader::keep): Rename from ~cutu_reader.
9407 (process_psymtab_comp_unit, build_type_psymtabs_1)
9408 (process_skeletonless_type_unit, load_partial_comp_unit)
9409 (load_full_comp_unit, dwarf2_read_addr_index)
9410 (read_signatured_type): Update.
9411
135f5437
TT
94122020-02-08 Tom Tromey <tom@tromey.com>
9413
9414 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
9415 "want_partial_unit" parameter.
9416 (process_psymtab_comp_unit): Change want_partial_unit to bool.
9417 Inline check for DW_TAG_partial_unit.
9418 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
9419
9f66ff1c
TT
94202020-02-08 Tom Tromey <tom@tromey.com>
9421
9422 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
9423 read.c.
9424 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
9425 read.c.
9426
c8a7a66f
TT
94272020-02-08 Tom Tromey <tom@tromey.com>
9428
9429 * dwarf2/read.c (read_address): Move to comp-unit.c.
9430 (dwarf2_rnglists_process, dwarf2_ranges_process)
9431 (read_attribute_value, dwarf_decode_lines_1)
9432 (var_decode_location, decode_locdesc): Update.
9433 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
9434 read.c. Remove "cu" parameter.
9435 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
9436 method.
9437
8266302d
TT
94382020-02-08 Tom Tromey <tom@tromey.com>
9439
9440 * dwarf2/read.c (read_attribute_value, read_indirect_string)
9441 (read_indirect_line_string): Update.
9442 * dwarf2/comp-unit.c (read_offset): Remove.
9443 (read_comp_unit_head): Update.
9444 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
9445 method.
9446 (read_offset): Don't declare.
9447
4057dfde
TT
94482020-02-08 Tom Tromey <tom@tromey.com>
9449
9450 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
9451 * dwarf2/read.c (struct comp_unit_head): Move to
9452 dwarf2/comp-unit.h.
9453 (enum class rcuh_kind): Move to comp-unit.h.
9454 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
9455 (read_comp_unit_head, error_check_comp_unit_head)
9456 (read_and_check_comp_unit_head): Move to comp-unit.c.
9457 (read_offset, dwarf_unit_type_name): Likewise.
9458 (create_debug_type_hash_table, read_cutu_die_from_dwo)
9459 (cutu_reader::cutu_reader, read_call_site_scope)
9460 (find_partial_die, follow_die_offset): Update.
9461 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
9462
24aa364d
TT
94632020-02-08 Tom Tromey <tom@tromey.com>
9464
9465 * dwarf2/read.c (read_offset_1): Move to leb.c.
9466 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
9467 (dwarf_decode_macro_bytes): Update.
9468 * dwarf2/leb.c (read_offset): Rename; move from read.c.
9469 * dwarf2/leb.h (read_offset): Declare.
9470
2c7d5afc
TT
94712020-02-08 Tom Tromey <tom@tromey.com>
9472
9473 * dwarf2/read.c (dwarf2_section_size): Remove.
9474 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
9475 Update.
9476 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
9477
4075cb26
TT
94782020-02-08 Tom Tromey <tom@tromey.com>
9479
9480 * dwarf2/read.c (read_initial_length): Move to leb.c.
9481 * dwarf2/leb.h (read_initial_length): Declare.
9482 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
9483 handle_nonstd parameter.
9484 * dwarf2/frame.c (read_initial_length): Remove.
9485 (decode_frame_entry_1): Update.
9486
09ba997f
TT
94872020-02-08 Tom Tromey <tom@tromey.com>
9488
9489 * dwarf2/loc.c (dwarf2_find_location_expression)
9490 (dwarf_evaluate_loc_desc::get_tls_address)
9491 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
9492 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
9493 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
9494 (dwarf2_compile_property_to_c)
9495 (dwarf2_loc_desc_get_symbol_read_needs)
9496 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
9497 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
9498 (loclist_describe_location, loclist_tracepoint_var_ref)
9499 (loclist_generate_c_location): Update.
9500 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
9501 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
9502 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
9503 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
9504 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
9505 (dwarf2_per_cu_data::addr_size)
9506 (dwarf2_per_cu_data::ref_addr_size)
9507 (dwarf2_per_cu_data::text_offset)
9508 (dwarf2_per_cu_data::addr_type): Now methods.
9509 (per_cu_header_read_in): Make per_cu "const".
9510 (dwarf2_version): Remove.
9511 (dwarf2_per_cu_data::int_type): Now a method.
9512 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
9513 (set_die_type, read_array_type, read_subrange_index_type)
9514 (read_tag_string_type, read_subrange_type): Update.
9515 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
9516 offset_size, ref_addr_size, text_offset, addr_type, version,
9517 objfile, int_type, addr_sized_int_type>: Declare methods.
9518
96c738c0
TT
95192020-02-08 Tom Tromey <tom@tromey.com>
9520
9521 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
9522 Move earlier.
9523
8fdd972c
TT
95242020-02-08 Tom Tromey <tom@tromey.com>
9525
9526 * dwarf2/read.h (dwarf_line_debug): Declare.
9527 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
9528 * dwarf2/read.c: Move line_header code to new files.
9529 (dwarf_line_debug): No longer static.
9530 * dwarf2/line-header.c: New file.
9531 * dwarf2/line-header.h: New file.
9532
03075812
TT
95332020-02-08 Tom Tromey <tom@tromey.com>
9534
9535 * dwarf2/read.c (struct line_header) <file_full_name,
9536 file_file_name>: Return unique_xmalloc_ptr.
9537 (line_header::file_file_name): Update.
9538 (line_header::file_full_name): Update.
9539 (dw2_get_file_names_reader): Update.
9540 (macro_start_file): Update.
9541
bb822404
TT
95422020-02-08 Tom Tromey <tom@tromey.com>
9543
9544 * dwarf2/read.c (struct line_header) <file_full_name,
9545 file_file_name>: Declare methods.
9546 (dw2_get_file_names_reader): Update.
9547 (file_file_name): Now a method.
9548 (file_full_name): Likewise.
9549 (macro_start_file): Update.
9550
009b64fc
TT
95512020-02-08 Tom Tromey <tom@tromey.com>
9552
9553 * dwarf2/read.c (dwarf_always_disassemble)
9554 (show_dwarf_always_disassemble): Move to loc.c.
9555 (_initialize_dwarf2_read): Move "always-disassemble" registration
9556 to loc.c.
9557 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
9558 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
9559 static.
9560 (show_dwarf_always_disassemble): Move from read.c.
9561 (_initialize_dwarf2loc): Move always-disassemble from read.c.
9562
5895093f
TT
95632020-02-08 Tom Tromey <tom@tromey.com>
9564
9565 * dwarf2/read.c (~dwarf2_per_objfile): Update.
9566 (create_quick_file_names_table): Return htab_up.
9567 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
9568 Update.
9569 * dwarf2/read.h (struct dwarf2_per_objfile)
9570 <quick_file_names_table>: Now htab_up.
9571
b3b32279
TT
95722020-02-08 Tom Tromey <tom@tromey.com>
9573
9574 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
9575
1d33d811
TT
95762020-02-08 Tom Tromey <tom@tromey.com>
9577
9578 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
9579 Rewrite.
9580 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
9581 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
9582 (abbrev_table::abbrev_table): No longer inline.
9583 (ABBREV_HASH_SIZE): Remove.
9584 (abbrev_table::m_abbrevs): Now an htab_up.
9585
86de1d91
TT
95862020-02-08 Tom Tromey <tom@tromey.com>
9587
9588 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
9589 (cutu_reader): Update.
9590 (build_type_psymtabs_1): Update.
9591 * dwarf2/abbrev.c (abbrev_table::read): Rename.
9592 (abbrev_table::alloc_abbrev): Update.
9593 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
9594 (abbrev_table::read): New static method, renamed from
9595 abbrev_table_read_table.
9596 (abbrev_table::alloc_abbrev)
9597 (abbrev_table::add_abbrev): Now private.
9598 (abbrev_table::abbrev_table): Now private.
9599 (abbrev_table::m_abbrev_obstack): Now private. Rename.
9600
0335378b
TT
96012020-02-08 Tom Tromey <tom@tromey.com>
9602
9603 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
9604 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
9605 htab_up.
9606
48b490f2
TT
96072020-02-08 Tom Tromey <tom@tromey.com>
9608
9609 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
9610 htab_up.
9611 (lookup_dwo_unit_in_dwp): Update.
9612 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
9613 on obstack.
9614
bc68fb19
TT
96152020-02-08 Tom Tromey <tom@tromey.com>
9616
9617 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
9618 obstack.
9619
d15acc42
TT
96202020-02-08 Tom Tromey <tom@tromey.com>
9621
9622 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
9623 line_header_hash.
9624 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
9625 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
9626 Change type to htab_up.
9627
eaa5fa8b
TT
96282020-02-08 Tom Tromey <tom@tromey.com>
9629
9630 * dwarf2/read.c (allocate_type_unit_groups_table): Return
9631 htab_up. Don't allocate on obstack.
9632 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
9633 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
9634 Change type to htab_up.
9635
b0b6a987
TT
96362020-02-08 Tom Tromey <tom@tromey.com>
9637
9638 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
9639 Change type to htab_up.
9640 * dwarf2/read.c (create_signatured_type_table_from_index)
9641 (create_signatured_type_table_from_debug_names)
9642 (create_all_type_units, add_type_unit)
9643 (lookup_dwo_signatured_type, lookup_signatured_type)
9644 (process_skeletonless_type_unit): Update.
9645 (create_debug_type_hash_table, create_debug_types_hash_table):
9646 Change type of types_htab.
9647 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
9648 htab_up. Don't allocate on obstack.
9649 (create_cus_hash_table): Change type of cus_htab parameter.
9650 (struct dwo_file) <cus, tus>: Now htab_up.
9651 (lookup_dwo_signatured_type, lookup_dwo_cutu)
9652 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
9653 (queue_and_load_all_dwo_tus): Update.
9654 * dwarf2/index-write.c (write_gdbindex): Update.
9655 (write_debug_names): Update.
9656
39856def
TT
96572020-02-08 Tom Tromey <tom@tromey.com>
9658
9659 * dwarf2/read.h (struct dwarf2_queue_item): Move from
9660 dwarf2/read.c. Remove "next" member. Add constructor ntad
9661 destructor.
9662 (struct dwarf2_per_objfile) <queue>: New member.
9663 * dwarf2/read.c (struct dwarf2_queue_item): Move to
9664 dwarf2/read.h.
9665 (dwarf2_queue, dwarf2_queue_tail): Remove.
9666 (class dwarf2_queue_guard): Add parameter to constructor. Use
9667 DISABLE_COPY_AND_ASSIGN.
9668 <m_per_objfile>: New member.
9669 <~dwarf2_queue_guard>: Rewrite.
9670 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
9671 Update.
9672 (~dwarf2_queue_item): New.
9673
3e225074
TT
96742020-02-08 Tom Tromey <tom@tromey.com>
9675
9676 * dwarf2/read.c (struct die_info) <has_children>: New member.
9677 (dw2_get_file_names_reader): Remove has_children.
9678 (dw2_get_file_names): Update.
9679 (read_cutu_die_from_dwo): Remove has_children.
9680 (cutu_reader::init_tu_and_read_dwo_dies)
9681 (cutu_reader::cutu_reader): Update.
9682 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
9683 Remove has_children.
9684 (build_type_psymtabs_1, process_skeletonless_type_unit)
9685 (load_partial_comp_unit, load_full_comp_unit): Update.
9686 (create_dwo_cu_reader): Remove has_children.
9687 (create_cus_hash_table, read_die_and_children): Update.
9688 (read_full_die_1,read_full_die): Remove has_children.
9689 (read_signatured_type): Update.
9690 (class cutu_reader) <has_children>: Remove.
9691
82ca8957
TT
96922020-02-08 Tom Tromey <tom@tromey.com>
9693
9694 * dwarf2/expr.c: Rename from dwarf2expr.c.
9695 * dwarf2/expr.h: Rename from dwarf2expr.h.
9696 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
9697 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
9698 * dwarf2/frame.c: Rename from dwarf2-frame.c.
9699 * dwarf2/frame.h: Rename from dwarf2-frame.h.
9700 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
9701 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
9702 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
9703 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
9704 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
9705 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
9706 * dwarf2/loc.c: Rename from dwarf2loc.c.
9707 * dwarf2/loc.h: Rename from dwarf2loc.h.
9708 * dwarf2/read.c: Rename from dwarf2read.c.
9709 * dwarf2/read.h: Rename from dwarf2read.h.
9710 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
9711 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
9712 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
9713 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
9714 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
9715 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
9716 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
9717 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
9718 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
9719 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
9720 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
9721 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
9722 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
9723 Update.
9724 * Makefile.in (COMMON_SFILES): Update.
9725 (HFILES_NO_SRCDIR): Update.
9726
9e35d499
TT
97272020-02-08 Tom Tromey <tom@tromey.com>
9728
9729 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
9730 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
9731
1eba2311
TT
97322020-02-08 Tom Tromey <tom@tromey.com>
9733
9734 * dwarf2read.h (struct die_info): Don't declare.
9735
e41c2da2
TT
97362020-02-08 Tom Tromey <tom@tromey.com>
9737
9738 * dwarf2read.h (die_info_ptr): Remove typedef.
9739
4fc6c0d5
TT
97402020-02-08 Tom Tromey <tom@tromey.com>
9741
9742 * dwarf2read.c (read_call_site_scope)
9743 (handle_data_member_location, dwarf2_add_member_fn)
9744 (mark_common_block_symbol_computed, read_common_block)
9745 (attr_to_dynamic_prop, partial_die_info::read)
9746 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
9747 (dwarf2_symbol_mark_computed, set_die_type): Update.
9748 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
9749 method.
9750 (attr_form_is_block): Don't declare.
9751 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
9752
cd6c91b4
TT
97532020-02-08 Tom Tromey <tom@tromey.com>
9754
9755 * dwarf2read.c (dwarf2_find_base_address, )
9756 (read_call_site_scope, rust_containing_type)
9757 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
9758 (handle_data_member_location, dwarf2_add_member_fn)
9759 (get_alignment, read_structure_type, process_structure_scope)
9760 (mark_common_block_symbol_computed, read_common_block)
9761 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
9762 (partial_die_info::read, read_attribute_value, new_symbol)
9763 (lookup_die_type, dwarf2_get_ref_die_offset)
9764 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
9765 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
9766 (dwarf2_symbol_mark_computed): Update.
9767 * dwarf2/attribute.h (struct attribute) <value_as_address,
9768 form_is_section_offset, form_is_constant, form_is_ref>: Declare
9769 methods.
9770 (value_as_address, attr_form_is_section_offset)
9771 (attr_form_is_constant, attr_form_is_ref): Don't declare.
9772 * dwarf2/attribute.c (attribute::value_as_address)
9773 (attribute::form_is_section_offset, attribute::form_is_constant)
9774 (attribute::form_is_ref): Now methods.
9775
162dce55
TT
97762020-02-08 Tom Tromey <tom@tromey.com>
9777
9778 * dwarf2read.c (struct attribute, DW_STRING)
9779 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
9780 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
9781 (attr_form_is_block, attr_form_is_section_offset)
9782 (attr_form_is_constant, attr_form_is_ref): Move.
9783 * dwarf2/attribute.h: New file.
9784 * dwarf2/attribute.c: New file, from dwarf2read.c.
9785 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
9786
3054dd54
TT
97872020-02-08 Tom Tromey <tom@tromey.com>
9788
9789 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
9790 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
9791 Move.
9792 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
9793 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
9794 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
9795 abbrev.c.
9796 * dwarf2/abbrev.h: New file.
9797 * dwarf2/abbrev.c: New file, from dwarf2read.c.
9798 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
9799
96b79293
TT
98002020-02-08 Tom Tromey <tom@tromey.com>
9801
9802 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
9803 (dwarf2_section_size, dwarf2_get_section_info)
9804 (create_signatured_type_table_from_debug_names)
9805 (create_addrmap_from_aranges, read_debug_names_from_section)
9806 (get_gdb_index_contents_from_section, read_comp_unit_head)
9807 (error_check_comp_unit_head, read_abbrev_offset)
9808 (create_debug_type_hash_table, init_cu_die_reader)
9809 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
9810 (read_comp_units_from_section, create_cus_hash_table)
9811 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
9812 (create_dwp_v2_section, dwarf2_rnglists_process)
9813 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
9814 (abbrev_table_read_table, read_indirect_string_at_offset_from)
9815 (read_indirect_string_from_dwz, read_addr_index_1)
9816 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
9817 (dwarf_decode_macro_bytes, dwarf_decode_macros)
9818 (fill_in_loclist_baton): Update.
9819 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
9820 get_containing_section, get_bfd_owner, get_bfd_section,
9821 get_file_name, get_id, get_flags, empty, read>: Declare methods.
9822 (dwarf2_read_section, get_section_name, get_section_file_name)
9823 (get_containing_section, get_section_bfd_owner)
9824 (get_section_bfd_section, get_section_name, get_section_file_name)
9825 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
9826 declare.
9827 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
9828 (dwarf2_section_info::get_bfd_owner)
9829 (dwarf2_section_info::get_bfd_section)
9830 (dwarf2_section_info::get_name)
9831 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
9832 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
9833 (dwarf2_section_info::read): Now methods.
9834 * dwarf-index-write.c (class debug_names): Update.
9835
2c86cff9
TT
98362020-02-08 Tom Tromey <tom@tromey.com>
9837
9838 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
9839 Move to dwarf2/section.h.
9840 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
9841 (get_section_bfd_section, get_section_name)
9842 (get_section_file_name, get_section_id, get_section_flags)
9843 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
9844 dwarf2/section.c.
9845 * dwarf2/section.h: New file.
9846 * dwarf2/section.c: New file, from dwarf2read.c.
9847 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
9848
f4382c45
TT
98492020-02-08 Tom Tromey <tom@tromey.com>
9850
9851 * dwarf2read.h (read_unsigned_leb128): Don't declare.
9852 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
9853 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
9854 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
9855 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
9856 * dwarf2/leb.h: New file, from dwarf2read.c.
9857 * dwarf2/leb.c: New file, from dwarf2read.c.
9858 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
9859 Remove.
9860 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
9861 (COMMON_SFILES): Add dwarf2/leb.c.
9862
01840b7a
JB
98632020-02-08 Joel Brobecker <brobecker@adacore.com>
9864
9865 GDB 9.1 released.
9866
dfcb27e4
IB
98672020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
9868
9869 PR gdb/25190:
aac66a4c
SM
9870 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
9871 * gdb/remote.c (remote_console_output): Update.
9872 * gdb/ui-file.c (fputs_unfiltered): Rename to...
9873 (ui_file_puts): ...this.
9874 * gdb/ui-file.h (ui_file_puts): Add declaration.
9875 * gdb/utils.c (emit_style_escape): Update.
9876 (flush_wrap_buffer): Update.
9877 (fputs_maybe_filtered): Update.
9878 (fputs_unfiltered): Add function.
dfcb27e4 9879
faa17681
IB
98802020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
9881
aac66a4c
SM
9882 * gdb/event-loop.c (gdb_wait_for_event): Update.
9883 * gdb/printcmd.c (printf_command): Update.
9884 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
9885 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
9886 (gdb_os_flush_stderr): Update.
9887 * gdb/remote.c (remote_console_output): Update.
9888 * gdb/ui-file.c (gdb_flush): Rename to...
9889 (ui_file_flush): ...this.
9890 (stderr_file::write): Update.
9891 (stderr_file::puts): Update.
9892 * gdb/ui-file.h (gdb_flush): Rename to...
9893 (ui_file_flush): ...this.
9894 * gdb/utils.c (gdb_flush): Add function.
9895 * gdb/utils.h (gdb_flush): Add declaration.
faa17681 9896
5abbbe1d
TT
98972020-02-07 Tom Tromey <tromey@adacore.com>
9898
9899 PR breakpoints/24915:
9900 * source.c (find_and_open_source): Do not check basenames_may_differ.
9901
919adfe8
TT
99022020-02-07 Tom Tromey <tom@tromey.com>
9903
9904 * README: Update gdbserver documentation.
9905 * gdbserver: Move to top level.
9906 * configure.tgt (build_gdbserver): Remove.
9907 * configure.ac: Remove --enable-gdbserver.
9908 * configure: Rebuild.
9909 * Makefile.in (distclean): Don't mention gdbserver.
9910
1d5d29e7
SV
99112020-02-06 Shahab Vahedi <shahab@synopsys.com>
9912
9913 * source-cache.c (source_cache::ensure): Surround
9914 get_plain_source_lines with a try/catch.
9915 (source_cache::get_line_charpos): Get rid of try/catch
9916 and only check for the return value of "ensure".
9917 * tui/tui-source.c (tui_source_window::set_contents):
9918 Simplify "nlines" calculation.
9919
6eb1129c
SV
99202020-02-06 Shahab Vahedi <shahab@synopsys.com>
9921
9922 * MAINTAINERS (Write After Approval): Add myself.
9923
c6a42d11
CB
99242020-02-05 Christian Biesinger <cbiesinger@google.com>
9925
9926 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
9927 function call.
9928
c8ecdda6
CB
99292020-02-05 Christian Biesinger <cbiesinger@google.com>
9930
9931 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
9932
f6480e70
MR
99332020-02-05 Maciej W. Rozycki <macro@wdc.com>
9934
9935 * nat/riscv-linux-tdesc.h: New file.
9936 * nat/riscv-linux-tdesc.c: New file, taking code from...
9937 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
9938 ... here.
9939 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
9940 NATDEPFILES.
9941
dcc9fbc6
AB
99422020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
9943
9944 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
9945 we don't set the fake simulator ptid to the null_ptid.
9946
719546c4
SM
99472020-02-03 Simon Marchi <simon.marchi@efficios.com>
9948
9949 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
9950 * gdbthread.h (class thread_info) <resumed>: Likewise.
9951 * infrun.c (resume_1): Likewise.
9952 (proceed): Likewise.
9953 (infrun_thread_stop_requested): Likewise.
9954 (stop_all_threads): Likewise.
9955 (handle_inferior_event): Likewise.
9956 (restart_threads): Likewise.
9957 (finish_step_over): Likewise.
9958 (keep_going_stepped_thread): Likewise.
9959 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
9960 (linux_handle_extended_wait): Likewise.
9961 * record-btrace.c (get_thread_current_frame_id): Likewise.
9962 * record-full.c (record_full_wait_1): Likewise.
9963 * remote.c (remote_target::process_initial_stop_replies): Likewise.
9964 * target.c (target_resume): Likewise.
9965 * thread.c (set_running_thread): Likewise.
9966
e409c542
AKS
99672020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
9968
9969 * f-valprint.c (f77_print_array_1): Changed datatype of index
9970 variable to LONGEST from int to enable it to contain bound
9971 values correctly.
9972
ee98c0da
MR
99732020-02-03 Maciej W. Rozycki <macro@wdc.com>
9974
9975 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
9976 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
9977 offsets according to FLEN determined.
9978 (riscv_linux_nat_target::read_description): Determine FLEN
9979 dynamically.
9980 (riscv_linux_nat_target::fetch_registers): Size regset buffer
9981 according to FLEN determined.
9982 (riscv_linux_nat_target::store_registers): Likewise.
9983
aa66aac4
SV
99842020-02-01 Shahab Vahedi <shahab@synopsys.com>
9985
9986 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
9987 when reg->group is empty and reggroup is not.
9988
fd9faca8
TT
99892020-01-31 Tom Tromey <tromey@adacore.com>
9990
9991 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
9992 Call beneath target's mourn_inferior after unpushing.
9993
42330a68
AB
99942020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
9995
9996 PR tui/9765
9997 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
9998 have enough lines to fill the screen, still return the lowest
9999 address we found.
10000
7a27a45b
AB
100012020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
10002
10003 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
10004 '-', '<', and '>' commands.
10005
c47f70e2
PA
100062020-01-29 Pedro Alves <palves@redhat.com>
10007 Sergio Durigan Junior <sergiodj@redhat.com>
10008
10009 * infcmd.c (construct_inferior_arguments): Assert that
10010 'argc' is greater than 0.
10011
5133a315
LM
100122020-01-29 Luis Machado <luis.machado@linaro.org>
10013
10014 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
10015 (BRK_INSN_MASK): Define to 0xd4200000.
10016 (aarch64_program_breakpoint_here_p): New function.
10017 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
10018 * arch-utils.c (default_program_breakpoint_here_p): Moved from
10019 breakpoint.c.
10020 * arch-utils.h (default_program_breakpoint_here_p): Moved from
10021 breakpoint.h
10022 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
10023 call gdbarch_program_breakpoint_here_p.
10024 (program_breakpoint_here): Moved to arch-utils.c, renamed to
10025 default_program_breakpoint_here_p, changed return type to bool and
10026 simplified.
10027 * breakpoint.h (program_breakpoint_here): Moved prototype to
10028 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
10029 return type to bool.
10030 * gdbarch.c: Regenerate.
10031 * gdbarch.h: Regenerate.
10032 * gdbarch.sh (program_breakpoint_here_p): New method.
10033 * infrun.c (handle_signal_stop): Call
10034 gdbarch_program_breakpoint_here_p.
10035
168f8c6b
TT
100362020-01-26 Tom Tromey <tom@tromey.com>
10037
10038 * ctfread.c (struct ctf_fp_info): Reindent.
10039 (_initialize_ctfread): Remove.
10040
128a391f
TT
100412020-01-26 Tom Tromey <tom@tromey.com>
10042
10043 * psymtab.c (partial_map_expand_apply)
10044 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
10045 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
10046 (psym_print_stats, psym_expand_symtabs_for_function)
10047 (psym_map_symbol_filenames, psym_map_matching_symbols)
10048 (psym_expand_symtabs_matching)
10049 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
10050 (maintenance_check_psymtabs): Use new methods.
10051 * psympriv.h (struct partial_symtab) <readin_p,
10052 get_compunit_symtab>: New methods.
10053 <readin, compunit_symtab>: Remove members.
10054 (struct standard_psymtab): New.
10055 (struct legacy_psymtab): Derive from standard_psymtab.
10056 * dwarf2read.h (struct dwarf2_psymtab): Derive from
10057 standard_psymtab.
10058 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
10059
0494dbec
TT
100602020-01-26 Tom Tromey <tom@tromey.com>
10061
10062 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
10063 read_dependencies. Add assert.
10064 * psymtab.c (partial_symtab::read_dependencies): New method.
10065 * psympriv.h (struct partial_symtab) <read_dependencies>: New
10066 method.
10067 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
10068 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
10069 read_dependencies.
10070 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
10071 Add assert.
10072
8566b89b
TT
100732020-01-26 Tom Tromey <tom@tromey.com>
10074
10075 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
10076 Call expand_psymtab.
10077 (xcoff_read_symtab): Call expand_psymtab.
10078 (xcoff_start_psymtab, xcoff_end_psymtab): Set
10079 legacy_expand_psymtab.
10080 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
10081 method.
10082 (struct legacy_psymtab) <expand_psymtab>: Implement.
10083 <legacy_expand_psymtab>: New member.
10084 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
10085 (parse_partial_symbols): Set legacy_expand_psymtab.
10086 (psymtab_to_symtab_1): Change argument order. Call
10087 expand_psymtab.
10088 (new_psymtab): Set legacy_expand_psymtab.
10089 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
10090 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
10091 expand_psymtab.
10092 (dwarf2_psymtab::expand_psymtab): Rename from
10093 psymtab_to_symtab_1. Call expand_psymtab.
10094 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
10095 (dbx_end_psymtab): Likewise.
10096 (dbx_psymtab_to_symtab_1): Change argument order. Call
10097 expand_psymtab.
10098 (dbx_read_symtab): Call expand_psymtab.
10099 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
10100 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
10101 (ctf_psymtab::read_symtab): Call expand_psymtab.
10102
077cbab2
TT
101032020-01-26 Tom Tromey <tom@tromey.com>
10104
10105 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
10106 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
10107 messages.
10108 * mdebugread.c (mdebug_read_symtab): Remove prints.
10109 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
10110 assert.
10111 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
10112
891813be
TT
101132020-01-26 Tom Tromey <tom@tromey.com>
10114
10115 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
10116 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
10117 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
10118 legacy_symtab.
10119 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
10120 * psymtab.c (psymtab_to_symtab): Call method.
10121 (dump_psymtab): Update.
10122 * psympriv.h (struct partial_symtab): Add virtual destructor.
10123 <read_symtab>: New method.
10124 (struct legacy_symtab): New.
10125 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
10126 (struct pst_map) <pst>: Now a legacy_psymtab.
10127 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
10128 (new_psymtab): Use legacy_psymtab.
10129 * dwarf2read.h (struct dwarf2_psymtab): New.
10130 (struct dwarf2_per_cu_data) <psymtab>: Use it.
10131 * dwarf2read.c (dwarf2_create_include_psymtab)
10132 (dwarf2_build_include_psymtabs, create_type_unit_group)
10133 (create_partial_symtab, process_psymtab_comp_unit_reader)
10134 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
10135 (set_partial_user): Use dwarf2_psymtab.
10136 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
10137 (psymtab_to_symtab_1, process_full_comp_unit)
10138 (process_full_type_unit, dwarf2_ranges_read)
10139 (dwarf2_get_pc_bounds, psymtab_include_file_name)
10140 (dwarf_decode_lines): Use dwarf2_psymtab.
10141 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
10142 (add_address_entry_worker, write_one_signatured_type)
10143 (recursively_count_psymbols, recursively_write_psymbols)
10144 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
10145 (write_debug_names): Likewise.
10146 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
10147 <pst>: Now a legacy_psymtab.
10148 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
10149 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
10150 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
10151 * ctfread.c (struct ctf_psymtab): New.
10152 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
10153 ctf_psymtab.
10154 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
10155 (create_partial_symtab): Return a ctf_psymtab.
10156 (scan_partial_symbols): Update.
10157
c3693a1d
TT
101582020-01-26 Tom Tromey <tom@tromey.com>
10159
10160 * xcoffread.c (xcoff_start_psymtab): Use new.
10161 * psymtab.c (partial_symtab::partial_symtab): New constructor,
10162 renamed from start_psymtab_common.
10163 * psympriv.h (struct partial_symtab): Add new constructor.
10164 (start_psymtab_common): Don't declare.
10165 * mdebugread.c (parse_partial_symbols): Use new.
10166 * dwarf2read.c (create_partial_symtab): Use new.
10167 * dbxread.c (start_psymtab): Use new.
10168 * ctfread.c (create_partial_symtab): Use new.
10169
32caafd0
TT
101702020-01-26 Tom Tromey <tom@tromey.com>
10171
10172 * xcoffread.c (xcoff_end_psymtab): Use new.
10173 * psymtab.c (start_psymtab_common): Use new.
10174 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
10175 Update.
10176 * psympriv.h (struct partial_symtab): Add parameters to
10177 constructor. Don't inline.
10178 (allocate_psymtab): Don't declare.
10179 * mdebugread.c (new_psymtab): Use new.
10180 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
10181 * dbxread.c (dbx_end_psymtab): Use new.
10182
abaa2f23
TT
101832020-01-26 Tom Tromey <tom@tromey.com>
10184
10185 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
10186 allocate_psymtab. Update documentation.
10187 * psymtab.c (psymtab_storage::install_psymtab): Rename from
10188 allocate_psymtab. Do not use new.
10189 (allocate_psymtab): Use new. Update.
10190
6d94535f
TT
101912020-01-26 Tom Tromey <tom@tromey.com>
10192
10193 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
10194 * psymtab.c (psym_print_stats): Update.
10195 * psympriv.h (struct partial_symtab) <readin,
10196 psymtabs_addrmap_supported, anonymous>: Now bool.
10197 * mdebugread.c (psymtab_to_symtab_1): Update.
10198 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
10199 (build_type_psymtabs_reader, psymtab_to_symtab_1)
10200 (process_full_comp_unit, process_full_type_unit): Update.
10201 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
10202 * ctfread.c (psymtab_to_symtab): Update.
10203
6f17252b
TT
102042020-01-26 Tom Tromey <tom@tromey.com>
10205
10206 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
10207 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
10208 * psymtab.c (psymtab_storage): Delete psymtabs.
10209 (psymtab_storage::allocate_psymtab): Use new.
10210 (psymtab_storage::discard_psymtab): Use delete.
10211 * psympriv.h (struct partial_symtab): Add constructor and
10212 initializers.
10213
f6f1cebc
TT
102142020-01-26 Tom Tromey <tom@tromey.com>
10215
10216 * machoread.c: Do not include psympriv.h.
10217
e47e48f6
PW
102182020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10219
10220 * NEWS: Mention the new option and the set/show commands.
10221
a2fedca9
PW
102222020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10223
10224 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
10225 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
10226 (validate_exec_file): New variables, enums, functions.
10227 (exec_file_locate_attach, print_section_info): Style the filenames.
10228 (_initialize_exec): Install show_exec_file_mismatch_command and
10229 set_exec_file_mismatch_command.
10230 * gdbcore.h (validate_exec_file): Declare.
10231 * infcmd.c (attach_command): Call validate_exec_file.
10232 * remote.c ( remote_target::remote_add_inferior): Likewise.
10233
7ffa82e1
AB
102342020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10235
10236 * frame.c (find_frame_sal): Move call to get_next_frame into more
10237 inner scope.
10238 * inline-frame.c (inilne_state) <inline_state>: Update argument
10239 types.
10240 (inilne_state) <skipped_symbol>: Rename to...
10241 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
10242 (skip_inline_frames): Build vector of skipped symbols and use this
10243 to reate the inline_state.
10244 (inline_skipped_symbol): Add a comment and some assertions, fetch
10245 skipped symbol from the list.
10246
3d92a3e3
AB
102472020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10248
10249 * buildsym.c (lte_is_less_than): Delete.
10250 (buildsym_compunit::end_symtab_with_blockvector): Create local
10251 lambda function to sort line table entries, and use
10252 std::stable_sort instead of std::sort.
10253 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
10254 markers when looking for a previous line.
10255
94a72be7
AB
102562020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10257
10258 * dwarf2read.c (lnp_state_machine::record_line): Include
10259 end_sequence parameter in debug print out. Record the line if we
10260 are at an end_sequence marker even if it's not the start of a
10261 statement.
10262 * symmisc.c (maintenance_print_one_line_table): Print end of
10263 sequence markers with 'END' not '0'.
10264
53af73bf
PA
102652020-01-24 Pedro Alves <palves@redhat.com>
10266
10267 PR gdb/25410
10268 * thread.c (scoped_restore_current_thread::restore): Use
10269 switch_to_inferior_no_thread.
10270 * exec.c: Include "progspace-and-thread.h".
10271 (add_target_sections, remove_target_sections):
10272 scoped_restore_current_pspace_and_thread instead of
10273 scoped_restore_current_thread.
10274 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
10275 and aspace to the inferior before calling clone_program_space.
10276 Remove stale comment.
10277
3050c6f4
CB
102782020-01-24 Christian Biesinger <cbiesinger@google.com>
10279
10280 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
10281 (arm_netbsd_nat_target::fetch_registers): ...this.
10282 (arm_nbsd_nat_target::store_registers): Rename to...
10283 (arm_netbsd_nat_target::store_registers): ...this.
10284
73685c7e
CB
102852020-01-24 Christian Biesinger <cbiesinger@google.com>
10286
10287 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
10288 register_t.
10289
89203d40
CB
102902020-01-24 Christian Biesinger <cbiesinger@google.com>
10291
10292 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
10293 Update comment.
10294 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
10295 Likewise.
10296 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
10297 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
10298 the correct replacement (iterate_over_regset_sections).
10299 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
10300 Update comment.
10301
1ba1ac88
AB
103022020-01-24 Graham Markall <graham.markall@embecosm.com>
10303
10304 PR gdb/23718
10305 * gdb/python/python.c (execute_gdb_command): Call
10306 async_enable_stdin in catch block.
10307
f3364a6d
AB
103082020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10309
10310 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
10311 SWITCH_THRU_ALL_UIS.
10312
733d0a67
AB
103132020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10314
10315 PR tui/9765
10316 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
10317 comment, add extra parameter, and update to store previous symbol
10318 when appropriate.
10319 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
10320 add extra parameter.
10321 * tui/tui-disasm.c (tui_disassemble): Update header comment,
10322 remove unneeded parameter, add try/catch around gdb_print_insn,
10323 rewrite to add items to asm_lines vector.
10324 (tui_find_backward_disassembly_start_address): New function.
10325 (tui_find_disassembly_address): Updated throughout.
10326 (tui_disasm_window::set_contents): Update for changes to
10327 tui_disassemble.
10328 (tui_disasm_window::do_scroll_vertical): No need to adjust the
10329 number of lines to scroll.
10330
b3b3bada
SM
103312020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
10332
10333 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
10334 (SECT_OFF_DATA): Likewise.
10335 (SECT_OFF_RODATA): Likewise.
10336 (SECT_OFF_TEXT): Likewise.
10337 (SECT_OFF_BSS): Likewise.
10338 (struct objfile) <text_section_offset, data_section_offset>: New
10339 methods.
10340 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
10341 objfile::text_section_offset.
10342 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
10343 * coffread.c (coff_symtab_read): Likewise.
10344 (enter_linenos): Likewise.
10345 (process_coff_symbol): Likewise.
10346 * ctfread.c (get_objfile_text_range): Likewise.
10347 * dtrace-probe.c (dtrace_probe::get_relocated_address):
10348 Use objfile::data_section_offset.
10349 * dwarf2-frame.c (execute_cfa_program): Use
10350 objfile::text_section_offset.
10351 (dwarf2_frame_find_fde): Likewise.
10352 * dwarf2read.c (create_addrmap_from_index): Likewise.
10353 (create_addrmap_from_aranges): Likewise.
10354 (dw2_find_pc_sect_compunit_symtab): Likewise.
10355 (process_psymtab_comp_unit_reader): Likewise.
10356 (add_partial_symbol): Likewise.
10357 (add_partial_subprogram): Likewise.
10358 (process_full_comp_unit): Likewise.
10359 (read_file_scope): Likewise.
10360 (read_func_scope): Likewise.
10361 (read_lexical_block_scope): Likewise.
10362 (read_call_site_scope): Likewise.
10363 (dwarf2_rnglists_process): Likewise.
10364 (dwarf2_ranges_process): Likewise.
10365 (dwarf2_ranges_read): Likewise.
10366 (dwarf_decode_lines_1): Likewise.
10367 (new_symbol): Likewise.
10368 (dwarf2_fetch_die_loc_sect_off): Likewise.
10369 (dwarf2_per_cu_text_offset): Likewise.
10370 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
10371 * hppa-tdep.c (read_unwind_info): Likewise.
10372 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
10373 * psympriv.h (struct partial_symtab): Likewise.
10374 * psymtab.c (find_pc_sect_psymtab): Likewise.
10375 * solib-svr4.c (enable_break): Likewise.
10376 * stap-probe.c (relocate_address): Use
10377 objfile::data_section_offset.
10378 * xcoffread.c (enter_line_range): Use
10379 objfile::text_section_offset.
10380 (read_xcoff_symtab): Likewise.
10381
ab53f382
SM
103822020-01-23 Simon Marchi <simon.marchi@efficios.com>
10383
10384 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
10385 declaration to narrower scopes.
10386
e7eee665
SM
103872020-01-23 Simon Marchi <simon.marchi@efficios.com>
10388
10389 * darwin-nat.h (struct darwin_exception_msg, enum
10390 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
10391 Move up.
10392 (class darwin_nat_target) <wait_1, check_new_threads,
10393 decode_exception_message, decode_message, stop_inferior,
10394 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
10395 * darwin-nat.c (darwin_check_new_threads): Rename to...
10396 (darwin_nat_target::check_new_threads): ... this.
10397 (darwin_suspend_inferior_it): Remove.
10398 (darwin_decode_exception_message): Rename to...
10399 (darwin_nat_target::decode_exception_message): ... this.
10400 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
10401 (darwin_decode_message): Rename to...
10402 (darwin_nat_target::decode_message): ... this.
10403 (cancel_breakpoint): Rename to...
10404 (darwin_nat_target::cancel_breakpoint): ... this.
10405 (darwin_wait): Rename to...
10406 (darwin_nat_target::wait_1): ... this. Use range-based for loop
10407 instead of iterate_over_inferiors.
10408 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
10409 (darwin_stop_inferior): Rename to...
10410 (darwin_nat_target::stop_inferior): ... this.
10411 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
10412 (darwin_init_thread_list): Rename to...
10413 (darwin_nat_target::init_thread_list): ... this.
10414 (darwin_ptrace_him): Rename to...
10415 (darwin_nat_target::ptrace_him): ... this.
10416 (darwin_nat_target::create_inferior): Pass lambda function to
10417 fork_inferior.
10418 (darwin_nat_target::detach): Call stop_inferior instead of
10419 darwin_stop_inferior.
10420 * fork-inferior.h (fork_inferior): Change init_trace_fun
10421 parameter to gdb::function_view.
10422 * fork-inferior.c (fork_inferior): Likewise.
10423
c162ed3e
HD
104242020-01-23 Hannes Domani <ssbssa@yahoo.de>
10425
10426 * i386-cygwin-tdep.c (core_process_module_section): Update.
10427 * windows-nat.c (struct lm_info_windows): Add text_offset.
10428 (windows_xfer_shared_libraries): Update.
10429 * windows-tdep.c (windows_xfer_shared_library):
10430 Add text_offset_cached argument.
10431 * windows-tdep.h (windows_xfer_shared_library): Update.
10432
a1237872
SM
104332020-01-21 Simon Marchi <simon.marchi@efficios.com>
10434
10435 * gdbarch.sh: Add declaration for _initialize_gdbarch.
10436
b3ee6dd9
SM
104372020-01-21 Simon Marchi <simon.marchi@efficios.com>
10438
10439 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
10440 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
10441 replace with range-based for.
10442 (gdbsim_interrupt_inferior): Remove.
10443 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
10444 with a range-based for. Inline code from
10445 gdbsim_interrupt_inferior.
10446
f9fac3c8
SM
104472020-01-21 Simon Marchi <simon.marchi@efficios.com>
10448
10449 * infrun.c (proceed): Fix indentation.
10450
f6474de9
TT
104512020-01-21 Tom Tromey <tromey@adacore.com>
10452
10453 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
10454 * python/python.c (python_extension_ops): Update.
10455 (gdbpy_colorize): New function.
10456 * python/lib/gdb/__init__.py (colorize): New function.
10457 * extension.h (ext_lang_colorize): Declare.
10458 * extension.c (ext_lang_colorize): New function.
10459 * extension-priv.h (struct extension_language_ops) <colorize>: New
10460 member.
10461 * cli/cli-style.c (_initialize_cli_style): Update help text.
10462
f0c702d4
LM
104632020-01-21 Luis Machado <luis.machado@linaro.org>
10464
10465 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
10466 <cond>: Change type to bool.
10467 (aarch64_displaced_step_b_cond): Update cond to use bool type.
10468 (aarch64_displaced_step_cb): Likewise.
10469 (aarch64_displaced_step_tb): Likewise.
10470
1ab139e5
LM
104712020-01-21 Luis Machado <luis.machado@linaro.org>
10472
10473 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
10474 output.
10475
0c271889
LM
104762020-01-21 Luis Machado <luis.machado@linaro.org>
10477
10478 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
10479 <pc_adjust>: Adjust the documentation.
10480 (aarch64_displaced_step_fixup): Check if PC really moved before
10481 adjusting it.
10482
4d89c1c7
TT
104832020-01-19 Tom Tromey <tom@tromey.com>
10484
10485 * disasm.c (~gdb_disassembler): New destructor.
10486 (gdb_buffered_insn_length): Call disassemble_free_target.
10487 * disasm.h (class gdb_disassembler): Declare destructor. Use
10488 DISABLE_COPY_AND_ASSIGN.
10489
c0ab21c2
TT
104902020-01-19 Tom Tromey <tom@tromey.com>
10491
10492 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
10493 (die_reader_func_ftype): Remove.
10494 (cutu_reader): New class.
10495 (dw2_get_file_names_reader): Remove "data" parameter.
10496 (dw2_get_file_names): Use cutu_reader.
10497 (create_debug_type_hash_table): Update.
10498 (read_cutu_die_from_dwo): Update comment.
10499 (lookup_dwo_unit): Add dwo_name parameter.
10500 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
10501 die_reader_func_ftype and data parameters.
10502 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
10503 Remove die_reader_func_ftype and data parameters.
10504 (~cutu_reader): New; from init_cutu_and_read_dies.
10505 (cutu_reader::cutu_reader): Rename from
10506 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
10507 and data parameters.
10508 (init_cutu_and_read_dies_simple): Remove.
10509 (struct process_psymtab_comp_unit_data): Remove.
10510 (process_psymtab_comp_unit_reader): Remove data parameter; add
10511 want_partial_unit and pretend_language parameters.
10512 (process_psymtab_comp_unit): Use cutu_reader.
10513 (build_type_psymtabs_reader): Remove data parameter.
10514 (build_type_psymtabs_1): Use cutu_reader.
10515 (process_skeletonless_type_unit): Likewise.
10516 (load_partial_comp_unit_reader): Remove.
10517 (load_partial_comp_unit): Use cutu_reader.
10518 (load_full_comp_unit_reader): Remove.
10519 (load_full_comp_unit): Use cutu_reader.
10520 (struct create_dwo_cu_data): Remove.
10521 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
10522 dwo_unit parameters.
10523 (create_cus_hash_table): Use cutu_reader.
10524 (struct dwarf2_read_addr_index_data): Remove.
10525 (dwarf2_read_addr_index_reader): Remove.
10526 (dwarf2_read_addr_index): Use cutu_reader.
10527 (read_signatured_type_reader): Remove.
10528 (read_signatured_type): Use cutu_reader.
10529
45bbae5c
TT
105302020-01-19 Tom Tromey <tom@tromey.com>
10531
10532 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
10533 * tui/tui-wingeneral.h (class tui_suppress_output): New.
10534 (tui_wrefresh): Declare.
10535 * tui/tui-wingeneral.c (suppress_output): New global.
10536 (tui_suppress_output, ~tui_suppress_output): New constructor and
10537 destructor.
10538 (tui_wrefresh): New function.
10539 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
10540 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
10541 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
10542 method.
10543 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
10544 tui_wrefresh.
10545 (tui_data_window::no_refresh): New method.
10546 (tui_data_item_window::refresh_window): Call tui_wrefresh.
10547 (tui_reg_command): Use tui_suppress_output
10548 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
10549 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
10550 method.
10551 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
10552
4f13c1c0
TT
105532020-01-19 Tom Tromey <tom@tromey.com>
10554
10555 * tui/tui-winsource.c (tui_update_source_windows_with_line):
10556 Handle case where symtab is null.
10557
fa47e446
SM
105582020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
10559
10560 * linux-fork.c (one_fork_p): Simplify.
10561
26f42329
SM
105622020-01-17 Simon Marchi <simon.marchi@efficios.com>
10563
10564 * top.c (struct qt_args): Remove.
10565 (kill_or_detach): Change return type to void, replace `void *`
10566 parameter with a proper one.
10567 (print_inferior_quit_action): Likewise.
10568 (quit_confirm): Use range-based for loop to iterate over inferiors.
10569 (quit_force): Likewise.
10570
a9ac81b1
SM
105712020-01-17 Simon Marchi <simon.marchi@efficios.com>
10572
10573 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
10574 `void *` parameter with proper parameters.
10575 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
10576 (print_one_inferior): Change return type to void, replace `void *`
10577 parameter with proper parameters.
10578 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
10579 inferiors.
10580 (get_other_inferior): Remove.
10581 (mi_cmd_remove_inferior): Use range-based loop to iterate over
10582 inferiors.
10583
788eca49
SM
105842020-01-17 Simon Marchi <simon.marchi@efficios.com>
10585
10586 * mi/mi-interp.c (report_initial_inferior): Remove.
10587 (mi_interp::init): Use range-based for to iterate over inferiors.
10588
d9bc85b6
SM
105892020-01-17 Simon Marchi <simon.marchi@efficios.com>
10590
10591 * python/py-inferior.c (build_inferior_list): Remove.
10592 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
10593
40c94099
CB
105942020-01-16 Christian Biesinger <cbiesinger@google.com>
10595
10596 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
10597 (btrace_stitch_trace): Likewise.
10598 * charset.c (intermediate_encoding): Likewise (vaild).
10599 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
10600 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
10601 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
10602
e0cdfe3c
HD
106032020-01-16 Hannes Domani <ssbssa@yahoo.de>
10604
10605 * windows-tdep.c (windows_get_tlb_type):
10606 Add rtl_user_process_parameters type.
10607
790f1718 106082020-01-16 Pedro Alves <palves@redhat.com>
aac66a4c 10609 Norbert Lange <nolange79@gmail.com>
790f1718
PA
10610
10611 PR build/24805
10612 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
10613 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
10614 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
10615 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
10616 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
10617 (ps_plog): Redeclare exported functions with default visibility.
10618
3112ed97
NA
106192020-01-16 Nitika Achra <Nitika.Achra@amd.com>
10620
10621 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
10622 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
10623
8dc3273e
SM
106242020-01-15 Simon Marchi <simon.marchi@efficios.com>
10625
10626 * infcmd.c (post_create_inferior): Use get_thread_regcache
10627 instead of get_current_regcache.
10628
ff47f4f0
TT
106292020-01-14 Tom Tromey <tom@tromey.com>
10630
10631 PR symtab/12535:
10632 * python/python.c (gdbpy_decode_line): Treat empty string the same
10633 as no argument.
10634
975f45b7
TT
106352020-01-14 Tom Tromey <tom@tromey.com>
10636
10637 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
10638
25e57356
TT
106392020-01-14 Tom Tromey <tom@tromey.com>
10640
10641 * nat/linux-btrace.c: Don't include <config.h>.
10642 * nat/linux-ptrace.c: Don't include <config.h>.
10643 * nat/x86-linux-dregs.c: Don't include <config.h>.
10644
05ea2a05
TT
106452020-01-14 Tom Tromey <tom@tromey.com>
10646
10647 * configure: Rebuild.
10648 * configure.ac: Move many checks to ../gdbsupport/common.m4.
10649
01027315
TT
106502020-01-14 Tom Tromey <tom@tromey.com>
10651
10652 * nat/x86-linux-dregs.c: Include configh.h.
10653 * nat/linux-ptrace.c: Include configh.h.
10654 * nat/linux-btrace.c: Include configh.h.
10655 * defs.h: Include config.h, bfd.h.
10656 * configure.ac: Don't source common.host.
10657 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
10658 * configure: Rebuild.
10659 * acinclude.m4: Update path.
10660 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
10661 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
10662 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
10663 (CLIBS): Add LIBSUPPORT.
10664 (CDEPS): Likewise.
10665 (COMMON_SFILES): Remove gdbsupport files.
10666 (HFILES_NO_SRCDIR): Likewise.
10667 (stamp-version): Update path to create-version.sh.
10668 (ALLDEPFILES): Remove gdbsupport files.
10669
b2ceabe8
TT
106702020-01-14 Tom Tromey <tom@tromey.com>
10671
10672 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
10673 USE_WIN32API when needed.
10674 * configure.ac (USE_WIN32API): Don't define.
10675 (WIN32LIBS): Use WIN32APILIBS.
10676 * configure: Rebuild.
10677
25c51f71
TT
106782020-01-14 Tom Tromey <tom@tromey.com>
10679
10680 * configure: Rebuild.
10681 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
10682
717c684d
BE
106832020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
10684
10685 * skip.c (skip_function_command): Make skip w/o arguments use the
10686 name of the inlined function if pc is inside any inlined function.
10687
7da6a5b9
LM
106882020-01-14 Luis Machado <luis.machado@linaro.org>
10689
10690 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
10691 * infrun.c (resume_1): Likewise.
10692 (handle_inferior_event): Remove stale comment.
10693 * linux-nat.c (linux_nat_target::resume): Update comments.
10694 (save_stop_reason): Likewise.
10695 (linux_nat_filter_event): Likewise.
10696 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
10697
44e4c775
AB
106982020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
10699
10700 * elfread.c (record_minimal_symbol): Set section index to 0 for
10701 non-allocatable sections.
10702
18a8505e
AT
10703
107042020-01-13 Ali Tamur <tamur@google.com>
10705
10706 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
10707 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
10708 to gdb::optional. Update comments.
10709 (dwo_file): Update comments.
10710 (read_attribute): Update API to take an additional out parameter,
10711 need_reprocess. This is used to mark attributes that need other
10712 attributes (e.g. str_offsets_base) for correct computation which may not
10713 have been read yet.
10714 (read_attribute_reprocess): New function declaration.
10715 (read_addr_index): Likewise.
10716 (read_dwo_str_index): Likewise.
10717 (read_stub_str_index): Likewise.
10718 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
10719 (lookup_addr_base): New function definition.
10720 (lookup_ranges_base): Likewise.
10721 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
10722 lookup_ranges_base.
10723 (init_cutu_and_read_dies): Update comments.
10724 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
10725 unit. This is used to inherit parent's str_offsets_base and addr_base.
10726 Update comments.
10727 (init_cutu_and_read_dies_simple): Reflect API changes.
10728 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
10729 (create_cus_hash_table): Change API to take parent compile unit.
10730 Reflect API changes.
10731 (open_and_init_dwo_file): Reflect API changes.
10732 (dwarf2_get_pc_bounds): Update comments.
10733 (dwarf2_record_block_ranges): Likewise.
10734 (read_full_die_1): Change implementation to reprocess attributes that
10735 need str_offsets_base and addr_base.
10736 (partial_die_info::read): Likewise.
10737 (read_attribute_reprocess): New function definition.
10738 (read_attribute_value): Change API to take an additional out parameter,
10739 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
10740 when a non-dwo compile unit has index based attributes.
10741 (read_attribute): Reflect API changes.
10742 (read_addr_index_1): Reflect API changes. Update comments.
10743 (dwarf2_read_addr_index_data): Reflect API changes.
10744 (dwarf2_read_addr_index): Likewise.
10745 (read_str_index): Change API and implementation. This becomes a helper
10746 to be used by the new string index related methods. Update error
10747 message and comments.
10748 (read_dwo_str_index): New function definition.
10749 (read_stub_str_index): Likewise.
10750 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
10751 * symfile.h (dwarf2_debug_sections): Likewise.
10752 * xcoffread.c (dwarf2_debug_sections): Likewise.
10753
0cac9354
SM
107542020-01-13 Simon Marchi <simon.marchi@efficios.com>
10755
10756 * gdbcore.h (struct core_fns) <core_read_registers>: Change
10757 core_reg_sect type to gdb_byte *.
10758 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
10759 * cris-tdep.c (fetch_core_registers): Likewise.
10760 * corelow.c (core_target::get_core_register_section): Change
10761 type of `contents` to gdb::byte_vector.
10762
9a6d629c
AB
107632020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
10764
10765 * tui/tui-wingeneral.c (box_win): Position the title in the center
10766 of the border.
10767
d8b2f9e3
SM
107682020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
10769
10770 * corelow.c (core_target::get_core_register_section): Use
10771 std::vector instead of alloca.
10772
bb564c58
SM
107732020-01-13 Simon Marchi <simon.marchi@efficios.com>
10774
10775 * warning.m4: Add -Wmissing-declarations to build_warnings.
10776 * configure: Re-generate.
10777
6b366111
SM
107782020-01-13 Simon Marchi <simon.marchi@efficios.com>
10779
10780 * python/python.c (init__gdb_module): Add declaration.
10781
6c265988
SM
107822020-01-13 Simon Marchi <simon.marchi@efficios.com>
10783
10784 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
10785 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
10786 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
10787 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
10788 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
10789 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
10790 * ada-exp.y (_initialize_ada_exp): Add declaration.
10791 * ada-lang.c (_initialize_ada_language): Add declaration.
10792 * ada-tasks.c (_initialize_tasks): Add declaration.
10793 * agent.c (_initialize_agent): Add declaration.
10794 * aix-thread.c (_initialize_aix_thread): Add declaration.
10795 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
10796 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
10797 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
10798 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
10799 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
10800 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
10801 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
10802 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
10803 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
10804 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
10805 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
10806 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
10807 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
10808 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
10809 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
10810 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
10811 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
10812 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
10813 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
10814 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
10815 * annotate.c (_initialize_annotate): Add declaration.
10816 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
10817 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
10818 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
10819 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
10820 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
10821 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
10822 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
10823 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
10824 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
10825 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
10826 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
10827 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
10828 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
10829 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
10830 * auto-load.c (_initialize_auto_load): Add declaration.
10831 * auxv.c (_initialize_auxv): Add declaration.
10832 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
10833 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
10834 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
10835 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
10836 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
10837 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
10838 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
10839 * breakpoint.c (_initialize_breakpoint): Add declaration.
10840 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
10841 * btrace.c (_initialize_btrace): Add declaration.
10842 * charset.c (_initialize_charset): Add declaration.
10843 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
10844 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
10845 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
10846 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
10847 * cli/cli-script.c (_initialize_cli_script): Add declaration.
10848 * cli/cli-style.c (_initialize_cli_style): Add declaration.
10849 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
10850 * coffread.c (_initialize_coffread): Add declaration.
10851 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
10852 * compile/compile.c (_initialize_compile): Add declaration.
10853 * complaints.c (_initialize_complaints): Add declaration.
10854 * completer.c (_initialize_completer): Add declaration.
10855 * copying.c (_initialize_copying): Add declaration.
10856 * corefile.c (_initialize_core): Add declaration.
10857 * corelow.c (_initialize_corelow): Add declaration.
10858 * cp-abi.c (_initialize_cp_abi): Add declaration.
10859 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
10860 * cp-support.c (_initialize_cp_support): Add declaration.
10861 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
10862 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
10863 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
10864 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
10865 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
10866 * ctfread.c (_initialize_ctfread): Add declaration.
10867 * d-lang.c (_initialize_d_language): Add declaration.
10868 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
10869 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
10870 * dbxread.c (_initialize_dbxread): Add declaration.
10871 * dcache.c (_initialize_dcache): Add declaration.
10872 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
10873 * disasm.c (_initialize_disasm): Add declaration.
10874 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
10875 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
10876 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
10877 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
10878 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
10879 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
10880 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
10881 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
10882 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
10883 * elfread.c (_initialize_elfread): Add declaration.
10884 * exec.c (_initialize_exec): Add declaration.
10885 * extension.c (_initialize_extension): Add declaration.
10886 * f-lang.c (_initialize_f_language): Add declaration.
10887 * f-valprint.c (_initialize_f_valprint): Add declaration.
10888 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
10889 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
10890 * filesystem.c (_initialize_filesystem): Add declaration.
10891 * findcmd.c (_initialize_mem_search): Add declaration.
10892 * findvar.c (_initialize_findvar): Add declaration.
10893 * fork-child.c (_initialize_fork_child): Add declaration.
10894 * frame-base.c (_initialize_frame_base): Add declaration.
10895 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
10896 * frame.c (_initialize_frame): Add declaration.
10897 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
10898 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
10899 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
10900 * gcore.c (_initialize_gcore): Add declaration.
10901 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
10902 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
10903 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
10904 * gdbarch.c (_initialize_gdbarch): Add declaration.
10905 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
10906 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
10907 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
10908 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
10909 * go-lang.c (_initialize_go_language): Add declaration.
10910 * go32-nat.c (_initialize_go32_nat): Add declaration.
10911 * guile/guile.c (_initialize_guile): Add declaration.
10912 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
10913 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
10914 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
10915 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
10916 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
10917 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
10918 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
10919 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
10920 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
10921 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
10922 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
10923 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
10924 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
10925 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
10926 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
10927 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
10928 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
10929 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
10930 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
10931 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
10932 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
10933 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
10934 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
10935 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
10936 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
10937 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
10938 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
10939 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
10940 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
10941 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
10942 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
10943 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
10944 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
10945 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
10946 * infcall.c (_initialize_infcall): Add declaration.
10947 * infcmd.c (_initialize_infcmd): Add declaration.
10948 * inflow.c (_initialize_inflow): Add declaration.
10949 * infrun.c (_initialize_infrun): Add declaration.
10950 * interps.c (_initialize_interpreter): Add declaration.
10951 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
10952 * jit.c (_initialize_jit): Add declaration.
10953 * language.c (_initialize_language): Add declaration.
10954 * linux-fork.c (_initialize_linux_fork): Add declaration.
10955 * linux-nat.c (_initialize_linux_nat): Add declaration.
10956 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
10957 * linux-thread-db.c (_initialize_thread_db): Add declaration.
10958 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
10959 * m2-lang.c (_initialize_m2_language): Add declaration.
10960 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
10961 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
10962 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
10963 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
10964 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
10965 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
10966 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
10967 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
10968 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
10969 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
10970 * machoread.c (_initialize_machoread): Add declaration.
10971 * macrocmd.c (_initialize_macrocmd): Add declaration.
10972 * macroscope.c (_initialize_macroscope): Add declaration.
10973 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
10974 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
10975 * maint.c (_initialize_maint_cmds): Add declaration.
10976 * mdebugread.c (_initialize_mdebugread): Add declaration.
10977 * memattr.c (_initialize_mem): Add declaration.
10978 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
10979 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
10980 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
10981 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
10982 * mi/mi-main.c (_initialize_mi_main): Add declaration.
10983 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
10984 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
10985 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
10986 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
10987 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
10988 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
10989 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
10990 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
10991 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
10992 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
10993 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
10994 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
10995 * mipsread.c (_initialize_mipsread): Add declaration.
10996 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
10997 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
10998 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
10999 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
11000 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
11001 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
11002 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
11003 * nto-procfs.c (_initialize_procfs): Add declaration.
11004 * objc-lang.c (_initialize_objc_language): Add declaration.
11005 * observable.c (_initialize_observer): Add declaration.
11006 * opencl-lang.c (_initialize_opencl_language): Add declaration.
11007 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
11008 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
11009 * osabi.c (_initialize_gdb_osabi): Add declaration.
11010 * osdata.c (_initialize_osdata): Add declaration.
11011 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
11012 * parse.c (_initialize_parse): Add declaration.
11013 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
11014 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
11015 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
11016 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
11017 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
11018 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
11019 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
11020 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
11021 * printcmd.c (_initialize_printcmd): Add declaration.
11022 * probe.c (_initialize_probe): Add declaration.
11023 * proc-api.c (_initialize_proc_api): Add declaration.
11024 * proc-events.c (_initialize_proc_events): Add declaration.
11025 * proc-service.c (_initialize_proc_service): Add declaration.
11026 * procfs.c (_initialize_procfs): Add declaration.
11027 * producer.c (_initialize_producer): Add declaration.
11028 * psymtab.c (_initialize_psymtab): Add declaration.
11029 * python/python.c (_initialize_python): Add declaration.
11030 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
11031 * record-btrace.c (_initialize_record_btrace): Add declaration.
11032 * record-full.c (_initialize_record_full): Add declaration.
11033 * record.c (_initialize_record): Add declaration.
11034 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
11035 * regcache.c (_initialize_regcache): Add declaration.
11036 * reggroups.c (_initialize_reggroup): Add declaration.
11037 * remote-notif.c (_initialize_notif): Add declaration.
11038 * remote-sim.c (_initialize_remote_sim): Add declaration.
11039 * remote.c (_initialize_remote): Add declaration.
11040 * reverse.c (_initialize_reverse): Add declaration.
11041 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
11042 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
11043 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
11044 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
11045 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
11046 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
11047 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
11048 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
11049 Add declaration.
11050 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
11051 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
11052 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
11053 * rust-exp.y (_initialize_rust_exp): Add declaration.
11054 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
11055 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
11056 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
11057 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
11058 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
11059 * score-tdep.c (_initialize_score_tdep): Add declaration.
11060 * ser-go32.c (_initialize_ser_dos): Add declaration.
11061 * ser-mingw.c (_initialize_ser_windows): Add declaration.
11062 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
11063 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
11064 * ser-uds.c (_initialize_ser_socket): Add declaration.
11065 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
11066 * serial.c (_initialize_serial): Add declaration.
11067 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
11068 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
11069 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
11070 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
11071 * skip.c (_initialize_step_skip): Add declaration.
11072 * sol-thread.c (_initialize_sol_thread): Add declaration.
11073 * solib-aix.c (_initialize_solib_aix): Add declaration.
11074 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
11075 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
11076 * solib-frv.c (_initialize_frv_solib): Add declaration.
11077 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
11078 * solib-target.c (_initialize_solib_target): Add declaration.
11079 * solib.c (_initialize_solib): Add declaration.
11080 * source-cache.c (_initialize_source_cache): Add declaration.
11081 * source.c (_initialize_source): Add declaration.
11082 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
11083 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
11084 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
11085 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
11086 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
11087 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
11088 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
11089 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
11090 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
11091 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
11092 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
11093 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
11094 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
11095 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
11096 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
11097 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
11098 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
11099 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
11100 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
11101 * stabsread.c (_initialize_stabsread): Add declaration.
11102 * stack.c (_initialize_stack): Add declaration.
11103 * stap-probe.c (_initialize_stap_probe): Add declaration.
11104 * std-regs.c (_initialize_frame_reg): Add declaration.
11105 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
11106 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
11107 * symfile.c (_initialize_symfile): Add declaration.
11108 * symmisc.c (_initialize_symmisc): Add declaration.
11109 * symtab.c (_initialize_symtab): Add declaration.
11110 * target.c (_initialize_target): Add declaration.
11111 * target-connection.c (_initialize_target_connection): Add
11112 declaration.
11113 * target-dcache.c (_initialize_target_dcache): Add declaration.
11114 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
11115 * thread.c (_initialize_thread): Add declaration.
11116 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
11117 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
11118 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
11119 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
11120 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
11121 * tracectf.c (_initialize_ctf): Add declaration.
11122 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
11123 * tracefile.c (_initialize_tracefile): Add declaration.
11124 * tracepoint.c (_initialize_tracepoint): Add declaration.
11125 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
11126 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
11127 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
11128 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
11129 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
11130 * tui/tui-win.c (_initialize_tui_win): Add declaration.
11131 * tui/tui.c (_initialize_tui): Add declaration.
11132 * typeprint.c (_initialize_typeprint): Add declaration.
11133 * ui-style.c (_initialize_ui_style): Add declaration.
11134 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
11135 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
11136 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
11137 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
11138 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
11139 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
11140 * unittests/filtered_iterator-selftests.c
11141 (_initialize_filtered_iterator_selftests): Add declaration.
11142 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
11143 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
11144 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
11145 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
11146 * unittests/main-thread-selftests.c
11147 (_initialize_main_thread_selftests): Add declaration.
11148 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
11149 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
11150 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
11151 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
11152 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
11153 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
11154 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
11155 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
11156 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
11157 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
11158 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
11159 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
11160 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
11161 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
11162 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
11163 declaration.
11164 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
11165 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
11166 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
11167 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
11168 * user-regs.c (_initialize_user_regs): Add declaration.
11169 * utils.c (_initialize_utils): Add declaration.
11170 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
11171 * valops.c (_initialize_valops): Add declaration.
11172 * valprint.c (_initialize_valprint): Add declaration.
11173 * value.c (_initialize_values): Add declaration.
11174 * varobj.c (_initialize_varobj): Add declaration.
11175 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
11176 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
11177 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
11178 * windows-nat.c (_initialize_windows_nat): Add declaration.
11179 (_initialize_check_for_gdb_ini): Add declaration.
11180 (_initialize_loadable): Add declaration.
11181 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
11182 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
11183 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
11184 * xcoffread.c (_initialize_xcoffread): Add declaration.
11185 * xml-support.c (_initialize_xml_support): Add declaration.
11186 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
11187 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
11188 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
11189 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
11190
e2de1eec
SM
111912020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
11192
11193 * regformats/regdat.sh: Generate declaration for init function.
11194
e0037b4c
SM
111952020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
11196
11197 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
11198 up.
11199 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
11200 close_one_inferior>: New methods.
11201 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
11202 pass down target to find_inferior_pid.
11203 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
11204 Pass down target to find_inferior_ptid.
11205 (gdbsim_target::create_inferior): Pass down target to
11206 add_thread_silent.
11207 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
11208 target down to find_inferior_ptid and switch_to_thread.
11209 (gdbsim_target::close): Update to call close_one_inferior.
11210 (struct resume_data): Remove.
11211 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
11212 directly, rather than through a void pointer.
11213 (gdbsim_target::resume): Update to call resume_one_inferior.
11214
58920b5b
SM
112152020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
11216
11217 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
11218
4ec89149
PA
112192020-01-12 Pedro Alves <palves@redhat.com>
11220
11221 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
11222 directly for the current inferior instead of
11223 discard_all_inferiors.
11224 (discard_all_inferiors): Delete.
11225
7c392d1d
TT
112262020-01-11 Tom Tromey <tom@tromey.com>
11227
11228 * tui/tui-wingeneral.c (box_win): Check cli_styling.
11229 * tui/tui-winsource.c (tui_source_window_base::refill): Use
11230 deprecated_safe_get_selected_frame.
11231
d9ebdab7
TBA
112322020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11233
11234 * inferior.c (print_inferior): Switch inferior before printing it.
11235
f3c469b9
PA
112362020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
11237 Pedro Alves <palves@redhat.com>
11238
11239 * progspace-and-thread.c (switch_to_program_space_and_thread):
11240 Assert there's an inferior for PSPACE. Use
11241 switch_to_inferior_no_thread to switch the inferior too.
11242 * progspace.c (program_space::~program_space): Call
11243 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
11244 (program_space::free_all_objfiles): Don't call clear_symtab_users
11245 here.
11246 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
11247
65c574f6
PA
112482020-01-10 Pedro Alves <palves@redhat.com>
11249
11250 * NEWS: Mention multi-target debugging, "info connections", and
11251 "add-inferior -no-connection".
11252
2f4fcf00
PA
112532020-01-10 Pedro Alves <palves@redhat.com>
11254
11255 * infrun.c: Include "target-connection.h".
11256 (check_multi_target_resumption): New.
11257 (proceed): Call it.
11258 * target-connection.c (make_target_connection_string): Make
11259 extern.
11260 * target-connection.h (make_target_connection_string): Declare.
11261
121b3efd
PA
112622020-01-10 Pedro Alves <palves@redhat.com>
11263
11264 * Makefile.in (COMMON_SFILES): Add target-connection.c.
11265 * inferior.c (uiout_field_connection): New function.
11266 (print_inferior): Add new "connection-id" column.
11267 (add_inferior_command): Show connection number/string of added
11268 inferior.
11269 * process-stratum-target.h
11270 (process_stratum_target::connection_string): New virtual method.
11271 (process_stratum_target::connection_number): New field.
11272 * remote.c (remote_target::connection_string): New override.
11273 * target-connection.c: New file.
11274 * target-connection.h: New file.
11275 * target.c (decref_target): Remove process_stratum targets from
11276 the connection list.
11277 (target_stack::push): Add process_stratum targets to the
11278 connection list.
11279
4f837581
PA
112802020-01-10 Pedro Alves <palves@redhat.com>
11281
11282 Revert:
11283 2016-04-12 Pedro Alves <palves@redhat.com>
11284 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
11285 Remove references to name.
11286 * serial.h (struct serial) <name>: Delete.
11287
f4ec508e
PA
112882020-01-10 Pedro Alves <palves@redhat.com>
11289
11290 * gdbarch-selftests.c (register_to_value_test): Remove "target
11291 already pushed" check.
11292
5b6d1e4f
PA
112932020-01-10 Pedro Alves <palves@redhat.com>
11294 John Baldwin <jhb@FreeBSD.org>
11295
11296 * aarch64-linux-nat.c
11297 (aarch64_linux_nat_target::thread_architecture): Adjust.
11298 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
11299 (task_command_1): Likewise.
11300 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
11301 (aix_thread_target::wait, aix_thread_target::fetch_registers)
11302 (aix_thread_target::store_registers)
11303 (aix_thread_target::thread_alive): Adjust.
11304 * amd64-fbsd-tdep.c: Include "inferior.h".
11305 (amd64fbsd_get_thread_local_address): Pass down target.
11306 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
11307 thread's gdbarch instead of target_gdbarch.
11308 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
11309 get_last_target_status.
11310 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
11311 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
11312 inferiors.
11313 (update_inserted_breakpoint_locations): Skip if inferiors with no
11314 execution.
11315 (update_global_location_list): When handling moribund locations,
11316 find representative inferior for location's pspace, and use thread
11317 count of its process_stratum target.
11318 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
11319 * bsd-uthread.c (bsd_uthread_target::wait): Use
11320 as_process_stratum_target and adjust thread_change_ptid and
11321 add_thread calls.
11322 (bsd_uthread_target::update_thread_list): Use
11323 as_process_stratum_target and adjust find_thread_ptid,
11324 thread_change_ptid and add_thread calls.
11325 * btrace.c (maint_btrace_packet_history_cmd): Adjust
11326 find_thread_ptid call.
11327 * corelow.c (add_to_thread_list): Adjust add_thread call.
11328 (core_target_open): Adjust add_thread_silent and thread_count
11329 calls.
11330 (core_target::pid_to_str): Adjust find_inferior_ptid call.
11331 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
11332 * event-top.c (async_disconnect): Pop targets from all inferiors.
11333 * exec.c (add_target_sections): Push exec target on all inferiors
11334 sharing the program space.
11335 (remove_target_sections): Remove the exec target from all
11336 inferiors sharing the program space.
11337 (exec_on_vfork): New.
11338 * exec.h (exec_on_vfork): Declare.
11339 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
11340 Pass it down.
11341 (fbsd_nat_target::update_thread_list): Adjust.
11342 (fbsd_nat_target::resume): Adjust.
11343 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
11344 down.
11345 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
11346 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
11347 get_thread_arch_regcache call.
11348 * fork-child.c (gdb_startup_inferior): Pass target down to
11349 startup_inferior and set_executing.
11350 * gdbthread.h (struct process_stratum_target): Forward declare.
11351 (add_thread, add_thread_silent, add_thread_with_info)
11352 (in_thread_list): Add process_stratum_target parameter.
11353 (find_thread_ptid(inferior*, ptid_t)): New overload.
11354 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
11355 parameter.
11356 (all_threads()): Delete overload.
11357 (all_threads, all_non_exited_threads): Add process_stratum_target
11358 parameter.
11359 (all_threads_safe): Use brace initialization.
11360 (thread_count): Add process_stratum_target parameter.
11361 (set_resumed, set_running, set_stop_requested, set_executing)
11362 (threads_are_executing, finish_thread_state): Add
11363 process_stratum_target parameter.
11364 (switch_to_thread): Use is_current_thread.
11365 * i386-fbsd-tdep.c: Include "inferior.h".
11366 (i386fbsd_get_thread_local_address): Pass down target.
11367 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
11368 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
11369 have_inferiors check.
11370 * inf-ptrace.c (inf_ptrace_target::create_inferior)
11371 (inf_ptrace_target::attach): Adjust.
11372 * infcall.c (run_inferior_call): Adjust.
11373 * infcmd.c (run_command_1): Pass target to
11374 scoped_finish_thread_state.
11375 (proceed_thread_callback): Skip inferiors with no execution.
11376 (continue_command): Rename 'all_threads' local to avoid hiding
11377 'all_threads' function. Adjust get_last_target_status call.
11378 (prepare_one_step): Adjust set_running call.
11379 (signal_command): Use user_visible_resume_target. Compare thread
11380 pointers instead of inferior_ptid.
11381 (info_program_command): Adjust to pass down target.
11382 (attach_command): Mark target's 'thread_executing' flag.
11383 (stop_current_target_threads_ns): New, factored out from ...
11384 (interrupt_target_1): ... this. Switch inferior before making
11385 target calls.
11386 * inferior-iter.h
11387 (struct all_inferiors_iterator, struct all_inferiors_range)
11388 (struct all_inferiors_safe_range)
11389 (struct all_non_exited_inferiors_range): Filter on
11390 process_stratum_target too. Remove explicit.
11391 * inferior.c (inferior::inferior): Push dummy target on target
11392 stack.
11393 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
11394 Add process_stratum_target parameter, and pass it down.
11395 (have_live_inferiors): Adjust.
11396 (switch_to_inferior_and_push_target): New.
11397 (add_inferior_command, clone_inferior_command): Handle
11398 "-no-connection" parameter. Use
11399 switch_to_inferior_and_push_target.
11400 (_initialize_inferior): Mention "-no-connection" option in
11401 the help of "add-inferior" and "clone-inferior" commands.
11402 * inferior.h: Include "process-stratum-target.h".
11403 (interrupt_target_1): Use bool.
11404 (struct inferior) <push_target, unpush_target, target_is_pushed,
11405 find_target_beneath, top_target, process_target, target_at,
11406 m_stack>: New.
11407 (discard_all_inferiors): Delete.
11408 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
11409 (all_inferiors, all_non_exited_inferiors): Add
11410 process_stratum_target parameter.
11411 * infrun.c: Include "gdb_select.h" and <unordered_map>.
11412 (target_last_proc_target): New global.
11413 (follow_fork_inferior): Push target on new inferior. Pass target
11414 to add_thread_silent. Call exec_on_vfork. Handle target's
11415 reference count.
11416 (follow_fork): Adjust get_last_target_status call. Also consider
11417 target.
11418 (follow_exec): Push target on new inferior.
11419 (struct execution_control_state) <target>: New field.
11420 (user_visible_resume_target): New.
11421 (do_target_resume): Call target_async.
11422 (resume_1): Set target's threads_executing flag. Consider resume
11423 target.
11424 (commit_resume_all_targets): New.
11425 (proceed): Also consider resume target. Skip threads of inferiors
11426 with no execution. Commit resumtion in all targets.
11427 (start_remote): Pass current inferior to wait_for_inferior.
11428 (infrun_thread_stop_requested): Consider target as well. Pass
11429 thread_info pointer to clear_inline_frame_state instead of ptid.
11430 (infrun_thread_thread_exit): Consider target as well.
11431 (random_pending_event_thread): New inferior parameter. Use it.
11432 (do_target_wait): Rename to ...
11433 (do_target_wait_1): ... this. Add inferior parameter, and pass it
11434 down.
11435 (threads_are_resumed_pending_p, do_target_wait): New.
11436 (prepare_for_detach): Adjust calls.
11437 (wait_for_inferior): New inferior parameter. Handle it. Use
11438 do_target_wait_1 instead of do_target_wait.
11439 (fetch_inferior_event): Adjust. Switch to representative
11440 inferior. Pass target down.
11441 (set_last_target_status): Add process_stratum_target parameter.
11442 Save target in global.
11443 (get_last_target_status): Add process_stratum_target parameter and
11444 handle it.
11445 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
11446 (context_switch): Check inferior_ptid == null_ptid before calling
11447 inferior_thread().
11448 (get_inferior_stop_soon): Pass down target.
11449 (wait_one): Rename to ...
11450 (poll_one_curr_target): ... this.
11451 (struct wait_one_event): New.
11452 (wait_one): New.
11453 (stop_all_threads): Adjust.
11454 (handle_no_resumed, handle_inferior_event): Adjust to consider the
11455 event's target.
11456 (switch_back_to_stepped_thread): Also consider target.
11457 (print_stop_event): Update.
11458 (normal_stop): Update. Also consider the resume target.
11459 * infrun.h (wait_for_inferior): Remove declaration.
11460 (user_visible_resume_target): New declaration.
11461 (get_last_target_status, set_last_target_status): New
11462 process_stratum_target parameter.
11463 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
11464 process_stratum_target parameter, and use it.
11465 (clear_inline_frame_state (thread_info*)): New.
11466 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
11467 process_stratum_target parameter.
11468 (clear_inline_frame_state (thread_info*)): Declare.
11469 * linux-fork.c (delete_checkpoint_command): Pass target down to
11470 find_thread_ptid.
11471 (checkpoint_command): Adjust.
11472 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
11473 instead of just tweaking inferior_ptid.
11474 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
11475 (exit_lwp): Pass target down to find_thread_ptid.
11476 (attach_proc_task_lwp_callback): Pass target down to
11477 add_thread/set_running/set_executing.
11478 (linux_nat_target::attach): Pass target down to
11479 thread_change_ptid.
11480 (get_detach_signal): Pass target down to find_thread_ptid.
11481 Consider last target status's target.
11482 (linux_resume_one_lwp_throw, resume_lwp)
11483 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
11484 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
11485 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
11486 (linux_nat_target::async_wait_fd): New.
11487 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
11488 target down.
11489 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
11490 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
11491 * linux-thread-db.c (struct thread_db_info::process_target): New
11492 field.
11493 (add_thread_db_info): Save target.
11494 (get_thread_db_info): New process_stratum_target parameter. Also
11495 match target.
11496 (delete_thread_db_info): New process_stratum_target parameter.
11497 Also match target.
11498 (thread_from_lwp): Adjust to pass down target.
11499 (thread_db_notice_clone): Pass down target.
11500 (check_thread_db_callback): Pass down target.
11501 (try_thread_db_load_1): Always push the thread_db target.
11502 (try_thread_db_load, record_thread): Pass target down.
11503 (thread_db_target::detach): Pass target down. Always unpush the
11504 thread_db target.
11505 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
11506 target down. Always unpush the thread_db target.
11507 (find_new_threads_callback, thread_db_find_new_threads_2)
11508 (thread_db_target::update_thread_list): Pass target down.
11509 (thread_db_target::pid_to_str): Pass current inferior down.
11510 (thread_db_target::get_thread_local_address): Pass target down.
11511 (thread_db_target::resume, maintenance_check_libthread_db): Pass
11512 target down.
11513 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
11514 * procfs.c (procfs_target::procfs_init_inferior): Declare.
11515 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
11516 (procfs_init_inferior): Rename to ...
11517 (procfs_target::procfs_init_inferior): ... this and adjust.
11518 (procfs_target::create_inferior, procfs_notice_thread)
11519 (procfs_do_thread_registers): Adjust.
11520 * ppc-fbsd-tdep.c: Include "inferior.h".
11521 (ppcfbsd_get_thread_local_address): Pass down target.
11522 * proc-service.c (ps_xfer_memory): Switch current inferior and
11523 program space as well.
11524 (get_ps_regcache): Pass target down.
11525 * process-stratum-target.c
11526 (process_stratum_target::thread_address_space)
11527 (process_stratum_target::thread_architecture): Pass target down.
11528 * process-stratum-target.h
11529 (process_stratum_target::threads_executing): New field.
11530 (as_process_stratum_target): New.
11531 * ravenscar-thread.c
11532 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
11533 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
11534 down.
11535 * record-btrace.c (record_btrace_target::info_record): Adjust.
11536 (record_btrace_target::record_method)
11537 (record_btrace_target::record_is_replaying)
11538 (record_btrace_target::fetch_registers)
11539 (get_thread_current_frame_id, record_btrace_target::resume)
11540 (record_btrace_target::wait, record_btrace_target::stop): Pass
11541 target down.
11542 * record-full.c (record_full_wait_1): Switch to event thread.
11543 Pass target down.
11544 * regcache.c (regcache::regcache)
11545 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
11546 process_stratum_target parameter and handle it.
11547 (current_thread_target): New global.
11548 (get_thread_regcache): Add process_stratum_target parameter and
11549 handle it. Switch inferior before calling target method.
11550 (get_thread_regcache): Pass target down.
11551 (get_thread_regcache_for_ptid): Pass target down.
11552 (registers_changed_ptid): Add process_stratum_target parameter and
11553 handle it.
11554 (registers_changed_thread, registers_changed): Pass target down.
11555 (test_get_thread_arch_aspace_regcache): New.
11556 (current_regcache_test): Define a couple local test_target_ops
11557 instances and use them for testing.
11558 (readwrite_regcache): Pass process_stratum_target parameter.
11559 (cooked_read_test, cooked_write_test): Pass mock_target down.
11560 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
11561 (get_thread_arch_aspace_regcache): Add process_stratum_target
11562 parameter.
11563 (regcache::target): New method.
11564 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
11565 (regcache::registers_changed_ptid): Add process_stratum_target
11566 parameter.
11567 (regcache::m_target): New field.
11568 (registers_changed_ptid): Add process_stratum_target parameter.
11569 * remote.c (remote_state::supports_vCont_probed): New field.
11570 (remote_target::async_wait_fd): New method.
11571 (remote_unpush_and_throw): Add remote_target parameter.
11572 (get_current_remote_target): Adjust.
11573 (remote_target::remote_add_inferior): Push target.
11574 (remote_target::remote_add_thread)
11575 (remote_target::remote_notice_new_inferior)
11576 (get_remote_thread_info): Pass target down.
11577 (remote_target::update_thread_list): Skip threads of inferiors
11578 bound to other targets. (remote_target::close): Don't discard
11579 inferiors. (remote_target::add_current_inferior_and_thread)
11580 (remote_target::process_initial_stop_replies)
11581 (remote_target::start_remote)
11582 (remote_target::remote_serial_quit_handler): Pass down target.
11583 (remote_target::remote_unpush_target): New remote_target
11584 parameter. Unpush the target from all inferiors.
11585 (remote_target::remote_unpush_and_throw): New remote_target
11586 parameter. Pass it down.
11587 (remote_target::open_1): Check whether the current inferior has
11588 execution instead of checking whether any inferior is live. Pass
11589 target down.
11590 (remote_target::remote_detach_1): Pass down target. Use
11591 remote_unpush_target.
11592 (extended_remote_target::attach): Pass down target.
11593 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
11594 (remote_target::append_resumption): Pass down target.
11595 (remote_target::append_pending_thread_resumptions)
11596 (remote_target::remote_resume_with_hc, remote_target::resume)
11597 (remote_target::commit_resume): Pass down target.
11598 (remote_target::remote_stop_ns): Check supports_vCont_probed.
11599 (remote_target::interrupt_query)
11600 (remote_target::remove_new_fork_children)
11601 (remote_target::check_pending_events_prevent_wildcard_vcont)
11602 (remote_target::remote_parse_stop_reply)
11603 (remote_target::process_stop_reply): Pass down target.
11604 (first_remote_resumed_thread): New remote_target parameter. Pass
11605 it down.
11606 (remote_target::wait_as): Pass down target.
11607 (unpush_and_perror): New remote_target parameter. Pass it down.
11608 (remote_target::readchar, remote_target::remote_serial_write)
11609 (remote_target::getpkt_or_notif_sane_1)
11610 (remote_target::kill_new_fork_children, remote_target::kill): Pass
11611 down target.
11612 (remote_target::mourn_inferior): Pass down target. Use
11613 remote_unpush_target.
11614 (remote_target::core_of_thread)
11615 (remote_target::remote_btrace_maybe_reopen): Pass down target.
11616 (remote_target::pid_to_exec_file)
11617 (remote_target::thread_handle_to_thread_info): Pass down target.
11618 (remote_target::async_wait_fd): New.
11619 * riscv-fbsd-tdep.c: Include "inferior.h".
11620 (riscv_fbsd_get_thread_local_address): Pass down target.
11621 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
11622 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
11623 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
11624 Adjust.
11625 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
11626 * solib-svr4.c (enable_break): Pass down target.
11627 * spu-multiarch.c (parse_spufs_run): Pass down target.
11628 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
11629 * target-delegates.c: Regenerate.
11630 * target.c (g_target_stack): Delete.
11631 (current_top_target): Return the current inferior's top target.
11632 (target_has_execution_1): Refer to the passed-in inferior's top
11633 target.
11634 (target_supports_terminal_ours): Check whether the initial
11635 inferior was already created.
11636 (decref_target): New.
11637 (target_stack::push): Incref/decref the target.
11638 (push_target, push_target, unpush_target): Adjust.
11639 (target_stack::unpush): Defref target.
11640 (target_is_pushed): Return bool. Adjust to refer to the current
11641 inferior's target stack.
11642 (dispose_inferior): Delete, and inline parts ...
11643 (target_preopen): ... here. Only dispose of the current inferior.
11644 (target_detach): Hold strong target reference while detaching.
11645 Pass target down.
11646 (target_thread_name): Add assertion.
11647 (target_resume): Pass down target.
11648 (target_ops::beneath, find_target_at): Adjust to refer to the
11649 current inferior's target stack.
11650 (get_dummy_target): New.
11651 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
11652 has a thread running.
11653 (initialize_targets): Rename to ...
11654 (_initialize_target): ... this.
11655 * target.h: Include "gdbsupport/refcounted-object.h".
11656 (struct target_ops): Inherit refcounted_object.
11657 (target_ops::shortname, target_ops::longname): Make const.
11658 (target_ops::async_wait_fd): New method.
11659 (decref_target): Declare.
11660 (struct target_ops_ref_policy): New.
11661 (target_ops_ref): New typedef.
11662 (get_dummy_target): Declare function.
11663 (target_is_pushed): Return bool.
11664 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
11665 (all_matching_threads_iterator::all_matching_threads_iterator):
11666 Handle filter target.
11667 * thread-iter.h (struct all_matching_threads_iterator, struct
11668 all_matching_threads_range, class all_non_exited_threads_range):
11669 Filter by target too. Remove explicit.
11670 * thread.c (threads_executing): Delete.
11671 (inferior_thread): Pass down current inferior.
11672 (clear_thread_inferior_resources): Pass down thread pointer
11673 instead of ptid_t.
11674 (add_thread_silent, add_thread_with_info, add_thread): Add
11675 process_stratum_target parameter. Use it for thread and inferior
11676 searches.
11677 (is_current_thread): New.
11678 (thread_info::deletable): Use it.
11679 (find_thread_ptid, thread_count, in_thread_list)
11680 (thread_change_ptid, set_resumed, set_running): New
11681 process_stratum_target parameter. Pass it down.
11682 (set_executing): New process_stratum_target parameter. Pass it
11683 down. Adjust reference to 'threads_executing'.
11684 (threads_are_executing): New process_stratum_target parameter.
11685 Adjust reference to 'threads_executing'.
11686 (set_stop_requested, finish_thread_state): New
11687 process_stratum_target parameter. Pass it down.
11688 (switch_to_thread): Also match inferior.
11689 (switch_to_thread): New process_stratum_target parameter. Pass it
11690 down.
11691 (update_threads_executing): Reimplement.
11692 * top.c (quit_force): Pop targets from all inferior.
11693 (gdb_init): Don't call initialize_targets.
11694 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
11695 Declare.
11696 (windows_add_thread, windows_delete_thread): Adjust.
11697 (get_windows_debug_event): Rename to ...
11698 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
11699 * tracefile-tfile.c (tfile_target_open): Pass down target.
11700 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
11701 Forward declare.
11702 (switch_to_thread): Add process_stratum_target parameter.
11703 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
11704 parameter. Use it.
11705 (mi_on_resume): Pass target down.
11706 * nat/fork-inferior.c (startup_inferior): Add
11707 process_stratum_target parameter. Pass it down.
11708 * nat/fork-inferior.h (startup_inferior): Add
11709 process_stratum_target parameter.
11710 * python/py-threadevent.c (py_get_event_thread): Pass target down.
11711
75c6c844
PA
117122020-01-10 Pedro Alves <palves@redhat.com>
11713
11714 * remote.c (remote_target::start_remote): Don't set inferior_ptid
11715 directly. Instead find the first thread in the thread list and
11716 use switch_to_thread.
11717
78f2c40a
PA
117182020-01-10 Pedro Alves <palves@redhat.com>
11719
11720 * remote.c (remote_target::remote_add_inferior): Don't bind a
11721 process to the current inferior if the current inferior is already
11722 bound to a process.
11723
e7af6c70
TBA
117242020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11725 Pedro Alves <palves@redhat.com>
11726
11727 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
11728 If no process is specified, return null_ptid instead of
11729 inferior_ptid.
11730 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
11731 TARGET_WAITKIND_SIGNALLED with no pid.
11732
31ba933e
PA
117332020-01-10 Pedro Alves <palves@redhat.com>
11734
11735 * remote.c (first_remote_resumed_thread): New.
11736 (remote_target::wait_as): Use it as default event_ptid instead of
11737 inferior_ptid.
11738
735fc2ca
PA
117392020-01-10 Pedro Alves <palves@redhat.com>
11740
11741 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
11742
c17e02e1
PA
117432020-01-10 Pedro Alves <palves@redhat.com>
11744
11745 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
11746 not -1.
11747
ab1ddbcf
PA
117482020-01-10 Pedro Alves <palves@redhat.com>
11749
11750 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
11751 ptid to get_last_target_status.
11752 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
11753 ptid to get_last_target_status.
11754 * infcmd.c (continue_command): Don't pass a target_waitstatus to
11755 get_last_target_status.
11756 (info_program_command): Don't pass a target_waitstatus to
11757 get_last_target_status.
11758 * infrun.c (init_wait_for_inferior): Use
11759 nullify_last_target_wait_ptid.
11760 (get_last_target_status): Handle nullptr arguments.
11761 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
11762 (print_stop_event): Don't pass a ptid to get_last_target_status.
11763 (normal_stop): Don't pass a ptid to get_last_target_status.
11764 * infrun.h (get_last_target_status, set_last_target_status): Move
11765 comments here and update.
11766 (nullify_last_target_wait_ptid): Declare.
11767 * linux-fork.c (fork_load_infrun_state): Remove local extern
11768 declaration of nullify_last_target_wait_ptid.
11769 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
11770 to get_last_target_status.
11771
f3f8ece4
PA
117722020-01-10 Pedro Alves <palves@redhat.com>
11773
11774 * gdbthread.h (scoped_restore_current_thread)
11775 <dont_restore, restore, m_dont_restore>: Declare.
11776 * thread.c (thread_alive): Add assertion. Return bool.
11777 (switch_to_thread_if_alive): New.
11778 (prune_threads): Switch inferior/thread.
11779 (print_thread_info_1): Switch thread before calling target methods.
11780 (scoped_restore_current_thread::restore): New, factored out from
11781 ...
11782 (scoped_restore_current_thread::~scoped_restore_current_thread):
11783 ... this.
11784 (scoped_restore_current_thread::scoped_restore_current_thread):
11785 Add assertion.
11786 (thread_apply_all_command, thread_select): Use
11787 switch_to_thread_if_alive.
11788 * infrun.c (proceed, restart_threads, handle_signal_stop)
11789 (switch_back_to_stepped_thread): Switch current thread before
11790 calling target methods.
11791
db2d40f7
PA
117922020-01-10 Pedro Alves <palves@redhat.com>
11793
11794 * inferior.c (switch_to_inferior_no_thread): New function,
11795 factored out from ...
11796 (inferior_command): ... here.
11797 * inferior.h (switch_to_inferior_no_thread): Declare.
11798 * mi/mi-main.c (run_one_inferior): Use
11799 switch_to_inferior_no_thread.
11800
bd420a2d
PA
118012020-01-10 Pedro Alves <palves@redhat.com>
11802
11803 * infcmd.c (kill_command): Remove dead code.
11804
ddf5db90
PA
118052020-01-10 Pedro Alves <palves@redhat.com>
11806
11807 * remote.c (remote_target::mourn_inferior): No longer check
11808 whether the target is running.
11809
5018ce90
PA
118102020-01-10 Pedro Alves <palves@redhat.com>
11811
11812 * corelow.c (core_target::has_execution): Change parameter type to
11813 inferior pointer.
11814 * inferior.c (number_of_live_inferiors): Use
11815 inferior::has_execution instead of target_has_execution_1.
11816 * inferior.h (inferior::has_execution): New.
11817 * linux-thread-db.c (thread_db_target::update_thread_list): Use
11818 inferior::has_execution instead of target_has_execution_1.
11819 * process-stratum-target.c
11820 (process_stratum_target::has_execution): Change parameter type to
11821 inferior pointer. Check the inferior's PID instead of
11822 inferior_ptid.
11823 * process-stratum-target.h
11824 (process_stratum_target::has_execution): Change parameter type to
11825 inferior pointer.
11826 * record-full.c (record_full_core_target::has_execution): Change
11827 parameter type to inferior pointer.
11828 * target.c (target_has_execution_1): Change parameter type to
11829 inferior pointer.
11830 (target_has_execution_current): Adjust.
11831 * target.h (target_ops::has_execution): Change parameter type to
11832 inferior pointer.
11833 (target_has_execution_1): Change parameter type to inferior
11834 pointer. Change return type to bool.
11835 * tracefile.h (tracefile_target::has_execution): Change parameter
11836 type to inferior pointer.
11837
74375d18
PA
118382020-01-10 Pedro Alves <palves@redhat.com>
11839
11840 * exceptions.c (print_flush): Remove current_top_target() check.
11841
acdf84a6
PA
118422020-01-10 Pedro Alves <palves@redhat.com>
11843
11844 * remote.c (show_remote_exec_file): Show the current inferior's
11845 exec-file instead of the command variable's value.
11846
ec506636
PA
118472020-01-10 Pedro Alves <palves@redhat.com>
11848
11849 * record-full.c (record_full_resume_ptid): New global.
11850 (record_full_target::resume): Set it.
11851 (record_full_wait_1): Use record_full_resume_ptid instead of
11852 inferior_ptid.
11853
873657b9
PA
118542020-01-10 Pedro Alves <palves@redhat.com>
11855
11856 * gdbthread.h (scoped_restore_current_thread)
11857 <dont_restore, restore, m_dont_restore>: Declare.
11858 * thread.c (thread_alive): Add assertion. Return bool.
11859 (switch_to_thread_if_alive): New.
11860 (prune_threads): Switch inferior/thread.
11861 (print_thread_info_1): Switch thread before calling target methods.
11862 (scoped_restore_current_thread::restore): New, factored out from
11863 ...
11864 (scoped_restore_current_thread::~scoped_restore_current_thread):
11865 ... this.
11866 (scoped_restore_current_thread::scoped_restore_current_thread):
11867 Add assertion.
11868 (thread_apply_all_command, thread_select): Use
11869 switch_to_thread_if_alive.
11870
7f0ae84c
GB
118712020-01-10 George Barrett <bob@bob131.so>
11872
11873 * stap-probe.c (stap_modify_semaphore): Don't check for null
11874 semaphores.
11875 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
11876 for null semaphores.
11877
f5a7c406
AB
118782020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
11879
11880 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
11881 all source windows, and maintain horizontal scroll status while
11882 doing so.
11883
9ae6bf64
TT
118842020-01-09 Tom Tromey <tom@tromey.com>
11885
11886 PR tui/18932:
11887 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
11888 update_source_window, not print_source_lines.
11889
b2efe70c
AB
118902020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
11891
11892 * tui/tui.c (tui_enable): Register tui hooks after calling
11893 tui_display_main.
11894
5f23a082
CB
118952020-01-09 Christian Biesinger <cbiesinger@google.com>
11896
11897 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
11898
3061113b
SM
118992020-01-08 Simon Marchi <simon.marchi@efficios.com>
11900
11901 * thread.c (print_thread_info_1): Fix indentation.
11902
57d75002
CB
119032020-01-09 Christian Biesinger <cbiesinger@google.com>
11904
11905 * symtab.c (general_symbol_info::compute_and_set_names): Move the
11906 unique_xmalloc_ptr outside the if to always free the demangled name.
11907
6a053cb1
TT
119082020-01-08 Tom Tromey <tromey@adacore.com>
11909
11910 * xcoffread.c (enter_line_range, read_xcoff_symtab)
11911 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
11912 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
11913 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
11914 Remove.
11915 (section_offsets): New typedef.
11916 * symtab.c (fixup_section, get_msymbol_address): Update.
11917 * symmisc.c (dump_msymbols): Update.
11918 * symfile.h (relative_addr_info_to_section_offsets)
11919 (symfile_map_offsets_to_segments): Update.
11920 * symfile.c (build_section_addr_info_from_objfile)
11921 (init_objfile_sect_indices): Update.
11922 (struct place_section_arg): Change type of "offsets".
11923 (place_section): Update.
11924 (relative_addr_info_to_section_offsets): Change type of
11925 "section_offsets". Remove "num_sections" parameter.
11926 (default_symfile_offsets, syms_from_objfile_1)
11927 (set_objfile_default_section_offset): Update.
11928 (reread_symbols): No need to preserve section offsets by hand.
11929 (symfile_map_offsets_to_segments): Change type of "offsets".
11930 * stap-probe.c (relocate_address): Update.
11931 * stabsread.h (process_one_symbol): Update.
11932 * solib-target.c (struct lm_info_target) <offsets>: Change type.
11933 (solib_target_relocate_section_addresses): Update.
11934 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
11935 Update.
11936 * solib-frv.c (frv_relocate_main_executable): Update.
11937 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
11938 * solib-aix.c (solib_aix_get_section_offsets): Change return
11939 type.
11940 (solib_aix_solib_create_inferior_hook): Update.
11941 * remote.c (remote_target::get_offsets): Update.
11942 * psymtab.c (find_pc_sect_psymtab): Update.
11943 * psympriv.h (struct partial_symbol) <address, text_low,
11944 text_high>: Update.
11945 * objfiles.h (obj_section_offset): Update.
11946 (struct objfile) <section_offsets>: Change type.
11947 <num_sections>: Remove.
11948 (objfile_relocate): Update.
11949 * objfiles.c (entry_point_address_query): Update
11950 (relocate_one_symbol): Change type of "section_offsets".
11951 (objfile_relocate1, objfile_relocate1): Change type of
11952 "new_offsets".
11953 (objfile_rebase1): Update.
11954 * mipsread.c (mipscoff_symfile_read): Update.
11955 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
11956 parameter.
11957 * mdebugread.c (parse_symbol): Change type of "section_offsets".
11958 (parse_external, psymtab_to_symtab_1): Update.
11959 * machoread.c (macho_symfile_offsets): Update.
11960 * ia64-tdep.c (ia64_find_unwind_table): Update.
11961 * hppa-tdep.c (read_unwind_info): Update.
11962 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
11963 * dwarf2read.c (create_addrmap_from_index)
11964 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
11965 (process_psymtab_comp_unit_reader, add_partial_symbol)
11966 (add_partial_subprogram, process_full_comp_unit)
11967 (read_file_scope, read_func_scope, read_lexical_block_scope)
11968 (read_call_site_scope, dwarf2_rnglists_process)
11969 (dwarf2_ranges_process, dwarf2_ranges_read)
11970 (dwarf_decode_lines_1, var_decode_location, new_symbol)
11971 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
11972 Update.
11973 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
11974 Update.
11975 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
11976 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
11977 (process_one_symbol): Change type of "section_offsets".
11978 * ctfread.c (get_objfile_text_range): Update.
11979 * coffread.c (coff_symtab_read, enter_linenos)
11980 (process_coff_symbol): Update.
11981 * coff-pe-read.c (add_pe_forwarded_sym): Update.
11982 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
11983
456e800a
TT
119842020-01-08 Tom Tromey <tromey@adacore.com>
11985
11986 * dwarf2read.c (parse_macro_definition): Use std::string.
11987 (parse_macro_definition): Likewise.
11988
6dfa2fc2
TT
119892020-01-08 Tom Tromey <tromey@adacore.com>
11990
11991 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
11992 (ATTR_ALLOC_CHUNK): Remove.
11993
421d1616
TT
119942020-01-08 Tom Tromey <tromey@adacore.com>
11995
11996 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
11997
43816ebc
TT
119982020-01-08 Tom Tromey <tromey@adacore.com>
11999
12000 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
12001 (dwarf2_compute_name, open_dwo_file): Likewise.
12002 (process_enumeration_scope): Use std::vector.
12003 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
12004 (partial_die_info::fixup, dwarf2_start_subfile)
12005 (guess_full_die_structure_name, dwarf2_name): Likewise.
12006 (determine_prefix): Update.
12007 (guess_full_die_structure_name): Make return type const.
12008 (partial_die_full_name): Return unique_xmalloc_ptr.
12009 (DW_FIELD_ALLOC_CHUNK): Remove.
12010
4212d509
TT
120112020-01-07 Tom Tromey <tromey@adacore.com>
12012
12013 PR build/24937:
12014 * stap-probe.c (class stap_static_probe_ops): Add constructor.
12015
06a6207a
JT
120162020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
12017
12018 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
12019
153d79c4
AB
120202020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
12021
12022 * stack.c (print_frame_info): Move disassemble_next_line code
12023 inside source_print block.
12024
66182876
EZ
120252020-01-06 Eli Zaretskii <eliz@gnu.org>
12026
12027 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
12028 gdb/signals.h, as we are now using native signal symbols.
12029
cbfa8581
SV
120302020-01-06 Shahab Vahedi <shahab@synopsys.com>
12031
12032 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
12033 overflow by an early check of content vs threshold.
aac66a4c 12034 * tui/tui-source.c (tui_source_window::line_is_displayed):
cbfa8581
SV
12035 Likewise.
12036
3f602821
EZ
120372020-01-06 Eli Zaretskii <eliz@gnu.org>
12038
12039 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
12040
a08c904d
JT
120412020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
12042
12043 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
12044 export table if no section contains it's RVA.
12045
89a65580
EZ
120462020-01-06 Eli Zaretskii <eliz@gnu.org>
12047
12048 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
12049
8b7fcda2
HD
120502020-01-06 Hannes Domani <ssbssa@yahoo.de>
12051
12052 * source.c (print_source_lines_base): Set last_line_listed.
12053
a61b4f69
SV
120542020-01-06 Shahab Vahedi <shahab@synopsys.com>
12055
12056 * tui/tui-disasm.c: Remove trailing spaces.
12057
559e7e50
EZ
120582020-01-06 Eli Zaretskii <eliz@gnu.org>
12059 Pedro Alves <palves@redhat.com>
12060
12061 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
12062 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
12063 (windows_gdb_signal_to_target): New function, uses the above
12064 enumeration to convert GDB internal signal codes to equivalent
12065 Windows codes.
12066 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
12067 * windows-nat.c: Include "gdb_wait.h".
12068 (get_windows_debug_event): Extract the fatal exception from the
12069 exit status and convert to the equivalent Posix signal number.
12070 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
12071 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
12072 * gdbsupport/gdb_wait.c: New file, implements
12073 windows_status_to_termsig.
12074 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
12075 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
12076
f2302a34
AB
120772020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
12078
12079 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
12080 show_layout.
12081
6a5206eb
LM
120822020-01-05 Luis Machado <luis.machado@linaro.org>
12083
12084 * aarch64-linux-nat.c
12085 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
12086 and bfd_mach_aarch64.
12087
6ec1d75e
PW
120882020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12089
12090 * ui-file.c (stdio_file::can_emit_style_escape)
12091 (tee_file::can_emit_style_escape): Ensure style is used also on
12092 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
12093 to gdb_stdout.
12094 * main.c (set_gdb_data_directory): Use file style to output the
12095 warning that the given pathname is not a directory.
12096 * top.c (show_history_filename, gdb_safe_append_history)
12097 (show_gdb_datadir): Use file style.
12098
44f81a76
HD
120992020-01-03 Hannes Domani <ssbssa@yahoo.de>
12100
12101 * solib-target.c (struct lm_info_target):
12102 Change offsets to be a unique_xmalloc_ptr.
12103 (solib_target_relocate_section_addresses): Update.
12104
25057eb0
HD
121052020-01-03 Hannes Domani <ssbssa@yahoo.de>
12106
12107 * windows-nat.c (windows_clear_solib): Free so_list linked list.
12108
6e2118f5
BE
121092020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
12110
12111 * MAINTAINERS (Write After Approval): Add myself.
12112
8133c7dc
LM
121132020-01-02 Luis Machado <luis.machado@linaro.org>
12114
12115 * proc-service.c (get_ps_regcache): Remove reference to obsolete
12116 Cell BE architecture.
12117 * target.h (struct target_ops) <thread_architecture>: Likewise.
12118
48189bec
HD
121192020-01-01 Hannes Domani <ssbssa@yahoo.de>
12120
12121 * Makefile.in: Use INSTALL_PROGRAM_ENV.
12122
ead1063b
HD
121232020-01-01 Hannes Domani <ssbssa@yahoo.de>
12124
12125 * MAINTAINERS (Write After Approval): Add myself.
12126
e5d78223
JB
121272020-01-01 Joel Brobecker <brobecker@adacore.com>
12128
12129 * gdbarch.sh: Update copyright year range of generated files.
12130
b811d2c2
JB
121312020-01-01 Joel Brobecker <brobecker@adacore.com>
12132
12133 Update copyright year range in all GDB files.
12134
5f4def5c
JB
121352020-01-01 Joel Brobecker <brobecker@adacore.com>
12136
12137 * copyright.py: Convert to Python 3.
12138
51fd4002
JB
121392020-01-01 Joel Brobecker <brobecker@adacore.com>
12140
12141 * copyright.py: Adapt after move of gnulib directory from gdb
12142 directory to toplevel directory.
12143
5fb651f2
JB
121442020-01-01 Joel Brobecker <brobecker@adacore.com>
12145
12146 * copyright.py (main): Exit if run from the wrong directory.
12147
5dd8bf88
JB
121482020-01-01 Joel Brobecker <brobecker@adacore.com>
12149
12150 * top.c (print_gdb_version): Change copyright year to 2020.
12151
9f71dacb 121522020-01-01 Joel Brobecker <brobecker@adacore.com>
3d34df0a 12153
9f71dacb 12154 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
3d34df0a 12155
9f71dacb 12156For older changes see ChangeLog-2019.
c906108c
SS
12157\f
12158Local Variables:
12159mode: change-log
12160left-margin: 8
12161fill-column: 74
12162version-control: never
57da7796 12163coding: utf-8
c906108c 12164End:
This page took 3.542791 seconds and 4 git commands to generate.