]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/ChangeLog
Ensure that compressed sections that have an ELF compression header structure at...
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
33bf4c5c
TBA
12020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2
3 * infrun.c (process_event_stop_test): Fix typo "breapoint".
4
c2fd7fae
AKS
52020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
6
7 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
8 to find the end of prologue for flang compiled binaries.
9 * arm-tdep.c (arm_skip_prologue): Likewise.
10 * i386-tdep.c (i386_skip_prologue): Likewise.
11 * producer.c (producer_is_llvm): New function.
12 (producer_parsing_tests): Added new tests for clang/flang.
13 * producer.h (producer_is_llvm): New declaration.
14
9327494e
SM
152020-08-18 Simon Marchi <simon.marchi@efficios.com>
16
17 * linux-nat.c (linux_nat_debug_printf): New function.
18 (linux_nat_debug_printf_1): New macro. Use throughout the file.
19
d138725a
AM
202020-08-18 Aaron Merey <amerey@redhat.com>
21
22 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
23 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
24 (CLIBS): Add DEBUGINFOD_LIBS.
25
f9b11e6b
ST
262020-08-17 Sergei Trofimovich <siarheit@google.com>
27
28 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
29 'gdbarch_num_regs'.
30
3ae7ab99
TT
312020-08-17 Tom Tromey <tromey@adacore.com>
32
33 * ada-varobj.c (ada_varobj_decode_var): Handle case where
34 ada_get_decoded_value returns NULL.
35
b017825f
TT
362020-08-17 Tom Tromey <tromey@adacore.com>
37
38 * python/py-inferior.c (infpy_search_memory): Use
39 gdb_py_object_from_ulongest.
40 * python/py-infevents.c (create_inferior_call_event_object)
41 (create_memory_changed_event_object): Use
42 gdb_py_object_from_ulongest.
43 * python/py-linetable.c (ltpy_entry_get_pc): Use
44 gdb_py_object_from_ulongest.
45
7635cf79
SM
462020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
47
48 * loc.c (class symbol_needs_eval_context): Fix indentation.
49
f54be24b
SM
502020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
51
52 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
53 bool.
54
53d5a2a5
TV
552020-08-17 Tom de Vries <tdevries@suse.de>
56
57 PR gdb/26393
58 * gdbtypes.c (dump_dynamic_prop): New function.
59 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
60
547ce8f0
TV
612020-08-15 Tom de Vries <tdevries@suse.de>
62
63 PR backtrace/26390
64 * stack.c (print_frame_args): Temporarily set the selected
65 frame to FRAME while printing the frame's arguments.
66
6ea815e7
PFC
672020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
68
69 PR breakpoints/26385
70 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
71 Always clear watchpoint with PTRACE_SET_DEBUGREG.
72
6e562fa3
PFC
732020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
74
75 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
76 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
77 and >= to check return value instead of == -1 and != -1.
78
d369b608
SM
792020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
80
81 * utils.h (class gdb_argv) <as_array_view>: New method.
82 * utils.c (gdb_argv_as_array_view_test): New.
83 (_initialize_utils): Register selftest.
84 * maint.c (maintenance_selftest): Use the new method.
85
b31488a3
KR
862020-08-13 Kamil Rytarowski <n54@gmx.com>
87
88 * target.h (supports_dumpcore, dumpcore): New
89 function declarations.
90 * target.c (supports_dumpcore, dumpcore): New
91 functions.
92 * target-delegates.c: Rebuild.
93 * gcore.c (gcore_command): Use target_supports_dumpcore ()
94 and target_dumpcore ().
95
002a3166
AM
962020-08-13 Aaron Merey <amerey@redhat.com>
97
98 * debuginfod-support.c: Replace global variables with user_data.
99
ece5bc8a
SM
1002020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
101
102 * maint.c (maintenance_selftest): Split args and pass array_view
103 to run_tests.
104
6d8a0a5e
LM
1052020-08-12 Luis Machado <luis.machado@linaro.org>
106
107 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
108 type's length.
109 Use %s and pulongest to print the length.
110
7cf663a9
PA
1112020-08-12 Pedro Alves <palves@redhat.com>
112
113 * NEWS: Move "Multi-target debugging support" item to the
114 "Changes since GDB 9" section.
115
27c7b875
PA
1162020-08-12 Pedro Alves <palves@redhat.com>
117
118 PR gdb/26336
119 * progspace.c (program_space::remove_objfile): Invalidate the
120 frame cache.
121
1796a2a1
TV
1222020-08-11 Tom de Vries <tdevries@suse.de>
123
124 * MAINTAINERS: Mark ms1 as deleted.
125
f8e3fe0d
LM
1262020-08-10 Luis Machado <luis.machado@linaro.org>
127
128 PR gdb/26310
129
130 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
131 act accordingly.
132 (aarch64_analyze_prologue_test): Add more unit tests to exercise
133 movz/str/stur/stp skipping behavior.
134
cc308722
LM
1352020-08-10 Luis Machado <luis.machado@linaro.org>
136
137 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
138 struct user_sve_header instead of struct sve_context.
139
041d9819
SM
1402020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
141
142 * read.h (dwarf2_fetch_die_loc_sect_off,
143 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
144 `void *` parameter with function_view.
145 * read.c (dwarf2_fetch_die_loc_sect_off,
146 dwarf2_fetch_die_loc_cu_off): Likewise.
147 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
148 (per_cu_dwarf_call): Adjust.
149 (get_frame_address_in_block_wrapper): Remove.
150 (indirect_synthetic_pointer): Adjust.
151 (get_ax_pc): Remove.
152 (dwarf2_compile_expr_to_ax): Adjust.
153
38f8aa06
TV
1542020-08-08 Tom de Vries <tdevries@suse.de>
155
156 PR build/26344
157 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
158 constructor.
159 * regcache.c (get_thread_arch_aspace_regcache): Same.
160
a52b3ae2
TT
1612020-08-07 Tom Tromey <tromey@adacore.com>
162
163 * ravenscar-thread.c
164 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
165 New method.
166 (ravenscar_thread_target::wait): Check
167 runtime_initialized.
168 (ravenscar_thread_target::prepare_to_store)
169 (ravenscar_thread_target::stopped_by_sw_breakpoint)
170 (ravenscar_thread_target::stopped_by_hw_breakpoint)
171 (ravenscar_thread_target::stopped_by_watchpoint)
172 (ravenscar_thread_target::stopped_data_address)
173 (ravenscar_thread_target::core_of_thread): Use
174 scoped_restore_current_thread and
175 set_base_thread_from_ravenscar_task.
176
0e29517d
TT
1772020-08-07 Tom Tromey <tromey@adacore.com>
178
179 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
180
592f9bd7
TT
1812020-08-07 Tom Tromey <tromey@adacore.com>
182
183 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
184 update_inferior_ptid before update_thread_list.
185 (temporarily_change_regcache_ptid): New class.
186 (ravenscar_thread_target::fetch_registers)
187 (ravenscar_thread_target::store_registers)
188 (ravenscar_thread_target::prepare_to_store): Use base thread when
189 forwarding operation.
190
39e2018a
TT
1912020-08-07 Tom Tromey <tromey@adacore.com>
192
193 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
194 "is_pid" case.
195
2080266b
TT
1962020-08-07 Tom Tromey <tromey@adacore.com>
197
198 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
199 New methods.
200 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
201 first.
202 (ravenscar_thread_target::add_thread): Rename from
203 ravenscar_add_thread.
204 (ravenscar_thread_target::update_thread_list): Use a lambda.
205 (ravenscar_thread_target::xfer_partial): New method.
206
78c02f21
TT
2072020-08-07 Tom Tromey <tromey@adacore.com>
208
209 * ada-lang.h (ada_task_list_iterator_ftype): Now a
210 gdb::function_view.
211 (iterate_over_live_ada_tasks): Change type of argument.
212 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
213 of argument.
214
d5d833af
TT
2152020-08-07 Tom Tromey <tromey@adacore.com>
216
217 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
218 Remove.
219 (ravenscar_thread_target::extra_thread_info): Remove.
220 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
221 defer to target beneath for non-Ravenscar threads.
222
a8ac85bb
TT
2232020-08-07 Tom Tromey <tromey@adacore.com>
224
225 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
226 get_base_thread_from_ravenscar_task>: Now methods.
227 <m_cpu_map>: New member.
228 (ravenscar_thread_target::get_thread_base_cpu): Rename from
229 ravenscar_get_thread_base_cpu. Check m_cpu_map.
230 (ravenscar_thread_target::task_is_currently_active): Update.
231 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
232 Now a method.
233 (ravenscar_thread_target::add_active_thread): Put initial thread
234 into the m_cpu_map.
235
550ab58d
TT
2362020-08-07 Tom Tromey <tromey@adacore.com>
237
238 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
239 event_ptid.
240
e9546579
TT
2412020-08-07 Tom Tromey <tromey@adacore.com>
242
243 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
244 runtime_initialized.
245
3d4470e5
TT
2462020-08-07 Tom Tromey <tromey@adacore.com>
247
248 * ravenscar-thread.c (ravenscar_thread_target): Don't call
249 add_active_thread.
250 (ravenscar_thread_target::add_active_thread): Now public.
251 (ravenscar_inferior_created): Call add_active_thread after pushing
252 the target.
253
888bdb2b
SM
2542020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
255
256 * regcache.c (ptid_regcache_map): New type.
257 (target_ptid_regcache_map): New type.
258 (regcaches): Change type to target_ptid_regcache_map.
259 (get_thread_arch_aspace_regcache): Update to regcaches' new
260 type.
261 (regcache_thread_ptid_changed): Likewise.
262 (registers_changed_ptid): Likewise.
263 (regcaches_size): Likewise.
264 (regcaches_test): Update.
265 (regcache_thread_ptid_changed): Update.
266 * regcache.h (regcache_up): New type.
267 * gdbsupport/ptid.h (hash_ptid): New struct.
268
b161a60d
SM
2692020-08-07 Simon Marchi <simon.marchi@efficios.com>
270
271 * observable.h (thread_ptid_changed): Add parameter
272 `process_stratum_target *`.
273 * infrun.c (infrun_thread_ptid_changed): Add parameter
274 `process_stratum_target *` and use it.
275 (selftests): New namespace.
276 (infrun_thread_ptid_changed): New function.
277 (_initialize_infrun): Register selftest.
278 * regcache.c (regcache_thread_ptid_changed): Add parameter
279 `process_stratum_target *` and use it.
280 (regcache_thread_ptid_changed): New function.
281 (_initialize_regcache): Register selftest.
282 * thread.c (thread_change_ptid): Pass target to
283 thread_ptid_changed observable.
284
d2854d8d
CT
2852020-08-06 Caroline Tice <cmtice@google.com>
286
fe4c3d43
SM
287 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
288 (struct dwp_sections): Update field comments. Add loclists and
289 rnglists fields.
290 (struct virtual_v2_dwo_sections): Rename struct to
291 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
292 size & offset fields for loclists and rnglists.
293 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
294 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
295 skipping dummy type units.
296 (create_dwp_hash_table): Update the large comment above the function to
297 discuss Version 5 DWP files as well, with references. Update all the
298 version checks in the function to check for version 5 as well. Add new
299 section at the end to create dwp hash table for version 5.
300 (create_dwp_v2_section): Rename function to
301 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
302 Add V5 to error message text.
303 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
304 into calls to create_dwp_v2_or_v5_section.
305 (create_dwo_unit_in_dwp_v5): New function.
306 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
307 check for version2; add else clause to handle version 5.
308 (open_and_init_dwo_file): Add code to check dwarf version & only call
309 create_debug_types_hash_table (with sections.types) if version is not 5;
310 else call create_debug_type_hash_table, with sections.info.
311 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
312 version 5.
313 (dwarf2_locate_v5_dwp_sections): New function.
314 (open_and_init_dwp_file): Add else-if clause for version 5 to call
315 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
d2854d8d 316
159ed7d9
SM
3172020-08-06 Simon Marchi <simon.marchi@efficios.com>
318
319 * regcache.h (class regcache): Remove friend
320 registers_changed_ptid.
321 <regcache_thread_ptid_changed>: Remove.
322 <regcaches>: Remove.
323 * regcache.c (regcache::regcaches): Rename to...
324 (regcaches): ... this. Make static.
325 (get_thread_arch_aspace_regcache): Update.
326 (regcache::regcache_thread_ptid_changed): Rename to...
327 (regcache_thread_ptid_changed): ... this. Update.
328 (class regcache_access): Remove.
329 (regcaches_test): Update.
330 (_initialize_regcache): Update.
331 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
332 <forward_list>.
333
174981ae
SM
3342020-08-06 Simon Marchi <simon.marchi@efficios.com>
335
336 * regcache.h (class regcache) <current_regcache>: Rename to...
337 <regcaches>: ... this. Move doc here.
338 * regcache.c (regcache::current_regcache) Rename to...
339 (regcache::regcaches): ... this. Move doc to header.
340 (get_thread_arch_aspace_regcache): Update.
341 (regcache::regcache_thread_ptid_changed): Update.
342 (registers_changed_ptid): Update.
343 (class regcache_access) <current_regcache_size>: Rename to...
344 <regcaches_size>: ... this.
345 (current_regcache_test): Rename to...
346 (regcaches_test): ... this.
347 (_initialize_regcache): Update.
348
ed908db6
VC
3492020-08-06 Victor Collod <vcollod@nvidia.com>
350
351 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
352
b5582ab7
KB
3532020-08-05 Kevin Buettner <kevinb@redhat.com>
354
355 * corelow.c (core_target::build_file_mappings): Don't output
356 null pathname in warning.
357
ea946b86
SM
3582020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
359
360 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
361 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
362 gdb.dwarf2/dw2-single-line-discriminators.exp,
363 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
364
57d02173
TT
3652020-08-05 Tom Tromey <tromey@adacore.com>
366
367 PR rust/26197:
368 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
369 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
370 Fix off-by-one and type size errors in ordinary case.
371
5555c86d
TV
3722020-08-05 Tom de Vries <tdevries@suse.de>
373
374 * gdbtypes.c (type_not_allocated, type_not_associated): Use
375 "prop->const_val () == 0" instead of "prop->const_val () != 0".
376
97916bfe
SM
3772020-08-04 Simon Marchi <simon.marchi@efficios.com>
378
379 * frame.h (frame_id_p): Return bool.
380 (frame_id_artificial_p): Return bool.
381 (frame_id_eq): Return bool.
382 (has_stack_frames): Return bool.
383 (get_selected_frame): Fix typo in comment.
384 (get_frame_pc_if_available): Return bool.
385 (get_frame_address_in_block_if_available): Return bool.
386 (get_frame_func_if_available): Return bool.
387 (read_frame_register_unsigned): Return bool.
388 (get_frame_register_bytes): Return bool.
389 (safe_frame_unwind_memory): Return bool.
390 (deprecated_frame_register_read): Return bool.
391 (frame_unwinder_is): Return bool.
392 * frame.c (struct frame_info) <prev_arch::p>: Change type to
393 bool.
394 <this_id::p>: Likewise.
395 <prev_p>: Likewise.
396 (frame_stash_add): Return bool.
397 (get_frame_id): Use bool.
398 (frame_id_build_special) Use bool.
399 (frame_id_build_unavailable_stack): Use bool.
400 (frame_id_build): Use bool.
401 (frame_id_p): Return bool, use true/false instead of 1/0.
402 (frame_id_artificial_p): Likewise.
403 (frame_id_eq): Likewise.
404 (frame_id_inner): Likewise.
405 (get_frame_func_if_available): Likewise.
406 (read_frame_register_unsigned): Likewise.
407 (deprecated_frame_register_read): Likewise.
408 (get_frame_register_bytes): Likewise.
409 (has_stack_frames): Likewise.
410 (inside_main_func): Likewise.
411 (inside_entry_func): Likewise.
412 (get_frame_pc_if_available): Likewise.
413 (get_frame_address_in_block_if_available): Likewise.
414 (frame_unwinder_is): Likewise.
415 (safe_frame_unwind_memory): Likewise.
416 (frame_unwind_arch): Likewise.
417
fedfee88
SM
4182020-08-04 Simon Marchi <simon.marchi@efficios.com>
419
420 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
421 type to cached_copy_status.
422 (fprintf_frame): Adjust.
423 (get_frame_func_if_available): Adjust.
424 (frame_cleanup_after_sniffer): Adjust.
425
6cfa9b59
MW
4262020-08-04 Mark Wielaard <mark@klomp.org>
427
428 * MAINTAINERS (Write After Approval): Update email address.
429
66d6346b
SM
4302020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
431
432 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
433 dynamic_prop::const_val.
434
8a6d5e35
SM
4352020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
436
437 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
438 dynamic_prop::kind.
439
51d6067d
SM
4402020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
441
442 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
443
b26e2ae7
JM
4442020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
445
446 * configure.tgt: Set gdb_sim for bpf-*-* targets.
447
39791af2
JM
4482020-08-04 Weimin Pan <weimin.pan@oracle.com>
449 Jose E. Marchesi <jose.marchesi@oracle.com>
450
451 * configure.tgt: Add entry for bpf-*-*.
452 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
453 (ALLDEPFILES): Add bpf-tdep.c.
454 * bpf-tdep.c: New file.
455 * MAINTAINERS: Add bpf target and maintainer.
456 * NEWS: Mention the support for the new target.
457
521894aa
TV
4582020-08-04 Tom de Vries <tdevries@suse.de>
459
460 PR symtab/23270
461 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
462 Error.
463
5d6356e9
JB
4642020-08-03 John Baldwin <jhb@FreeBSD.org>
465
466 * syscalls/freebsd.xml: Regenerate.
467
0cf82b81
JB
4682020-08-03 John Baldwin <jhb@FreeBSD.org>
469
470 * syscalls/update-freebsd.sh: Fix usage and year range.
471
8f34b746
TV
4722020-08-03 Tom de Vries <tdevries@suse.de>
473
474 PR symtab/26333
475 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
476 DW_LNE_lo_user/DW_LNE_hi_user range.
477
5e500d33
SM
4782020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
479
480 PR ada/26318
481 * ada-lang.c (ada_modulus): Return 0 if property is not of const
482 kind.
483
78319c15
TBA
4842020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
485
486 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
487
4c55e970
TBA
4882020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
489
490 * breakpoint.c (set_breakpoint_condition): Update the condition
491 expressions after checking that the input condition string parses
492 successfully and does not contain junk at the end.
493
1e620590
TBA
4942020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
495
496 * breakpoint.c (set_breakpoint_condition): Update the
497 condition string after parsing the new condition successfully.
498
c8693053
RO
4992020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
500
501 * proc-api.c (_STRUCTURED_PROC): Don't define.
502 * proc-events.c: Likewise.
503 * proc-flags.c: Likewise.
504 * proc-why.c: Likewise.
505 * procfs.c: Likewise.
506
507 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
508 * configure, config.in: Regenerate.
509
5a99adb8
TV
5102020-07-30 Tom de Vries <tdevries@suse.de>
511
512 PR build/26320
513 * ui-style.h (struct ui_file_style::color): Wrap m_value and
514 m_red/m_green/m_blue in a union.
515
8ba83e91
TV
5162020-07-29 Tom de Vries <tdevries@suse.de>
517
518 PR tdep/26280
519 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
520
f75a0693
AB
5212020-07-28 Tom Tromey <tromey@adacore.com>
522
523 PR symtab/26270:
524 * symtab.h (find_pc_partial_function_sym): Declare.
525 * cli/cli-cmds.c (disassemble_command): Use
526 find_pc_partial_function_sym. Check asm_demangle.
527 * blockframe.c (cache_pc_function_sym): New global.
528 (cache_pc_function_name): Remove.
529 (clear_pc_function_cache): Update.
530 (find_pc_partial_function_sym): New function, from
531 find_pc_partial_function.
532 (find_pc_partial_function): Rewrite using
533 find_pc_partial_function_sym.
534
16f3242c
TT
5352020-07-28 Tom Tromey <tromey@adacore.com>
536
537 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
538 help. Add usage.
539
4888741a
TT
5402020-07-28 Tom Tromey <tromey@adacore.com>
541
542 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
543 <DW_OP_GNU_variable_value>: Cast to address type.
544
4d46f402
KR
5452020-07-28 Kamil Rytarowski <n54@gmx.com>
546
547 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
548 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
549 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
550 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
551 (nbsd_get_siginfo_type): New.
552 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
553 (_initialize_nbsd_tdep): New.
554
d70f978b
L
5552020-07-28 H.J. Lu <hongjiu.lu@intel.com>
556
557 PR binutils/26301
558 * configure: Regenerated.
559
377170fa
L
5602020-07-28 H.J. Lu <hongjiu.lu@intel.com>
561
562 PR binutils/26301
563 * configure: Regenerated.
564
43d5901d
AB
5652020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
566
567 * python/py-frame.c: Remove 'user-regs.h' include.
568 (frapy_read_register): Rewrite to make use of
569 gdbpy_parse_register_id.
570 * python/py-registers.c (gdbpy_parse_register_id): New function,
571 moved here from python/py-unwind.c. Updated the return type, and
572 also accepts register descriptor objects.
573 * python/py-unwind.c: Remove 'user-regs.h' include.
574 (pyuw_parse_register_id): Moved to python/py-registers.c.
575 (unwind_infopy_add_saved_register): Update to use
576 gdbpy_parse_register_id.
577 (pending_framepy_read_register): Likewise.
578 * python/python-internal.h (gdbpy_parse_register_id): Declare.
579
14fa8fb3
AB
5802020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
581
582 * python/py-registers.c: Add 'user-regs.h' include.
583 (register_descriptor_iter_find): New function.
584 (register_descriptor_iterator_object_methods): New static global
585 methods array.
586 (register_descriptor_iterator_object_type): Add pointer to methods
587 array.
588
ddce1758
JB
5892020-07-27 John Baldwin <jhb@FreeBSD.org>
590
591 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
592 for all architectures on FreeBSD 11.3 and later.
593
a4089f52
TT
5942020-07-27 Tom Tromey <tromey@adacore.com>
595
596 * gcore.h (load_corefile): Don't declare.
597
95420d30
TV
5982020-07-27 Tom de Vries <tdevries@suse.de>
599
600 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
601 * config.in: Regenerate.
602 * configure: Regenerate.
603
05a6b8c2
EZ
6042020-07-26 Eli Zaretskii <eliz@gnu.org>
605
606 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
607 ws2tcpip.h. When checking whether socklen_t type is defined, use
608 ws2tcpip.h if it is available and sys/socket.h isn't.
609 * configure: Regenerate.
610 * config.in: Regenerate.
611
e79eb02f
AB
6122020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
613
614 PR fortran/23051
615 PR fortran/26139
616 * valops.c (value_ind): Pass address to
617 readjust_indirect_value_type.
618 * value.c (readjust_indirect_value_type): Make parameter
619 non-const, and add extra address parameter. Resolve original type
620 before using it.
621 * value.h (readjust_indirect_value_type): Update function
622 signature and comment.
623
876518dd
TV
6242020-07-25 Tom de Vries <tdevries@suse.de>
625
626 PR symtab/26243
627 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
628 entries.
629
f6720b1c
AM
6302020-07-24 Aaron Merey <amerey@redhat.com>
631
632 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
633 * configure: Rebuild.
634
513487e1
KB
6352020-07-23 Kevin Buettner <kevinb@redhat.com>
636
637 PR corefiles/26294
638 * corelow.c (_initialize_corelow): Add period to help text
639 for "maintenance print core-file-backed-mappings".
640
e7bc9db8
PA
6412020-07-23 Pedro Alves <pedro@palves.net>
642
643 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
644 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
645 meanwhile.
646 * frame.c (frame_cache_generation, get_frame_cache_generation):
647 New.
648 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
649 (get_prev_frame_if_no_cycle): On exception, don't touch
650 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
651 * frame.h (get_frame_cache_generation): Declare.
652
90fcc466
TV
6532020-07-23 Tom de Vries <tdevries@suse.de>
654
655 PR tui/26282
656 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
657 New default constructor.
658
78344df7
AB
6592020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
660
661 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
662 exclude non-statement entries.
663
b089853a
KB
6642020-07-22 Kevin Buettner <kevinb@redhat.com>
665
666 * NEWS (New commands): Mention new command
667 "maintenance print core-file-backed-mappings".
668
09c2f5d4
KB
6692020-07-22 Kevin Buettner <kevinb@redhat.com>
670
671 * corelow.c (gdbcmd.h): Include.
672 (core_target::info_proc_mappings): New method.
673 (get_current_core_target): New function.
674 (maintenance_print_core_file_backed_mappings): New function.
675 (_initialize_corelow): Add core-file-backed-mappings to
676 "maint print" commands.
677
9c5ec5c2 6782020-07-22 Kevin Buettner <kevinb@redhat.com>
fe4c3d43 679
9c5ec5c2
KB
680 * linux-tdep.c (dump_note_entry_p): New function.
681 (linux_dump_mapping_p_ftype): New typedef.
682 (linux_find_memory_regions_full): Add new parameter,
683 should_dump_mapping_p.
684 (linux_find_memory_regions): Adjust call to
685 linux_find_memory_regions_full.
686 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
687 call to linux_find_memory_regions_full.
688
db082f59
KB
6892020-07-22 Kevin Buettner <kevinb@redhat.com>
690
691 * corelow.c (solist.h, unordered_map): Include.
692 (class core_target): Add field m_core_file_mappings and
693 method build_file_mappings.
694 (core_target::core_target): Call build_file_mappings.
695 (core_target::~core_target): Free memory associated with
696 m_core_file_mappings.
697 (core_target::build_file_mappings): New method.
698 (core_target::xfer_partial): Use m_core_file_mappings
699 for memory transfers.
700 * linux-tdep.c (linux_read_core_file_mappings): New
701 function.
702 (linux_core_info_proc_mappings): Rewrite to use
703 linux_read_core_file_mappings.
704 (linux_init_abi): Register linux_read_core_file_mappings.
705
7e183d27
KB
7062020-07-22 Kevin Buettner <kevinb@redhat.com>
707
708 * arch-utils.c (default_read_core_file_mappings): New function.
709 * arch-utils.c (default_read_core_file_mappings): Declare.
710 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
711 * gdbarch.h, gdbarch.c: Regenerate.
712
2735d421
KB
7132020-07-22 Kevin Buettner <kevinb@redhat.com>
714
715 PR corefiles/25631
716 * corelow.c (core_target:xfer_partial): Revise
717 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
718 case after first checking the stratum beneath the core
719 target.
720 (has_all_memory): Return true.
721 * target.c (raw_memory_xfer_partial): Revise comment
722 regarding use of has_all_memory.
723
e56cb451
KB
7242020-07-22 Kevin Buettner <kevinb@redhat.com>
725
726 * exec.h (section_table_xfer_memory): Revise declaration,
727 replacing section name parameter with an optional callback
728 predicate.
729 * exec.c (section_table_xfer_memory): Likewise.
730 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
731 of section_table_xfer_memory.
732
32fa152e
TT
7332020-07-22 Tom Tromey <tromey@adacore.com>
734
735 * mi/mi-cmd-stack.c (list_args_or_locals): Use
736 lookup_symbol_search_name.
737
a67a1c41
AB
7382020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
739
740 * python/py-registers.c (gdbpy_register_object_data_init): Remove
741 redundant local variable.
742 (gdbpy_get_register_descriptor): Extract descriptor vector as a
743 reference, not pointer, update code accordingly.
744
a7b4ff4f
SM
7452020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
746 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
747
748 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
749 * jit.c (jit_breakpoint_re_set_internal): Use the
750 `skip_jit_symbol_lookup` field.
751
2340e834
SM
7522020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
753 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
754
755 * jit.c (jit_read_descriptor): Define the descriptor address once,
756 use twice.
757 (jit_breakpoint_deleted): Move the declaration of the loop variable
758 `iter` into the loop header.
759 (jit_breakpoint_re_set_internal): Move the declaration of the local
760 variable `objf_data` to the first point of definition.
761 (jit_event_handler): Move the declaration of local variables
762 `code_entry`, `entry_addr`, and `objf` to their first point of use.
763 Rename `objf` to `jited`.
764
c1072906
SM
7652020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
766
767 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
768 Remove.
769 * jit.c (get_jiter_objfile_data): Update.
770
c8474dc3
TBA
7712020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
772 Simon Marchi <simon.marchi@polymtl.ca>
773
774 * jit.c (struct jit_program_space_data): Remove.
775 (jit_program_space_key): Remove.
776 (jiter_objfile_data::~jiter_objfile_data): Remove program space
777 stuff.
778 (get_jit_program_space_data): Remove.
779 (jit_breakpoint_deleted): Iterate on all of the program space's
780 objfiles.
781 (jit_inferior_init): Likewise.
782 (jit_breakpoint_re_set_internal): Likewise. Also change return
783 type to void.
784 (jit_breakpoint_re_set): Pass current_program_space to
785 jit_breakpoint_re_set_internal.
786
77208eb7
SM
7872020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
788
789 * jit.h (struct jiter_objfile_data) <cached_code_address,
790 jit_breakpoint>: Move to here from ...
791 * jit.c (jit_program_space_data): ... here.
792 (jiter_objfile_data::~jiter_objfile_data): Update.
793 (jit_breakpoint_deleted): Update.
794 (jit_breakpoint_re_set_internal): Update.
795
8c1c720f
SM
7962020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
797
798 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
799 checks.
800 (jit_read_descriptor): Remove NULL check.
801 (jit_event_handler): Add an assertion.
802
0e74a041
SM
8032020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
804
805 * jit.h (struct jit_objfile_data): Split into...
806 (struct jiter_objfile_data): ... this ...
807 (struct jited_objfile_data): ... and this.
808 * objfiles.h (struct objfile) <jit_data>: Remove.
809 <jiter_data, jited_data>: New fields.
810 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
811 (jiter_objfile_data::~jiter_objfile_data): ... this.
812 (get_jit_objfile_data): Rename to ...
813 (get_jiter_objfile_data): ... this.
814 (add_objfile_entry): Update.
815 (jit_read_descriptor): Use get_jiter_objfile_data.
816 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
817 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
818 (jit_inferior_exit_hook): Use objfile's jited_data field.
819
238b5c9f
SM
8202020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
821
822 * jit.h: Forward-declare `struct minimal_symbol`.
823 (struct jit_objfile_data): Migrate to here from jit.c; also add a
824 constructor, destructor, and an objfile* field.
825 * jit.c (jit_objfile_data): Remove.
826 (struct jit_objfile_data): Migrate from here to jit.h.
827 (jit_objfile_data::~jit_objfile_data): New destructor
828 implementation with code moved from free_objfile_data.
829 (free_objfile_data): Delete.
830 (get_jit_objfile_data): Update to use the jit_data field of objfile.
831 (jit_find_objf_with_entry_addr): Ditto.
832 (jit_inferior_exit_hook): Ditto.
833 (_initialize_jit): Remove the call to
834 register_objfile_data_with_cleanup.
835 * objfiles.h (struct objfile) <jit_data>: New field.
836
fe053b9e
TBA
8372020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
838
839 * jit.h: Forward-declare `struct objfile`.
840 (jit_event_handler): Add a second parameter, the JITer objfile.
841 * jit.c (jit_read_descriptor): Change the signature to take the
842 JITer objfile as an argument instead of the jit_program_space_data.
843 (jit_inferior_init): Update the call to jit_read_descriptor.
844 (jit_event_handler): Use the new JITer objfile argument when calling
845 jit_read_descriptor.
846 * breakpoint.c (handle_jit_event): Update the call to
847 jit_event_handler to pass the JITer objfile.
848
4cec0c66
JB
8492020-07-21 John Baldwin <jhb@FreeBSD.org>
850
851 * gdbarch.c: Regenerate.
852 * gdbarch.h: Regenerate.
853 * gdbarch.sh (handle_segmentation_fault): Remove method.
854 * infrun.c (handle_segmentation_fault): Remove.
855 (print_signal_received_reason): Remove call to
856 handle_segmentation_fault.
857
0e42f66a
JB
8582020-07-21 John Baldwin <jhb@FreeBSD.org>
859
860 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
861 Rename to sparc64_linux_report_signal_info and add siggnal
862 argument.
863 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
864 instead of sparc64_linux_handle_segmentation_fault.
865
77bdfeb2
JB
8662020-07-21 John Baldwin <jhb@FreeBSD.org>
867
868 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
869 i386_linux_report_signal_info instead of
870 i386_linux_handle_segmentation_fault.
871 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
872 to i386_linux_report_signal_info and add siggnal argument.
873 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
874 of i386_linux_handle_segmentation_fault.
875 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
876 to i386_linux_report_signal_info and add siggnal argument.
877
ad97bfc5
JB
8782020-07-21 John Baldwin <jhb@FreeBSD.org>
879
880 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
881 hook if present.
882
272bb05c
JB
8832020-07-21 John Baldwin <jhb@FreeBSD.org>
884
885 * gdbarch.c: Regenerate.
886 * gdbarch.h: Regenerate.
887 * gdbarch.sh (report_signal_info): New method.
888 * infrun.c (print_signal_received_reason): Invoke gdbarch
889 report_signal_info hook if present.
890
baf8791e
AB
8912020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
892
893 * python/py-registers.c : Add 'unordered_map' include.
894 (gdbpy_new_reggroup): Renamed to...
895 (gdbpy_get_reggroup): ...this. Update to only create register
896 group descriptors when needed.
897 (gdbpy_reggroup_iter_next): Update.
898
f7306dac
AB
8992020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
900
901 * python/py-registers.c (gdbpy_register_object_data): New static
902 global.
903 (gdbpy_register_object_data_init): New function.
904 (gdbpy_new_register_descriptor): Renamed to...
905 (gdbpy_get_register_descriptor): ...this, and update to reuse
906 existing register descriptors where possible.
907 (gdbpy_register_descriptor_iter_next): Update.
908 (gdbpy_initialize_registers): Register new gdbarch data.
909
05c309a8
SM
9102020-07-21 Simon Marchi <simon.marchi@efficios.com>
911
912 * linux-nat.c (stopped_pids): Make static.
913
d1fd641e
SM
9142020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
915
916 PR ada/26235
917 * gdbtypes.c (ada_discrete_type_low_bound,
918 ada_discrete_type_high_bound): Handle undefined bounds.
919
1de14d77
KR
9202020-07-21 Kamil Rytarowski <n54@gmx.com>
921
922 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
923 declaration.
924 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
925 function.
926
ed810cc7
JB
9272020-07-20 John Baldwin <jhb@FreeBSD.org>
928
929 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
930 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
931 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
932 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
933 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
934 method.
935
ae5369e7
LC
9362020-07-20 Ludovic Courtès <ludo@gnu.org>
937
938 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
939 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
940 which are deprecated in Guile 3.0.
941 * configure.ac (try_guile_versions): Add "guile-3.0".
942 * configure (try_guile_versions): Regenerate.
943 * NEWS: Update entry.
944
68cf161c
LC
9452020-07-20 Ludovic Courtès <ludo@gnu.org>
946 Doug Evans <dje@google.com>
947
948 PR gdb/21104
949 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
950 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
951 USING_GUILE_BEFORE_2_2.
952 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
953 Change type to 'scm_t_port_type *'.
954 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
955 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
956 parameter and honor it. Update callers.
957 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
958 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
959 functions.
960 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
961 USING_GUILE_BEFORE_2_2.
962 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
963 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
964 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
965 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
966 and 'SCM_PORT_TYPE'.
967 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
968 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
969 (gdbscm_memory_port_read, gdbscm_memory_port_write)
970 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
971 [!USING_GUILE_BEFORE_2_2]: New functions.
972 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
973 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
974 'gdbscm_memory_port_read'.
975 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
976 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
977 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
978 function.
979 (ioscm_init_memory_port): Remove.
980 (ioscm_init_memory_port_stream): New function
981 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
982 function.
983 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
984 Return scm_from_uint (0).
985 (gdbscm_set_memory_port_read_buffer_size_x)
986 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
987 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
988 Return scm_from_uint (0).
989 (gdbscm_set_memory_port_write_buffer_size_x)
990 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
991 * configure.ac (try_guile_versions): Add "guile-2.2".
992 * configure: Regenerate.
993 * NEWS: Add entry.
994
aee91db3
TT
9952020-07-18 Tom Tromey <tom@tromey.com>
996
997 * linux-nat.c (linux_multi_process): Remove.
998 (linux_nat_target::supports_multi_process): Return true.
999
0e267416
AB
10002020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
1001
1002 * arch/riscv.c (riscv_tdesc_cache): Change map type.
1003 (riscv_lookup_target_description): Return pointer out of
1004 unique_ptr.
1005 * target-descriptions.c (allocate_target_description): Add
1006 comment.
1007 (target_desc_deleter::operator()): Likewise.
1008 * target-descriptions.h (struct target_desc_deleter): Moved to
1009 gdbsupport/tdesc.h.
1010 (target_desc_up): Likewise.
1011
f80c8ec4
TT
10122020-07-17 Tom Tromey <tromey@adacore.com>
1013
1014 * linux-nat.c (linux_nat_target::supports_non_stop)
1015 (linux_nat_target::always_non_stop_p): Use "true".
1016 (linux_nat_target::supports_disable_randomization): Use "true" and
1017 "false".
1018
d0ce17d8
CT
10192020-07-16 Caroline Tice <cmtice@google.com>
1020
1021 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
1022 (RNGLIST_HEADER_SIZE64): New constant definition.
1023 (struct dwop_section_names): Add rnglists_dwo.
1024 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
1025 (struct loclist_header): Rename to 'loclists_rnglists_header'.
1026 (struct dwo_sections): Add rnglists field.
1027 (read_attribut_reprocess): Add tag parameter.
1028 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
1029 (cu_debug_rnglists_section): New function (decl & definition).
1030 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
1031 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
1032 die whose range is being checked; get rnglist section from
1033 cu_debug_rnglists_section, to get from either objfile or dwo file as
1034 appropriate. Add cases for DW_RLE_base_addressx,
1035 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
1036 the base address to DW_RLE_offset_pairs (not to all ranges), moving
1037 test inside if-condition and updating complaint message.
1038 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
1039 dwarf2_rnglists_process.
1040 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
1041 dwarf2_ranges_process.
1042 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
1043 need_ranges_base and update comment appropriately. Also pass die tag
1044 to dwarf2_ranges_read.
1045 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
1046 need_ranges_base and update comment appropriately. Also pass die tag
1047 to dwarf2_ranges_process.
1048 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
1049 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
1050 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
1051 need_ranges_base and update comment appropriately. Also pass die tag
1052 to read_attribute_reprocess and dwarf2_ranges_read.
1053 (read_loclist_header): Rename function to read_loclists_rnglists_header,
1054 and update function comment appropriately.
1055 (read_loclist_index): Call read_loclists_rnglists_header instead of
1056 read_loclist_header.
1057 (read_rnglist_index): New function.
1058 (read_attribute_reprocess): Add tag parameter. Add code for
1059 DW_FORM_rnglistx, passing tag to read_rnglist_index.
1060 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
1061
3dcc261c
AB
10622020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
1063
1064 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
1065 being resolved.
1066
ccb9eba6
AB
10672020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
1068
1069 * arch-utils.c (show_architecture): Update formatting of messages.
1070
cf88be68
SM
10712020-07-12 Simon Marchi <simon.marchi@efficios.com>
1072
1073 * gdbtypes.h (struct type) <bounds>: Handle array and string
1074 types.
1075 * ada-lang.c (assign_aggregate): Use type::bounds on
1076 array/string type.
1077 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
1078 * c-varobj.c (c_number_of_children): Likewise.
1079 (c_describe_child): Likewise.
1080 * eval.c (evaluate_subexp_for_sizeof): Likewise.
1081 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
1082 (f_type_print_base): Likewise.
1083 * f-valprint.c (f77_array_offset_tbl): Likewise.
1084 (f77_get_upperbound): Likewise.
1085 (f77_print_array_1): Likewise.
1086 * guile/scm-type.c (gdbscm_type_range): Likewise.
1087 * m2-typeprint.c (m2_array): Likewise.
1088 (m2_is_long_set_of_type): Likewise.
1089 * m2-valprint.c (get_long_set_bounds): Likewise.
1090 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
1091 * python/py-type.c (typy_range): Likewise.
1092 * rust-lang.c (rust_internal_print_type): Likewise.
1093 * type-stack.c (type_stack::follow_types): Likewise.
1094 * valarith.c (value_subscripted_rvalue): Likewise.
1095 * valops.c (value_cast): Likewise.
1096
509971ae
SM
10972020-07-12 Simon Marchi <simon.marchi@efficios.com>
1098
1099 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
1100 callers to use the equivalent accessor methods.
1101
107406b7
SM
11022020-07-12 Simon Marchi <simon.marchi@efficios.com>
1103
1104 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
1105 (struct type) <bit_stride>: New method.
1106 (TYPE_BIT_STRIDE): Remove.
1107 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
1108
bb789949
SM
11092020-07-12 Simon Marchi <simon.marchi@efficios.com>
1110
1111 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
1112 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
1113 callers to use the equivalent accessor methods instead.
1114
39498edb
SM
11152020-07-12 Simon Marchi <simon.marchi@efficios.com>
1116
1117 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
1118 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
1119 callers to use the equivalent accessor methods instead.
1120
3b606f38
SM
11212020-07-12 Simon Marchi <simon.marchi@efficios.com>
1122
1123 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
1124 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
1125 to use dynamic_prop::kind.
1126
064d9cb9
SM
11272020-07-12 Simon Marchi <simon.marchi@efficios.com>
1128
1129 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
1130 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
1131 to get the bound property's kind and check against
1132 PROP_UNDEFINED.
1133
5537ddd0
SM
11342020-07-12 Simon Marchi <simon.marchi@efficios.com>
1135
1136 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
1137 all callers to use type::range_bounds followed by
1138 dynamic_prop::{low,high}.
1139
8c2e4e06
SM
11402020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
1141
1142 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
1143 const_val, set_const_val, baton, set_locexpr, set_loclist,
1144 set_addr_offset, variant_parts, set_variant_parts,
1145 original_type, set_original_type>: New methods.
1146 <kind>: Rename to...
1147 <m_kind>: ... this. Update all users to use the new methods
1148 instead.
1149 <data>: Rename to...
1150 <m_data>: ... this. Update all users to use the new methods
1151 instead.
1152
7c6f2712
SM
11532020-07-12 Simon Marchi <simon.marchi@efficios.com>
1154
1155 * gdbtypes.c (get_discrete_bounds): Return failure if
1156 the range type's bounds are not both defined and constant
1157 values.
1158 (get_array_bounds): Update comment. Remove undefined bound check.
1159
599088e3
SM
11602020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
1161
1162 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
1163 the type::bounds method directly.
1164
c4dfcb36
SM
11652020-07-12 Simon Marchi <simon.marchi@efficios.com>
1166
1167 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
1168 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
1169 are used to set the range type's bounds to use set_bounds.
1170
0a278aa7
PW
11712020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1172
1173 * exec.c (_initialize_exec): Update exec-file-mismatch help.
1174
cce20f10
PA
11752020-07-10 Pedro Alves <pedro@palves.net>
1176
1177 * gdbthread.h (inferior_ref): Define.
1178 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
1179 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
1180 * thread.c
1181 (scoped_restore_current_thread::restore):
1182 Adjust to gdb::ref_ptr.
1183 (scoped_restore_current_thread::~scoped_restore_current_thread):
1184 Remove manual decref handling.
1185 (scoped_restore_current_thread::scoped_restore_current_thread):
1186 Adjust to use
1187 inferior_ref::new_reference/thread_info_ref::new_reference.
1188 Incref the thread before calling get_frame_id instead of after.
1189 Let TARGET_CLOSE_ERROR propagate.
1190
6d7aa592
PA
11912020-07-10 Pedro Alves <pedro@palves.net>
1192
1193 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
1194 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
1195 NOT_AVAILABLE_ERROR.
1196 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
1197 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
1198
b3e3a4c1
SM
11992020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
1200 Pedro Alves <pedro@palves.net>
1201
1202 PR gdb/26199
1203 * infrun.c (threads_are_resumed_pending_p): Delete.
1204 (do_target_wait): Remove threads_are_executing and
1205 threads_are_resumed_pending_p checks from the inferior_matches
1206 lambda. Update comments.
1207
d6cc5d98
PA
12082020-07-10 Pedro Alves <pedro@palves.net>
1209
1210 PR gdb/26199
1211 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
1212 executing threads.
1213
7d3badc6
PA
12142020-07-10 Pedro Alves <pedro@palves.net>
1215
1216 PR gdb/26199
1217 * infrun.c (handle_no_resumed): Handle multiple targets.
1218
42bd97a6
PA
12192020-07-10 Pedro Alves <pedro@palves.net>
1220
1221 PR gdb/26199
1222 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
1223 target_is_async_p.
1224
43667cc6
PA
12252020-07-10 Pedro Alves <pedro@palves.net>
1226
1227 PR gdb/26199
1228 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
1229 threads, not all threads.
1230
96118d11
PA
12312020-07-10 Pedro Alves <pedro@palves.net>
1232
1233 PR gdb/26199
1234 * remote.c (remote_target::open_1): Pass remote target pointer as
1235 data to create_async_event_handler.
1236 (remote_async_inferior_event_handler): Mark async event handler
1237 before returning if the remote target still has either pending
1238 events or unacknowledged notifications.
1239
54904d81
JB
12402020-07-10 John Baldwin <jhb@FreeBSD.org>
1241
1242 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
1243 declaration.
1244 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
1245 function.
1246
f37e5866
JB
12472020-07-09 John Baldwin <jhb@FreeBSD.org>
1248
1249 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
1250 inferior_ptid.
1251
fc238d4a
JB
12522020-07-09 John Baldwin <jhb@FreeBSD.org>
1253
1254 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
1255 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
1256 AT_FREEBSD_PS_STRINGS.
1257
6e2469ff
HD
12582020-07-08 Hannes Domani <ssbssa@yahoo.de>
1259
1260 * auto-load.c (auto_load_objfile_script_1): Convert drive part
1261 of debugfile path on Windows.
1262
d1076c41
JB
12632020-07-08 John Baldwin <jhb@FreeBSD.org>
1264
1265 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
1266 argument to 'data'.
1267
15f3b077
TT
12682020-07-08 Tom Tromey <tromey@adacore.com>
1269
1270 * ada-lang.c (ada_exception_message_1): Use read_memory.
1271
9fc501fd
AB
12722020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1273
1274 PR python/22748
1275 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
1276 special handling for inline frames.
1277 * findvar.c (value_of_register_lazy): Skip inline frames when
1278 creating lazy register values.
1279 * frame.c (frame_id_computed_p): Delete definition.
1280 * frame.h (frame_id_computed_p): Delete declaration.
1281
64cb3757
AB
12822020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1283
1284 * NEWS: Mention additions to Python API.
1285 * python/py-arch.c (archpy_register_groups): New function.
1286 (arch_object_methods): Add 'register_groups' method.
1287 * python/py-registers.c (reggroup_iterator_object): New struct.
1288 (reggroup_object): New struct.
1289 (gdbpy_new_reggroup): New function.
1290 (gdbpy_reggroup_to_string): New function.
1291 (gdbpy_reggroup_name): New function.
1292 (gdbpy_reggroup_iter): New function.
1293 (gdbpy_reggroup_iter_next): New function.
1294 (gdbpy_new_reggroup_iterator): New function
1295 (gdbpy_initialize_registers): Register new types.
1296 (reggroup_iterator_object_type): Define new Python type.
1297 (gdbpy_reggroup_getset): New static global.
1298 (reggroup_object_type): Define new Python type.
1299 * python/python-internal.h
1300
0f767f94
AB
13012020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1302
1303 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
1304 * python/py-arch.c (archpy_registers): New function.
1305 (arch_object_methods): Add 'registers' method.
1306 * python/py-registers.c: New file.
1307 * python/python-internal.h
1308 (gdbpy_new_register_descriptor_iterator): Declare.
1309 (gdbpy_initialize_registers): Declare.
1310 * python/python.c (do_start_initialization): Call
1311 gdbpy_initialize_registers.
1312 * NEWS: Mention additions to the Python API.
1313
87dbc774
AB
13142020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1315
1316 * NEWS: Mention new Python API method.
1317 * python/py-unwind.c (pending_framepy_architecture): New function.
1318 (pending_frame_object_methods): Add architecture method.
1319
3bc98c0c
AB
13202020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1321
1322 * gdbarch.c: Regenerate.
1323 * gdbarch.h: Regenerate.
1324 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
1325 (gdbarch_data): Use internal_error for the case where
1326 deprecated_set_gdbarch_data was originally needed.
1327 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
1328 and use passed in obstack.
1329 (libunwind_frame_set_descr): Should no longer get back NULL from
1330 gdbarch_data.
1331 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
1332 type.
1333 * user-regs.c (user_regs_init): Update parameters, and use passed
1334 in obstack.
1335 (user_reg_add): Should no longer get back NULL from gdbarch_data.
1336 (_initialize_user_regs): Register as a pre-init gdbarch data type.
1337
d8cc8af6
TV
13382020-07-06 Tom de Vries <tdevries@suse.de>
1339
1340 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
1341 End-Of-Sequence in lte_is_less_than.
1342 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
1343 "gdb: Don't reorder line table entries too much when sorting".
1344
947f7597
TV
13452020-07-06 Tom de Vries <tdevries@suse.de>
1346
1347 PR tui/26205
1348 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
1349
1e7c1b22
TV
13502020-07-05 Tom de Vries <tdevries@suse.de>
1351
1352 PR build/26187
1353 * inferior.h (struct infcall_suspend_state_deleter): If available, use
1354 std::uncaught_exceptions instead of deprecated
1355 std::uncaught_exception.
1356
a36158ec
SM
13572020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
1358
1359 * macroexp.h (macro_stringify): Return
1360 gdb::unique_xmalloc_ptr<char>.
1361 * macroexp.c (macro_stringify): Likewise.
1362 * macrotab.c (fixup_definition): Update.
1363
14d960c8
SM
13642020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
1365
1366 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
1367 (lex_one_token): Update.
1368 * macroexp.c (struct macro_buffer) <release>: Return
1369 gdb::unique_xmalloc_ptr<char>.
1370 (macro_stringify): Update.
1371 (macro_expand): Update.
1372 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
1373 * macroexp.h (macro_expand_next): Likewise.
1374
211d5b1c
SM
13752020-07-02 Simon Marchi <simon.marchi@efficios.com>
1376
1377 * macroexp.h (macro_lookup_ftype): Remove.
1378 (macro_expand, macro_expand_once, macro_expand_next): Remove
1379 lookup function parameters, add scope parameter.
1380 * macroexp.c (scan, substitute_args, expand, maybe_expand,
1381 macro_expand, macro_expand_once, macro_expand_next): Likewise.
1382 * macroscope.h (standard_macro_lookup): Change parameter type
1383 to macro_scope.
1384 * macroscope.c (standard_macro_lookup): Likewise.
1385 * c-exp.y (lex_one_token): Update.
1386 * macrocmd.c (macro_expand_command): Likewise.
1387 (macro_expand_once_command): Likewise.
1388
b1a35af2
SM
13892020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
1390
1391 * inf-loop.c (inferior_event_handler): Remove client_data param.
1392 * inf-loop.h (inferior_event_handler): Likewise.
1393 * infcmd.c (step_1): Adjust.
1394 * infrun.c (proceed): Adjust.
1395 (fetch_inferior_event): Remove client_data param.
1396 (infrun_async_inferior_event_handler): Adjust.
1397 * infrun.h (fetch_inferior_event): Remove `void *` param.
1398 * linux-nat.c (handle_target_event): Adjust.
1399 * record-btrace.c (record_btrace_handle_async_inferior_event):
1400 Adjust.
1401 * record-full.c (record_full_async_inferior_event_handler):
1402 Adjust.
1403 * remote.c (remote_async_inferior_event_handler): Adjust.
1404
1cdf9e33
TT
14052020-07-01 Tom Tromey <tom@tromey.com>
1406
1407 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
1408 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
1409
32c1e210
TT
14102020-07-01 Tom Tromey <tom@tromey.com>
1411
1412 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
1413 tui_gen_win_info.
1414 (tui_win_info::make_window): Merge with
1415 tui_gen_win_info::make_window.
1416 (tui_win_info::make_visible): Move from tui_gen_win_info.
1417 * tui/tui-win.c (tui_win_info::max_width): Move from
1418 tui_gen_win_info.
1419 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
1420 type.
1421 <window_factory>: Likewise.
1422 * tui/tui-layout.c (tui_win_info::resize): Move from
1423 tui_gen_win_info.
1424 (make_standard_window): Change return type.
1425 (get_locator_window, tui_get_window_by_name): Likewise.
1426 (tui_layout_window::apply): Remove a cast.
1427 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
1428 (struct tui_win_info): Merge with tui_gen_win_info.
1429 (struct tui_gen_win_info): Remove.
1430
a30cb6da
TT
14312020-07-01 Tom Tromey <tom@tromey.com>
1432
1433 * tui/tui-stack.h (struct tui_locator_window): Derive from
1434 tui_win_info.
1435 <do_scroll_horizontal, do_scroll_vertical>: New methods.
1436 <can_box>: New method.
1437
1eb2161f
TT
14382020-07-01 Tom Tromey <tom@tromey.com>
1439
1440 * tui/tui-stack.h (struct tui_locator_window): Remove body.
1441
7134f2eb
TT
14422020-07-01 Tom Tromey <tom@tromey.com>
1443
1444 * tui/tui-regs.c (tui_data_window::display_registers_from)
1445 (tui_data_window::display_registers_from)
1446 (tui_data_window::first_data_item_displayed)
1447 (tui_data_window::delete_data_content_windows): Update.
1448 (tui_data_window::refresh_window, tui_data_window::no_refresh):
1449 Remove.
1450 (tui_data_window::check_register_values): Update.
1451 (tui_data_item_window::rerender): Add parameters. Update.
1452 (tui_data_item_window::refresh_window): Remove.
1453 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
1454 virtual.
1455 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
1456 tui_gen_win_info.
1457 <refresh_window, max_height, min_height>: Remove.
1458 <rerender>: Add parameters.
1459 <x, y, visible>: New members.
1460 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
1461 <m_item_width>: New member.
1462
22b7b041
TT
14632020-07-01 Tom Tromey <tom@tromey.com>
1464
1465 * tui/tui-regs.c (tui_data_window::show_register_group)
1466 (tui_data_window::check_register_values): Update.
1467 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
1468 from item_no.
1469
c9753adb
TT
14702020-07-01 Tom Tromey <tom@tromey.com>
1471
1472 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
1473 useless "if".
1474
9ab26b4a
TT
14752020-07-01 Tom Tromey <tom@tromey.com>
1476
1477 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
1478 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
1479
e555083f
TT
14802020-07-01 Tom Tromey <tom@tromey.com>
1481
1482 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
1483 * tui/tui-winsource.h (enum tui_line_or_address_kind)
1484 (struct tui_line_or_address): Move from tui-data.h.
1485 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
1486 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
1487 (tui_cmd_window, tui_source_window_base, tui_source_window)
1488 (tui_disasm_window): Don't declare.
1489 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
1490 to tui-winsource.h.
1491 (SINGLE_KEY): Move to tui-stack.c.
1492
7a02bab7
TT
14932020-07-01 Tom Tromey <tom@tromey.com>
1494
1495 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
1496 std::string.
1497 * tui/tui-regs.c (class tab_expansion_file): New.
1498 (tab_expansion_file::write): New method.
1499 (tui_register_format): Change return type. Use
1500 tab_expansion_file.
1501 (tui_get_register, tui_data_window::display_registers_from)
1502 (tui_data_item_window::rerender): Update.
1503 * tui/tui-io.h (tui_expand_tabs): Don't declare.
1504 * tui/tui-io.c (tui_expand_tabs): Remove.
1505
ea68593b
TT
15062020-07-01 Tom Tromey <tom@tromey.com>
1507
1508 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
1509
a8caed5d
FS
15102020-07-01 Fangrui Song <maskray@google.com>
1511
1512 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
1513
9cdf9820
AKS
15142020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
1515
1516 * dwarf2/read.c (set_die_type): Removed conditions to restrict
1517 forms for DW_AT_associated and DW_AT_allocated attributes,
1518 which is already checked in function attr_to_dynamic_prop.
1519
a1520ad8
TT
15202020-06-30 Tom Tromey <tromey@adacore.com>
1521
1522 * dwarf2/read.c (quirk_rust_enum): Correctly call
1523 alloc_rust_variant for default-less enum.
1524
5ac58899
TT
15252020-06-30 Tom Tromey <tromey@adacore.com>
1526
1527 PR build/26183:
1528 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
1529 gdb::to_string.
1530
19b187a9
SM
15312020-06-29 Simon Marchi <simon.marchi@efficios.com>
1532
1533 * gdbarch.sh (displaced_step_copy_insn): Update doc.
1534 * gdbarch.h: Re-generate.
1535
cd4c4c07
TT
15362020-06-28 Tom Tromey <tom@tromey.com>
1537
1538 * command.h (cmd_types): Remove.
1539 (cmd_type): Don't declare.
1540 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
1541 typedef.
1542 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
1543 * cli/cli-decode.c (cmd_type): Remove.
1544
05779d57
PA
15452020-06-27 Pedro Alves <palves@redhat.com>
1546
1547 * fork-child.c (prefork_hook): Adjust.
1548 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
1549 Delete.
1550 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
1551 * inferior.c (inferior::set_tty, inferior::tty): New methods.
1552 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
1553 Remove declarations.
1554 (struct inferior) <set_tty, tty>: New methods.
1555 (struct inferior) <terminal>: Rename to ...
1556 (struct inferior) <m_terminal>: ... this and make private.
1557 * main.c (captured_main_1): Adjust.
1558 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
1559 (mi_cmd_inferior_tty_show): Adjust.
1560 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
1561 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
1562
1776e3e5
NA
15632020-06-26 Nick Alcock <nick.alcock@oracle.com>
1564
1565 * configure.ac: Add --enable-libctf: handle --disable-static
1566 properly.
1567 * acinclude.m4: sinclude ../config/enable.m4.
1568 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
1569 (LIBCTF): Substitute in.
1570 (CTF_DEPS): New, likewise.
1571 (CLIBS): libctf needs symbols from libbfd: move earlier.
1572 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
1573 flags.
1574 * ctfread.c: Surround in ENABLE_LIBCTF.
1575 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
1576 * configure: Regenerate.
1577 * config.in: Likewise.
1578
58373b80
SM
15792020-06-25 Simon Marchi <simon.marchi@efficios.com>
1580
1581 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
1582
277474ee
SM
15832020-06-25 Simon Marchi <simon.marchi@efficios.com>
1584
1585 * inferior.h (struct inferior) <terminal>: Change type to
1586 gdb::unique_xmalloc_ptr<char>.
1587 * inferior.c (inferior::~inferior): Don't free inf->terminal.
1588 * infcmd.c (set_inferior_io_terminal): Don't free terminal
1589 field, adjust to unique pointer.
1590 (get_inferior_io_terminal): Adjust to unique pointer.
1591
6d74da72
AB
15922020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1593
1594 * riscv-tdep.c (riscv_print_registers_info): Loop over all
1595 registers, not just the known core set of registers.
1596
2e52d038
AB
15972020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1598
1599 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
1600 fflags, frm, and fcsr registers.
1601 (riscv_register_reggroup_p): Remove unknown CSRs from save and
1602 restore groups.
1603 (riscv_tdesc_unknown_reg): New function.
1604 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
1605 tdesc_use_registers.
1606 * riscv-tdep.h (struct gdbarch_tdep): Add
1607 unknown_csrs_first_regnum, unknown_csrs_count,
1608 duplicate_fflags_regnum, duplicate_frm_regnum, and
1609 duplicate_fcsr_regnum fields.
1610
be64fd07
AB
16112020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1612
1613 * target-descriptions.c (tdesc_use_registers): Add new parameter a
1614 callback, use the callback (when not null) to help number unknown
1615 registers.
1616 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
1617 (tdesc_use_registers): Add extra parameter to declaration.
1618
3b9fce96
AB
16192020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1620
1621 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
1622 in the file.
1623 (class riscv_pending_register_alias): Likewise.
1624 (riscv_register_feature::register_info): Change 'required_p' field
1625 to 'required', and change its type. Add 'check' member function.
1626 (riscv_register_feature::register_info::check): Define new member
1627 function.
1628 (riscv_xreg_feature): Change initialisation of 'required' field.
1629 (riscv_freg_feature): Likewise.
1630 (riscv_virtual_feature): Likewise.
1631 (riscv_csr_feature): Likewise.
1632 (riscv_check_tdesc_feature): Take extra parameter, the csr
1633 tdesc_feature, rewrite the function to use the new
1634 riscv_register_feature::register_info::check function.
1635 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
1636
865bad26
AB
16372020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1638
1639 * features/Makefile: Remove all references to the deleted files
1640 below.
1641 * features/riscv/32bit-csr.c: Deleted.
1642 * features/riscv/32bit-csr.xml: Deleted.
1643 * features/riscv/64bit-csr.c: Deleted.
1644 * features/riscv/64bit-csr.xml: Deleted.
1645 * features/riscv/rebuild-csr-xml.sh: Deleted.
1646
ed69cbc8
AB
16472020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1648
1649 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
1650 whitespace error for declaration of names member variable.
1651 (struct riscv_register_feature): Add new prefer_first_name member
1652 variable, and fix whitespace error in declaration of registers.
1653 (riscv_xreg_feature): Initialize prefer_first_name field.
1654 (riscv_freg_feature): Likewise.
1655 (riscv_virtual_feature): Likewise.
1656 (riscv_csr_feature): Likewise.
1657 (riscv_register_name): Expand on comments. Remove register name
1658 modifications for CSR and virtual registers.
1659
4445e8f5
AB
16602020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1661
1662 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
1663 errors.
1664
767a879e
AB
16652020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1666
1667 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
1668 riscv-opc.h.
1669 (class riscv_pending_register_alias): New class.
1670 (riscv_check_tdesc_feature): Take vector of pending aliases and
1671 populate it as appropriate.
1672 (riscv_setup_register_aliases): Delete.
1673 (riscv_gdbarch_init): Create vector of pending aliases and pass it
1674 to riscv_check_tdesc_feature in all cases. Use the vector to
1675 create the register aliases.
1676
bb6e55f3
RO
16772020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1678
1679 * sol2-tdep.c (sol2_static_transform_name): Remove.
1680 (sol2_init_abi): Don't register it.
1681 * gdbarch.sh (static_transform_name): Remove.
1682 * gdbarch.c, gdbarch.h: Regenerate.
1683
1684 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
1685 gdbarch_static_transform_name.
1686 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
1687 * stabsread.c (define_symbol) <'X'>: Remove.
1688 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
1689 handling.
1690 <'V'>: Likewise.
1691 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
1692 <'S'>: Remove call to gdbarch_static_transform_name.
1693
c6d36836
RO
16942020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1695
1696 * procfs.c (procfs_pre_trace): New function.
1697 (procfs_target::create_inferior): Pass it to fork_inferior.
1698
a7e6196b
RO
16992020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1700
1701 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
1702 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
1703 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
1704 sol2-tdep.o, sparc-sol2-tdep.o.
1705 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
1706 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
1707 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
1708 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
1709
d412e696
RO
17102020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1711
1712 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
1713 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
1714 Call sol2_init_abi.
1715 Remove calls to set_gdbarch_skip_solib_resolver,
1716 set_gdbarch_core_pid_to_str.
1717 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
1718 (i386_sol2_static_transform_name): Remove.
1719 (i386_sol2_init_abi): Call sol2_init_abi.
1720 Remove calls to set_gdbarch_sofun_address_maybe_missing,
1721 set_gdbarch_static_transform_name,
1722 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
1723 Use sol2_sigtramp_p.
1724 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
1725 (sol2_sigtramp_p): New function.
1726 (sol2_static_transform_name): New function.
1727 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
1728 (sol2_init_abi): New function.
1729 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
1730 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
1731 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
1732 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
1733 (sparc_sol2_static_transform_name): Remove.
1734 (sparc32_sol2_init_abi): Call sol2_init_abi.
1735 Remove calls to set_gdbarch_sofun_address_maybe_missing,
1736 set_gdbarch_static_transform_name,
1737 set_gdbarch_skip_solib_resolver,
1738 set_gdbarch_core_pid_to_str.
1739 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
1740 (sparc_sol2_static_transform_name): Remove
1741 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
1742 call sol2_sigtramp_p.
1743 (sparc64_sol2_init_abi): Call sol2_init_abi.
1744 Remove calls to set_gdbarch_sofun_address_maybe_missing,
1745 set_gdbarch_static_transform_name,
1746 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
1747
a8654e7d
PW
17482020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1749
1750 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
1751 * exec.c (validate_exec_file): If from_tty, set both
1752 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
1753 * symfile.c (symbol_file_add_with_addrs): if always_confirm
1754 and from_tty, unconditionally ask a confirmation.
1755
caa7fd04
AB
17562020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1757
1758 * target-descriptions.c (tdesc_architecture_name): Protect against
1759 NULL pointer dereference.
1760 (maint_print_xml_tdesc_cmd): New function.
1761 (_initialize_target_descriptions): Register new 'maint print
1762 xml-tdesc' command and give it the filename completer.
1763 * NEWS: Mention new 'maint print xml-tdesc' command.
1764
fbf42f4e
AB
17652020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1766
1767 * target-descriptions.c (class tdesc_compatible_info): New class.
1768 (struct target_desc): Change type of compatible vector.
1769 (tdesc_compatible_p): Update for change in type of
1770 target_desc::compatible.
1771 (tdesc_compatible_info_list): New function.
1772 (tdesc_compatible_info_arch_name): New function.
1773 (tdesc_add_compatible): Update for change in type of
1774 target_desc::compatible.
1775 (print_c_tdesc::visit_pre): Likewise.
1776
20821f4e
AB
17772020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1778
1779 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
1780 whitespace to underscore.
1781 (maint_print_c_tdesc_cmd): Use fake filename for target
1782 descriptions that came from the target.
1783 (_initialize_target_descriptions): Add filename command completion
1784 for 'maint print c-tdesc'.
1785
1fb5ee62
SM
17862020-06-23 Simon Marchi <simon.marchi@efficios.com>
1787
1788 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
1789 lines.
1790
fc3ecb3e
SM
17912020-06-23 Simon Marchi <simon.marchi@efficios.com>
1792
1793 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
1794 lines.
1795 (dwarf2_find_location_expression): Likewise.
1796 (call_site_parameter_matches): Likewise.
1797 (dwarf2_compile_expr_to_ax): Likewise.
1798 (disassemble_dwarf_expression): Likewise.
1799 (loclist_describe_location): Likewise.
1800
236ef034
PA
18012020-06-23 Pedro Alves <palves@redhat.com>
1802
1803 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
1804 progspace-and-thread.h. Include scoped-mock-context.h instead.
1805 (register_to_value_test): Use scoped_mock_context.
1806 * regcache.c: Include "scoped-mock-context.h".
1807 (cooked_read_test): Don't error out if a target is already pushed.
1808 Use scoped_mock_context. Adjust.
1809 * scoped-mock-context.h: New file.
1810
39e7ecca
AB
18112020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1812
1813 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
1814 initializer.
1815 (ada_language::is_string_type_p): New member function.
1816 * c-lang.c (c_language_data): Delete la_is_string_type_p
1817 initializer.
1818 (cplus_language_data): Likewise.
1819 (asm_language_data): Likewise.
1820 (minimal_language_data): Likewise.
1821 * d-lang.c (d_language_data): Likewise.
1822 * f-lang.c (f_is_string_type_p): Delete function, implementation
1823 moved to f_language::is_string_type_p.
1824 (f_language_data): Delete la_is_string_type_p initializer.
1825 (f_language::is_string_type_p): New member function,
1826 implementation from f_is_string_type_p.
1827 * go-lang.c (go_is_string_type_p): Delete function, implementation
1828 moved to go_language::is_string_type_p.
1829 (go_language_data): Delete la_is_string_type_p initializer.
1830 (go_language::is_string_type_p): New member function,
1831 implementation from go_is_string_type_p.
1832 * language.c (language_defn::is_string_type_p): Define new member
1833 function.
1834 (default_is_string_type_p): Make static, add comment copied from
1835 header file.
1836 (unknown_language_data): Delete la_is_string_type_p initializer.
1837 (unknown_language::is_string_type_p): New member function.
1838 (auto_language_data): Delete la_is_string_type_p initializer.
1839 (auto_language::is_string_type_p): New member function.
1840 * language.h (language_data): Delete la_is_string_type_p field.
1841 (language_defn::is_string_type_p): Declare new function.
1842 (default_is_string_type_p): Delete desclaration, move comment to
1843 definition.
1844 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
1845 moved to m2_language::is_string_type_p.
1846 (m2_language_data): Delete la_is_string_type_p initializer.
1847 (m2_language::is_string_type_p): New member function,
1848 implementation from m2_is_string_type_p.
1849 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
1850 initializer.
1851 * opencl-lang.c (opencl_language_data): Likewise.
1852 * p-lang.c (pascal_is_string_type_p): Delete function,
1853 implementation moved to pascal_language::is_string_type_p.
1854 (pascal_language_data): Delete la_is_string_type_p initializer.
1855 (pascal_language::is_string_type_p): New member function,
1856 implementation from pascal_is_string_type_p.
1857 * rust-lang.c (rust_is_string_type_p): Delete function,
1858 implementation moved to rust_language::is_string_type_p.
1859 (rust_language_data): Delete la_is_string_type_p initializer.
1860 (rust_language::is_string_type_p): New member function,
1861 implementation from rust_is_string_type_p.
1862 * valprint.c (val_print_scalar_or_string_type_p): Update call to
1863 is_string_type_p.
1864
4ffc13fb
AB
18652020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1866
1867 * ada-lang.c (ada_language_data): Delete la_print_typedef
1868 initializer.
1869 (ada_language::print_typedef): New member function.
1870 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
1871 (cplus_language_data): Likewise.
1872 (asm_language_data): Likewise.
1873 (minimal_language_data): Likewise.
1874 * d-lang.c (d_language_data): Likewise.
1875 * f-lang.c (f_language_data): Likewise.
1876 (f_language::print_typedef): New member function.
1877 * go-lang.c (go_language_data): Delete la_print_typedef
1878 initializer.
1879 * language.c (language_defn::print_typedef): Define member
1880 function.
1881 (unknown_language_data): Delete la_print_typedef initializer.
1882 (unknown_language::print_typedef): New member function.
1883 (auto_language_data): Delete la_print_typedef initializer.
1884 (auto_language::print_typedef): New member function.
1885 * language.h (language_data): Delete la_print_typedef field.
1886 (language_defn::print_typedef): Declare new member function.
1887 (LA_PRINT_TYPEDEF): Update call to print_typedef.
1888 (default_print_typedef): Delete declaration.
1889 * m2-lang.c (m2_language_data): Delete la_print_typedef
1890 initializer.
1891 (m2_language::print_typedef): New member function.
1892 * objc-lang.c (objc_language_data): Delete la_print_typedef
1893 initializer.
1894 * opencl-lang.c (opencl_language_data): Likewise.
1895 * p-lang.c (pascal_language_data): Likewise.
1896 (pascal_language::print_typedef): New member function.
1897 * rust-lang.c (rust_print_typedef): Delete function,
1898 implementation moved to rust_language::print_typedef.
1899 (rust_language): Delete la_print_typedef initializer.
1900 (rust_language::print_typedef): New member function,
1901 implementation from rust_print_typedef.
1902 * typeprint.c (default_print_typedef): Delete.
1903
d711ee67
AB
19042020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1905
1906 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
1907 (ada_language::printstr): New member function.
1908 * c-lang.c (c_language_data): Delete la_printstr initializer.
1909 (cplus_language_data): Likewise.
1910 (asm_language_data): Likewise.
1911 (minimal_language_data): Likewise.
1912 * d-lang.c (d_language_data): Likewise.
1913 * f-lang.c (f_printstr): Rename to f_language::printstr.
1914 (f_language_data): Delete la_printstr initializer.
1915 (f_language::printstr): New member function, implementation from
1916 f_printstr.
1917 * go-lang.c (go_language_data): Delete la_printstr initializer.
1918 * language.c (language_defn::printstr): Define new member
1919 function.
1920 (unk_lang_printstr): Delete.
1921 (unknown_language_data): Delete la_printstr initializer.
1922 (unknown_language::printstr): New member function.
1923 (auto_language_data): Delete la_printstr initializer.
1924 (auto_language::printstr): New member function.
1925 * language.h (language_data): Delete la_printstr field.
1926 (language_defn::printstr): Declare new member function.
1927 (LA_PRINT_STRING): Update call to printstr.
1928 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
1929 (m2_language_data): Delete la_printstr initializer.
1930 (m2_language::printstr): New member function, implementation from
1931 m2_printstr.
1932 * objc-lang.c (objc_language_data): Delete la_printstr
1933 initializer.
1934 * opencl-lang.c (opencl_language_data): Likewise.
1935 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
1936 (pascal_language_data): Delete la_printstr initializer.
1937 (pascal_language::printstr): New member function, implementation
1938 from pascal_printstr.
1939 * p-lang.h (pascal_printstr): Delete declaration.
1940 * rust-lang.c (rust_printstr): Update header comment.
1941 (rust_language_data): Delete la_printstr initializer.
1942 (rust_language::printstr): New member function.
1943
52b50f2c
AB
19442020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1945
1946 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
1947 (ada_language::printchar): New member function.
1948 * c-lang.c (c_language_data): Delete la_printchar initializer.
1949 (cplus_language_data): Likewise.
1950 (asm_language_data): Likewise.
1951 (minimal_language_data): Likewise.
1952 * d-lang.c (d_language_data): Likewise.
1953 * f-lang.c (f_printchar): Rename to f_language::printchar.
1954 (f_language_data): Delete la_printchar initializer.
1955 (f_language::printchar): New member function, implementation from
1956 f_printchar.
1957 * go-lang.c (go_language_data): Delete la_printchar initializer.
1958 * language.c (unk_lang_printchar): Delete.
1959 (language_defn::printchar): Define new member function.
1960 (unknown_language_data): Delete la_printchar initializer.
1961 (unknown_language::printchar): New member function.
1962 (auto_language_data): Delete la_printchar initializer.
1963 (auto_language::printchar): New member function.
1964 * language.h (language_data): Delete la_printchar field.
1965 (language_defn::printchar): Declare new member function.
1966 (LA_PRINT_CHAR): Update call to printchar.
1967 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
1968 (m2_language::printchar): New member function.
1969 * objc-lang.c (objc_language_data): Delete la_printchar
1970 initializer.
1971 * opencl-lang.c (opencl_language_data): Likewise.
1972 * p-lang.c (pascal_language_data): Delete la_printchar
1973 initializer.
1974 (pascal_language::printchar): New member function.
1975 * rust-lang.c (rust_printchar): Rename to
1976 rust_language::printchar.
1977 (rust_language_data): Delete la_printchar initializer.
1978 (rust_language::printchar): New member function, implementation
1979 from rust_printchar.
1980
ec8cec5b
AB
19812020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1982
1983 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
1984 (ada_language_data): Delete la_emitchar initializer.
1985 (ada_language::emitchar): New member function, implementation from
1986 emit_char.
1987 * c-lang.c (c_language_data): Delete la_emitchar initializer.
1988 (cplus_language_data): Likewise.
1989 (asm_language_data): Likewise.
1990 (minimal_language_data): Likewise.
1991 * d-lang.c (d_language_data): Likewise.
1992 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
1993 (f_language_data): Delete la_emitchar initializer.
1994 (f_language::emitchar): New member function, implementation from
1995 f_emit_char.
1996 * go-lang.c (go_language_data): Delete la_emitchar initializer.
1997 * language.c (unk_lang_emit_char): Delete.
1998 (language_defn::emitchar): New member function definition.
1999 (unknown_language_data): Delete la_emitchar initializer.
2000 (unknown_language::emitchar): New member function.
2001 (auto_language_data): Delete la_emitchar initializer.
2002 (auto_language::emitchar): New member function.
2003 * language.h (language_data): Delete la_emitchar field.
2004 (language_defn::emitchar): New member field declaration.
2005 (LA_EMIT_CHAR): Update call to emitchar.
2006 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
2007 (m2_language_data): Delete la_emitchar initializer.
2008 (m2_language::emitchar): New member function, implementation from
2009 m2_emit_char.
2010 * objc-lang.c (objc_language_data): Delete la_emitchar
2011 initializer.
2012 * opencl-lang.c (opencl_language_data): Likewise.
2013 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
2014 (pascal_language_data): Delete la_emitchar initializer.
2015 (pascal_language::emitchar): New member function, implementation
2016 from pascal_emit_char.
2017 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
2018 (rust_language_data): Delete la_emitchar initializer.
2019 (rust_language::emitchar): New member function, implementation
2020 from rust_emitchar.
2021
1bf9c363
AB
20222020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2023
2024 * ada-lang.c (resolve): Rename to ada_language::post_parser.
2025 (ada_language_data): Delete la_post_parser initializer.
2026 (ada_language::post_parser): New member function.
2027 * c-lang.c (c_language_data): Delete la_post_parser initializer.
2028 (cplus_language_data): Likewise.
2029 (asm_language_data): Likewise.
2030 (minimal_language_data): Likewise.
2031 * d-lang.c (d_language_data): Likewise.
2032 * f-lang.c (f_language_data): Likewise.
2033 * go-lang.c (go_language_data): Likewise.
2034 * language.c (unknown_language_data): Likewise.
2035 (auto_language_data): Likewise.
2036 * language.h (language_data): Delete la_post_parser field.
2037 (language_defn::post_parser): New member function.
2038 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
2039 * objc-lang.c (objc_language_data): Likewise.
2040 * opencl-lang.c (opencl_language_data): Likewise.
2041 * p-lang.c (pascal_language_data): Likewise.
2042 * parse.c (parse_exp_in_context): Update call to post_parser.
2043 (null_post_parser): Delete definition.
2044 * parser-defs.h (null_post_parser): Delete declaration.
2045 * rust-lang.c (rust_language_data): Delete la_post_parser
2046 initializer.
2047
87afa652
AB
20482020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2049
2050 * ada-lang.c (parse): Rename to ada_language::parser.
2051 (ada_language_data): Delete la_parser initializer.
2052 (ada_language::parser): New member function, implementation from
2053 parse.
2054 * c-lang.c (c_language_data): Delete la_parser initializer.
2055 (cplus_language_data): Likewise.
2056 (asm_language_data): Likewise.
2057 (minimal_language_data): Likewise.
2058 * d-lang.c (d_language_data): Likewise.
2059 (d_language::parser): New member function.
2060 * f-lang.c (f_language_data): Delete la_parser initializer.
2061 (f_language::parser): New member function.
2062 * go-lang.c (go_language_data): Delete la_parser initializer.
2063 (go_language::parser): New member function.
2064 * language.c (unk_lang_parser): Delete.
2065 (language_defn::parser): Define new member function.
2066 (unknown_language_data): Delete la_parser initializer.
2067 (unknown_language::parser): New member function.
2068 (auto_language_data): Delete la_parser initializer.
2069 (auto_language::parser): New member function.
2070 * language.h (language_data): Delete la_parser field.
2071 (language_defn::parser): Declare new member function.
2072 * m2-lang.c (m2_language_data): Delete la_parser initializer.
2073 (m2_language::parser): New member function.
2074 * objc-lang.c (objc_language_data): Delete la_parser initializer.
2075 * opencl-lang.c (opencl_language_data): Likewise.
2076 * p-lang.c (pascal_language_data): Likewise.
2077 (pascal_language::parser): New member function.
2078 * parse.c (parse_exp_in_context): Update call to parser.
2079 * rust-lang.c (rust_language_data): Delete la_parser initializer.
2080 (rust_language::parser): New member function.
2081
37825800
AB
20822020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2083
2084 * top.c (print_gdb_configuration): Print --with-python-libdir
2085 configuration value.
2086
5b860c93
PW
20872020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2088
2089 * NEWS: Mention change to the alias command.
2090
cf00cd6f
PW
20912020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2092
2093 * cli/cli-cmds.c (lookup_cmd_for_default_args)
2094 (alias_command_completer)
2095 (make_alias_options_def_group): New functions.
2096 (alias_opts, alias_option_defs): New struct and array.
2097 (alias_usage_error): Update usage.
2098 (alias_command): Handles optional DEFAULT-ARGS... arguments.
2099 Use option framework.
2100 (_initialize_cli_cmds): Update alias command help.
2101 Update aliases command help.
2102 (show_user):
2103 Add NULL for new default_args lookup_cmd argument.
2104 (valid_command_p): Rename to validate_aliased_command.
2105 Add NULL for new default_args lookup_cmd argument. Verify that the
2106 aliased_command has no default args.
2107 * cli/cli-decode.c (help_cmd): Show aliases definitions.
2108 (lookup_cmd_1, lookup_cmd): New argument default_args.
2109 (add_alias_cmd):
2110 Add NULL for new default_args lookup_cmd argument.
2111 (print_help_for_command): Show default args under the layout
2112 alias some_alias = some_aliased_cmd some_alias_default_arg.
2113 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
2114 xfree default_args in destructor.
2115 * cli/cli-script.c (process_next_line, do_define_command):
2116 Add NULL for new default_args lookup_cmd argument.
2117 * command.h: Declare new default_args argument in lookup_cmd
2118 and lookup_cmd_1.
2119 * completer.c (complete_line_internal_1):
2120 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
2121 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
2122 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
2123 Likewise.
2124 * infcmd.c (_initialize_infcmd): Likewise.
2125 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
2126 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
2127 * python/py-param.c (add_setshow_generic): Likewise.
2128 * remote.c (_initialize_remote): Likewise.
2129 * top.c (execute_command): Prepend default_args if command has some.
2130 (set_verbose):
2131 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
2132 * tracepoint.c (validate_actionline, encode_actions_1):
2133 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
2134
bd920864
TBA
21352020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2136
2137 * jit.c (jit_read_descriptor): Use bool as the return type.
2138 (jit_breakpoint_re_set_internal): Use bool as the return type.
2139 Invert the return value logic; return true if the jit breakpoint
2140 has been successfully initialized.
2141 (jit_inferior_init): Update the call to
2142 jit_breakpoint_re_set_internal.
2143
f8098322
PA
21442020-06-22 Pedro Alves <palves@redhat.com>
2145
2146 PR gdb/25939
2147 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
2148 Use the current inferior instead. Don't return
2149 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
2150 wait again.
2151 * sol-thread.c (sol_thread_target::wait): Don't reference
2152 inferior_ptid.
2153 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
2154 (sol_update_thread_list_callback): Use the current inferior's pid
2155 instead of inferior_ptid.
2156
196535a6
RO
21572020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2158
2159 * procfs.c: Cleanup many comments.
2160
2161 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
2162 (AFTER_WATCHFLAG): Replace by value.
2163
2164 (MAIN_PROC_NAME_FORMAT): Inline ...
2165 (create_procinfo): ... here.
2166
2167 (procfs_debug_inferior): Remove SYS_exec handling.
2168 (syscall_is_exec): Likewise.
2169 (procfs_set_exec_trap): Likewise.
2170
2171 (syscall_is_lwp_exit): Inline in callers.
2172 (syscall_is_exit): Likewise.
2173 (syscall_is_exec): Likewise.
2174 (syscall_is_lwp_create): Likewise.
2175
2176 (invalidate_cache): Remove #if 0 code.
2177
2178 (make_signal_thread_runnable): Remove.
2179 (procfs_target::resume): Remove #if 0 code.
2180
cf6f3e86
RO
21812020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2182
2183 PR gdb/25939
2184 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
2185 call ...
2186 (procfs_target::create_inferior): ... here.
2187
48e9cc84
PW
21882020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2189
2190 * exec.c (validate_exec_file): Ensure the build-id is up to
2191 date by calling reopen_exec_file (that checks file timestamp
2192 to decide to re-read the file).
2193
3922b302
PA
21942020-06-18 Pedro Alves <palves@redhat.com>
2195
2196 PR gdb/25412
2197 * gdbthread.h (delete_thread, delete_thread_silent)
2198 (find_thread_ptid): Update comments.
2199 * thread.c (current_thread_): New global.
2200 (is_current_thread): Move higher, and reimplement.
2201 (inferior_thread): Reimplement.
2202 (set_thread_exited): Use bool. Add assertions.
2203 (add_thread_silent): Simplify thread-reuse handling by always
2204 calling delete_thread.
2205 (delete_thread): Remove intro comment.
2206 (find_thread_ptid): Skip exited threads.
2207 (switch_to_thread_no_regs): Write to current_thread_.
2208 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
2209 INFERIOR_PTID. Clear current_thread_.
2210
6dbdab44
PA
22112020-06-18 Pedro Alves <palves@redhat.com>
2212
2213 * aix-thread.c (pd_update): Use switch_to_thread.
2214
2da4b788
PA
22152020-06-18 Pedro Alves <palves@redhat.com>
2216
2217 * ravenscar-thread.c (ravenscar_thread_target): Update.
2218 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
2219 (ravenscar_thread_target::add_active_thread): ... this. Don't
2220 set m_base_ptid here. Update to avoid referencing inferior_ptid.
2221 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
2222
50838d1b
PA
22232020-06-18 Pedro Alves <palves@redhat.com>
2224
2225 * nat/windows-nat.c (current_windows_thread): Remove.
2226 * nat/windows-nat.h (current_windows_thread): Remove.
2227 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
2228 Adjust.
2229 (display_selectors): Adjust to fetch the current
2230 windows_thread_info based on inferior_ptid.
2231 (fake_create_process): No longer write to current_windows_thread.
2232 (windows_nat_target::get_windows_debug_event):
2233 Don't set inferior_ptid or current_windows_thread.
2234 (windows_nat_target::wait): Adjust to not rely on
2235 current_windows_thread.
2236 (do_initial_windows_stuff): Now a method of windows_nat_target.
2237 Switch to the last_ptid thread.
2238 (windows_nat_target::attach): Adjust.
2239 (windows_nat_target::detach): Use switch_to_no_thread instead of
2240 writing to inferior_ptid directly.
2241 (windows_nat_target::create_inferior): Adjust.
2242
31ce04e9
PA
22432020-06-18 Pedro Alves <palves@redhat.com>
2244
2245 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
2246
1ee1a363
PA
22472020-06-18 Pedro Alves <palves@redhat.com>
2248
2249 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
2250 after creating it, instead of writing to inferior_ptid. Don't
2251 write to inferior_ptid.
2252
6d350754
PA
22532020-06-18 Pedro Alves <palves@redhat.com>
2254
2255 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
2256
5d971d48
PA
22572020-06-18 Pedro Alves <palves@redhat.com>
2258
2259 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
2260 it, instead of writing to inferior_ptid.
2261
86e57d1b
PA
22622020-06-18 Pedro Alves <palves@redhat.com>
2263
2264 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
2265 to inferior_ptid.
2266
f2e1c129
PA
22672020-06-18 Pedro Alves <palves@redhat.com>
2268
2269 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
2270 instead of writing to inferior_ptid directly.
2271
60db1b85
PA
22722020-06-18 Pedro Alves <palves@redhat.com>
2273
2274 * corelow.c (core_target::close): Use switch_to_no_thread instead
2275 of writing to inferior_ptid directly.
2276 (add_to_thread_list, core_target_open): Use switch_to_thread
2277 instead of writing to inferior_ptid directly.
2278
fe7d6a8d
PA
22792020-06-18 Pedro Alves <palves@redhat.com>
2280
2281 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
2282 inferior_ptid.
2283 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
2284 inferior_ptid.
2285 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
2286 inferior_ptid directly.
2287 (darwin_nat_target::init_thread_list): Switch to thread, instead
2288 of writing to inferior_ptid.
2289 (darwin_nat_target::attach): Don't write to inferior_ptid.
2290 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
2291
975f8708
PA
22922020-06-18 Pedro Alves <palves@redhat.com>
2293
2294 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
2295 thread.
2296 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
2297 Instead use switch_to_thread.
2298 (gnu_nat_target::detach): Use switch_to_no_thread
2299 instead of writing to inferior_ptid directly. Used passed-in
2300 inferior instead of looking up the inferior by pid.
2301
1a204730
PA
23022020-06-18 Pedro Alves <palves@redhat.com>
2303
2304 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
2305 inferior_ptid.
2306
ebe84f23
PA
23072020-06-18 Pedro Alves <palves@redhat.com>
2308
2309 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
2310 inferior_ptid.
2311 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
2312 thread.
2313 (nto_procfs_target::detach): Avoid referencing
2314 inferior_ptid. Use switch_to_no_thread instead of writing to
2315 inferior_ptid directly.
2316 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
2317 instead of writing to inferior_ptid directly.
2318 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
2319 to thread.
2320
191f02e5
PA
23212020-06-18 Pedro Alves <palves@redhat.com>
2322
2323 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
2324 after creating it, instead of writing to inferior_ptid.
2325 (gdbsim_target_open): Use switch_to_no_thread instead of writing
2326 to inferior_ptid directly.
2327 (gdbsim_target::wait): Don't write to inferior_ptid.
2328
0ac55310
PA
23292020-06-18 Pedro Alves <palves@redhat.com>
2330
2331 * remote.c (remote_target::remote_notice_new_inferior): Use
2332 switch_to_thread instead of writing to inferior_ptid directly.
2333 (remote_target::add_current_inferior_and_thread): Use
2334 switch_to_no_thread instead of writing to inferior_ptid directly.
2335 (extended_remote_target::attach): Use switch_to_inferior_no_thread
2336 and switch_to_thread instead of using set_current_inferior or
2337 writing to inferior_ptid directly.
2338
5233f39b
PA
23392020-06-18 Pedro Alves <palves@redhat.com>
2340
2341 * tracectf.c (ctf_target_open): Switch to added thread instead of
2342 writing to inferior_ptid directly.
2343 (ctf_target::close): Use switch_to_no_thread instead of writing to
2344 inferior_ptid directly.
2345
087e161b
PA
23462020-06-18 Pedro Alves <palves@redhat.com>
2347
2348 * tracefile-tfile.c (tfile_target_open): Don't write to
2349 inferior_ptid directly, instead switch to added thread.
2350 (tfile_target::close): Use switch_to_no_thread instead of writing
2351 to inferior_ptid directly.
2352
7fb43e53
PA
23532020-06-18 Pedro Alves <palves@redhat.com>
2354
2355 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
2356 (procfs_target::detach): Use switch_to_no_thread
2357 instead of writing to inferior_ptid directly.
2358 (do_attach): Change return type to void. Switch to the added
2359 thread.
2360 (procfs_target::create_inferior): Switch to the added thread.
2361 (procfs_do_thread_registers): Don't write to inferior_ptid.
2362
18493a00
PA
23632020-06-18 Pedro Alves <palves@redhat.com>
2364
2365 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
2366 of writing to inferior_ptid.
2367 (scoped_restore_exited_inferior): Delete.
2368 (handle_vfork_child_exec_or_exit): Simplify using
2369 scoped_restore_current_pspace_and_thread. Use switch_to_thread
2370 instead of writing to inferior_ptid.
2371 (THREAD_STOPPED_BY): Delete.
2372 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
2373 (thread_stopped_by_hw_breakpoint): Delete.
2374 (save_waitstatus): Use
2375 scoped_restore_current_thread+switch_to_thread, and call
2376 target_stopped_by_watchpoint instead of
2377 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
2378 instead of thread_stopped_by_sw_breakpoint, and
2379 target_stopped_by_hw_breakpoint instead of
2380 thread_stopped_by_hw_breakpoint.
2381 (handle_inferior_event)
2382 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
2383 inferior_ptid directly, nor
2384 set_current_inferior/set_current_program_space. Use
2385 switch_to_thread / switch_to_inferior_no_thread instead.
2386
a0776b13
PA
23872020-06-18 Pedro Alves <palves@redhat.com>
2388
2389 * target.c (generic_mourn_inferior): Use switch_to_no_thread
2390 instead of writing to inferior_ptid.
2391
6155c136
PA
23922020-06-18 Pedro Alves <palves@redhat.com>
2393
2394 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
2395 added thread.
2396 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
2397 to the added thread.
2398 (inf_ptrace_target::detach_success): Use switch_to_no_thread
2399 instead of writing to inferior_ptid.
2400
c5316fc6
PA
24012020-06-18 Pedro Alves <palves@redhat.com>
2402
2403 * gdbarch-selftests.c: Include "progspace-and-thread.h".
2404 (register_to_value_test): Mock a program_space too. Heap-allocate
2405 the address space. Don't write to inferior_ptid. Use
2406 switch_to_thread instead.
2407
8df01799
PA
24082020-06-18 Pedro Alves <palves@redhat.com>
2409
2410 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
2411 Delete.
2412 (find_signalled_thread()): New, factored out from
2413 linux_make_corefile_notes and adjusted to handle exited threads.
2414 (linux_make_corefile_notes): Adjust to use the new
2415 find_signalled_thread.
2416
41792d68
PA
24172020-06-18 Pedro Alves <palves@redhat.com>
2418
2419 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
2420 of saving/restoring inferior_ptid.
2421
612f258a
TT
24222020-06-17 Tom Tromey <tom@tromey.com>
2423
2424 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
2425 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
2426 declare.
2427 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
2428
efb763a5
SM
24292020-06-15 Simon Marchi <simon.marchi@efficios.com>
2430
2431 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
2432 of partial symtabs.
2433
2951f6c0
SM
24342020-06-17 Simon Marchi <simon.marchi@efficios.com>
2435
2436 * regformats/reg-arm.dat: Remove.
2437 * regformats/reg-bfin.dat: Remove.
2438 * regformats/reg-cris.dat: Remove.
2439 * regformats/reg-crisv32.dat: Remove.
2440 * regformats/reg-m32r.dat: Remove.
2441 * regformats/reg-tilegx.dat: Remove.
2442 * regformats/reg-tilegx32.dat: Remove.
2443
7d458ea5
SM
24442020-06-17 Simon Marchi <simon.marchi@efficios.com>
2445
2446 * features/Makefile (WHICH): Remove arm files.
2447 * regformats/arm/arm-with-iwmmxt.dat: Remove.
2448 * regformats/arm/arm-with-neon.dat: Remove.
2449 * regformats/arm/arm-with-vfpv2.dat: Remove.
2450 * regformats/arm/arm-with-vfpv3.dat: Remove.
2451
3af96c0d
SM
24522020-06-17 Simon Marchi <simon.marchi@efficios.com>
2453
2454 * features/Makefile (XMLTOC): Remove rx.xml.
2455
b25e22fd
PA
24562020-06-17 Pedro Alves <palves@redhat.com>
2457
2458 * gdbthread.h (thread_control_state) <trap_expected> Update
2459 comments.
2460
a78a19b1
AB
24612020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2462
2463 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
2464 ada_language::lookup_symbol_nonlocal.
2465 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
2466 (ada_language::lookup_symbol_nonlocal): New member function,
2467 implementation from ada_lookup_symbol_nonlocal.
2468 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
2469 initializer.
2470 (cplus_language_data): Delete la_lookup_symbol_nonlocal
2471 initializer.
2472 (cplus_language::lookup_symbol_nonlocal): New member function.
2473 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
2474 (minimal_language_data) Likewise.
2475 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
2476 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
2477 initializer.
2478 (d_language::lookup_symbol_nonlocal): New member function.
2479 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
2480 initializer.
2481 (f_language::lookup_symbol_nonlocal): New member function.
2482 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
2483 initializer.
2484 * language.c (unknown_language_data): Likewise.
2485 (auto_language_data): Likewise.
2486 * language.h (language_data): Delete la_lookup_symbol_nonlocal
2487 field.
2488 (language_defn::lookup_symbol_nonlocal): New member function.
2489 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
2490 initializer.
2491 * objc-lang.c (objc_language_data): Likewise.
2492 * opencl-lang.c (opencl_language_data): Likewise.
2493 * p-lang.c (pascal_language_data): Likewise.
2494 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
2495 rust_language::lookup_symbol_nonlocal.
2496 (rust_language_data): Delete la_lookup_symbol_nonlocal
2497 initializer.
2498 (rust_language::lookup_symbol_nonlocal): New member function,
2499 implementation from rust_lookup_symbol_nonlocal.
2500 * symtab.c (lookup_symbol_aux): Update call to
2501 lookup_symbol_nonlocal.
2502 (basic_lookup_symbol_nonlocal): Rename to...
2503 (language_defn::lookup_symbol_nonlocal): ...this, and update
2504 header comment. Remove language_defn parameter, and replace with
2505 uses of `this'.
2506 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
2507
ebe2334e
AB
25082020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2509
2510 * ada-lang.c (ada_language_data): Delete la_value_print_inner
2511 initializer.
2512 (ada_language::value_print_inner): New member function.
2513 * c-lang.c (c_language_data): Delete la_value_print_inner
2514 initializer.
2515 (cplus_language_data): Likewise.
2516 (asm_language_data): Likewise.
2517 (minimal_language_data): Likewise.
2518 * d-lang.c (d_language_data): Likewise.
2519 (d_language::value_print_inner): New member function.
2520 * f-lang.c (f_language_data): Delete la_value_print_inner
2521 initializer.
2522 (f_language::value_print_inner): New member function.
2523 * f-lang.h (f_value_print_innner): Rename to...
2524 (f_value_print_inner): ...this (note spelling of 'inner').
2525 * f-valprint.c (f_value_print_innner): Rename to...
2526 (f_value_print_inner): ...this (note spelling of 'inner').
2527 * go-lang.c (go_language_data): Delete la_value_print_inner
2528 initializer.
2529 (go_language::value_print_inner): New member function.
2530 * language.c (language_defn::value_print_inner): Define new member
2531 function.
2532 (unk_lang_value_print_inner): Delete.
2533 (unknown_language_data): Delete la_value_print_inner initializer.
2534 (unknown_language::value_print_inner): New member function.
2535 (auto_language_data): Delete la_value_print_inner initializer.
2536 (auto_language::value_print_inner): New member function.
2537 * language.h (language_data): Delete la_value_print_inner field.
2538 (language_defn::value_print_inner): Delcare new member function.
2539 * m2-lang.c (m2_language_data): Delete la_value_print_inner
2540 initializer.
2541 (m2_language::value_print_inner): New member function.
2542 * objc-lang.c (objc_language_data): Delete la_value_print_inner
2543 initializer.
2544 * opencl-lang.c (opencl_language_data): Likewise.
2545 * p-lang.c (pascal_language_data): Likewise.
2546 (pascal_language::value_print_inner): New member function.
2547 * rust-lang.c (rust_language_data): Delete la_value_print_inner
2548 initializer.
2549 (rust_language::value_print_inner): New member function.
2550 * valprint.c (do_val_print): Update call to value_print_inner.
2551
a1d1fa3e
AB
25522020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2553
2554 * ada-lang.c (ada_language_data): Delete la_value_print
2555 initializer.
2556 (ada_language::value_print): New member function.
2557 * c-lang.c (c_language_data): Delete la_value_print initializer.
2558 (cplus_language_data): Likewise.
2559 (asm_language_data): Likewise.
2560 (minimal_language_data): Likewise.
2561 * d-lang.c (d_language_data): Likewise.
2562 * f-lang.c (f_language_data): Likewise.
2563 * go-lang.c (go_language_data): Likewise.
2564 * language.c (unk_lang_value_print): Delete.
2565 (language_defn::value_print): Define new member function.
2566 (unknown_language_data): Delete la_value_print initializer.
2567 (unknown_language::value_print): New member function.
2568 (auto_language_data): Delete la_value_print initializer.
2569 (auto_language::value_print): New member function.
2570 * language.h (language_data): Delete la_value_print field.
2571 (language_defn::value_print): Declare new member function.
2572 (LA_VALUE_PRINT): Update call to value_print.
2573 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
2574 * objc-lang.c (objc_language_data): Likewise.
2575 * opencl-lang.c (opencl_language_data): Likewise.
2576 * p-lang.c (pascal_language_data): Likewise.
2577 (pascal_language::value_print): New member function.
2578 * rust-lang.c (rust_language_data): Delete la_value_print
2579 initializer.
2580
f16a9f57
AB
25812020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2582
2583 * ada-lang.c (ada_watch_location_expression): Rename to
2584 ada_language::watch_location_expression.
2585 (ada_language_data): Delete la_watch_location_expression
2586 initializer.
2587 (ada_language::watch_location_expression): New member function,
2588 implementation from ada_watch_location_expression.
2589 * breakpoint.c (watch_command_1): Update call to
2590 watch_location_expression.
2591 * c-lang.c (c_watch_location_expression): Rename to
2592 language_defn::watch_location_expression.
2593 (c_language_data): Delete la_watch_location_expression
2594 initializer.
2595 (cplus_language_data): Likewise.
2596 (asm_language_data): Likewise.
2597 (minimal_language_data): Likewise.
2598 * c-lang.h (c_watch_location_expression): Delete declaration.
2599 * d-lang.c (d_language_data): Delete la_watch_location_expression
2600 initializer.
2601 * f-lang.c (f_language_data): Likewise.
2602 * go-lang.c (go_language_data): Likewise.
2603 * language.c (language_defn::watch_location_expression): Member
2604 function implementation from c_watch_location_expression.
2605 (unknown_language_data): Delete la_watch_location_expression
2606 initializer.
2607 (auto_language_data): Likewise.
2608 * language.h (language_data): Delete la_watch_location_expression
2609 field.
2610 (language_defn::watch_location_expression): Declare new member
2611 function.
2612 * m2-lang.c (m2_language_data): Delete
2613 la_watch_location_expression initializer.
2614 * objc-lang.c (objc_language_data): Likewise.
2615 * opencl-lang.c (opencl_language_data): Likewise.
2616 * p-lang.c (pascal_language_data): Likewise.
2617 * rust-lang.c (rust_watch_location_expression): Rename to
2618 rust_language::watch_location_expression.
2619 (rust_language_data): Delete la_watch_location_expression
2620 initializer.
2621 (rust_language::watch_location_expression): New member function,
2622 implementation from rust_watch_location_expression.
2623
7e56227d
AB
26242020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2625
2626 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
2627 ada_language::collect_symbol_completion_matches.
2628 (ada_language_data): Delete la_collect_symbol_completion_matches
2629 initializer.
2630 (ada_language::collect_symbol_completion_matches): New member
2631 function, implementation from
2632 ada_collect_symbol_completion_matches.
2633 * c-lang.c (c_language_data): Delete
2634 la_collect_symbol_completion_matches initializer.
2635 (cplus_language_data): Likewise.
2636 (asm_language_data): Likewise.
2637 (minimal_language_data): Likewise.
2638 * d-lang.c (d_language_data): Likewise.
2639 * f-lang.c (f_collect_symbol_completion_matches): Rename to
2640 f_language::collect_symbol_completion_matches.
2641 (f_language_data): Delete la_collect_symbol_completion_matches
2642 initializer.
2643 (f_language::collect_symbol_completion_matches) New member
2644 function, implementation from f_collect_symbol_completion_matches.
2645 * go-lang.c (go_language_data): Delete
2646 la_collect_symbol_completion_matches initializer.
2647 * language.c (unknown_language_data): Likewise.
2648 (auto_language_data): Likewise.
2649 * language.h (language_data): Delete
2650 la_collect_symbol_completion_matches field.
2651 (language_defn::collect_symbol_completion_matches): New member
2652 function.
2653 * m2-lang.c (m2_language_data): Delete
2654 la_collect_symbol_completion_matches initializer.
2655 * objc-lang.c (objc_language_data): Likewise.
2656 * opencl-lang.c (opencl_language_data): Likewise.
2657 * p-lang.c (pascal_language_data): Likewise.
2658 * rust-lang.c (rust_language_data): Likewise.
2659 * symtab.c (default_collect_symbol_completion_matches): Delete.
2660 (collect_symbol_completion_matches): Update call to
2661 collect_symbol_completion_matches.
2662 (collect_symbol_completion_matches_type): Likewise.
2663 * symtab.h (default_collect_symbol_completion_matches): Delete
2664 declaration.
2665
53fc67f8
AB
26662020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2667
2668 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
2669 (ada_language_data): Delete la_word_break_characters initializer.
2670 (ada_language::word_break_characters): New member function.
2671 * c-lang.c (c_language_data): Delete la_word_break_characters
2672 initializer.
2673 (cplus_language_data): Likewise.
2674 (asm_language_data): Likewise.
2675 (minimal_language_data): Likewise.
2676 * completer.c: Update global comment.
2677 (advance_to_expression_complete_word_point): Update call to
2678 word_break_characters.
2679 (complete_files_symbols): Likewise.
2680 (complete_line_internal_1): Likewise.
2681 (default_completer_handle_brkchars): Likewise.
2682 (skip_quoted_chars): Likewise.
2683 * d-lang.c (d_language_data): Delete la_word_break_characters
2684 initializer.
2685 * f-lang.c (f_word_break_characters): Delete.
2686 (f_language_data): Delete la_word_break_characters initializer.
2687 (f_language::word_break_characters): New member function.
2688 * go-lang.c (go_language_data): Delete la_word_break_characters
2689 initializer.
2690 * language.c (unknown_language_data): Likewise.
2691 (auto_language_data): Likewise.
2692 * language.h (default_word_break_characters): Move declaration to
2693 earlier in the file.
2694 (language_data): Delete la_word_break_characters field.
2695 (language_defn::word_break_characters): New member function.
2696 * m2-lang.c (m2_language_data): Delete la_word_break_characters
2697 initializer.
2698 * objc-lang.c (objc_language_data): Likewise.
2699 * opencl-lang.c (opencl_language_data): Likewise.
2700 * p-lang.c (pascal_language_data): Likewise.
2701 * rust-lang.c (rust_language_data): Likewise.
2702
c9debfb9
AB
27032020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2704
2705 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
2706 (ada_language_data): Delete la_get_symbol_name_matcher
2707 initializer.
2708 (language_defn::get_symbol_name_matcher_inner): New member
2709 function.
2710 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
2711 initializer.
2712 (cplus_language_data): Likewise.
2713 (cplus_language::get_symbol_name_matcher_inner): New member
2714 function.
2715 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
2716 (minimal_language_data): Likewise.
2717 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
2718 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
2719 initializer.
2720 * dictionary.c (iter_match_first_hashed): Update call to
2721 get_symbol_name_matcher.
2722 (iter_match_next_hashed): Likewise.
2723 (iter_match_next_linear): Likewise.
2724 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
2725 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
2726 initializer.
2727 (f_language::get_symbol_name_matcher_inner): New member function.
2728 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
2729 initializer.
2730 * language.c (default_symbol_name_matcher): Update header comment,
2731 make static.
2732 (language_defn::get_symbol_name_matcher): New definition.
2733 (language_defn::get_symbol_name_matcher_inner): Likewise.
2734 (get_symbol_name_matcher): Delete.
2735 (unknown_language_data): Delete la_get_symbol_name_matcher
2736 initializer.
2737 (auto_language_data): Likewise.
2738 * language.h (language_data): Delete la_get_symbol_name_matcher
2739 field.
2740 (language_defn::get_symbol_name_matcher): New member function.
2741 (language_defn::get_symbol_name_matcher_inner): Likewise.
2742 (default_symbol_name_matcher): Delete declaration.
2743 * linespec.c (find_methods): Update call to
2744 get_symbol_name_matcher.
2745 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
2746 initializer.
2747 * minsyms.c (lookup_minimal_symbol): Update call to
2748 get_symbol_name_matcher.
2749 (iterate_over_minimal_symbols): Likewise.
2750 * objc-lang.c (objc_language_data): Delete
2751 la_get_symbol_name_matcher initializer.
2752 * opencl-lang.c (opencl_language_data): Likewise.
2753 * p-lang.c (pascal_language_data): Likewise.
2754 * psymtab.c (psymbol_name_matches): Update call to
2755 get_symbol_name_matcher.
2756 * rust-lang.c (rust_language_data): Delete
2757 la_get_symbol_name_matcher initializer.
2758 * symtab.c (symbol_matches_search_name): Update call to
2759 get_symbol_name_matcher.
2760 (compare_symbol_name): Likewise.
2761
9a49ad8c
AB
27622020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2763
2764 * ada-lang.c (ada_language_data): Delete la_compute_program
2765 initializer.
2766 * c-lang.c (c_language_data): Likewise.
2767 (c_language::compute_program): New member function.
2768 (cplus_language_data): Delete la_compute_program initializer.
2769 (cplus_language::compute_program): New member function.
2770 (asm_language_data): Delete la_compute_program initializer.
2771 (minimal_language_data): Likewise.
2772 * c-lang.h (c_compute_program): Update comment.
2773 (cplus_compute_program): Likewise.
2774 * compile/compile-c-support.c (c_compute_program): Likewise.
2775 (cplus_compute_program): Likewise.
2776 * compile/compile.c (compile_to_object): Update call to
2777 la_compute_program.
2778 * d-lang.c (d_language_data): Delete la_compute_program
2779 initializer.
2780 * f-lang.c (f_language_data): Likewise.
2781 * go-lang.c (go_language_data): Likewise.
2782 * language.c (unknown_language_data): Likewise.
2783 (auto_language_data): Likewise.
2784 * language.h (language_data): Delete la_compute_program field.
2785 (language_defn::compute_program): New member function.
2786 * m2-lang.c (m2_language_data): Delete la_compute_program
2787 initializer.
2788 * objc-lang.c (objc_language_data): Likewise.
2789 * opencl-lang.c (opencl_language_data): Likewise.
2790 * p-lang.c (pascal_language_data): Likewise.
2791 * rust-lang.c (rust_language_data): Likewise.
2792
eff93b4d
AB
27932020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2794
2795 * ada-lang.c (ada_language_data) Delete
2796 la_class_name_from_physname initializer.
2797 * c-lang.c (c_language_data): Likewise.
2798 (cplus_language_data): Likewise.
2799 (cplus_language::class_name_from_physname): New member function.
2800 (asm_language_data): Delete la_class_name_from_physname
2801 initializer.
2802 (minimal_language_data): Likewise.
2803 * d-lang.c (d_language_data): Likewise.
2804 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
2805 method on language_defn class.
2806 (guess_full_die_structure_name): Likewise.
2807 * f-lang.c (f_language_data): Delete la_class_name_from_physname
2808 initializer.
2809 * go-lang.c (go_language_data): Likewise.
2810 * language.c (language_class_name_from_physname): Delete.
2811 (unk_lang_class_name): Delete.
2812 (unknown_language_data): Delete la_class_name_from_physname
2813 initializer.
2814 (auto_language_data): Likewise.
2815 * language.h (language_data): Delete la_class_name_from_physname
2816 field.
2817 (language_defn::class_name_from_physname): New function.
2818 (language_class_name_from_physname): Delete declaration.
2819 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
2820 initializer.
2821 * objc-lang.c (objc_language_data): Likewise.
2822 * opencl-lang.c (opencl_language_data): Likewise.
2823 * p-lang.c (pascal_language_data): Likewise.
2824 * rust-lang.c (rust_language_data): Likewise.
2825
de543742
TT
28262020-06-16 Tom Tromey <tom@tromey.com>
2827
2828 * tui/tui-data.h (STATUS_NAME): New macro.
2829 * tui/tui-layout.c (tui_remove_some_windows)
2830 (initialize_known_windows, tui_register_window)
2831 (tui_layout_split::remove_windows, initialize_layouts)
2832 (tui_new_layout_command): Don't use hard-coded window names.
2833
a350efd4
TT
28342020-06-16 Tom Tromey <tom@tromey.com>
2835
2836 PR tui/25348:
2837 * tui/tui.c (tui_ensure_readline_initialized): Rename from
2838 tui_initialize_readline. Only run once. Call rl_initialize.
2839 * tui/tui.h (tui_ensure_readline_initialized): Rename from
2840 tui_initialize_readline.
2841 * tui/tui-io.c (tui_setup_io): Call
2842 tui_ensure_readline_initialized.
2843 * tui/tui-interp.c (tui_interp::init): Update.
2844
39ec0490
TT
28452020-06-16 Tom Tromey <tom@tromey.com>
2846
2847 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
2848 Also preserve the status window.
2849
d2d1ea20
TT
28502020-06-16 Tom Tromey <tom@tromey.com>
2851
2852 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
2853 where m_window==nullptr.
2854
66920317
TT
28552020-06-15 Tom Tromey <tromey@adacore.com>
2856
2857 * windows-nat.c (windows_nat::handle_output_debug_string):
2858 Update.
2859 (windows_nat::handle_ms_vc_exception): Update.
2860 * target.h (target_read_string): Change API.
2861 * target.c (target_read_string): Change API.
2862 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
2863 Update.
2864 * solib-frv.c (frv_current_sos): Update.
2865 * solib-dsbt.c (dsbt_current_sos): Update.
2866 * solib-darwin.c (darwin_current_sos): Update.
2867 * linux-thread-db.c (inferior_has_bug): Update.
2868 * expprint.c (print_subexp_standard): Update.
2869 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
2870 (ada_exception_message_1): Update.
2871
a5d871dd
TT
28722020-06-15 Tom Tromey <tromey@adacore.com>
2873
2874 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
2875
670e35fa
TT
28762020-06-15 Tom Tromey <tromey@adacore.com>
2877
2878 * valprint.c (read_string): Update comment.
2879 * target.c (MIN): Remove.
2880 (target_read_string): Rewrite.
2881
f5272a3b
TT
28822020-06-15 Tom Tromey <tromey@adacore.com>
2883
2884 * corefile.c (read_memory_string): Remove.
2885 * ada-valprint.c (ada_value_print_ptr): Update.
2886 * ada-lang.h (ada_tag_name): Change return type.
2887 * ada-lang.c (type_from_tag): Update.
2888 (ada_tag_name_from_tsd): Change return type. Use
2889 target_read_string.
2890 (ada_tag_name): Likewise.
2891 * gdbcore.h (read_memory_string): Don't declare.
2892
2c074f49
HD
28932020-06-14 Hannes Domani <ssbssa@yahoo.de>
2894
2895 * symtab.c (rbreak_command): Ignore Windows drive colon.
2896
6a17d503
SM
28972020-06-12 Simon Marchi <simon.marchi@efficios.com>
2898
2899 * NEWS: Mention removed GDBserver host support.
2900
453c733f
NC
29012020-06-12 Nelson Chu <nelson.chu@sifive.com>
2902
2903 * features/riscv/rebuild-csr-xml.sh: Updated.
2904
2b4e6a3f
TT
29052020-06-11 Tom Tromey <tom@tromey.com>
2906
2907 PR gdb/18318:
2908 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
2909
4412332f
JG
29102020-06-09 Jonny Grant <jg@jguk.org>
29112020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
2912
2913 * main.c (captured_main_1): Don't print new line after help.
2914 (print_gdb_help): add mailing list and IRC channel information
2915 to --help. Add new lines between items in the footer. Remove
2916 quotes around bug url.
2917
2f33032a
KS
29182020-06-11 Keith Seitz <keiths@redhat.com>
2919
2920 PR gdb/21356
2921 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
2922 Resolve typedefs for type length calculations.
2923
7ab96794
TV
29242020-06-10 Tom de Vries <tdevries@suse.de>
2925
2926 PR ada/24713
2927 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
2928 (write_psymbols): Enable .gdb_index for ada.
2929 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
2930 ada.
2931
e5f3ece2
TV
29322020-06-10 Tom de Vries <tdevries@suse.de>
2933
2934 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
2935 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
2936 namei" instead of "const char *name" argument.
2937 (dw2_map_matching_symbols): Use "offset_type namei" variant of
2938 dw2_symtab_iter_init.
2939
940da03e
SM
29402020-06-08 Simon Marchi <simon.marchi@efficios.com>
2941
2942 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
2943 to use type::field and field::type instead.
2944
b6cdac4b
SM
29452020-06-08 Simon Marchi <simon.marchi@efficios.com>
2946
2947 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
2948 to use field::type instead.
2949
5d14b6e5
SM
29502020-06-08 Simon Marchi <simon.marchi@efficios.com>
2951
2952 * gdbtypes.h (struct field) <type, set_type>: New methods.
2953 Rename `type` field to...
2954 <m_type>: ... this. Change references throughout to use type or
2955 set_type methods.
2956 (FIELD_TYPE): Use field::type. Change call sites that modify
2957 the field's type to use field::set_type instead.
2958
3d967001
SM
29592020-06-08 Simon Marchi <simon.marchi@efficios.com>
2960
2961 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
2962 to use type::index_type instead.
2963
262abc0d
SM
29642020-06-08 Simon Marchi <simon.marchi@efficios.com>
2965
2966 * gdbtypes.h (struct type) <index_type, set_index_type>: New
2967 methods.
2968 (TYPE_INDEX_TYPE): Use type::index_type.
2969 * gdbtypes.c (create_array_type_with_stride): Likewise.
2970
82836c92
TT
29712020-06-07 Tom Tromey <tom@tromey.com>
2972
2973 * valprint.c (generic_val_print_float): Remove "embedded_offset"
2974 parameter.
2975 (generic_value_print): Update.
2976
940dace9
AB
29772020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
2978
2979 Revert commit 982a38f60b0.
2980 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
2981
982a38f6
AB
29822020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
2983
2984 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
2985 avoid use after free.
2986
82f06518
TV
29872020-06-05 Tom de Vries <tdevries@suse.de>
2988
2989 * NEWS: Fix typos.
2990
f8c41851
SM
29912020-06-04 Simon Marchi <simon.marchi@efficios.com>
2992
2993 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
2994 the per_bfd object.
2995 (dwarf2_read_debug_names): Likewise.
2996 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
2997 object when re-using a per_bfd object with an index.
2998
f9b5d5ea
TV
29992020-06-03 Tom de Vries <tdevries@suse.de>
3000
3001 PR symtab/26046
3002 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
3003 children for C++.
3004 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
3005 DW_TAG_subprogram.
3006
f6eee2d0
AB
30072020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3008
3009 * ada-lang.c (ada_language_data): Delete skip_trampoline
3010 initializer.
3011 * c-lang.c (c_language_data): Likewise.
3012 (cplus_language_data): Likewise.
3013 (cplus_language::skip_trampoline): New member function.
3014 (asm_language_data): Delete skip_trampoline initializer.
3015 (minimal_language_data): Likewise.
3016 * d-lang.c (d_language_data): Likewise.
3017 * f-lang.c (f_language_data): Likewise.
3018 * go-lang.c (go_language_data): Likewise.
3019 * language.c (unk_lang_trampoline): Delete function.
3020 (skip_language_trampoline): Update.
3021 (unknown_language_data): Delete skip_trampoline initializer.
3022 (auto_language_data): Likewise.
3023 * language.h (language_data): Delete skip_trampoline field.
3024 (language_defn::skip_trampoline): New function.
3025 * m2-lang.c (m2_language_data): Delete skip_trampoline
3026 initializer.
3027 * objc-lang.c (objc_skip_trampoline): Delete function, move
3028 implementation to objc_language::skip_trampoline.
3029 (objc_language_data): Delete skip_trampoline initializer.
3030 (objc_language::skip_trampoline): New member function with
3031 implementation from objc_skip_trampoline.
3032 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
3033 initializer.
3034 * p-lang.c (pascal_language_data): Likewise.
3035 * rust-lang.c (rust_language_data): Likewise.
3036
0a50df5d
AB
30372020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3038
3039 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
3040 (ada_language::demangle): New member function.
3041 * c-lang.c (c_language_data): Delete la_demangle initializer.
3042 (cplus_language_data): Delete la_demangle initializer.
3043 (cplus_language::demangle): New member function.
3044 (asm_language_data): Delete la_demangle initializer.
3045 (minimal_language_data): Delete la_demangle initializer.
3046 * d-lang.c (d_language_data): Delete la_demangle initializer.
3047 (d_language::demangle): New member function.
3048 * f-lang.c (f_language_data): Delete la_demangle initializer.
3049 (f_language::demangle): New member function.
3050 * go-lang.c (go_language_data): Delete la_demangle initializer.
3051 (go_language::demangle): New member function.
3052 * language.c (language_demangle): Update.
3053 (unk_lang_demangle): Delete.
3054 (unknown_language_data): Delete la_demangle initializer.
3055 (unknown_language::demangle): New member function.
3056 (auto_language_data): Delete la_demangle initializer.
3057 (auto_language::demangle): New member function.
3058 * language.h (language_data): Delete la_demangle field.
3059 (language_defn::demangle): New function.
3060 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
3061 * objc-lang.c (objc_language_data): Delete la_demangle
3062 initializer.
3063 (objc_language::demangle): New member function.
3064 * opencl-lang.c (opencl_language_data): Delete la_demangle
3065 initializer.
3066 * p-lang.c (pascal_language_data): Likewise.
3067 * rust-lang.c (rust_language_data): Likewise.
3068 (rust_language::demangle): New member function.
3069
fbfb0a46
AB
30702020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3071
3072 * ada-lang.c (ada_language_data): Delete la_print_type
3073 initializer.
3074 (ada_language::print_type): New member function.
3075 * c-lang.c (c_language_data): Delete la_print_type initializer.
3076 (c_language::print_type): New member function.
3077 (cplus_language_data): Delete la_print_type initializer.
3078 (cplus_language::print_type): New member function.
3079 (asm_language_data): Delete la_print_type initializer.
3080 (asm_language::print_type): New member function.
3081 (minimal_language_data): Delete la_print_type initializer.
3082 (minimal_language::print_type): New member function.
3083 * d-lang.c (d_language_data): Delete la_print_type initializer.
3084 (d_language::print_type): New member function.
3085 * f-lang.c (f_language_data): Delete la_print_type initializer.
3086 (f_language::print_type): New member function.
3087 * go-lang.c (go_language_data): Delete la_print_type initializer.
3088 (go_language::print_type): New member function.
3089 * language.c (unk_lang_print_type): Delete.
3090 (unknown_language_data): Delete la_print_type initializer.
3091 (unknown_language::print_type): New member function.
3092 (auto_language_data): Delete la_print_type initializer.
3093 (auto_language::print_type): New member function.
3094 * language.h (language_data): Delete la_print_type field.
3095 (language_defn::print_type): New function.
3096 (LA_PRINT_TYPE): Update.
3097 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
3098 (m2_language::print_type): New member function.
3099 * objc-lang.c (objc_language_data): Delete la_print_type
3100 initializer.
3101 (objc_language::print_type): New member function.
3102 * opencl-lang.c (opencl_print_type): Delete, implementation moved
3103 to opencl_language::print_type.
3104 (opencl_language_data): Delete la_print_type initializer.
3105 (opencl_language::print_type): New member function, implementation
3106 from opencl_print_type.
3107 * p-lang.c (pascal_language_data): Delete la_print_type
3108 initializer.
3109 (pascal_language::print_type): New member function.
3110 * rust-lang.c (rust_print_type): Delete, implementation moved to
3111 rust_language::print_type.
3112 (rust_language_data): Delete la_print_type initializer.
3113 (rust_language::print_type): New member function, implementation
3114 from rust_print_type.
3115
6f827019
AB
31162020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3117
3118 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
3119 implementation moves to...
3120 (ada_language::sniff_from_mangled_name): ...here. Update return
3121 type.
3122 (ada_language_data): Delete la_sniff_from_mangled_name
3123 initializer.
3124 * c-lang.c (c_language_data): Likewise.
3125 (cplus_language_data): Likewise.
3126 (cplus_language::sniff_from_mangled_name): New member function,
3127 implementation taken from gdb_sniff_from_mangled_name.
3128 (asm_language_data): Delete la_sniff_from_mangled_name
3129 initializer.
3130 (minimal_language_data): Likewise.
3131 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
3132 implementation moves to cplus_language::sniff_from_mangled_name.
3133 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
3134 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
3135 moves to...
3136 (d_language::sniff_from_mangled_name): ...here.
3137 (d_language_data): Delete la_sniff_from_mangled_name initializer.
3138 * f-lang.c (f_language_data): Likewise.
3139 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
3140 moves to...
3141 (go_language::sniff_from_mangled_name): ...here.
3142 (go_language_data): Delete la_sniff_from_mangled_name initializer.
3143 * language.c (language_sniff_from_mangled_name): Delete.
3144 (unknown_language_data): Delete la_sniff_from_mangled_name
3145 initializer.
3146 (auto_language_data): Likewise.
3147 * language.h (language_data): Delete la_sniff_from_mangled_name
3148 field.
3149 (language_defn::sniff_from_mangled_name): New function.
3150 (language_sniff_from_mangled_name): Delete declaration.
3151 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
3152 field.
3153 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
3154 implementation moves to...
3155 (objc_language::sniff_from_mangled_name): ...here.
3156 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
3157 * opencl-lang.c (opencl_language_data): Likewise.
3158 * p-lang.c (pascal_language_data): Likewise.
3159 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
3160 implementation moves to...
3161 (rust_language::sniff_from_mangled_name): ...here.
3162 (rust_language_data): Delete la_sniff_from_mangled_name
3163 initializer.
3164 * symtab.c (symbol_find_demangled_name): Call
3165 sniff_from_mangled_name member function.
3166
fb8006fd
AB
31672020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3168
3169 * ada-lang.c (ada_language_data): Delete la_search_name_hash
3170 initializer.
3171 * c-lang.c (c_language_data): Likewise.
3172 (cplus_language_data): Likewise.
3173 (cplus_language::search_name_hash): New member function.
3174 (asm_language_data): Delete la_search_name_hash initializer.
3175 (minimal_language_data): Likewise.
3176 * d-lang.c (d_language_data): Likewise.
3177 * dictionary.c (default_search_name_hash): Rename to...
3178 (language_defn::search_name_hash): ...this.
3179 * f-lang.c (f_language_data): Likewise.
3180 (f_language::search_name_hash): New member function.
3181 * go-lang.c (go_language_data): Delete la_search_name_hash
3182 initializer.
3183 * language.c (unknown_language_data): Likewise.
3184 (auto_language_data): Likewise.
3185 * language.h (struct language_data): Delete la_search_name_hash
3186 field.
3187 (language_defn::search_name_hash): Declare new member function.
3188 (default_search_name_hash): Delete declaration.
3189 * m2-lang.c (m2_language_data): Delete la_search_name_hash
3190 initializer.
3191 * objc-lang.c (objc_language_data): Likewise.
3192 * opencl-lang.c (opencl_language_data): Likewise.
3193 * p-lang.c (pascal_language_data): Likewise.
3194 * rust-lang.c (rust_language_data): Likewise.
3195 * symtab.c (search_name_hash): Update call.
3196
8e25bafe
AB
31972020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3198
3199 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
3200 initializer.
3201 * c-lang.c (class compile_instance): Declare.
3202 (c_language_data): Delete la_get_compile_instance initializer.
3203 (c_language::get_compile_instance): New member function.
3204 (cplus_language_data): Delete la_get_compile_instance initializer.
3205 (cplus_language::get_compile_instance): New member function.
3206 (asm_language_data): Delete la_get_compile_instance initializer.
3207 (minimal_language_data): Likewise.
3208 * c-lang.h (c_get_compile_context): Update comment.
3209 (cplus_get_compile_context): Update comment.
3210 * compile/compile.c (compile_to_object): Update calls, don't rely
3211 on function pointer being NULL.
3212 * d-lang.c (d_language_data): Delete la_get_compile_instance
3213 initializer.
3214 * f-lang.c (f_language_data): Likewise.
3215 * go-lang.c (go_language_data): Likewise.
3216 * language.c (unknown_language_data): Likewise.
3217 (auto_language_data): Likewise.
3218 * language.h (language_data): Delete la_get_compile_instance field.
3219 (language_defn::get_compile_instance): New member function.
3220 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
3221 initializer.
3222 * objc-lang.c (objc_language_data): Likewise.
3223 * opencl-lang.c (opencl_language_data): Likewise.
3224 * p-lang.c (pascal_language_data): Likewise.
3225 * rust-lang.c (rust_language_data): Likewise.
3226
4009ee92
AB
32272020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3228
3229 * ada-lang.c (ada_add_all_symbols): Update comment.
3230 (ada_iterate_over_symbols): Delete, move implementation to...
3231 (ada_language::iterate_over_symbols): ...here, a new member
3232 function, rewrite to use range based for loop.
3233 (ada_language_data): Delete la_iterate_over_symbols initializer.
3234 * c-lang.c (c_language_data): Likewise.
3235 (cplus_language_data): Likewise.
3236 (asm_language_data): Likewise.
3237 (minimal_language_data): Likewise.
3238 * d-lang.c (d_language_data): Likewise.
3239 * f-lang.c (f_language_data): Likewise.
3240 * go-lang.c (go_language_data): Likewise.
3241 * language.c (unknown_language_data): Likewise.
3242 (auto_language_data): Likewise.
3243 * language.h (language_data): Delete la_iterate_over_symbols field.
3244 (language_defn::iterate_over_symbols): New member function.
3245 (LA_ITERATE_OVER_SYMBOLS): Update.
3246 * linespec.c (iterate_over_all_matching_symtabs): Update.
3247 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
3248 initializer.
3249 * objc-lang.c (objc_language_data): Likewise.
3250 * opencl-lang.c (opencl_language_data): Likewise.
3251 * p-lang.c (pascal_language_data): Likewise.
3252 * rust-lang.c (rust_language_data): Likewise.
3253
54f4ca46
AB
32542020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3255
3256 * ada-lang.c (ada_language_data): Delete
3257 la_lookup_transparent_type initializer.
3258 * c-lang.c (c_language_data): Likewise.
3259 (cplus_language_data): Likewise.
3260 (cplus_language::lookup_transparent_type): New member function.
3261 (asm_language_data): Delete la_lookup_transparent_type
3262 initializer.
3263 (minimal_language_data): Likewise.
3264 * d-lang.c (d_language_data): Likewise.
3265 * f-lang.c (f_language_data): Likewise.
3266 * go-lang.c (go_language_data): Likewise.
3267 * language.c (unknown_language_data): Likewise.
3268 (auto_language_data): Likewise.
3269 * language.h (struct language_data): Delete
3270 la_lookup_transparent_type field.
3271 (language_defn::lookup_transparent_type): New member function.
3272 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
3273 initializer.
3274 * objc-lang.c (objc_language_data): Likewise.
3275 * opencl-lang.c (opencl_language_data): Likewise.
3276 * p-lang.c (pascal_language_data): Likewise.
3277 * rust-lang.c (rust_language_data): Likewise.
3278 * symtab.c (symbol_matches_domain): Update call.
3279
1fb314aa
AB
32802020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3281
3282 * ada-lang.c (ada_language_arch_info): Delete function, move
3283 implementation to...
3284 (ada_language::language_arch_info): ...here, a new member
3285 function.
3286 (ada_language_data): Delete la_language_arch_info.
3287 * c-lang.c (c_language_data): Likewise.
3288 (c_language::language_arch_info): New member function.
3289 (cplus_language_arch_info): Delete function, move
3290 implementation to...
3291 (cplus_language::language_arch_info): ...here, a new member
3292 function.
3293 (cplus_language_data): Delete la_language_arch_info.
3294 (asm_language_data): Likewise.
3295 (asm_language::language_arch_info): New member function.
3296 (minimal_language_data): Delete la_language_arch_info.
3297 (minimal_language::language_arch_info): New member function.
3298 * d-lang.c (d_language_arch_info): Delete function, move
3299 implementation to...
3300 (d_language::language_arch_info): ...here, a new member
3301 function.
3302 (d_language_data): Delete la_language_arch_info.
3303 * f-lang.c (f_language_arch_info): Delete function, move
3304 implementation to...
3305 (f_language::language_arch_info): ...here, a new member
3306 function.
3307 (f_language_data): Delete la_language_arch_info.
3308 * go-lang.c (go_language_arch_info): Delete function, move
3309 implementation to...
3310 (go_language::language_arch_info): ...here, a new member
3311 function.
3312 (go_language_data): Delete la_language_arch_info.
3313 * language.c (unknown_language_data): Likewise.
3314 (unknown_language::language_arch_info): New member function.
3315 (auto_language_data): Delete la_language_arch_info.
3316 (auto_language::language_arch_info): New member function.
3317 (language_gdbarch_post_init): Update call to
3318 la_language_arch_info.
3319 * language.h (language_data): Delete la_language_arch_info
3320 function pointer.
3321 (language_defn::language_arch_info): New function.
3322 * m2-lang.c (m2_language_arch_info): Delete function, move
3323 implementation to...
3324 (m2_language::language_arch_info): ...here, a new member
3325 function.
3326 (m2_language_data): Delete la_language_arch_info.
3327 * objc-lang.c (objc_language_arch_info): Delete function, move
3328 implementation to...
3329 (objc_language::language_arch_info): ...here, a new member
3330 function.
3331 (objc_language_data): Delete la_language_arch_info.
3332 * opencl-lang.c (opencl_language_arch_info): Delete function, move
3333 implementation to...
3334 (opencl_language::language_arch_info): ...here, a new member
3335 function.
3336 (opencl_language_data): Delete la_language_arch_info.
3337 * p-lang.c (pascal_language_arch_info): Delete function, move
3338 implementation to...
3339 (pascal_language::language_arch_info): ...here, a new member
3340 function.
3341 (pascal_language_data): Delete la_language_arch_info.
3342 * rust-lang.c (rust_language_arch_info): Delete function, move
3343 implementation to...
3344 (rust_language::language_arch_info): ...here, a new member
3345 function.
3346 (rust_language_data): Delete la_language_arch_info.
3347
48448202
AB
33482020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3349
3350 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
3351 initializer.
3352 * c-lang.c (c_language_data): Likewise.
3353 (cplus_language_data): Likewise.
3354 (cplus_language::pass_by_reference_info): New method.
3355 (asm_language_data): Delete la_pass_by_reference initializer.
3356 (minimal_language_data): Likewise.
3357 * cp-abi.c (cp_pass_by_reference): Remove use of
3358 default_pass_by_reference.
3359 * d-lang.c (d_language_data): Likewise.
3360 * f-lang.c (f_language_data): Likewise.
3361 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
3362 default_pass_by_reference.
3363 * go-lang.c (go_language_data): Likewise.
3364 * language.c (language_pass_by_reference): Update.
3365 (default_pass_by_reference): Delete.
3366 (unknown_language_data): Delete la_pass_by_reference
3367 initializer.
3368 (auto_language_data): Likewise.
3369 * language.h (struct language_data): Delete la_pass_by_reference
3370 field.
3371 (language_defn::pass_by_reference_info): New member function.
3372 (default_pass_by_reference): Delete declaration.
3373 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
3374 initializer.
3375 * objc-lang.c (objc_language_data): Likewise.
3376 * opencl-lang.c (opencl_language_data): Likewise.
3377 * p-lang.c (pascal_language_data): Likewise.
3378 * rust-lang.c (rust_language_data): Likewise.
3379
15e5fd35
AB
33802020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3381
3382 * ada-lang.c (ada_read_var_value): Delete function, move
3383 implementation to...
3384 (ada_language::read_var_value): ...here.
3385 (ada_language_data): Delete la_read_var_value initializer.
3386 * c-lang.c (c_language_data): Likewise.
3387 (cplus_language_data): Likewise.
3388 (minimal_language_data): Likewise.
3389 * d-lang.c (d_language_data): Likewise.
3390 * f-lang.c (f_language_data): Likewise.
3391 * findvar.c (default_read_var_value): Rename to...
3392 (language_defn::read_var_value): ...this.
3393 * findvar.c (read_var_value): Update header comment, and change to
3394 call member function instead of function pointer.
3395 * go-lang.c (go_language_data): Likewise.
3396 * language.c (unknown_language_data): Delete la_read_var_value
3397 initializer.
3398 (auto_language_data): Likewise.
3399 * language.h (struct language_data): Delete la_read_var_value
3400 field.
3401 (language_defn::read_var_value): New member function.
3402 (default_read_var_value): Delete declaration.
3403 * m2-lang.c (m2_language_data): Delete la_read_var_value
3404 initializer.
3405 * objc-lang.c (objc_language_data): Likewise.
3406 * opencl-lang.c (opencl_language_data): Likewise.
3407 * p-lang.c (pascal_language_data): Likewise.
3408 * rust-lang.c (rust_language_data): Likewise.
3409 * value.h (default_read_var_value): Delete declaration.
3410
5bd40f2a
AB
34112020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3412
3413 * ada-lang.c (ada_print_array_index): Delete function, move
3414 implementation to...
3415 (ada_language::print_array_index): ...here.
3416 (ada_language_data): Delete la_print_array_index initializer.
3417 * c-lang.c (c_language_data): Likewise.
3418 (cplus_language_data): Likewise.
3419 (minimal_language_data): Likewise.
3420 * d-lang.c (d_language_data): Likewise.
3421 * f-lang.c (f_language_data): Likewise.
3422 * go-lang.c (go_language_data): Likewise.
3423 * language.c (default_print_array_index): Delete function, move
3424 implementation to...
3425 (language_defn::print_array_index): ...here.
3426 (unknown_language_data): Delete la_print_array_index initializer.
3427 (auto_language_data): Likewise.
3428 * language.h (struct language_data): Delete la_print_array_index
3429 field.
3430 (language_defn::print_array_index): New member function.
3431 (LA_PRINT_ARRAY_INDEX): Update.
3432 (default_print_array_index): Delete declaration.
3433 * m2-lang.c (m2_language_data): Delete la_print_array_index
3434 initializer.
3435 * objc-lang.c (objc_language_data): Likewise.
3436 * opencl-lang.c (opencl_language_data): Likewise.
3437 * p-lang.c (pascal_language_data): Likewise.
3438 * rust-lang.c (rust_language_data): Likewise.
3439
0874fd07
AB
34402020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3441
3442 * gdb/ada-lang.c (ada_language_defn): Convert to...
3443 (ada_language_data): ...this.
3444 (class ada_language): New class.
3445 (ada_language_defn): New static global.
3446 * gdb/c-lang.c (c_language_defn): Convert to...
3447 (c_language_data): ...this.
3448 (class c_language): New class.
3449 (c_language_defn): New static global.
3450 (cplus_language_defn): Convert to...
3451 (cplus_language_data): ...this.
3452 (class cplus_language): New class.
3453 (cplus_language_defn): New static global.
3454 (asm_language_defn): Convert to...
3455 (asm_language_data): ...this.
3456 (class asm_language): New class.
3457 (asm_language_defn): New static global.
3458 (minimal_language_defn): Convert to...
3459 (minimal_language_data): ...this.
3460 (class minimal_language): New class.
3461 (minimal_language_defn): New static global.
3462 * gdb/d-lang.c (d_language_defn): Convert to...
3463 (d_language_data): ...this.
3464 (class d_language): New class.
3465 (d_language_defn): New static global.
3466 * gdb/f-lang.c (f_language_defn): Convert to...
3467 (f_language_data): ...this.
3468 (class f_language): New class.
3469 (f_language_defn): New static global.
3470 * gdb/go-lang.c (go_language_defn): Convert to...
3471 (go_language_data): ...this.
3472 (class go_language): New class.
3473 (go_language_defn): New static global.
3474 * gdb/language.c (unknown_language_defn): Remove declaration.
3475 (current_language): Initialize to nullptr, real initialization is
3476 moved to _initialize_language.
3477 (languages): Delete global.
3478 (language_defn::languages): Define.
3479 (set_language_command): Use language_defn::languages.
3480 (set_language): Likewise.
3481 (range_error): Likewise.
3482 (language_enum): Likewise.
3483 (language_def): Likewise.
3484 (add_set_language_command): Use language_def::languages for the
3485 language list, and language_def to lookup language pointers.
3486 (skip_language_trampoline): Use language_defn::languages.
3487 (unknown_language_defn): Convert to...
3488 (unknown_language_data): ...this.
3489 (class unknown_language): New class.
3490 (unknown_language_defn): New static global.
3491 (auto_language_defn): Convert to...
3492 (auto_language_data): ...this.
3493 (class auto_language): New class.
3494 (auto_language_defn): New static global.
3495 (language_gdbarch_post_init): Use language_defn::languages.
3496 (_initialize_language): Initialize current_language.
3497 * gdb/language.h (struct language_defn): Rename to...
3498 (struct language_data): ...this.
3499 (struct language_defn): New.
3500 (auto_language_defn): Delete.
3501 (unknown_language_defn): Delete.
3502 (minimal_language_defn): Delete.
3503 (ada_language_defn): Delete.
3504 (asm_language_defn): Delete.
3505 (c_language_defn): Delete.
3506 (cplus_language_defn): Delete.
3507 (d_language_defn): Delete.
3508 (f_language_defn): Delete.
3509 (go_language_defn): Delete.
3510 (m2_language_defn): Delete.
3511 (objc_language_defn): Delete.
3512 (opencl_language_defn): Delete.
3513 (pascal_language_defn): Delete.
3514 (rust_language_defn): Delete.
3515 * gdb/m2-lang.c (m2_language_defn): Convert to...
3516 (m2_language_data): ...this.
3517 (class m2_language): New class.
3518 (m2_language_defn): New static global.
3519 * gdb/objc-lang.c (objc_language_defn): Convert to...
3520 (objc_language_data): ...this.
3521 (class objc_language): New class.
3522 (objc_language_defn): New static global.
3523 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
3524 (opencl_language_data): ...this.
3525 (class opencl_language): New class.
3526 (opencl_language_defn): New static global.
3527 * gdb/p-lang.c (pascal_language_defn): Convert to...
3528 (pascal_language_data): ...this.
3529 (class pascal_language): New class.
3530 (pascal_language_defn): New static global.
3531 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
3532 language pointer, update comment format.
3533 * gdb/rust-lang.c (rust_language_defn): Convert to...
3534 (rust_language_data): ...this.
3535 (class rust_language): New class.
3536 (rust_language_defn): New static global.
3537
1313c56e
AB
35382020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
3539
3540 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
3541 member variable.
3542 <m_stmt_at_address>: New member variable.
3543 (lnp_state_machine::record_line): Don't record some lines, update
3544 tracking of is_stmt at the same address.
3545 (lnp_state_machine::lnp_state_machine): Initialise new member
3546 variables.
3547
b7ed9f3d
ST
35482020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
3549
3550 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
3551 "-include gnu-nat-mig.h".
3552 * gnu-nat-mig.h: New file.
3553 * gnu-nat.c: Include "gnu-nat-mig.h".
3554 (exc_server, msg_reply_server, notify_server,
3555 process_reply_server): Remove declarations.
3556
14a8ad62
ST
35572020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3558
3559 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
3560 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
3561 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
3562 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
3563 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
3564 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
3565 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
3566 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
3567 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
3568 to gnu_nat_target class.
3569 * gnu-nat.c: Likewise.
3570 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
3571 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
3572 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
3573 object.
3574 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
3575 instead of `gnu_target'.
3576
0af5e106
ST
35772020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3578
3579 * i386-gnu-tdep.c: Include "gdbcore.h"
3580 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
3581 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
3582 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
3583 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
3584 i386_gnu_sigcontext_addr): New functions
3585 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
3586 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
3587 tdep.
3588
078f2fc9
ST
35892020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3590
3591 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
3592 before fork_inferior call. Avoid calling it if target_is_pushed returns
3593 true.
3594
53dff92c
ST
35952020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3596
3597 * gnu-nat.h (gnu_target): New variable declaration.
3598 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
3599 gnu_target.
3600 * gnu-nat.c (gnu_target): New variable.
3601 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
3602 add_thread_silent, and add_thread calls.
3603 (gnu_nat_target::create_inferior): Pass gnu_target to
3604 add_thread_silent, thread_change_ptid call.
3605 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
3606 call.
3607
5a8b8627
ST
36082020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3609
3610 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
3611 (gnu_nat_target::find_memory_regions): Remove unused
3612 `old_address' variable.
3613
366f550a
ST
36142020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3615
3616 * gnu-nat.c: Include "gdbarch.h".
3617
f14871bf
ST
36182020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3619
3620 * reply_mig_hack.awk (Error return): Cast function through
3621 void *, to bypass compiler function call check.
3622
c6887cfb
ST
36232020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3624
3625 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
3626 $(srcdir)/reply_mig_hack.awk.
3627
6930bffe
ST
36282020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3629
3630 * gnu-nat.h (gnu_debug_flag): Set type to bool.
3631
112c22ed
JG
36322020-05-30 Jonny Grant <jg@jguk.org>
3633
3634 * configure.ac (ACX_BUGURL): change bug URL to https.
3635
f68f85b5
PA
36362020-05-30 Pedro Alves <palves@redhat.com>
3637
3638 * cp-support.c (replace_typedefs_template): New.
3639 (replace_typedefs_qualified_name): Handle
3640 DEMANGLE_COMPONENT_TEMPLATE.
3641
976ca316
SM
36422020-05-29 Simon Marchi <simon.marchi@efficios.com>
3643
3644 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
3645 dwarf2/index-cache.h, dwarf2/index-write.c,
3646 dwarf2/index-write.h, dwarf2/line-header.c,
3647 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
3648 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
3649 variables and fields from `dwarf2_per_objfile` to just
3650 `per_objfile` throughout.
3651
989ade05
SM
36522020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
3653
3654 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
3655 <push_dwarf_reg_entry_value>: Add comment.
3656
c47bae85
KB
36572020-05-28 Kevin Buettner <kevinb@redhat.com>
3658 Keith Seitz <keiths@redhat.com>
3659
3660 * python/python.c (do_start_initialization): Call PyEval_SaveThread
3661 instead of PyEval_ReleaseLock.
3662 (class gdbpy_gil): Move to earlier in file.
3663 (finalize_python): Set gdb_python_initialized.
3664 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
3665 when not initialized.
3666
44486dcf
SM
36672020-05-28 Simon Marchi <simon.marchi@efficios.com>
3668
3669 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
3670 <push_dwarf_reg_entry_value>: Remove assert. Override
3671 per_objfile with caller_per_objfile.
3672
f030440d
TV
36732020-05-28 Tom de Vries <tdevries@suse.de>
3674
3675 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
3676 PR gold/15646 workaround to symbol kind "type".
3677
f0fbb768
TT
36782020-05-27 Tom Tromey <tromey@adacore.com>
3679
3680 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
3681
af0b2a3e
TT
36822020-05-27 Tom Tromey <tromey@adacore.com>
3683
3684 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
3685 Use htab_find_with_hash.
3686 <add_abbrev>: Remove "abbrev_number" parameter.
3687 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
3688 "abbrev_number" parameter. Use htab_find_slot_with_hash.
3689 (hash_abbrev): Add comment.
3690 (abbrev_table::lookup_abbrev): Move to header file.
3691 (abbrev_table::read): Update.
3692
7d00ffec
TT
36932020-05-27 Tom Tromey <tromey@adacore.com>
3694
3695 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
3696 method.
3697 <canonical_name>: New member.
3698 <raw_name>: Rename from "name".
3699 (partial_die_info): Initialize canonical_name.
3700 (scan_partial_symbols): Check raw_name.
3701 (partial_die_parent_scope, partial_die_full_name)
3702 (add_partial_symbol, add_partial_subprogram)
3703 (add_partial_enumeration, load_partial_dies): Use "name" method.
3704 (partial_die_info::name): New method.
3705 (partial_die_info::read, guess_partial_die_structure_name)
3706 (partial_die_info::fixup): Update.
3707
697bba18
TT
37082020-05-27 Tom Tromey <tromey@adacore.com>
3709
3710 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
3711 <get_ref_die_offset>: Inline.
3712 <get_ref_die_offset_complaint>: New method.
3713 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
3714 (attribute::get_ref_die_offset_complaint): Rename from
3715 get_ref_die_offset. Just issue complaint.
3716
c17ace43
HD
37172020-05-27 Hannes Domani <ssbssa@yahoo.de>
3718
3719 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
3720
96445f0b
HD
37212020-05-27 Hannes Domani <ssbssa@yahoo.de>
3722
3723 * exec.c (exec_file_attach): Use errno value of first openp failure.
3724
ac637ec3
HD
37252020-05-27 Hannes Domani <ssbssa@yahoo.de>
3726
3727 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
3728 Don't close thread handle.
3729
17ee85fc
TT
37302020-05-27 Tom Tromey <tom@tromey.com>
3731 Simon Marchi <simon.marchi@efficios.com>
3732
3733 * objfiles.h (struct objfile) <partial_symtabs>: Now a
3734 shared_ptr.
3735 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
3736 member.
3737 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
3738 dwarf2_per_bfd_objfile_data_key>: New globals.
3739 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
3740 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
3741 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
3742 shared.
3743 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
3744 short-circuit when sharing.
3745 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
3746 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
3747
39b16f87
SM
37482020-05-27 Simon Marchi <simon.marchi@efficios.com>
3749
3750 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
3751 to...
3752 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
3753 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
3754
fcf23d5b
SM
37552020-05-27 Simon Marchi <simon.marchi@efficios.com>
3756
3757 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
3758 build_name_components, find_name_components_bounds>:
3759 Add per_objfile parameter.
3760 (struct mapped_index) <symbol_name_at>: Likewise.
3761 (struct mapped_debug_names): Remove constructor.
3762 <dwarf2_per_objfile>: Remove field.
3763 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
3764 (mapped_index_base::find_name_components_bounds,
3765 mapped_index_base::build_name_components,
3766 dw2_expand_symtabs_matching_symbol): Likewise.
3767 (class mock_mapped_index) <symbol_name_at>: Likewise.
3768 (check_match): Likewise.
3769 (check_find_bounds_finds): Likewise.
3770 (test_mapped_index_find_name_component_bounds): Update.
3771 (CHECK_MATCH): Update.
3772 (dw2_expand_symtabs_matching): Update.
3773 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
3774 per_objfile parameter.
3775 <find_vec_in_debug_names>: Likewise.
3776 <m_per_objfile>: New field.
3777 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
3778 parameter.
3779 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
3780 (dw2_debug_names_iterator::next): Update.
3781 (dw2_debug_names_lookup_symbol): Update.
3782 (dw2_debug_names_expand_symtabs_for_function): Update.
3783 (dw2_debug_names_map_matching_symbols): Update.
3784 (dw2_debug_names_expand_symtabs_matching): Update.
3785 (dwarf2_read_debug_names): Update.
3786
7188ed02
SM
37872020-05-27 Simon Marchi <simon.marchi@efficios.com>
3788
3789 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
3790 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
3791 move to dwarf2_per_objfile.
3792 <read_in_chain>: Remove.
3793 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
3794 remove_all_cus, age_comp_units>: New methods.
3795 <m_dwarf2_cus>: New member.
3796 (struct dwarf2_per_cu_data) <cu>: Remove.
3797 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
3798 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
3799 moved to methods of dwarf2_per_objfile.
3800 (dwarf2_clear_marks): Remove.
3801 (dwarf2_queue_item::~dwarf2_queue_item): Update.
3802 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
3803 (dwarf2_per_bfd::free_cached_comp_units): Remove.
3804 (dwarf2_per_objfile::remove_all_cus): New.
3805 (class free_cached_comp_units) <~free_cached_comp_units>:
3806 Update.
3807 (load_cu): Update.
3808 (dw2_do_instantiate_symtab): Adjust.
3809 (fill_in_sig_entry_from_dwo_entry): Adjust.
3810 (cutu_reader::init_tu_and_read_dwo_dies): Update.
3811 (cutu_reader::cutu_reader): Likewise.
3812 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
3813 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
3814 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
3815 and dwarf2_per_objfile::age_comp_units.
3816 (load_partial_comp_unit): Update.
3817 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
3818 (process_queue): Likewise.
3819 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
3820 backlink.
3821 (dwarf2_read_addr_index): Likewise.
3822 (follow_die_offset): Likewise.
3823 (dwarf2_fetch_die_loc_sect_off): Likewise.
3824 (dwarf2_fetch_constant_bytes): Likewise.
3825 (dwarf2_fetch_die_type_sect_off): Likewise.
3826 (follow_die_sig_1): Likewise.
3827 (load_full_type_unit): Likewise.
3828 (read_signatured_type): Likewise.
3829 (dwarf2_cu::dwarf2_cu): Don't set cu field.
3830 (dwarf2_cu::~dwarf2_cu): Remove.
3831 (dwarf2_per_objfile::get_cu): New.
3832 (dwarf2_per_objfile::set_cu): New.
3833 (age_cached_comp_units): Rename to...
3834 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
3835 to std::unordered_map.
3836 (free_one_cached_comp_unit): Rename to...
3837 (dwarf2_per_objfile::remove_cu): ... this. Adjust
3838 to std::unordered_map.
3839 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
3840 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
3841 a dwarf2_per_objfile in data.
3842 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
3843 (dwarf2_clear_marks): Remove.
3844
2e671100
SM
38452020-05-27 Simon Marchi <simon.marchi@efficios.com>
3846
3847 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
3848 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
3849 (init_tu_and_read_dwo_dies): Likewise.
3850 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
3851 (cutu_reader::cutu_reader): Likewise.
3852 (load_partial_comp_unit): Likewise.
3853 (process_psymtab_comp_unit): Update.
3854 (build_type_psymtabs_1): Update.
3855 (process_skeletonless_type_unit): Update.
3856 (load_full_comp_unit): Update.
3857 (find_partial_die): Update.
3858 (dwarf2_read_addr_index): Update.
3859 (read_signatured_type): Update.
3860
2e6a9f79
SM
38612020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3862
3863 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
3864 m_header_read_in>: New fields.
3865 <get_header>: New method.
3866 * dwarf2/read.c (per_cu_header_read_in): Remove.
3867 (dwarf2_per_cu_data::get_header): New.
3868 (dwarf2_per_cu_data::addr_size): Update.
3869 (dwarf2_per_cu_data::offset_size): Update.
3870 (dwarf2_per_cu_data::ref_addr_size): Update.
3871
1b555f17
SM
38722020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3873
3874 * dwarf2/read.c (load_cu): Return dwarf2_cu.
3875 (dw2_do_instantiate_symtab): Update.
3876 (queue_and_load_all_dwo_tus): Change parameter from
3877 dwarf2_per_cu_data to dwarf2_cu.
3878 (dwarf2_fetch_die_loc_sect_off): Update.
3879 (dwarf2_fetch_constant_bytes): Update.
3880 (dwarf2_fetch_die_type_sect_off): Update.
3881
8fc0b21d
SM
38822020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3883
3884 * dwarf2/read.c (process_full_comp_unit,
3885 process_full_type_unit): Remove per_cu, per_objfile paramters.
3886 Add dwarf2_cu parameter.
3887 (process_queue): Update.
3888
168c9250
SM
38892020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3890
3891 * dwarf2/read.c (create_cu_from_index_list): Replace
3892 dwarf2_per_objfile parameter with dwarf2_per_bfd.
3893 (create_cus_from_index_list): Likewise.
3894 (create_cus_from_index): Likewise.
3895 (create_signatured_type_table_from_index): Likewise.
3896 (create_cus_from_debug_names_list): Likewise.
3897 (create_cus_from_debug_names): Likewise.
3898 (dwarf2_read_gdb_index): Update.
3899 (dwarf2_read_debug_names): Update.
3900
e286671b
TT
39012020-05-27 Tom Tromey <tom@tromey.com>
3902 Simon Marchi <simon.marchi@efficios.com>
3903
3904 * dwarf2/read.h (struct dwarf2_per_objfile)
3905 <get_type_for_signatured_type, set_type_for_signatured_type>:
3906 New methods.
3907 <m_type_map>: New member.
3908 (struct signatured_type) <type>: Remove.
3909 * dwarf2/read.c
3910 (dwarf2_per_objfile::get_type_for_signatured_type,
3911 dwarf2_per_objfile::set_type_for_signatured_type): New.
3912 (get_signatured_type): Use new methods.
3913
8adb8487
TT
39142020-05-27 Tom Tromey <tom@tromey.com>
3915 Simon Marchi <simon.marchi@efficios.com>
3916
3917 * dwarf2/read.h (struct type_unit_group_unshareable): New.
3918 (struct dwarf2_per_objfile) <type_units>: New member.
3919 <get_type_unit_group_unshareable>: New method.
3920 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
3921 num_symtabs, symtabs>: Remove; move to
3922 type_unit_group_unshareable.
3923 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
3924 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
3925 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
3926
127bbf4b
SM
39272020-05-27 Simon Marchi <simon.marchi@efficios.com>
3928
3929 * dwarf2/read.h (struct dwarf2_per_cu_data):
3930 <dwarf2_per_objfile>: Remove.
3931 * dwarf2/read.c (create_cu_from_index_list): Don't assign
3932 dwarf2_per_objfile.
3933 (create_signatured_type_table_from_index): Likewise.
3934 (create_signatured_type_table_from_debug_names): Likewise.
3935 (create_debug_type_hash_table): Likewise.
3936 (fill_in_sig_entry_from_dwo_entry): Likewise.
3937 (create_type_unit_group): Likewise.
3938 (read_comp_units_from_section): Likewise.
3939 (create_cus_hash_table): Likewise.
3940
f6e649dd
SM
39412020-05-27 Simon Marchi <simon.marchi@efficios.com>
3942
3943 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
3944 dwarf2_per_cu_data::dwarf2_per_objfile.
3945 (compute_compunit_symtab_includes): Likewise.
3946 (dwarf2_cu::start_symtab): Likewise.
3947
aa66c379
SM
39482020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3949
3950 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
3951 parameter.
3952 * dwarf2/read.c (get_die_type_at_offset): Likewise.
3953 (read_namespace_alias): Update.
3954 (lookup_die_type): Update.
3955 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
3956 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
3957 Update.
3958 (disassemble_dwarf_expression): Update.
3959
120ce1b5
SM
39602020-05-27 Simon Marchi <simon.marchi@efficios.com>
3961
3962 * dwarf2/read.h (struct dwarf2_queue_item): Add
3963 dwarf2_per_objfile parameter, assign new parameter.
3964 <per_objfile>: New field.
3965 * dwarf2/read.c (free_one_cached_comp_unit): Add
3966 dwarf2_per_objfile parameter.
3967 (queue_comp_unit): Likewise.
3968 (dw2_do_instantiate_symtab): Update.
3969 (process_psymtab_comp_unit): Update.
3970 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
3971 (process_imported_unit_die): Update.
3972 (queue_and_load_dwo_tu): Update.
3973 (follow_die_offset): Update.
3974 (follow_die_sig_1): Update.
3975
9f47c707
SM
39762020-05-27 Simon Marchi <simon.marchi@efficios.com>
3977
3978 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
3979 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
3980 (read_call_site_scope): Assign per_objfile.
3981 (dwarf2_per_cu_data::objfile): Remove.
3982 * gdbtypes.h (struct call_site) <per_objfile>: New member.
3983 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
3984 dwarf2_per_objfile parameter.
3985 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
3986 dwarf2_per_objfile parameter.
3987 (dwarf_expr_reg_to_entry_parameter): Add output
3988 dwarf2_per_objfile parameter.
3989 (locexpr_get_frame_base): Update.
3990 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
3991 <push_dwarf_reg_entry_value>: Update.
3992 <call_site_to_target_addr>: Update.
3993 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
3994 parameter.
3995 (value_of_dwarf_reg_entry): Update.
3996 (rw_pieced_value): Update.
3997 (indirect_synthetic_pointer): Update.
3998 (dwarf2_evaluate_property): Update.
3999 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
4000 parameter.
4001 (locexpr_read_variable): Update.
4002 (locexpr_get_symbol_read_needs): Update.
4003 (loclist_read_variable): Update.
4004
14095eb3
SM
40052020-05-27 Simon Marchi <simon.marchi@efficios.com>
4006
4007 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
4008 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
4009 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
4010 parameter.
4011 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
4012 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
4013 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
4014 parameter.
4015 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
4016 sect_variable_value): Add dwarf2_per_objfile parameter.
4017 (class dwarf_evaluate_loc_desc) <dwarf_call,
4018 dwarf_variable_value>: Update.
4019 (fetch_const_value_from_synthetic_pointer): Add
4020 dwarf2_per_objfile parameter.
4021 (fetch_const_value_from_synthetic_pointer): Update.
4022 (coerced_pieced_ref): Update.
4023 (class symbol_needs_eval_context) <dwarf_call,
4024 dwarf_variable_value>: Update.
4025 (dwarf2_compile_expr_to_ax): Update.
4026
3c3cd3d4
SM
40272020-05-27 Simon Marchi <simon.marchi@efficios.com>
4028
4029 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
4030 parameter.
4031 (dwarf2_evaluate_loc_desc_full): Update.
4032
82ca3f51
SM
40332020-05-27 Simon Marchi <simon.marchi@efficios.com>
4034
4035 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
4036 parameter.
4037 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
4038 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
4039 dwarf2_per_objfile parameter.
4040 (decode_debug_loc_dwo_addresses): Likewise.
4041 (dwarf2_find_location_expression): Update.
4042 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
4043 (locexpr_describe_location_piece): Add dwarf2_per_objfile
4044 parameter.
4045 (disassemble_dwarf_expression): Add dwarf2_per_objfile
4046 parameter.
4047 (locexpr_describe_location_1): Likewise.
4048 (locexpr_describe_location): Update.
4049
4b167ea1
SM
40502020-05-27 Simon Marchi <simon.marchi@efficios.com>
4051
4052 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
4053 Remove.
4054 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
4055 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
4056 (dwarf2_compile_property_to_c): Update.
4057 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
4058 use text offset from objfile.
4059 (locexpr_tracepoint_var_ref): Update.
4060 (locexpr_generate_c_location): Update.
4061 (loclist_describe_location): Update.
4062 (loclist_tracepoint_var_ref): Update.
4063 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
4064 dwarf2_per_objfile parameter.
4065 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
4066 use text offset from objfile.
4067 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
4068
89b07335
SM
40692020-05-27 Simon Marchi <simon.marchi@efficios.com>
4070
4071 * dwarf2/expr.h (struct dwarf_expr_context)
4072 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
4073 <offset>: Remove.
4074 <per_objfile>: New member.
4075 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
4076 dwarf2_per_objfile parameter. Don't set offset, set
4077 per_objfile.
4078 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
4079 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
4080 a dwarf2_per_objfile object instead of an offset.
4081 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
4082 constructor.
4083 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
4084 to dwarf2_expr_executor constructor. Don't set offset.
4085 (dwarf2_fetch_cfa_info): Update.
4086 (struct dwarf2_frame_cache) <text_offset>: Remove.
4087 <per_objfile>: New field.
4088 (dwarf2_frame_cache): Update.
4089 (dwarf2_frame_prev_register): Update.
4090 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
4091 <dwarf_evaluate_loc_desc>: Add constructor.
4092 (dwarf2_evaluate_loc_desc_full): Update.
4093 (dwarf2_locexpr_baton_eval): Update.
4094 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
4095 Add constructor.
4096 (dwarf2_loc_desc_get_symbol_read_needs): Update.
4097
293e7e51
SM
40982020-05-27 Simon Marchi <simon.marchi@efficios.com>
4099
4100 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
4101 addr_sized_int_type>: Move to dwarf2_cu.
4102 <int_type>: Move to dwarf2_per_objfile.
4103 (struct dwarf2_per_objfile) <int_type>: Move here.
4104 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
4105 addr_sized_int_type>: Move here.
4106 (read_func_scope): Update.
4107 (read_array_type): Update.
4108 (read_tag_string_type): Update.
4109 (attr_to_dynamic_prop): Update.
4110 (dwarf2_per_cu_data::int_type): Rename to...
4111 (dwarf2_per_objfile::int_type): ... this.
4112 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
4113 (dwarf2_cu::addr_sized_int_type): ... this.
4114 (read_subrange_type): Update.
4115 (dwarf2_per_cu_data::addr_type): Rename to...
4116 (dwarf2_cu::addr_type): ... this.
4117 (set_die_type): Update.
4118
64874a40
SM
41192020-05-27 Simon Marchi <simon.marchi@efficios.com>
4120
4121 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
4122 data through per_cu->cu.
4123
4ab09049
SM
41242020-05-27 Simon Marchi <simon.marchi@efficios.com>
4125
4126 * dwarf2/read.c (lookup_dwo_comp_unit): Change
4127 dwarf2_per_cu_data parameter fo dwarf2_cu.
4128 (lookup_dwo_type_unit): Likewise.
4129 (read_cutu_die_from_dwo): Likewise.
4130 (lookup_dwo_unit): Likewise.
4131 (open_and_init_dwo_file): Likewise.
4132 (lookup_dwo_cutu): Likewise.
4133 (lookup_dwo_comp_unit): Likewise.
4134 (lookup_dwo_type_unit): Likewise.
4135 (cutu_reader::init_tu_and_read_dwo_dies): Update.
4136 (cutu_reader::cutu_reader): Update.
4137
47b14e86
SM
41382020-05-27 Simon Marchi <simon.marchi@efficios.com>
4139
4140 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
4141 parameter.
4142 (process_full_type_unit): Likewise.
4143 (process_queue): Update.
4144
43182c09
SM
41452020-05-27 Simon Marchi <simon.marchi@efficios.com>
4146
4147 * dwarf2/read.c (recursively_compute_inclusions): Add
4148 dwarf2_per_objfile parameter.
4149 (compute_compunit_symtab_includes): Likewise.
4150 (process_cu_includes): Update.
4151
7aa104c4
SM
41522020-05-27 Simon Marchi <simon.marchi@efficios.com>
4153
4154 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
4155 parameter.
4156 (create_type_unit_group): Update.
4157 (process_psymtab_comp_unit_reader): Update.
4158 (build_type_psymtabs_reader): Update.
4159
e3beb21d
SM
41602020-05-27 Simon Marchi <simon.marchi@efficios.com>
4161
4162 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
4163 object through m_this_cu->cu.
4164
d460f660
SM
41652020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4166
4167 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
4168 the info parameter.
4169 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
4170
ab432490
SM
41712020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4172
4173 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
4174 per_objfile parameter.
4175 (load_full_type_unit): Add per_objfile parameter.
4176 (read_signatured_type): Likewise.
4177 (load_full_comp_unit): Likewise.
4178 (load_cu): Likewise.
4179 (dw2_do_instantiate_symtab): Likewise.
4180 (dw2_get_file_names): Likewise.
4181 (dw2_map_symtabs_matching_filename): Update.
4182 (dw_expand_symtabs_matching_file_matcher): Update.
4183 (dw2_map_symbol_filenames): Update.
4184 (process_psymtab_comp_unit): Add per_objfile parameter.
4185 (build_type_psymtabs_1): Update.
4186 (process_skeletonless_type_unit): Update.
4187 (dwarf2_build_psymtabs_hard): Update.
4188 (load_partial_comp_unit): Add per_objfile parameter.
4189 (scan_partial_symbols): Update.
4190 (load_full_comp_unit): Add per_objfile parameter.
4191 (process_imported_unit_die): Update.
4192 (create_cus_hash_table): Update.
4193 (find_partial_die): Update.
4194 (dwarf2_read_addr_index): Update.
4195 (follow_die_offset): Update.
4196 (dwarf2_fetch_die_loc_sect_off): Update.
4197 (dwarf2_fetch_constant_bytes): Update.
4198 (dwarf2_fetch_die_type_sect_off): Update.
4199 (follow_die_sig_1): Update.
4200 (load_full_type_unit): Add per_objfile parameter.
4201 (read_signatured_type): Likewise.
4202
313bad1b
SM
42032020-05-27 Simon Marchi <simon.marchi@efficios.com>
4204
4205 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
4206 of objfile_name.
4207
c3699833
SM
42082020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4209
4210 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
4211 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
4212 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
4213 field.
4214 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
4215 (create_cus_from_index): Update.
4216 (dwarf2_read_gdb_index): Update.
4217 (create_cus_from_debug_names): Update.
4218 (dwarf2_read_debug_names): Update.
4219 (get_abbrev_section_for_cu): Update.
4220 (create_all_comp_units): Update.
4221 (read_attribute_value): Update.
4222 (get_debug_line_section): Update.
4223 * dwarf2/index-cache.c (index_cache::store): Update.
4224 * dwarf2/index-write.c (save_gdb_index_command): Update.
4225 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
4226
1859c670
SM
42272020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4228
4229 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
4230 member.
4231 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
4232 dwarf2_per_cu_data::per_bfd.
4233 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
4234 (create_type_unit_group): Likewise.
4235 (queue_comp_unit): Remove reference to
4236 per_cu->dwarf2_per_objfile.
4237 (maybe_queue_comp_unit): Likewise.
4238 (fill_in_sig_entry_from_dwo_entry): Assign new field.
4239 (create_cus_hash_table): Assign new field.
4240
5e22e966
SM
42412020-05-27 Simon Marchi <simon.marchi@efficios.com>
4242
4243 * dwarf2/read.c: Replace
4244 dwarf2_cu->per_cu->dwarf2_per_objfile references with
4245 dwarf2_cu->per_objfile throughout.
4246
97a1449a
SM
42472020-05-27 Simon Marchi <simon.marchi@efficios.com>
4248
4249 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
4250 parameter, don't use per_cu->dwarf2_per_objfile.
4251 (dw2_instantiate_symtab): Likewise.
4252 (dw2_find_last_source_symtab): Update.
4253 (dw2_map_expand_apply): Update.
4254 (dw2_lookup_symbol): Update.
4255 (dw2_expand_symtabs_for_function): Update.
4256 (dw2_expand_all_symtabs): Update.
4257 (dw2_expand_symtabs_with_fullname): Update.
4258 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
4259 don't use per_cu->dwarf2_per_objfile.
4260 (dw2_expand_marked_cus): Update.
4261 (dw2_find_pc_sect_compunit_symtab): Update.
4262 (dw2_debug_names_lookup_symbol): Update.
4263 (dw2_debug_names_expand_symtabs_for_function): Update.
4264 (dw2_debug_names_map_matching_symbols): Update.
4265 (dwarf2_psymtab::expand_psymtab): Update.
4266
9e021579
SM
42672020-05-27 Simon Marchi <simon.marchi@efficios.com>
4268
4269 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
4270 <per_objfile>: New member.
4271 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
4272 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
4273 call to dwarf2_cu.
4274 (cutu_reader::cutu_reader): Update.
4275 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
4276
ae090bdb
SM
42772020-05-27 Simon Marchi <simon.marchi@efficios.com>
4278
4279 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
4280 struct dwarf2_per_objfile.
4281 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
4282 dwarf2_per_bfd.
4283 * dwarf2/read.c (set_die_type): Update.
4284 (get_die_type_at_offset): Update.
4285
af758d11
SM
42862020-05-27 Tom Tromey <tom@tromey.com>
4287 Simon Marchi <simon.marchi@efficios.com>
4288
4289 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
4290 method.
4291 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
4292 get_symtab, set_symtab>: New methods.
4293 <m_symtabs>: New field.
4294 (struct dwarf2_psymtab): Derive from partial_symtab.
4295 <readin_p, get_compunit_symtab>: Declare methods.
4296 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
4297 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
4298 New methods.
4299 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
4300 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
4301 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
4302 (dw2_symtab_iter_next, dw2_print_stats)
4303 (dw2_expand_symtabs_with_fullname)
4304 (dw2_expand_symtabs_matching_one)
4305 (dw_expand_symtabs_matching_file_matcher)
4306 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
4307 (dw2_debug_names_iterator::next)
4308 (dw2_debug_names_map_matching_symbols)
4309 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
4310 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
4311 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
4312 New methods.
4313 (get_compunit_symtab, process_full_comp_unit)
4314 (process_full_type_unit): Update.
4315 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
4316
5989a64e
SM
43172020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4318
4319 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
4320 then introduce a new dwarf2_per_objfile type.
4321 <read_line_string>: Move to the new dwarf2_per_objfile type.
4322 <objfile>: Likewise.
4323 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
4324 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
4325 dwarf2_per_objfile->per_bfd.
4326 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
4327 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
4328 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
4329 (dwarf2_per_bfd::free_cached_comp_units): ... this.
4330 (dwarf2_has_info): Allocate dwarf2_per_bfd.
4331 (dwarf2_per_objfile::locate_sections): Rename to...
4332 (dwarf2_per_bfd::locate_sections): ... this.
4333 (dwarf2_per_objfile::get_cutu): Rename to...
4334 (dwarf2_per_bfd::get_cutu): ... this.
4335 (dwarf2_per_objfile::get_cu): Rename to...
4336 (dwarf2_per_bfd::get_cu): ... this.
4337 (dwarf2_per_objfile::get_tu): Rename to...
4338 (dwarf2_per_bfd::get_tu): ... this.
4339 (dwarf2_per_objfile::allocate_per_cu): Rename to...
4340 (dwarf2_per_bfd::allocate_per_cu): ... this.
4341 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
4342 (dwarf2_per_bfd::allocate_signatured_type): ... this.
4343 (get_gdb_index_contents_ftype): Change parameter from
4344 dwarf2_per_objfile to dwarf2_per_bfd.
4345 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
4346 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
4347
a50264ba
TT
43482020-05-27 Tom Tromey <tom@tromey.com>
4349 Simon Marchi <simon.marchi@efficios.com>
4350
4351 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
4352 (allocate_piece_closure): Set "per_objfile" member.
4353 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
4354 (locexpr_describe_location, loclist_describe_location): Use new
4355 member.
4356 * dwarf2/read.c (read_call_site_scope)
4357 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
4358 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
4359 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
4360 handle_data_member_location): Set per_objfile member.
4361 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
4362 member.
4363 (struct dwarf2_loclist_baton) <per_objfile>: New member.
4364
d3473f0c
TT
43652020-05-27 Tom Tromey <tom@tromey.com>
4366
4367 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
4368 allocate_signatured_type>: Declare new methods.
4369 <m_num_psymtabs>: New member.
4370 (struct dwarf2_per_cu_data) <index>: New member.
4371 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
4372 (dwarf2_per_objfile::allocate_signatured_type): New methods.
4373 (create_cu_from_index_list): Use allocate_per_cu.
4374 (create_signatured_type_table_from_index)
4375 (create_signatured_type_table_from_debug_names)
4376 (create_debug_type_hash_table, add_type_unit)
4377 (read_comp_units_from_section): Use allocate_signatured_type.
4378
5717c425
TT
43792020-05-27 Tom Tromey <tom@tromey.com>
4380
4381 * psymtab.c (partial_map_expand_apply)
4382 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
4383 (psym_lookup_global_symbol_language)
4384 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
4385 (psym_print_stats, psym_expand_symtabs_for_function)
4386 (psym_map_symbol_filenames, psym_map_matching_symbols)
4387 (psym_expand_symtabs_matching)
4388 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
4389 (maintenance_check_psymtabs): Update.
4390 * psympriv.h (struct partial_symtab) <readin_p,
4391 get_compunit_symtab>: Add objfile parameter.
4392 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
4393 Likewise.
4394 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
4395 get_compunit_symtab>: Likewise.
4396 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
4397
45940949
TT
43982020-05-27 Tom Tromey <tom@tromey.com>
4399
4400 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
4401 member.
4402 * dwarf2/read.c (delete_file_name_entry): Fix comment.
4403 (create_cu_from_index_list)
4404 (create_signatured_type_table_from_index)
4405 (create_signatured_type_table_from_debug_names)
4406 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
4407 (dwarf2_create_include_psymtab)
4408 (create_debug_type_hash_table, add_type_unit)
4409 (create_type_unit_group, read_comp_units_from_section)
4410 (dwarf2_compute_name, create_cus_hash_table)
4411 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
4412 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
4413 obstack.
4414 (dw2_get_real_path): Likewise. Change argument to
4415 dwarf2_per_objfile.
4416
f8c6d152
LM
44172020-05-27 Luis Machado <luis.machado@linaro.org>
4418
4419 PR tdep/26000
4420 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
4421 for ldrd (immediate).
4422
e98d2e6d
PW
44232020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4424
4425 * command.h: Add comment giving the name of class_tui.
4426 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
4427 create the fake command for the help for class_tui.
4428
53a47a3e
TT
44292020-05-26 Tom Tromey <tromey@adacore.com>
4430
4431 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
4432 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
4433 (val_atr): New function.
4434 (value_val_atr): Use it.
4435 * ada-valprint.c (print_optional_low_bound): Change low bound
4436 handling for enums.
4437 (val_print_packed_array_elements): Don't call discrete_position.
4438 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
4439 discrete_position for enum types.
4440 * language.c (default_print_array_index): Change type.
4441 * language.h (struct language_defn) <la_print_array_index>: Add
4442 index_type parameter, change type of index_value.
4443 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
4444 (default_print_array_index): Update.
4445 * valprint.c (maybe_print_array_index): Don't call
4446 value_from_longest. Update.
4447 (value_print_array_elements): Don't call discrete_position.
4448
0bc2354b
TT
44492020-05-26 Tom Tromey <tromey@adacore.com>
4450
4451 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
4452 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
4453
1218a4bf
CDA
44542020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
4455
4456 PR gdb/13519
4457 * avr-tdep.c (avr_integer_to_address): Return data or code
4458 address accordingly to the second 'type' argument of the
4459 function.
4460
92651b1d
MW
44612020-05-25 Michael Weghorn <m.weghorn@posteo.de>
4462
4463 * infcmd.c, inferior.h: (construct_inferior_arguments):
4464 Moved function from here to gdbsupport/common-inferior.{h,cc}
4465
0a4f5f8c
TT
44662020-05-23 Tom Tromey <tom@tromey.com>
4467
4468 Revert commit eca1f90c:
4469 * NEWS: Remove entry for completion styling.
4470 * completer.c (_rl_completion_prefix_display_length): Move
4471 declaration later.
4472 (gdb_fnprint): Revert.
4473 (gdb_display_match_list_1): Likewise.
4474 * cli/cli-style.c (completion_prefix_style)
4475 (completion_difference_style, completion_suffix_style): Remove.
4476 (_initialize_cli_style): Revert.
4477 * cli/cli-style.h (completion_prefix_style)
4478 (completion_difference_style, completion_suffix_style): Don't
4479 declare.
4480
e08bd6c5
PA
44812020-05-24 Pedro Alves <palves@redhat.com>
4482
4483 * symtab.c (completion_list_add_name): Return boolean indication
4484 of whether the symbol matched.
4485 (completion_list_add_symbol): Don't try to remove C++ aliases if
4486 the symbol didn't match in the first place.
4487 * symtab.h (completion_list_add_name): Return bool.
4488
ceacbf6e
SM
44892020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
4490
4491 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
4492 type::field.
4493
26f16254
JB
44942020-05-23 Joel Brobecker <brobecker@adacore.com>
4495
4496 GDB 9.2 released.
4497
eca1f90c
TT
44982020-05-23 Tom Tromey <tom@tromey.com>
4499
4500 * NEWS: Add entry for completion styling.
4501 * completer.c (_rl_completion_prefix_display_length): Move
4502 declaration earlier.
4503 (gdb_fnprint): Use completion_style.
4504 (gdb_display_match_list_1): Likewise.
4505 * cli/cli-style.c (completion_prefix_style)
4506 (completion_difference_style, completion_suffix_style): New
4507 globals.
4508 (_initialize_cli_style): Register new globals.
4509 * cli/cli-style.h (completion_prefix_style)
4510 (completion_difference_style, completion_suffix_style): Declare.
4511
51e2cfa2
PA
45122020-05-23 Pedro Alves <palves@redhat.com>
4513
4514 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
4515 (parse_escape): Use ISDIGIT instead of isdigit.
4516 (puts_debug): Use gdb_isprint instead of isprint.
4517 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
4518 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
4519 ISSPACE instead of isspace.
4520 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
4521 instead of isspace.
4522 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
4523 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
4524 instead of isxdigit and ISDIGIT instead of isdigit.
4525
80fc5e77
SM
45262020-05-22 Simon Marchi <simon.marchi@efficios.com>
4527
4528 * gdbtypes.h (struct type) <field>: New method.
4529 (TYPE_FIELDS): Remove, replace all uses with either type::fields
4530 or type::field.
4531
3cabb6b0
SM
45322020-05-22 Simon Marchi <simon.marchi@efficios.com>
4533
4534 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
4535 (TYPE_FIELDS): Use type::fields. Change all call sites that
4536 modify the propery to use type::set_fields instead.
4537
1f704f76
SM
45382020-05-22 Simon Marchi <simon.marchi@efficios.com>
4539
4540 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
4541 type::num_fields instead.
4542
5e33d5f4
SM
45432020-05-22 Simon Marchi <simon.marchi@efficios.com>
4544
4545 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
4546 methods.
4547 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
4548 that modify the number of fields to use type::set_num_fields
4549 instead.
4550
9392ebb3
TT
45512020-05-22 Tom Tromey <tromey@adacore.com>
4552
4553 * compile/compile-object-load.h (munmap_list_free): Don't
4554 declare.
4555
7c13f4e8
AB
45562020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
4557
4558 * annotate.c (annotate_source_line): Update return type, add call
4559 to update current symtab and line.
4560 * annotate.h (annotate_source_line): Update return type, and
4561 extend header comment.
4562 * source.c (info_line_command): Check annotation_level before
4563 calling annotate_source_line.
4564 * stack.c (print_frame_info): If calling annotate_source_line
4565 returns true, then don't print any other source line information.
4566
aa370940
SM
45672020-05-21 Simon Marchi <simon.marchi@efficios.com>
4568
4569 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
4570
84d53fa9
SM
45712020-05-21 Simon Marchi <simon.marchi@efficios.com>
4572
4573 * coffread.c (patch_type): Remove NULL check before xfree.
4574 * corefile.c (set_gnutarget): Likewise.
4575 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
4576 * exec.c (build_section_table): Likewise.
4577 * remote.c (remote_target::pass_signals): Likewise.
4578 * utils.c (n_spaces): Likewise.
4579 * cli/cli-script.c (document_command): Likewise.
4580 * i386-windows-tdep.c (core_process_module_section): Likewise.
4581 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
4582
9d428aae
SM
45832020-05-20 Simon Marchi <simon.marchi@efficios.com>
4584
4585 * symfile.c (reread_symbols): Clear objfile's section_offsets
4586 vector and section indices, re-compute them by calling
4587 sym_offsets.
4588
250106a7
TT
45892020-05-20 Tom Tromey <tromey@adacore.com>
4590
4591 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
ec16513e 4592 (desc_one_bound, desc_index_type): Compute field name.
250106a7 4593
9a0bacfb
TV
45942020-05-20 Tom de Vries <tdevries@suse.de>
4595
4596 PR symtab/25833
4597 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
4598
7b958a48
AM
45992020-05-20 Alan Modra <amodra@gmail.com>
4600
4601 PR 25993
4602 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
4603 bfd_set_filename.
4604 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
4605 passed to bfd_set_filename.
4606 * symfile-mem.c (add_vsyscall_page): Likewise for string
4607 passed to symbol_file_add_from_memory.
4608 (symbol_file_add_from_memory): Make name param a const char* and
4609 don't strdup.
4610
c7e97679
AM
46112020-05-20 Alan Modra <amodra@gmail.com>
4612
4613 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
4614 rather than accessing bfd->filename directly.
4615 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
4616 and use bfd_section_name.
4617 * dwarf2/frame.c (decode_frame_entry): Likewise.
4618 * exec.c (exec_set_section_address): Likewise.
4619 * solib-aix.c (solib_aix_bfd_open): Likewise.
4620 * stap-probe.c (get_stap_base_address): Likewise.
4621 * symfile.c (reread_symbols): Likewise.
4622
563c591b
TT
46232020-05-19 Tom Tromey <tromey@adacore.com>
4624
4625 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
4626
f408d82c
SM
46272020-05-19 Simon Marchi <simon.marchi@efficios.com>
4628
4629 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
4630
98c59b52
PA
46312020-05-19 Pedro Alves <palves@redhat.com>
4632
4633 * NEWS (set exec-file-mismatch): Adjust entry.
4634 * exec.c: Include "build-id.h".
4635 (validate_exec_file): Try to match build IDs instead of filenames.
4636 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
4637 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
4638 and pass down 'warn_if_slow'.
4639 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
4640 gdb_bfd_open_closure to pass it down.
4641 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
4642
4111f652
PA
46432020-05-19 Pedro Alves <palves@redhat.com>
4644
4645 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
4646 * target.c (target_fileio_open_1): Rename to target_fileio_open
4647 and make extern. Use bool.
4648 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
4649 (target_fileio_read_alloc_1): Adjust.
4650 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
4651 (target_fileio_open_warn_if_slow): Delete declaration.
4652
ad80db5b
PA
46532020-05-19 Pedro Alves <palves@redhat.com>
4654
4655 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
4656 Adjust all callers.
4657
1d6ce4d3
YS
46582020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
4659
4660 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
4661 whether disp is negative.
4662
9005fbbb
SM
46632020-05-19 Simon Marchi <simon.marchi@efficios.com>
4664
4665 * symfile.h (struct symfile_segment_data)
4666 <~symfile_segment_data>: Remove.
4667 <segment_info>: Change to std::vector.
4668 * symfile.c (default_symfile_segments): Update.
4669 * elfread.c (elf_symfile_segments): Update.
4670
68b888ff
SM
46712020-05-19 Simon Marchi <simon.marchi@efficios.com>
4672
4673 * symfile.h (struct symfile_segment_data) <struct segment>: New.
4674 <segments>: New.
4675 <segment_bases, segment_sizes>: Remove.
4676 * symfile.c (default_symfile_segments): Update.
4677 * elfread.c (elf_symfile_segments): Update.
4678 * remote.c (remote_target::get_offsets): Update.
4679 * solib-target.c (solib_target_relocate_section_addresses):
4680 Update.
4681
62982abd
SM
46822020-05-19 Simon Marchi <simon.marchi@efficios.com>
4683
4684 * symfile.h (struct symfile_segment_data): Initialize fields.
4685 <~symfile_segment_data>: Add.
4686 (symfile_segment_data_up): New.
4687 (struct sym_fns) <sym_segments>: Return a
4688 symfile_segment_data_up.
4689 (default_symfile_segments): Return a symfile_segment_data_up.
4690 (free_symfile_segment_data): Remove.
4691 (get_symfile_segment_data): Return a symfile_segment_data_up.
4692 * symfile.c (default_symfile_segments): Likewise.
4693 (get_symfile_segment_data): Likewise.
4694 (free_symfile_segment_data): Remove.
4695 (symfile_find_segment_sections): Update.
4696 * elfread.c (elf_symfile_segments): Return a
4697 symfile_segment_data_up.
4698 * remote.c (remote_target::get_offsets): Update.
4699 * solib-target.c (solib_target_relocate_section_addresses):
4700 Update.
4701 * symfile-debug.c (debug_sym_segments): Return a
4702 symfile_segment_data_up.
4703
7f204339
RO
47042020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4705
e52a0f1b
RO
4706 PR build/25981
4707 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
4708 Hardcode register numbers.
4709
7f204339
RO
4710 PR build/25981
4711 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
4712 procfs_find_LDT_entry): Remove.
4713 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
4714 procfs_find_LDT_entry): Remove.
4715 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
4716 Remove.
4717
7f32a4d5
PA
47182020-05-17 Pedro Alves <palves@redhat.com>
4719 Andrew Burgess <andrew.burgess@embecosm.com>
4720 Keno Fischer <keno@juliacomputing.com>
4721
4722 PR gdb/25741
4723 * breakpoint.c (build_target_condition_list): Update comments.
4724 (build_target_command_list): Update comments and skip matching
4725 locations.
4726 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
4727 a separate function. Simplify "set breakpoint auto-hw off"
4728 handling.
4729 (insert_breakpoints): Update comment.
4730 (tracepoint_locations_match): New parameter. For breakpoints,
4731 compare location types too, if the caller wants to.
4732 (handle_automatic_hardware_breakpoints): New functions.
4733 (bp_location_is_less_than): Also sort by location type and
4734 hardware breakpoint length.
4735 (update_global_location_list): Handle "set breakpoint auto-hw on"
4736 here.
4737 (update_breakpoint_locations): Ask breakpoint_locations_match to
4738 ignore location types.
4739
7d93a1e0
SM
47402020-05-16 Simon Marchi <simon.marchi@efficios.com>
4741
4742 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
4743 type::name instead.
4744
d0e39ea2
SM
47452020-05-16 Simon Marchi <simon.marchi@efficios.com>
4746
4747 * gdbtypes.h (struct type) <name, set_name>: New methods.
4748 (TYPE_CODE): Use type::name. Change all call sites used to set
4749 the name to use type::set_name instead.
4750
2dab0c7b
TT
47512020-05-16 Tom Tromey <tom@tromey.com>
4752
4753 * top.c (quit_force): Update.
4754 * infrun.c (handle_no_resumed): Update.
4755 * top.h (all_uis): New function.
4756 (ALL_UIS): Remove.
4757
59f7bd8d
SM
47582020-05-16 Simon Marchi <simon.marchi@efficios.com>
4759
4760 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
4761
9bf058f0
PA
47622020-05-16 Pedro Alves <palves@redhat.com>
4763
4764 * ia64-linux-nat.c
4765 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
4766 Declare method.
4767 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
4768
8f86ae1a
SM
47692020-05-15 Simon Marchi <simon.marchi@efficios.com>
4770
4771 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
4772 (sparc64_adi_info): Likewise.
4773
d6bc0792
TT
47742020-05-15 Tom Tromey <tom@tromey.com>
4775
4776 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
4777 block_objfile.
4778 (lookup_objfile_from_block): Remove.
4779 (lookup_symbol_in_block, lookup_symbol_in_static_block)
4780 (lookup_global_symbol): Use block_objfile.
4781 * symtab.h (lookup_objfile_from_block): Don't declare.
4782 * printcmd.c (clear_dangling_display_expressions): Use
4783 block_objfile.
4784 * parse.c (operator_check_standard): Use block_objfile.
4785
8c14c3a3
TT
47862020-05-15 Tom Tromey <tom@tromey.com>
4787
4788 * language.c (language_alloc_type_symbol): Set
4789 SYMBOL_SECTION.
4790 * symtab.c (initialize_objfile_symbol): Remove.
4791 (allocate_symbol): Remove.
4792 (allocate_template_symbol): Remove.
4793 * dwarf2/read.c (fixup_go_packaging): Use "new".
4794 (new_symbol): Use "new".
4795 (read_variable): Don't call initialize_objfile_symbol. Use
4796 "new".
4797 (read_func_scope): Use "new".
4798 * xcoffread.c (process_xcoff_symbol): Don't call
4799 initialize_objfile_symbol.
4800 (SYMBOL_DUP): Remove.
4801 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
4802 "new".
4803 * symtab.h (allocate_symbol, initialize_objfile_symbol)
4804 (allocate_template_symbol): Don't declare.
4805 (struct symbol): Add copy constructor. Change defaults.
4806 * jit.c (finalize_symtab): Use "new".
4807 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
4808 Use "new".
4809 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
4810 (common_block_end): Use "new".
4811 * mdebugread.c (parse_symbol): Use "new".
4812 (new_symbol): Likewise.
4813
5b4a1a8d
PW
48142020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4815
4816 * NEWS: Mention changes to help and apropos.
4817
57b4f16e
PW
48182020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4819
4820 * command.h (enum command_class): Improve comments, document
4821 that class_alias is for user-defined aliases, give the class
4822 name for each class, remove unused class_xdb.
4823 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
4824 * breakpoint.c (_initialize_breakpoint): Replace class_alias
4825 by a precise class.
4826 * infcmd.c (_initialize_infcmd): Likewise.
4827 * reverse.c (_initialize_reverse): Likewise.
4828 * stack.c (_initialize_stack): Likewise.
4829 * symfile.c (_initialize_symfile): Likewise.
4830 * tracepoint.c (_initialize_tracepoint): Likewise.
4831
7c05caf7
PW
48322020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4833
4834 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
4835 when their aliased command is traversed.
4836 (help_cmd): Add fput_command_names_styled call to
4837 output command name and aliases when command has an alias.
4838
3b3aaacb
PW
48392020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4840
4841 * cli/cli-decode.h (help_cmd_list): Remove declaration.
4842 * cli/cli-decode.c (help_cmd_list): Declare as static,
4843 remove prefix argument, use bool for recurse arg, rework to show the aliases of
4844 a command together with the command.
4845 (fput_command_name_styled, fput_command_names_styled): New functions.
4846 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
4847 fput_command_name_styled.
4848 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
4849 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
4850
7aa1b46f
PW
48512020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4852
4853 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
4854 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
4855 * command.h (cmd_show_list): Likewise.
4856 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
4857 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
4858
89bcba74
PW
48592020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4860
4861 * unittests/command-def-selftests.c (traverse_command_structure):
4862 Verify all commands of a list have the same prefix command and
4863 that only the top cmdlist commands have a null prefix.
4864
3f4d92eb
PW
48652020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4866
4867 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
4868 as prefix, not one of its aliases.
4869 (set_cmd_prefix): Remove.
4870 (do_add_cmd): Centralize the setting of the prefix of a command, when
4871 command is defined after its full chain of prefix commands.
4872 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
4873 (add_setshow_cmd_full): Likewise.
4874 (update_prefix_field_of_prefixed_commands): New function.
4875 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
4876 update_prefix_field_of_prefixed_commands.
4877 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
4878 addresses of remote_set_cmdlist and remote_show_cmdlist given
4879 as argument, not the address of an argument.
4880 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
4881 * gdb/remote.c (_initialize_remote): Likewise.
4882
0605465f
PW
48832020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4884
4885 * cli/cli-cmds.c (alias_command): Check for an existing alias
4886 using lookup_cmd_composition, as valid_command_p is too strict
4887 and forbids aliases that are the prefix of an existing alias
4888 or command.
4889 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
4890 command is properly recognised as a valid command.
4891
58e6ac70
PW
48922020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4893
4894 * unittests/help-doc-selftests.c: Rename to
4895 unittests/command-def-selftests.c
4896 * unittests/command-def-selftests.c (help_doc_tests): Update some
4897 comments.
4898 (command_structure_tests, traverse_command_structure): New namespace
4899 and function.
4900 (command_structure_invariants_tests): New function.
4901 (_initialize_command_def_selftests) Renamed from
4902 _initialize_help_doc_selftests, register command_structure_invariants
4903 selftest.
4904
a7b9ceb8
PW
49052020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4906
4907 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
4908 an alias of 'show'.
4909
b2188a06
JB
49102020-05-15 Joel Brobecker <brobecker@adacore.com>
4911
4912 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
4913 ada_is_fixed_point_type. Update all callers.
4914 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
4915 all callers.
4916 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
4917 Update all callers.
4918 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
4919 print_fixed_point_type. Update all callers.
4920 * ada-valprint.c (ada_value_print_num): Replace call to
4921 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
4922
a51951c2
KB
49232020-05-14 Kevin Buettner <kevinb@redhat.com>
4924
4925 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
4926 processors.
4927 (cpu_supports_bts): Add CV_AMD case.
4928
29d6859f
LM
49292020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
4930 Simon Marchi <simon.marchi@efficios.com>
4931
4932 * infrun.c (stop_all_threads): Collect multiple wait events at
4933 each pass.
4934
78134374
SM
49352020-05-14 Simon Marchi <simon.marchi@efficios.com>
4936
4937 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
4938 type::code instead.
4939
67607e24
SM
49402020-05-14 Simon Marchi <simon.marchi@efficios.com>
4941
4942 * gdbtypes.h (struct type) <code, set_code>: New methods.
4943 (TYPE_CODE): Use type::code. Change all call sites used to set
4944 the code to use type::set_code instead.
4945
a05575d3
TBA
49462020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4947 Tom de Vries <tdevries@suse.de>
4948 Pedro Alves <palves@redhat.com>
4949
4950 PR threads/25478
4951 * infrun.c (stop_all_threads): Do NOT ignore
4952 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
4953 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
4954 received.
4955 (handle_no_resumed): Remove code handling a live inferior with no
4956 threads.
4957 * remote.c (has_single_non_exited_thread): New.
4958 (remote_target::update_thread_list): Do not delete a thread if is
4959 the last thread of the process.
4960 * thread.c (thread_select): Call delete_exited_threads instead of
4961 prune_threads.
4962
6ad82919
TBA
49632020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4964
4965 * infrun.c (stop_all_threads): Enable/disable thread events of all
4966 targets. Move a debug message denoting the end of the function
4967 into the SCOPED_EXIT block.
4968
d890404b
TBA
49692020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4970
4971 * process-stratum-target.h: Include <set>.
4972 (all_non_exited_process_targets, switch_to_target_no_thread): New
4973 function declarations.
4974 * process-stratum-target.c (all_non_exited_process_targets)
4975 (switch_to_target_no_thread): New function implementations.
4976
293b3ebc
TBA
49772020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4978
4979 * infrun.c (handle_inferior_event): Extract out a piece of code
4980 into...
4981 (mark_non_executing_threads): ...this new function.
4982
7ca9b62a
TBA
49832020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4984
4985 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
4986 use.
4987
fc75c28b
TBA
49882020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4989
4990 * regcache.c (regcache_read_pc_protected): New function
4991 implementation that returns 0 if the PC cannot read via
4992 'regcache_read_pc'.
4993 * infrun.c (proceed): Call 'regcache_read_pc_protected'
4994 instead of 'regcache_read_pc'.
4995 (keep_going_pass_signal): Ditto.
4996
a89febbd
TT
49972020-05-13 Tom Tromey <tromey@adacore.com>
4998
4999 * ada-lang.c (align_value): Remove.
5000 (ada_template_to_fixed_record_type_1): Use align_up.
5001
f7e23710
TBA
50022020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5003
5004 * async-event.c: Update the copyright year.
5005 * async-event.h: Update the copyright year.
5006
02ff80c2
SM
50072020-05-12 Simon Marchi <simon.marchi@efficios.com>
5008
5009 * objfiles.h (is_addr_in_objfile,
5010 shared_objfile_contains_address_p): Return bool.
5011 * objfile.c (is_addr_in_objfile,
5012 shared_objfile_contains_address_p): Return bool.
5013
4fd6c7e8
TT
50142020-05-11 Tom Tromey <tromey@adacore.com>
5015
5016 * cli/cli-cmds.c (info_command): Restore.
5017 (_initialize_cli_cmds): Use add_prefix_command for "info".
5018 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
5019
5eb68a39
TT
50202020-05-11 Tom Tromey <tromey@adacore.com>
5021
5022 * ada-lang.c (ada_value_primitive_field): Now public.
5023 * ada-lang.h (ada_value_primitive_field): Declare.
5024 * ada-valprint.c (print_field_values): Use
5025 ada_value_primitive_field for wrapper fields.
5026
7666722f
TV
50272020-05-11 Tom de Vries <tdevries@suse.de>
5028
5029 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
5030 MODULE_DOMAIN.
5031
3ee6bb11
TV
50322020-05-11 Tom de Vries <tdevries@suse.de>
5033
5034 PR symtab/25941
5035 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
5036 with length 0, if not gdb-produced.
5037 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
5038
43434996
TV
50392020-05-09 Tom de Vries <tdevries@suse.de>
5040
5041 PR gdb/25955
5042 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
5043 calculation.
5044
2f78cffc
TT
50452020-05-09 Tom Tromey <tom@tromey.com>
5046
5047 * top.c (server_command): Now bool.
5048 * top.h (server_command): Now bool.
5049
4f7bc5ed
TT
50502020-05-08 Tom Tromey <tromey@adacore.com>
5051
5052 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
5053 already being processed.
5054
8be4b118
TT
50552020-05-08 Tom Tromey <tom@tromey.com>
5056
5057 * printcmd.c (struct display) <next>: Remove.
5058 <display>: New constructor.
5059 <exp_string>: Now a std::string.
5060 <enabled_p>: Now a bool.
5061 (display_number): Move definition earlier.
5062 (displays): Rename from display_chain. Now a std::vector.
5063 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
5064 (display_command): Update.
5065 (do_one_display, disable_display)
5066 (enable_disable_display_command, do_enable_disable_display):
5067 Update.
5068 (free_display): Remove.
5069 (clear_displays): Rewrite.
5070 (delete_display): Update.
5071 (map_display_numbers): Use function_view. Remove "data"
5072 parameter. Update.
5073 (do_delete_display): Remove.
5074 (undisplay_command): Update.
5075 (do_one_display, do_displays, disable_display)
5076 (info_display_command): Update.
5077 (do_enable_disable_display): Remove.
5078 (enable_disable_display_command)
5079 (clear_dangling_display_expressions): Update.
5080
94c93c35
TT
50812020-05-08 Tom Tromey <tom@tromey.com>
5082
5083 * symtab.c (set_symbol_cache_size)
5084 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
5085 (maintenance_print_symbol_cache_statistics): Update.
5086 * symmisc.c (print_symbol_bcache_statistics)
5087 (print_objfile_statistics, maintenance_print_objfiles)
5088 (maintenance_info_symtabs, maintenance_check_symtabs)
5089 (maintenance_expand_symtabs, maintenance_info_line_tables):
5090 Update.
5091 * symfile-debug.c (set_debug_symfile): Update.
5092 * source.c (forget_cached_source_info): Update.
5093 * python/python.c (gdbpy_progspaces): Update.
5094 * psymtab.c (maintenance_info_psymtabs): Update.
5095 * probe.c (parse_probes): Update.
5096 * linespec.c (iterate_over_all_matching_symtabs)
5097 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
5098 * guile/scm-progspace.c (gdbscm_progspaces): Update.
5099 * exec.c (exec_target::close): Update.
5100 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
5101 * breakpoint.c (print_one_breakpoint_location)
5102 (create_longjmp_master_breakpoint)
5103 (create_std_terminate_master_breakpoint): Update.
5104 * progspace.c (program_spaces): Now a std::vector.
5105 (maybe_new_address_space): Update.
5106 (add_program_space): Remove.
5107 (program_space::program_space): Update.
5108 (remove_program_space): Update.
5109 (number_of_program_spaces): Remove.
5110 (print_program_space, update_address_spaces): Update.
5111 * progspace.h (program_spaces): Change type.
5112 (ALL_PSPACES): Remove.
5113 (number_of_program_spaces): Don't declare.
5114 (struct program_space) <next>: Remove.
5115
a1fd1ac9
TT
51162020-05-08 Tom Tromey <tom@tromey.com>
5117
5118 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
5119 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
5120 (enable_break): Update.
5121 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
5122 (frv_fdpic_find_canonical_descriptor): Update.
5123 (frv_fetch_objfile_link_map): Update.
5124 * progspace.c (program_space::free_all_objfiles): Update.
5125 (program_space::solibs): New method.
5126 * progspace.h (struct program_space) <solibs>: New method.
5127 * solist.h (master_so_list): Don't declare.
5128 (ALL_SO_LIBS): Remove.
5129 * solib.h (so_list_head): Remove.
5130 (update_solib_list): Update comment.
5131 * solib.c (master_so_list): Remove.
5132 (solib_used, update_solib_list, solib_add)
5133 (info_sharedlibrary_command, clear_solib)
5134 (reload_shared_libraries_1, remove_user_added_objfile): Update.
5135
38eae084
TT
51362020-05-08 Tom Tromey <tom@tromey.com>
5137
5138 * extension.c (extension_languages): Now a std::array.
5139 (ALL_EXTENSION_LANGUAGES): Remove.
5140 (get_ext_lang_defn, get_ext_lang_of_file)
5141 (eval_ext_lang_from_control_command): Update.
5142 (finish_ext_lang_initialization)
5143 (auto_load_ext_lang_scripts_for_objfile)
5144 (ext_lang_type_printers::ext_lang_type_printers)
5145 (apply_ext_lang_type_printers)
5146 (ext_lang_type_printers::~ext_lang_type_printers)
5147 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
5148 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
5149 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
5150 (get_matching_xmethod_workers, ext_lang_colorize)
5151 (ext_lang_before_prompt): Update.
5152 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
5153
596dc4ad
TT
51542020-05-08 Tom Tromey <tom@tromey.com>
5155
5156 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
5157 overload.
5158 <swap_string, m_string>: Remove.
5159 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
5160 Update.
5161 * stabsread.c (define_symbol, read_type): Update.
5162 * linespec.c (find_linespec_symbols): Update.
5163 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
5164 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
5165 * dbxread.c (read_dbx_symtab): Update.
5166 * cp-support.h (cp_canonicalize_string_full)
5167 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
5168 Return unique_xmalloc_ptr.
5169 * cp-support.c (inspect_type): Update.
5170 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
5171 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
5172 Likewise.
5173 * c-typeprint.c (print_name_maybe_canonical): Update.
5174 * break-catch-throw.c (check_status_exception_catchpoint):
5175 Update.
5176
bf4cb9be
TV
51772020-05-08 Tom de Vries <tdevries@suse.de>
5178
5179 * infrun.c (follow_fork): Copy current_line and current_symtab to
5180 child thread.
5181
a1b68f28
SM
51822020-05-07 Simon Marchi <simon.marchi@efficios.com>
5183
5184 * async-event.c (struct async_signal_handler, struct
5185 async_event_handler): Reformat, remove typedef.
5186
98d48915
SM
51872020-05-07 Simon Marchi <simon.marchi@efficios.com>
5188
5189 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
5190 access thistype->main_type->dyn_prop_list directly.
5191
7aa91313
SM
51922020-05-07 Simon Marchi <simon.marchi@efficios.com>
5193
5194 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
5195 (remove_dyn_prop): Remove. Update all users to use
5196 type::remove_dyn_prop.
5197 * gdbtypes.c (remove_dyn_prop): Rename to...
5198 (type::remove_dyn_prop): ... this.
5199
5c54719c
SM
52002020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
5201
5202 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
5203 (add_dyn_prop): Remove. Update all users to use
5204 type::add_dyn_prop.
5205 * gdbtypes.c (add_dyn_prop): Rename to...
5206 (type::add_dyn_prop): ... this.
5207
24e99c6c
SM
52082020-05-07 Simon Marchi <simon.marchi@efficios.com>
5209
5210 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
5211 (get_dyn_prop): Remove. Update all users to use
5212 type::dyn_prop.
5213 * gdbtypes.c (get_dyn_prop): Rename to...
5214 (type::dyn_prop): ... this.
5215
0d4bf016
SM
52162020-05-06 Simon Marchi <simon.marchi@efficios.com>
5217
5218 * gdbtypes.h (struct main_type) <flag_static>: Remove.
5219
ac4a4f1c
SM
52202020-05-06 Simon Marchi <simon.marchi@efficios.com>
5221
5222 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
5223 instruction, skip it if it's there.
5224
a3bbacc1
SM
52252020-05-05 Simon Marchi <simon.marchi@efficios.com>
5226
5227 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
5228
c3236f84
SM
52292020-05-04 Simon Marchi <simon.marchi@efficios.com>
5230
5231 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
5232 * gdbtypes.c (recursive_dump_type): Remove use of
5233 TYPE_INCOMPLETE.
5234
3b6acaee
TT
52352020-05-03 Tom Tromey <tom@tromey.com>
5236
5237 * breakpoint.c (catch_command, tcatch_command): Remove.
5238 (_initialize_breakpoint): Use add_basic_prefix_cmd,
5239 add_show_prefix_cmd.
5240 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
5241 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
5242 Remove.
5243 (add_internal_problem_command): Use add_basic_prefix_cmd,
5244 add_show_prefix_cmd.
5245 * mips-tdep.c (set_mipsfpu_command): Remove.
5246 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
5247 * dwarf2/index-cache.c (set_index_cache_command): Remove.
5248 (_initialize_index_cache): Use add_basic_prefix_cmd.
5249 * memattr.c (dummy_cmd): Remove.
5250 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
5251 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
5252 (_initialize_tui_win): Use add_basic_prefix_cmd,
5253 add_show_prefix_cmd.
5254 * cli/cli-logging.c (set_logging_command): Remove.
5255 (_initialize_cli_logging): Use add_basic_prefix_cmd,
5256 add_show_prefix_cmd.
5257 (show_logging_command): Remove.
5258 * target.c (target_command): Remove.
5259 (add_target): Use add_basic_prefix_cmd.
5260
a51119cd
HD
52612020-05-02 Hannes Domani <ssbssa@yahoo.de>
5262
5263 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
5264
652fc23a 52652020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 5266
652fc23a
PW
5267 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
5268 info_command.
5269
117539e6
KR
52702020-04-30 Kamil Rytarowski <n54@gmx.com>
5271
5272 * nbsd-nat.c (nbsd_enable_proc_events)
5273 (nbsd_nat_target::post_startup_inferior): Add.
5274 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
5275 (nbsd_nat_target::update_thread_list): Rewrite.
5276 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
5277 "PTRACE_LWP_CREATE".
5278 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
5279
102e38eb 52802020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 5281
102e38eb
PW
5282 * stack.c (_initialize_stack): Remove duplicated creation
5283 of "frame" command and "f" alias.
5284
ee9d1e5f
HD
52852020-04-30 Hannes Domani <ssbssa@yahoo.de>
5286
5287 PR gdb/18706
5288 * gdbtypes.c (check_typedef): Calculate size of array of
5289 stubbed type.
5290
627c7fb8
HD
52912020-04-30 Hannes Domani <ssbssa@yahoo.de>
5292
5293 PR gdb/15559
5294 * i386-tdep.c (i386_push_dummy_call): Call
5295 i386_thiscall_push_dummy_call.
5296 (i386_thiscall_push_dummy_call): New function.
5297 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
5298 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
5299 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
5300
ffc2844e
SM
53012020-04-29 Simon Marchi <simon.marchi@efficios.com>
5302
5303 * gdbarch.sh (do_read): Add shellcheck disable directive for
5304 warning SC2162.
5305
1207375d
SM
53062020-04-29 Simon Marchi <simon.marchi@efficios.com>
5307
5308 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
5309 "referenced but not assigned" warning.
5310
9fdb2916
SM
53112020-04-29 Simon Marchi <simon.marchi@efficios.com>
5312
5313 * gdbarch.sh: Remove code that sets fallbackdefault.
5314
759cea5e
SM
53152020-04-29 Simon Marchi <simon.marchi@efficios.com>
5316
5317 * gdbarch.sh: Use shell operators && and || instead of
5318 -a and -o.
5319
cb02ab24
SM
53202020-04-29 Simon Marchi <simon.marchi@efficios.com>
5321
5322 * gdbarch.sh: Use $(...) instead of `...`.
5323
a6fc5ffc
SM
53242020-04-29 Simon Marchi <simon.marchi@efficios.com>
5325
5326 * gdbarch.sh: Use double quotes around variables.
5327
8d113d13
SM
53282020-04-29 Simon Marchi <simon.marchi@efficios.com>
5329
5330 * gdbarch.sh: Use %s with printf, instead of variables in the
5331 format string.
5332
ed6acedd
TT
53332020-04-29 Tom Tromey <tromey@adacore.com>
5334
5335 PR ada/25875:
5336 * dwarf2/read.c (update_enumeration_type_from_children): Compute
5337 type fields here.
5338 (read_enumeration_type): Call
5339 update_enumeration_type_from_children later. Update comments.
5340 (process_enumeration_scope): Don't create type fields.
5341
b68b1b58
KR
53422020-04-29 Kamil Rytarowski <n54@gmx.com>
5343
5344 * nbsd-tdep.c: Include "xml-syscall.h".
5345 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
5346
f94b2e03
KR
53472020-04-29 Kamil Rytarowski <n54@gmx.com>
5348
5349 * nbsd-nat.c: Include "sys/wait.h".
5350 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
5351 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
5352 (nbsd_nat_target::remove_exec_catchpoint)
5353 (nbsd_nat_target::set_syscall_catchpoint): Add.
5354 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
5355 (nbsd_nat_target::insert_exec_catchpoint)
5356 (nbsd_nat_target::remove_exec_catchpoint)
5357 (nbsd_nat_target::set_syscall_catchpoint): Add.
5358 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
5359 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
5360 `nbsd_get_syscall_number'.
5361
fc49bc72
TT
53622020-04-29 Tom Tromey <tom@tromey.com>
5363
5364 * stack.c (print_block_frame_labels): Remove.
5365
d642b692
HD
53662020-04-29 Hannes Domani <ssbssa@yahoo.de>
5367
5368 PR gdb/17320
5369 * ada-valprint.c (val_print_packed_array_elements): Move array
5370 end bracket to new line.
5371 (ada_val_print_string): Remove extra spaces before first array
5372 element.
5373 * c-valprint.c (c_value_print_array): Likewise.
5374 * m2-valprint.c (m2_print_array_contents): Likewise.
5375 (m2_value_print_inner): Likewise.
5376 * p-valprint.c (pascal_value_print_inner): Likewise.
5377 * valprint.c (generic_val_print_array): Likewise.
5378 (value_print_array_elements): Move first array element and array
5379 end bracket to new line.
5380
ea90f227
TV
53812020-04-29 Tom de Vries <tdevries@suse.de>
5382
5383 PR symtab/25889
5384 * linespec.c (find_method): Fix ix calculation.
5385
4498ef4f
KR
53862020-04-28 Kamil Rytarowski <n54@gmx.com>
5387
5388 * syscalls/update-netbsd.sh: New file.
5389 * syscalls/netbsd.xml: Regenerate.
5390 * data-directory/Makefile.in: Register `netbsd.xml' in
5391 `SYSCALLS_FILES'.
5392
a55e30b5
SM
53932020-04-28 Simon Marchi <simon.marchi@efficios.com>
5394
5395 * syscalls/update-freebsd.sh: Add double quotes.
5396
2b2fbab8
TT
53972020-04-28 Tom Tromey <tom@tromey.com>
5398
5399 * NEWS: Update.
5400 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
5401 (cmdpy_init): Allow class_tui.
5402
a65189c9
TV
54032020-04-28 Mark Williams <mark@myosotissp.com>
5404
5405 PR gdb/24480
5406 * dwarf2read.c: Add missing assingments to list_in_scope when
5407 start_symtab was already called.
5408
1b95cdb7
SM
54092020-04-28 Simon Marchi <simon.marchi@efficios.com>
5410
5411 PR gdb/25881
5412 * dwarf2/read.c (offset_map_type): Use
5413 gdb:hash_enum<sect_offset> as hash function.
5414
15cd93d0
TV
54152020-04-28 Tom de Vries <tdevries@suse.de>
5416
5417 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
5418 with DW_AT_signature.
5419
1eb39914
SM
54202020-04-27 Simon Marchi <simon.marchi@efficios.com>
5421
5422 * configure.ac: Remove check for fs_base/gs_base in
5423 user_regs_struct.
5424 * configure: Re-generate.
5425 * config.in: Re-generate.
5426 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
5427 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
5428 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
5429
991a3e2e
LM
54302020-04-27 Luis Machado <luis.machado@linaro.org>
5431
5432 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
5433 problematic inline frame unwinding situation.
5434 * frame.c (frame_id_computed_p): New function.
5435 * frame.h (frame_id_computed_p): New prototype.
5436
361ba0e8
TT
54372020-04-26 Tom Tromey <tom@tromey.com>
5438
5439 * command.h (enum command_class) <class_pseudo>: Remove.
5440
bc3609fd
PW
54412020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5442
5443 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
5444 and whitespace.
5445
b9771db7
KR
54462020-04-25 Kamil Rytarowski <n54@gmx.com>
5447
ec16513e
SM
5448 * inf-ptrace.c (inf_ptrace_target::wait): Remove
5449 `PT_GET_PROCESS_STATE' block.
b9771db7 5450
7151c1af
TT
54512020-04-24 Tom Tromey <tom@tromey.com>
5452
5453 * symtab.h (symbol_get_demangled_name): Don't declare.
5454 * symtab.c (symbol_get_demangled_name): Remove.
5455 (general_symbol_info::natural_name)
5456 (general_symbol_info::demangled_name): Update.
5457
906bb4c5
TT
54582020-04-24 Tom Tromey <tom@tromey.com>
5459
5460 PR rust/25025:
5461 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
5462
bcfe6157
TT
54632020-04-24 Tom Tromey <tom@tromey.com>
5464
5465 PR symtab/12707:
5466 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
5467 exists.
5468 (new_symbol): Likewise.
5469 * compile/compile-object-load.c (get_out_value_type): Use
5470 symbol_matches_search_name.
5471
f049a313
TT
54722020-04-24 Tom Tromey <tom@tromey.com>
5473
5474 * dwarf2/read.c (add_partial_symbol): Do not call
5475 compute_and_set_names.
5476
76e288d1
TT
54772020-04-24 Tom Tromey <tom@tromey.com>
5478
5479 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
5480 overload.
5481
2467f4f6
TT
54822020-04-24 Tom Tromey <tom@tromey.com>
5483
5484 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
5485 (add_psymbol_to_list): New overload. Make old overload call new
5486 one.
5487 * psympriv.h (add_psymbol_to_list): New overload.
5488
e61108c9
TT
54892020-04-24 Tom Tromey <tom@tromey.com>
5490
5491 * dwarf2/read.c (partial_die_info::read) <case
5492 DW_AT_linkage_name>: Use value_as_string.
5493 (dwarf2_string_attr): Use value_as_string.
5494 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
5495 method.
5496 * dwarf2/attribute.c (attribute::value_as_string): New method.
5497
8c87a452
TT
54982020-04-24 Tom Tromey <tom@tromey.com>
5499
5500 * symtab.c (general_symbol_info::natural_name)
5501 (general_symbol_info::demangled_name): Check for language_rust.
5502
787de330
TT
55032020-04-24 Tom Tromey <tom@tromey.com>
5504
5505 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
5506 (dwarf2_physname): ... from here.
5507 (partial_die_info::read): Add Rust "{" hack.
5508
ff985671
TT
55092020-04-24 Tom Tromey <tom@tromey.com>
5510
5511 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
5512 method.
5513 (symbol_set_demangled_name): Don't declare.
5514 * symtab.c (general_symbol_info::set_demangled_name): Rename from
5515 symbol_set_demangled_name.
5516 (general_symbol_info::set_language)
5517 (general_symbol_info::compute_and_set_names): Update.
5518 * minsyms.c (minimal_symbol_reader::install): Update.
5519 * dwarf2/read.c (new_symbol): Update.
5520
1acda803
TT
55212020-04-24 Tom Tromey <tromey@adacore.com>
5522
5523 PR python/23662:
5524 * python/py-type.c (convert_field): Handle
5525 FIELD_LOC_KIND_DWARF_BLOCK.
5526 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
5527 (typy_get_dynamic): Nw function.
5528 (type_object_getset): Add "dynamic".
5529 * NEWS: Add entry.
5530
d656f129
TT
55312020-04-24 Tom Tromey <tromey@adacore.com>
5532
5533 * ada-typeprint.c (print_choices, print_variant_part)
5534 (print_record_field_types_dynamic): New functions.
5535 (print_record_field_types): Use print_record_field_types_dynamic.
5536
7d79de9a
TT
55372020-04-24 Tom Tromey <tromey@adacore.com>
5538
5539 * dwarf2/read.c (handle_data_member_location): New overload.
5540 (dwarf2_add_field): Use it.
5541 (decode_locdesc): Add "computed" parameter. Update comment.
5542 * gdbtypes.c (is_dynamic_type_internal): Also look for
5543 FIELD_LOC_KIND_DWARF_BLOCK.
5544 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
5545 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
5546 virtual base classes.
5547 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
5548 FIELD_LOC_KIND_DWARF_BLOCK.
5549
f8e89861
TT
55502020-04-24 Tom Tromey <tromey@adacore.com>
5551
5552 * dwarf2/read.c (read_structure_type): Handle dynamic length.
5553 * gdbtypes.c (is_dynamic_type_internal): Check
5554 TYPE_HAS_DYNAMIC_LENGTH.
5555 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
5556 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
5557 New macros.
5558 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
5559 constant.
5560
9c6a1327
TT
55612020-04-24 Tom Tromey <tromey@adacore.com>
5562
5563 * dwarf2/read.c (struct variant_field): Rewrite.
5564 (struct variant_part_builder): New.
5565 (struct nextfield): Remove "variant" field. Add "offset".
5566 (struct field_info): Add "current_variant_part" and
5567 "variant_parts".
5568 (alloc_discriminant_info): Remove.
5569 (alloc_rust_variant): New function.
5570 (quirk_rust_enum): Update.
5571 (dwarf2_add_field): Set "offset" member. Don't handle
5572 DW_TAG_variant_part.
5573 (offset_map_type): New typedef.
5574 (convert_variant_range, create_one_variant)
5575 (create_one_variant_part, create_variant_parts)
5576 (add_variant_property): New functions.
5577 (dwarf2_attach_fields_to_type): Call add_variant_property.
5578 (read_structure_type): Don't handle DW_TAG_variant_part.
5579 (handle_variant_part, handle_variant): New functions.
5580 (handle_struct_member_die): Use them.
5581 (process_structure_scope): Don't handle variant parts.
5582 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
5583 (struct discriminant_info): Remove.
5584 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
5585 (struct main_type) <flag_discriminated_union>: Remove.
5586 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
5587 (rust_enum_variant): Return int. Remove "contents". Rewrite.
5588 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
5589 Update.
5590 * valops.c (value_union_variant): Remove.
5591 * value.h (value_union_variant): Don't declare.
5592
b249d2c2
TT
55932020-04-24 Tom Tromey <tromey@adacore.com>
5594
5595 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
5596 (ada_value_primitive_packed_val): Update.
5597 * ada-valprint.c (ada_value_print_1): Update.
5598 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
5599 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
5600 just an address. Use evaluate_for_locexpr_baton.
5601 (dwarf2_evaluate_property): Update.
5602 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
5603 array_view.
5604 * findvar.c (default_read_var_value): Update.
5605 * gdbtypes.c (compute_variant_fields_inner)
5606 (resolve_dynamic_type_internal): Update.
5607 (resolve_dynamic_type): Change type of valaddr parameter.
5608 * gdbtypes.h (resolve_dynamic_type): Update.
5609 * valarith.c (value_subscripted_rvalue): Update.
5610 * value.c (value_from_contents_and_address): Update.
5611
61122aa9
TT
56122020-04-24 Tom Tromey <tromey@adacore.com>
5613
5614 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
5615 "push_initial_value" parameter.
5616 (dwarf2_evaluate_property): Likewise.
5617 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
5618
ef83a141
TT
56192020-04-24 Tom Tromey <tromey@adacore.com>
5620
5621 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
5622 (variant::matches, compute_variant_fields_recurse)
5623 (compute_variant_fields_inner, compute_variant_fields): New
5624 functions.
5625 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
5626 Use resolved_type after type is made.
5627 (operator==): Add new cases.
5628 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
5629 (struct discriminant_range, struct variant, struct variant_part):
5630 New.
5631 (union dynamic_prop_data) <variant_parts, original_type>: New
5632 members.
5633 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
5634 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
5635 constants.
5636 * value.c (unpack_bits_as_long): Now public.
5637 * value.h (unpack_bits_as_long): Declare.
5638
675127ec
TT
56392020-04-24 Tom Tromey <tromey@adacore.com>
5640
5641 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
5642 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
5643
9852ceef
HD
56442020-04-24 Hannes Domani <ssbssa@yahoo.de>
5645
5646 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
5647
7632c6ce
KR
56482020-04-24 Kamil Rytarowski <n54@gmx.com>
5649
5650 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
5651 (remove_fork_catchpoint, post_startup_inferior)
5652 (post_attach): Move...
5653 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
5654 (remove_fork_catchpoint, post_startup_inferior)
5655 (post_attach): ...here.
5656 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
5657 (remove_fork_catchpoint, post_startup_inferior)
5658 (post_attach): Move...
5659 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
5660 (remove_fork_catchpoint, post_startup_inferior)
5661 (post_attach): ...here.
5662
7be2bb4f
TT
56632020-04-24 Tom Tromey <tromey@adacore.com>
5664
5665 * nat/windows-nat.h (struct windows_thread_info)
5666 <pc_adjusted>: New member.
5667 * windows-nat.c (windows_fetch_one_register): Check
5668 pc_adjusted.
5669 (windows_nat_target::get_windows_debug_event)
5670 (windows_nat_target::wait): Set pc_adjusted.
5671
f80cb3b4
TV
56722020-04-24 Tom de Vries <tdevries@suse.de>
5673
5674 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
5675 Run gdb-add-index inside temp dir.
5676
29514b87
TT
56772020-04-23 Tom Tromey <tromey@adacore.com>
5678
5679 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
5680 in loop.
5681
5939967b
LM
56822020-04-23 Luis Machado <luis.machado@linaro.org>
5683
5684 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
5685 get_frame_register instead of gdbarch_unwind_pc.
5686
70bc38f5
TV
56872020-04-23 Tom de Vries <tdevries@suse.de>
5688
5689 * symtab.c (lookup_global_symbol): Prefer def over decl.
5690
de82891c
TV
56912020-04-23 Tom de Vries <tdevries@suse.de>
5692
5693 PR symtab/25807
5694 * block.c (best_symbol, better_symbol): Promote to external.
5695 * block.h (best_symbol, better_symbol): Declare.
5696 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
5697 decl.
5698
ecc6c606
TT
56992020-04-23 Tom Tromey <tromey@adacore.com>
5700
5701 PR ada/25837:
5702 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
5703 "const char *", not a "const std::string &".
5704 <name_and_matcher::operator==>: Update.
5705 * unittests/lookup_name_info-selftests.c: Change type of
5706 "result".
5707
740480b8
TT
57082020-04-23 Tom Tromey <tom@tromey.com>
5709
5710 * inferior.h (iterate_over_inferiors): Don't declare.
5711 * inferior.c (iterate_over_inferiors): Remove.
5712 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
5713 Remove.
5714 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
5715 use iterate_over_inferiors.
5716 (darwin_resume_inferior_it)
5717 (struct resume_inferior_threads_param)
5718 (darwin_resume_inferior_threads_it): Remove.
5719 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
5720
ae3ab1f0
TV
57212020-04-23 Tom de Vries <tdevries@suse.de>
5722
5723 * blockframe.c (find_pc_partial_function): Use
5724 find_pc_sect_compunit_symtab rather than
5725 objfile->sf->qf->find_pc_sect_compunit_symtab.
5726
317d2668
TV
57272020-04-22 Tom de Vries <tdevries@suse.de>
5728
5729 PR symtab/25764
5730 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
5731 in psymtabs.
5732
eea9e357
TV
57332020-04-22 Tom de Vries <tdevries@suse.de>
5734
5735 PR symtab/25801
5736 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
5737 symtabs.
5738
3d5afab3
TV
57392020-04-22 Tom de Vries <tdevries@suse.de>
5740
5741 PR symtab/25700
5742 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
5743 CU if already created.
5744
d43b7a2d
TBA
57452020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5746
5747 * infrun.c (displaced_step_fixup): Switch to the event_thread
5748 before calling displaced_step_restore, not after.
5749
d89edf9b
MM
57502020-04-21 Markus Metzger <markus.t.metzger@intel.com>
5751
5752 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
5753 its inferior is not recorded by us.
5754 (record_btrace_target_open): Replace call to
5755 all_non_exited_threads () with call to current_inferior
5756 ()->non_exited_threads ().
5757 (record_btrace_target::stop_recording): Likewise.
5758 (record_btrace_target::close): Likewise.
5759 (record_btrace_target::wait): Likewise.
5760 (record_btrace_target::record_stop_replaying): Likewise.
5761
5897fd49
MM
57622020-04-21 Markus Metzger <markus.t.metzger@intel.com>
5763
5764 * btrace.c (btrace_enable): Throw an error on double enables and
5765 when enabling recording fails.
5766 (btrace_disable): Throw an error if the thread is not recorded.
5767
1a476b6d
MM
57682020-04-21 Markus Metzger <markus.t.metzger@intel.com>
5769
5770 * record-btrace.c (record_btrace_target::fetch_registers): Forward
5771 request if we do not have a thread_info.
5772
4778a5f8
TV
57732020-04-21 Tom de Vries <tdevries@suse.de>
5774
5775 PR gdb/25471
5776 * thread.c
5777 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
5778 exception in get_frame_id.
5779
0fa7617d
TT
57802020-04-20 Tom Tromey <tromey@adacore.com>
5781
5782 * python/python.c (struct gdbpy_event): Mark move constructor as
5783 noexcept.
5784 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
5785 constructor as noexcept.
5786 * completer.h (struct completion_result): Mark move constructor as
5787 noexcept.
5788 * completer.c (completion_result::completion_result): Use
5789 initialization style. Don't call reset_match_list.
5790
ad23bda0
MS
57912020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
5792
5793 * MAINTAINERS (Write After Approval): Add myself.
5794
45e1f031
TT
57952020-04-18 Tom Tromey <tom@tromey.com>
5796
5797 * windows-tdep.c (init_w32_command_list)
5798 (w32_prefix_command_valid): Restore.
5799 (_initialize_windows_tdep): Call init_w32_command_list.
5800
08feed99
TT
58012020-04-18 Tom Tromey <tom@tromey.com>
5802
5803 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
5804 * value.c (value_fn_field): Update.
5805 * valops.c (find_function_in_inferior)
5806 (value_allocate_space_in_inferior): Update.
5807 * tui/tui-winsource.c (tui_update_source_windows_with_line):
5808 Update.
5809 * tui/tui-source.c (tui_source_window::set_contents): Update.
5810 * symtab.c (lookup_global_or_static_symbol)
5811 (find_function_start_sal_1, skip_prologue_sal)
5812 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
5813 * symmisc.c (dump_msymbols, dump_symtab_1)
5814 (maintenance_print_one_line_table): Update.
5815 * symfile.c (init_entry_point_info, section_is_mapped)
5816 (list_overlays_command, simple_read_overlay_table)
5817 (simple_overlay_update_1): Update.
5818 * stap-probe.c (handle_stap_probe): Update.
5819 * stabsread.c (dbx_init_float_type, define_symbol)
5820 (read_one_struct_field, read_enum_type, read_range_type): Update.
5821 * source.c (info_line_command): Update.
5822 * python/python.c (gdbpy_source_objfile_script)
5823 (gdbpy_execute_objfile_script): Update.
5824 * python/py-type.c (save_objfile_types): Update.
5825 * python/py-objfile.c (py_free_objfile): Update.
5826 * python/py-inferior.c (python_new_objfile): Update.
5827 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
5828 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
5829 (maintenance_check_psymtabs): Update.
5830 * printcmd.c (info_address_command): Update.
5831 * objfiles.h (struct objfile) <arch>: New method, from
5832 get_objfile_arch.
5833 (get_objfile_arch): Don't declare.
5834 * objfiles.c (get_objfile_arch): Remove.
5835 (filter_overlapping_sections): Update.
5836 * minsyms.c (msymbol_is_function): Update.
5837 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
5838 (output_nondebug_symbol): Update.
5839 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
5840 (mdebug_expand_psymtab): Update.
5841 * machoread.c (macho_add_oso_symfile): Update.
5842 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
5843 Update.
5844 * linux-fork.c (checkpoint_command): Update.
5845 * linespec.c (convert_linespec_to_sals): Update.
5846 * jit.c (finalize_symtab): Update.
5847 * infrun.c (insert_exception_resume_from_probe): Update.
5848 * ia64-tdep.c (ia64_find_unwind_table): Update.
5849 * hppa-tdep.c (internalize_unwinds): Update.
5850 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
5851 Update.
5852 * gcore.c (call_target_sbrk): Update.
5853 * elfread.c (record_minimal_symbol, elf_symtab_read)
5854 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
5855 (elf_gnu_ifunc_resolve_by_got): Update.
5856 * dwarf2/read.c (create_addrmap_from_index)
5857 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
5858 (read_debug_names_from_section)
5859 (process_psymtab_comp_unit_reader, add_partial_symbol)
5860 (add_partial_subprogram, process_full_comp_unit)
5861 (read_file_scope, read_func_scope, read_lexical_block_scope)
5862 (read_call_site_scope, dwarf2_ranges_read)
5863 (dwarf2_record_block_ranges, dwarf2_add_field)
5864 (mark_common_block_symbol_computed, read_tag_pointer_type)
5865 (read_tag_string_type, dwarf2_init_float_type)
5866 (dwarf2_init_complex_target_type, read_base_type)
5867 (partial_die_info::read, partial_die_info::read)
5868 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
5869 (dwarf2_fetch_die_loc_sect_off): Update.
5870 * dwarf2/loc.c (dwarf2_find_location_expression)
5871 (class dwarf_evaluate_loc_desc, rw_pieced_value)
5872 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
5873 (dwarf2_loc_desc_get_symbol_read_needs)
5874 (locexpr_describe_location_piece, locexpr_describe_location_1)
5875 (loclist_describe_location): Update.
5876 * dwarf2/index-write.c (write_debug_names): Update.
5877 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
5878 * dtrace-probe.c (dtrace_process_dof): Update.
5879 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
5880 (process_one_symbol): Update.
5881 * ctfread.c (ctf_init_float_type, read_base_type): Update.
5882 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
5883 (coff_read_enum_type): Update.
5884 * cli/cli-cmds.c (edit_command, list_command): Update.
5885 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
5886 * breakpoint.c (create_overlay_event_breakpoint)
5887 (create_longjmp_master_breakpoint)
5888 (create_std_terminate_master_breakpoint)
5889 (create_exception_master_breakpoint, get_sal_arch): Update.
5890 * block.c (block_gdbarch): Update.
5891 * annotate.c (annotate_source_line): Update.
5892
0743fc83
TT
58932020-04-17 Tom Tromey <tromey@adacore.com>
5894
5895 * auto-load.c (show_auto_load_cmd): Remove.
5896 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
5897 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
5898 (maintenance_print_arc_command): Remove.
5899 * tui/tui-win.c (tui_command): Remove.
5900 (tui_get_cmd_list): Use add_basic_prefix_cmd.
5901 * tui/tui-layout.c (tui_layout_command): Remove.
5902 (_initialize_tui_layout): Use add_basic_prefix_cmd.
5903 * python/python.c (user_set_python, user_show_python): Remove.
5904 (_initialize_python): Use add_basic_prefix_cmd,
5905 add_show_prefix_cmd.
5906 * guile/guile.c (set_guile_command, show_guile_command): Remove.
5907 (install_gdb_commands): Use add_basic_prefix_cmd,
5908 add_show_prefix_cmd.
5909 (info_guile_command): Remove.
5910 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
5911 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
5912 add_show_prefix_cmd.
5913 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
5914 Remove do_set and do_show parameters.
5915 * cli/cli-style.c (set_style, show_style): Remove.
5916 (_initialize_cli_style): Use add_basic_prefix_cmd,
5917 add_show_prefix_cmd.
5918 (cli_style_option::add_setshow_commands): Remove do_set and
5919 do_show parameters.
5920 (cli_style_option::add_setshow_commands): Use
5921 add_basic_prefix_cmd, add_show_prefix_cmd.
5922 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
5923 (set_style_name): Remove.
5924 * cli/cli-dump.c (dump_command, append_command): Remove.
5925 (srec_dump_command, ihex_dump_command, verilog_dump_command)
5926 (tekhex_dump_command, binary_dump_command)
5927 (binary_append_command): Remove.
5928 (_initialize_cli_dump): Use add_basic_prefix_cmd.
5929 * windows-tdep.c (w32_prefix_command_valid): Remove global.
5930 (init_w32_command_list): Remove; move into ...
5931 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
5932 * valprint.c (set_print, show_print, set_print_raw)
5933 (show_print_raw): Remove.
5934 (_initialize_valprint): Use add_basic_prefix_cmd,
5935 add_show_prefix_cmd.
5936 * typeprint.c (set_print_type, show_print_type): Remove.
5937 (_initialize_typeprint): Use add_basic_prefix_cmd,
5938 add_show_prefix_cmd.
5939 * record.c (set_record_command, show_record_command): Remove.
5940 (_initialize_record): Use add_basic_prefix_cmd,
5941 add_show_prefix_cmd.
5942 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
5943 add_show_prefix_cmd.
5944 (info_command, show_command, set_debug, show_debug): Remove.
5945 * top.h (set_history, show_history): Don't declare.
5946 * top.c (set_history, show_history): Remove.
5947 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
5948 (unset_tdesc_cmd): Remove.
5949 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
5950 add_show_prefix_cmd.
5951 * symtab.c (info_module_command): Remove.
5952 (_initialize_symtab): Use add_basic_prefix_cmd.
5953 * symfile.c (overlay_command): Remove.
5954 (_initialize_symfile): Use add_basic_prefix_cmd.
5955 * sparc64-tdep.c (info_adi_command): Remove.
5956 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
5957 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
5958 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
5959 add_show_prefix_cmd.
5960 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
5961 (_initialize_serial): Use add_basic_prefix_cmd,
5962 add_show_prefix_cmd.
5963 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
5964 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
5965 add_show_prefix_cmd.
5966 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
5967 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
5968 add_show_prefix_cmd.
5969 * riscv-tdep.c (show_riscv_command, set_riscv_command)
5970 (show_debug_riscv_command, set_debug_riscv_command): Remove.
5971 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
5972 add_show_prefix_cmd.
5973 * remote.c (remote_command, set_remote_cmd): Remove.
5974 (_initialize_remote): Use add_basic_prefix_cmd.
5975 * record-full.c (set_record_full_command)
5976 (show_record_full_command): Remove.
5977 (_initialize_record_full): Use add_basic_prefix_cmd,
5978 add_show_prefix_cmd.
5979 * record-btrace.c (cmd_set_record_btrace)
5980 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
5981 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
5982 (cmd_show_record_btrace_pt): Remove.
5983 (_initialize_record_btrace): Use add_basic_prefix_cmd,
5984 add_show_prefix_cmd.
5985 * ravenscar-thread.c (set_ravenscar_command)
5986 (show_ravenscar_command): Remove.
5987 (_initialize_ravenscar): Use add_basic_prefix_cmd,
5988 add_show_prefix_cmd.
5989 * mips-tdep.c (show_mips_command, set_mips_command)
5990 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
5991 add_show_prefix_cmd.
5992 * maint.c (maintenance_command, maintenance_info_command)
5993 (maintenance_check_command, maintenance_print_command)
5994 (maintenance_set_cmd, maintenance_show_cmd): Remove.
5995 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
5996 add_show_prefix_cmd.
5997 (show_per_command_cmd): Remove.
5998 * maint-test-settings.c (maintenance_set_test_settings_cmd):
5999 Remove.
6000 (maintenance_show_test_settings_cmd): Remove.
6001 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
6002 add_show_prefix_cmd.
6003 * maint-test-options.c (maintenance_test_options_command):
6004 Remove.
6005 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
6006 * macrocmd.c (macro_command): Remove
6007 (_initialize_macrocmd): Use add_basic_prefix_cmd.
6008 * language.c (set_check, show_check): Remove.
6009 (_initialize_language): Use add_basic_prefix_cmd,
6010 add_show_prefix_cmd.
6011 * infcmd.c (unset_command): Remove.
6012 (_initialize_infcmd): Use add_basic_prefix_cmd.
6013 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
6014 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
6015 add_show_prefix_cmd.
6016 * go32-nat.c (go32_info_dos_command): Remove.
6017 (_initialize_go32_nat): Use add_basic_prefix_cmd.
6018 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
6019 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
6020 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
6021 (_initialize_frame): Use add_basic_prefix_cmd,
6022 add_show_prefix_cmd.
6023 * dcache.c (set_dcache_command, show_dcache_command): Remove.
6024 (_initialize_dcache): Use add_basic_prefix_cmd,
6025 add_show_prefix_cmd.
6026 * cp-support.c (maint_cplus_command): Remove.
6027 (_initialize_cp_support): Use add_basic_prefix_cmd.
6028 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
6029 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
6030 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
6031 add_basic_prefix_cmd, add_show_prefix_cmd.
6032 * breakpoint.c (save_command): Remove.
6033 (_initialize_breakpoint): Use add_basic_prefix_cmd.
6034 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
6035 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
6036 add_show_prefix_cmd.
6037 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
6038 (set_ada_command, show_ada_command): Remove.
6039 (_initialize_ada_language): Use add_basic_prefix_cmd,
6040 add_show_prefix_cmd.
6041 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
6042
3557f442
KR
60432020-04-16 Kamil Rytarowski <n54@gmx.com>
6044
6045 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
6046 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
6047
16197208
SM
60482020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
6049
6050 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
6051 warning messages.
6052
00ac85d3
SM
60532020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
6054
6055 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
6056 import table is not at beginning of .idata section.
6057
381ce63f
PA
60582020-04-16 Pedro Alves <palves@redhat.com>
6059
6060 * inferior.c (delete_inferior): Use delete operator directly
6061 instead of delete_program_space.
6062 * progspace.c (add_program_space): New, factored out from
6063 program_space::program_space.
6064 (remove_program_space): New, factored out from
6065 delete_program_space.
6066 (program_space::program_space): Remove intro comment. Rewrite.
6067 (program_space::~program_space): Remove intro comment. Call
6068 remove_program_space.
6069 (delete_program_space): Delete.
6070 * progspace.h (program_space::program_space): Make explicit. Move
6071 intro comment here, adjusted.
6072 (program_space::~program_space): Move intro comment here,
6073 adjusted.
6074 (delete_program_space): Remove.
6075
a010605f
TT
60762020-04-16 Tom Tromey <tromey@adacore.com>
6077
6078 * windows-nat.c (windows_nat::handle_access_violation): New
6079 function.
6080 * nat/windows-nat.h (handle_access_violation): Declare.
6081 * nat/windows-nat.c (handle_exception): Move Cygwin code to
6082 windows-nat.c. Call handle_access_violation.
6083
efba5c23
TV
60842020-04-16 Tom de Vries <tdevries@suse.de>
6085
6086 PR symtab/25791
6087 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
6088 CUs without psymtab.
6089
97ed802d
KB
60902020-04-16 Kevin Buettner <kevinb@redhat.com>
6091
6092 * python/python.c (do_start_initialization): Don't call
6093 PyEval_InitThreads for Python 3.9 and beyond.
6094
c7d64809
KR
60952020-04-15 Kamil Rytarowski <n54@gmx.com>
6096
6097 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
6098 thread functions.
6099 (obsd_nat_target::wait): Likewise.
6100
ce127a96
TT
61012020-04-15 Tom Tromey <tromey@adacore.com>
6102
6103 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
6104 (DEBUG_EXCEPT): Use debug_printf.
6105
99f1bc6a
AB
61062020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
6107
6108 * completer.c (class completion_tracker::completion_hash_entry)
6109 <hash_name>: New member function.
6110 (completion_tracker::discard_completions): New callback to hash a
6111 completion_hash_entry, pass this to htab_create_alloc.
6112
a0e9b532
JT
61132016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
6114
6115 * windows-nat.c (windows_make_so): Warn rather than stopping with
6116 an error if realpath() fails.
6117
06ca5dd4
KR
61182020-04-14 Kamil Rytarowski <n54@gmx.com>
6119
6120 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
6121 (nbsd_nat_target::info_proc): Add do_status.
6122
194d088f
TV
61232020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
6124 Tom de Vries <tdevries@suse.de>
6125
6126 PR symtab/25718
6127 * psympriv.h (struct partial_symtab::read_symtab)
6128 (struct partial_symtab::expand_psymtab)
6129 (struct partial_symtab::read_dependencies): Update comments.
6130 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
6131 read_symtab for includer.
6132 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
6133 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
6134 (struct dwarf2_include_psymtab::m_readin): Remove.
6135 (struct dwarf2_include_psymtab::includer): New member function.
6136 (dwarf2_psymtab::expand_psymtab): Assert !readin.
6137
c1a66c06
TV
61382020-04-14 Tom de Vries <tdevries@suse.de>
6139
6140 PR symtab/25720
6141 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
6142 with NULL symbol_matcher and lookup_name.
6143 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
6144 and lookup_name.
6145 * dwarf2/read.c (dw2_expand_symtabs_matching)
6146 (dw2_debug_names_expand_symtabs_matching): Same.
6147 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
6148 Make lookup_name a pointer. Update comment.
6149 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
6150 lookup_name being a pointer.
6151 * symfile.c (expand_symtabs_matching): Same.
6152 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
6153 * linespec.c (iterate_over_all_matching_symtabs): Same.
6154
400b5eca
TT
61552020-04-13 Tom Tromey <tom@tromey.com>
6156
6157 * run-on-main-thread.c: Update include.
6158 * unittests/main-thread-selftests.c: Update include.
6159 * tui/tui-win.c: Update include.
6160 * tui/tui-io.c: Update include.
6161 * tui/tui-interp.c: Update include.
6162 * tui/tui-hooks.c: Update include.
6163 * top.h: Update include.
6164 * top.c: Update include.
6165 * ser-base.c: Update include.
6166 * remote.c: Update include.
6167 * remote-notif.c: Update include.
6168 * remote-fileio.c: Update include.
6169 * record-full.c: Update include.
6170 * record-btrace.c: Update include.
6171 * python/python.c: Update include.
6172 * posix-hdep.c: Update include.
6173 * mingw-hdep.c: Update include.
6174 * mi/mi-main.c: Update include.
6175 * mi/mi-interp.c: Update include.
6176 * main.c: Update include.
6177 * linux-nat.c: Update include.
6178 * interps.c: Update include.
6179 * infrun.c: Update include.
6180 * inf-loop.c: Update include.
6181 * event-top.c: Update include.
6182 * event-loop.c: Move to ../gdbsupport/.
6183 * event-loop.h: Move to ../gdbsupport/.
6184 * async-event.h: Update include.
6185 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
6186
93b54c8e
TT
61872020-04-13 Tom Tromey <tom@tromey.com>
6188
6189 * tui/tui-win.c: Include async-event.h.
6190 * remote.c: Include async-event.h.
6191 * remote-notif.c: Include async-event.h.
6192 * record-full.c: Include async-event.h.
6193 * record-btrace.c: Include async-event.h.
6194 * infrun.c: Include async-event.h.
6195 * event-top.c: Include async-event.h.
6196 * event-loop.h: Move some declarations to async-event.h.
6197 * event-loop.c: Don't include ser-event.h or top.h. Move some
6198 code to async-event.c.
6199 * async-event.h: New file.
6200 * async-event.c: New file.
6201 * Makefile.in (COMMON_SFILES): Add async-event.c.
6202 (HFILES_NO_SRCDIR): Add async-event.h.
6203
c1cd3163
TT
62042020-04-13 Tom Tromey <tom@tromey.com>
6205
6206 * utils.c (flush_streams): New function.
6207 * event-loop.c (gdb_wait_for_event): Call flush_streams.
6208
29f2bf4f
TT
62092020-04-13 Tom Tromey <tom@tromey.com>
6210
6211 * event-loop.c (handle_file_event): Use warning, not
6212 printf_unfiltered.
6213
98029d02
TT
62142020-04-13 Tom Tromey <tom@tromey.com>
6215
6216 * event-loop.c: Include <chrono>.
6217
06cc9596
TT
62182020-04-13 Tom Tromey <tom@tromey.com>
6219
6220 * gdb_select.h: Move to ../gdbsupport/.
6221 * event-loop.c: Update include path.
6222 * top.c: Update include path.
6223 * ser-base.c: Update include path.
6224 * ui-file.c: Update include path.
6225 * ser-tcp.c: Update include path.
6226 * guile/scm-ports.c: Update include path.
6227 * posix-hdep.c: Update include path.
6228 * ser-unix.c: Update include path.
6229 * gdb_usleep.c: Update include path.
6230 * mingw-hdep.c: Update include path.
6231 * inflow.c: Update include path.
6232 * infrun.c: Update include path.
6233 * event-top.c: Update include path.
6234
8ae8e197
TT
62352020-04-13 Tom Tromey <tom@tromey.com>
6236
6237 * configure: Rebuild.
6238 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
6239
58cf28e8
TT
62402020-04-13 Tom Tromey <tom@tromey.com>
6241
6242 * event-loop.h (start_event_loop): Don't declare.
6243 * event-loop.c (start_event_loop): Move...
6244 * main.c (start_event_loop): ...here. Now static.
6245
b7f999ae
SDJ
62462020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
6247
6248 * MAINTAINERS: Update my email address.
6249
1085dfd4
KR
62502020-04-12 Kamil Rytarowski <n54@gmx.com>
6251
6252 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
6253 IP_ALL.
6254
49d1d1f5
KR
62552020-04-12 Kamil Rytarowski <n54@gmx.com>
6256
6257 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
aac66a4c 6258 (nbsd_nat_target::info_proc): Add do_cmdline.
49d1d1f5 6259
b4848d2a
KR
62602020-04-12 Kamil Rytarowski <n54@gmx.com>
6261
6262 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
aac66a4c 6263 (nbsd_nat_target::info_proc): Add do_cwd.
b4848d2a 6264
51c133d5
KR
62652020-04-12 Kamil Rytarowski <n54@gmx.com>
6266
6267 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
6268
54b8cbd0
KR
62692020-04-11 Kamil Rytarowski <n54@gmx.com>
6270
6271 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
6272 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
6273 (nbsd_nat_target::info_proc): New functions.
6274 * nbsd-nat.c (kinfo_get_vmmap): New function.
6275 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
6276 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
6277 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
6278 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
6279 functions.
6280 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
6281 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
6282 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
6283 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
6284 (KINFO_VME_FLAG_GROWS_DOWN): New.
6285
cf83625d
AS
62862020-04-10 Artur Shepilko <nomadbyte@gmail.com>
6287
6288 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
6289 bit shift.
6290
0c4311ab
TT
62912020-04-10 Tom Tromey <tromey@adacore.com>
6292
6293 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
6294
3e65b3e9
TT
62952020-04-10 Tom Tromey <tromey@adacore.com>
6296
6297 * symtab.c (get_symbol_address, get_msymbol_address): Skip
6298 separate debug files.
6299
13302e95
HD
63002020-04-10 Hannes Domani <ssbssa@yahoo.de>
6301
6302 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
6303 Move to...
6304 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
6305 ... here.
6306 * windows-nat.c (windows_nat_target::get_windows_debug_event):
6307 Check for STATUS_WX86_BREAKPOINT.
6308 (windows_nat_target::wait): Same.
6309
bdfc1e8a
TV
63102020-04-10 Tom de Vries <tdevries@suse.de>
6311
6312 PR cli/25808
6313 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
6314
f4460aec
SM
63152020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
6316
6317 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
6318 (Write After Approval): Remove Tom de Vries.
6319
a25198bb
BE
63202020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
6321
6322 revert partially:
6323 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
6324
aac66a4c
SM
6325 * buildsym.c (record_line): Fix undefined behavior and preserve
6326 lines at eof.
a25198bb 6327
206c98a6
KR
63282020-04-09 Kamil Rytarowski <n54@gmx.com>
6329
6330 * auxv.h (svr4_auxv_parse): New.
6331 * auxv.c (default_auxv_parse): Split into default_auxv_parse
6332 and generic_auxv_parse.
6333 (svr4_auxv_parse): Add.
6334 * obsd-tdep.c: Include "auxv.h".
6335 (obsd_auxv_parse): Remove.
6336 (obsd_init_abi): Remove comment.
6337 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
6338 from `obsd_auxv_parse' to `svr4_auxv_parse'.
6339 * nbsd-tdep.c: Include "auxv.h".
6340 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
6341
71fbdbaf
TT
63422020-04-08 Tom Tromey <tromey@adacore.com>
6343
6344 * nat/windows-nat.h (last_wait_event): Don't declare.
6345 (wait_for_debug_event): Update comment.
6346 * nat/windows-nat.c (last_wait_event): Now static.
6347
2c1d95e8
TT
63482020-04-08 Tom Tromey <tromey@adacore.com>
6349
6350 * windows-nat.c (wait_for_debug_event): Move to
6351 nat/windows-nat.c.
6352 * nat/windows-nat.h (wait_for_debug_event): Declare.
6353 * nat/windows-nat.c (wait_for_debug_event): Move from
6354 windows-nat.c. No longer static.
6355
d2977bc4
TT
63562020-04-08 Tom Tromey <tromey@adacore.com>
6357
6358 * windows-nat.c (get_windows_debug_event): Use
6359 fetch_pending_stop.
6360 * nat/windows-nat.h (fetch_pending_stop): Declare.
6361 * nat/windows-nat.c (fetch_pending_stop): New function.
6362
e758e19c
TT
63632020-04-08 Tom Tromey <tromey@adacore.com>
6364
6365 * windows-nat.c (windows_continue): Use matching_pending_stop and
6366 continue_last_debug_event.
6367 * nat/windows-nat.h (matching_pending_stop)
6368 (continue_last_debug_event): Declare.
6369 * nat/windows-nat.c (DEBUG_EVENTS): New define.
6370 (matching_pending_stop, continue_last_debug_event): New
6371 functions.
6372
8d30e395
TT
63732020-04-08 Tom Tromey <tromey@adacore.com>
6374
6375 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
6376 (handle_exception_result): Move to nat/windows-nat.h.
6377 (DEBUG_EXCEPTION_SIMPLE): Remove.
6378 (windows_nat::handle_ms_vc_exception): New function.
6379 (handle_exception): Move to nat/windows-nat.c.
6380 (get_windows_debug_event): Update.
6381 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
6382 nat/windows-nat.c.
6383 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
6384 (handle_exception_result): Move from windows-nat.c.
6385 (handle_exception): Declare.
6386 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
6387 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
6388 windows-nat.c.
6389
29de418d
TT
63902020-04-08 Tom Tromey <tromey@adacore.com>
6391
6392 * windows-nat.c (exception_count, event_count): Remove.
6393 (handle_exception, get_windows_debug_event)
6394 (do_initial_windows_stuff): Update.
6395
a816ba18
TT
63962020-04-08 Tom Tromey <tromey@adacore.com>
6397
6398 * windows-nat.c (windows_nat::handle_load_dll)
6399 (windows_nat::handle_unload_dll): Rename. No longer static.
6400 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
6401 Declare.
6402
a00caa12
TT
64032020-04-08 Tom Tromey <tromey@adacore.com>
6404
6405 * complaints.h (stop_whining): Declare at top-level.
6406 (complaint): Don't declare stop_whining.
6407
d41b524f
TT
64082020-04-08 Tom Tromey <tromey@adacore.com>
6409
6410 * windows-nat.c (windows_nat::handle_output_debug_string):
6411 Rename. No longer static.
6412 * nat/windows-nat.h (handle_output_debug_string): Declare.
6413
3c76026d
TT
64142020-04-08 Tom Tromey <tromey@adacore.com>
6415
6416 * windows-nat.c (current_process_handle, current_process_id)
6417 (main_thread_id, last_sig, current_event, last_wait_event)
6418 (current_windows_thread, desired_stop_thread_id, pending_stops)
6419 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
6420 (display_selectors, fake_create_process)
6421 (get_windows_debug_event): Update.
6422 * nat/windows-nat.h (current_process_handle, current_process_id)
6423 (main_thread_id, last_sig, current_event, last_wait_event)
6424 (current_windows_thread, desired_stop_thread_id, pending_stops)
6425 (struct pending_stop, siginfo_er): Move from windows-nat.c.
6426 * nat/windows-nat.c (current_process_handle, current_process_id)
6427 (main_thread_id, last_sig, current_event, last_wait_event)
6428 (current_windows_thread, desired_stop_thread_id, pending_stops)
6429 (siginfo_er): New globals. Move from windows-nat.c.
6430
9d8679cc
TT
64312020-04-08 Tom Tromey <tromey@adacore.com>
6432
6433 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
6434 (handle_load_dll): Update.
6435 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
6436
28688adf
TT
64372020-04-08 Tom Tromey <tromey@adacore.com>
6438
6439 * windows-nat.c (enum thread_disposition_type): Move to
6440 nat/windows-nat.h.
6441 (windows_nat::thread_rec): Rename from thread_rec. No longer
6442 static.
6443 (windows_add_thread, windows_nat_target::fetch_registers)
6444 (windows_nat_target::store_registers, handle_exception)
6445 (windows_nat_target::resume, get_windows_debug_event)
6446 (windows_nat_target::get_tib_address)
6447 (windows_nat_target::thread_name)
6448 (windows_nat_target::thread_alive): Update.
6449 * nat/windows-nat.h (enum thread_disposition_type): Move from
6450 windows-nat.c.
6451 (thread_rec): Declare.
6452
4834dad0
TT
64532020-04-08 Tom Tromey <tromey@adacore.com>
6454
6455 * windows-nat.c: Add "using namespace".
6456 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
6457 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
6458
65bafd5b
TT
64592020-04-08 Tom Tromey <tromey@adacore.com>
6460
6461 * nat/windows-nat.h (struct windows_thread_info): Declare
6462 destructor.
6463 * nat/windows-nat.c (~windows_thread_info): New.
6464
0a4afda3
TT
64652020-04-08 Tom Tromey <tromey@adacore.com>
6466
6467 PR gdb/22992
6468 * windows-nat.c (current_event): Update comment.
6469 (last_wait_event, desired_stop_thread_id): New globals.
6470 (struct pending_stop): New.
6471 (pending_stops): New global.
6472 (windows_nat_target) <stopped_by_sw_breakpoint>
6473 <supports_stopped_by_sw_breakpoint>: New methods.
6474 (windows_fetch_one_register): Add assertions. Adjust PC.
6475 (windows_continue): Handle pending stops. Suspend other threads
6476 when stepping. Use last_wait_event
6477 (wait_for_debug_event): New function.
6478 (get_windows_debug_event): Use wait_for_debug_event. Handle
6479 pending stops. Queue spurious stops.
6480 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
6481 (windows_nat_target::kill): Use wait_for_debug_event.
6482 * nat/windows-nat.h (struct windows_thread_info)
6483 <stopped_at_software_breakpoint>: New field.
6484 * nat/windows-nat.c (windows_thread_info::resume): Clear
6485 stopped_at_software_breakpoint.
6486
8e61ebec
TT
64872020-04-08 Tom Tromey <tromey@adacore.com>
6488
6489 * windows-nat.c (enum thread_disposition_type): New.
6490 (thread_rec): Replace "get_context" parameter with "disposition";
6491 change type.
6492 (windows_add_thread, windows_nat_target::fetch_registers)
6493 (windows_nat_target::store_registers, handle_exception)
6494 (windows_nat_target::resume, get_windows_debug_event)
6495 (windows_nat_target::get_tib_address)
6496 (windows_nat_target::thread_name)
6497 (windows_nat_target::thread_alive): Update.
6498
98a03287
TT
64992020-04-08 Tom Tromey <tromey@adacore.com>
6500
6501 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
6502 (windows_continue): Use windows_continue::resume.
6503 * nat/windows-nat.h (struct windows_thread_info) <suspend,
6504 resume>: Declare new methods.
6505 * nat/windows-nat.c: New file.
6506 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
6507
7c7411bc
TT
65082020-04-08 Tom Tromey <tromey@adacore.com>
6509
6510 * windows-nat.c (windows_add_thread, windows_delete_thread)
6511 (windows_nat_target::fetch_registers)
6512 (windows_nat_target::store_registers, fake_create_process)
6513 (windows_nat_target::resume, windows_nat_target::resume)
6514 (get_windows_debug_event, windows_nat_target::wait)
6515 (windows_nat_target::pid_to_str)
6516 (windows_nat_target::get_tib_address)
6517 (windows_nat_target::get_ada_task_ptid)
6518 (windows_nat_target::thread_name)
6519 (windows_nat_target::thread_alive): Use lwp, not tid.
6520
2950fdf7
TT
65212020-04-08 Tom Tromey <tromey@adacore.com>
6522
6523 * windows-nat.c (handle_exception)
6524 (windows_nat_target::thread_name): Update.
6525 * nat/windows-nat.h (windows_thread_info): Remove destructor.
6526 <name>: Now unique_xmalloc_ptr.
6527
62fe396b
TT
65282020-04-08 Tom Tromey <tromey@adacore.com>
6529
6530 * windows-nat.c (thread_rec)
6531 (windows_nat_target::fetch_registers): Update.
6532 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
6533 Update comment.
6534 <debug_registers_changed, reload_context>: Now bool.
6535
e9534bd2
TT
65362020-04-08 Tom Tromey <tromey@adacore.com>
6537
6538 * windows-nat.c (windows_add_thread): Use new.
6539 (windows_init_thread_list, windows_delete_thread): Use delete.
6540 (get_windows_debug_event): Update.
6541 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
6542 destructor, and initializers.
6543
ae1f8880
TT
65442020-04-08 Tom Tromey <tromey@adacore.com>
6545
6546 * windows-nat.c (struct windows_thread_info): Remove.
6547 * nat/windows-nat.h: New file.
6548
55a1e039
TT
65492020-04-08 Tom Tromey <tromey@adacore.com>
6550
6551 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
6552 (thread_rec, windows_add_thread, windows_delete_thread)
6553 (windows_continue): Update.
6554
93366324
TT
65552020-04-08 Tom Tromey <tromey@adacore.com>
6556
6557 * windows-nat.c (struct windows_thread_info): Remove typedef.
6558 (thread_head): Remove.
6559 (thread_list): New global.
6560 (thread_rec, windows_add_thread, windows_init_thread_list)
6561 (windows_delete_thread, windows_continue): Update.
6562
0f2265e2
SM
65632020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
6564
6565 * windows-tdep.h (windows_init_abi): Add comment.
6566 (cygwin_init_abi): New declaration.
6567 * windows-tdep.c: Split signal enumeration in two, one for
6568 Windows and one for Cygwin.
6569 (windows_gdb_signal_to_target): Only deal with signal of the
6570 Windows OS ABI.
6571 (cygwin_gdb_signal_to_target): New function.
6572 (windows_init_abi): Rename to windows_init_abi_common, don't set
6573 gdb_signal_to_target gdbarch method. Add new new function with
6574 this name.
6575 (cygwin_init_abi): New function.
6576 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
6577 comment. Don't call windows_init_abi.
6578 (amd64_windows_init_abi): Add comment, call windows_init_abi.
6579 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
6580 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
6581 i386_windows_init_abi_common, don't call windows_init_abi. Add
6582 a new function of this name.
6583 (i386_cygwin_init_abi): New function.
6584 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
6585 OS ABI Cygwin.
6586
3810f182
SM
65872020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
6588
6589 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
6590 parameter.c.
6591 (dwarf2_read_gdb_index): Update.
6592
063f8e80
KR
65932020-04-07 Kamil Rytarowski <n54@gmx.com>
6594
6595 * nbsd-tdep.c: Include "objfiles.h".
6596 (nbsd_skip_solib_resolver): New.
6597 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
6598
85a9510c 65992020-04-07 Nitika Achra <Nitika.Achra@amd.com>
6600
6601 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
6602 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
6603 with DW_LLE_base_addressx are being emitted in DWARFv5.
6604 Add the newly added kind DW_LOC_OFFSET_PAIR also.
6605 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
6606 unsigned integer.
6607
9fc3eaae 66082020-04-07 Nitika Achra <Nitika.Achra@amd.com>
6609
6610 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
6611 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
6612 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
6613 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
6614 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
6615 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
6616 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
6617
6618
41144253 66192020-04-07 Nitika Achra <Nitika.Achra@amd.com>
6620
6621 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
6622 (read_loclist_index): New function definition.
6623 (lookup_loclist_base): New function definition.
6624 (read_loclist_header): New function definition.
6625 (dwarf2_cu): Add loclist_base and loclist_header field.
6626 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
6627 (read_full_die_1): Read the value of DW_AT_loclists_base.
6628 (read_attribute_reprocess): Handle DW_FORM_loclistx.
6629 (read_attribute_value): Handle DW_FORM_loclistx.
6630 (skip_one_die): Handle DW_FORM_loclistx.
6631 (loclist_header): New structure declaration.
6632 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
6633
9f4e76a4
SM
66342020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
6635
6636 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
6637 constructor. Remove `addr` parameter from other constructor and
6638 add `per_cu` parameter.
6639 * dwarf2/read.c (create_partial_symtab): Update.
6640
25c11aca
TV
66412020-04-07 Tom de Vries <tdevries@suse.de>
6642
6643 PR symtab/25796
6644 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
6645 (partial_die_info::fixup): Inherit has_const_value.
6646
5707e24b
TV
66472020-04-07 Tom de Vries <tdevries@suse.de>
6648
6649 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
6650 symbols without address.
6651
05f00e22
KR
66522020-04-06 Kamil Rytarowski <n54@gmx.com>
6653
6654 * nbsd-nat.h (struct thread_info): Add forward declaration.
6655 (nbsd_nat_target::thread_alive): Add.
6656 (nbsd_nat_target::thread_name): Likewise.
6657 (nbsd_nat_target::update_thread_list): Likewise.
6658 (update_thread_list::post_attach): Likewise.
6659 (post_attach::pid_to_str): Likewise.
6660 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
6661 (nbsd_thread_lister): Add.
6662 (nbsd_nat_target::thread_alive): Likewise.
6663 (nbsd_nat_target::thread_name): Likewise.
6664 (nbsd_add_threads): Likewise.
6665 (update_thread_list::post_attach): Likewise.
6666 (nbsd_nat_target::update_thread_list): Likewise.
6667 (post_attach::pid_to_str): Likewise.
6668
6ee448cc
TT
66692020-04-06 Tom Tromey <tromey@adacore.com>
6670
6671 * ada-valprint.c (print_variant_part): Extract the variant field.
6672 (print_field_values): Use the field as the outer value when
6673 recursing.
6674
dea34e8c
TT
66752020-04-06 Tom Tromey <tromey@adacore.com>
6676
6677 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
6678 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
6679 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
6680 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
6681 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
6682
93689ce9
TT
66832020-04-06 Tom Tromey <tromey@adacore.com>
6684
6685 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
6686 TYPE_CODE_ERROR.
6687
79743962
KR
66882020-04-06 Kamil Rytarowski <n54@gmx.com>
6689
6690 * nbsd-tdep.c: Include "gdbarch.h".
6691 Define enum with NetBSD signal numbers.
6692 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
6693 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
6694 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
6695 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
6696 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
6697 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
6698 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
6699 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
6700 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
6701 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
6702 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
6703 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
6704
9e7c9a03
HD
67052020-04-03 Hannes Domani <ssbssa@yahoo.de>
6706
6707 PR gdb/25325
6708 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
6709
d9e49b61
TT
67102020-04-03 Tom Tromey <tromey@adacore.com>
6711
6712 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
6713 Read constant block.
6714
e0fc5c3f
SM
67152020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
6716
6717 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
6718 (gdb_bfd_get_full_section_contents): New declaration.
6719 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
6720 * windows-tdep.c (is_linked_with_cygwin_dll): Use
6721 gdb_bfd_get_full_section_contents.
6722
e2ff18a0
SM
67232020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
6724
6725 * exec.c (build_section_table): Replace internal_error with
6726 gdb_assert.
6727 (section_table_xfer_memory_partial): Likewise.
6728 * mdebugread.c (parse_partial_symbols): Likewise.
6729 * psymtab.c (lookup_partial_symbol): Likewise.
6730 * utils.c (wrap_here): Likewise.
6731
0830d301
TT
67322020-04-02 Tom Tromey <tromey@adacore.com>
6733
6734 * f-lang.c (build_fortran_types): Use arch_type to initialize
6735 builtin_complex_s32 in the TYPE_CODE_ERROR case.
6736
e7da7f8f
TT
67372020-04-02 Tom Tromey <tromey@adacore.com>
6738
6739 * dwarf2/read.c (partial_die_info::read): Do not create a vector
6740 of attributes.
6741
c90d28ac
AB
67422020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
6743 Bernd Edlinger <bernd.edlinger@hotmail.de>
6744 Tom Tromey <tromey@adacore.com>
6745
6746 * buildsym.c (buildsym_compunit::record_line): Remove
6747 deduplication code.
6748
1aa98955
TV
67492020-04-02 Tom de Vries <tdevries@suse.de>
6750
6751 PR ada/24671
6752 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
6753
d3214198
TV
67542020-04-02 Tom de Vries <tdevries@suse.de>
6755
6756 * dwarf2/read.c (dwarf2_gdb_index_functions,
6757 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
6758 NULL.
6759 * psymtab.c (psym_lookup_global_symbol_language): New function.
6760 (psym_functions): Init psym_lookup_global_symbol_language with
6761 psym_lookup_global_symbol_language.
6762 * symfile-debug.c (debug_sym_quick_functions): Init
6763 lookup_global_symbol_language with NULL.
6764 * symfile.c (set_initial_language): Remove fixme comment.
6765 * symfile.h (struct quick_symbol_functions): Add
6766 lookup_global_symbol_language.
6767 * symtab.c (find_quick_global_symbol_language): New function.
6768 (find_main_name): Use find_quick_global_symbol_language.
6769
2836752f
SM
67702020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
6771
6772 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
6773
64dc2d4b
BE
67742020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
6775
6776 * buildsym.c (record_line): Fix undefined behavior and preserve
6777 lines at eof.
6778
bbe3dc41
BE
67792020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
6780
6781 * buildsym.c (record_line): Fix the resizing condition.
6782
6b4a335b
TT
67832020-04-01 Tom Tromey <tom@tromey.com>
6784
6785 * value.h (value_literal_complex): Add comment.
6786 * valops.c (value_literal_complex): Refer to value.h.
6787
3638a098
TT
67882020-04-01 Tom Tromey <tom@tromey.com>
6789
6790 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
6791 (scalar_type): New rule, from typebase.
6792 (typebase): Use scalar_type. Recognize complex types.
6793 (field_name): Handle FLOAT_KEYWORD.
6794 (ident_tokens): Add _Complex and __complex__.
6795
c34e8714
TT
67962020-04-01 Tom Tromey <tom@tromey.com>
6797
6798 PR exp/25299:
6799 * valarith.c (promotion_type, complex_binop): New functions.
6800 (scalar_binop): Handle complex numbers. Use promotion_type.
6801 (value_pos, value_neg, value_complement): Handle complex numbers.
6802
fa649bb7
TT
68032020-04-01 Tom Tromey <tom@tromey.com>
6804
6805 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
6806 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
6807 (parse_number): Handle complex numbers.
6808
981c08ce
TT
68092020-04-01 Tom Tromey <tom@tromey.com>
6810
6811 * c-valprint.c (c_decorations): Change complex suffix to "i".
6812
4c99290d
TT
68132020-04-01 Tom Tromey <tom@tromey.com>
6814
6815 * valprint.c (generic_value_print_complex): Use accessors.
6816 * value.h (value_real_part, value_imaginary_part): Declare.
6817 * valops.c (value_real_part, value_imaginary_part): New
6818 functions.
6819 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
6820
5b930b45
TT
68212020-04-01 Tom Tromey <tom@tromey.com>
6822
6823 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
6824 (read_range_type): Update.
6825 * mdebugread.c (basic_type): Update.
6826 * go-lang.c (build_go_types): Use init_complex_type.
6827 * gdbtypes.h (struct main_type) <complex_type>: New member.
6828 (init_complex_type): Update.
6829 (arch_complex_type): Don't declare.
6830 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
6831 Make name if none given. Use alloc_type_copy. Look for cached
6832 complex type.
6833 (arch_complex_type): Remove.
6834 (gdbtypes_post_init): Use init_complex_type.
6835 * f-lang.c (build_fortran_types): Use init_complex_type.
6836 * dwarf2/read.c (read_base_type): Update.
6837 * d-lang.c (build_d_types): Use init_complex_type.
6838 * ctfread.c (read_base_type): Update.
6839
53cccef1
TBA
68402020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6841
6842 * infrun.c (stop_all_threads): Update assertion, plus when
6843 stopping threads, take into account that we might be trying
6844 to stop an all-stop target.
6845 (stop_waiting): Call 'stop_all_threads' if there exists a
6846 non-stop target.
6847
a0714d30
TBA
68482020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6849
6850 * target.h (exists_non_stop_target): New function declaration.
6851 * target.c (exists_non_stop_target): New function.
6852
60e22c1e
HD
68532020-04-01 Hannes Domani <ssbssa@yahoo.de>
6854
6855 PR gdb/24789
6856 * eval.c (is_integral_or_integral_reference): New function.
6857 (evaluate_subexp_standard): Allow integer references in
6858 pointer arithmetic.
6859
e139a727
TBA
68602020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6861
6862 * remote.c (remote_target::remote_parse_stop_reply): Remove the
6863 check for no ptid in the stop reply when the target is non-stop.
6864
e0802d59
TT
68652020-04-01 Tom Tromey <tromey@adacore.com>
6866
6867 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
6868 "name" parameter to rvalue reference. Initialize m_name_holder.
6869 <lookup_name_info>: New overloads.
6870 <name>: Return gdb::string_view.
6871 <c_str>: New method.
6872 <make_ignore_params>: Update.
6873 <search_name_hash>: Update.
6874 <language_lookup_name>: Return const char *.
6875 <m_name>: Change type.
6876 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
6877 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
6878 (lookup_name_info::match_any): Update.
6879 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
6880 Update.
6881 * minsyms.c (linkage_name_str): Update.
6882 * language.c (default_symbol_name_matcher): Update.
6883 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
6884 Update.
6885 * ada-lang.c (ada_fold_name): Change parameter to string_view.
6886 (ada_lookup_name_info::ada_lookup_name_info): Update.
6887 (literal_symbol_name_matcher): Update.
6888
8c072cb6
TT
68892020-04-01 Tom Tromey <tromey@adacore.com>
6890
6891 * psymtab.c (psymtab_search_name): Remove function.
6892 (psym_lookup_symbol): Create search name and lookup name here.
6893 (lookup_partial_symbol): Remove "name" parameter; add
6894 lookup_name.
6895 (psym_expand_symtabs_for_function): Update.
6896
6f29a534
TT
68972020-03-31 Joel Jones <joelkevinjones@gmail.com>
6898
6899 PR tui/25597:
6900 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
6901
af62665e
TT
69022020-03-31 Tom Tromey <tromey@adacore.com>
6903
6904 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
6905 memcpy.
6906
d1a89da5
NC
69072020-03-30 Nelson Chu <nelson.chu@sifive.com>
6908
6909 * features/riscv/32bit-csr.xml: Regenerated.
6910 * features/riscv/64bit-csr.xml: Regenerated.
6911
d8af9068
TT
69122020-03-30 Tom Tromey <tromey@adacore.com>
6913
6914 * ada-valprint.c (print_variant_part): Update.
6915 * ada-lang.h (ada_which_variant_applies): Update.
6916 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
6917 outer_valaddr parameters; replace with "outer" value parameter.
6918 (to_fixed_variant_branch_type): Update.
6919
227c0bf4
PFC
69202020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6921
6922 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
6923 <list>. Remove inclusion of observable.h.
6924 (PPC_DEBUG_CURRENT_VERSION): Move up define.
6925 (struct arch_lwp_info): New struct.
6926 (class ppc_linux_dreg_interface): New class.
6927 (struct ppc_linux_process_info): New struct.
6928 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
6929 <low_new_clone, low_forget_process, low_prepare_to_resume>
6930 <copy_thread_dreg_state, mark_thread_stale>
6931 <mark_debug_registers_changed, register_hw_breakpoint>
6932 <clear_hw_breakpoint, register_wp, clear_wp>
6933 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
6934 <num_memory_accesses, get_trigger_type>
6935 <create_watchpoint_request, hwdebug_point_cmp>
6936 <init_arch_lwp_info, get_arch_lwp_info>
6937 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
6938 methods.
6939 <struct ptid_hash>: New inner struct.
6940 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
6941 members.
6942 (saved_dabr_value, hwdebug_info, max_slots_number)
6943 (struct hw_break_tuple, struct thread_points, ppc_threads)
6944 (have_ptrace_hwdebug_interface)
6945 (hwdebug_find_thread_points_by_tid)
6946 (hwdebug_insert_point, hwdebug_remove_point): Remove.
6947 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
6948 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
6949 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
6950 use m_dreg_interface.
6951 (hwdebug_point_cmp): Change to...
6952 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
6953 reference arguments instead of pointers.
6954 (ppc_linux_nat_target::ranged_break_num_registers): Use
6955 m_dreg_interface.
6956 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
6957 m_dreg_interface. Call register_hw_breakpoint.
6958 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
6959 m_dreg_interface. Call clear_hw_breakpoint.
6960 (get_trigger_type): Change to...
6961 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
6962 comment.
6963 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
6964 use m_dreg_interface. Call register_hw_breakpoint.
6965 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
6966 use m_dreg_interface. Call clear_hw_breakpoint.
6967 (can_use_watchpoint_cond_accel): Change to...
6968 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
6969 method. Update comment, use m_dreg_interface and
6970 m_process_info.
6971 (calculate_dvc): Change to...
6972 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
6973 m_dreg_interface.
6974 (num_memory_accesses): Change to...
6975 (ppc_linux_nat_target::num_memory_accesses): ...this method.
6976 (check_condition): Change to...
6977 (ppc_linux_nat_target::check_condition): ...this method.
6978 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
6979 comment, use m_dreg_interface.
6980 (create_watchpoint_request): Change to...
6981 (ppc_linux_nat_target::create_watchpoint_request): ...this
6982 method. Use m_dreg_interface.
6983 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
6984 m_dreg_interface. Call register_hw_breakpoint or register_wp.
6985 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
6986 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
6987 (ppc_linux_nat_target::low_forget_process)
6988 (ppc_linux_nat_target::low_new_fork)
6989 (ppc_linux_nat_target::low_new_clone)
6990 (ppc_linux_nat_target::low_delete_thread)
6991 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
6992 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
6993 only call mark_thread_stale.
6994 (ppc_linux_thread_exit): Remove.
6995 (ppc_linux_nat_target::stopped_data_address): Change to...
6996 (ppc_linux_nat_target::low_stopped_data_address): This. Add
6997 comment, use m_dreg_interface and m_thread_hw_breakpoints.
6998 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
6999 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
7000 comment. Call low_stopped_data_address.
7001 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
7002 m_dreg_interface.
7003 (ppc_linux_nat_target::masked_watch_num_registers): Use
7004 m_dreg_interface.
7005 (ppc_linux_nat_target::copy_thread_dreg_state)
7006 (ppc_linux_nat_target::mark_thread_stale)
7007 (ppc_linux_nat_target::mark_debug_registers_changed)
7008 (ppc_linux_nat_target::register_hw_breakpoint)
7009 (ppc_linux_nat_target::clear_hw_breakpoint)
7010 (ppc_linux_nat_target::register_wp)
7011 (ppc_linux_nat_target::clear_wp)
7012 (ppc_linux_nat_target::init_arch_lwp_info)
7013 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
7014 (_initialize_ppc_linux_nat): Remove observer callback.
7015
4db10d8f
PFC
70162020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
7017
7018 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
7019 (ppc_linux_nat_target::auxv_parse)
7020 (ppc_linux_nat_target::read_description)
7021 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
7022 Move up.
7023
1310c1b0
PFC
70242020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
7025
7026 * linux-nat.h (low_new_clone): New method.
7027 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
7028
69b037c3
SM
70292020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
7030
7031 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
7032 (dbx_expand_psymtab): ... this.
7033 (start_psymtab): Update.
7034 * mdebugread.c (psymtab_to_symtab_1): Rename to...
7035 (mdebug_expand_psymtab): ... this.
7036 (parse_partial_symbols): Update.
7037 (new_psymtab): Update.
7038 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
7039 (xcoff_expand_psymtab): ... this.
7040 (xcoff_start_psymtab): Update.
7041
48993951
SM
70422020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
7043
7044 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
7045 <expand_dependencies>: ... this.
7046 * psymtab.c (partial_symtab::read_dependencies): Rename to...
7047 (partial_symtab::expand_dependencies): ... this.
7048 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
7049 Update.
7050 (dwarf2_psymtab::expand_psymtab): Update.
7051 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
7052 * mdebugread.c (psymtab_to_symtab_1): Update.
7053 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
7054
3ad83046
SM
70552020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
7056
7057 * psympriv.h (discard_psymtab): Remove.
7058 * dbxread.c (dbx_end_psymtab): Update.
7059 * xcoffread.c (xcoff_end_psymtab): Update.
7060
4d1b9ab6
TT
70612020-03-28 Tom Tromey <tom@tromey.com>
7062
7063 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
7064 comment.
7065
f1749218
TT
70662020-03-28 Tom Tromey <tom@tromey.com>
7067
7068 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
7069
ebea7626
HD
70702020-03-27 Hannes Domani <ssbssa@yahoo.de>
7071
7072 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
7073
a879b4d5
JB
70742020-03-26 John Baldwin <jhb@FreeBSD.org>
7075
7076 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
7077
0826b30a
TT
70782020-03-26 Tom Tromey <tom@tromey.com>
7079
7080 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
7081 (mark_common_block_symbol_computed, read_tag_string_type)
7082 (attr_to_dynamic_prop, read_subrange_type): Update.
7083 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
7084 to be methods on struct attribute.
7085 (skip_one_die, process_imported_unit_die, read_namespace_alias)
7086 (read_call_site_scope, partial_die_info::read)
7087 (partial_die_info::read, lookup_die_type, follow_die_ref):
7088 Update.
7089 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
7090 from dwarf2_get_ref_die_offset.
7091 (attribute::constant_value): New method, from
7092 dwarf2_get_attr_constant_value.
7093 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
7094 Declare method.
7095 <constant_value>: New method.
7096
2b2558bf
TT
70972020-03-26 Tom Tromey <tom@tromey.com>
7098
7099 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
7100 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
7101 (dwarf_type_encoding_name): Move to stringify.c.
7102 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
7103 * dwarf2/stringify.c: New file.
7104 * dwarf2/stringify.h: New file.
7105
eeb64781
TT
71062020-03-26 Tom Tromey <tom@tromey.com>
7107
7108 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
7109 Rewrite.
7110
a39fdb41
TT
71112020-03-26 Tom Tromey <tom@tromey.com>
7112
7113 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
7114 methods.
7115 * dwarf2/read.c (lookup_addr_base): Move to die.h.
7116 (lookup_ranges_base): Likewise.
7117 (read_cutu_die_from_dwo, read_full_die_1): Update.
7118
436c571c
TT
71192020-03-26 Tom Tromey <tom@tromey.com>
7120
7121 * dwarf2/read.c (read_import_statement, read_file_scope)
7122 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
7123 (read_lexical_block_scope, read_call_site_scope)
7124 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
7125 (handle_struct_member_die, process_structure_scope)
7126 (update_enumeration_type_from_children)
7127 (process_enumeration_scope, read_array_type, read_common_block)
7128 (read_namespace, read_module, read_subroutine_type): Update.
7129 (sibling_die): Remove.
7130
052c8bb8
TT
71312020-03-26 Tom Tromey <tom@tromey.com>
7132
7133 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
7134 (build_type_psymtabs_reader, read_structure_type)
7135 (read_enumeration_type, read_full_die_1): Update.
7136 (dwarf2_attr_no_follow): Move to die.h.
7137 * dwarf2/die.h (struct die_info) <attr>: New method.
7138
2b24b6e4
TT
71392020-03-26 Tom Tromey <tom@tromey.com>
7140
7141 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
7142 <base_address>: Now an optional.
7143 (dwarf2_find_base_address, dwarf2_rnglists_process)
7144 (dwarf2_ranges_process, fill_in_loclist_baton)
7145 (dwarf2_symbol_mark_computed): Update.
7146
c2d50fd0
TT
71472020-03-26 Tom Tromey <tom@tromey.com>
7148
7149 * dwarf2/read.c (struct die_info): Move to die.h.
7150 * dwarf2/die.h: New file.
7151
0df7ad3a
TT
71522020-03-26 Tom Tromey <tom@tromey.com>
7153
7154 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
7155 * dwarf2/read.c
7156 (dwarf2_statement_list_fits_in_line_number_section_complaint):
7157 Move to line-header.c.
7158 (read_checked_initial_length_and_offset, read_formatted_entries):
7159 Likewise.
7160 (dwarf_decode_line_header): Split into two.
7161 * dwarf2/line-header.c
7162 (dwarf2_statement_list_fits_in_line_number_section_complaint):
7163 Move from read.c.
7164 (read_checked_initial_length_and_offset, read_formatted_entries):
7165 Likewise.
7166 (dwarf_decode_line_header): New function, split from read.c.
7167
86c0bb4c
TT
71682020-03-26 Tom Tromey <tom@tromey.com>
7169
7170 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
7171 Declare method.
7172 * dwarf2/read.c (read_attribute_value): Update.
7173 (dwarf2_per_objfile::read_line_string): Rename from
7174 read_indirect_line_string.
7175 (read_formatted_entries): Update.
7176
2ef46c2f
TT
71772020-03-26 Tom Tromey <tom@tromey.com>
7178
7179 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
7180 variable.
7181
4f9c1eda
TT
71822020-03-26 Tom Tromey <tom@tromey.com>
7183
7184 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
7185 const.
7186 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
7187 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
7188 parameter const.
7189
5a0e026f
TT
71902020-03-26 Tom Tromey <tom@tromey.com>
7191
7192 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
7193 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
7194 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
7195 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
7196
8844c11b
TT
71972020-03-26 Tom Tromey <tom@tromey.com>
7198
7199 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
7200 file_names_size, file_full_name, file_file_name>: Use const.
7201 <file_name_at, file_names>: Add const overload.
7202 * dwarf2/line-header.c (line_header::file_file_name)
7203 (line_header::file_full_name): Update.
7204
c90ec28a
TT
72052020-03-26 Tom Tromey <tom@tromey.com>
7206
7207 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
7208 (macro_start_file, consume_improper_spaces)
7209 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
7210 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
7211 (dwarf_decode_macros): Move to macro.c.
7212 * dwarf2/macro.c: New file.
7213 * dwarf2/macro.h: New file.
7214 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
7215
4f44ae6c
TT
72162020-03-26 Tom Tromey <tom@tromey.com>
7217
7218 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
7219 method.
7220 * dwarf2/section.c: New method. From
7221 read_indirect_string_at_offset_from.
7222 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
7223 (read_indirect_string_at_offset_from): Move to section.c.
7224 (read_indirect_string_at_offset): Rewrite.
7225 (read_indirect_line_string_at_offset): Remove.
7226 (read_indirect_string, read_indirect_line_string)
7227 (dwarf_decode_macro_bytes): Update.
7228
a0194fa8
TT
72292020-03-26 Tom Tromey <tom@tromey.com>
7230
7231 * dwarf2/section.h (struct dwarf2_section_info)
7232 <overload_complaint>: Declare.
7233 (dwarf2_section_buffer_overflow_complaint): Don't declare.
7234 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
7235 Rename from dwarf2_section_buffer_overflow_complaint.
7236 * dwarf2/read.c (skip_one_die, partial_die_info::read)
7237 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
7238
3d27bbdb
TT
72392020-03-26 Tom Tromey <tom@tromey.com>
7240
7241 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
7242 Declare.
7243 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
7244 Move from read.c.
7245 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
7246 to section.c.
7247
9eac9650
TT
72482020-03-26 Tom Tromey <tom@tromey.com>
7249
7250 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
7251
bf80d710
TT
72522020-03-26 Tom Tromey <tom@tromey.com>
7253
7254 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
7255 "builder".
7256 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
7257 parameter.
7258 (dwarf_decode_macros): Update.
7259
0314b390
TT
72602020-03-26 Tom Tromey <tom@tromey.com>
7261
7262 * dwarf2/read.c (read_attribute_value): Update.
7263 (read_indirect_string_from_dwz): Move to dwz.c; change into
7264 method.
7265 (dwarf_decode_macro_bytes): Update.
7266 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
7267 * dwarf2/dwz.c: New file.
7268 * Makefile.in (COMMON_SFILES): Add dwz.c.
7269
9fda78b6
TT
72702020-03-26 Tom Tromey <tom@tromey.com>
7271
7272 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
7273 * dwarf2/read.c: Add include.
7274 * dwarf2/index-write.c: Add include.
7275 * dwarf2/index-cache.c: Add include.
7276 * dwarf2/dwz.h: New file.
7277
33aa3c10
TT
72782020-03-25 Tom Tromey <tom@tromey.com>
7279
7280 * compile/compile-object-load.c (get_out_value_type): Mention
7281 correct symbol name in error message.
7282
d503b685
HD
72832020-03-25 Hannes Domani <ssbssa@yahoo.de>
7284
7285 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
7286
7b1eff95
TV
72872020-03-25 Tom de Vries <tdevries@suse.de>
7288
7289 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
7290 * symmisc.c (dump_symtab_1): Print user and includes fields.
7291 (maintenance_info_symtabs): Same.
7292
dd895392
AB
72932020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
7294
7295 PR gdb/25534
7296 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
7297 (riscv_regcache_cooked_write): New function.
7298 (riscv_push_dummy_call): Use new function.
7299 (riscv_return_value): Likewise.
7300
5ab2fbf1
SM
73012020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
7302
7303 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
7304 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
7305 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
7306 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
7307 * infrun.c (follow_fork): Likewise.
7308 (follow_fork_inferior): Likewise.
7309 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
7310 * linux-nat.h (class linux_nat_target): Likewise.
7311 * remote.c (class remote_target) <follow_fork>: Likewise.
7312 (remote_target::follow_fork): Likewise.
7313 * target-delegates.c: Re-generate.
7314 * target.c (default_follow_fork): Likewise.
7315 (target_follow_fork): Likewise.
7316 * target.h (struct target_ops) <follow_fork>: Likewise.
7317 (target_follow_fork): Likewise.
7318
a64fafb5
TV
73192020-03-24 Tom de Vries <tdevries@suse.de>
7320
7321 * psymtab.c (maintenance_info_psymtabs): Print user field.
7322
fe26d3a3
TT
73232020-03-20 Tom Tromey <tromey@adacore.com>
7324
7325 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
7326 const.
7327 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
7328 const.
7329
c884cc46
SM
73302020-03-20 Simon Marchi <simon.marchi@efficios.com>
7331
7332 * ptrace.m4: Don't check for ptrace declaration.
7333 * config.in: Re-generate.
7334 * configure: Re-generate.
7335 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
7336 not defined.
7337
1ff700c2
KR
73382020-03-20 Kamil Rytarowski <n54@gmx.com>
7339
7340 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
7341 `PTRACE_TYPE_RET'.
7342 * i386-bsd-nat.c (gdb_ptrace): Likewise.
7343 * sparc-nat.c (gdb_ptrace): Likewise.
7344 * x86-bsd-nat.c (gdb_ptrace): Likewise.
7345
f7d4f0b1
TT
73462020-03-20 Tom Tromey <tromey@adacore.com>
7347
7348 * c-exp.y (lex_one_token): Fix assert.
7349
f67210ff
TT
73502020-03-20 Tom Tromey <tromey@adacore.com>
7351
7352 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
7353 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
7354 strncpy call.
7355
1773be9e
TT
73562020-03-20 Tom Tromey <tromey@adacore.com>
7357
7358 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
7359
70304be9
TT
73602020-03-20 Tom Tromey <tromey@adacore.com>
7361
7362 * ada-valprint.c (print_variant_part): Remove parameters; switch
7363 to value-based API.
7364 (print_field_values): Likewise.
7365 (ada_val_print_struct_union): Likewise.
7366 (ada_value_print_1): Update.
7367
9faa006d
KR
73682020-03-20 Kamil Rytarowski <n54@gmx.com>
7369
7370 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
7371 nbsd_nat_target instead of inf_ptrace_target.
7372 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
7373 nbsd_nat_target.
7374
4a90f062
KR
73752020-03-20 Kamil Rytarowski <n54@gmx.com>
7376
7377 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
7378 it to the ptrace call.
7379 * (store_registers): Likewise.
7380
73812020-03-20 Kamil Rytarowski <n54@gmx.com>
c7da12c7
KR
7382
7383 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
7384 it to the ptrace call.
7385 * (store_registers): Likewise.
7386
2d07da27
LM
73872020-03-19 Luis Machado <luis.machado@linaro.org>
7388
7389 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
7390 valid, fetch vg value from ptrace.
7391
f09db380
KR
73922020-03-19 Kamil Rytarowski <n54@gmx.com>
7393 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
7394 * inf-ptrace.c: Likewise.
7395 * (gdb_ptrace): Add.
7396 * (inf_ptrace_target::resume): Update.
7397 * (inf_ptrace_target::xfer_partial): Likewise.
7398 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
7399 * (inf_ptrace_peek_poke): Update.
7400
fcc7376e
KR
74012020-03-19 Kamil Rytarowski <n54@gmx.com>
7402
7403 * x86-bsd-nat.c (gdb_ptrace): New.
7404 * (x86bsd_dr_set): Add new argument `ptid'.
7405 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
7406 x86bsd_dr_set_addr): Update.
7407
cada5fc9
AB
74082020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
7409
7410 * remote.c (remote_target::process_stop_reply): Handle events for
7411 all threads differently.
7412
19a2740f
AB
74132020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
7414
7415 * completer.c (completion_tracker::remove_completion): Define new
7416 function.
7417 * completer.h (completion_tracker::remove_completion): Declare new
7418 function.
7419 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
7420 when adding a C++ function symbol.
7421
724fd9ba
AB
74222020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
7423
7424 * completer.c (completion_tracker::completion_hash_entry): Define
7425 new class.
7426 (advance_to_filename_complete_word_point): Call
7427 recompute_lowest_common_denominator.
7428 (completion_tracker::completion_tracker): Call discard_completions
7429 to setup the hash table.
7430 (completion_tracker::discard_completions): Allow for being called
7431 from the constructor, pass new equal function, and element deleter
7432 when constructing the hash table. Initialise new class member
7433 variables.
7434 (completion_tracker::maybe_add_completion): Remove use of
7435 m_entries_vec, and store more information into m_entries_hash.
7436 (completion_tracker::recompute_lcd_visitor): New function, most
7437 content taken from...
7438 (completion_tracker::recompute_lowest_common_denominator):
7439 ...here, this now just visits each item in the hash calling the
7440 above visitor.
7441 (completion_tracker::build_completion_result): Remove use of
7442 m_entries_vec, call recompute_lowest_common_denominator.
7443 * completer.h (completion_tracker::have_completions): Remove use
7444 of m_entries_vec.
7445 (completion_tracker::completion_hash_entry): Declare new class.
7446 (completion_tracker::recompute_lowest_common_denominator): Change
7447 function signature.
7448 (completion_tracker::recompute_lcd_visitor): Declare new function.
7449 (completion_tracker::m_entries_vec): Delete.
7450 (completion_tracker::m_entries_hash): Initialize to NULL.
7451 (completion_tracker::m_lowest_common_denominator_valid): New
7452 member variable.
7453 (completion_tracker::m_lowest_common_denominator_max_length): New
7454 member variable.
7455
5a82b8a1
KR
74562020-03-17 Kamil Rytarowski <n54@gmx.com>
7457
7458 * regformats/regdef.h: Put reg in gdb namespace.
7459
fb516a69
KR
74602020-03-17 Kamil Rytarowski <n54@gmx.com>
7461
7462 * i386-bsd-nat.c (gdb_ptrace): New.
7463 * (i386bsd_fetch_inferior_registers,
7464 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
7465 * (i386bsd_fetch_inferior_registers,
7466 i386bsd_store_inferior_registers) Use gdb_ptrace.
7467
1c0aa1fb
KR
74682020-03-17 Kamil Rytarowski <n54@gmx.com>
7469
7470 * amd64-bsd-nat.c (gdb_ptrace): New.
7471 * (amd64bsd_fetch_inferior_registers,
7472 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
7473 * (amd64bsd_fetch_inferior_registers,
7474 amd64bsd_store_inferior_registers) Use gdb_ptrace.
7475
5ccd2fb7
KR
74762020-03-17 Kamil Rytarowski <n54@gmx.com>
7477
7478 * user-regs.c (user_reg::read): Rename to...
7479 (user_reg::xread): ...this.
7480 * (append_user_reg): Rename argument `read' to `xread'.
7481 * (user_reg_add_builtin): Likewise.
7482 * (user_reg_add): Likewise.
7483 * (value_of_user_reg): Likewise.
7484
2108a63a
KR
74852020-03-17 Kamil Rytarowski <n54@gmx.com>
7486
7487 * sparc-nat.c (gdb_ptrace): New.
7488 * sparc-nat.c (sparc_fetch_inferior_registers)
7489 (sparc_store_inferior_registers) Remove obsolete comment.
7490 * sparc-nat.c (sparc_fetch_inferior_registers)
7491 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
7492 * sparc-nat.c (sparc_fetch_inferior_registers)
7493 (sparc_store_inferior_registers) Use gdb_ptrace.
7494
a225c9a8
KR
74952020-03-17 Kamil Rytarowski <n54@gmx.com>
7496
7497 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
7498 it to the ptrace call.
7499 * sh-nbsd-nat.c (store_registers): Likewise.
7500
98097623
KR
75012020-03-17 Kamil Rytarowski <n54@gmx.com>
7502
7503 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
7504 nbsd_nat_target instead of inf_ptrace_target.
7505 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
7506 nbsd_nat_target.
7507
9e38d619
KR
75082020-03-17 Kamil Rytarowski <n54@gmx.com>
7509
7510 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
7511
a2ecbe9f
KR
75122020-03-17 Kamil Rytarowski <n54@gmx.com>
7513
7514 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
7515 <sys/sysctl.h>.
7516 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
7517
58990295
TV
75182020-03-17 Tom de Vries <tdevries@suse.de>
7519
7520 PR gdb/23710
7521 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
7522 fields.
7523 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
7524 fields.
7525 (process_imported_unit_die): Skip import of c++ CUs.
7526
771dd3a8
TT
75272020-03-16 Tom Tromey <tom@tromey.com>
7528
7529 * p-valprint.c (pascal_object_print_value): Initialize
7530 base_value.
7531
817a7585
AK
75322020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
7533 Shahab Vahedi <shahab@synopsys.com>
7534
7535 * Makefile.in: Add arch/arc.o
7536 * configure.tgt: Likewise.
7537 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
7538 (_initialize_arc_tdep): Don't initialize old target descriptions.
aac66a4c 7539 (arc_read_description): New function to cache target descriptions.
817a7585
AK
7540 * arc-tdep.h (arc_read_description): Add proto type.
7541 * arch/arc.c: New file.
7542 * arch/arc.h: Likewise.
7543 * features/Makefile: Replace old target descriptions with new.
7544 * features/arc-arcompact.c: Remove.
7545 * features/arc-arcompact.xml: Likewise.
7546 * features/arc-v2.c: Likewise
7547 * features/arc-v2.xml: Likewise
7548 * features/arc/aux-arcompact.xml: New file.
7549 * features/arc/aux-v2.xml: Likewise.
7550 * features/arc/core-arcompact.xml: Likewise.
7551 * features/arc/core-v2.xml: Likewise.
7552 * features/arc/aux-arcompact.c: Generate.
7553 * features/arc/aux-v2.c: Likewise.
7554 * features/arc/core-arcompact.c: Likewise.
7555 * features/arc/core-v2.c: Likewise.
7556 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
7557
67430cd0
TT
75582020-03-16 Tom Tromey <tromey@adacore.com>
7559
7560 PR gdb/25663:
7561 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
7562 putting value into bcache.
7563
30efb6c7
SM
75642020-03-16 Simon Marchi <simon.marchi@efficios.com>
7565
7566 PR gdb/21500
7567 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
7568 to...
7569 (amd64_windows_init_abi_common): ... this. Don't set size of
7570 long type.
7571 (amd64_windows_init_abi): New function.
7572 (amd64_cygwin_init_abi): New function.
7573 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
7574 the Cygwin OS ABI.
7575 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
7576 comment.
7577
8db52437
SM
75782020-03-16 Simon Marchi <simon.marchi@efficios.com>
7579
7580 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
7581 * windows-tdep.c (CYGWIN_DLL_NAME): New.
7582 (pe_import_directory_entry): New struct type.
7583 (is_linked_with_cygwin_dll): New function.
7584 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
7585 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
7586 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
7587
5982a56a
SM
75882020-03-16 Simon Marchi <simon.marchi@efficios.com>
7589
7590 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
7591 i386_cygwin_core_osabi_sniffer.
7592
7a1998df
SM
75932020-03-16 Simon Marchi <simon.marchi@efficios.com>
7594
7595 * i386-cygwin-tdep.c: Rename to...
7596 * i386-windows-tdep.c: ... this.
7597 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
7598 i386-windows-tdep.c.
7599 * configure.tgt: Likewise.
7600
053205cc
SM
76012020-03-16 Simon Marchi <simon.marchi@efficios.com>
7602
7603 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
7604 * osabi.c (gdb_osabi_names): Add "Windows".
7605 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
7606 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
7607 (i386_cygwin_core_osabi_sniffer): New function, extracted from
7608 i386_cygwin_osabi_sniffer.
7609 (_initialize_i386_cygwin_tdep): Register OS ABI
7610 GDB_OSABI_WINDOWS for i386.
7611 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
7612 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
7613 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
7614 for x86-64.
7615 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
7616 when the target matches '*-*-mingw*'.
7617
fe4b2ee6
SM
76182020-03-16 Simon Marchi <simon.marchi@efficios.com>
7619
7620 * defs.h (enum gdb_osabi): Move to...
7621 * osabi.h (enum gdb_osabi): ... here.
7622 * gdbarch.sh: Include osabi.h in gdbarch.h.
7623 * gdbarch.h: Re-generate.
7624
cb9b645d
SM
76252020-03-16 Simon Marchi <simon.marchi@efficios.com>
7626
7627 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
7628 function.
7629 (_initialize_amd64_windows_tdep): Register osabi sniffer.
7630
3293bbaf
TT
76312020-03-14 Tom Tromey <tom@tromey.com>
7632
7633 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
7634 for C++.
7635 (c_type_print_modifier): Likewise. Add "language" parameter.
7636 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
7637 (c_type_print_base_1): Update.
7638 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
7639 constants.
7640 * type-stack.c (type_stack::insert): Handle tp_atomic and
7641 tp_restrict.
7642 (type_stack::follow_type_instance_flags): Likewise.
7643 (type_stack::follow_types): Likewise. Merge type-following code.
7644 * c-exp.y (RESTRICT, ATOMIC): New tokens.
7645 (space_identifier, cv_with_space_id)
7646 (const_or_volatile_or_space_identifier_noopt)
7647 (const_or_volatile_or_space_identifier): Remove.
7648 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
7649 rules.
7650 (ptr_operator, typebase): Update.
7651 (enum token_flag) <FLAG_C>: New constant.
7652 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
7653 "_Atomic".
7654 (lex_one_token): Handle FLAG_C.
7655
154151a6
KR
76562020-03-14 Kamil Rytarowski <n54@gmx.com>
7657
7658 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
7659 it to the ptrace call.
7660 * m68k-bsd-nat.c (store_registers): Likewise.
7661
bc107784
KR
76622020-03-14 Kamil Rytarowski <n54@gmx.com>
7663
7664 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
7665 gdb_byte *.
7666 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
7667 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
7668 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
7669
01a80117
KR
76702020-03-14 Kamil Rytarowski <n54@gmx.com>
7671
7672 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
7673 nbsd_nat_target instead of inf_ptrace_target.
7674 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
7675 nbsd_nat_target.
7676
f90280ca
KR
76772020-03-14 Kamil Rytarowski <n54@gmx.com>
7678
7679 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
7680 register_t.
7681
6def66f1
KR
76822020-03-14 Kamil Rytarowski <n54@gmx.com>
7683
7684 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
7685 it to the ptrace call.
7686 * alpha-bsd-nat.c (store_registers): Likewise.
7687
66eaca97
KR
76882020-03-14 Kamil Rytarowski <n54@gmx.com>
7689
7690 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
7691 includes.
7692 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
7693 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
7694 fill_fpregset): Likewise.
7695
4fed520b
KR
76962020-03-14 Kamil Rytarowski <n54@gmx.com>
7697
7698 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
7699 nbsd_nat_target instead of inf_ptrace_target.
7700 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
7701 nbsd_nat_target.
7702
2190cf06
KR
77032020-03-14 Kamil Rytarowski <n54@gmx.com>
7704
7705 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
7706 register_t.
7707
75c56d3d
KR
77082020-03-14 Kamil Rytarowski <n54@gmx.com>
7709
7710 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
7711 it to the ptrace call.
7712 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
7713 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
7714 * arm-nbsd-nat.c (store_register): Likewise.
7715 * arm-nbsd-nat.c (store_regs): Likewise.
7716 * arm-nbsd-nat.c (store_fp_register): Likewise.
7717 * arm-nbsd-nat.c (store_fp_regs): Likewise.
7718
6018d381
KR
77192020-03-14 Kamil Rytarowski <n54@gmx.com>
7720
7721 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
7722 nbsd_nat_target instead of inf_ptrace_target.
7723 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
7724 nbsd_nat_target.
7725
013f99f0
KR
77262020-03-14 Kamil Rytarowski <n54@gmx.com>
7727
7728 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
7729 it to the ptrace call.
7730 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
7731
12753073
KR
77322020-03-14 Kamil Rytarowski <n54@gmx.com>
7733
6227b330
KR
7734 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
7735 it to the ptrace call.
7736 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
7737
77382020-03-14 Kamil Rytarowski <n54@gmx.com>
7739
7740 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
7741 gdb_byte *.
12753073
KR
7742 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
7743
d5be5fa4
KR
77442020-03-14 Kamil Rytarowski <n54@gmx.com>
7745
7746 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
7747 instead of inf_ptrace_target.
7748 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
7749 nbsd_nat_target.
7750
8110f842
KR
77512020-03-14 Kamil Rytarowski <n54@gmx.com>
7752
7753 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
7754 register_t.
7755
52feded7
KR
77562020-03-14 Kamil Rytarowski <n54@gmx.com>
7757
7758 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
7759 register_t.
7760
25567eee
KR
77612020-03-14 Kamil Rytarowski <n54@gmx.com>
7762
7763 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
7764 register_t.
7765
426a9c18
TT
77662020-03-13 Tom Tromey <tom@tromey.com>
7767
7768 * value.h (val_print): Don't declare.
7769 * valprint.h (val_print_array_elements)
7770 (val_print_scalar_formatted, generic_val_print): Don't declare.
7771 * valprint.c (generic_val_print_array): Take a struct value.
7772 (generic_val_print_ptr, generic_val_print_memberptr)
7773 (generic_val_print_bool, generic_val_print_int)
7774 (generic_val_print_char, generic_val_print_complex)
7775 (generic_val_print): Remove.
7776 (generic_value_print): Update.
7777 (do_val_print): Remove unused parameters. Don't call
7778 la_val_print.
7779 (val_print): Remove.
7780 (common_val_print): Update. Don't call value_check_printable.
7781 (val_print_scalar_formatted, val_print_array_elements): Remove.
7782 * rust-lang.c (rust_val_print): Remove.
7783 (rust_language_defn): Update.
7784 * p-valprint.c (pascal_val_print): Remove.
7785 (pascal_value_print_inner): Update.
7786 (pascal_object_print_val_fields, pascal_object_print_val):
7787 Remove.
7788 (pascal_object_print_static_field): Update.
7789 * p-lang.h (pascal_val_print): Don't declare.
7790 * p-lang.c (pascal_language_defn): Update.
7791 * opencl-lang.c (opencl_language_defn): Update.
7792 * objc-lang.c (objc_language_defn): Update.
7793 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
7794 * m2-lang.h (m2_val_print): Don't declare.
7795 * m2-lang.c (m2_language_defn): Update.
7796 * language.h (struct language_defn) <la_val_print>: Remove.
7797 * language.c (unk_lang_value_print_inner): Rename. Change
7798 argument types.
7799 (unknown_language_defn, auto_language_defn): Update.
7800 * go-valprint.c (go_val_print): Remove.
7801 * go-lang.h (go_val_print): Don't declare.
7802 * go-lang.c (go_language_defn): Update.
7803 * f-valprint.c (f_val_print): Remove.
7804 * f-lang.h (f_value_print): Don't declare.
7805 * f-lang.c (f_language_defn): Update.
7806 * d-valprint.c (d_val_print): Remove.
7807 * d-lang.h (d_value_print): Don't declare.
7808 * d-lang.c (d_language_defn): Update.
7809 * cp-valprint.c (cp_print_value_fields)
7810 (cp_print_value_fields_rtti, cp_print_value): Remove.
7811 (cp_print_static_field): Update.
7812 * c-valprint.c (c_val_print_array, c_val_print_ptr)
7813 (c_val_print_struct, c_val_print_union, c_val_print_int)
7814 (c_val_print_memberptr, c_val_print): Remove.
7815 * c-lang.h (c_val_print_array, cp_print_value_fields)
7816 (cp_print_value_fields_rtti): Don't declare.
7817 * c-lang.c (c_language_defn, cplus_language_defn)
7818 (asm_language_defn, minimal_language_defn): Update.
7819 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
7820 (ada_val_print_enum): Take a struct value.
7821 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
7822 (ada_val_print): Remove.
7823 (ada_value_print_1): Update.
7824 (printable_val_type): Remove.
7825 * ada-lang.h (ada_val_print): Don't declare.
7826 * ada-lang.c (ada_language_defn): Update.
7827
42331a1e
TT
78282020-03-13 Tom Tromey <tom@tromey.com>
7829
7830 * valprint.c (do_val_print): Update.
7831 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
7832 a struct value.
7833 (value_to_value_object_no_release): Declare.
7834 * python/py-value.c (value_to_value_object_no_release): New
7835 function.
7836 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
7837 struct value.
7838 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
7839 function.
7840 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
7841 a struct value.
7842 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
7843 Declare.
7844 (gdbscm_apply_val_pretty_printer): Take a struct value.
7845 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
7846 value.
7847 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
7848 value.
7849 * extension-priv.h (struct extension_language_ops)
7850 <apply_val_pretty_printer>: Take a struct value.
7851 * cp-valprint.c (cp_print_value): Create a struct value.
7852 (cp_print_value): Update.
7853
3a916a97
TT
78542020-03-13 Tom Tromey <tom@tromey.com>
7855
7856 * ada-valprint.c (print_field_values): Call common_val_print.
7857
b59eac37
TT
78582020-03-13 Tom Tromey <tom@tromey.com>
7859
7860 * ada-valprint.c (val_print_packed_array_elements): Remove
7861 bitoffset and val parameters. Call common_val_print.
7862 (ada_val_print_string): Remove offset, address, and original_value
7863 parameters.
7864 (ada_val_print_array): Update.
7865 (ada_value_print_array): New function.
7866 (ada_value_print_1): Call it.
7867
03371129
TT
78682020-03-13 Tom Tromey <tom@tromey.com>
7869
7870 * ada-valprint.c (ada_value_print): Use common_val_print.
7871
2e088f8b
TT
78722020-03-13 Tom Tromey <tom@tromey.com>
7873
7874 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
7875
39ef85a8
TT
78762020-03-13 Tom Tromey <tom@tromey.com>
7877
7878 * ada-valprint.c (ada_value_print_num): New function.
7879 (ada_value_print_1): Use it.
7880
b9fa6e07
TT
78812020-03-13 Tom Tromey <tom@tromey.com>
7882
7883 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
7884
416595d6
TT
78852020-03-13 Tom Tromey <tom@tromey.com>
7886
7887 * ada-valprint.c (ada_value_print_ptr): New function.
7888 (ada_value_print_1): Use it.
7889
5b5e15ec
TT
78902020-03-13 Tom Tromey <tom@tromey.com>
7891
7892 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
7893 call common_val_print.
7894 (ada_val_print_1): Update.
7895 (ada_value_print_1): New function.
7896 (ada_value_print_inner): Rewrite.
7897
fbf54e75
TT
78982020-03-13 Tom Tromey <tom@tromey.com>
7899
7900 * cp-valprint.c (cp_print_value_fields): Update.
7901 (cp_print_value): New function.
7902
64b653ca
TT
79032020-03-13 Tom Tromey <tom@tromey.com>
7904
7905 * m2-valprint.c (m2_value_print_inner): Use
7906 cp_print_value_fields.
7907 * cp-valprint.c (cp_print_value_fields): New function.
7908 * c-valprint.c (c_value_print_struct): New function.
7909 (c_value_print_inner): Use c_value_print_struct.
7910 * c-lang.h (cp_print_value_fields): Declare.
7911
6999f067
TT
79122020-03-13 Tom Tromey <tom@tromey.com>
7913
7914 * c-valprint.c (c_value_print_array): New function.
7915 (c_value_print_inner): Use it.
7916
ce80b8bd
TT
79172020-03-13 Tom Tromey <tom@tromey.com>
7918
7919 * c-valprint.c (c_value_print_memberptr): New function.
7920 (c_value_print_inner): Use it.
7921
2faac269
TT
79222020-03-13 Tom Tromey <tom@tromey.com>
7923
7924 * c-valprint.c (c_value_print_int): New function.
7925 (c_value_print_inner): Use it.
7926
da3e2c29
TT
79272020-03-13 Tom Tromey <tom@tromey.com>
7928
7929 * c-valprint.c (c_value_print_ptr): New function.
7930 (c_value_print_inner): Use it.
7931
50836231
TT
79322020-03-13 Tom Tromey <tom@tromey.com>
7933
7934 * c-valprint.c (c_value_print_inner): Rewrite.
7935
4f412b6e
TT
79362020-03-13 Tom Tromey <tom@tromey.com>
7937
7938 * valprint.c (generic_value_print_complex): New function.
7939 (generic_value_print): Use it.
7940
f5354008
TT
79412020-03-13 Tom Tromey <tom@tromey.com>
7942
7943 * valprint.c (generic_val_print_float): Don't call
7944 val_print_scalar_formatted.
7945 (generic_val_print, generic_value_print): Update.
7946
3eec3b05
TT
79472020-03-13 Tom Tromey <tom@tromey.com>
7948
7949 * valprint.c (generic_value_print_char): New function
7950 (generic_value_print): Use it.
7951
fdddfccb
TT
79522020-03-13 Tom Tromey <tom@tromey.com>
7953
7954 * valprint.c (generic_value_print_int): New function.
7955 (generic_value_print): Use it.
7956
6dde7521
TT
79572020-03-13 Tom Tromey <tom@tromey.com>
7958
7959 * valprint.c (generic_value_print_bool): New function.
7960 (generic_value_print): Use it.
7961
4112d2e6
TT
79622020-03-13 Tom Tromey <tom@tromey.com>
7963
7964 * valprint.c (generic_val_print_func): Simplify.
7965 (generic_val_print, generic_value_print): Update.
7966
65786af6
TT
79672020-03-13 Tom Tromey <tom@tromey.com>
7968
7969 * valprint.c (generic_val_print_flags): Remove.
7970 (generic_val_print, generic_value_print): Update.
7971 (val_print_type_code_flags): Add original_value parameter.
7972
40f3ce18
TT
79732020-03-13 Tom Tromey <tom@tromey.com>
7974
7975 * valprint.c (generic_val_print): Update.
7976 (generic_value_print): Update.
7977 * valprint.c (generic_val_print_enum): Don't call
7978 val_print_scalar_formatted.
7979
2a5b130b
TT
79802020-03-13 Tom Tromey <tom@tromey.com>
7981
7982 * valprint.c (generic_value_print): Call generic_value_print_ptr.
7983 * valprint.c (generic_value_print_ptr): New function.
7984
abc66ce9
TT
79852020-03-13 Tom Tromey <tom@tromey.com>
7986
7987 * valprint.c (generic_value_print): Rewrite.
7988
07a32858
TT
79892020-03-13 Tom Tromey <tom@tromey.com>
7990
7991 * p-valprint.c (pascal_object_print_value_fields)
7992 (pascal_object_print_value): New functions.
7993
64d64d3a
TT
79942020-03-13 Tom Tromey <tom@tromey.com>
7995
7996 * p-valprint.c (pascal_value_print_inner): Rewrite.
7997
6a95a1f5
TT
79982020-03-13 Tom Tromey <tom@tromey.com>
7999
8000 * f-valprint.c (f_value_print_innner): Rewrite.
8001
59fcdac6
TT
80022020-03-13 Tom Tromey <tom@tromey.com>
8003
8004 * m2-valprint.c (m2_print_unbounded_array): New overload.
8005 (m2_print_unbounded_array): Update.
8006 (m2_print_array_contents): Take a struct value.
8007 (m2_value_print_inner): Rewrite.
8008
d133c3e1
TT
80092020-03-13 Tom Tromey <tom@tromey.com>
8010
8011 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
8012 (d_value_print_inner): New function.
8013 * d-lang.h (d_value_print_inner): Declare.
8014 * d-lang.c (d_language_defn): Use d_value_print_inner.
8015
23b0f06b
TT
80162020-03-13 Tom Tromey <tom@tromey.com>
8017
8018 * go-valprint.c (go_value_print_inner): New function.
8019 * go-lang.h (go_value_print_inner): Declare.
8020 * go-lang.c (go_language_defn): Use go_value_print_inner.
8021
5f56f7cb
TT
80222020-03-13 Tom Tromey <tom@tromey.com>
8023
8024 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
8025 API.
8026 (rust_val_print): Rewrite.
8027 (rust_value_print_inner): New function, from rust_val_print.
8028 (rust_language_defn): Use rust_value_print_inner.
8029
26792ee0
TT
80302020-03-13 Tom Tromey <tom@tromey.com>
8031
8032 * ada-valprint.c (ada_value_print_inner): New function.
8033 * ada-lang.h (ada_value_print_inner): Declare.
8034 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
8035
24051bbe
TT
80362020-03-13 Tom Tromey <tom@tromey.com>
8037
8038 * f-valprint.c (f_value_print_innner): New function.
8039 * f-lang.h (f_value_print_innner): Declare.
8040 * f-lang.c (f_language_defn): Use f_value_print_innner.
8041
c0941be6
TT
80422020-03-13 Tom Tromey <tom@tromey.com>
8043
8044 * p-valprint.c (pascal_value_print_inner): New function.
8045 * p-lang.h (pascal_value_print_inner): Declare.
8046 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
8047
62c4663d
TT
80482020-03-13 Tom Tromey <tom@tromey.com>
8049
8050 * m2-valprint.c (m2_value_print_inner): New function.
8051 * m2-lang.h (m2_value_print_inner): Declare.
8052 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
8053
62182190
TT
80542020-03-13 Tom Tromey <tom@tromey.com>
8055
8056 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
8057 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
8058 * c-valprint.c (c_value_print_inner): New function.
8059 * c-lang.h (c_value_print_inner): Declare.
8060 * c-lang.c (c_language_defn, cplus_language_defn)
8061 (asm_language_defn, minimal_language_defn): Use
8062 c_value_print_inner.
8063
1e592a8a
TT
80642020-03-13 Tom Tromey <tom@tromey.com>
8065
8066 * p-valprint.c (pascal_object_print_value_fields): Now static.
8067 * p-lang.h (pascal_object_print_value_fields): Don't declare.
8068
7fe471e9
TT
80692020-03-13 Tom Tromey <tom@tromey.com>
8070
8071 * c-valprint.c (c_val_print_array): Simplify.
8072
d121c6ce
TT
80732020-03-13 Tom Tromey <tom@tromey.com>
8074
8075 * valprint.c (value_print_array_elements): New function.
8076 * valprint.h (value_print_array_elements): Declare.
8077
4dba70ee
TT
80782020-03-13 Tom Tromey <tom@tromey.com>
8079
8080 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
8081 * mips-tdep.c (mips_print_register): Use
8082 value_print_scalar_formatted.
8083
4f9ae810
TT
80842020-03-13 Tom Tromey <tom@tromey.com>
8085
8086 * valprint.h (value_print_scalar_formatted): Declare.
8087 * valprint.c (value_print_scalar_formatted): New function.
8088
156bfec9
TT
80892020-03-13 Tom Tromey <tom@tromey.com>
8090
8091 * valprint.h (generic_value_print): Declare.
8092 * valprint.c (generic_value_print): New function.
8093
2b4e573d
TT
80942020-03-13 Tom Tromey <tom@tromey.com>
8095
8096 * valprint.c (do_val_print): Call la_value_print_inner, if
8097 available.
8098 * rust-lang.c (rust_language_defn): Update.
8099 * p-lang.c (pascal_language_defn): Update.
8100 * opencl-lang.c (opencl_language_defn): Update.
8101 * objc-lang.c (objc_language_defn): Update.
8102 * m2-lang.c (m2_language_defn): Update.
8103 * language.h (struct language_defn) <la_value_print_inner>: New
8104 member.
8105 * language.c (unknown_language_defn, auto_language_defn): Update.
8106 * go-lang.c (go_language_defn): Update.
8107 * f-lang.c (f_language_defn): Update.
8108 * d-lang.c (d_language_defn): Update.
8109 * c-lang.c (c_language_defn, cplus_language_defn)
8110 (asm_language_defn, minimal_language_defn): Update.
8111 * ada-lang.c (ada_language_defn): Update.
8112
a1f6a07c
TT
81132020-03-13 Tom Tromey <tom@tromey.com>
8114
8115 * c-valprint.c (c_value_print): Use common_val_print.
8116
410cf315
TT
81172020-03-13 Tom Tromey <tom@tromey.com>
8118
8119 * cp-valprint.c (cp_print_static_field): Use common_val_print.
8120
72a45c93
TT
81212020-03-13 Tom Tromey <tom@tromey.com>
8122
8123 * f-valprint.c (f77_print_array_1, f_val_print): Use
8124 common_val_print.
8125
040f66bd
TT
81262020-03-13 Tom Tromey <tom@tromey.com>
8127
8128 * riscv-tdep.c (riscv_print_one_register_info): Use
8129 common_val_print.
8130
a6e05a6c
TT
81312020-03-13 Tom Tromey <tom@tromey.com>
8132
8133 * mi/mi-main.c (output_register): Use common_val_print.
8134
3444c526
TT
81352020-03-13 Tom Tromey <tom@tromey.com>
8136
8137 * infcmd.c (default_print_one_register_info): Use
8138 common_val_print.
8139
c2a44efe
TT
81402020-03-13 Tom Tromey <tom@tromey.com>
8141
8142 * valprint.h (common_val_print_checked): Declare.
8143 * valprint.c (common_val_print_checked): New function.
8144 * stack.c (print_frame_arg): Use common_val_print_checked.
8145
b0c26e99
TT
81462020-03-13 Tom Tromey <tom@tromey.com>
8147
8148 * valprint.c (do_val_print): New function, from val_print.
8149 (val_print): Use do_val_print.
8150 (common_val_print): Use do_val_print.
8151
ce3acbe9
TT
81522020-03-13 Tom Tromey <tom@tromey.com>
8153
8154 * valprint.c (value_print): Use scoped_value_mark.
8155
96c7f873
TV
81562020-03-13 Tom de Vries <tdevries@suse.de>
8157
8158 PR symtab/25646
8159 * psymtab.c (partial_symtab::partial_symtab): Don't set
8160 globals_offset and statics_offset. Push element onto
8161 current_global_psymbols and current_static_psymbols stacks.
8162 (concat): New function.
8163 (end_psymtab_common): Set globals_offset and statics_offset. Pop
8164 element from current_global_psymbols and current_static_psymbols
8165 stacks. Concat popped elements to global_psymbols and
8166 static_symbols.
8167 (add_psymbol_to_list): Use current_global_psymbols and
8168 current_static_psymbols stacks.
8169 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
8170 current_static_psymbols fields.
8171
6ba0a321
CB
81722020-03-12 Christian Biesinger <cbiesinger@google.com>
8173
8174 * corelow.c (sniff_core_bfd): Remove.
8175 (class core_target) <m_core_vec>: Remove.
8176 (core_target::core_target): Update.
8177 (core_file_fns): Remove.
8178 (deprecated_add_core_fns): Remove.
8179 (default_core_sniffer): Remove.
8180 (sniff_core_bfd): Remove.
8181 (default_check_format): Remove.
8182 (gdb_check_format): Remove.
8183 (core_target_open): Update.
8184 (core_target::get_core_register_section): Update.
8185 (get_core_registers_cb): Update.
8186 (core_target::fetch_registers): Update.
8187 * gdbcore.h (struct core_fns): Remove.
8188 (deprecated_add_core_fns): Remove.
8189 (default_core_sniffer): Remove.
8190 (default_check_format): Remove.
8191
227031b2
TT
81922020-03-12 Tom Tromey <tom@tromey.com>
8193
8194 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
8195 CORE_ADDR.
8196 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
8197
53807e9f
TT
81982020-03-12 Tom Tromey <tom@tromey.com>
8199
8200 * remote.c (remote_target::download_tracepoint)
8201 (remote_target::enable_tracepoint)
8202 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
8203 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
8204 sprintf_vma.
8205
64f25102
TT
82062020-03-12 Tom Tromey <tom@tromey.com>
8207
8208 * symfile-mem.c: Update CORE_ADDR size assert.
8209
272cd5a3
SM
82102020-03-12 Simon Marchi <simon.marchi@efficios.com>
8211
8212 * selftest.m4: Move to gdbsupport/.
8213 * acinclude.m4: Update path to selftest.m4.
8214
74cd3f9d
SM
82152020-03-12 Simon Marchi <simon.marchi@efficios.com>
8216
8217 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
8218 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
8219 gdbarch-selfselftests.c and selftest-arch.c.
8220 (SUBDIR_UNITTESTS_OBS): Rename to...
8221 (SELFTESTS_OBS): ... this.
8222 (COMMON_SFILES): Remove disasm-selftests.c and
8223 gdbarch-selftests.c.
8224 * configure.ac: Don't add selftest-arch.{c,o} to
8225 CONFIG_{SRCS,OBS}.
8226 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
8227 preprocessor conditions.
8228
db6878ac
SM
82292020-03-12 Simon Marchi <simon.marchi@efficios.com>
8230
8231 * configure.ac: Don't source bfd/development.sh.
8232 * selftest.m4: Modify comment.
8233 * configure: Re-generate.
8234
4d696a5c
SM
82352020-03-12 Simon Marchi <simon.marchi@efficios.com>
8236
8237 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
8238 not "true" or "false".
8239 * configure: Re-generate.
8240
8dd8e1c7
CB
82412020-03-12 Christian Biesinger <cbiesinger@google.com>
8242
8243 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
8244 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
8245 renamed to arm_nbsd_supply_gregset.
8246 (fetch_register): Update to call arm_nbsd_supply_gregset.
8247 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
8248 (arm_netbsd_nat_target::fetch_registers): Update.
8249 (fetch_elfcore_registers): Removed.
8250 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
8251 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
8252 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
8253 not require NetBSD system headers.
8254 (arm_nbsd_regset): New struct.
8255 (arm_nbsd_iterate_over_regset_sections): New function.
8256 (arm_netbsd_init_abi_common): Updated to call
8257 set_gdbarch_iterate_over_regset_sections.
8258 * arm-nbsd-tdep.h: New file.
8259
dd69bf7a
KB
82602020-03-11 Kevin Buettner <kevinb@redhat.com>
8261
8262 * symtab.c (find_pc_sect_line): Add check which prevents infinite
8263 recursion.
8264
a0761e34
SM
82652020-03-11 Simon Marchi <simon.marchi@efficios.com>
8266
8267 * configure: Re-generate.
8268
e7a82140
TT
82692020-03-11 Tom Tromey <tromey@adacore.com>
8270
8271 * ada-typeprint.c (print_choices): Fix comment.
8272
dcc050c8
AB
82732020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
8274
8275 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
8276 previous item in the list, when the list has no items.
8277
1c33af77
TV
82782020-03-11 Tom de Vries <tdevries@suse.de>
8279
8280 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
8281 PROP_LOCLIST handling code.
8282
8c95582d
AB
82832020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
8284
8285 * buildsym-legacy.c (record_line): Pass extra parameter to
8286 record_line.
8287 * buildsym.c (buildsym_compunit::record_line): Take an extra
8288 parameter, reduce duplication in the line table, and record the
8289 is_stmt flag in the line table.
8290 * buildsym.h (buildsym_compunit::record_line): Add extra
8291 parameter.
8292 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
8293 non-statement lines.
8294 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
8295 this to the symtab builder.
8296 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
8297 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
8298 through to dwarf_record_line_1.
8299 * infrun.c (process_event_stop_test): When stepping, don't stop at
8300 a non-statement instruction, and only refresh the step info when
8301 we land in the middle of a line's range. Also add an extra
8302 comment.
8303 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
8304 field.
8305 * record-btrace.c (btrace_find_line_range): Only record lines
8306 marked as is-statement.
8307 * stack.c (frame_show_address): Show the frame address if we are
8308 in a non-statement sal.
8309 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
8310 (maintenance_print_one_line_table): Print a header for the is_stmt
8311 column, and include is_stmt information in the output.
8312 * symtab.c (find_pc_sect_line): Find lines marked as statements in
8313 preference to non-statements.
8314 (find_pcs_for_symtab_line): Prefer is-statement entries.
8315 (find_line_common): Likewise.
8316 * symtab.h (struct linetable_entry): Add is_stmt field.
8317 (struct symtab_and_line): Likewise.
8318 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
8319 arranging the line table.
8320
e4003a34
TV
83212020-03-07 Tom de Vries <tdevries@suse.de>
8322
8323 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
8324 DIE.
8325
e8932576
TT
83262020-03-07 Tom Tromey <tom@tromey.com>
8327
8328 * valops.c (value_literal_complex): Remove obsolete comment.
8329 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
8330 comment.
8331
29734269
SM
83322020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
8333
8334 * infrun.h: Forward-declare thread_info.
8335 (set_step_info): Add thread_info parameter, add doc.
8336 * infrun.c (set_step_info): Add thread_info parameter, move doc
8337 to header.
8338 * infrun.c (process_event_stop_test): Pass thread to
8339 set_step_info call.
8340 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
8341 set_step_info.
8342 (prepare_one_step): Add thread_info parameter, pass it to
8343 set_step_frame and prepare_one_step (recursive) call.
8344 (step_1): Pass thread to prepare_one_step call.
8345 (step_command_fsm::should_stop): Pass thread to
8346 prepare_one_step.
8347 (until_next_fsm): Pass thread to set_step_frame call.
8348 (finish_command): Pass thread to set_step_info call.
8349
b7d64b29
HD
83502020-03-06 Hannes Domani <ssbssa@yahoo.de>
8351
8352 * windows-tdep.c (windows_solib_create_inferior_hook):
8353 Check if inferior is running.
8354
09f2921c
TV
83552020-03-06 Tom de Vries <tdevries@suse.de>
8356
8357 * NEWS: Fix "the the".
8358 * ctfread.c: Same.
8359
fd760e79
TV
83602020-03-06 Tom de Vries <tdevries@suse.de>
8361
8362 * psymtab.c (psymtab_to_symtab): Don't print "done.".
8363
20ea4a60
AB
83642020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
8365
8366 * .dir-locals.el: Add a comment referencing the other copies of
8367 this file.
8368
0afbabf0
JB
83692020-03-05 John Baldwin <jhb@FreeBSD.org>
8370
8371 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
8372 psargs.
8373
842806cb
TBA
83742020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8375
8376 * .gitattributes: New file.
8377
be1e3d3e
TT
83782020-03-04 Tom Tromey <tom@tromey.com>
8379
8380 * symmisc.c (print_symbol_bcache_statistics)
8381 (print_objfile_statistics): Update.
8382 * symfile.c (allocate_symtab): Use intern.
8383 * psymtab.c (partial_symtab::partial_symtab): Use intern.
8384 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
8385 macro_cache>: Remove.
8386 <string_cache>: New member.
8387 (struct objfile) <intern>: New methods.
8388 * elfread.c (elf_symtab_read): Use intern.
8389 * dwarf2/read.c (fixup_go_packaging): Intern package name.
8390 (dwarf2_compute_name, dwarf2_physname)
8391 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
8392 names.
8393 (guess_partial_die_structure_name): Update.
8394 (partial_die_info::fixup): Intern name.
8395 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
8396 name.
8397 (dwarf2_name): Intern name. Update.
8398 * buildsym.c (buildsym_compunit::get_macro_table): Use
8399 string_cache.
8400
4e7625fd
TT
84012020-03-04 Tom Tromey <tom@tromey.com>
8402
8403 * jit.c (bfd_open_from_target_memory): Make "target" const.
8404 * corefile.c (gnutarget): Now const.
8405 * gdbcore.h (gnutarget): Now const.
8406
46f9f931
HD
84072020-03-04 Hannes Domani <ssbssa@yahoo.de>
8408
8409 * NEWS: Mention support for WOW64 processes.
8410 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
8411 (amd64_windows_segment_register_p): Remove static.
8412 (_initialize_amd64_windows_nat): Update.
8413 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
8414 * i386-windows-nat.c (context_offset): Update.
8415 (i386_mappings): Rename and remove static.
8416 (i386_windows_segment_register_p): Remove static.
8417 (_initialize_i386_windows_nat): Update.
8418 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
8419 (STATUS_WX86_SINGLE_STEP): New macro.
8420 (EnumProcessModulesEx): New macro.
8421 (Wow64SuspendThread): New macro.
8422 (Wow64GetThreadContext): New macro.
8423 (Wow64SetThreadContext): New macro.
8424 (Wow64GetThreadSelectorEntry): New macro.
8425 (windows_set_context_register_offsets): Add static.
8426 (windows_set_segment_register_p): Likewise.
8427 (windows_add_thread): Adapt for WOW64 processes.
8428 (windows_fetch_one_register): Likewise.
8429 (windows_nat_target::fetch_registers): Likewise.
8430 (windows_store_one_register): Likewise.
8431 (display_selector): Likewise.
8432 (display_selectors): Likewise.
8433 (handle_exception): Likewise.
8434 (windows_continue): Likewise.
8435 (windows_nat_target::resume): Likewise.
8436 (windows_add_all_dlls): Likewise.
8437 (do_initial_windows_stuff): Likewise.
8438 (windows_nat_target::attach): Likewise.
8439 (windows_get_exec_module_filename): Likewise.
8440 (windows_nat_target::create_inferior): Likewise.
8441 (windows_xfer_siginfo): Likewise.
8442 (_initialize_loadable): Initialize Wow64SuspendThread,
8443 Wow64GetThreadContext, Wow64SetThreadContext,
8444 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
8445 * windows-nat.h (windows_set_context_register_offsets):
8446 Remove declaration.
8447 (windows_set_segment_register_p): Likewise.
8448 (i386_windows_segment_register_p): Add declaration.
8449 (amd64_windows_segment_register_p): Likewise.
8450
440cf44e
LM
84512020-03-04 Luis Machado <luis.machado@linaro.org>
8452
8453 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
8454 in "info registers" for AArch64/ARM.
8455
8456 The change caused "info registers" to not print GPR's.
8457
8458 gdb/ChangeLog:
8459
8460 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
8461
8462 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
8463 when reg->group is empty and reggroup is not.
8464
1009d92f
TT
84652020-03-03 Tom Tromey <tromey@adacore.com>
8466
8467 * dwarf2/frame.c (struct dwarf2_frame_cache)
8468 <checked_tailcall_bottom, entry_cfa_sp_offset,
8469 entry_cfa_sp_offset_p>: Remove members.
8470 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
8471 (dwarf2_frame_prev_register): Don't call
8472 dwarf2_tailcall_sniffer_first.
8473 (dwarf2_append_unwinders): Don't append tailcall unwinder.
8474 * frame-unwind.c (add_unwinder): New fuction.
8475 (frame_unwind_init): Use it. Add tailcall unwinder.
8476
5e5d66b6
AB
84772020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
8478 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
8479
8480 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
8481 value should be printed as true.
8482
584cf46d
HD
84832020-03-03 Hannes Domani <ssbssa@yahoo.de>
8484
8485 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
8486 (windows_init_abi): Set and use windows_so_ops.
8487
7b973adc
SDJ
84882020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
8489
8490 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
8491 when verifying if dealing with a convenience variable.
8492
bb7b70ab
LM
84932020-03-03 Luis Machado <luis.machado@linaro.org>
8494
8495 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
8496
9822cb57
SM
84972020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
8498
8499 * infrun.c (gdbarch_supports_displaced_stepping): New.
8500 (use_displaced_stepping): Break up conditions in smaller pieces.
8501 Use gdbarch_supports_displaced_stepping.
8502 (displaced_step_prepare_throw): Use
8503 gdbarch_supports_displaced_stepping.
8504
63e163f2
AB
85052020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
8506
8507 * NEWS: Mention new behaviour of the history filename.
8508 * top.c (write_history_p): Add comment.
8509 (show_write_history_p): Add header comment, give a different
8510 message when history writing is on, but the history filename is
8511 empty.
8512 (history_filename): Add comment.
8513 (history_filename_empty): New function.
8514 (show_history_filename): Add header comment, give a different
8515 message when the filename is empty.
8516 (init_history): Compare history_filename against nullptr, and only
8517 read history if the filename is not empty.
8518 (set_history_filename): Add header comment, and only make
8519 non-empty filenames absolute.
8520 (init_main): Make the filename argument to 'set history filename'
8521 optional.
8522
81b86b97
CB
85232020-03-02 Christian Biesinger <cbiesinger@google.com>
8524
8525 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
8526 (arm_supply_vfpregset): ...this, and update to use VFP registers.
8527 (fetch_fp_register): Update.
8528 (fetch_fp_regs): Update.
8529 (store_fp_register): Update.
8530 (store_fp_regs): Update.
8531 (arm_netbsd_nat_target::read_description): New function.
8532 (fetch_elfcore_registers): Update.
8533
24ed6739
AB
85342020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
8535
8536 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
8537 general_thread if the stop reply is missing a thread-id.
8538 (remote_target::process_stop_reply): Use the first non-exited
8539 thread if the target didn't pass a thread-id.
8540 * infrun.c (do_target_wait): Move call to
8541 switch_to_inferior_no_thread to ....
8542 (do_target_wait_1): ... here.
8543
a84bb2a0
JT
85442020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
8545
8546 * debuginfod-support.c: Include defs.h first.
8547
658dadf0
TV
85482020-02-28 Tom de Vries <tdevries@suse.de>
8549
8550 * symfile.c (set_initial_language): Use default language for lookup.
8551
4ebe4877
SM
85522020-02-28 Simon Marchi <simon.marchi@efficios.com>
8553
8554 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
8555 reader variable, pass `this` to read_cutu_die_from_dwo.
8556
e5da1139
AM
85572020-02-27 Aaron Merey <amerey@redhat.com>
8558
8559 * source.c (open_source_file): Check for nullptr when computing
8560 srcpath.
8561
317f7127
TT
85622020-02-27 Tom Tromey <tromey@adacore.com>
8563
8564 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
8565 member.
8566 (dwarf2_add_field): Don't update nfields.
8567 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
8568
3104d9ee
AB
85692020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8570
8571 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
8572 abs.
8573
b83470bf
TT
85742020-02-26 Tom Tromey <tom@tromey.com>
8575
8576 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
8577 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
8578 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
8579 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
8580 per_cu_data.
8581
edfe0a0c
TT
85822020-02-26 Tom Tromey <tom@tromey.com>
8583
8584 * dwarf2/index-write.c (psym_index_map): Change type.
8585 (add_address_entry_worker, write_one_signatured_type)
8586 (recursively_count_psymbols, recursively_write_psymbols)
8587 (class debug_names, psyms_seen_size, write_gdbindex)
8588 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
8589
0d79cdc4
AM
85902020-02-26 Aaron Merey <amerey@redhat.com>
8591
8592 * Makefile.in: Handle optional debuginfod support.
8593 * NEWS: Update.
8594 * README: Add --with-debuginfod summary.
8595 * config.in: Regenerate.
8596 * configure: Regenerate.
8597 * configure.ac: Handle optional debuginfod support.
8598 * debuginfod-support.c: debuginfod helper functions.
8599 * debuginfod-support.h: Ditto.
8600 * doc/gdb.texinfo: Add --with-debuginfod to configure options
8601 summary.
8602 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
8603 when a dwz file cannot be found.
8604 * elfread.c (elf_symfile_read): Query debuginfod servers when a
8605 debuginfo file cannot be found.
8606 * source.c (open_source_file): Query debuginfod servers when a
8607 source file cannot be found.
8608 * top.c (print_gdb_configuration): Include
8609 --{with,without}-debuginfod in the output.
8610
b65ce565
JG
86112020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
8612
8613 * thread.c (thr_try_catch_cmd): Print thread name.
8614
d4c9a4f8
SM
86152020-02-26 Simon Marchi <simon.marchi@efficios.com>
8616
8617 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
8618 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
8619 dwarf2_fetch_die_type_sect_off): Move to...
8620 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
8621 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
8622 dwarf2_fetch_die_type_sect_off): ... here.
8623 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
8624 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
8625 dwarf2_fetch_die_type_sect_off): Move doc to header file.
8626
0dce4280
TV
86272020-02-26 Tom de Vries <tdevries@suse.de>
8628
8629 PR gdb/25603
8630 * symfile.c (set_initial_language): Exit-early if
8631 language_mode == language_mode_manual.
8632
450a1bfc
SM
86332020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
8634
8635 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
8636 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
8637 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
8638
9e80cfa1
AB
86392020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
8640
8641 * gdbtypes.c (create_array_type_with_stride): Handle negative
8642 array strides.
8643 * valarith.c (value_subscripted_rvalue): Likewise.
8644
09624f1f
LM
86452020-02-25 Luis Machado <luis.machado@linaro.org>
8646
8647 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
8648
8cb5117c
SM
86492020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
8650
8651 * loc.h (dwarf2_get_die_type): Move to...
8652 * read.h (dwarf2_get_die_type): ... here.
8653 * read.c (dwarf2_get_die_type): Move doc to header.
8654
c325c44e
JB
86552020-02-25 Joel Brobecker <brobecker@adacore.com>
8656
8657 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
8658 'gnulib/Makefile.in' to the list.
8659
4ac93832
TT
86602020-02-24 Tom Tromey <tom@tromey.com>
8661
8662 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
8663 Remove.
8664 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
8665 XOBNEWVEC.
8666
197400e8
TT
86672020-02-24 Tom Tromey <tom@tromey.com>
8668
8669 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
8670 New method.
8671 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
8672 (dw2_do_instantiate_symtab, dw2_get_file_names)
8673 (build_type_psymtab_dependencies, load_full_type_unit): Update.
8674
76935768
TT
86752020-02-24 Tom Tromey <tom@tromey.com>
8676
8677 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
8678 make_scoped_restore.
8679 (dwarf2_psymtab::read_symtab): Don't clear
8680 reading_partial_symbols.
8681
a88ef40d
TV
86822020-02-24 Tom de Vries <tdevries@suse.de>
8683
8684 PR gdb/25592
8685 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
8686
c9af6521
TV
86872020-02-24 Tom de Vries <tdevries@suse.de>
8688
8689 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
8690 commands layout next/prev/regs.
8691
5707a07a
TT
86922020-02-22 Tom Tromey <tom@tromey.com>
8693
8694 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
8695 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
8696
3b0fb49e
TT
86972020-02-22 Tom Tromey <tom@tromey.com>
8698
8699 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
8700
283be8bf
TT
87012020-02-22 Tom Tromey <tom@tromey.com>
8702
8703 * tui/tui-win.c (_initialize_tui_win): Add usage text.
8704 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
8705 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
8706 * tui/tui.c (_initialize_tui): Add usage text.
8707
ca793b96
TT
87082020-02-22 Tom Tromey <tom@tromey.com>
8709
8710 * tui/tui-win.c (tui_set_focus_command)
8711 (tui_set_win_height_command): Use error_no_arg.
8712 (_initialize_tui_win): Update help text.
8713 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
8714
432b5c40
TT
87152020-02-22 Tom Tromey <tom@tromey.com>
8716
8717 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
8718 * tui/tui-disasm.h (struct tui_disasm_window)
8719 <display_start_addr>: Declare.
8720 * tui/tui-source.h (struct tui_source_window)
8721 <display_start_addr>: Declare.
8722 * tui/tui-winsource.h (struct tui_source_window_base)
8723 <show_source_line, display_start_addr>: New methods.
8724 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
8725 Rename and move to protected section.
8726 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
8727 (tui_source_window_base::do_erase_source_content): Update.
8728 (tui_source_window_base::show_source_line): Now a method.
8729 (tui_source_window_base::show_source_content)
8730 (tui_source_window_base::tui_source_window_base)
8731 (tui_source_window_base::rerender)
8732 (tui_source_window_base::refill)
8733 (tui_source_window_base::do_scroll_horizontal)
8734 (tui_source_window_base::set_is_exec_point_at)
8735 (tui_source_window_base::update_breakpoint_info)
8736 (tui_source_window_base::update_exec_info): Update.
8737 * tui/tui-source.c (tui_source_window::set_contents)
8738 (tui_source_window::showing_source_p)
8739 (tui_source_window::do_scroll_vertical)
8740 (tui_source_window::location_matches_p)
8741 (tui_source_window::line_is_displayed): Update.
8742 (tui_source_window::display_start_addr): New method.
8743 * tui/tui-disasm.c (tui_disasm_window::set_contents)
8744 (tui_disasm_window::do_scroll_vertical)
8745 (tui_disasm_window::location_matches_p): Update.
8746 (tui_disasm_window::display_start_addr): New method.
8747
01b1af32
TT
87482020-02-22 Tom Tromey <tom@tromey.com>
8749
8750 * NEWS: Add entry for gdb.register_window_type.
8751 * tui/tui-layout.h (window_factory): New typedef.
8752 (tui_register_window): Declare.
8753 * tui/tui-layout.c (saved_tui_windows): New global.
8754 (tui_apply_current_layout): Use it.
8755 (tui_register_window): New function.
8756 * python/python.c (do_start_initialization): Call
8757 gdbpy_initialize_tui.
8758 (python_GdbMethods): Add "register_window_type" function.
8759 * python/python-internal.h (gdbpy_register_tui_window)
8760 (gdbpy_initialize_tui): Declare.
8761 * python/py-tui.c: New file.
8762 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
8763
fc96d20b
TT
87642020-02-22 Tom Tromey <tom@tromey.com>
8765
8766 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
8767
935c78c0
TT
87682020-02-22 Tom Tromey <tom@tromey.com>
8769
8770 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
8771 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
8772 * tui/tui-data.c (tui_set_win_with_focus): Remove.
8773 (tui_set_win_focus_to): Move from tui-win.c.
8774
0240c8f1
TT
87752020-02-22 Tom Tromey <tom@tromey.com>
8776
8777 * tui/tui-layout.c (make_standard_window, get_locator_window): New
8778 functions.
8779 (known_window_types): New global.
8780 (tui_get_window_by_name): Reimplement.
8781 (initialize_known_windows): New function.
8782 (validate_window_name): Rewrite.
8783 (_initialize_tui_layout): Call initialize_known_windows.
8784
fdb01f0c
TT
87852020-02-22 Tom Tromey <tom@tromey.com>
8786
8787 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
8788 Remove constants.
8789 * tui/tui-winsource.h (struct tui_source_window_base)
8790 <tui_source_window_base>: Remove parameter.
8791 * tui/tui-winsource.c
8792 (tui_source_window_base::tui_source_window_base): Remove
8793 parameter.
8794 (tui_source_window_base::refill): Update.
8795 * tui/tui-stack.h (struct tui_locator_window)
8796 <tui_locator_window>: Update.
8797 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
8798 Default the constructor.
8799 * tui/tui-regs.h (struct tui_data_item_window)
8800 <tui_data_item_window>: Default the constructor.
8801 (struct tui_data_window) <tui_data_window>: Likewise.
8802 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
8803 Default the constructor.
8804 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
8805 Default the constructor.
8806 <type>: Remove.
8807 (struct tui_win_info) <tui_win_info>: Default the constructor.
8808 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
8809 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
8810 Default the constructor.
8811
865a5aec
TT
88122020-02-22 Tom Tromey <tom@tromey.com>
8813
8814 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
8815 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
8816 * tui/tui-win.c (tui_resize_all): Don't call
8817 tui_delete_invisible_windows.
8818 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
8819 done.
8820 (tui_set_layout): Update.
8821 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
8822 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
8823 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
8824
e098d18c
TT
88252020-02-22 Tom Tromey <tom@tromey.com>
8826
8827 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
8828 correctly.
8829
eb9c8874
TT
88302020-02-22 Tom Tromey <tom@tromey.com>
8831
8832 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
8833
7eed1a8e
TT
88342020-02-22 Tom Tromey <tom@tromey.com>
8835
8836 * tui/tui-winsource.h (struct tui_source_window_iterator)
8837 <inner_iterator>: New etytypedef.
8838 <tui_source_window_iterator>: Take "end" parameter.
8839 <tui_source_window_iterator>: Take iterator.
8840 <operator*, advance>: Update.
8841 <m_iter>: Change type.
8842 <m_end>: New field.
8843 (struct tui_source_windows) <begin, end>: Update.
8844 * tui/tui-layout.c (tui_windows): New global.
8845 (tui_apply_current_layout): Clear tui_windows.
8846 (tui_layout_window::apply): Update tui_windows.
8847 * tui/tui-data.h (tui_windows): Declare.
8848 (all_tui_windows): Now inline function.
8849 (class tui_window_iterator, struct all_tui_windows): Remove.
8850
7c043ba6
TT
88512020-02-22 Tom Tromey <tom@tromey.com>
8852
8853 PR tui/17850:
8854 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
8855 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
8856 "height" argument.
8857 (class tui_layout_window) <get_sizes>: Likewise.
8858 (class tui_layout_split) <tui_layout_split>: Add "vertical"
8859 argument.
8860 <get_sizes>: Add "height" argument.
8861 <m_vertical>: New field.
8862 * tui/tui-layout.c (tui_layout_split::clone): Update.
8863 (tui_layout_split::get_sizes): Add "height" argument.
8864 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
8865 (tui_new_layout_command): Parse "-horizontal".
8866 (_initialize_tui_layout): Update help string.
8867 (tui_layout_split::specification): Add "-horizontal" when needed.
8868 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
8869 argument.
8870 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
8871 New methods.
8872
6bc56648
TT
88732020-02-22 Tom Tromey <tom@tromey.com>
8874
8875 * tui/tui-layout.h (enum tui_adjust_result): New.
8876 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
8877 (class tui_layout_window) <adjust_size>: Return
8878 tui_adjust_result. Rewrite.
8879 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
8880 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
8881
c22fef7e
TT
88822020-02-22 Tom Tromey <tom@tromey.com>
8883
8884 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
8885 parameter and return types.
8886 (class tui_layout_base) <specification>: Add "depth".
8887 (class tui_layout_window) <specification>: Add "depth".
8888 (class tui_layout_split) <specification>: Add "depth".
8889 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
8890 and return types.
8891 (tui_new_layout_command): Parse sub-layouts.
8892 (_initialize_tui_layout): Update help string.
8893 (tui_layout_window::specification): Add "depth".
8894 (add_layout_command): Update.
8895
ee325b61
TT
88962020-02-22 Tom Tromey <tom@tromey.com>
8897
8898 * NEWS: Add "tui new-layout" item.
8899 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
8900 Add new-layout command to help text.
8901 (validate_window_name): New function.
8902 (tui_new_layout_command): New function.
8903 (_initialize_tui_layout): Register "new-layout".
8904 (tui_layout_window::specification): New method.
8905 (tui_layout_window::specification): New method.
8906 * tui/tui-layout.h (class tui_layout_base) <specification>: New
8907 method.
8908 (class tui_layout_window) <specification>: New method.
8909 (class tui_layout_split) <specification>: New method.
8910
416eb92d
TT
89112020-02-22 Tom Tromey <tom@tromey.com>
8912
8913 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
8914 * tui/tui-win.c (window_name_completer): Update comment.
8915 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
8916 Declare method.
8917 (class tui_layout_window) <replace_window>: Likewise.
8918 (class tui_layout_split) <replace_window>: Likewise.
8919 (tui_set_layout): Don't declare.
8920 (tui_set_initial_layout): Declare function.
8921 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
8922 (asm_regs_layout): New globals.
8923 (tui_current_layout, show_layout): Remove.
8924 (tui_set_layout, tui_add_win_to_layout): Rewrite.
8925 (find_layout, tui_apply_layout): New function.
8926 (layout_completer): Remove.
8927 (tui_next_layout): Reimplement.
8928 (tui_next_layout_command): New function.
8929 (tui_set_initial_layout, tui_prev_layout_command): New functions.
8930 (tui_regs_layout): Reimplement.
8931 (tui_regs_layout_command): New function.
8932 (extract_display_start_addr): Rewrite.
8933 (next_layout, prev_layout): Remove.
8934 (tui_layout_window::replace_window): New method.
8935 (tui_layout_split::replace_window): New method.
8936 (destroy_layout): New function.
8937 (layout_list): New global.
8938 (add_layout_command): New function.
8939 (initialize_layouts): Update.
8940 (tui_layout_command): New function.
8941 (_initialize_tui_layout): Install "layout" commands.
8942 * tui/tui-data.h (enum tui_layout_type): Remove.
8943 (tui_current_layout): Don't declare.
8944
0dbc2fc7
TT
89452020-02-22 Tom Tromey <tom@tromey.com>
8946
8947 * tui/tui-regs.c (tui_reg_layout): Remove.
8948 (tui_reg_command): Use tui_regs_layout.
8949 * tui/tui-layout.h (tui_reg_command): Declare.
8950 * tui/tui-layout.c (tui_reg_command): New function.
8951
5afe342e
TT
89522020-02-22 Tom Tromey <tom@tromey.com>
8953
8954 * tui/tui.c (tui_rl_delete_other_windows): Call
8955 tui_remove_some_windows.
8956 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
8957 Declare method.
8958 (class tui_layout_window) <remove_windows>: New method.
8959 (class tui_layout_split) <remove_windows>: Declare.
8960 (tui_remove_some_windows): Declare.
8961 * tui/tui-layout.c (tui_remove_some_windows): New function.
8962 (tui_layout_split::remove_windows): New method.
8963
427326a8
TT
89642020-02-22 Tom Tromey <tom@tromey.com>
8965
8966 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
8967 * tui/tui-layout.h (tui_next_layout): Declare.
8968 * tui/tui-layout.c (tui_next_layout): New function.
8969
3fe12b6d
TT
89702020-02-22 Tom Tromey <tom@tromey.com>
8971
8972 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
8973 correct coordinates.
8974
59b8b5d2
TT
89752020-02-22 Tom Tromey <tom@tromey.com>
8976
8977 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
8978 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
8979 DATA_WIN case.
8980
2a3d458b
TT
89812020-02-22 Tom Tromey <tom@tromey.com>
8982
8983 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
8984 TUI_DISASM_WIN, not tui_win_list.
8985
3f0cbb04
TT
89862020-02-22 Tom Tromey <tom@tromey.com>
8987
8988 * valprint.c (generic_val_print_enum_1)
8989 (val_print_type_code_flags): Style member names.
8990 * rust-lang.c (val_print_struct, rust_print_enum)
8991 (rust_print_struct_def, rust_internal_print_type): Style member
8992 names.
8993 * p-valprint.c (pascal_object_print_value_fields): Style member
8994 names. Only call fprintf_symbol_filtered for static members.
8995 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
8996 * f-valprint.c (f_val_print): Style member names.
8997 * f-typeprint.c (f_type_print_base): Style member names.
8998 * cp-valprint.c (cp_print_value_fields): Style member names. Only
8999 call fprintf_symbol_filtered for static members.
9000 (cp_print_class_member): Style member names.
9001 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
9002 member names.
9003 * ada-valprint.c (ada_print_scalar): Style enum names.
9004 (ada_val_print_enum): Likewise.
9005 * ada-typeprint.c (print_enum_type): Style enum names.
9006
d4d947ae
TT
90072020-02-21 Tom Tromey <tom@tromey.com>
9008
9009 * psympriv.h (struct partial_symtab): Update comment.
9010
e94e944b
TT
90112020-02-21 Tom Tromey <tromey@adacore.com>
9012
9013 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
9014 type is CORE_ADDR.
9015
1eb73179
TV
90162020-02-21 Tom de Vries <tdevries@suse.de>
9017
9018 PR gdb/25534
9019 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
9020 if dependencies[i]->user != NULL.
9021
4f180d53
AT
90222020-02-21 Ali Tamur <tamur@google.com>
9023
9024 * dwarf2/read.c (dwarf2_name): Add null check.
9025
22b6cd70
TT
90262020-02-20 Tom Tromey <tom@tromey.com>
9027
9028 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
9029 ">=", in binary search.
9030 (dwarf2_find_containing_comp_unit): New overload.
9031 (run_test): New self-test.
9032 (_initialize_dwarf2_read): Register new test.
9033
bd0cf5a6
NC
90342020-02-20 Nelson Chu <nelson.chu@sifive.com>
9035
9036 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
9037 * riscv-tdep.h: Likewise.
9038 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
9039 rv32-only CSR.
9040 * features/riscv/64bit-csr.xml: Regenerated.
9041
3f702acd
SDJ
90422020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
9043 Tom Tromey <tom@tromey.com>
9044
9045 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
9046 of 'fputc_unfiltered'.
9047 (putchar_unfiltered): Call 'fputc_unfiltered'.
9048 (fputc_unfiltered): Call 'fputs_unfiltered'.
9049
d13c7322
AB
90502020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
9051
9052 * config.in: Regenerate.
9053 * configure: Regenerate.
9054 * configure.ac: Add --with-python-libdir option.
9055 * main.c: Use WITH_PYTHON_LIBDIR.
9056
869d8950
TT
90572020-02-19 Tom Tromey <tom@tromey.com>
9058
9059 * symtab.c (general_symbol_info::compute_and_set_names): Use
9060 obstack_strndup. Simplify call to symbol_set_demangled_name.
9061
298e9637
SM
90622020-02-19 Simon Marchi <simon.marchi@efficios.com>
9063
9064 * dwarf2/read.c (allocate_signatured_type_table,
9065 allocate_dwo_unit_table, allocate_type_unit_groups_table,
9066 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
9067 Remove objfile parameter, update all callers.
9068
08410482
DE
90692020-02-19 Doug Evans <dje@google.com>
9070
9071 PR rust/25535
9072 * rust-lang.c (rust_print_enum): Apply embedded_offset to
9073 rust_enum_variant calculation.
9074
dfdeeca1
TT
90752020-02-19 Tom Tromey <tromey@adacore.com>
9076
9077 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
9078
2ef5453b
TT
90792020-02-19 Tom Tromey <tromey@adacore.com>
9080
9081 * ada-lang.c (cache_symbol): Use obstack_strdup.
9082
9f1528a1
AB
90832020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
9084
9085 * configure: Regenerate.
9086
d3c22fa8
TT
90872020-02-19 Tom Tromey <tromey@adacore.com>
9088
9089 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
9090 NULL check.
9091
bf84f706
MR
90922020-02-19 Maciej W. Rozycki <macro@wdc.com>
9093
9094 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
9095
d1c9b20f
AB
90962020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
9097
9098 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
9099 if GDBSERVER is not defined.
9100 (riscv_tdesc_cache): Likewise, also store const target_desc.
9101 (STATIC_IN_GDB): Define.
9102 (riscv_create_target_description): Update declaration with
9103 STATIC_IN_GDB.
9104 (riscv_lookup_target_description): New function, only define if
9105 GDBSERVER is not defined.
9106 * arch/riscv.h (riscv_create_target_description): Declare only
9107 when GDBSERVER is defined.
9108 (riscv_lookup_target_description): New declaration when GDBSERVER
9109 is not defined.
9110 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
9111 (riscv_linux_read_features): ...this, and return
9112 riscv_gdbarch_features instead of target_desc.
9113 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
9114 (riscv_linux_read_description): Rename to...
9115 (riscv_linux_read_features): ...this.
9116 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
9117 Update to use riscv_gdbarch_features and
9118 riscv_lookup_target_description.
9119 * riscv-tdep.c (riscv_find_default_target_description): Use
9120 riscv_lookup_target_description instead of
9121 riscv_create_target_description.
9122
373d7ac0
SM
91232020-02-18 Simon Marchi <simon.marchi@efficios.com>
9124
9125 * valprint.c (generic_val_print_enum_1): When printing a flag
9126 enum with value 0 and there is no enumerator with value 0, print
9127 just "0" instead of "(unknown: 0x0)".
9128
b29a2df0
SM
91292020-02-18 Simon Marchi <simon.marchi@efficios.com>
9130
9131 * valprint.c (generic_val_print_enum_1): Print unknown part of
9132 flag enum in hex.
9133
6740f0cc
SM
91342020-02-18 Simon Marchi <simon.marchi@efficios.com>
9135
9136 * dwarf2/read.c (update_enumeration_type_from_children): Allow
9137 flag enums to contain duplicate enumerators.
9138 * valprint.c (generic_val_print_enum_1): Update comment.
9139
edd45eb0
SM
91402020-02-18 Simon Marchi <simon.marchi@efficios.com>
9141
9142 * dwarf2/read.c: Include "count-one-bits.h".
9143 (update_enumeration_type_from_children): If an enumerator has
9144 multiple bits set, don't treat the enumeration as a "flag enum".
9145 * valprint.c (generic_val_print_enum_1): Assert that enumerators
9146 of flag enums have 0 or 1 bit set.
9147
6d0cf446
BE
91482020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
9149
9150 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
9151 conversion.
9152 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
9153 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
9154 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
9155 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
9156 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
9157
7001c1b7
SM
91582020-02-18 Simon Marchi <simon.marchi@efficios.com>
9159
9160 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
9161
fdb61c6c
SM
91622020-02-14 Simon Marchi <simon.marchi@efficios.com>
9163
9164 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
9165 displaced_step_closure_up.
9166 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
9167 (struct displaced_step_closure_up):
9168 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
9169 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
9170 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
9171 Likewise.
9172 * gdbarch.sh (displaced_step_copy_insn): Likewise.
9173 * gdbarch.c, gdbarch.h: Re-generate.
9174 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
9175 displaced_step_closure_up.
9176 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
9177 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
9178 * infrun.h (displaced_step_closure_up): New type alias.
9179 (struct displaced_step_inferior_state) <step_closure>: Change
9180 type to displaced_step_closure_up.
9181 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
9182 displaced_step_closure_up.
9183 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
9184
a4a38eb4
TT
91852020-02-14 Tom Tromey <tom@tromey.com>
9186
9187 * minidebug.c (gnu_debug_key): New global.
9188 (find_separate_debug_file_in_section): Use it.
9189
e8217e61
SM
91902020-02-14 Simon Marchi <simon.marchi@efficios.com>
9191
9192 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
9193 std::unique_ptr.
9194 * gdbarch.c: Re-generate.
9195 * gdbarch.h: Re-generate.
9196 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
9197 change.
9198 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
9199 type to std::unique_ptr.
9200 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
9201 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
9202 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
9203 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
9204 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
9205 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
9206 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
9207 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
9208 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
9209
d8d83535
SM
92102020-02-14 Simon Marchi <simon.marchi@efficios.com>
9211
9212 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
9213 std::unique_ptr.
9214 (displaced_step_clear): Rename to...
9215 (displaced_step_reset): ... this. Just call displaced->reset ().
9216 (displaced_step_clear_cleanup): Rename to...
9217 (displaced_step_reset_cleanup): ... this.
9218 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
9219 (displaced_step_fixup): Likewise.
9220 (resume_1): Likewise.
9221 (handle_inferior_event): Restore child's memory before calling
9222 displaced_step_fixup on the parent.
9223 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
9224 to std::unique_ptr.
9225 <step_closure>: Change type to std::unique_ptr.
9226
5f661e03
SM
92272020-02-14 Simon Marchi <simon.marchi@efficios.com>
9228
9229 * arm-tdep.c: Include count-one-bits.h.
9230 (cleanup_block_store_pc): Use count_one_bits.
9231 (cleanup_block_load_pc): Use count_one_bits.
9232 (arm_copy_block_xfer): Use count_one_bits.
9233 (thumb2_copy_block_xfer): Use count_one_bits.
9234 (thumb_copy_pop_pc_16bit): Use count_one_bits.
9235 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
9236 (thumb_get_next_pcs_raw): Use count_one_bits.
9237 (arm_get_next_pcs_raw): Use count_one_bits_l.
9238 * arch/arm.c (bitcount): Remove.
9239 * arch/arm.h (bitcount): Remove.
9240
8084e579
TT
92412020-02-14 Tom Tromey <tromey@adacore.com>
9242
9243 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
9244 Update.
9245 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
9246 * dwarf2/loc.c (call_site_find_chain_1): Return
9247 unique_xmalloc_ptr.
9248 (call_site_find_chain): Likewise.
9249
258bf0ee
RB
92502020-02-14 Richard Biener <rguenther@suse.de>
9251
9252 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
9253 on expression with division operators.
9254
f98a8458
AKS
92552020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
9256
9257 * MAINTAINERS (Write After Approval): Adding myself.
9258
d1437c0e
TT
92592020-02-12 Tom Tromey <tom@tromey.com>
9260
9261 * event-loop.c (event_data, gdb_event, event_handler_func):
9262 Remove.
9263
3d4560f7
TT
92642020-02-12 Tom Tromey <tom@tromey.com>
9265
9266 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
9267 (dwarf2_frame_objfile_data): Add comment.
9268 (find_comp_unit, set_comp_unit): New functions.
9269 (dwarf2_frame_find_fde): Use find_comp_unit.
9270 (dwarf2_build_frame_info): Use set_comp_unit.
9271
21982304
TT
92722020-02-12 Tom Tromey <tom@tromey.com>
9273
9274 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
9275 (comp_unit): Don't initialize objfile.
9276 (execute_cfa_program): Add text_offset parameter.
9277 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
9278 (dwarf2_frame_cache): Update.
9279 (dwarf2_build_frame_info): Don't set "objfile" member.
9280
4debb237
TT
92812020-02-12 Tom Tromey <tom@tromey.com>
9282
9283 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
9284 (decode_frame_entry): Likewise.
9285 (dwarf2_build_frame_info): Update.
9286
0d404d44
TT
92872020-02-12 Tom Tromey <tom@tromey.com>
9288
9289 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
9290 (decode_frame_entry_1): Use the comp_unit obstack.
9291
a7a3ae5c
TT
92922020-02-12 Tom Tromey <tom@tromey.com>
9293
9294 * dwarf2/frame.c (struct comp_unit): Add initializers and
9295 constructor.
9296 (dwarf2_frame_objfile_data): Store a comp_unit.
9297 (dwarf2_frame_find_fde): Update.
9298 (dwarf2_build_frame_info): Use "new".
9299
a9d65418
TT
93002020-02-12 Tom Tromey <tom@tromey.com>
9301
9302 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
9303 (dwarf2_fde_table): Typedef for std::vector.
9304 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
9305 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
9306 (decode_frame_entry): Update.
9307 (dwarf2_build_frame_info): Use "new".
9308
7559c217
CB
93092020-02-12 Christian Biesinger <cbiesinger@google.com>
9310
9311 * arm-tdep.c (arm_gdbarch_init): Update.
9312 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
9313 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
9314 have_neon, is_m>: Change to bool.
9315
aeefc73c
CB
93162020-02-12 Christian Biesinger <cbiesinger@google.com>
9317
9318 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
9319
d27b8e5f
TT
93202020-02-12 Tom Tromey <tom@tromey.com>
9321
9322 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
9323
cd5900f3
HD
93242020-02-12 Hannes Domani <ssbssa@yahoo.de>
9325
9326 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
9327 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
9328
f056b22b
TT
93292020-02-11 Tom Tromey <tom@tromey.com>
9330
9331 * psymtab.h: Update comment.
9332
f92ff6b5
TT
93332020-02-11 Tom Tromey <tom@tromey.com>
9334
9335 * gdb_obstack.h (struct auto_obstack): Use
9336 DISABLE_COPY_AND_ASSIGN.
9337
3fd6912b
TT
93382020-02-11 Tom Tromey <tom@tromey.com>
9339
9340 * dwarf2/frame.h (struct objfile): Don't forward declare.
9341
69ed9b74
CB
93422020-02-11 Christian Biesinger <cbiesinger@google.com>
9343
9344 * cris-tdep.c (cris_supply_gregset): Change signature to match
9345 what struct regset expects.
9346 (cris_regset): New struct.
9347 (fetch_core_registers): Remove.
9348 (cris_iterate_over_regset_sections): New function.
9349 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
9350 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
9351
bda874f6
CB
93522020-02-11 Christian Biesinger <cbiesinger@google.com>
9353
9354 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
9355 registers.
9356
754e1564
CB
93572020-02-11 Christian Biesinger <cbiesinger@google.com>
9358
9359 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
9360
8ddd8e0e
SM
93612020-02-11 Simon Marchi <simon.marchi@efficios.com>
9362
9363 * configure: Re-generate.
9364
898e7f60
SM
93652020-02-11 Simon Marchi <simon.marchi@efficios.com>
9366
9367 * configure: Re-generate.
9368
58df732b
SM
93692020-02-11 Simon Marchi <simon.marchi@efficios.com>
9370
9371 * acinclude: Update warning.m4 path.
9372 * warning.m4: Move to gdbsupport.
9373
da5bd37e
TT
93742020-02-11 Tom Tromey <tromey@adacore.com>
9375
9376 * remote.c (remote_console_output): Update.
9377 * printcmd.c (printf_command): Update.
9378 * event-loop.c (gdb_wait_for_event): Update.
9379 * linux-nat.c (sigchld_handler): Update.
9380 * remote-sim.c (gdb_os_write_stdout): Update.
9381 (gdb_os_flush_stdout): Update.
9382 (gdb_os_flush_stderr): Update.
9383 (gdb_os_write_stderr): Update.
9384 * exceptions.c (print_exception): Update.
9385 * remote-fileio.c (remote_fileio_func_read): Update.
9386 (remote_fileio_func_write): Update.
9387 * tui/tui.c (tui_enable): Update.
9388 * tui/tui-interp.c (tui_interp::init): Update.
9389 * utils.c (init_page_info): Update.
9390 (putchar_unfiltered, fputc_unfiltered): Update.
9391 (gdb_flush): Update.
9392 (emit_style_escape): Update.
9393 (flush_wrap_buffer, fputs_maybe_filtered): Update.
9394 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
9395 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
9396 (stderr_file::write): Update.
9397 (stderr_file::puts): Update.
9398 * ui-file.h (ui_file_isatty, ui_file_write)
9399 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
9400 (ui_file_puts): Don't declare.
9401
85f0dd3c
TV
94022020-02-10 Tom de Vries <tdevries@suse.de>
9403
9404 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
9405 sentinel to char *.
9406
2e927613
TV
94072020-02-09 Tom de Vries <tdevries@suse.de>
9408
9409 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
9410 filename if it matches "<artificial>".
9411
6bafc845
HD
94122020-02-09 Hannes Domani <ssbssa@yahoo.de>
9413
9414 * windows-tdep.c (struct enum_value_name): New struct.
9415 (create_enum): New function.
9416 (windows_get_siginfo_type): Create and use enum types.
9417
7928d571
HD
94182020-02-09 Hannes Domani <ssbssa@yahoo.de>
9419
9420 * NEWS: Mention $_siginfo support for Windows.
9421 * windows-nat.c (handle_exception): Set siginfo_er.
9422 (windows_nat_target::mourn_inferior): Reset siginfo_er.
9423 (windows_xfer_siginfo): New function.
9424 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
9425 * windows-tdep.c (struct windows_gdbarch_data): New struct.
9426 (init_windows_gdbarch_data): New function.
9427 (get_windows_gdbarch_data): New function.
9428 (windows_get_siginfo_type): New function.
9429 (windows_init_abi): Register windows_get_siginfo_type.
9430 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
9431
6751ebae
TT
94322020-02-08 Tom Tromey <tom@tromey.com>
9433
9434 * dwarf2/read.c (class cutu_reader) <cutu_reader,
9435 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
9436 <keep>: Declare method.
9437 <m_keep>: Remove member.
9438 <~cutu_reader>: Remove.
9439 (cutu_reader::init_tu_and_read_dwo_dies): Update.
9440 (cutu_reader::cutu_reader): Update.
9441 (cutu_reader::keep): Rename from ~cutu_reader.
9442 (process_psymtab_comp_unit, build_type_psymtabs_1)
9443 (process_skeletonless_type_unit, load_partial_comp_unit)
9444 (load_full_comp_unit, dwarf2_read_addr_index)
9445 (read_signatured_type): Update.
9446
135f5437
TT
94472020-02-08 Tom Tromey <tom@tromey.com>
9448
9449 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
9450 "want_partial_unit" parameter.
9451 (process_psymtab_comp_unit): Change want_partial_unit to bool.
9452 Inline check for DW_TAG_partial_unit.
9453 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
9454
9f66ff1c
TT
94552020-02-08 Tom Tromey <tom@tromey.com>
9456
9457 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
9458 read.c.
9459 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
9460 read.c.
9461
c8a7a66f
TT
94622020-02-08 Tom Tromey <tom@tromey.com>
9463
9464 * dwarf2/read.c (read_address): Move to comp-unit.c.
9465 (dwarf2_rnglists_process, dwarf2_ranges_process)
9466 (read_attribute_value, dwarf_decode_lines_1)
9467 (var_decode_location, decode_locdesc): Update.
9468 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
9469 read.c. Remove "cu" parameter.
9470 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
9471 method.
9472
8266302d
TT
94732020-02-08 Tom Tromey <tom@tromey.com>
9474
9475 * dwarf2/read.c (read_attribute_value, read_indirect_string)
9476 (read_indirect_line_string): Update.
9477 * dwarf2/comp-unit.c (read_offset): Remove.
9478 (read_comp_unit_head): Update.
9479 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
9480 method.
9481 (read_offset): Don't declare.
9482
4057dfde
TT
94832020-02-08 Tom Tromey <tom@tromey.com>
9484
9485 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
9486 * dwarf2/read.c (struct comp_unit_head): Move to
9487 dwarf2/comp-unit.h.
9488 (enum class rcuh_kind): Move to comp-unit.h.
9489 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
9490 (read_comp_unit_head, error_check_comp_unit_head)
9491 (read_and_check_comp_unit_head): Move to comp-unit.c.
9492 (read_offset, dwarf_unit_type_name): Likewise.
9493 (create_debug_type_hash_table, read_cutu_die_from_dwo)
9494 (cutu_reader::cutu_reader, read_call_site_scope)
9495 (find_partial_die, follow_die_offset): Update.
9496 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
9497
24aa364d
TT
94982020-02-08 Tom Tromey <tom@tromey.com>
9499
9500 * dwarf2/read.c (read_offset_1): Move to leb.c.
9501 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
9502 (dwarf_decode_macro_bytes): Update.
9503 * dwarf2/leb.c (read_offset): Rename; move from read.c.
9504 * dwarf2/leb.h (read_offset): Declare.
9505
2c7d5afc
TT
95062020-02-08 Tom Tromey <tom@tromey.com>
9507
9508 * dwarf2/read.c (dwarf2_section_size): Remove.
9509 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
9510 Update.
9511 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
9512
4075cb26
TT
95132020-02-08 Tom Tromey <tom@tromey.com>
9514
9515 * dwarf2/read.c (read_initial_length): Move to leb.c.
9516 * dwarf2/leb.h (read_initial_length): Declare.
9517 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
9518 handle_nonstd parameter.
9519 * dwarf2/frame.c (read_initial_length): Remove.
9520 (decode_frame_entry_1): Update.
9521
09ba997f
TT
95222020-02-08 Tom Tromey <tom@tromey.com>
9523
9524 * dwarf2/loc.c (dwarf2_find_location_expression)
9525 (dwarf_evaluate_loc_desc::get_tls_address)
9526 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
9527 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
9528 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
9529 (dwarf2_compile_property_to_c)
9530 (dwarf2_loc_desc_get_symbol_read_needs)
9531 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
9532 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
9533 (loclist_describe_location, loclist_tracepoint_var_ref)
9534 (loclist_generate_c_location): Update.
9535 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
9536 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
9537 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
9538 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
9539 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
9540 (dwarf2_per_cu_data::addr_size)
9541 (dwarf2_per_cu_data::ref_addr_size)
9542 (dwarf2_per_cu_data::text_offset)
9543 (dwarf2_per_cu_data::addr_type): Now methods.
9544 (per_cu_header_read_in): Make per_cu "const".
9545 (dwarf2_version): Remove.
9546 (dwarf2_per_cu_data::int_type): Now a method.
9547 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
9548 (set_die_type, read_array_type, read_subrange_index_type)
9549 (read_tag_string_type, read_subrange_type): Update.
9550 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
9551 offset_size, ref_addr_size, text_offset, addr_type, version,
9552 objfile, int_type, addr_sized_int_type>: Declare methods.
9553
96c738c0
TT
95542020-02-08 Tom Tromey <tom@tromey.com>
9555
9556 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
9557 Move earlier.
9558
8fdd972c
TT
95592020-02-08 Tom Tromey <tom@tromey.com>
9560
9561 * dwarf2/read.h (dwarf_line_debug): Declare.
9562 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
9563 * dwarf2/read.c: Move line_header code to new files.
9564 (dwarf_line_debug): No longer static.
9565 * dwarf2/line-header.c: New file.
9566 * dwarf2/line-header.h: New file.
9567
03075812
TT
95682020-02-08 Tom Tromey <tom@tromey.com>
9569
9570 * dwarf2/read.c (struct line_header) <file_full_name,
9571 file_file_name>: Return unique_xmalloc_ptr.
9572 (line_header::file_file_name): Update.
9573 (line_header::file_full_name): Update.
9574 (dw2_get_file_names_reader): Update.
9575 (macro_start_file): Update.
9576
bb822404
TT
95772020-02-08 Tom Tromey <tom@tromey.com>
9578
9579 * dwarf2/read.c (struct line_header) <file_full_name,
9580 file_file_name>: Declare methods.
9581 (dw2_get_file_names_reader): Update.
9582 (file_file_name): Now a method.
9583 (file_full_name): Likewise.
9584 (macro_start_file): Update.
9585
009b64fc
TT
95862020-02-08 Tom Tromey <tom@tromey.com>
9587
9588 * dwarf2/read.c (dwarf_always_disassemble)
9589 (show_dwarf_always_disassemble): Move to loc.c.
9590 (_initialize_dwarf2_read): Move "always-disassemble" registration
9591 to loc.c.
9592 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
9593 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
9594 static.
9595 (show_dwarf_always_disassemble): Move from read.c.
9596 (_initialize_dwarf2loc): Move always-disassemble from read.c.
9597
5895093f
TT
95982020-02-08 Tom Tromey <tom@tromey.com>
9599
9600 * dwarf2/read.c (~dwarf2_per_objfile): Update.
9601 (create_quick_file_names_table): Return htab_up.
9602 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
9603 Update.
9604 * dwarf2/read.h (struct dwarf2_per_objfile)
9605 <quick_file_names_table>: Now htab_up.
9606
b3b32279
TT
96072020-02-08 Tom Tromey <tom@tromey.com>
9608
9609 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
9610
1d33d811
TT
96112020-02-08 Tom Tromey <tom@tromey.com>
9612
9613 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
9614 Rewrite.
9615 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
9616 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
9617 (abbrev_table::abbrev_table): No longer inline.
9618 (ABBREV_HASH_SIZE): Remove.
9619 (abbrev_table::m_abbrevs): Now an htab_up.
9620
86de1d91
TT
96212020-02-08 Tom Tromey <tom@tromey.com>
9622
9623 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
9624 (cutu_reader): Update.
9625 (build_type_psymtabs_1): Update.
9626 * dwarf2/abbrev.c (abbrev_table::read): Rename.
9627 (abbrev_table::alloc_abbrev): Update.
9628 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
9629 (abbrev_table::read): New static method, renamed from
9630 abbrev_table_read_table.
9631 (abbrev_table::alloc_abbrev)
9632 (abbrev_table::add_abbrev): Now private.
9633 (abbrev_table::abbrev_table): Now private.
9634 (abbrev_table::m_abbrev_obstack): Now private. Rename.
9635
0335378b
TT
96362020-02-08 Tom Tromey <tom@tromey.com>
9637
9638 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
9639 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
9640 htab_up.
9641
48b490f2
TT
96422020-02-08 Tom Tromey <tom@tromey.com>
9643
9644 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
9645 htab_up.
9646 (lookup_dwo_unit_in_dwp): Update.
9647 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
9648 on obstack.
9649
bc68fb19
TT
96502020-02-08 Tom Tromey <tom@tromey.com>
9651
9652 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
9653 obstack.
9654
d15acc42
TT
96552020-02-08 Tom Tromey <tom@tromey.com>
9656
9657 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
9658 line_header_hash.
9659 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
9660 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
9661 Change type to htab_up.
9662
eaa5fa8b
TT
96632020-02-08 Tom Tromey <tom@tromey.com>
9664
9665 * dwarf2/read.c (allocate_type_unit_groups_table): Return
9666 htab_up. Don't allocate on obstack.
9667 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
9668 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
9669 Change type to htab_up.
9670
b0b6a987
TT
96712020-02-08 Tom Tromey <tom@tromey.com>
9672
9673 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
9674 Change type to htab_up.
9675 * dwarf2/read.c (create_signatured_type_table_from_index)
9676 (create_signatured_type_table_from_debug_names)
9677 (create_all_type_units, add_type_unit)
9678 (lookup_dwo_signatured_type, lookup_signatured_type)
9679 (process_skeletonless_type_unit): Update.
9680 (create_debug_type_hash_table, create_debug_types_hash_table):
9681 Change type of types_htab.
9682 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
9683 htab_up. Don't allocate on obstack.
9684 (create_cus_hash_table): Change type of cus_htab parameter.
9685 (struct dwo_file) <cus, tus>: Now htab_up.
9686 (lookup_dwo_signatured_type, lookup_dwo_cutu)
9687 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
9688 (queue_and_load_all_dwo_tus): Update.
9689 * dwarf2/index-write.c (write_gdbindex): Update.
9690 (write_debug_names): Update.
9691
39856def
TT
96922020-02-08 Tom Tromey <tom@tromey.com>
9693
9694 * dwarf2/read.h (struct dwarf2_queue_item): Move from
9695 dwarf2/read.c. Remove "next" member. Add constructor ntad
9696 destructor.
9697 (struct dwarf2_per_objfile) <queue>: New member.
9698 * dwarf2/read.c (struct dwarf2_queue_item): Move to
9699 dwarf2/read.h.
9700 (dwarf2_queue, dwarf2_queue_tail): Remove.
9701 (class dwarf2_queue_guard): Add parameter to constructor. Use
9702 DISABLE_COPY_AND_ASSIGN.
9703 <m_per_objfile>: New member.
9704 <~dwarf2_queue_guard>: Rewrite.
9705 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
9706 Update.
9707 (~dwarf2_queue_item): New.
9708
3e225074
TT
97092020-02-08 Tom Tromey <tom@tromey.com>
9710
9711 * dwarf2/read.c (struct die_info) <has_children>: New member.
9712 (dw2_get_file_names_reader): Remove has_children.
9713 (dw2_get_file_names): Update.
9714 (read_cutu_die_from_dwo): Remove has_children.
9715 (cutu_reader::init_tu_and_read_dwo_dies)
9716 (cutu_reader::cutu_reader): Update.
9717 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
9718 Remove has_children.
9719 (build_type_psymtabs_1, process_skeletonless_type_unit)
9720 (load_partial_comp_unit, load_full_comp_unit): Update.
9721 (create_dwo_cu_reader): Remove has_children.
9722 (create_cus_hash_table, read_die_and_children): Update.
9723 (read_full_die_1,read_full_die): Remove has_children.
9724 (read_signatured_type): Update.
9725 (class cutu_reader) <has_children>: Remove.
9726
82ca8957
TT
97272020-02-08 Tom Tromey <tom@tromey.com>
9728
9729 * dwarf2/expr.c: Rename from dwarf2expr.c.
9730 * dwarf2/expr.h: Rename from dwarf2expr.h.
9731 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
9732 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
9733 * dwarf2/frame.c: Rename from dwarf2-frame.c.
9734 * dwarf2/frame.h: Rename from dwarf2-frame.h.
9735 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
9736 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
9737 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
9738 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
9739 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
9740 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
9741 * dwarf2/loc.c: Rename from dwarf2loc.c.
9742 * dwarf2/loc.h: Rename from dwarf2loc.h.
9743 * dwarf2/read.c: Rename from dwarf2read.c.
9744 * dwarf2/read.h: Rename from dwarf2read.h.
9745 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
9746 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
9747 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
9748 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
9749 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
9750 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
9751 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
9752 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
9753 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
9754 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
9755 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
9756 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
9757 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
9758 Update.
9759 * Makefile.in (COMMON_SFILES): Update.
9760 (HFILES_NO_SRCDIR): Update.
9761
9e35d499
TT
97622020-02-08 Tom Tromey <tom@tromey.com>
9763
9764 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
9765 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
9766
1eba2311
TT
97672020-02-08 Tom Tromey <tom@tromey.com>
9768
9769 * dwarf2read.h (struct die_info): Don't declare.
9770
e41c2da2
TT
97712020-02-08 Tom Tromey <tom@tromey.com>
9772
9773 * dwarf2read.h (die_info_ptr): Remove typedef.
9774
4fc6c0d5
TT
97752020-02-08 Tom Tromey <tom@tromey.com>
9776
9777 * dwarf2read.c (read_call_site_scope)
9778 (handle_data_member_location, dwarf2_add_member_fn)
9779 (mark_common_block_symbol_computed, read_common_block)
9780 (attr_to_dynamic_prop, partial_die_info::read)
9781 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
9782 (dwarf2_symbol_mark_computed, set_die_type): Update.
9783 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
9784 method.
9785 (attr_form_is_block): Don't declare.
9786 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
9787
cd6c91b4
TT
97882020-02-08 Tom Tromey <tom@tromey.com>
9789
9790 * dwarf2read.c (dwarf2_find_base_address, )
9791 (read_call_site_scope, rust_containing_type)
9792 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
9793 (handle_data_member_location, dwarf2_add_member_fn)
9794 (get_alignment, read_structure_type, process_structure_scope)
9795 (mark_common_block_symbol_computed, read_common_block)
9796 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
9797 (partial_die_info::read, read_attribute_value, new_symbol)
9798 (lookup_die_type, dwarf2_get_ref_die_offset)
9799 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
9800 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
9801 (dwarf2_symbol_mark_computed): Update.
9802 * dwarf2/attribute.h (struct attribute) <value_as_address,
9803 form_is_section_offset, form_is_constant, form_is_ref>: Declare
9804 methods.
9805 (value_as_address, attr_form_is_section_offset)
9806 (attr_form_is_constant, attr_form_is_ref): Don't declare.
9807 * dwarf2/attribute.c (attribute::value_as_address)
9808 (attribute::form_is_section_offset, attribute::form_is_constant)
9809 (attribute::form_is_ref): Now methods.
9810
162dce55
TT
98112020-02-08 Tom Tromey <tom@tromey.com>
9812
9813 * dwarf2read.c (struct attribute, DW_STRING)
9814 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
9815 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
9816 (attr_form_is_block, attr_form_is_section_offset)
9817 (attr_form_is_constant, attr_form_is_ref): Move.
9818 * dwarf2/attribute.h: New file.
9819 * dwarf2/attribute.c: New file, from dwarf2read.c.
9820 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
9821
3054dd54
TT
98222020-02-08 Tom Tromey <tom@tromey.com>
9823
9824 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
9825 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
9826 Move.
9827 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
9828 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
9829 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
9830 abbrev.c.
9831 * dwarf2/abbrev.h: New file.
9832 * dwarf2/abbrev.c: New file, from dwarf2read.c.
9833 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
9834
96b79293
TT
98352020-02-08 Tom Tromey <tom@tromey.com>
9836
9837 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
9838 (dwarf2_section_size, dwarf2_get_section_info)
9839 (create_signatured_type_table_from_debug_names)
9840 (create_addrmap_from_aranges, read_debug_names_from_section)
9841 (get_gdb_index_contents_from_section, read_comp_unit_head)
9842 (error_check_comp_unit_head, read_abbrev_offset)
9843 (create_debug_type_hash_table, init_cu_die_reader)
9844 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
9845 (read_comp_units_from_section, create_cus_hash_table)
9846 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
9847 (create_dwp_v2_section, dwarf2_rnglists_process)
9848 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
9849 (abbrev_table_read_table, read_indirect_string_at_offset_from)
9850 (read_indirect_string_from_dwz, read_addr_index_1)
9851 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
9852 (dwarf_decode_macro_bytes, dwarf_decode_macros)
9853 (fill_in_loclist_baton): Update.
9854 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
9855 get_containing_section, get_bfd_owner, get_bfd_section,
9856 get_file_name, get_id, get_flags, empty, read>: Declare methods.
9857 (dwarf2_read_section, get_section_name, get_section_file_name)
9858 (get_containing_section, get_section_bfd_owner)
9859 (get_section_bfd_section, get_section_name, get_section_file_name)
9860 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
9861 declare.
9862 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
9863 (dwarf2_section_info::get_bfd_owner)
9864 (dwarf2_section_info::get_bfd_section)
9865 (dwarf2_section_info::get_name)
9866 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
9867 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
9868 (dwarf2_section_info::read): Now methods.
9869 * dwarf-index-write.c (class debug_names): Update.
9870
2c86cff9
TT
98712020-02-08 Tom Tromey <tom@tromey.com>
9872
9873 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
9874 Move to dwarf2/section.h.
9875 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
9876 (get_section_bfd_section, get_section_name)
9877 (get_section_file_name, get_section_id, get_section_flags)
9878 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
9879 dwarf2/section.c.
9880 * dwarf2/section.h: New file.
9881 * dwarf2/section.c: New file, from dwarf2read.c.
9882 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
9883
f4382c45
TT
98842020-02-08 Tom Tromey <tom@tromey.com>
9885
9886 * dwarf2read.h (read_unsigned_leb128): Don't declare.
9887 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
9888 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
9889 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
9890 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
9891 * dwarf2/leb.h: New file, from dwarf2read.c.
9892 * dwarf2/leb.c: New file, from dwarf2read.c.
9893 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
9894 Remove.
9895 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
9896 (COMMON_SFILES): Add dwarf2/leb.c.
9897
01840b7a
JB
98982020-02-08 Joel Brobecker <brobecker@adacore.com>
9899
9900 GDB 9.1 released.
9901
dfcb27e4
IB
99022020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
9903
9904 PR gdb/25190:
aac66a4c
SM
9905 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
9906 * gdb/remote.c (remote_console_output): Update.
9907 * gdb/ui-file.c (fputs_unfiltered): Rename to...
9908 (ui_file_puts): ...this.
9909 * gdb/ui-file.h (ui_file_puts): Add declaration.
9910 * gdb/utils.c (emit_style_escape): Update.
9911 (flush_wrap_buffer): Update.
9912 (fputs_maybe_filtered): Update.
9913 (fputs_unfiltered): Add function.
dfcb27e4 9914
faa17681
IB
99152020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
9916
aac66a4c
SM
9917 * gdb/event-loop.c (gdb_wait_for_event): Update.
9918 * gdb/printcmd.c (printf_command): Update.
9919 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
9920 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
9921 (gdb_os_flush_stderr): Update.
9922 * gdb/remote.c (remote_console_output): Update.
9923 * gdb/ui-file.c (gdb_flush): Rename to...
9924 (ui_file_flush): ...this.
9925 (stderr_file::write): Update.
9926 (stderr_file::puts): Update.
9927 * gdb/ui-file.h (gdb_flush): Rename to...
9928 (ui_file_flush): ...this.
9929 * gdb/utils.c (gdb_flush): Add function.
9930 * gdb/utils.h (gdb_flush): Add declaration.
faa17681 9931
5abbbe1d
TT
99322020-02-07 Tom Tromey <tromey@adacore.com>
9933
9934 PR breakpoints/24915:
9935 * source.c (find_and_open_source): Do not check basenames_may_differ.
9936
919adfe8
TT
99372020-02-07 Tom Tromey <tom@tromey.com>
9938
9939 * README: Update gdbserver documentation.
9940 * gdbserver: Move to top level.
9941 * configure.tgt (build_gdbserver): Remove.
9942 * configure.ac: Remove --enable-gdbserver.
9943 * configure: Rebuild.
9944 * Makefile.in (distclean): Don't mention gdbserver.
9945
1d5d29e7
SV
99462020-02-06 Shahab Vahedi <shahab@synopsys.com>
9947
9948 * source-cache.c (source_cache::ensure): Surround
9949 get_plain_source_lines with a try/catch.
9950 (source_cache::get_line_charpos): Get rid of try/catch
9951 and only check for the return value of "ensure".
9952 * tui/tui-source.c (tui_source_window::set_contents):
9953 Simplify "nlines" calculation.
9954
6eb1129c
SV
99552020-02-06 Shahab Vahedi <shahab@synopsys.com>
9956
9957 * MAINTAINERS (Write After Approval): Add myself.
9958
c6a42d11
CB
99592020-02-05 Christian Biesinger <cbiesinger@google.com>
9960
9961 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
9962 function call.
9963
c8ecdda6
CB
99642020-02-05 Christian Biesinger <cbiesinger@google.com>
9965
9966 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
9967
f6480e70
MR
99682020-02-05 Maciej W. Rozycki <macro@wdc.com>
9969
9970 * nat/riscv-linux-tdesc.h: New file.
9971 * nat/riscv-linux-tdesc.c: New file, taking code from...
9972 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
9973 ... here.
9974 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
9975 NATDEPFILES.
9976
dcc9fbc6
AB
99772020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
9978
9979 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
9980 we don't set the fake simulator ptid to the null_ptid.
9981
719546c4
SM
99822020-02-03 Simon Marchi <simon.marchi@efficios.com>
9983
9984 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
9985 * gdbthread.h (class thread_info) <resumed>: Likewise.
9986 * infrun.c (resume_1): Likewise.
9987 (proceed): Likewise.
9988 (infrun_thread_stop_requested): Likewise.
9989 (stop_all_threads): Likewise.
9990 (handle_inferior_event): Likewise.
9991 (restart_threads): Likewise.
9992 (finish_step_over): Likewise.
9993 (keep_going_stepped_thread): Likewise.
9994 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
9995 (linux_handle_extended_wait): Likewise.
9996 * record-btrace.c (get_thread_current_frame_id): Likewise.
9997 * record-full.c (record_full_wait_1): Likewise.
9998 * remote.c (remote_target::process_initial_stop_replies): Likewise.
9999 * target.c (target_resume): Likewise.
10000 * thread.c (set_running_thread): Likewise.
10001
e409c542
AKS
100022020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
10003
10004 * f-valprint.c (f77_print_array_1): Changed datatype of index
10005 variable to LONGEST from int to enable it to contain bound
10006 values correctly.
10007
ee98c0da
MR
100082020-02-03 Maciej W. Rozycki <macro@wdc.com>
10009
10010 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
10011 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
10012 offsets according to FLEN determined.
10013 (riscv_linux_nat_target::read_description): Determine FLEN
10014 dynamically.
10015 (riscv_linux_nat_target::fetch_registers): Size regset buffer
10016 according to FLEN determined.
10017 (riscv_linux_nat_target::store_registers): Likewise.
10018
aa66aac4
SV
100192020-02-01 Shahab Vahedi <shahab@synopsys.com>
10020
10021 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
10022 when reg->group is empty and reggroup is not.
10023
fd9faca8
TT
100242020-01-31 Tom Tromey <tromey@adacore.com>
10025
10026 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
10027 Call beneath target's mourn_inferior after unpushing.
10028
42330a68
AB
100292020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
10030
10031 PR tui/9765
10032 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
10033 have enough lines to fill the screen, still return the lowest
10034 address we found.
10035
7a27a45b
AB
100362020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
10037
10038 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
10039 '-', '<', and '>' commands.
10040
c47f70e2
PA
100412020-01-29 Pedro Alves <palves@redhat.com>
10042 Sergio Durigan Junior <sergiodj@redhat.com>
10043
10044 * infcmd.c (construct_inferior_arguments): Assert that
10045 'argc' is greater than 0.
10046
5133a315
LM
100472020-01-29 Luis Machado <luis.machado@linaro.org>
10048
10049 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
10050 (BRK_INSN_MASK): Define to 0xd4200000.
10051 (aarch64_program_breakpoint_here_p): New function.
10052 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
10053 * arch-utils.c (default_program_breakpoint_here_p): Moved from
10054 breakpoint.c.
10055 * arch-utils.h (default_program_breakpoint_here_p): Moved from
10056 breakpoint.h
10057 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
10058 call gdbarch_program_breakpoint_here_p.
10059 (program_breakpoint_here): Moved to arch-utils.c, renamed to
10060 default_program_breakpoint_here_p, changed return type to bool and
10061 simplified.
10062 * breakpoint.h (program_breakpoint_here): Moved prototype to
10063 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
10064 return type to bool.
10065 * gdbarch.c: Regenerate.
10066 * gdbarch.h: Regenerate.
10067 * gdbarch.sh (program_breakpoint_here_p): New method.
10068 * infrun.c (handle_signal_stop): Call
10069 gdbarch_program_breakpoint_here_p.
10070
168f8c6b
TT
100712020-01-26 Tom Tromey <tom@tromey.com>
10072
10073 * ctfread.c (struct ctf_fp_info): Reindent.
10074 (_initialize_ctfread): Remove.
10075
128a391f
TT
100762020-01-26 Tom Tromey <tom@tromey.com>
10077
10078 * psymtab.c (partial_map_expand_apply)
10079 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
10080 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
10081 (psym_print_stats, psym_expand_symtabs_for_function)
10082 (psym_map_symbol_filenames, psym_map_matching_symbols)
10083 (psym_expand_symtabs_matching)
10084 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
10085 (maintenance_check_psymtabs): Use new methods.
10086 * psympriv.h (struct partial_symtab) <readin_p,
10087 get_compunit_symtab>: New methods.
10088 <readin, compunit_symtab>: Remove members.
10089 (struct standard_psymtab): New.
10090 (struct legacy_psymtab): Derive from standard_psymtab.
10091 * dwarf2read.h (struct dwarf2_psymtab): Derive from
10092 standard_psymtab.
10093 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
10094
0494dbec
TT
100952020-01-26 Tom Tromey <tom@tromey.com>
10096
10097 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
10098 read_dependencies. Add assert.
10099 * psymtab.c (partial_symtab::read_dependencies): New method.
10100 * psympriv.h (struct partial_symtab) <read_dependencies>: New
10101 method.
10102 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
10103 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
10104 read_dependencies.
10105 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
10106 Add assert.
10107
8566b89b
TT
101082020-01-26 Tom Tromey <tom@tromey.com>
10109
10110 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
10111 Call expand_psymtab.
10112 (xcoff_read_symtab): Call expand_psymtab.
10113 (xcoff_start_psymtab, xcoff_end_psymtab): Set
10114 legacy_expand_psymtab.
10115 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
10116 method.
10117 (struct legacy_psymtab) <expand_psymtab>: Implement.
10118 <legacy_expand_psymtab>: New member.
10119 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
10120 (parse_partial_symbols): Set legacy_expand_psymtab.
10121 (psymtab_to_symtab_1): Change argument order. Call
10122 expand_psymtab.
10123 (new_psymtab): Set legacy_expand_psymtab.
10124 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
10125 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
10126 expand_psymtab.
10127 (dwarf2_psymtab::expand_psymtab): Rename from
10128 psymtab_to_symtab_1. Call expand_psymtab.
10129 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
10130 (dbx_end_psymtab): Likewise.
10131 (dbx_psymtab_to_symtab_1): Change argument order. Call
10132 expand_psymtab.
10133 (dbx_read_symtab): Call expand_psymtab.
10134 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
10135 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
10136 (ctf_psymtab::read_symtab): Call expand_psymtab.
10137
077cbab2
TT
101382020-01-26 Tom Tromey <tom@tromey.com>
10139
10140 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
10141 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
10142 messages.
10143 * mdebugread.c (mdebug_read_symtab): Remove prints.
10144 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
10145 assert.
10146 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
10147
891813be
TT
101482020-01-26 Tom Tromey <tom@tromey.com>
10149
10150 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
10151 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
10152 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
10153 legacy_symtab.
10154 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
10155 * psymtab.c (psymtab_to_symtab): Call method.
10156 (dump_psymtab): Update.
10157 * psympriv.h (struct partial_symtab): Add virtual destructor.
10158 <read_symtab>: New method.
10159 (struct legacy_symtab): New.
10160 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
10161 (struct pst_map) <pst>: Now a legacy_psymtab.
10162 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
10163 (new_psymtab): Use legacy_psymtab.
10164 * dwarf2read.h (struct dwarf2_psymtab): New.
10165 (struct dwarf2_per_cu_data) <psymtab>: Use it.
10166 * dwarf2read.c (dwarf2_create_include_psymtab)
10167 (dwarf2_build_include_psymtabs, create_type_unit_group)
10168 (create_partial_symtab, process_psymtab_comp_unit_reader)
10169 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
10170 (set_partial_user): Use dwarf2_psymtab.
10171 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
10172 (psymtab_to_symtab_1, process_full_comp_unit)
10173 (process_full_type_unit, dwarf2_ranges_read)
10174 (dwarf2_get_pc_bounds, psymtab_include_file_name)
10175 (dwarf_decode_lines): Use dwarf2_psymtab.
10176 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
10177 (add_address_entry_worker, write_one_signatured_type)
10178 (recursively_count_psymbols, recursively_write_psymbols)
10179 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
10180 (write_debug_names): Likewise.
10181 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
10182 <pst>: Now a legacy_psymtab.
10183 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
10184 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
10185 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
10186 * ctfread.c (struct ctf_psymtab): New.
10187 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
10188 ctf_psymtab.
10189 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
10190 (create_partial_symtab): Return a ctf_psymtab.
10191 (scan_partial_symbols): Update.
10192
c3693a1d
TT
101932020-01-26 Tom Tromey <tom@tromey.com>
10194
10195 * xcoffread.c (xcoff_start_psymtab): Use new.
10196 * psymtab.c (partial_symtab::partial_symtab): New constructor,
10197 renamed from start_psymtab_common.
10198 * psympriv.h (struct partial_symtab): Add new constructor.
10199 (start_psymtab_common): Don't declare.
10200 * mdebugread.c (parse_partial_symbols): Use new.
10201 * dwarf2read.c (create_partial_symtab): Use new.
10202 * dbxread.c (start_psymtab): Use new.
10203 * ctfread.c (create_partial_symtab): Use new.
10204
32caafd0
TT
102052020-01-26 Tom Tromey <tom@tromey.com>
10206
10207 * xcoffread.c (xcoff_end_psymtab): Use new.
10208 * psymtab.c (start_psymtab_common): Use new.
10209 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
10210 Update.
10211 * psympriv.h (struct partial_symtab): Add parameters to
10212 constructor. Don't inline.
10213 (allocate_psymtab): Don't declare.
10214 * mdebugread.c (new_psymtab): Use new.
10215 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
10216 * dbxread.c (dbx_end_psymtab): Use new.
10217
abaa2f23
TT
102182020-01-26 Tom Tromey <tom@tromey.com>
10219
10220 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
10221 allocate_psymtab. Update documentation.
10222 * psymtab.c (psymtab_storage::install_psymtab): Rename from
10223 allocate_psymtab. Do not use new.
10224 (allocate_psymtab): Use new. Update.
10225
6d94535f
TT
102262020-01-26 Tom Tromey <tom@tromey.com>
10227
10228 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
10229 * psymtab.c (psym_print_stats): Update.
10230 * psympriv.h (struct partial_symtab) <readin,
10231 psymtabs_addrmap_supported, anonymous>: Now bool.
10232 * mdebugread.c (psymtab_to_symtab_1): Update.
10233 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
10234 (build_type_psymtabs_reader, psymtab_to_symtab_1)
10235 (process_full_comp_unit, process_full_type_unit): Update.
10236 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
10237 * ctfread.c (psymtab_to_symtab): Update.
10238
6f17252b
TT
102392020-01-26 Tom Tromey <tom@tromey.com>
10240
10241 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
10242 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
10243 * psymtab.c (psymtab_storage): Delete psymtabs.
10244 (psymtab_storage::allocate_psymtab): Use new.
10245 (psymtab_storage::discard_psymtab): Use delete.
10246 * psympriv.h (struct partial_symtab): Add constructor and
10247 initializers.
10248
f6f1cebc
TT
102492020-01-26 Tom Tromey <tom@tromey.com>
10250
10251 * machoread.c: Do not include psympriv.h.
10252
e47e48f6
PW
102532020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10254
10255 * NEWS: Mention the new option and the set/show commands.
10256
a2fedca9
PW
102572020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10258
10259 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
10260 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
10261 (validate_exec_file): New variables, enums, functions.
10262 (exec_file_locate_attach, print_section_info): Style the filenames.
10263 (_initialize_exec): Install show_exec_file_mismatch_command and
10264 set_exec_file_mismatch_command.
10265 * gdbcore.h (validate_exec_file): Declare.
10266 * infcmd.c (attach_command): Call validate_exec_file.
10267 * remote.c ( remote_target::remote_add_inferior): Likewise.
10268
7ffa82e1
AB
102692020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10270
10271 * frame.c (find_frame_sal): Move call to get_next_frame into more
10272 inner scope.
10273 * inline-frame.c (inilne_state) <inline_state>: Update argument
10274 types.
10275 (inilne_state) <skipped_symbol>: Rename to...
10276 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
10277 (skip_inline_frames): Build vector of skipped symbols and use this
10278 to reate the inline_state.
10279 (inline_skipped_symbol): Add a comment and some assertions, fetch
10280 skipped symbol from the list.
10281
3d92a3e3
AB
102822020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10283
10284 * buildsym.c (lte_is_less_than): Delete.
10285 (buildsym_compunit::end_symtab_with_blockvector): Create local
10286 lambda function to sort line table entries, and use
10287 std::stable_sort instead of std::sort.
10288 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
10289 markers when looking for a previous line.
10290
94a72be7
AB
102912020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10292
10293 * dwarf2read.c (lnp_state_machine::record_line): Include
10294 end_sequence parameter in debug print out. Record the line if we
10295 are at an end_sequence marker even if it's not the start of a
10296 statement.
10297 * symmisc.c (maintenance_print_one_line_table): Print end of
10298 sequence markers with 'END' not '0'.
10299
53af73bf
PA
103002020-01-24 Pedro Alves <palves@redhat.com>
10301
10302 PR gdb/25410
10303 * thread.c (scoped_restore_current_thread::restore): Use
10304 switch_to_inferior_no_thread.
10305 * exec.c: Include "progspace-and-thread.h".
10306 (add_target_sections, remove_target_sections):
10307 scoped_restore_current_pspace_and_thread instead of
10308 scoped_restore_current_thread.
10309 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
10310 and aspace to the inferior before calling clone_program_space.
10311 Remove stale comment.
10312
3050c6f4
CB
103132020-01-24 Christian Biesinger <cbiesinger@google.com>
10314
10315 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
10316 (arm_netbsd_nat_target::fetch_registers): ...this.
10317 (arm_nbsd_nat_target::store_registers): Rename to...
10318 (arm_netbsd_nat_target::store_registers): ...this.
10319
73685c7e
CB
103202020-01-24 Christian Biesinger <cbiesinger@google.com>
10321
10322 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
10323 register_t.
10324
89203d40
CB
103252020-01-24 Christian Biesinger <cbiesinger@google.com>
10326
10327 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
10328 Update comment.
10329 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
10330 Likewise.
10331 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
10332 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
10333 the correct replacement (iterate_over_regset_sections).
10334 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
10335 Update comment.
10336
1ba1ac88
AB
103372020-01-24 Graham Markall <graham.markall@embecosm.com>
10338
10339 PR gdb/23718
10340 * gdb/python/python.c (execute_gdb_command): Call
10341 async_enable_stdin in catch block.
10342
f3364a6d
AB
103432020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10344
10345 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
10346 SWITCH_THRU_ALL_UIS.
10347
733d0a67
AB
103482020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10349
10350 PR tui/9765
10351 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
10352 comment, add extra parameter, and update to store previous symbol
10353 when appropriate.
10354 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
10355 add extra parameter.
10356 * tui/tui-disasm.c (tui_disassemble): Update header comment,
10357 remove unneeded parameter, add try/catch around gdb_print_insn,
10358 rewrite to add items to asm_lines vector.
10359 (tui_find_backward_disassembly_start_address): New function.
10360 (tui_find_disassembly_address): Updated throughout.
10361 (tui_disasm_window::set_contents): Update for changes to
10362 tui_disassemble.
10363 (tui_disasm_window::do_scroll_vertical): No need to adjust the
10364 number of lines to scroll.
10365
b3b3bada
SM
103662020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
10367
10368 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
10369 (SECT_OFF_DATA): Likewise.
10370 (SECT_OFF_RODATA): Likewise.
10371 (SECT_OFF_TEXT): Likewise.
10372 (SECT_OFF_BSS): Likewise.
10373 (struct objfile) <text_section_offset, data_section_offset>: New
10374 methods.
10375 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
10376 objfile::text_section_offset.
10377 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
10378 * coffread.c (coff_symtab_read): Likewise.
10379 (enter_linenos): Likewise.
10380 (process_coff_symbol): Likewise.
10381 * ctfread.c (get_objfile_text_range): Likewise.
10382 * dtrace-probe.c (dtrace_probe::get_relocated_address):
10383 Use objfile::data_section_offset.
10384 * dwarf2-frame.c (execute_cfa_program): Use
10385 objfile::text_section_offset.
10386 (dwarf2_frame_find_fde): Likewise.
10387 * dwarf2read.c (create_addrmap_from_index): Likewise.
10388 (create_addrmap_from_aranges): Likewise.
10389 (dw2_find_pc_sect_compunit_symtab): Likewise.
10390 (process_psymtab_comp_unit_reader): Likewise.
10391 (add_partial_symbol): Likewise.
10392 (add_partial_subprogram): Likewise.
10393 (process_full_comp_unit): Likewise.
10394 (read_file_scope): Likewise.
10395 (read_func_scope): Likewise.
10396 (read_lexical_block_scope): Likewise.
10397 (read_call_site_scope): Likewise.
10398 (dwarf2_rnglists_process): Likewise.
10399 (dwarf2_ranges_process): Likewise.
10400 (dwarf2_ranges_read): Likewise.
10401 (dwarf_decode_lines_1): Likewise.
10402 (new_symbol): Likewise.
10403 (dwarf2_fetch_die_loc_sect_off): Likewise.
10404 (dwarf2_per_cu_text_offset): Likewise.
10405 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
10406 * hppa-tdep.c (read_unwind_info): Likewise.
10407 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
10408 * psympriv.h (struct partial_symtab): Likewise.
10409 * psymtab.c (find_pc_sect_psymtab): Likewise.
10410 * solib-svr4.c (enable_break): Likewise.
10411 * stap-probe.c (relocate_address): Use
10412 objfile::data_section_offset.
10413 * xcoffread.c (enter_line_range): Use
10414 objfile::text_section_offset.
10415 (read_xcoff_symtab): Likewise.
10416
ab53f382
SM
104172020-01-23 Simon Marchi <simon.marchi@efficios.com>
10418
10419 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
10420 declaration to narrower scopes.
10421
e7eee665
SM
104222020-01-23 Simon Marchi <simon.marchi@efficios.com>
10423
10424 * darwin-nat.h (struct darwin_exception_msg, enum
10425 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
10426 Move up.
10427 (class darwin_nat_target) <wait_1, check_new_threads,
10428 decode_exception_message, decode_message, stop_inferior,
10429 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
10430 * darwin-nat.c (darwin_check_new_threads): Rename to...
10431 (darwin_nat_target::check_new_threads): ... this.
10432 (darwin_suspend_inferior_it): Remove.
10433 (darwin_decode_exception_message): Rename to...
10434 (darwin_nat_target::decode_exception_message): ... this.
10435 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
10436 (darwin_decode_message): Rename to...
10437 (darwin_nat_target::decode_message): ... this.
10438 (cancel_breakpoint): Rename to...
10439 (darwin_nat_target::cancel_breakpoint): ... this.
10440 (darwin_wait): Rename to...
10441 (darwin_nat_target::wait_1): ... this. Use range-based for loop
10442 instead of iterate_over_inferiors.
10443 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
10444 (darwin_stop_inferior): Rename to...
10445 (darwin_nat_target::stop_inferior): ... this.
10446 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
10447 (darwin_init_thread_list): Rename to...
10448 (darwin_nat_target::init_thread_list): ... this.
10449 (darwin_ptrace_him): Rename to...
10450 (darwin_nat_target::ptrace_him): ... this.
10451 (darwin_nat_target::create_inferior): Pass lambda function to
10452 fork_inferior.
10453 (darwin_nat_target::detach): Call stop_inferior instead of
10454 darwin_stop_inferior.
10455 * fork-inferior.h (fork_inferior): Change init_trace_fun
10456 parameter to gdb::function_view.
10457 * fork-inferior.c (fork_inferior): Likewise.
10458
c162ed3e
HD
104592020-01-23 Hannes Domani <ssbssa@yahoo.de>
10460
10461 * i386-cygwin-tdep.c (core_process_module_section): Update.
10462 * windows-nat.c (struct lm_info_windows): Add text_offset.
10463 (windows_xfer_shared_libraries): Update.
10464 * windows-tdep.c (windows_xfer_shared_library):
10465 Add text_offset_cached argument.
10466 * windows-tdep.h (windows_xfer_shared_library): Update.
10467
a1237872
SM
104682020-01-21 Simon Marchi <simon.marchi@efficios.com>
10469
10470 * gdbarch.sh: Add declaration for _initialize_gdbarch.
10471
b3ee6dd9
SM
104722020-01-21 Simon Marchi <simon.marchi@efficios.com>
10473
10474 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
10475 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
10476 replace with range-based for.
10477 (gdbsim_interrupt_inferior): Remove.
10478 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
10479 with a range-based for. Inline code from
10480 gdbsim_interrupt_inferior.
10481
f9fac3c8
SM
104822020-01-21 Simon Marchi <simon.marchi@efficios.com>
10483
10484 * infrun.c (proceed): Fix indentation.
10485
f6474de9
TT
104862020-01-21 Tom Tromey <tromey@adacore.com>
10487
10488 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
10489 * python/python.c (python_extension_ops): Update.
10490 (gdbpy_colorize): New function.
10491 * python/lib/gdb/__init__.py (colorize): New function.
10492 * extension.h (ext_lang_colorize): Declare.
10493 * extension.c (ext_lang_colorize): New function.
10494 * extension-priv.h (struct extension_language_ops) <colorize>: New
10495 member.
10496 * cli/cli-style.c (_initialize_cli_style): Update help text.
10497
f0c702d4
LM
104982020-01-21 Luis Machado <luis.machado@linaro.org>
10499
10500 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
10501 <cond>: Change type to bool.
10502 (aarch64_displaced_step_b_cond): Update cond to use bool type.
10503 (aarch64_displaced_step_cb): Likewise.
10504 (aarch64_displaced_step_tb): Likewise.
10505
1ab139e5
LM
105062020-01-21 Luis Machado <luis.machado@linaro.org>
10507
10508 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
10509 output.
10510
0c271889
LM
105112020-01-21 Luis Machado <luis.machado@linaro.org>
10512
10513 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
10514 <pc_adjust>: Adjust the documentation.
10515 (aarch64_displaced_step_fixup): Check if PC really moved before
10516 adjusting it.
10517
4d89c1c7
TT
105182020-01-19 Tom Tromey <tom@tromey.com>
10519
10520 * disasm.c (~gdb_disassembler): New destructor.
10521 (gdb_buffered_insn_length): Call disassemble_free_target.
10522 * disasm.h (class gdb_disassembler): Declare destructor. Use
10523 DISABLE_COPY_AND_ASSIGN.
10524
c0ab21c2
TT
105252020-01-19 Tom Tromey <tom@tromey.com>
10526
10527 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
10528 (die_reader_func_ftype): Remove.
10529 (cutu_reader): New class.
10530 (dw2_get_file_names_reader): Remove "data" parameter.
10531 (dw2_get_file_names): Use cutu_reader.
10532 (create_debug_type_hash_table): Update.
10533 (read_cutu_die_from_dwo): Update comment.
10534 (lookup_dwo_unit): Add dwo_name parameter.
10535 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
10536 die_reader_func_ftype and data parameters.
10537 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
10538 Remove die_reader_func_ftype and data parameters.
10539 (~cutu_reader): New; from init_cutu_and_read_dies.
10540 (cutu_reader::cutu_reader): Rename from
10541 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
10542 and data parameters.
10543 (init_cutu_and_read_dies_simple): Remove.
10544 (struct process_psymtab_comp_unit_data): Remove.
10545 (process_psymtab_comp_unit_reader): Remove data parameter; add
10546 want_partial_unit and pretend_language parameters.
10547 (process_psymtab_comp_unit): Use cutu_reader.
10548 (build_type_psymtabs_reader): Remove data parameter.
10549 (build_type_psymtabs_1): Use cutu_reader.
10550 (process_skeletonless_type_unit): Likewise.
10551 (load_partial_comp_unit_reader): Remove.
10552 (load_partial_comp_unit): Use cutu_reader.
10553 (load_full_comp_unit_reader): Remove.
10554 (load_full_comp_unit): Use cutu_reader.
10555 (struct create_dwo_cu_data): Remove.
10556 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
10557 dwo_unit parameters.
10558 (create_cus_hash_table): Use cutu_reader.
10559 (struct dwarf2_read_addr_index_data): Remove.
10560 (dwarf2_read_addr_index_reader): Remove.
10561 (dwarf2_read_addr_index): Use cutu_reader.
10562 (read_signatured_type_reader): Remove.
10563 (read_signatured_type): Use cutu_reader.
10564
45bbae5c
TT
105652020-01-19 Tom Tromey <tom@tromey.com>
10566
10567 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
10568 * tui/tui-wingeneral.h (class tui_suppress_output): New.
10569 (tui_wrefresh): Declare.
10570 * tui/tui-wingeneral.c (suppress_output): New global.
10571 (tui_suppress_output, ~tui_suppress_output): New constructor and
10572 destructor.
10573 (tui_wrefresh): New function.
10574 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
10575 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
10576 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
10577 method.
10578 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
10579 tui_wrefresh.
10580 (tui_data_window::no_refresh): New method.
10581 (tui_data_item_window::refresh_window): Call tui_wrefresh.
10582 (tui_reg_command): Use tui_suppress_output
10583 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
10584 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
10585 method.
10586 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
10587
4f13c1c0
TT
105882020-01-19 Tom Tromey <tom@tromey.com>
10589
10590 * tui/tui-winsource.c (tui_update_source_windows_with_line):
10591 Handle case where symtab is null.
10592
fa47e446
SM
105932020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
10594
10595 * linux-fork.c (one_fork_p): Simplify.
10596
26f42329
SM
105972020-01-17 Simon Marchi <simon.marchi@efficios.com>
10598
10599 * top.c (struct qt_args): Remove.
10600 (kill_or_detach): Change return type to void, replace `void *`
10601 parameter with a proper one.
10602 (print_inferior_quit_action): Likewise.
10603 (quit_confirm): Use range-based for loop to iterate over inferiors.
10604 (quit_force): Likewise.
10605
a9ac81b1
SM
106062020-01-17 Simon Marchi <simon.marchi@efficios.com>
10607
10608 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
10609 `void *` parameter with proper parameters.
10610 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
10611 (print_one_inferior): Change return type to void, replace `void *`
10612 parameter with proper parameters.
10613 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
10614 inferiors.
10615 (get_other_inferior): Remove.
10616 (mi_cmd_remove_inferior): Use range-based loop to iterate over
10617 inferiors.
10618
788eca49
SM
106192020-01-17 Simon Marchi <simon.marchi@efficios.com>
10620
10621 * mi/mi-interp.c (report_initial_inferior): Remove.
10622 (mi_interp::init): Use range-based for to iterate over inferiors.
10623
d9bc85b6
SM
106242020-01-17 Simon Marchi <simon.marchi@efficios.com>
10625
10626 * python/py-inferior.c (build_inferior_list): Remove.
10627 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
10628
40c94099
CB
106292020-01-16 Christian Biesinger <cbiesinger@google.com>
10630
10631 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
10632 (btrace_stitch_trace): Likewise.
10633 * charset.c (intermediate_encoding): Likewise (vaild).
10634 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
10635 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
10636 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
10637
e0cdfe3c
HD
106382020-01-16 Hannes Domani <ssbssa@yahoo.de>
10639
10640 * windows-tdep.c (windows_get_tlb_type):
10641 Add rtl_user_process_parameters type.
10642
790f1718 106432020-01-16 Pedro Alves <palves@redhat.com>
aac66a4c 10644 Norbert Lange <nolange79@gmail.com>
790f1718
PA
10645
10646 PR build/24805
10647 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
10648 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
10649 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
10650 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
10651 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
10652 (ps_plog): Redeclare exported functions with default visibility.
10653
3112ed97
NA
106542020-01-16 Nitika Achra <Nitika.Achra@amd.com>
10655
10656 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
10657 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
10658
8dc3273e
SM
106592020-01-15 Simon Marchi <simon.marchi@efficios.com>
10660
10661 * infcmd.c (post_create_inferior): Use get_thread_regcache
10662 instead of get_current_regcache.
10663
ff47f4f0
TT
106642020-01-14 Tom Tromey <tom@tromey.com>
10665
10666 PR symtab/12535:
10667 * python/python.c (gdbpy_decode_line): Treat empty string the same
10668 as no argument.
10669
975f45b7
TT
106702020-01-14 Tom Tromey <tom@tromey.com>
10671
10672 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
10673
25e57356
TT
106742020-01-14 Tom Tromey <tom@tromey.com>
10675
10676 * nat/linux-btrace.c: Don't include <config.h>.
10677 * nat/linux-ptrace.c: Don't include <config.h>.
10678 * nat/x86-linux-dregs.c: Don't include <config.h>.
10679
05ea2a05
TT
106802020-01-14 Tom Tromey <tom@tromey.com>
10681
10682 * configure: Rebuild.
10683 * configure.ac: Move many checks to ../gdbsupport/common.m4.
10684
01027315
TT
106852020-01-14 Tom Tromey <tom@tromey.com>
10686
10687 * nat/x86-linux-dregs.c: Include configh.h.
10688 * nat/linux-ptrace.c: Include configh.h.
10689 * nat/linux-btrace.c: Include configh.h.
10690 * defs.h: Include config.h, bfd.h.
10691 * configure.ac: Don't source common.host.
10692 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
10693 * configure: Rebuild.
10694 * acinclude.m4: Update path.
10695 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
10696 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
10697 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
10698 (CLIBS): Add LIBSUPPORT.
10699 (CDEPS): Likewise.
10700 (COMMON_SFILES): Remove gdbsupport files.
10701 (HFILES_NO_SRCDIR): Likewise.
10702 (stamp-version): Update path to create-version.sh.
10703 (ALLDEPFILES): Remove gdbsupport files.
10704
b2ceabe8
TT
107052020-01-14 Tom Tromey <tom@tromey.com>
10706
10707 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
10708 USE_WIN32API when needed.
10709 * configure.ac (USE_WIN32API): Don't define.
10710 (WIN32LIBS): Use WIN32APILIBS.
10711 * configure: Rebuild.
10712
25c51f71
TT
107132020-01-14 Tom Tromey <tom@tromey.com>
10714
10715 * configure: Rebuild.
10716 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
10717
717c684d
BE
107182020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
10719
10720 * skip.c (skip_function_command): Make skip w/o arguments use the
10721 name of the inlined function if pc is inside any inlined function.
10722
7da6a5b9
LM
107232020-01-14 Luis Machado <luis.machado@linaro.org>
10724
10725 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
10726 * infrun.c (resume_1): Likewise.
10727 (handle_inferior_event): Remove stale comment.
10728 * linux-nat.c (linux_nat_target::resume): Update comments.
10729 (save_stop_reason): Likewise.
10730 (linux_nat_filter_event): Likewise.
10731 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
10732
44e4c775
AB
107332020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
10734
10735 * elfread.c (record_minimal_symbol): Set section index to 0 for
10736 non-allocatable sections.
10737
18a8505e
AT
10738
107392020-01-13 Ali Tamur <tamur@google.com>
10740
10741 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
10742 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
10743 to gdb::optional. Update comments.
10744 (dwo_file): Update comments.
10745 (read_attribute): Update API to take an additional out parameter,
10746 need_reprocess. This is used to mark attributes that need other
10747 attributes (e.g. str_offsets_base) for correct computation which may not
10748 have been read yet.
10749 (read_attribute_reprocess): New function declaration.
10750 (read_addr_index): Likewise.
10751 (read_dwo_str_index): Likewise.
10752 (read_stub_str_index): Likewise.
10753 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
10754 (lookup_addr_base): New function definition.
10755 (lookup_ranges_base): Likewise.
10756 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
10757 lookup_ranges_base.
10758 (init_cutu_and_read_dies): Update comments.
10759 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
10760 unit. This is used to inherit parent's str_offsets_base and addr_base.
10761 Update comments.
10762 (init_cutu_and_read_dies_simple): Reflect API changes.
10763 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
10764 (create_cus_hash_table): Change API to take parent compile unit.
10765 Reflect API changes.
10766 (open_and_init_dwo_file): Reflect API changes.
10767 (dwarf2_get_pc_bounds): Update comments.
10768 (dwarf2_record_block_ranges): Likewise.
10769 (read_full_die_1): Change implementation to reprocess attributes that
10770 need str_offsets_base and addr_base.
10771 (partial_die_info::read): Likewise.
10772 (read_attribute_reprocess): New function definition.
10773 (read_attribute_value): Change API to take an additional out parameter,
10774 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
10775 when a non-dwo compile unit has index based attributes.
10776 (read_attribute): Reflect API changes.
10777 (read_addr_index_1): Reflect API changes. Update comments.
10778 (dwarf2_read_addr_index_data): Reflect API changes.
10779 (dwarf2_read_addr_index): Likewise.
10780 (read_str_index): Change API and implementation. This becomes a helper
10781 to be used by the new string index related methods. Update error
10782 message and comments.
10783 (read_dwo_str_index): New function definition.
10784 (read_stub_str_index): Likewise.
10785 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
10786 * symfile.h (dwarf2_debug_sections): Likewise.
10787 * xcoffread.c (dwarf2_debug_sections): Likewise.
10788
0cac9354
SM
107892020-01-13 Simon Marchi <simon.marchi@efficios.com>
10790
10791 * gdbcore.h (struct core_fns) <core_read_registers>: Change
10792 core_reg_sect type to gdb_byte *.
10793 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
10794 * cris-tdep.c (fetch_core_registers): Likewise.
10795 * corelow.c (core_target::get_core_register_section): Change
10796 type of `contents` to gdb::byte_vector.
10797
9a6d629c
AB
107982020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
10799
10800 * tui/tui-wingeneral.c (box_win): Position the title in the center
10801 of the border.
10802
d8b2f9e3
SM
108032020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
10804
10805 * corelow.c (core_target::get_core_register_section): Use
10806 std::vector instead of alloca.
10807
bb564c58
SM
108082020-01-13 Simon Marchi <simon.marchi@efficios.com>
10809
10810 * warning.m4: Add -Wmissing-declarations to build_warnings.
10811 * configure: Re-generate.
10812
6b366111
SM
108132020-01-13 Simon Marchi <simon.marchi@efficios.com>
10814
10815 * python/python.c (init__gdb_module): Add declaration.
10816
6c265988
SM
108172020-01-13 Simon Marchi <simon.marchi@efficios.com>
10818
10819 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
10820 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
10821 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
10822 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
10823 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
10824 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
10825 * ada-exp.y (_initialize_ada_exp): Add declaration.
10826 * ada-lang.c (_initialize_ada_language): Add declaration.
10827 * ada-tasks.c (_initialize_tasks): Add declaration.
10828 * agent.c (_initialize_agent): Add declaration.
10829 * aix-thread.c (_initialize_aix_thread): Add declaration.
10830 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
10831 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
10832 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
10833 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
10834 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
10835 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
10836 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
10837 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
10838 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
10839 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
10840 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
10841 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
10842 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
10843 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
10844 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
10845 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
10846 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
10847 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
10848 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
10849 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
10850 * annotate.c (_initialize_annotate): Add declaration.
10851 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
10852 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
10853 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
10854 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
10855 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
10856 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
10857 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
10858 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
10859 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
10860 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
10861 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
10862 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
10863 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
10864 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
10865 * auto-load.c (_initialize_auto_load): Add declaration.
10866 * auxv.c (_initialize_auxv): Add declaration.
10867 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
10868 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
10869 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
10870 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
10871 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
10872 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
10873 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
10874 * breakpoint.c (_initialize_breakpoint): Add declaration.
10875 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
10876 * btrace.c (_initialize_btrace): Add declaration.
10877 * charset.c (_initialize_charset): Add declaration.
10878 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
10879 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
10880 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
10881 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
10882 * cli/cli-script.c (_initialize_cli_script): Add declaration.
10883 * cli/cli-style.c (_initialize_cli_style): Add declaration.
10884 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
10885 * coffread.c (_initialize_coffread): Add declaration.
10886 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
10887 * compile/compile.c (_initialize_compile): Add declaration.
10888 * complaints.c (_initialize_complaints): Add declaration.
10889 * completer.c (_initialize_completer): Add declaration.
10890 * copying.c (_initialize_copying): Add declaration.
10891 * corefile.c (_initialize_core): Add declaration.
10892 * corelow.c (_initialize_corelow): Add declaration.
10893 * cp-abi.c (_initialize_cp_abi): Add declaration.
10894 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
10895 * cp-support.c (_initialize_cp_support): Add declaration.
10896 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
10897 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
10898 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
10899 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
10900 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
10901 * ctfread.c (_initialize_ctfread): Add declaration.
10902 * d-lang.c (_initialize_d_language): Add declaration.
10903 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
10904 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
10905 * dbxread.c (_initialize_dbxread): Add declaration.
10906 * dcache.c (_initialize_dcache): Add declaration.
10907 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
10908 * disasm.c (_initialize_disasm): Add declaration.
10909 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
10910 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
10911 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
10912 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
10913 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
10914 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
10915 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
10916 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
10917 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
10918 * elfread.c (_initialize_elfread): Add declaration.
10919 * exec.c (_initialize_exec): Add declaration.
10920 * extension.c (_initialize_extension): Add declaration.
10921 * f-lang.c (_initialize_f_language): Add declaration.
10922 * f-valprint.c (_initialize_f_valprint): Add declaration.
10923 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
10924 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
10925 * filesystem.c (_initialize_filesystem): Add declaration.
10926 * findcmd.c (_initialize_mem_search): Add declaration.
10927 * findvar.c (_initialize_findvar): Add declaration.
10928 * fork-child.c (_initialize_fork_child): Add declaration.
10929 * frame-base.c (_initialize_frame_base): Add declaration.
10930 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
10931 * frame.c (_initialize_frame): Add declaration.
10932 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
10933 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
10934 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
10935 * gcore.c (_initialize_gcore): Add declaration.
10936 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
10937 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
10938 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
10939 * gdbarch.c (_initialize_gdbarch): Add declaration.
10940 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
10941 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
10942 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
10943 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
10944 * go-lang.c (_initialize_go_language): Add declaration.
10945 * go32-nat.c (_initialize_go32_nat): Add declaration.
10946 * guile/guile.c (_initialize_guile): Add declaration.
10947 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
10948 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
10949 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
10950 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
10951 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
10952 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
10953 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
10954 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
10955 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
10956 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
10957 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
10958 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
10959 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
10960 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
10961 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
10962 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
10963 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
10964 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
10965 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
10966 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
10967 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
10968 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
10969 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
10970 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
10971 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
10972 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
10973 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
10974 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
10975 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
10976 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
10977 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
10978 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
10979 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
10980 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
10981 * infcall.c (_initialize_infcall): Add declaration.
10982 * infcmd.c (_initialize_infcmd): Add declaration.
10983 * inflow.c (_initialize_inflow): Add declaration.
10984 * infrun.c (_initialize_infrun): Add declaration.
10985 * interps.c (_initialize_interpreter): Add declaration.
10986 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
10987 * jit.c (_initialize_jit): Add declaration.
10988 * language.c (_initialize_language): Add declaration.
10989 * linux-fork.c (_initialize_linux_fork): Add declaration.
10990 * linux-nat.c (_initialize_linux_nat): Add declaration.
10991 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
10992 * linux-thread-db.c (_initialize_thread_db): Add declaration.
10993 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
10994 * m2-lang.c (_initialize_m2_language): Add declaration.
10995 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
10996 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
10997 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
10998 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
10999 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
11000 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
11001 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
11002 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
11003 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
11004 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
11005 * machoread.c (_initialize_machoread): Add declaration.
11006 * macrocmd.c (_initialize_macrocmd): Add declaration.
11007 * macroscope.c (_initialize_macroscope): Add declaration.
11008 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
11009 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
11010 * maint.c (_initialize_maint_cmds): Add declaration.
11011 * mdebugread.c (_initialize_mdebugread): Add declaration.
11012 * memattr.c (_initialize_mem): Add declaration.
11013 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
11014 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
11015 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
11016 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
11017 * mi/mi-main.c (_initialize_mi_main): Add declaration.
11018 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
11019 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
11020 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
11021 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
11022 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
11023 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
11024 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
11025 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
11026 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
11027 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
11028 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
11029 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
11030 * mipsread.c (_initialize_mipsread): Add declaration.
11031 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
11032 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
11033 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
11034 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
11035 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
11036 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
11037 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
11038 * nto-procfs.c (_initialize_procfs): Add declaration.
11039 * objc-lang.c (_initialize_objc_language): Add declaration.
11040 * observable.c (_initialize_observer): Add declaration.
11041 * opencl-lang.c (_initialize_opencl_language): Add declaration.
11042 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
11043 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
11044 * osabi.c (_initialize_gdb_osabi): Add declaration.
11045 * osdata.c (_initialize_osdata): Add declaration.
11046 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
11047 * parse.c (_initialize_parse): Add declaration.
11048 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
11049 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
11050 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
11051 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
11052 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
11053 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
11054 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
11055 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
11056 * printcmd.c (_initialize_printcmd): Add declaration.
11057 * probe.c (_initialize_probe): Add declaration.
11058 * proc-api.c (_initialize_proc_api): Add declaration.
11059 * proc-events.c (_initialize_proc_events): Add declaration.
11060 * proc-service.c (_initialize_proc_service): Add declaration.
11061 * procfs.c (_initialize_procfs): Add declaration.
11062 * producer.c (_initialize_producer): Add declaration.
11063 * psymtab.c (_initialize_psymtab): Add declaration.
11064 * python/python.c (_initialize_python): Add declaration.
11065 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
11066 * record-btrace.c (_initialize_record_btrace): Add declaration.
11067 * record-full.c (_initialize_record_full): Add declaration.
11068 * record.c (_initialize_record): Add declaration.
11069 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
11070 * regcache.c (_initialize_regcache): Add declaration.
11071 * reggroups.c (_initialize_reggroup): Add declaration.
11072 * remote-notif.c (_initialize_notif): Add declaration.
11073 * remote-sim.c (_initialize_remote_sim): Add declaration.
11074 * remote.c (_initialize_remote): Add declaration.
11075 * reverse.c (_initialize_reverse): Add declaration.
11076 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
11077 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
11078 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
11079 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
11080 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
11081 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
11082 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
11083 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
11084 Add declaration.
11085 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
11086 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
11087 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
11088 * rust-exp.y (_initialize_rust_exp): Add declaration.
11089 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
11090 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
11091 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
11092 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
11093 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
11094 * score-tdep.c (_initialize_score_tdep): Add declaration.
11095 * ser-go32.c (_initialize_ser_dos): Add declaration.
11096 * ser-mingw.c (_initialize_ser_windows): Add declaration.
11097 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
11098 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
11099 * ser-uds.c (_initialize_ser_socket): Add declaration.
11100 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
11101 * serial.c (_initialize_serial): Add declaration.
11102 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
11103 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
11104 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
11105 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
11106 * skip.c (_initialize_step_skip): Add declaration.
11107 * sol-thread.c (_initialize_sol_thread): Add declaration.
11108 * solib-aix.c (_initialize_solib_aix): Add declaration.
11109 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
11110 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
11111 * solib-frv.c (_initialize_frv_solib): Add declaration.
11112 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
11113 * solib-target.c (_initialize_solib_target): Add declaration.
11114 * solib.c (_initialize_solib): Add declaration.
11115 * source-cache.c (_initialize_source_cache): Add declaration.
11116 * source.c (_initialize_source): Add declaration.
11117 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
11118 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
11119 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
11120 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
11121 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
11122 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
11123 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
11124 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
11125 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
11126 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
11127 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
11128 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
11129 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
11130 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
11131 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
11132 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
11133 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
11134 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
11135 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
11136 * stabsread.c (_initialize_stabsread): Add declaration.
11137 * stack.c (_initialize_stack): Add declaration.
11138 * stap-probe.c (_initialize_stap_probe): Add declaration.
11139 * std-regs.c (_initialize_frame_reg): Add declaration.
11140 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
11141 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
11142 * symfile.c (_initialize_symfile): Add declaration.
11143 * symmisc.c (_initialize_symmisc): Add declaration.
11144 * symtab.c (_initialize_symtab): Add declaration.
11145 * target.c (_initialize_target): Add declaration.
11146 * target-connection.c (_initialize_target_connection): Add
11147 declaration.
11148 * target-dcache.c (_initialize_target_dcache): Add declaration.
11149 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
11150 * thread.c (_initialize_thread): Add declaration.
11151 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
11152 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
11153 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
11154 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
11155 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
11156 * tracectf.c (_initialize_ctf): Add declaration.
11157 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
11158 * tracefile.c (_initialize_tracefile): Add declaration.
11159 * tracepoint.c (_initialize_tracepoint): Add declaration.
11160 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
11161 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
11162 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
11163 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
11164 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
11165 * tui/tui-win.c (_initialize_tui_win): Add declaration.
11166 * tui/tui.c (_initialize_tui): Add declaration.
11167 * typeprint.c (_initialize_typeprint): Add declaration.
11168 * ui-style.c (_initialize_ui_style): Add declaration.
11169 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
11170 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
11171 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
11172 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
11173 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
11174 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
11175 * unittests/filtered_iterator-selftests.c
11176 (_initialize_filtered_iterator_selftests): Add declaration.
11177 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
11178 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
11179 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
11180 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
11181 * unittests/main-thread-selftests.c
11182 (_initialize_main_thread_selftests): Add declaration.
11183 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
11184 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
11185 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
11186 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
11187 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
11188 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
11189 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
11190 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
11191 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
11192 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
11193 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
11194 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
11195 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
11196 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
11197 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
11198 declaration.
11199 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
11200 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
11201 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
11202 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
11203 * user-regs.c (_initialize_user_regs): Add declaration.
11204 * utils.c (_initialize_utils): Add declaration.
11205 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
11206 * valops.c (_initialize_valops): Add declaration.
11207 * valprint.c (_initialize_valprint): Add declaration.
11208 * value.c (_initialize_values): Add declaration.
11209 * varobj.c (_initialize_varobj): Add declaration.
11210 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
11211 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
11212 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
11213 * windows-nat.c (_initialize_windows_nat): Add declaration.
11214 (_initialize_check_for_gdb_ini): Add declaration.
11215 (_initialize_loadable): Add declaration.
11216 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
11217 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
11218 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
11219 * xcoffread.c (_initialize_xcoffread): Add declaration.
11220 * xml-support.c (_initialize_xml_support): Add declaration.
11221 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
11222 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
11223 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
11224 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
11225
e2de1eec
SM
112262020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
11227
11228 * regformats/regdat.sh: Generate declaration for init function.
11229
e0037b4c
SM
112302020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
11231
11232 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
11233 up.
11234 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
11235 close_one_inferior>: New methods.
11236 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
11237 pass down target to find_inferior_pid.
11238 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
11239 Pass down target to find_inferior_ptid.
11240 (gdbsim_target::create_inferior): Pass down target to
11241 add_thread_silent.
11242 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
11243 target down to find_inferior_ptid and switch_to_thread.
11244 (gdbsim_target::close): Update to call close_one_inferior.
11245 (struct resume_data): Remove.
11246 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
11247 directly, rather than through a void pointer.
11248 (gdbsim_target::resume): Update to call resume_one_inferior.
11249
58920b5b
SM
112502020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
11251
11252 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
11253
4ec89149
PA
112542020-01-12 Pedro Alves <palves@redhat.com>
11255
11256 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
11257 directly for the current inferior instead of
11258 discard_all_inferiors.
11259 (discard_all_inferiors): Delete.
11260
7c392d1d
TT
112612020-01-11 Tom Tromey <tom@tromey.com>
11262
11263 * tui/tui-wingeneral.c (box_win): Check cli_styling.
11264 * tui/tui-winsource.c (tui_source_window_base::refill): Use
11265 deprecated_safe_get_selected_frame.
11266
d9ebdab7
TBA
112672020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11268
11269 * inferior.c (print_inferior): Switch inferior before printing it.
11270
f3c469b9
PA
112712020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
11272 Pedro Alves <palves@redhat.com>
11273
11274 * progspace-and-thread.c (switch_to_program_space_and_thread):
11275 Assert there's an inferior for PSPACE. Use
11276 switch_to_inferior_no_thread to switch the inferior too.
11277 * progspace.c (program_space::~program_space): Call
11278 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
11279 (program_space::free_all_objfiles): Don't call clear_symtab_users
11280 here.
11281 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
11282
65c574f6
PA
112832020-01-10 Pedro Alves <palves@redhat.com>
11284
11285 * NEWS: Mention multi-target debugging, "info connections", and
11286 "add-inferior -no-connection".
11287
2f4fcf00
PA
112882020-01-10 Pedro Alves <palves@redhat.com>
11289
11290 * infrun.c: Include "target-connection.h".
11291 (check_multi_target_resumption): New.
11292 (proceed): Call it.
11293 * target-connection.c (make_target_connection_string): Make
11294 extern.
11295 * target-connection.h (make_target_connection_string): Declare.
11296
121b3efd
PA
112972020-01-10 Pedro Alves <palves@redhat.com>
11298
11299 * Makefile.in (COMMON_SFILES): Add target-connection.c.
11300 * inferior.c (uiout_field_connection): New function.
11301 (print_inferior): Add new "connection-id" column.
11302 (add_inferior_command): Show connection number/string of added
11303 inferior.
11304 * process-stratum-target.h
11305 (process_stratum_target::connection_string): New virtual method.
11306 (process_stratum_target::connection_number): New field.
11307 * remote.c (remote_target::connection_string): New override.
11308 * target-connection.c: New file.
11309 * target-connection.h: New file.
11310 * target.c (decref_target): Remove process_stratum targets from
11311 the connection list.
11312 (target_stack::push): Add process_stratum targets to the
11313 connection list.
11314
4f837581
PA
113152020-01-10 Pedro Alves <palves@redhat.com>
11316
11317 Revert:
11318 2016-04-12 Pedro Alves <palves@redhat.com>
11319 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
11320 Remove references to name.
11321 * serial.h (struct serial) <name>: Delete.
11322
f4ec508e
PA
113232020-01-10 Pedro Alves <palves@redhat.com>
11324
11325 * gdbarch-selftests.c (register_to_value_test): Remove "target
11326 already pushed" check.
11327
5b6d1e4f
PA
113282020-01-10 Pedro Alves <palves@redhat.com>
11329 John Baldwin <jhb@FreeBSD.org>
11330
11331 * aarch64-linux-nat.c
11332 (aarch64_linux_nat_target::thread_architecture): Adjust.
11333 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
11334 (task_command_1): Likewise.
11335 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
11336 (aix_thread_target::wait, aix_thread_target::fetch_registers)
11337 (aix_thread_target::store_registers)
11338 (aix_thread_target::thread_alive): Adjust.
11339 * amd64-fbsd-tdep.c: Include "inferior.h".
11340 (amd64fbsd_get_thread_local_address): Pass down target.
11341 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
11342 thread's gdbarch instead of target_gdbarch.
11343 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
11344 get_last_target_status.
11345 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
11346 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
11347 inferiors.
11348 (update_inserted_breakpoint_locations): Skip if inferiors with no
11349 execution.
11350 (update_global_location_list): When handling moribund locations,
11351 find representative inferior for location's pspace, and use thread
11352 count of its process_stratum target.
11353 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
11354 * bsd-uthread.c (bsd_uthread_target::wait): Use
11355 as_process_stratum_target and adjust thread_change_ptid and
11356 add_thread calls.
11357 (bsd_uthread_target::update_thread_list): Use
11358 as_process_stratum_target and adjust find_thread_ptid,
11359 thread_change_ptid and add_thread calls.
11360 * btrace.c (maint_btrace_packet_history_cmd): Adjust
11361 find_thread_ptid call.
11362 * corelow.c (add_to_thread_list): Adjust add_thread call.
11363 (core_target_open): Adjust add_thread_silent and thread_count
11364 calls.
11365 (core_target::pid_to_str): Adjust find_inferior_ptid call.
11366 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
11367 * event-top.c (async_disconnect): Pop targets from all inferiors.
11368 * exec.c (add_target_sections): Push exec target on all inferiors
11369 sharing the program space.
11370 (remove_target_sections): Remove the exec target from all
11371 inferiors sharing the program space.
11372 (exec_on_vfork): New.
11373 * exec.h (exec_on_vfork): Declare.
11374 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
11375 Pass it down.
11376 (fbsd_nat_target::update_thread_list): Adjust.
11377 (fbsd_nat_target::resume): Adjust.
11378 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
11379 down.
11380 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
11381 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
11382 get_thread_arch_regcache call.
11383 * fork-child.c (gdb_startup_inferior): Pass target down to
11384 startup_inferior and set_executing.
11385 * gdbthread.h (struct process_stratum_target): Forward declare.
11386 (add_thread, add_thread_silent, add_thread_with_info)
11387 (in_thread_list): Add process_stratum_target parameter.
11388 (find_thread_ptid(inferior*, ptid_t)): New overload.
11389 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
11390 parameter.
11391 (all_threads()): Delete overload.
11392 (all_threads, all_non_exited_threads): Add process_stratum_target
11393 parameter.
11394 (all_threads_safe): Use brace initialization.
11395 (thread_count): Add process_stratum_target parameter.
11396 (set_resumed, set_running, set_stop_requested, set_executing)
11397 (threads_are_executing, finish_thread_state): Add
11398 process_stratum_target parameter.
11399 (switch_to_thread): Use is_current_thread.
11400 * i386-fbsd-tdep.c: Include "inferior.h".
11401 (i386fbsd_get_thread_local_address): Pass down target.
11402 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
11403 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
11404 have_inferiors check.
11405 * inf-ptrace.c (inf_ptrace_target::create_inferior)
11406 (inf_ptrace_target::attach): Adjust.
11407 * infcall.c (run_inferior_call): Adjust.
11408 * infcmd.c (run_command_1): Pass target to
11409 scoped_finish_thread_state.
11410 (proceed_thread_callback): Skip inferiors with no execution.
11411 (continue_command): Rename 'all_threads' local to avoid hiding
11412 'all_threads' function. Adjust get_last_target_status call.
11413 (prepare_one_step): Adjust set_running call.
11414 (signal_command): Use user_visible_resume_target. Compare thread
11415 pointers instead of inferior_ptid.
11416 (info_program_command): Adjust to pass down target.
11417 (attach_command): Mark target's 'thread_executing' flag.
11418 (stop_current_target_threads_ns): New, factored out from ...
11419 (interrupt_target_1): ... this. Switch inferior before making
11420 target calls.
11421 * inferior-iter.h
11422 (struct all_inferiors_iterator, struct all_inferiors_range)
11423 (struct all_inferiors_safe_range)
11424 (struct all_non_exited_inferiors_range): Filter on
11425 process_stratum_target too. Remove explicit.
11426 * inferior.c (inferior::inferior): Push dummy target on target
11427 stack.
11428 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
11429 Add process_stratum_target parameter, and pass it down.
11430 (have_live_inferiors): Adjust.
11431 (switch_to_inferior_and_push_target): New.
11432 (add_inferior_command, clone_inferior_command): Handle
11433 "-no-connection" parameter. Use
11434 switch_to_inferior_and_push_target.
11435 (_initialize_inferior): Mention "-no-connection" option in
11436 the help of "add-inferior" and "clone-inferior" commands.
11437 * inferior.h: Include "process-stratum-target.h".
11438 (interrupt_target_1): Use bool.
11439 (struct inferior) <push_target, unpush_target, target_is_pushed,
11440 find_target_beneath, top_target, process_target, target_at,
11441 m_stack>: New.
11442 (discard_all_inferiors): Delete.
11443 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
11444 (all_inferiors, all_non_exited_inferiors): Add
11445 process_stratum_target parameter.
11446 * infrun.c: Include "gdb_select.h" and <unordered_map>.
11447 (target_last_proc_target): New global.
11448 (follow_fork_inferior): Push target on new inferior. Pass target
11449 to add_thread_silent. Call exec_on_vfork. Handle target's
11450 reference count.
11451 (follow_fork): Adjust get_last_target_status call. Also consider
11452 target.
11453 (follow_exec): Push target on new inferior.
11454 (struct execution_control_state) <target>: New field.
11455 (user_visible_resume_target): New.
11456 (do_target_resume): Call target_async.
11457 (resume_1): Set target's threads_executing flag. Consider resume
11458 target.
11459 (commit_resume_all_targets): New.
11460 (proceed): Also consider resume target. Skip threads of inferiors
11461 with no execution. Commit resumtion in all targets.
11462 (start_remote): Pass current inferior to wait_for_inferior.
11463 (infrun_thread_stop_requested): Consider target as well. Pass
11464 thread_info pointer to clear_inline_frame_state instead of ptid.
11465 (infrun_thread_thread_exit): Consider target as well.
11466 (random_pending_event_thread): New inferior parameter. Use it.
11467 (do_target_wait): Rename to ...
11468 (do_target_wait_1): ... this. Add inferior parameter, and pass it
11469 down.
11470 (threads_are_resumed_pending_p, do_target_wait): New.
11471 (prepare_for_detach): Adjust calls.
11472 (wait_for_inferior): New inferior parameter. Handle it. Use
11473 do_target_wait_1 instead of do_target_wait.
11474 (fetch_inferior_event): Adjust. Switch to representative
11475 inferior. Pass target down.
11476 (set_last_target_status): Add process_stratum_target parameter.
11477 Save target in global.
11478 (get_last_target_status): Add process_stratum_target parameter and
11479 handle it.
11480 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
11481 (context_switch): Check inferior_ptid == null_ptid before calling
11482 inferior_thread().
11483 (get_inferior_stop_soon): Pass down target.
11484 (wait_one): Rename to ...
11485 (poll_one_curr_target): ... this.
11486 (struct wait_one_event): New.
11487 (wait_one): New.
11488 (stop_all_threads): Adjust.
11489 (handle_no_resumed, handle_inferior_event): Adjust to consider the
11490 event's target.
11491 (switch_back_to_stepped_thread): Also consider target.
11492 (print_stop_event): Update.
11493 (normal_stop): Update. Also consider the resume target.
11494 * infrun.h (wait_for_inferior): Remove declaration.
11495 (user_visible_resume_target): New declaration.
11496 (get_last_target_status, set_last_target_status): New
11497 process_stratum_target parameter.
11498 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
11499 process_stratum_target parameter, and use it.
11500 (clear_inline_frame_state (thread_info*)): New.
11501 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
11502 process_stratum_target parameter.
11503 (clear_inline_frame_state (thread_info*)): Declare.
11504 * linux-fork.c (delete_checkpoint_command): Pass target down to
11505 find_thread_ptid.
11506 (checkpoint_command): Adjust.
11507 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
11508 instead of just tweaking inferior_ptid.
11509 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
11510 (exit_lwp): Pass target down to find_thread_ptid.
11511 (attach_proc_task_lwp_callback): Pass target down to
11512 add_thread/set_running/set_executing.
11513 (linux_nat_target::attach): Pass target down to
11514 thread_change_ptid.
11515 (get_detach_signal): Pass target down to find_thread_ptid.
11516 Consider last target status's target.
11517 (linux_resume_one_lwp_throw, resume_lwp)
11518 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
11519 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
11520 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
11521 (linux_nat_target::async_wait_fd): New.
11522 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
11523 target down.
11524 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
11525 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
11526 * linux-thread-db.c (struct thread_db_info::process_target): New
11527 field.
11528 (add_thread_db_info): Save target.
11529 (get_thread_db_info): New process_stratum_target parameter. Also
11530 match target.
11531 (delete_thread_db_info): New process_stratum_target parameter.
11532 Also match target.
11533 (thread_from_lwp): Adjust to pass down target.
11534 (thread_db_notice_clone): Pass down target.
11535 (check_thread_db_callback): Pass down target.
11536 (try_thread_db_load_1): Always push the thread_db target.
11537 (try_thread_db_load, record_thread): Pass target down.
11538 (thread_db_target::detach): Pass target down. Always unpush the
11539 thread_db target.
11540 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
11541 target down. Always unpush the thread_db target.
11542 (find_new_threads_callback, thread_db_find_new_threads_2)
11543 (thread_db_target::update_thread_list): Pass target down.
11544 (thread_db_target::pid_to_str): Pass current inferior down.
11545 (thread_db_target::get_thread_local_address): Pass target down.
11546 (thread_db_target::resume, maintenance_check_libthread_db): Pass
11547 target down.
11548 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
11549 * procfs.c (procfs_target::procfs_init_inferior): Declare.
11550 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
11551 (procfs_init_inferior): Rename to ...
11552 (procfs_target::procfs_init_inferior): ... this and adjust.
11553 (procfs_target::create_inferior, procfs_notice_thread)
11554 (procfs_do_thread_registers): Adjust.
11555 * ppc-fbsd-tdep.c: Include "inferior.h".
11556 (ppcfbsd_get_thread_local_address): Pass down target.
11557 * proc-service.c (ps_xfer_memory): Switch current inferior and
11558 program space as well.
11559 (get_ps_regcache): Pass target down.
11560 * process-stratum-target.c
11561 (process_stratum_target::thread_address_space)
11562 (process_stratum_target::thread_architecture): Pass target down.
11563 * process-stratum-target.h
11564 (process_stratum_target::threads_executing): New field.
11565 (as_process_stratum_target): New.
11566 * ravenscar-thread.c
11567 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
11568 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
11569 down.
11570 * record-btrace.c (record_btrace_target::info_record): Adjust.
11571 (record_btrace_target::record_method)
11572 (record_btrace_target::record_is_replaying)
11573 (record_btrace_target::fetch_registers)
11574 (get_thread_current_frame_id, record_btrace_target::resume)
11575 (record_btrace_target::wait, record_btrace_target::stop): Pass
11576 target down.
11577 * record-full.c (record_full_wait_1): Switch to event thread.
11578 Pass target down.
11579 * regcache.c (regcache::regcache)
11580 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
11581 process_stratum_target parameter and handle it.
11582 (current_thread_target): New global.
11583 (get_thread_regcache): Add process_stratum_target parameter and
11584 handle it. Switch inferior before calling target method.
11585 (get_thread_regcache): Pass target down.
11586 (get_thread_regcache_for_ptid): Pass target down.
11587 (registers_changed_ptid): Add process_stratum_target parameter and
11588 handle it.
11589 (registers_changed_thread, registers_changed): Pass target down.
11590 (test_get_thread_arch_aspace_regcache): New.
11591 (current_regcache_test): Define a couple local test_target_ops
11592 instances and use them for testing.
11593 (readwrite_regcache): Pass process_stratum_target parameter.
11594 (cooked_read_test, cooked_write_test): Pass mock_target down.
11595 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
11596 (get_thread_arch_aspace_regcache): Add process_stratum_target
11597 parameter.
11598 (regcache::target): New method.
11599 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
11600 (regcache::registers_changed_ptid): Add process_stratum_target
11601 parameter.
11602 (regcache::m_target): New field.
11603 (registers_changed_ptid): Add process_stratum_target parameter.
11604 * remote.c (remote_state::supports_vCont_probed): New field.
11605 (remote_target::async_wait_fd): New method.
11606 (remote_unpush_and_throw): Add remote_target parameter.
11607 (get_current_remote_target): Adjust.
11608 (remote_target::remote_add_inferior): Push target.
11609 (remote_target::remote_add_thread)
11610 (remote_target::remote_notice_new_inferior)
11611 (get_remote_thread_info): Pass target down.
11612 (remote_target::update_thread_list): Skip threads of inferiors
11613 bound to other targets. (remote_target::close): Don't discard
11614 inferiors. (remote_target::add_current_inferior_and_thread)
11615 (remote_target::process_initial_stop_replies)
11616 (remote_target::start_remote)
11617 (remote_target::remote_serial_quit_handler): Pass down target.
11618 (remote_target::remote_unpush_target): New remote_target
11619 parameter. Unpush the target from all inferiors.
11620 (remote_target::remote_unpush_and_throw): New remote_target
11621 parameter. Pass it down.
11622 (remote_target::open_1): Check whether the current inferior has
11623 execution instead of checking whether any inferior is live. Pass
11624 target down.
11625 (remote_target::remote_detach_1): Pass down target. Use
11626 remote_unpush_target.
11627 (extended_remote_target::attach): Pass down target.
11628 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
11629 (remote_target::append_resumption): Pass down target.
11630 (remote_target::append_pending_thread_resumptions)
11631 (remote_target::remote_resume_with_hc, remote_target::resume)
11632 (remote_target::commit_resume): Pass down target.
11633 (remote_target::remote_stop_ns): Check supports_vCont_probed.
11634 (remote_target::interrupt_query)
11635 (remote_target::remove_new_fork_children)
11636 (remote_target::check_pending_events_prevent_wildcard_vcont)
11637 (remote_target::remote_parse_stop_reply)
11638 (remote_target::process_stop_reply): Pass down target.
11639 (first_remote_resumed_thread): New remote_target parameter. Pass
11640 it down.
11641 (remote_target::wait_as): Pass down target.
11642 (unpush_and_perror): New remote_target parameter. Pass it down.
11643 (remote_target::readchar, remote_target::remote_serial_write)
11644 (remote_target::getpkt_or_notif_sane_1)
11645 (remote_target::kill_new_fork_children, remote_target::kill): Pass
11646 down target.
11647 (remote_target::mourn_inferior): Pass down target. Use
11648 remote_unpush_target.
11649 (remote_target::core_of_thread)
11650 (remote_target::remote_btrace_maybe_reopen): Pass down target.
11651 (remote_target::pid_to_exec_file)
11652 (remote_target::thread_handle_to_thread_info): Pass down target.
11653 (remote_target::async_wait_fd): New.
11654 * riscv-fbsd-tdep.c: Include "inferior.h".
11655 (riscv_fbsd_get_thread_local_address): Pass down target.
11656 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
11657 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
11658 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
11659 Adjust.
11660 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
11661 * solib-svr4.c (enable_break): Pass down target.
11662 * spu-multiarch.c (parse_spufs_run): Pass down target.
11663 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
11664 * target-delegates.c: Regenerate.
11665 * target.c (g_target_stack): Delete.
11666 (current_top_target): Return the current inferior's top target.
11667 (target_has_execution_1): Refer to the passed-in inferior's top
11668 target.
11669 (target_supports_terminal_ours): Check whether the initial
11670 inferior was already created.
11671 (decref_target): New.
11672 (target_stack::push): Incref/decref the target.
11673 (push_target, push_target, unpush_target): Adjust.
11674 (target_stack::unpush): Defref target.
11675 (target_is_pushed): Return bool. Adjust to refer to the current
11676 inferior's target stack.
11677 (dispose_inferior): Delete, and inline parts ...
11678 (target_preopen): ... here. Only dispose of the current inferior.
11679 (target_detach): Hold strong target reference while detaching.
11680 Pass target down.
11681 (target_thread_name): Add assertion.
11682 (target_resume): Pass down target.
11683 (target_ops::beneath, find_target_at): Adjust to refer to the
11684 current inferior's target stack.
11685 (get_dummy_target): New.
11686 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
11687 has a thread running.
11688 (initialize_targets): Rename to ...
11689 (_initialize_target): ... this.
11690 * target.h: Include "gdbsupport/refcounted-object.h".
11691 (struct target_ops): Inherit refcounted_object.
11692 (target_ops::shortname, target_ops::longname): Make const.
11693 (target_ops::async_wait_fd): New method.
11694 (decref_target): Declare.
11695 (struct target_ops_ref_policy): New.
11696 (target_ops_ref): New typedef.
11697 (get_dummy_target): Declare function.
11698 (target_is_pushed): Return bool.
11699 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
11700 (all_matching_threads_iterator::all_matching_threads_iterator):
11701 Handle filter target.
11702 * thread-iter.h (struct all_matching_threads_iterator, struct
11703 all_matching_threads_range, class all_non_exited_threads_range):
11704 Filter by target too. Remove explicit.
11705 * thread.c (threads_executing): Delete.
11706 (inferior_thread): Pass down current inferior.
11707 (clear_thread_inferior_resources): Pass down thread pointer
11708 instead of ptid_t.
11709 (add_thread_silent, add_thread_with_info, add_thread): Add
11710 process_stratum_target parameter. Use it for thread and inferior
11711 searches.
11712 (is_current_thread): New.
11713 (thread_info::deletable): Use it.
11714 (find_thread_ptid, thread_count, in_thread_list)
11715 (thread_change_ptid, set_resumed, set_running): New
11716 process_stratum_target parameter. Pass it down.
11717 (set_executing): New process_stratum_target parameter. Pass it
11718 down. Adjust reference to 'threads_executing'.
11719 (threads_are_executing): New process_stratum_target parameter.
11720 Adjust reference to 'threads_executing'.
11721 (set_stop_requested, finish_thread_state): New
11722 process_stratum_target parameter. Pass it down.
11723 (switch_to_thread): Also match inferior.
11724 (switch_to_thread): New process_stratum_target parameter. Pass it
11725 down.
11726 (update_threads_executing): Reimplement.
11727 * top.c (quit_force): Pop targets from all inferior.
11728 (gdb_init): Don't call initialize_targets.
11729 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
11730 Declare.
11731 (windows_add_thread, windows_delete_thread): Adjust.
11732 (get_windows_debug_event): Rename to ...
11733 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
11734 * tracefile-tfile.c (tfile_target_open): Pass down target.
11735 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
11736 Forward declare.
11737 (switch_to_thread): Add process_stratum_target parameter.
11738 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
11739 parameter. Use it.
11740 (mi_on_resume): Pass target down.
11741 * nat/fork-inferior.c (startup_inferior): Add
11742 process_stratum_target parameter. Pass it down.
11743 * nat/fork-inferior.h (startup_inferior): Add
11744 process_stratum_target parameter.
11745 * python/py-threadevent.c (py_get_event_thread): Pass target down.
11746
75c6c844
PA
117472020-01-10 Pedro Alves <palves@redhat.com>
11748
11749 * remote.c (remote_target::start_remote): Don't set inferior_ptid
11750 directly. Instead find the first thread in the thread list and
11751 use switch_to_thread.
11752
78f2c40a
PA
117532020-01-10 Pedro Alves <palves@redhat.com>
11754
11755 * remote.c (remote_target::remote_add_inferior): Don't bind a
11756 process to the current inferior if the current inferior is already
11757 bound to a process.
11758
e7af6c70
TBA
117592020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11760 Pedro Alves <palves@redhat.com>
11761
11762 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
11763 If no process is specified, return null_ptid instead of
11764 inferior_ptid.
11765 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
11766 TARGET_WAITKIND_SIGNALLED with no pid.
11767
31ba933e
PA
117682020-01-10 Pedro Alves <palves@redhat.com>
11769
11770 * remote.c (first_remote_resumed_thread): New.
11771 (remote_target::wait_as): Use it as default event_ptid instead of
11772 inferior_ptid.
11773
735fc2ca
PA
117742020-01-10 Pedro Alves <palves@redhat.com>
11775
11776 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
11777
c17e02e1
PA
117782020-01-10 Pedro Alves <palves@redhat.com>
11779
11780 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
11781 not -1.
11782
ab1ddbcf
PA
117832020-01-10 Pedro Alves <palves@redhat.com>
11784
11785 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
11786 ptid to get_last_target_status.
11787 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
11788 ptid to get_last_target_status.
11789 * infcmd.c (continue_command): Don't pass a target_waitstatus to
11790 get_last_target_status.
11791 (info_program_command): Don't pass a target_waitstatus to
11792 get_last_target_status.
11793 * infrun.c (init_wait_for_inferior): Use
11794 nullify_last_target_wait_ptid.
11795 (get_last_target_status): Handle nullptr arguments.
11796 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
11797 (print_stop_event): Don't pass a ptid to get_last_target_status.
11798 (normal_stop): Don't pass a ptid to get_last_target_status.
11799 * infrun.h (get_last_target_status, set_last_target_status): Move
11800 comments here and update.
11801 (nullify_last_target_wait_ptid): Declare.
11802 * linux-fork.c (fork_load_infrun_state): Remove local extern
11803 declaration of nullify_last_target_wait_ptid.
11804 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
11805 to get_last_target_status.
11806
f3f8ece4
PA
118072020-01-10 Pedro Alves <palves@redhat.com>
11808
11809 * gdbthread.h (scoped_restore_current_thread)
11810 <dont_restore, restore, m_dont_restore>: Declare.
11811 * thread.c (thread_alive): Add assertion. Return bool.
11812 (switch_to_thread_if_alive): New.
11813 (prune_threads): Switch inferior/thread.
11814 (print_thread_info_1): Switch thread before calling target methods.
11815 (scoped_restore_current_thread::restore): New, factored out from
11816 ...
11817 (scoped_restore_current_thread::~scoped_restore_current_thread):
11818 ... this.
11819 (scoped_restore_current_thread::scoped_restore_current_thread):
11820 Add assertion.
11821 (thread_apply_all_command, thread_select): Use
11822 switch_to_thread_if_alive.
11823 * infrun.c (proceed, restart_threads, handle_signal_stop)
11824 (switch_back_to_stepped_thread): Switch current thread before
11825 calling target methods.
11826
db2d40f7
PA
118272020-01-10 Pedro Alves <palves@redhat.com>
11828
11829 * inferior.c (switch_to_inferior_no_thread): New function,
11830 factored out from ...
11831 (inferior_command): ... here.
11832 * inferior.h (switch_to_inferior_no_thread): Declare.
11833 * mi/mi-main.c (run_one_inferior): Use
11834 switch_to_inferior_no_thread.
11835
bd420a2d
PA
118362020-01-10 Pedro Alves <palves@redhat.com>
11837
11838 * infcmd.c (kill_command): Remove dead code.
11839
ddf5db90
PA
118402020-01-10 Pedro Alves <palves@redhat.com>
11841
11842 * remote.c (remote_target::mourn_inferior): No longer check
11843 whether the target is running.
11844
5018ce90
PA
118452020-01-10 Pedro Alves <palves@redhat.com>
11846
11847 * corelow.c (core_target::has_execution): Change parameter type to
11848 inferior pointer.
11849 * inferior.c (number_of_live_inferiors): Use
11850 inferior::has_execution instead of target_has_execution_1.
11851 * inferior.h (inferior::has_execution): New.
11852 * linux-thread-db.c (thread_db_target::update_thread_list): Use
11853 inferior::has_execution instead of target_has_execution_1.
11854 * process-stratum-target.c
11855 (process_stratum_target::has_execution): Change parameter type to
11856 inferior pointer. Check the inferior's PID instead of
11857 inferior_ptid.
11858 * process-stratum-target.h
11859 (process_stratum_target::has_execution): Change parameter type to
11860 inferior pointer.
11861 * record-full.c (record_full_core_target::has_execution): Change
11862 parameter type to inferior pointer.
11863 * target.c (target_has_execution_1): Change parameter type to
11864 inferior pointer.
11865 (target_has_execution_current): Adjust.
11866 * target.h (target_ops::has_execution): Change parameter type to
11867 inferior pointer.
11868 (target_has_execution_1): Change parameter type to inferior
11869 pointer. Change return type to bool.
11870 * tracefile.h (tracefile_target::has_execution): Change parameter
11871 type to inferior pointer.
11872
74375d18
PA
118732020-01-10 Pedro Alves <palves@redhat.com>
11874
11875 * exceptions.c (print_flush): Remove current_top_target() check.
11876
acdf84a6
PA
118772020-01-10 Pedro Alves <palves@redhat.com>
11878
11879 * remote.c (show_remote_exec_file): Show the current inferior's
11880 exec-file instead of the command variable's value.
11881
ec506636
PA
118822020-01-10 Pedro Alves <palves@redhat.com>
11883
11884 * record-full.c (record_full_resume_ptid): New global.
11885 (record_full_target::resume): Set it.
11886 (record_full_wait_1): Use record_full_resume_ptid instead of
11887 inferior_ptid.
11888
873657b9
PA
118892020-01-10 Pedro Alves <palves@redhat.com>
11890
11891 * gdbthread.h (scoped_restore_current_thread)
11892 <dont_restore, restore, m_dont_restore>: Declare.
11893 * thread.c (thread_alive): Add assertion. Return bool.
11894 (switch_to_thread_if_alive): New.
11895 (prune_threads): Switch inferior/thread.
11896 (print_thread_info_1): Switch thread before calling target methods.
11897 (scoped_restore_current_thread::restore): New, factored out from
11898 ...
11899 (scoped_restore_current_thread::~scoped_restore_current_thread):
11900 ... this.
11901 (scoped_restore_current_thread::scoped_restore_current_thread):
11902 Add assertion.
11903 (thread_apply_all_command, thread_select): Use
11904 switch_to_thread_if_alive.
11905
7f0ae84c
GB
119062020-01-10 George Barrett <bob@bob131.so>
11907
11908 * stap-probe.c (stap_modify_semaphore): Don't check for null
11909 semaphores.
11910 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
11911 for null semaphores.
11912
f5a7c406
AB
119132020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
11914
11915 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
11916 all source windows, and maintain horizontal scroll status while
11917 doing so.
11918
9ae6bf64
TT
119192020-01-09 Tom Tromey <tom@tromey.com>
11920
11921 PR tui/18932:
11922 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
11923 update_source_window, not print_source_lines.
11924
b2efe70c
AB
119252020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
11926
11927 * tui/tui.c (tui_enable): Register tui hooks after calling
11928 tui_display_main.
11929
5f23a082
CB
119302020-01-09 Christian Biesinger <cbiesinger@google.com>
11931
11932 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
11933
3061113b
SM
119342020-01-08 Simon Marchi <simon.marchi@efficios.com>
11935
11936 * thread.c (print_thread_info_1): Fix indentation.
11937
57d75002
CB
119382020-01-09 Christian Biesinger <cbiesinger@google.com>
11939
11940 * symtab.c (general_symbol_info::compute_and_set_names): Move the
11941 unique_xmalloc_ptr outside the if to always free the demangled name.
11942
6a053cb1
TT
119432020-01-08 Tom Tromey <tromey@adacore.com>
11944
11945 * xcoffread.c (enter_line_range, read_xcoff_symtab)
11946 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
11947 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
11948 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
11949 Remove.
11950 (section_offsets): New typedef.
11951 * symtab.c (fixup_section, get_msymbol_address): Update.
11952 * symmisc.c (dump_msymbols): Update.
11953 * symfile.h (relative_addr_info_to_section_offsets)
11954 (symfile_map_offsets_to_segments): Update.
11955 * symfile.c (build_section_addr_info_from_objfile)
11956 (init_objfile_sect_indices): Update.
11957 (struct place_section_arg): Change type of "offsets".
11958 (place_section): Update.
11959 (relative_addr_info_to_section_offsets): Change type of
11960 "section_offsets". Remove "num_sections" parameter.
11961 (default_symfile_offsets, syms_from_objfile_1)
11962 (set_objfile_default_section_offset): Update.
11963 (reread_symbols): No need to preserve section offsets by hand.
11964 (symfile_map_offsets_to_segments): Change type of "offsets".
11965 * stap-probe.c (relocate_address): Update.
11966 * stabsread.h (process_one_symbol): Update.
11967 * solib-target.c (struct lm_info_target) <offsets>: Change type.
11968 (solib_target_relocate_section_addresses): Update.
11969 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
11970 Update.
11971 * solib-frv.c (frv_relocate_main_executable): Update.
11972 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
11973 * solib-aix.c (solib_aix_get_section_offsets): Change return
11974 type.
11975 (solib_aix_solib_create_inferior_hook): Update.
11976 * remote.c (remote_target::get_offsets): Update.
11977 * psymtab.c (find_pc_sect_psymtab): Update.
11978 * psympriv.h (struct partial_symbol) <address, text_low,
11979 text_high>: Update.
11980 * objfiles.h (obj_section_offset): Update.
11981 (struct objfile) <section_offsets>: Change type.
11982 <num_sections>: Remove.
11983 (objfile_relocate): Update.
11984 * objfiles.c (entry_point_address_query): Update
11985 (relocate_one_symbol): Change type of "section_offsets".
11986 (objfile_relocate1, objfile_relocate1): Change type of
11987 "new_offsets".
11988 (objfile_rebase1): Update.
11989 * mipsread.c (mipscoff_symfile_read): Update.
11990 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
11991 parameter.
11992 * mdebugread.c (parse_symbol): Change type of "section_offsets".
11993 (parse_external, psymtab_to_symtab_1): Update.
11994 * machoread.c (macho_symfile_offsets): Update.
11995 * ia64-tdep.c (ia64_find_unwind_table): Update.
11996 * hppa-tdep.c (read_unwind_info): Update.
11997 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
11998 * dwarf2read.c (create_addrmap_from_index)
11999 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
12000 (process_psymtab_comp_unit_reader, add_partial_symbol)
12001 (add_partial_subprogram, process_full_comp_unit)
12002 (read_file_scope, read_func_scope, read_lexical_block_scope)
12003 (read_call_site_scope, dwarf2_rnglists_process)
12004 (dwarf2_ranges_process, dwarf2_ranges_read)
12005 (dwarf_decode_lines_1, var_decode_location, new_symbol)
12006 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
12007 Update.
12008 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
12009 Update.
12010 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
12011 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
12012 (process_one_symbol): Change type of "section_offsets".
12013 * ctfread.c (get_objfile_text_range): Update.
12014 * coffread.c (coff_symtab_read, enter_linenos)
12015 (process_coff_symbol): Update.
12016 * coff-pe-read.c (add_pe_forwarded_sym): Update.
12017 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
12018
456e800a
TT
120192020-01-08 Tom Tromey <tromey@adacore.com>
12020
12021 * dwarf2read.c (parse_macro_definition): Use std::string.
12022 (parse_macro_definition): Likewise.
12023
6dfa2fc2
TT
120242020-01-08 Tom Tromey <tromey@adacore.com>
12025
12026 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
12027 (ATTR_ALLOC_CHUNK): Remove.
12028
421d1616
TT
120292020-01-08 Tom Tromey <tromey@adacore.com>
12030
12031 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
12032
43816ebc
TT
120332020-01-08 Tom Tromey <tromey@adacore.com>
12034
12035 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
12036 (dwarf2_compute_name, open_dwo_file): Likewise.
12037 (process_enumeration_scope): Use std::vector.
12038 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
12039 (partial_die_info::fixup, dwarf2_start_subfile)
12040 (guess_full_die_structure_name, dwarf2_name): Likewise.
12041 (determine_prefix): Update.
12042 (guess_full_die_structure_name): Make return type const.
12043 (partial_die_full_name): Return unique_xmalloc_ptr.
12044 (DW_FIELD_ALLOC_CHUNK): Remove.
12045
4212d509
TT
120462020-01-07 Tom Tromey <tromey@adacore.com>
12047
12048 PR build/24937:
12049 * stap-probe.c (class stap_static_probe_ops): Add constructor.
12050
06a6207a
JT
120512020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
12052
12053 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
12054
153d79c4
AB
120552020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
12056
12057 * stack.c (print_frame_info): Move disassemble_next_line code
12058 inside source_print block.
12059
66182876
EZ
120602020-01-06 Eli Zaretskii <eliz@gnu.org>
12061
12062 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
12063 gdb/signals.h, as we are now using native signal symbols.
12064
cbfa8581
SV
120652020-01-06 Shahab Vahedi <shahab@synopsys.com>
12066
12067 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
12068 overflow by an early check of content vs threshold.
aac66a4c 12069 * tui/tui-source.c (tui_source_window::line_is_displayed):
cbfa8581
SV
12070 Likewise.
12071
3f602821
EZ
120722020-01-06 Eli Zaretskii <eliz@gnu.org>
12073
12074 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
12075
a08c904d
JT
120762020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
12077
12078 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
12079 export table if no section contains it's RVA.
12080
89a65580
EZ
120812020-01-06 Eli Zaretskii <eliz@gnu.org>
12082
12083 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
12084
8b7fcda2
HD
120852020-01-06 Hannes Domani <ssbssa@yahoo.de>
12086
12087 * source.c (print_source_lines_base): Set last_line_listed.
12088
a61b4f69
SV
120892020-01-06 Shahab Vahedi <shahab@synopsys.com>
12090
12091 * tui/tui-disasm.c: Remove trailing spaces.
12092
559e7e50
EZ
120932020-01-06 Eli Zaretskii <eliz@gnu.org>
12094 Pedro Alves <palves@redhat.com>
12095
12096 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
12097 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
12098 (windows_gdb_signal_to_target): New function, uses the above
12099 enumeration to convert GDB internal signal codes to equivalent
12100 Windows codes.
12101 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
12102 * windows-nat.c: Include "gdb_wait.h".
12103 (get_windows_debug_event): Extract the fatal exception from the
12104 exit status and convert to the equivalent Posix signal number.
12105 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
12106 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
12107 * gdbsupport/gdb_wait.c: New file, implements
12108 windows_status_to_termsig.
12109 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
12110 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
12111
f2302a34
AB
121122020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
12113
12114 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
12115 show_layout.
12116
6a5206eb
LM
121172020-01-05 Luis Machado <luis.machado@linaro.org>
12118
12119 * aarch64-linux-nat.c
12120 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
12121 and bfd_mach_aarch64.
12122
6ec1d75e
PW
121232020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12124
12125 * ui-file.c (stdio_file::can_emit_style_escape)
12126 (tee_file::can_emit_style_escape): Ensure style is used also on
12127 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
12128 to gdb_stdout.
12129 * main.c (set_gdb_data_directory): Use file style to output the
12130 warning that the given pathname is not a directory.
12131 * top.c (show_history_filename, gdb_safe_append_history)
12132 (show_gdb_datadir): Use file style.
12133
44f81a76
HD
121342020-01-03 Hannes Domani <ssbssa@yahoo.de>
12135
12136 * solib-target.c (struct lm_info_target):
12137 Change offsets to be a unique_xmalloc_ptr.
12138 (solib_target_relocate_section_addresses): Update.
12139
25057eb0
HD
121402020-01-03 Hannes Domani <ssbssa@yahoo.de>
12141
12142 * windows-nat.c (windows_clear_solib): Free so_list linked list.
12143
6e2118f5
BE
121442020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
12145
12146 * MAINTAINERS (Write After Approval): Add myself.
12147
8133c7dc
LM
121482020-01-02 Luis Machado <luis.machado@linaro.org>
12149
12150 * proc-service.c (get_ps_regcache): Remove reference to obsolete
12151 Cell BE architecture.
12152 * target.h (struct target_ops) <thread_architecture>: Likewise.
12153
48189bec
HD
121542020-01-01 Hannes Domani <ssbssa@yahoo.de>
12155
12156 * Makefile.in: Use INSTALL_PROGRAM_ENV.
12157
ead1063b
HD
121582020-01-01 Hannes Domani <ssbssa@yahoo.de>
12159
12160 * MAINTAINERS (Write After Approval): Add myself.
12161
e5d78223
JB
121622020-01-01 Joel Brobecker <brobecker@adacore.com>
12163
12164 * gdbarch.sh: Update copyright year range of generated files.
12165
b811d2c2
JB
121662020-01-01 Joel Brobecker <brobecker@adacore.com>
12167
12168 Update copyright year range in all GDB files.
12169
5f4def5c
JB
121702020-01-01 Joel Brobecker <brobecker@adacore.com>
12171
12172 * copyright.py: Convert to Python 3.
12173
51fd4002
JB
121742020-01-01 Joel Brobecker <brobecker@adacore.com>
12175
12176 * copyright.py: Adapt after move of gnulib directory from gdb
12177 directory to toplevel directory.
12178
5fb651f2
JB
121792020-01-01 Joel Brobecker <brobecker@adacore.com>
12180
12181 * copyright.py (main): Exit if run from the wrong directory.
12182
5dd8bf88
JB
121832020-01-01 Joel Brobecker <brobecker@adacore.com>
12184
12185 * top.c (print_gdb_version): Change copyright year to 2020.
12186
9f71dacb 121872020-01-01 Joel Brobecker <brobecker@adacore.com>
3d34df0a 12188
9f71dacb 12189 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
3d34df0a 12190
9f71dacb 12191For older changes see ChangeLog-2019.
c906108c
SS
12192\f
12193Local Variables:
12194mode: change-log
12195left-margin: 8
12196fill-column: 74
12197version-control: never
57da7796 12198coding: utf-8
c906108c 12199End: