]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/ChangeLog
Fix advance/until and inline frames (PR gdb/26523)
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
b2b38aa4
PA
12020-08-27 Pedro Alves <pedro@palves.net>
2
3 PR gdb/26523
4 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
5 bp_until breakpoints user-specified locations. Update intro
6 comment.
7
b886559f
SM
82020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
9
10 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
11 gdb_bfd_sections): New.
12 * maint.c (print_bfd_section_info): Change param type to
13 maint_print_section_data.
14 (print_objfile_section_info): Likewise.
15 (print_bfd_section_info_maybe_relocated): Likewise.
16 (maintenance_info_sections): Use gdb_bfd_sections.
17
4c6e63bf
SV
182020-08-25 Shahab Vahedi <shahab@synopsys.com>
19
20 * MAINTAINERS: Add ARC target and maintainer.
21
8d7f0635
AK
222020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
23
24 * configure.tgt: ARC support for GNU/Linux.
25 * Makefile.in (ALL_TARGET_OBJS): Likewise.
26 * arc-linux-tdep.c: New file.
27 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
28 * arc-tdep.c (arc_write_pc): Use it.
29
fdd8731b
SV
302020-08-25 Shahab Vahedi <shahab@synopsys.com>
31
32 * arc-tdep.c (arc_check_for_hardware_loop): New.
33 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
34
22459524
SV
352020-08-25 Shahab Vahedi <shahab@synopsys.com>
36
37 * arc-tdep.h: Include "gdbarch.h".
38
995d3a19
SV
392020-08-25 Shahab Vahedi <shahab@synopsys.com>
40
41 * arch/arc.h
42 (arc_gdbarch_features): New class to stir the selection of target XML.
43 (arc_create_target_description): Use FEATURES to choose XML target.
44 (arc_lookup_target_description): Use arc_create_target_description
45 to create _new_ target descriptions or return the already created
46 ones if the FEATURES is the same.
47 * arch/arc.c: Implementation of prototypes described above.
48 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
49 (arc_gdbarch_features_init): Initialize the FEATURES struct.
50 * arc-tdep.c (*_feature_name): Make feature names consistent.
51 (arc_register_feature): A new struct to hold information about
52 registers of a particular target/feature.
53 (arc_check_tdesc_feature): Check if XML provides registers in
54 compliance with ARC_REGISTER_FEATURE structs.
55 (arc_update_acc_reg_names): Add aliases for r58 and r59.
56 (determine_*_reg_feature_set): Which feature name to look for.
57 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
58 (mach_type_to_arc_isa): Convert from a set of binutils machine types
59 to expected ISA enums to be used in arc_gdbarch_features structs.
60 * features/Makefile (FEATURE_XMLFILES): Add new files.
61 * gdb/features/arc/v1-aux.c: New file.
62 * gdb/features/arc/v1-aux.xml: Likewise.
63 * gdb/features/arc/v1-core.c: Likewise.
64 * gdb/features/arc/v1-core.xml: Likewise.
65 * gdb/features/arc/v2-aux.c: Likewise.
66 * gdb/features/arc/v2-aux.xml: Likewise.
67 * gdb/features/arc/v2-core.c: Likewise.
68 * gdb/features/arc/v2-core.xml: Likewise.
69 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
70
3945d2d7
GM
712020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
72 Andrew Burgess <andrew.burgess@embecosm.com>
73
74 PR m2/26372
fc5d6901 75 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
3945d2d7
GM
76 an assert. Remove single element array indexing pattern as the
77 MULTI_SUBSCRIPT support will handle this case too.
78
2677f2d3
SM
792020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
80
81 * value.h (valprint_check_validity): Move declaration from
82 here...
83 * valprint.h (valprint_check_validity): ... to here.
84
c426fddb
SM
852020-08-24 Simon Marchi <simon.marchi@efficios.com>
86
87 * debug.h: New file.
88 * debug.c (debug_prefixed_vprintf): New function.
89 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
90 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
91
1eb8556f
SM
922020-08-24 Simon Marchi <simon.marchi@efficios.com>
93
94 * infrun.h (infrun_debug_printf_1): New function declaration.
95 (infrun_debug_printf): New macro.
96 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
97 throughout.
98 (infrun_debug_printf): New function.
99 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
100 (handle_jit_event): Likewise.
101
b8fff44e
MW
1022020-08-21 Mark Wielaard <mark@klomp.org>
103
104 * ada-lex.l: Extend register warnings diagnostics comment for g++.
105
d19c3068
SM
1062020-08-22 Simon Marchi <simon.marchi@efficios.com>
107
108 * frame.c (enum class frame_id_status): New.
109 (struct frame_info) <this_id::p>: Change type to frame_id_status.
110 (fprintf_frame): Update.
111 (compute_frame_id): Set frame id status to "computing" on entry.
112 Set it back to "not_computed" on failure and to "computed" on
113 success.
114 (get_frame_id): Assert the frame id is not being computed.
115 (create_sentinel_frame): Use frame_id_status::COMPUTED.
116 (create_new_frame): Likewise.
117 (frame_cleanup_after_sniffer): Update assert.
118
b70e516e
SM
1192020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
120
121 * regcache.c (pid_ptid_regcache_map): New type.
122 (target_ptid_regcache_map): Remove.
123 (target_pid_ptid_regcache_map): New type.
124 (regcaches): Change type to target_pid_ptid_regcache_map.
125 (get_thread_arch_aspace_regcache): Update.
126 (regcache_thread_ptid_changed): Update, handle pid-like ptid
127 case.
128 (regcaches_size): Update.
129 (regcache_count): Update.
130 (registers_changed_ptid_target_pid_test): New.
131 (_initialize_regcache): Register new test.
132
cdd9148a
SM
1332020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
134
135 * regcache.c (regcache_count): New.
136 (struct regcache_test_data): New.
137 (regcache_test_data_up): New.
138 (populate_regcaches_for_test): New.
139 (regcaches_test): Remove.
140 (get_thread_arch_aspace_regcache_test): New.
141 (registers_changed_ptid_all_test): New.
142 (registers_changed_ptid_target_test): New.
143 (registers_changed_ptid_target_ptid_test): New.
144 (regcache_thread_ptid_changed): Remove regcache_count lambda.
145 (_initialize_regcache): Register new tests.
146
dd125343
SM
1472020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
148
149 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
150 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
151 gdbarch and aspace parameter. Use current inferior's aspace.
152 Validate regcache's arch value.
153 (regcaches_test): Update.
154
3ee93972
SM
1552020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
156
157 * regcache.c (regcaches_test): Call registers_changed.
158
33bf4c5c
TBA
1592020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
160
161 * infrun.c (process_event_stop_test): Fix typo "breapoint".
162
c2fd7fae
AKS
1632020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
164
165 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
166 to find the end of prologue for flang compiled binaries.
167 * arm-tdep.c (arm_skip_prologue): Likewise.
168 * i386-tdep.c (i386_skip_prologue): Likewise.
169 * producer.c (producer_is_llvm): New function.
170 (producer_parsing_tests): Added new tests for clang/flang.
171 * producer.h (producer_is_llvm): New declaration.
172
9327494e
SM
1732020-08-18 Simon Marchi <simon.marchi@efficios.com>
174
175 * linux-nat.c (linux_nat_debug_printf): New function.
176 (linux_nat_debug_printf_1): New macro. Use throughout the file.
177
d138725a
AM
1782020-08-18 Aaron Merey <amerey@redhat.com>
179
180 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
181 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
182 (CLIBS): Add DEBUGINFOD_LIBS.
183
f9b11e6b
ST
1842020-08-17 Sergei Trofimovich <siarheit@google.com>
185
186 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
187 'gdbarch_num_regs'.
188
3ae7ab99
TT
1892020-08-17 Tom Tromey <tromey@adacore.com>
190
191 * ada-varobj.c (ada_varobj_decode_var): Handle case where
192 ada_get_decoded_value returns NULL.
193
b017825f
TT
1942020-08-17 Tom Tromey <tromey@adacore.com>
195
196 * python/py-inferior.c (infpy_search_memory): Use
197 gdb_py_object_from_ulongest.
198 * python/py-infevents.c (create_inferior_call_event_object)
199 (create_memory_changed_event_object): Use
200 gdb_py_object_from_ulongest.
201 * python/py-linetable.c (ltpy_entry_get_pc): Use
202 gdb_py_object_from_ulongest.
203
7635cf79
SM
2042020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
205
206 * loc.c (class symbol_needs_eval_context): Fix indentation.
207
f54be24b
SM
2082020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
209
210 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
211 bool.
212
53d5a2a5
TV
2132020-08-17 Tom de Vries <tdevries@suse.de>
214
215 PR gdb/26393
216 * gdbtypes.c (dump_dynamic_prop): New function.
217 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
218
547ce8f0
TV
2192020-08-15 Tom de Vries <tdevries@suse.de>
220
221 PR backtrace/26390
222 * stack.c (print_frame_args): Temporarily set the selected
223 frame to FRAME while printing the frame's arguments.
224
6ea815e7
PFC
2252020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
226
227 PR breakpoints/26385
228 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
229 Always clear watchpoint with PTRACE_SET_DEBUGREG.
230
6e562fa3
PFC
2312020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
232
233 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
234 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
235 and >= to check return value instead of == -1 and != -1.
236
d369b608
SM
2372020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
238
239 * utils.h (class gdb_argv) <as_array_view>: New method.
240 * utils.c (gdb_argv_as_array_view_test): New.
241 (_initialize_utils): Register selftest.
242 * maint.c (maintenance_selftest): Use the new method.
243
b31488a3
KR
2442020-08-13 Kamil Rytarowski <n54@gmx.com>
245
246 * target.h (supports_dumpcore, dumpcore): New
247 function declarations.
248 * target.c (supports_dumpcore, dumpcore): New
249 functions.
250 * target-delegates.c: Rebuild.
251 * gcore.c (gcore_command): Use target_supports_dumpcore ()
252 and target_dumpcore ().
253
002a3166
AM
2542020-08-13 Aaron Merey <amerey@redhat.com>
255
256 * debuginfod-support.c: Replace global variables with user_data.
257
ece5bc8a
SM
2582020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
259
260 * maint.c (maintenance_selftest): Split args and pass array_view
261 to run_tests.
262
6d8a0a5e
LM
2632020-08-12 Luis Machado <luis.machado@linaro.org>
264
265 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
266 type's length.
267 Use %s and pulongest to print the length.
268
7cf663a9
PA
2692020-08-12 Pedro Alves <palves@redhat.com>
270
271 * NEWS: Move "Multi-target debugging support" item to the
272 "Changes since GDB 9" section.
273
27c7b875
PA
2742020-08-12 Pedro Alves <palves@redhat.com>
275
276 PR gdb/26336
277 * progspace.c (program_space::remove_objfile): Invalidate the
278 frame cache.
279
1796a2a1
TV
2802020-08-11 Tom de Vries <tdevries@suse.de>
281
282 * MAINTAINERS: Mark ms1 as deleted.
283
f8e3fe0d
LM
2842020-08-10 Luis Machado <luis.machado@linaro.org>
285
286 PR gdb/26310
287
288 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
289 act accordingly.
290 (aarch64_analyze_prologue_test): Add more unit tests to exercise
291 movz/str/stur/stp skipping behavior.
292
cc308722
LM
2932020-08-10 Luis Machado <luis.machado@linaro.org>
294
295 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
296 struct user_sve_header instead of struct sve_context.
297
041d9819
SM
2982020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
299
300 * read.h (dwarf2_fetch_die_loc_sect_off,
301 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
302 `void *` parameter with function_view.
303 * read.c (dwarf2_fetch_die_loc_sect_off,
304 dwarf2_fetch_die_loc_cu_off): Likewise.
305 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
306 (per_cu_dwarf_call): Adjust.
307 (get_frame_address_in_block_wrapper): Remove.
308 (indirect_synthetic_pointer): Adjust.
309 (get_ax_pc): Remove.
310 (dwarf2_compile_expr_to_ax): Adjust.
311
38f8aa06
TV
3122020-08-08 Tom de Vries <tdevries@suse.de>
313
314 PR build/26344
315 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
316 constructor.
317 * regcache.c (get_thread_arch_aspace_regcache): Same.
318
a52b3ae2
TT
3192020-08-07 Tom Tromey <tromey@adacore.com>
320
321 * ravenscar-thread.c
322 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
323 New method.
324 (ravenscar_thread_target::wait): Check
325 runtime_initialized.
326 (ravenscar_thread_target::prepare_to_store)
327 (ravenscar_thread_target::stopped_by_sw_breakpoint)
328 (ravenscar_thread_target::stopped_by_hw_breakpoint)
329 (ravenscar_thread_target::stopped_by_watchpoint)
330 (ravenscar_thread_target::stopped_data_address)
331 (ravenscar_thread_target::core_of_thread): Use
332 scoped_restore_current_thread and
333 set_base_thread_from_ravenscar_task.
334
0e29517d
TT
3352020-08-07 Tom Tromey <tromey@adacore.com>
336
337 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
338
592f9bd7
TT
3392020-08-07 Tom Tromey <tromey@adacore.com>
340
341 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
342 update_inferior_ptid before update_thread_list.
343 (temporarily_change_regcache_ptid): New class.
344 (ravenscar_thread_target::fetch_registers)
345 (ravenscar_thread_target::store_registers)
346 (ravenscar_thread_target::prepare_to_store): Use base thread when
347 forwarding operation.
348
39e2018a
TT
3492020-08-07 Tom Tromey <tromey@adacore.com>
350
351 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
352 "is_pid" case.
353
2080266b
TT
3542020-08-07 Tom Tromey <tromey@adacore.com>
355
356 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
357 New methods.
358 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
359 first.
360 (ravenscar_thread_target::add_thread): Rename from
361 ravenscar_add_thread.
362 (ravenscar_thread_target::update_thread_list): Use a lambda.
363 (ravenscar_thread_target::xfer_partial): New method.
364
78c02f21
TT
3652020-08-07 Tom Tromey <tromey@adacore.com>
366
367 * ada-lang.h (ada_task_list_iterator_ftype): Now a
368 gdb::function_view.
369 (iterate_over_live_ada_tasks): Change type of argument.
370 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
371 of argument.
372
d5d833af
TT
3732020-08-07 Tom Tromey <tromey@adacore.com>
374
375 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
376 Remove.
377 (ravenscar_thread_target::extra_thread_info): Remove.
378 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
379 defer to target beneath for non-Ravenscar threads.
380
a8ac85bb
TT
3812020-08-07 Tom Tromey <tromey@adacore.com>
382
383 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
384 get_base_thread_from_ravenscar_task>: Now methods.
385 <m_cpu_map>: New member.
386 (ravenscar_thread_target::get_thread_base_cpu): Rename from
387 ravenscar_get_thread_base_cpu. Check m_cpu_map.
388 (ravenscar_thread_target::task_is_currently_active): Update.
389 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
390 Now a method.
391 (ravenscar_thread_target::add_active_thread): Put initial thread
392 into the m_cpu_map.
393
550ab58d
TT
3942020-08-07 Tom Tromey <tromey@adacore.com>
395
396 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
397 event_ptid.
398
e9546579
TT
3992020-08-07 Tom Tromey <tromey@adacore.com>
400
401 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
402 runtime_initialized.
403
3d4470e5
TT
4042020-08-07 Tom Tromey <tromey@adacore.com>
405
406 * ravenscar-thread.c (ravenscar_thread_target): Don't call
407 add_active_thread.
408 (ravenscar_thread_target::add_active_thread): Now public.
409 (ravenscar_inferior_created): Call add_active_thread after pushing
410 the target.
411
888bdb2b
SM
4122020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
413
414 * regcache.c (ptid_regcache_map): New type.
415 (target_ptid_regcache_map): New type.
416 (regcaches): Change type to target_ptid_regcache_map.
417 (get_thread_arch_aspace_regcache): Update to regcaches' new
418 type.
419 (regcache_thread_ptid_changed): Likewise.
420 (registers_changed_ptid): Likewise.
421 (regcaches_size): Likewise.
422 (regcaches_test): Update.
423 (regcache_thread_ptid_changed): Update.
424 * regcache.h (regcache_up): New type.
425 * gdbsupport/ptid.h (hash_ptid): New struct.
426
b161a60d
SM
4272020-08-07 Simon Marchi <simon.marchi@efficios.com>
428
429 * observable.h (thread_ptid_changed): Add parameter
430 `process_stratum_target *`.
431 * infrun.c (infrun_thread_ptid_changed): Add parameter
432 `process_stratum_target *` and use it.
433 (selftests): New namespace.
434 (infrun_thread_ptid_changed): New function.
435 (_initialize_infrun): Register selftest.
436 * regcache.c (regcache_thread_ptid_changed): Add parameter
437 `process_stratum_target *` and use it.
438 (regcache_thread_ptid_changed): New function.
439 (_initialize_regcache): Register selftest.
440 * thread.c (thread_change_ptid): Pass target to
441 thread_ptid_changed observable.
442
d2854d8d
CT
4432020-08-06 Caroline Tice <cmtice@google.com>
444
fe4c3d43
SM
445 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
446 (struct dwp_sections): Update field comments. Add loclists and
447 rnglists fields.
448 (struct virtual_v2_dwo_sections): Rename struct to
449 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
450 size & offset fields for loclists and rnglists.
451 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
452 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
453 skipping dummy type units.
454 (create_dwp_hash_table): Update the large comment above the function to
455 discuss Version 5 DWP files as well, with references. Update all the
456 version checks in the function to check for version 5 as well. Add new
457 section at the end to create dwp hash table for version 5.
458 (create_dwp_v2_section): Rename function to
459 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
460 Add V5 to error message text.
461 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
462 into calls to create_dwp_v2_or_v5_section.
463 (create_dwo_unit_in_dwp_v5): New function.
464 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
465 check for version2; add else clause to handle version 5.
466 (open_and_init_dwo_file): Add code to check dwarf version & only call
467 create_debug_types_hash_table (with sections.types) if version is not 5;
468 else call create_debug_type_hash_table, with sections.info.
469 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
470 version 5.
471 (dwarf2_locate_v5_dwp_sections): New function.
472 (open_and_init_dwp_file): Add else-if clause for version 5 to call
473 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
d2854d8d 474
159ed7d9
SM
4752020-08-06 Simon Marchi <simon.marchi@efficios.com>
476
477 * regcache.h (class regcache): Remove friend
478 registers_changed_ptid.
479 <regcache_thread_ptid_changed>: Remove.
480 <regcaches>: Remove.
481 * regcache.c (regcache::regcaches): Rename to...
482 (regcaches): ... this. Make static.
483 (get_thread_arch_aspace_regcache): Update.
484 (regcache::regcache_thread_ptid_changed): Rename to...
485 (regcache_thread_ptid_changed): ... this. Update.
486 (class regcache_access): Remove.
487 (regcaches_test): Update.
488 (_initialize_regcache): Update.
489 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
490 <forward_list>.
491
174981ae
SM
4922020-08-06 Simon Marchi <simon.marchi@efficios.com>
493
494 * regcache.h (class regcache) <current_regcache>: Rename to...
495 <regcaches>: ... this. Move doc here.
496 * regcache.c (regcache::current_regcache) Rename to...
497 (regcache::regcaches): ... this. Move doc to header.
498 (get_thread_arch_aspace_regcache): Update.
499 (regcache::regcache_thread_ptid_changed): Update.
500 (registers_changed_ptid): Update.
501 (class regcache_access) <current_regcache_size>: Rename to...
502 <regcaches_size>: ... this.
503 (current_regcache_test): Rename to...
504 (regcaches_test): ... this.
505 (_initialize_regcache): Update.
506
ed908db6
VC
5072020-08-06 Victor Collod <vcollod@nvidia.com>
508
509 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
510
b5582ab7
KB
5112020-08-05 Kevin Buettner <kevinb@redhat.com>
512
513 * corelow.c (core_target::build_file_mappings): Don't output
514 null pathname in warning.
515
ea946b86
SM
5162020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
517
518 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
519 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
520 gdb.dwarf2/dw2-single-line-discriminators.exp,
521 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
522
57d02173
TT
5232020-08-05 Tom Tromey <tromey@adacore.com>
524
525 PR rust/26197:
526 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
527 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
528 Fix off-by-one and type size errors in ordinary case.
529
5555c86d
TV
5302020-08-05 Tom de Vries <tdevries@suse.de>
531
532 * gdbtypes.c (type_not_allocated, type_not_associated): Use
533 "prop->const_val () == 0" instead of "prop->const_val () != 0".
534
97916bfe
SM
5352020-08-04 Simon Marchi <simon.marchi@efficios.com>
536
537 * frame.h (frame_id_p): Return bool.
538 (frame_id_artificial_p): Return bool.
539 (frame_id_eq): Return bool.
540 (has_stack_frames): Return bool.
541 (get_selected_frame): Fix typo in comment.
542 (get_frame_pc_if_available): Return bool.
543 (get_frame_address_in_block_if_available): Return bool.
544 (get_frame_func_if_available): Return bool.
545 (read_frame_register_unsigned): Return bool.
546 (get_frame_register_bytes): Return bool.
547 (safe_frame_unwind_memory): Return bool.
548 (deprecated_frame_register_read): Return bool.
549 (frame_unwinder_is): Return bool.
550 * frame.c (struct frame_info) <prev_arch::p>: Change type to
551 bool.
552 <this_id::p>: Likewise.
553 <prev_p>: Likewise.
554 (frame_stash_add): Return bool.
555 (get_frame_id): Use bool.
556 (frame_id_build_special) Use bool.
557 (frame_id_build_unavailable_stack): Use bool.
558 (frame_id_build): Use bool.
559 (frame_id_p): Return bool, use true/false instead of 1/0.
560 (frame_id_artificial_p): Likewise.
561 (frame_id_eq): Likewise.
562 (frame_id_inner): Likewise.
563 (get_frame_func_if_available): Likewise.
564 (read_frame_register_unsigned): Likewise.
565 (deprecated_frame_register_read): Likewise.
566 (get_frame_register_bytes): Likewise.
567 (has_stack_frames): Likewise.
568 (inside_main_func): Likewise.
569 (inside_entry_func): Likewise.
570 (get_frame_pc_if_available): Likewise.
571 (get_frame_address_in_block_if_available): Likewise.
572 (frame_unwinder_is): Likewise.
573 (safe_frame_unwind_memory): Likewise.
574 (frame_unwind_arch): Likewise.
575
fedfee88
SM
5762020-08-04 Simon Marchi <simon.marchi@efficios.com>
577
578 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
579 type to cached_copy_status.
580 (fprintf_frame): Adjust.
581 (get_frame_func_if_available): Adjust.
582 (frame_cleanup_after_sniffer): Adjust.
583
6cfa9b59
MW
5842020-08-04 Mark Wielaard <mark@klomp.org>
585
586 * MAINTAINERS (Write After Approval): Update email address.
587
66d6346b
SM
5882020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
589
590 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
591 dynamic_prop::const_val.
592
8a6d5e35
SM
5932020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
594
595 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
596 dynamic_prop::kind.
597
51d6067d
SM
5982020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
599
600 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
601
b26e2ae7
JM
6022020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
603
604 * configure.tgt: Set gdb_sim for bpf-*-* targets.
605
39791af2
JM
6062020-08-04 Weimin Pan <weimin.pan@oracle.com>
607 Jose E. Marchesi <jose.marchesi@oracle.com>
608
609 * configure.tgt: Add entry for bpf-*-*.
610 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
611 (ALLDEPFILES): Add bpf-tdep.c.
612 * bpf-tdep.c: New file.
613 * MAINTAINERS: Add bpf target and maintainer.
614 * NEWS: Mention the support for the new target.
615
521894aa
TV
6162020-08-04 Tom de Vries <tdevries@suse.de>
617
618 PR symtab/23270
619 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
620 Error.
621
5d6356e9
JB
6222020-08-03 John Baldwin <jhb@FreeBSD.org>
623
624 * syscalls/freebsd.xml: Regenerate.
625
0cf82b81
JB
6262020-08-03 John Baldwin <jhb@FreeBSD.org>
627
628 * syscalls/update-freebsd.sh: Fix usage and year range.
629
8f34b746
TV
6302020-08-03 Tom de Vries <tdevries@suse.de>
631
632 PR symtab/26333
633 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
634 DW_LNE_lo_user/DW_LNE_hi_user range.
635
5e500d33
SM
6362020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
637
638 PR ada/26318
639 * ada-lang.c (ada_modulus): Return 0 if property is not of const
640 kind.
641
78319c15
TBA
6422020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
643
644 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
645
4c55e970
TBA
6462020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
647
648 * breakpoint.c (set_breakpoint_condition): Update the condition
649 expressions after checking that the input condition string parses
650 successfully and does not contain junk at the end.
651
1e620590
TBA
6522020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
653
654 * breakpoint.c (set_breakpoint_condition): Update the
655 condition string after parsing the new condition successfully.
656
c8693053
RO
6572020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
658
659 * proc-api.c (_STRUCTURED_PROC): Don't define.
660 * proc-events.c: Likewise.
661 * proc-flags.c: Likewise.
662 * proc-why.c: Likewise.
663 * procfs.c: Likewise.
664
665 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
666 * configure, config.in: Regenerate.
667
5a99adb8
TV
6682020-07-30 Tom de Vries <tdevries@suse.de>
669
670 PR build/26320
671 * ui-style.h (struct ui_file_style::color): Wrap m_value and
672 m_red/m_green/m_blue in a union.
673
8ba83e91
TV
6742020-07-29 Tom de Vries <tdevries@suse.de>
675
676 PR tdep/26280
677 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
678
f75a0693
AB
6792020-07-28 Tom Tromey <tromey@adacore.com>
680
681 PR symtab/26270:
682 * symtab.h (find_pc_partial_function_sym): Declare.
683 * cli/cli-cmds.c (disassemble_command): Use
684 find_pc_partial_function_sym. Check asm_demangle.
685 * blockframe.c (cache_pc_function_sym): New global.
686 (cache_pc_function_name): Remove.
687 (clear_pc_function_cache): Update.
688 (find_pc_partial_function_sym): New function, from
689 find_pc_partial_function.
690 (find_pc_partial_function): Rewrite using
691 find_pc_partial_function_sym.
692
16f3242c
TT
6932020-07-28 Tom Tromey <tromey@adacore.com>
694
695 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
696 help. Add usage.
697
4888741a
TT
6982020-07-28 Tom Tromey <tromey@adacore.com>
699
700 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
701 <DW_OP_GNU_variable_value>: Cast to address type.
702
4d46f402
KR
7032020-07-28 Kamil Rytarowski <n54@gmx.com>
704
705 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
706 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
707 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
708 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
709 (nbsd_get_siginfo_type): New.
710 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
711 (_initialize_nbsd_tdep): New.
712
d70f978b
L
7132020-07-28 H.J. Lu <hongjiu.lu@intel.com>
714
715 PR binutils/26301
716 * configure: Regenerated.
717
377170fa
L
7182020-07-28 H.J. Lu <hongjiu.lu@intel.com>
719
720 PR binutils/26301
721 * configure: Regenerated.
722
43d5901d
AB
7232020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
724
725 * python/py-frame.c: Remove 'user-regs.h' include.
726 (frapy_read_register): Rewrite to make use of
727 gdbpy_parse_register_id.
728 * python/py-registers.c (gdbpy_parse_register_id): New function,
729 moved here from python/py-unwind.c. Updated the return type, and
730 also accepts register descriptor objects.
731 * python/py-unwind.c: Remove 'user-regs.h' include.
732 (pyuw_parse_register_id): Moved to python/py-registers.c.
733 (unwind_infopy_add_saved_register): Update to use
734 gdbpy_parse_register_id.
735 (pending_framepy_read_register): Likewise.
736 * python/python-internal.h (gdbpy_parse_register_id): Declare.
737
14fa8fb3
AB
7382020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
739
740 * python/py-registers.c: Add 'user-regs.h' include.
741 (register_descriptor_iter_find): New function.
742 (register_descriptor_iterator_object_methods): New static global
743 methods array.
744 (register_descriptor_iterator_object_type): Add pointer to methods
745 array.
746
ddce1758
JB
7472020-07-27 John Baldwin <jhb@FreeBSD.org>
748
749 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
750 for all architectures on FreeBSD 11.3 and later.
751
a4089f52
TT
7522020-07-27 Tom Tromey <tromey@adacore.com>
753
754 * gcore.h (load_corefile): Don't declare.
755
95420d30
TV
7562020-07-27 Tom de Vries <tdevries@suse.de>
757
758 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
759 * config.in: Regenerate.
760 * configure: Regenerate.
761
05a6b8c2
EZ
7622020-07-26 Eli Zaretskii <eliz@gnu.org>
763
764 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
765 ws2tcpip.h. When checking whether socklen_t type is defined, use
766 ws2tcpip.h if it is available and sys/socket.h isn't.
767 * configure: Regenerate.
768 * config.in: Regenerate.
769
e79eb02f
AB
7702020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
771
772 PR fortran/23051
773 PR fortran/26139
774 * valops.c (value_ind): Pass address to
775 readjust_indirect_value_type.
776 * value.c (readjust_indirect_value_type): Make parameter
777 non-const, and add extra address parameter. Resolve original type
778 before using it.
779 * value.h (readjust_indirect_value_type): Update function
780 signature and comment.
781
876518dd
TV
7822020-07-25 Tom de Vries <tdevries@suse.de>
783
784 PR symtab/26243
785 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
786 entries.
787
f6720b1c
AM
7882020-07-24 Aaron Merey <amerey@redhat.com>
789
790 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
791 * configure: Rebuild.
792
513487e1
KB
7932020-07-23 Kevin Buettner <kevinb@redhat.com>
794
795 PR corefiles/26294
796 * corelow.c (_initialize_corelow): Add period to help text
797 for "maintenance print core-file-backed-mappings".
798
e7bc9db8
PA
7992020-07-23 Pedro Alves <pedro@palves.net>
800
801 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
802 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
803 meanwhile.
804 * frame.c (frame_cache_generation, get_frame_cache_generation):
805 New.
806 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
807 (get_prev_frame_if_no_cycle): On exception, don't touch
808 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
809 * frame.h (get_frame_cache_generation): Declare.
810
90fcc466
TV
8112020-07-23 Tom de Vries <tdevries@suse.de>
812
813 PR tui/26282
814 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
815 New default constructor.
816
78344df7
AB
8172020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
818
819 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
820 exclude non-statement entries.
821
b089853a
KB
8222020-07-22 Kevin Buettner <kevinb@redhat.com>
823
824 * NEWS (New commands): Mention new command
825 "maintenance print core-file-backed-mappings".
826
09c2f5d4
KB
8272020-07-22 Kevin Buettner <kevinb@redhat.com>
828
829 * corelow.c (gdbcmd.h): Include.
830 (core_target::info_proc_mappings): New method.
831 (get_current_core_target): New function.
832 (maintenance_print_core_file_backed_mappings): New function.
833 (_initialize_corelow): Add core-file-backed-mappings to
834 "maint print" commands.
835
9c5ec5c2 8362020-07-22 Kevin Buettner <kevinb@redhat.com>
fe4c3d43 837
9c5ec5c2
KB
838 * linux-tdep.c (dump_note_entry_p): New function.
839 (linux_dump_mapping_p_ftype): New typedef.
840 (linux_find_memory_regions_full): Add new parameter,
841 should_dump_mapping_p.
842 (linux_find_memory_regions): Adjust call to
843 linux_find_memory_regions_full.
844 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
845 call to linux_find_memory_regions_full.
846
db082f59
KB
8472020-07-22 Kevin Buettner <kevinb@redhat.com>
848
849 * corelow.c (solist.h, unordered_map): Include.
850 (class core_target): Add field m_core_file_mappings and
851 method build_file_mappings.
852 (core_target::core_target): Call build_file_mappings.
853 (core_target::~core_target): Free memory associated with
854 m_core_file_mappings.
855 (core_target::build_file_mappings): New method.
856 (core_target::xfer_partial): Use m_core_file_mappings
857 for memory transfers.
858 * linux-tdep.c (linux_read_core_file_mappings): New
859 function.
860 (linux_core_info_proc_mappings): Rewrite to use
861 linux_read_core_file_mappings.
862 (linux_init_abi): Register linux_read_core_file_mappings.
863
7e183d27
KB
8642020-07-22 Kevin Buettner <kevinb@redhat.com>
865
866 * arch-utils.c (default_read_core_file_mappings): New function.
867 * arch-utils.c (default_read_core_file_mappings): Declare.
868 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
869 * gdbarch.h, gdbarch.c: Regenerate.
870
2735d421
KB
8712020-07-22 Kevin Buettner <kevinb@redhat.com>
872
873 PR corefiles/25631
874 * corelow.c (core_target:xfer_partial): Revise
875 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
876 case after first checking the stratum beneath the core
877 target.
878 (has_all_memory): Return true.
879 * target.c (raw_memory_xfer_partial): Revise comment
880 regarding use of has_all_memory.
881
e56cb451
KB
8822020-07-22 Kevin Buettner <kevinb@redhat.com>
883
884 * exec.h (section_table_xfer_memory): Revise declaration,
885 replacing section name parameter with an optional callback
886 predicate.
887 * exec.c (section_table_xfer_memory): Likewise.
888 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
889 of section_table_xfer_memory.
890
32fa152e
TT
8912020-07-22 Tom Tromey <tromey@adacore.com>
892
893 * mi/mi-cmd-stack.c (list_args_or_locals): Use
894 lookup_symbol_search_name.
895
a67a1c41
AB
8962020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
897
898 * python/py-registers.c (gdbpy_register_object_data_init): Remove
899 redundant local variable.
900 (gdbpy_get_register_descriptor): Extract descriptor vector as a
901 reference, not pointer, update code accordingly.
902
a7b4ff4f
SM
9032020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
904 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
905
906 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
907 * jit.c (jit_breakpoint_re_set_internal): Use the
908 `skip_jit_symbol_lookup` field.
909
2340e834
SM
9102020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
911 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
912
913 * jit.c (jit_read_descriptor): Define the descriptor address once,
914 use twice.
915 (jit_breakpoint_deleted): Move the declaration of the loop variable
916 `iter` into the loop header.
917 (jit_breakpoint_re_set_internal): Move the declaration of the local
918 variable `objf_data` to the first point of definition.
919 (jit_event_handler): Move the declaration of local variables
920 `code_entry`, `entry_addr`, and `objf` to their first point of use.
921 Rename `objf` to `jited`.
922
c1072906
SM
9232020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
924
925 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
926 Remove.
927 * jit.c (get_jiter_objfile_data): Update.
928
c8474dc3
TBA
9292020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
930 Simon Marchi <simon.marchi@polymtl.ca>
931
932 * jit.c (struct jit_program_space_data): Remove.
933 (jit_program_space_key): Remove.
934 (jiter_objfile_data::~jiter_objfile_data): Remove program space
935 stuff.
936 (get_jit_program_space_data): Remove.
937 (jit_breakpoint_deleted): Iterate on all of the program space's
938 objfiles.
939 (jit_inferior_init): Likewise.
940 (jit_breakpoint_re_set_internal): Likewise. Also change return
941 type to void.
942 (jit_breakpoint_re_set): Pass current_program_space to
943 jit_breakpoint_re_set_internal.
944
77208eb7
SM
9452020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
946
947 * jit.h (struct jiter_objfile_data) <cached_code_address,
948 jit_breakpoint>: Move to here from ...
949 * jit.c (jit_program_space_data): ... here.
950 (jiter_objfile_data::~jiter_objfile_data): Update.
951 (jit_breakpoint_deleted): Update.
952 (jit_breakpoint_re_set_internal): Update.
953
8c1c720f
SM
9542020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
955
956 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
957 checks.
958 (jit_read_descriptor): Remove NULL check.
959 (jit_event_handler): Add an assertion.
960
0e74a041
SM
9612020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
962
963 * jit.h (struct jit_objfile_data): Split into...
964 (struct jiter_objfile_data): ... this ...
965 (struct jited_objfile_data): ... and this.
966 * objfiles.h (struct objfile) <jit_data>: Remove.
967 <jiter_data, jited_data>: New fields.
968 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
969 (jiter_objfile_data::~jiter_objfile_data): ... this.
970 (get_jit_objfile_data): Rename to ...
971 (get_jiter_objfile_data): ... this.
972 (add_objfile_entry): Update.
973 (jit_read_descriptor): Use get_jiter_objfile_data.
974 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
975 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
976 (jit_inferior_exit_hook): Use objfile's jited_data field.
977
238b5c9f
SM
9782020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
979
980 * jit.h: Forward-declare `struct minimal_symbol`.
981 (struct jit_objfile_data): Migrate to here from jit.c; also add a
982 constructor, destructor, and an objfile* field.
983 * jit.c (jit_objfile_data): Remove.
984 (struct jit_objfile_data): Migrate from here to jit.h.
985 (jit_objfile_data::~jit_objfile_data): New destructor
986 implementation with code moved from free_objfile_data.
987 (free_objfile_data): Delete.
988 (get_jit_objfile_data): Update to use the jit_data field of objfile.
989 (jit_find_objf_with_entry_addr): Ditto.
990 (jit_inferior_exit_hook): Ditto.
991 (_initialize_jit): Remove the call to
992 register_objfile_data_with_cleanup.
993 * objfiles.h (struct objfile) <jit_data>: New field.
994
fe053b9e
TBA
9952020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
996
997 * jit.h: Forward-declare `struct objfile`.
998 (jit_event_handler): Add a second parameter, the JITer objfile.
999 * jit.c (jit_read_descriptor): Change the signature to take the
1000 JITer objfile as an argument instead of the jit_program_space_data.
1001 (jit_inferior_init): Update the call to jit_read_descriptor.
1002 (jit_event_handler): Use the new JITer objfile argument when calling
1003 jit_read_descriptor.
1004 * breakpoint.c (handle_jit_event): Update the call to
1005 jit_event_handler to pass the JITer objfile.
1006
4cec0c66
JB
10072020-07-21 John Baldwin <jhb@FreeBSD.org>
1008
1009 * gdbarch.c: Regenerate.
1010 * gdbarch.h: Regenerate.
1011 * gdbarch.sh (handle_segmentation_fault): Remove method.
1012 * infrun.c (handle_segmentation_fault): Remove.
1013 (print_signal_received_reason): Remove call to
1014 handle_segmentation_fault.
1015
0e42f66a
JB
10162020-07-21 John Baldwin <jhb@FreeBSD.org>
1017
1018 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
1019 Rename to sparc64_linux_report_signal_info and add siggnal
1020 argument.
1021 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
1022 instead of sparc64_linux_handle_segmentation_fault.
1023
77bdfeb2
JB
10242020-07-21 John Baldwin <jhb@FreeBSD.org>
1025
1026 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
1027 i386_linux_report_signal_info instead of
1028 i386_linux_handle_segmentation_fault.
1029 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
1030 to i386_linux_report_signal_info and add siggnal argument.
1031 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
1032 of i386_linux_handle_segmentation_fault.
1033 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
1034 to i386_linux_report_signal_info and add siggnal argument.
1035
ad97bfc5
JB
10362020-07-21 John Baldwin <jhb@FreeBSD.org>
1037
1038 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
1039 hook if present.
1040
272bb05c
JB
10412020-07-21 John Baldwin <jhb@FreeBSD.org>
1042
1043 * gdbarch.c: Regenerate.
1044 * gdbarch.h: Regenerate.
1045 * gdbarch.sh (report_signal_info): New method.
1046 * infrun.c (print_signal_received_reason): Invoke gdbarch
1047 report_signal_info hook if present.
1048
baf8791e
AB
10492020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
1050
1051 * python/py-registers.c : Add 'unordered_map' include.
1052 (gdbpy_new_reggroup): Renamed to...
1053 (gdbpy_get_reggroup): ...this. Update to only create register
1054 group descriptors when needed.
1055 (gdbpy_reggroup_iter_next): Update.
1056
f7306dac
AB
10572020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
1058
1059 * python/py-registers.c (gdbpy_register_object_data): New static
1060 global.
1061 (gdbpy_register_object_data_init): New function.
1062 (gdbpy_new_register_descriptor): Renamed to...
1063 (gdbpy_get_register_descriptor): ...this, and update to reuse
1064 existing register descriptors where possible.
1065 (gdbpy_register_descriptor_iter_next): Update.
1066 (gdbpy_initialize_registers): Register new gdbarch data.
1067
05c309a8
SM
10682020-07-21 Simon Marchi <simon.marchi@efficios.com>
1069
1070 * linux-nat.c (stopped_pids): Make static.
1071
d1fd641e
SM
10722020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
1073
1074 PR ada/26235
1075 * gdbtypes.c (ada_discrete_type_low_bound,
1076 ada_discrete_type_high_bound): Handle undefined bounds.
1077
1de14d77
KR
10782020-07-21 Kamil Rytarowski <n54@gmx.com>
1079
1080 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
1081 declaration.
1082 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
1083 function.
1084
ed810cc7
JB
10852020-07-20 John Baldwin <jhb@FreeBSD.org>
1086
1087 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
1088 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
1089 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
1090 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
1091 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
1092 method.
1093
ae5369e7
LC
10942020-07-20 Ludovic Courtès <ludo@gnu.org>
1095
1096 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
1097 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
1098 which are deprecated in Guile 3.0.
1099 * configure.ac (try_guile_versions): Add "guile-3.0".
1100 * configure (try_guile_versions): Regenerate.
1101 * NEWS: Update entry.
1102
68cf161c
LC
11032020-07-20 Ludovic Courtès <ludo@gnu.org>
1104 Doug Evans <dje@google.com>
1105
1106 PR gdb/21104
1107 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
1108 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
1109 USING_GUILE_BEFORE_2_2.
1110 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
1111 Change type to 'scm_t_port_type *'.
1112 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
1113 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
1114 parameter and honor it. Update callers.
1115 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
1116 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
1117 functions.
1118 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
1119 USING_GUILE_BEFORE_2_2.
1120 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
1121 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
1122 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
1123 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
1124 and 'SCM_PORT_TYPE'.
1125 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
1126 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
1127 (gdbscm_memory_port_read, gdbscm_memory_port_write)
1128 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
1129 [!USING_GUILE_BEFORE_2_2]: New functions.
1130 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
1131 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
1132 'gdbscm_memory_port_read'.
1133 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
1134 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
1135 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
1136 function.
1137 (ioscm_init_memory_port): Remove.
1138 (ioscm_init_memory_port_stream): New function
1139 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
1140 function.
1141 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
1142 Return scm_from_uint (0).
1143 (gdbscm_set_memory_port_read_buffer_size_x)
1144 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
1145 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
1146 Return scm_from_uint (0).
1147 (gdbscm_set_memory_port_write_buffer_size_x)
1148 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
1149 * configure.ac (try_guile_versions): Add "guile-2.2".
1150 * configure: Regenerate.
1151 * NEWS: Add entry.
1152
aee91db3
TT
11532020-07-18 Tom Tromey <tom@tromey.com>
1154
1155 * linux-nat.c (linux_multi_process): Remove.
1156 (linux_nat_target::supports_multi_process): Return true.
1157
0e267416
AB
11582020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
1159
1160 * arch/riscv.c (riscv_tdesc_cache): Change map type.
1161 (riscv_lookup_target_description): Return pointer out of
1162 unique_ptr.
1163 * target-descriptions.c (allocate_target_description): Add
1164 comment.
1165 (target_desc_deleter::operator()): Likewise.
1166 * target-descriptions.h (struct target_desc_deleter): Moved to
1167 gdbsupport/tdesc.h.
1168 (target_desc_up): Likewise.
1169
f80c8ec4
TT
11702020-07-17 Tom Tromey <tromey@adacore.com>
1171
1172 * linux-nat.c (linux_nat_target::supports_non_stop)
1173 (linux_nat_target::always_non_stop_p): Use "true".
1174 (linux_nat_target::supports_disable_randomization): Use "true" and
1175 "false".
1176
d0ce17d8
CT
11772020-07-16 Caroline Tice <cmtice@google.com>
1178
1179 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
1180 (RNGLIST_HEADER_SIZE64): New constant definition.
1181 (struct dwop_section_names): Add rnglists_dwo.
1182 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
1183 (struct loclist_header): Rename to 'loclists_rnglists_header'.
1184 (struct dwo_sections): Add rnglists field.
1185 (read_attribut_reprocess): Add tag parameter.
1186 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
1187 (cu_debug_rnglists_section): New function (decl & definition).
1188 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
1189 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
1190 die whose range is being checked; get rnglist section from
1191 cu_debug_rnglists_section, to get from either objfile or dwo file as
1192 appropriate. Add cases for DW_RLE_base_addressx,
1193 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
1194 the base address to DW_RLE_offset_pairs (not to all ranges), moving
1195 test inside if-condition and updating complaint message.
1196 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
1197 dwarf2_rnglists_process.
1198 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
1199 dwarf2_ranges_process.
1200 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
1201 need_ranges_base and update comment appropriately. Also pass die tag
1202 to dwarf2_ranges_read.
1203 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
1204 need_ranges_base and update comment appropriately. Also pass die tag
1205 to dwarf2_ranges_process.
1206 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
1207 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
1208 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
1209 need_ranges_base and update comment appropriately. Also pass die tag
1210 to read_attribute_reprocess and dwarf2_ranges_read.
1211 (read_loclist_header): Rename function to read_loclists_rnglists_header,
1212 and update function comment appropriately.
1213 (read_loclist_index): Call read_loclists_rnglists_header instead of
1214 read_loclist_header.
1215 (read_rnglist_index): New function.
1216 (read_attribute_reprocess): Add tag parameter. Add code for
1217 DW_FORM_rnglistx, passing tag to read_rnglist_index.
1218 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
1219
3dcc261c
AB
12202020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
1221
1222 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
1223 being resolved.
1224
ccb9eba6
AB
12252020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
1226
1227 * arch-utils.c (show_architecture): Update formatting of messages.
1228
cf88be68
SM
12292020-07-12 Simon Marchi <simon.marchi@efficios.com>
1230
1231 * gdbtypes.h (struct type) <bounds>: Handle array and string
1232 types.
1233 * ada-lang.c (assign_aggregate): Use type::bounds on
1234 array/string type.
1235 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
1236 * c-varobj.c (c_number_of_children): Likewise.
1237 (c_describe_child): Likewise.
1238 * eval.c (evaluate_subexp_for_sizeof): Likewise.
1239 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
1240 (f_type_print_base): Likewise.
1241 * f-valprint.c (f77_array_offset_tbl): Likewise.
1242 (f77_get_upperbound): Likewise.
1243 (f77_print_array_1): Likewise.
1244 * guile/scm-type.c (gdbscm_type_range): Likewise.
1245 * m2-typeprint.c (m2_array): Likewise.
1246 (m2_is_long_set_of_type): Likewise.
1247 * m2-valprint.c (get_long_set_bounds): Likewise.
1248 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
1249 * python/py-type.c (typy_range): Likewise.
1250 * rust-lang.c (rust_internal_print_type): Likewise.
1251 * type-stack.c (type_stack::follow_types): Likewise.
1252 * valarith.c (value_subscripted_rvalue): Likewise.
1253 * valops.c (value_cast): Likewise.
1254
509971ae
SM
12552020-07-12 Simon Marchi <simon.marchi@efficios.com>
1256
1257 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
1258 callers to use the equivalent accessor methods.
1259
107406b7
SM
12602020-07-12 Simon Marchi <simon.marchi@efficios.com>
1261
1262 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
1263 (struct type) <bit_stride>: New method.
1264 (TYPE_BIT_STRIDE): Remove.
1265 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
1266
bb789949
SM
12672020-07-12 Simon Marchi <simon.marchi@efficios.com>
1268
1269 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
1270 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
1271 callers to use the equivalent accessor methods instead.
1272
39498edb
SM
12732020-07-12 Simon Marchi <simon.marchi@efficios.com>
1274
1275 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
1276 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
1277 callers to use the equivalent accessor methods instead.
1278
3b606f38
SM
12792020-07-12 Simon Marchi <simon.marchi@efficios.com>
1280
1281 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
1282 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
1283 to use dynamic_prop::kind.
1284
064d9cb9
SM
12852020-07-12 Simon Marchi <simon.marchi@efficios.com>
1286
1287 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
1288 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
1289 to get the bound property's kind and check against
1290 PROP_UNDEFINED.
1291
5537ddd0
SM
12922020-07-12 Simon Marchi <simon.marchi@efficios.com>
1293
1294 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
1295 all callers to use type::range_bounds followed by
1296 dynamic_prop::{low,high}.
1297
8c2e4e06
SM
12982020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
1299
1300 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
1301 const_val, set_const_val, baton, set_locexpr, set_loclist,
1302 set_addr_offset, variant_parts, set_variant_parts,
1303 original_type, set_original_type>: New methods.
1304 <kind>: Rename to...
1305 <m_kind>: ... this. Update all users to use the new methods
1306 instead.
1307 <data>: Rename to...
1308 <m_data>: ... this. Update all users to use the new methods
1309 instead.
1310
7c6f2712
SM
13112020-07-12 Simon Marchi <simon.marchi@efficios.com>
1312
1313 * gdbtypes.c (get_discrete_bounds): Return failure if
1314 the range type's bounds are not both defined and constant
1315 values.
1316 (get_array_bounds): Update comment. Remove undefined bound check.
1317
599088e3
SM
13182020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
1319
1320 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
1321 the type::bounds method directly.
1322
c4dfcb36
SM
13232020-07-12 Simon Marchi <simon.marchi@efficios.com>
1324
1325 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
1326 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
1327 are used to set the range type's bounds to use set_bounds.
1328
0a278aa7
PW
13292020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1330
1331 * exec.c (_initialize_exec): Update exec-file-mismatch help.
1332
cce20f10
PA
13332020-07-10 Pedro Alves <pedro@palves.net>
1334
1335 * gdbthread.h (inferior_ref): Define.
1336 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
1337 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
1338 * thread.c
1339 (scoped_restore_current_thread::restore):
1340 Adjust to gdb::ref_ptr.
1341 (scoped_restore_current_thread::~scoped_restore_current_thread):
1342 Remove manual decref handling.
1343 (scoped_restore_current_thread::scoped_restore_current_thread):
1344 Adjust to use
1345 inferior_ref::new_reference/thread_info_ref::new_reference.
1346 Incref the thread before calling get_frame_id instead of after.
1347 Let TARGET_CLOSE_ERROR propagate.
1348
6d7aa592
PA
13492020-07-10 Pedro Alves <pedro@palves.net>
1350
1351 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
1352 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
1353 NOT_AVAILABLE_ERROR.
1354 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
1355 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
1356
b3e3a4c1
SM
13572020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
1358 Pedro Alves <pedro@palves.net>
1359
1360 PR gdb/26199
1361 * infrun.c (threads_are_resumed_pending_p): Delete.
1362 (do_target_wait): Remove threads_are_executing and
1363 threads_are_resumed_pending_p checks from the inferior_matches
1364 lambda. Update comments.
1365
d6cc5d98
PA
13662020-07-10 Pedro Alves <pedro@palves.net>
1367
1368 PR gdb/26199
1369 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
1370 executing threads.
1371
7d3badc6
PA
13722020-07-10 Pedro Alves <pedro@palves.net>
1373
1374 PR gdb/26199
1375 * infrun.c (handle_no_resumed): Handle multiple targets.
1376
42bd97a6
PA
13772020-07-10 Pedro Alves <pedro@palves.net>
1378
1379 PR gdb/26199
1380 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
1381 target_is_async_p.
1382
43667cc6
PA
13832020-07-10 Pedro Alves <pedro@palves.net>
1384
1385 PR gdb/26199
1386 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
1387 threads, not all threads.
1388
96118d11
PA
13892020-07-10 Pedro Alves <pedro@palves.net>
1390
1391 PR gdb/26199
1392 * remote.c (remote_target::open_1): Pass remote target pointer as
1393 data to create_async_event_handler.
1394 (remote_async_inferior_event_handler): Mark async event handler
1395 before returning if the remote target still has either pending
1396 events or unacknowledged notifications.
1397
54904d81
JB
13982020-07-10 John Baldwin <jhb@FreeBSD.org>
1399
1400 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
1401 declaration.
1402 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
1403 function.
1404
f37e5866
JB
14052020-07-09 John Baldwin <jhb@FreeBSD.org>
1406
1407 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
1408 inferior_ptid.
1409
fc238d4a
JB
14102020-07-09 John Baldwin <jhb@FreeBSD.org>
1411
1412 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
1413 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
1414 AT_FREEBSD_PS_STRINGS.
1415
6e2469ff
HD
14162020-07-08 Hannes Domani <ssbssa@yahoo.de>
1417
1418 * auto-load.c (auto_load_objfile_script_1): Convert drive part
1419 of debugfile path on Windows.
1420
d1076c41
JB
14212020-07-08 John Baldwin <jhb@FreeBSD.org>
1422
1423 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
1424 argument to 'data'.
1425
15f3b077
TT
14262020-07-08 Tom Tromey <tromey@adacore.com>
1427
1428 * ada-lang.c (ada_exception_message_1): Use read_memory.
1429
9fc501fd
AB
14302020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1431
1432 PR python/22748
1433 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
1434 special handling for inline frames.
1435 * findvar.c (value_of_register_lazy): Skip inline frames when
1436 creating lazy register values.
1437 * frame.c (frame_id_computed_p): Delete definition.
1438 * frame.h (frame_id_computed_p): Delete declaration.
1439
64cb3757
AB
14402020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1441
1442 * NEWS: Mention additions to Python API.
1443 * python/py-arch.c (archpy_register_groups): New function.
1444 (arch_object_methods): Add 'register_groups' method.
1445 * python/py-registers.c (reggroup_iterator_object): New struct.
1446 (reggroup_object): New struct.
1447 (gdbpy_new_reggroup): New function.
1448 (gdbpy_reggroup_to_string): New function.
1449 (gdbpy_reggroup_name): New function.
1450 (gdbpy_reggroup_iter): New function.
1451 (gdbpy_reggroup_iter_next): New function.
1452 (gdbpy_new_reggroup_iterator): New function
1453 (gdbpy_initialize_registers): Register new types.
1454 (reggroup_iterator_object_type): Define new Python type.
1455 (gdbpy_reggroup_getset): New static global.
1456 (reggroup_object_type): Define new Python type.
1457 * python/python-internal.h
1458
0f767f94
AB
14592020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1460
1461 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
1462 * python/py-arch.c (archpy_registers): New function.
1463 (arch_object_methods): Add 'registers' method.
1464 * python/py-registers.c: New file.
1465 * python/python-internal.h
1466 (gdbpy_new_register_descriptor_iterator): Declare.
1467 (gdbpy_initialize_registers): Declare.
1468 * python/python.c (do_start_initialization): Call
1469 gdbpy_initialize_registers.
1470 * NEWS: Mention additions to the Python API.
1471
87dbc774
AB
14722020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1473
1474 * NEWS: Mention new Python API method.
1475 * python/py-unwind.c (pending_framepy_architecture): New function.
1476 (pending_frame_object_methods): Add architecture method.
1477
3bc98c0c
AB
14782020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1479
1480 * gdbarch.c: Regenerate.
1481 * gdbarch.h: Regenerate.
1482 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
1483 (gdbarch_data): Use internal_error for the case where
1484 deprecated_set_gdbarch_data was originally needed.
1485 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
1486 and use passed in obstack.
1487 (libunwind_frame_set_descr): Should no longer get back NULL from
1488 gdbarch_data.
1489 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
1490 type.
1491 * user-regs.c (user_regs_init): Update parameters, and use passed
1492 in obstack.
1493 (user_reg_add): Should no longer get back NULL from gdbarch_data.
1494 (_initialize_user_regs): Register as a pre-init gdbarch data type.
1495
d8cc8af6
TV
14962020-07-06 Tom de Vries <tdevries@suse.de>
1497
1498 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
1499 End-Of-Sequence in lte_is_less_than.
1500 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
1501 "gdb: Don't reorder line table entries too much when sorting".
1502
947f7597
TV
15032020-07-06 Tom de Vries <tdevries@suse.de>
1504
1505 PR tui/26205
1506 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
1507
1e7c1b22
TV
15082020-07-05 Tom de Vries <tdevries@suse.de>
1509
1510 PR build/26187
1511 * inferior.h (struct infcall_suspend_state_deleter): If available, use
1512 std::uncaught_exceptions instead of deprecated
1513 std::uncaught_exception.
1514
a36158ec
SM
15152020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
1516
1517 * macroexp.h (macro_stringify): Return
1518 gdb::unique_xmalloc_ptr<char>.
1519 * macroexp.c (macro_stringify): Likewise.
1520 * macrotab.c (fixup_definition): Update.
1521
14d960c8
SM
15222020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
1523
1524 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
1525 (lex_one_token): Update.
1526 * macroexp.c (struct macro_buffer) <release>: Return
1527 gdb::unique_xmalloc_ptr<char>.
1528 (macro_stringify): Update.
1529 (macro_expand): Update.
1530 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
1531 * macroexp.h (macro_expand_next): Likewise.
1532
211d5b1c
SM
15332020-07-02 Simon Marchi <simon.marchi@efficios.com>
1534
1535 * macroexp.h (macro_lookup_ftype): Remove.
1536 (macro_expand, macro_expand_once, macro_expand_next): Remove
1537 lookup function parameters, add scope parameter.
1538 * macroexp.c (scan, substitute_args, expand, maybe_expand,
1539 macro_expand, macro_expand_once, macro_expand_next): Likewise.
1540 * macroscope.h (standard_macro_lookup): Change parameter type
1541 to macro_scope.
1542 * macroscope.c (standard_macro_lookup): Likewise.
1543 * c-exp.y (lex_one_token): Update.
1544 * macrocmd.c (macro_expand_command): Likewise.
1545 (macro_expand_once_command): Likewise.
1546
b1a35af2
SM
15472020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
1548
1549 * inf-loop.c (inferior_event_handler): Remove client_data param.
1550 * inf-loop.h (inferior_event_handler): Likewise.
1551 * infcmd.c (step_1): Adjust.
1552 * infrun.c (proceed): Adjust.
1553 (fetch_inferior_event): Remove client_data param.
1554 (infrun_async_inferior_event_handler): Adjust.
1555 * infrun.h (fetch_inferior_event): Remove `void *` param.
1556 * linux-nat.c (handle_target_event): Adjust.
1557 * record-btrace.c (record_btrace_handle_async_inferior_event):
1558 Adjust.
1559 * record-full.c (record_full_async_inferior_event_handler):
1560 Adjust.
1561 * remote.c (remote_async_inferior_event_handler): Adjust.
1562
1cdf9e33
TT
15632020-07-01 Tom Tromey <tom@tromey.com>
1564
1565 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
1566 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
1567
32c1e210
TT
15682020-07-01 Tom Tromey <tom@tromey.com>
1569
1570 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
1571 tui_gen_win_info.
1572 (tui_win_info::make_window): Merge with
1573 tui_gen_win_info::make_window.
1574 (tui_win_info::make_visible): Move from tui_gen_win_info.
1575 * tui/tui-win.c (tui_win_info::max_width): Move from
1576 tui_gen_win_info.
1577 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
1578 type.
1579 <window_factory>: Likewise.
1580 * tui/tui-layout.c (tui_win_info::resize): Move from
1581 tui_gen_win_info.
1582 (make_standard_window): Change return type.
1583 (get_locator_window, tui_get_window_by_name): Likewise.
1584 (tui_layout_window::apply): Remove a cast.
1585 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
1586 (struct tui_win_info): Merge with tui_gen_win_info.
1587 (struct tui_gen_win_info): Remove.
1588
a30cb6da
TT
15892020-07-01 Tom Tromey <tom@tromey.com>
1590
1591 * tui/tui-stack.h (struct tui_locator_window): Derive from
1592 tui_win_info.
1593 <do_scroll_horizontal, do_scroll_vertical>: New methods.
1594 <can_box>: New method.
1595
1eb2161f
TT
15962020-07-01 Tom Tromey <tom@tromey.com>
1597
1598 * tui/tui-stack.h (struct tui_locator_window): Remove body.
1599
7134f2eb
TT
16002020-07-01 Tom Tromey <tom@tromey.com>
1601
1602 * tui/tui-regs.c (tui_data_window::display_registers_from)
1603 (tui_data_window::display_registers_from)
1604 (tui_data_window::first_data_item_displayed)
1605 (tui_data_window::delete_data_content_windows): Update.
1606 (tui_data_window::refresh_window, tui_data_window::no_refresh):
1607 Remove.
1608 (tui_data_window::check_register_values): Update.
1609 (tui_data_item_window::rerender): Add parameters. Update.
1610 (tui_data_item_window::refresh_window): Remove.
1611 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
1612 virtual.
1613 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
1614 tui_gen_win_info.
1615 <refresh_window, max_height, min_height>: Remove.
1616 <rerender>: Add parameters.
1617 <x, y, visible>: New members.
1618 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
1619 <m_item_width>: New member.
1620
22b7b041
TT
16212020-07-01 Tom Tromey <tom@tromey.com>
1622
1623 * tui/tui-regs.c (tui_data_window::show_register_group)
1624 (tui_data_window::check_register_values): Update.
1625 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
1626 from item_no.
1627
c9753adb
TT
16282020-07-01 Tom Tromey <tom@tromey.com>
1629
1630 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
1631 useless "if".
1632
9ab26b4a
TT
16332020-07-01 Tom Tromey <tom@tromey.com>
1634
1635 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
1636 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
1637
e555083f
TT
16382020-07-01 Tom Tromey <tom@tromey.com>
1639
1640 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
1641 * tui/tui-winsource.h (enum tui_line_or_address_kind)
1642 (struct tui_line_or_address): Move from tui-data.h.
1643 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
1644 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
1645 (tui_cmd_window, tui_source_window_base, tui_source_window)
1646 (tui_disasm_window): Don't declare.
1647 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
1648 to tui-winsource.h.
1649 (SINGLE_KEY): Move to tui-stack.c.
1650
7a02bab7
TT
16512020-07-01 Tom Tromey <tom@tromey.com>
1652
1653 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
1654 std::string.
1655 * tui/tui-regs.c (class tab_expansion_file): New.
1656 (tab_expansion_file::write): New method.
1657 (tui_register_format): Change return type. Use
1658 tab_expansion_file.
1659 (tui_get_register, tui_data_window::display_registers_from)
1660 (tui_data_item_window::rerender): Update.
1661 * tui/tui-io.h (tui_expand_tabs): Don't declare.
1662 * tui/tui-io.c (tui_expand_tabs): Remove.
1663
ea68593b
TT
16642020-07-01 Tom Tromey <tom@tromey.com>
1665
1666 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
1667
a8caed5d
FS
16682020-07-01 Fangrui Song <maskray@google.com>
1669
1670 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
1671
9cdf9820
AKS
16722020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
1673
1674 * dwarf2/read.c (set_die_type): Removed conditions to restrict
1675 forms for DW_AT_associated and DW_AT_allocated attributes,
1676 which is already checked in function attr_to_dynamic_prop.
1677
a1520ad8
TT
16782020-06-30 Tom Tromey <tromey@adacore.com>
1679
1680 * dwarf2/read.c (quirk_rust_enum): Correctly call
1681 alloc_rust_variant for default-less enum.
1682
5ac58899
TT
16832020-06-30 Tom Tromey <tromey@adacore.com>
1684
1685 PR build/26183:
1686 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
1687 gdb::to_string.
1688
19b187a9
SM
16892020-06-29 Simon Marchi <simon.marchi@efficios.com>
1690
1691 * gdbarch.sh (displaced_step_copy_insn): Update doc.
1692 * gdbarch.h: Re-generate.
1693
cd4c4c07
TT
16942020-06-28 Tom Tromey <tom@tromey.com>
1695
1696 * command.h (cmd_types): Remove.
1697 (cmd_type): Don't declare.
1698 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
1699 typedef.
1700 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
1701 * cli/cli-decode.c (cmd_type): Remove.
1702
05779d57
PA
17032020-06-27 Pedro Alves <palves@redhat.com>
1704
1705 * fork-child.c (prefork_hook): Adjust.
1706 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
1707 Delete.
1708 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
1709 * inferior.c (inferior::set_tty, inferior::tty): New methods.
1710 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
1711 Remove declarations.
1712 (struct inferior) <set_tty, tty>: New methods.
1713 (struct inferior) <terminal>: Rename to ...
1714 (struct inferior) <m_terminal>: ... this and make private.
1715 * main.c (captured_main_1): Adjust.
1716 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
1717 (mi_cmd_inferior_tty_show): Adjust.
1718 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
1719 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
1720
1776e3e5
NA
17212020-06-26 Nick Alcock <nick.alcock@oracle.com>
1722
1723 * configure.ac: Add --enable-libctf: handle --disable-static
1724 properly.
1725 * acinclude.m4: sinclude ../config/enable.m4.
1726 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
1727 (LIBCTF): Substitute in.
1728 (CTF_DEPS): New, likewise.
1729 (CLIBS): libctf needs symbols from libbfd: move earlier.
1730 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
1731 flags.
1732 * ctfread.c: Surround in ENABLE_LIBCTF.
1733 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
1734 * configure: Regenerate.
1735 * config.in: Likewise.
1736
58373b80
SM
17372020-06-25 Simon Marchi <simon.marchi@efficios.com>
1738
1739 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
1740
277474ee
SM
17412020-06-25 Simon Marchi <simon.marchi@efficios.com>
1742
1743 * inferior.h (struct inferior) <terminal>: Change type to
1744 gdb::unique_xmalloc_ptr<char>.
1745 * inferior.c (inferior::~inferior): Don't free inf->terminal.
1746 * infcmd.c (set_inferior_io_terminal): Don't free terminal
1747 field, adjust to unique pointer.
1748 (get_inferior_io_terminal): Adjust to unique pointer.
1749
6d74da72
AB
17502020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1751
1752 * riscv-tdep.c (riscv_print_registers_info): Loop over all
1753 registers, not just the known core set of registers.
1754
2e52d038
AB
17552020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1756
1757 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
1758 fflags, frm, and fcsr registers.
1759 (riscv_register_reggroup_p): Remove unknown CSRs from save and
1760 restore groups.
1761 (riscv_tdesc_unknown_reg): New function.
1762 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
1763 tdesc_use_registers.
1764 * riscv-tdep.h (struct gdbarch_tdep): Add
1765 unknown_csrs_first_regnum, unknown_csrs_count,
1766 duplicate_fflags_regnum, duplicate_frm_regnum, and
1767 duplicate_fcsr_regnum fields.
1768
be64fd07
AB
17692020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1770
1771 * target-descriptions.c (tdesc_use_registers): Add new parameter a
1772 callback, use the callback (when not null) to help number unknown
1773 registers.
1774 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
1775 (tdesc_use_registers): Add extra parameter to declaration.
1776
3b9fce96
AB
17772020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1778
1779 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
1780 in the file.
1781 (class riscv_pending_register_alias): Likewise.
1782 (riscv_register_feature::register_info): Change 'required_p' field
1783 to 'required', and change its type. Add 'check' member function.
1784 (riscv_register_feature::register_info::check): Define new member
1785 function.
1786 (riscv_xreg_feature): Change initialisation of 'required' field.
1787 (riscv_freg_feature): Likewise.
1788 (riscv_virtual_feature): Likewise.
1789 (riscv_csr_feature): Likewise.
1790 (riscv_check_tdesc_feature): Take extra parameter, the csr
1791 tdesc_feature, rewrite the function to use the new
1792 riscv_register_feature::register_info::check function.
1793 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
1794
865bad26
AB
17952020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1796
1797 * features/Makefile: Remove all references to the deleted files
1798 below.
1799 * features/riscv/32bit-csr.c: Deleted.
1800 * features/riscv/32bit-csr.xml: Deleted.
1801 * features/riscv/64bit-csr.c: Deleted.
1802 * features/riscv/64bit-csr.xml: Deleted.
1803 * features/riscv/rebuild-csr-xml.sh: Deleted.
1804
ed69cbc8
AB
18052020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1806
1807 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
1808 whitespace error for declaration of names member variable.
1809 (struct riscv_register_feature): Add new prefer_first_name member
1810 variable, and fix whitespace error in declaration of registers.
1811 (riscv_xreg_feature): Initialize prefer_first_name field.
1812 (riscv_freg_feature): Likewise.
1813 (riscv_virtual_feature): Likewise.
1814 (riscv_csr_feature): Likewise.
1815 (riscv_register_name): Expand on comments. Remove register name
1816 modifications for CSR and virtual registers.
1817
4445e8f5
AB
18182020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1819
1820 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
1821 errors.
1822
767a879e
AB
18232020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1824
1825 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
1826 riscv-opc.h.
1827 (class riscv_pending_register_alias): New class.
1828 (riscv_check_tdesc_feature): Take vector of pending aliases and
1829 populate it as appropriate.
1830 (riscv_setup_register_aliases): Delete.
1831 (riscv_gdbarch_init): Create vector of pending aliases and pass it
1832 to riscv_check_tdesc_feature in all cases. Use the vector to
1833 create the register aliases.
1834
bb6e55f3
RO
18352020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1836
1837 * sol2-tdep.c (sol2_static_transform_name): Remove.
1838 (sol2_init_abi): Don't register it.
1839 * gdbarch.sh (static_transform_name): Remove.
1840 * gdbarch.c, gdbarch.h: Regenerate.
1841
1842 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
1843 gdbarch_static_transform_name.
1844 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
1845 * stabsread.c (define_symbol) <'X'>: Remove.
1846 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
1847 handling.
1848 <'V'>: Likewise.
1849 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
1850 <'S'>: Remove call to gdbarch_static_transform_name.
1851
c6d36836
RO
18522020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1853
1854 * procfs.c (procfs_pre_trace): New function.
1855 (procfs_target::create_inferior): Pass it to fork_inferior.
1856
a7e6196b
RO
18572020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1858
1859 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
1860 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
1861 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
1862 sol2-tdep.o, sparc-sol2-tdep.o.
1863 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
1864 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
1865 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
1866 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
1867
d412e696
RO
18682020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1869
1870 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
1871 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
1872 Call sol2_init_abi.
1873 Remove calls to set_gdbarch_skip_solib_resolver,
1874 set_gdbarch_core_pid_to_str.
1875 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
1876 (i386_sol2_static_transform_name): Remove.
1877 (i386_sol2_init_abi): Call sol2_init_abi.
1878 Remove calls to set_gdbarch_sofun_address_maybe_missing,
1879 set_gdbarch_static_transform_name,
1880 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
1881 Use sol2_sigtramp_p.
1882 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
1883 (sol2_sigtramp_p): New function.
1884 (sol2_static_transform_name): New function.
1885 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
1886 (sol2_init_abi): New function.
1887 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
1888 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
1889 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
1890 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
1891 (sparc_sol2_static_transform_name): Remove.
1892 (sparc32_sol2_init_abi): Call sol2_init_abi.
1893 Remove calls to set_gdbarch_sofun_address_maybe_missing,
1894 set_gdbarch_static_transform_name,
1895 set_gdbarch_skip_solib_resolver,
1896 set_gdbarch_core_pid_to_str.
1897 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
1898 (sparc_sol2_static_transform_name): Remove
1899 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
1900 call sol2_sigtramp_p.
1901 (sparc64_sol2_init_abi): Call sol2_init_abi.
1902 Remove calls to set_gdbarch_sofun_address_maybe_missing,
1903 set_gdbarch_static_transform_name,
1904 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
1905
a8654e7d
PW
19062020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1907
1908 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
1909 * exec.c (validate_exec_file): If from_tty, set both
1910 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
1911 * symfile.c (symbol_file_add_with_addrs): if always_confirm
1912 and from_tty, unconditionally ask a confirmation.
1913
caa7fd04
AB
19142020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1915
1916 * target-descriptions.c (tdesc_architecture_name): Protect against
1917 NULL pointer dereference.
1918 (maint_print_xml_tdesc_cmd): New function.
1919 (_initialize_target_descriptions): Register new 'maint print
1920 xml-tdesc' command and give it the filename completer.
1921 * NEWS: Mention new 'maint print xml-tdesc' command.
1922
fbf42f4e
AB
19232020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1924
1925 * target-descriptions.c (class tdesc_compatible_info): New class.
1926 (struct target_desc): Change type of compatible vector.
1927 (tdesc_compatible_p): Update for change in type of
1928 target_desc::compatible.
1929 (tdesc_compatible_info_list): New function.
1930 (tdesc_compatible_info_arch_name): New function.
1931 (tdesc_add_compatible): Update for change in type of
1932 target_desc::compatible.
1933 (print_c_tdesc::visit_pre): Likewise.
1934
20821f4e
AB
19352020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1936
1937 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
1938 whitespace to underscore.
1939 (maint_print_c_tdesc_cmd): Use fake filename for target
1940 descriptions that came from the target.
1941 (_initialize_target_descriptions): Add filename command completion
1942 for 'maint print c-tdesc'.
1943
1fb5ee62
SM
19442020-06-23 Simon Marchi <simon.marchi@efficios.com>
1945
1946 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
1947 lines.
1948
fc3ecb3e
SM
19492020-06-23 Simon Marchi <simon.marchi@efficios.com>
1950
1951 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
1952 lines.
1953 (dwarf2_find_location_expression): Likewise.
1954 (call_site_parameter_matches): Likewise.
1955 (dwarf2_compile_expr_to_ax): Likewise.
1956 (disassemble_dwarf_expression): Likewise.
1957 (loclist_describe_location): Likewise.
1958
236ef034
PA
19592020-06-23 Pedro Alves <palves@redhat.com>
1960
1961 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
1962 progspace-and-thread.h. Include scoped-mock-context.h instead.
1963 (register_to_value_test): Use scoped_mock_context.
1964 * regcache.c: Include "scoped-mock-context.h".
1965 (cooked_read_test): Don't error out if a target is already pushed.
1966 Use scoped_mock_context. Adjust.
1967 * scoped-mock-context.h: New file.
1968
39e7ecca
AB
19692020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1970
1971 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
1972 initializer.
1973 (ada_language::is_string_type_p): New member function.
1974 * c-lang.c (c_language_data): Delete la_is_string_type_p
1975 initializer.
1976 (cplus_language_data): Likewise.
1977 (asm_language_data): Likewise.
1978 (minimal_language_data): Likewise.
1979 * d-lang.c (d_language_data): Likewise.
1980 * f-lang.c (f_is_string_type_p): Delete function, implementation
1981 moved to f_language::is_string_type_p.
1982 (f_language_data): Delete la_is_string_type_p initializer.
1983 (f_language::is_string_type_p): New member function,
1984 implementation from f_is_string_type_p.
1985 * go-lang.c (go_is_string_type_p): Delete function, implementation
1986 moved to go_language::is_string_type_p.
1987 (go_language_data): Delete la_is_string_type_p initializer.
1988 (go_language::is_string_type_p): New member function,
1989 implementation from go_is_string_type_p.
1990 * language.c (language_defn::is_string_type_p): Define new member
1991 function.
1992 (default_is_string_type_p): Make static, add comment copied from
1993 header file.
1994 (unknown_language_data): Delete la_is_string_type_p initializer.
1995 (unknown_language::is_string_type_p): New member function.
1996 (auto_language_data): Delete la_is_string_type_p initializer.
1997 (auto_language::is_string_type_p): New member function.
1998 * language.h (language_data): Delete la_is_string_type_p field.
1999 (language_defn::is_string_type_p): Declare new function.
2000 (default_is_string_type_p): Delete desclaration, move comment to
2001 definition.
2002 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
2003 moved to m2_language::is_string_type_p.
2004 (m2_language_data): Delete la_is_string_type_p initializer.
2005 (m2_language::is_string_type_p): New member function,
2006 implementation from m2_is_string_type_p.
2007 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
2008 initializer.
2009 * opencl-lang.c (opencl_language_data): Likewise.
2010 * p-lang.c (pascal_is_string_type_p): Delete function,
2011 implementation moved to pascal_language::is_string_type_p.
2012 (pascal_language_data): Delete la_is_string_type_p initializer.
2013 (pascal_language::is_string_type_p): New member function,
2014 implementation from pascal_is_string_type_p.
2015 * rust-lang.c (rust_is_string_type_p): Delete function,
2016 implementation moved to rust_language::is_string_type_p.
2017 (rust_language_data): Delete la_is_string_type_p initializer.
2018 (rust_language::is_string_type_p): New member function,
2019 implementation from rust_is_string_type_p.
2020 * valprint.c (val_print_scalar_or_string_type_p): Update call to
2021 is_string_type_p.
2022
4ffc13fb
AB
20232020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2024
2025 * ada-lang.c (ada_language_data): Delete la_print_typedef
2026 initializer.
2027 (ada_language::print_typedef): New member function.
2028 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
2029 (cplus_language_data): Likewise.
2030 (asm_language_data): Likewise.
2031 (minimal_language_data): Likewise.
2032 * d-lang.c (d_language_data): Likewise.
2033 * f-lang.c (f_language_data): Likewise.
2034 (f_language::print_typedef): New member function.
2035 * go-lang.c (go_language_data): Delete la_print_typedef
2036 initializer.
2037 * language.c (language_defn::print_typedef): Define member
2038 function.
2039 (unknown_language_data): Delete la_print_typedef initializer.
2040 (unknown_language::print_typedef): New member function.
2041 (auto_language_data): Delete la_print_typedef initializer.
2042 (auto_language::print_typedef): New member function.
2043 * language.h (language_data): Delete la_print_typedef field.
2044 (language_defn::print_typedef): Declare new member function.
2045 (LA_PRINT_TYPEDEF): Update call to print_typedef.
2046 (default_print_typedef): Delete declaration.
2047 * m2-lang.c (m2_language_data): Delete la_print_typedef
2048 initializer.
2049 (m2_language::print_typedef): New member function.
2050 * objc-lang.c (objc_language_data): Delete la_print_typedef
2051 initializer.
2052 * opencl-lang.c (opencl_language_data): Likewise.
2053 * p-lang.c (pascal_language_data): Likewise.
2054 (pascal_language::print_typedef): New member function.
2055 * rust-lang.c (rust_print_typedef): Delete function,
2056 implementation moved to rust_language::print_typedef.
2057 (rust_language): Delete la_print_typedef initializer.
2058 (rust_language::print_typedef): New member function,
2059 implementation from rust_print_typedef.
2060 * typeprint.c (default_print_typedef): Delete.
2061
d711ee67
AB
20622020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2063
2064 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
2065 (ada_language::printstr): New member function.
2066 * c-lang.c (c_language_data): Delete la_printstr initializer.
2067 (cplus_language_data): Likewise.
2068 (asm_language_data): Likewise.
2069 (minimal_language_data): Likewise.
2070 * d-lang.c (d_language_data): Likewise.
2071 * f-lang.c (f_printstr): Rename to f_language::printstr.
2072 (f_language_data): Delete la_printstr initializer.
2073 (f_language::printstr): New member function, implementation from
2074 f_printstr.
2075 * go-lang.c (go_language_data): Delete la_printstr initializer.
2076 * language.c (language_defn::printstr): Define new member
2077 function.
2078 (unk_lang_printstr): Delete.
2079 (unknown_language_data): Delete la_printstr initializer.
2080 (unknown_language::printstr): New member function.
2081 (auto_language_data): Delete la_printstr initializer.
2082 (auto_language::printstr): New member function.
2083 * language.h (language_data): Delete la_printstr field.
2084 (language_defn::printstr): Declare new member function.
2085 (LA_PRINT_STRING): Update call to printstr.
2086 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
2087 (m2_language_data): Delete la_printstr initializer.
2088 (m2_language::printstr): New member function, implementation from
2089 m2_printstr.
2090 * objc-lang.c (objc_language_data): Delete la_printstr
2091 initializer.
2092 * opencl-lang.c (opencl_language_data): Likewise.
2093 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
2094 (pascal_language_data): Delete la_printstr initializer.
2095 (pascal_language::printstr): New member function, implementation
2096 from pascal_printstr.
2097 * p-lang.h (pascal_printstr): Delete declaration.
2098 * rust-lang.c (rust_printstr): Update header comment.
2099 (rust_language_data): Delete la_printstr initializer.
2100 (rust_language::printstr): New member function.
2101
52b50f2c
AB
21022020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2103
2104 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
2105 (ada_language::printchar): New member function.
2106 * c-lang.c (c_language_data): Delete la_printchar initializer.
2107 (cplus_language_data): Likewise.
2108 (asm_language_data): Likewise.
2109 (minimal_language_data): Likewise.
2110 * d-lang.c (d_language_data): Likewise.
2111 * f-lang.c (f_printchar): Rename to f_language::printchar.
2112 (f_language_data): Delete la_printchar initializer.
2113 (f_language::printchar): New member function, implementation from
2114 f_printchar.
2115 * go-lang.c (go_language_data): Delete la_printchar initializer.
2116 * language.c (unk_lang_printchar): Delete.
2117 (language_defn::printchar): Define new member function.
2118 (unknown_language_data): Delete la_printchar initializer.
2119 (unknown_language::printchar): New member function.
2120 (auto_language_data): Delete la_printchar initializer.
2121 (auto_language::printchar): New member function.
2122 * language.h (language_data): Delete la_printchar field.
2123 (language_defn::printchar): Declare new member function.
2124 (LA_PRINT_CHAR): Update call to printchar.
2125 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
2126 (m2_language::printchar): New member function.
2127 * objc-lang.c (objc_language_data): Delete la_printchar
2128 initializer.
2129 * opencl-lang.c (opencl_language_data): Likewise.
2130 * p-lang.c (pascal_language_data): Delete la_printchar
2131 initializer.
2132 (pascal_language::printchar): New member function.
2133 * rust-lang.c (rust_printchar): Rename to
2134 rust_language::printchar.
2135 (rust_language_data): Delete la_printchar initializer.
2136 (rust_language::printchar): New member function, implementation
2137 from rust_printchar.
2138
ec8cec5b
AB
21392020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2140
2141 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
2142 (ada_language_data): Delete la_emitchar initializer.
2143 (ada_language::emitchar): New member function, implementation from
2144 emit_char.
2145 * c-lang.c (c_language_data): Delete la_emitchar initializer.
2146 (cplus_language_data): Likewise.
2147 (asm_language_data): Likewise.
2148 (minimal_language_data): Likewise.
2149 * d-lang.c (d_language_data): Likewise.
2150 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
2151 (f_language_data): Delete la_emitchar initializer.
2152 (f_language::emitchar): New member function, implementation from
2153 f_emit_char.
2154 * go-lang.c (go_language_data): Delete la_emitchar initializer.
2155 * language.c (unk_lang_emit_char): Delete.
2156 (language_defn::emitchar): New member function definition.
2157 (unknown_language_data): Delete la_emitchar initializer.
2158 (unknown_language::emitchar): New member function.
2159 (auto_language_data): Delete la_emitchar initializer.
2160 (auto_language::emitchar): New member function.
2161 * language.h (language_data): Delete la_emitchar field.
2162 (language_defn::emitchar): New member field declaration.
2163 (LA_EMIT_CHAR): Update call to emitchar.
2164 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
2165 (m2_language_data): Delete la_emitchar initializer.
2166 (m2_language::emitchar): New member function, implementation from
2167 m2_emit_char.
2168 * objc-lang.c (objc_language_data): Delete la_emitchar
2169 initializer.
2170 * opencl-lang.c (opencl_language_data): Likewise.
2171 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
2172 (pascal_language_data): Delete la_emitchar initializer.
2173 (pascal_language::emitchar): New member function, implementation
2174 from pascal_emit_char.
2175 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
2176 (rust_language_data): Delete la_emitchar initializer.
2177 (rust_language::emitchar): New member function, implementation
2178 from rust_emitchar.
2179
1bf9c363
AB
21802020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2181
2182 * ada-lang.c (resolve): Rename to ada_language::post_parser.
2183 (ada_language_data): Delete la_post_parser initializer.
2184 (ada_language::post_parser): New member function.
2185 * c-lang.c (c_language_data): Delete la_post_parser initializer.
2186 (cplus_language_data): Likewise.
2187 (asm_language_data): Likewise.
2188 (minimal_language_data): Likewise.
2189 * d-lang.c (d_language_data): Likewise.
2190 * f-lang.c (f_language_data): Likewise.
2191 * go-lang.c (go_language_data): Likewise.
2192 * language.c (unknown_language_data): Likewise.
2193 (auto_language_data): Likewise.
2194 * language.h (language_data): Delete la_post_parser field.
2195 (language_defn::post_parser): New member function.
2196 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
2197 * objc-lang.c (objc_language_data): Likewise.
2198 * opencl-lang.c (opencl_language_data): Likewise.
2199 * p-lang.c (pascal_language_data): Likewise.
2200 * parse.c (parse_exp_in_context): Update call to post_parser.
2201 (null_post_parser): Delete definition.
2202 * parser-defs.h (null_post_parser): Delete declaration.
2203 * rust-lang.c (rust_language_data): Delete la_post_parser
2204 initializer.
2205
87afa652
AB
22062020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2207
2208 * ada-lang.c (parse): Rename to ada_language::parser.
2209 (ada_language_data): Delete la_parser initializer.
2210 (ada_language::parser): New member function, implementation from
2211 parse.
2212 * c-lang.c (c_language_data): Delete la_parser initializer.
2213 (cplus_language_data): Likewise.
2214 (asm_language_data): Likewise.
2215 (minimal_language_data): Likewise.
2216 * d-lang.c (d_language_data): Likewise.
2217 (d_language::parser): New member function.
2218 * f-lang.c (f_language_data): Delete la_parser initializer.
2219 (f_language::parser): New member function.
2220 * go-lang.c (go_language_data): Delete la_parser initializer.
2221 (go_language::parser): New member function.
2222 * language.c (unk_lang_parser): Delete.
2223 (language_defn::parser): Define new member function.
2224 (unknown_language_data): Delete la_parser initializer.
2225 (unknown_language::parser): New member function.
2226 (auto_language_data): Delete la_parser initializer.
2227 (auto_language::parser): New member function.
2228 * language.h (language_data): Delete la_parser field.
2229 (language_defn::parser): Declare new member function.
2230 * m2-lang.c (m2_language_data): Delete la_parser initializer.
2231 (m2_language::parser): New member function.
2232 * objc-lang.c (objc_language_data): Delete la_parser initializer.
2233 * opencl-lang.c (opencl_language_data): Likewise.
2234 * p-lang.c (pascal_language_data): Likewise.
2235 (pascal_language::parser): New member function.
2236 * parse.c (parse_exp_in_context): Update call to parser.
2237 * rust-lang.c (rust_language_data): Delete la_parser initializer.
2238 (rust_language::parser): New member function.
2239
37825800
AB
22402020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2241
2242 * top.c (print_gdb_configuration): Print --with-python-libdir
2243 configuration value.
2244
5b860c93
PW
22452020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2246
2247 * NEWS: Mention change to the alias command.
2248
cf00cd6f
PW
22492020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2250
2251 * cli/cli-cmds.c (lookup_cmd_for_default_args)
2252 (alias_command_completer)
2253 (make_alias_options_def_group): New functions.
2254 (alias_opts, alias_option_defs): New struct and array.
2255 (alias_usage_error): Update usage.
2256 (alias_command): Handles optional DEFAULT-ARGS... arguments.
2257 Use option framework.
2258 (_initialize_cli_cmds): Update alias command help.
2259 Update aliases command help.
2260 (show_user):
2261 Add NULL for new default_args lookup_cmd argument.
2262 (valid_command_p): Rename to validate_aliased_command.
2263 Add NULL for new default_args lookup_cmd argument. Verify that the
2264 aliased_command has no default args.
2265 * cli/cli-decode.c (help_cmd): Show aliases definitions.
2266 (lookup_cmd_1, lookup_cmd): New argument default_args.
2267 (add_alias_cmd):
2268 Add NULL for new default_args lookup_cmd argument.
2269 (print_help_for_command): Show default args under the layout
2270 alias some_alias = some_aliased_cmd some_alias_default_arg.
2271 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
2272 xfree default_args in destructor.
2273 * cli/cli-script.c (process_next_line, do_define_command):
2274 Add NULL for new default_args lookup_cmd argument.
2275 * command.h: Declare new default_args argument in lookup_cmd
2276 and lookup_cmd_1.
2277 * completer.c (complete_line_internal_1):
2278 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
2279 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
2280 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
2281 Likewise.
2282 * infcmd.c (_initialize_infcmd): Likewise.
2283 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
2284 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
2285 * python/py-param.c (add_setshow_generic): Likewise.
2286 * remote.c (_initialize_remote): Likewise.
2287 * top.c (execute_command): Prepend default_args if command has some.
2288 (set_verbose):
2289 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
2290 * tracepoint.c (validate_actionline, encode_actions_1):
2291 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
2292
bd920864
TBA
22932020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2294
2295 * jit.c (jit_read_descriptor): Use bool as the return type.
2296 (jit_breakpoint_re_set_internal): Use bool as the return type.
2297 Invert the return value logic; return true if the jit breakpoint
2298 has been successfully initialized.
2299 (jit_inferior_init): Update the call to
2300 jit_breakpoint_re_set_internal.
2301
f8098322
PA
23022020-06-22 Pedro Alves <palves@redhat.com>
2303
2304 PR gdb/25939
2305 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
2306 Use the current inferior instead. Don't return
2307 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
2308 wait again.
2309 * sol-thread.c (sol_thread_target::wait): Don't reference
2310 inferior_ptid.
2311 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
2312 (sol_update_thread_list_callback): Use the current inferior's pid
2313 instead of inferior_ptid.
2314
196535a6
RO
23152020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2316
2317 * procfs.c: Cleanup many comments.
2318
2319 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
2320 (AFTER_WATCHFLAG): Replace by value.
2321
2322 (MAIN_PROC_NAME_FORMAT): Inline ...
2323 (create_procinfo): ... here.
2324
2325 (procfs_debug_inferior): Remove SYS_exec handling.
2326 (syscall_is_exec): Likewise.
2327 (procfs_set_exec_trap): Likewise.
2328
2329 (syscall_is_lwp_exit): Inline in callers.
2330 (syscall_is_exit): Likewise.
2331 (syscall_is_exec): Likewise.
2332 (syscall_is_lwp_create): Likewise.
2333
2334 (invalidate_cache): Remove #if 0 code.
2335
2336 (make_signal_thread_runnable): Remove.
2337 (procfs_target::resume): Remove #if 0 code.
2338
cf6f3e86
RO
23392020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2340
2341 PR gdb/25939
2342 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
2343 call ...
2344 (procfs_target::create_inferior): ... here.
2345
48e9cc84
PW
23462020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2347
2348 * exec.c (validate_exec_file): Ensure the build-id is up to
2349 date by calling reopen_exec_file (that checks file timestamp
2350 to decide to re-read the file).
2351
3922b302
PA
23522020-06-18 Pedro Alves <palves@redhat.com>
2353
2354 PR gdb/25412
2355 * gdbthread.h (delete_thread, delete_thread_silent)
2356 (find_thread_ptid): Update comments.
2357 * thread.c (current_thread_): New global.
2358 (is_current_thread): Move higher, and reimplement.
2359 (inferior_thread): Reimplement.
2360 (set_thread_exited): Use bool. Add assertions.
2361 (add_thread_silent): Simplify thread-reuse handling by always
2362 calling delete_thread.
2363 (delete_thread): Remove intro comment.
2364 (find_thread_ptid): Skip exited threads.
2365 (switch_to_thread_no_regs): Write to current_thread_.
2366 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
2367 INFERIOR_PTID. Clear current_thread_.
2368
6dbdab44
PA
23692020-06-18 Pedro Alves <palves@redhat.com>
2370
2371 * aix-thread.c (pd_update): Use switch_to_thread.
2372
2da4b788
PA
23732020-06-18 Pedro Alves <palves@redhat.com>
2374
2375 * ravenscar-thread.c (ravenscar_thread_target): Update.
2376 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
2377 (ravenscar_thread_target::add_active_thread): ... this. Don't
2378 set m_base_ptid here. Update to avoid referencing inferior_ptid.
2379 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
2380
50838d1b
PA
23812020-06-18 Pedro Alves <palves@redhat.com>
2382
2383 * nat/windows-nat.c (current_windows_thread): Remove.
2384 * nat/windows-nat.h (current_windows_thread): Remove.
2385 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
2386 Adjust.
2387 (display_selectors): Adjust to fetch the current
2388 windows_thread_info based on inferior_ptid.
2389 (fake_create_process): No longer write to current_windows_thread.
2390 (windows_nat_target::get_windows_debug_event):
2391 Don't set inferior_ptid or current_windows_thread.
2392 (windows_nat_target::wait): Adjust to not rely on
2393 current_windows_thread.
2394 (do_initial_windows_stuff): Now a method of windows_nat_target.
2395 Switch to the last_ptid thread.
2396 (windows_nat_target::attach): Adjust.
2397 (windows_nat_target::detach): Use switch_to_no_thread instead of
2398 writing to inferior_ptid directly.
2399 (windows_nat_target::create_inferior): Adjust.
2400
31ce04e9
PA
24012020-06-18 Pedro Alves <palves@redhat.com>
2402
2403 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
2404
1ee1a363
PA
24052020-06-18 Pedro Alves <palves@redhat.com>
2406
2407 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
2408 after creating it, instead of writing to inferior_ptid. Don't
2409 write to inferior_ptid.
2410
6d350754
PA
24112020-06-18 Pedro Alves <palves@redhat.com>
2412
2413 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
2414
5d971d48
PA
24152020-06-18 Pedro Alves <palves@redhat.com>
2416
2417 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
2418 it, instead of writing to inferior_ptid.
2419
86e57d1b
PA
24202020-06-18 Pedro Alves <palves@redhat.com>
2421
2422 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
2423 to inferior_ptid.
2424
f2e1c129
PA
24252020-06-18 Pedro Alves <palves@redhat.com>
2426
2427 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
2428 instead of writing to inferior_ptid directly.
2429
60db1b85
PA
24302020-06-18 Pedro Alves <palves@redhat.com>
2431
2432 * corelow.c (core_target::close): Use switch_to_no_thread instead
2433 of writing to inferior_ptid directly.
2434 (add_to_thread_list, core_target_open): Use switch_to_thread
2435 instead of writing to inferior_ptid directly.
2436
fe7d6a8d
PA
24372020-06-18 Pedro Alves <palves@redhat.com>
2438
2439 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
2440 inferior_ptid.
2441 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
2442 inferior_ptid.
2443 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
2444 inferior_ptid directly.
2445 (darwin_nat_target::init_thread_list): Switch to thread, instead
2446 of writing to inferior_ptid.
2447 (darwin_nat_target::attach): Don't write to inferior_ptid.
2448 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
2449
975f8708
PA
24502020-06-18 Pedro Alves <palves@redhat.com>
2451
2452 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
2453 thread.
2454 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
2455 Instead use switch_to_thread.
2456 (gnu_nat_target::detach): Use switch_to_no_thread
2457 instead of writing to inferior_ptid directly. Used passed-in
2458 inferior instead of looking up the inferior by pid.
2459
1a204730
PA
24602020-06-18 Pedro Alves <palves@redhat.com>
2461
2462 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
2463 inferior_ptid.
2464
ebe84f23
PA
24652020-06-18 Pedro Alves <palves@redhat.com>
2466
2467 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
2468 inferior_ptid.
2469 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
2470 thread.
2471 (nto_procfs_target::detach): Avoid referencing
2472 inferior_ptid. Use switch_to_no_thread instead of writing to
2473 inferior_ptid directly.
2474 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
2475 instead of writing to inferior_ptid directly.
2476 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
2477 to thread.
2478
191f02e5
PA
24792020-06-18 Pedro Alves <palves@redhat.com>
2480
2481 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
2482 after creating it, instead of writing to inferior_ptid.
2483 (gdbsim_target_open): Use switch_to_no_thread instead of writing
2484 to inferior_ptid directly.
2485 (gdbsim_target::wait): Don't write to inferior_ptid.
2486
0ac55310
PA
24872020-06-18 Pedro Alves <palves@redhat.com>
2488
2489 * remote.c (remote_target::remote_notice_new_inferior): Use
2490 switch_to_thread instead of writing to inferior_ptid directly.
2491 (remote_target::add_current_inferior_and_thread): Use
2492 switch_to_no_thread instead of writing to inferior_ptid directly.
2493 (extended_remote_target::attach): Use switch_to_inferior_no_thread
2494 and switch_to_thread instead of using set_current_inferior or
2495 writing to inferior_ptid directly.
2496
5233f39b
PA
24972020-06-18 Pedro Alves <palves@redhat.com>
2498
2499 * tracectf.c (ctf_target_open): Switch to added thread instead of
2500 writing to inferior_ptid directly.
2501 (ctf_target::close): Use switch_to_no_thread instead of writing to
2502 inferior_ptid directly.
2503
087e161b
PA
25042020-06-18 Pedro Alves <palves@redhat.com>
2505
2506 * tracefile-tfile.c (tfile_target_open): Don't write to
2507 inferior_ptid directly, instead switch to added thread.
2508 (tfile_target::close): Use switch_to_no_thread instead of writing
2509 to inferior_ptid directly.
2510
7fb43e53
PA
25112020-06-18 Pedro Alves <palves@redhat.com>
2512
2513 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
2514 (procfs_target::detach): Use switch_to_no_thread
2515 instead of writing to inferior_ptid directly.
2516 (do_attach): Change return type to void. Switch to the added
2517 thread.
2518 (procfs_target::create_inferior): Switch to the added thread.
2519 (procfs_do_thread_registers): Don't write to inferior_ptid.
2520
18493a00
PA
25212020-06-18 Pedro Alves <palves@redhat.com>
2522
2523 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
2524 of writing to inferior_ptid.
2525 (scoped_restore_exited_inferior): Delete.
2526 (handle_vfork_child_exec_or_exit): Simplify using
2527 scoped_restore_current_pspace_and_thread. Use switch_to_thread
2528 instead of writing to inferior_ptid.
2529 (THREAD_STOPPED_BY): Delete.
2530 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
2531 (thread_stopped_by_hw_breakpoint): Delete.
2532 (save_waitstatus): Use
2533 scoped_restore_current_thread+switch_to_thread, and call
2534 target_stopped_by_watchpoint instead of
2535 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
2536 instead of thread_stopped_by_sw_breakpoint, and
2537 target_stopped_by_hw_breakpoint instead of
2538 thread_stopped_by_hw_breakpoint.
2539 (handle_inferior_event)
2540 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
2541 inferior_ptid directly, nor
2542 set_current_inferior/set_current_program_space. Use
2543 switch_to_thread / switch_to_inferior_no_thread instead.
2544
a0776b13
PA
25452020-06-18 Pedro Alves <palves@redhat.com>
2546
2547 * target.c (generic_mourn_inferior): Use switch_to_no_thread
2548 instead of writing to inferior_ptid.
2549
6155c136
PA
25502020-06-18 Pedro Alves <palves@redhat.com>
2551
2552 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
2553 added thread.
2554 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
2555 to the added thread.
2556 (inf_ptrace_target::detach_success): Use switch_to_no_thread
2557 instead of writing to inferior_ptid.
2558
c5316fc6
PA
25592020-06-18 Pedro Alves <palves@redhat.com>
2560
2561 * gdbarch-selftests.c: Include "progspace-and-thread.h".
2562 (register_to_value_test): Mock a program_space too. Heap-allocate
2563 the address space. Don't write to inferior_ptid. Use
2564 switch_to_thread instead.
2565
8df01799
PA
25662020-06-18 Pedro Alves <palves@redhat.com>
2567
2568 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
2569 Delete.
2570 (find_signalled_thread()): New, factored out from
2571 linux_make_corefile_notes and adjusted to handle exited threads.
2572 (linux_make_corefile_notes): Adjust to use the new
2573 find_signalled_thread.
2574
41792d68
PA
25752020-06-18 Pedro Alves <palves@redhat.com>
2576
2577 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
2578 of saving/restoring inferior_ptid.
2579
612f258a
TT
25802020-06-17 Tom Tromey <tom@tromey.com>
2581
2582 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
2583 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
2584 declare.
2585 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
2586
efb763a5
SM
25872020-06-15 Simon Marchi <simon.marchi@efficios.com>
2588
2589 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
2590 of partial symtabs.
2591
2951f6c0
SM
25922020-06-17 Simon Marchi <simon.marchi@efficios.com>
2593
2594 * regformats/reg-arm.dat: Remove.
2595 * regformats/reg-bfin.dat: Remove.
2596 * regformats/reg-cris.dat: Remove.
2597 * regformats/reg-crisv32.dat: Remove.
2598 * regformats/reg-m32r.dat: Remove.
2599 * regformats/reg-tilegx.dat: Remove.
2600 * regformats/reg-tilegx32.dat: Remove.
2601
7d458ea5
SM
26022020-06-17 Simon Marchi <simon.marchi@efficios.com>
2603
2604 * features/Makefile (WHICH): Remove arm files.
2605 * regformats/arm/arm-with-iwmmxt.dat: Remove.
2606 * regformats/arm/arm-with-neon.dat: Remove.
2607 * regformats/arm/arm-with-vfpv2.dat: Remove.
2608 * regformats/arm/arm-with-vfpv3.dat: Remove.
2609
3af96c0d
SM
26102020-06-17 Simon Marchi <simon.marchi@efficios.com>
2611
2612 * features/Makefile (XMLTOC): Remove rx.xml.
2613
b25e22fd
PA
26142020-06-17 Pedro Alves <palves@redhat.com>
2615
2616 * gdbthread.h (thread_control_state) <trap_expected> Update
2617 comments.
2618
a78a19b1
AB
26192020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2620
2621 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
2622 ada_language::lookup_symbol_nonlocal.
2623 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
2624 (ada_language::lookup_symbol_nonlocal): New member function,
2625 implementation from ada_lookup_symbol_nonlocal.
2626 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
2627 initializer.
2628 (cplus_language_data): Delete la_lookup_symbol_nonlocal
2629 initializer.
2630 (cplus_language::lookup_symbol_nonlocal): New member function.
2631 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
2632 (minimal_language_data) Likewise.
2633 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
2634 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
2635 initializer.
2636 (d_language::lookup_symbol_nonlocal): New member function.
2637 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
2638 initializer.
2639 (f_language::lookup_symbol_nonlocal): New member function.
2640 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
2641 initializer.
2642 * language.c (unknown_language_data): Likewise.
2643 (auto_language_data): Likewise.
2644 * language.h (language_data): Delete la_lookup_symbol_nonlocal
2645 field.
2646 (language_defn::lookup_symbol_nonlocal): New member function.
2647 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
2648 initializer.
2649 * objc-lang.c (objc_language_data): Likewise.
2650 * opencl-lang.c (opencl_language_data): Likewise.
2651 * p-lang.c (pascal_language_data): Likewise.
2652 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
2653 rust_language::lookup_symbol_nonlocal.
2654 (rust_language_data): Delete la_lookup_symbol_nonlocal
2655 initializer.
2656 (rust_language::lookup_symbol_nonlocal): New member function,
2657 implementation from rust_lookup_symbol_nonlocal.
2658 * symtab.c (lookup_symbol_aux): Update call to
2659 lookup_symbol_nonlocal.
2660 (basic_lookup_symbol_nonlocal): Rename to...
2661 (language_defn::lookup_symbol_nonlocal): ...this, and update
2662 header comment. Remove language_defn parameter, and replace with
2663 uses of `this'.
2664 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
2665
ebe2334e
AB
26662020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2667
2668 * ada-lang.c (ada_language_data): Delete la_value_print_inner
2669 initializer.
2670 (ada_language::value_print_inner): New member function.
2671 * c-lang.c (c_language_data): Delete la_value_print_inner
2672 initializer.
2673 (cplus_language_data): Likewise.
2674 (asm_language_data): Likewise.
2675 (minimal_language_data): Likewise.
2676 * d-lang.c (d_language_data): Likewise.
2677 (d_language::value_print_inner): New member function.
2678 * f-lang.c (f_language_data): Delete la_value_print_inner
2679 initializer.
2680 (f_language::value_print_inner): New member function.
2681 * f-lang.h (f_value_print_innner): Rename to...
2682 (f_value_print_inner): ...this (note spelling of 'inner').
2683 * f-valprint.c (f_value_print_innner): Rename to...
2684 (f_value_print_inner): ...this (note spelling of 'inner').
2685 * go-lang.c (go_language_data): Delete la_value_print_inner
2686 initializer.
2687 (go_language::value_print_inner): New member function.
2688 * language.c (language_defn::value_print_inner): Define new member
2689 function.
2690 (unk_lang_value_print_inner): Delete.
2691 (unknown_language_data): Delete la_value_print_inner initializer.
2692 (unknown_language::value_print_inner): New member function.
2693 (auto_language_data): Delete la_value_print_inner initializer.
2694 (auto_language::value_print_inner): New member function.
2695 * language.h (language_data): Delete la_value_print_inner field.
2696 (language_defn::value_print_inner): Delcare new member function.
2697 * m2-lang.c (m2_language_data): Delete la_value_print_inner
2698 initializer.
2699 (m2_language::value_print_inner): New member function.
2700 * objc-lang.c (objc_language_data): Delete la_value_print_inner
2701 initializer.
2702 * opencl-lang.c (opencl_language_data): Likewise.
2703 * p-lang.c (pascal_language_data): Likewise.
2704 (pascal_language::value_print_inner): New member function.
2705 * rust-lang.c (rust_language_data): Delete la_value_print_inner
2706 initializer.
2707 (rust_language::value_print_inner): New member function.
2708 * valprint.c (do_val_print): Update call to value_print_inner.
2709
a1d1fa3e
AB
27102020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2711
2712 * ada-lang.c (ada_language_data): Delete la_value_print
2713 initializer.
2714 (ada_language::value_print): New member function.
2715 * c-lang.c (c_language_data): Delete la_value_print initializer.
2716 (cplus_language_data): Likewise.
2717 (asm_language_data): Likewise.
2718 (minimal_language_data): Likewise.
2719 * d-lang.c (d_language_data): Likewise.
2720 * f-lang.c (f_language_data): Likewise.
2721 * go-lang.c (go_language_data): Likewise.
2722 * language.c (unk_lang_value_print): Delete.
2723 (language_defn::value_print): Define new member function.
2724 (unknown_language_data): Delete la_value_print initializer.
2725 (unknown_language::value_print): New member function.
2726 (auto_language_data): Delete la_value_print initializer.
2727 (auto_language::value_print): New member function.
2728 * language.h (language_data): Delete la_value_print field.
2729 (language_defn::value_print): Declare new member function.
2730 (LA_VALUE_PRINT): Update call to value_print.
2731 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
2732 * objc-lang.c (objc_language_data): Likewise.
2733 * opencl-lang.c (opencl_language_data): Likewise.
2734 * p-lang.c (pascal_language_data): Likewise.
2735 (pascal_language::value_print): New member function.
2736 * rust-lang.c (rust_language_data): Delete la_value_print
2737 initializer.
2738
f16a9f57
AB
27392020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2740
2741 * ada-lang.c (ada_watch_location_expression): Rename to
2742 ada_language::watch_location_expression.
2743 (ada_language_data): Delete la_watch_location_expression
2744 initializer.
2745 (ada_language::watch_location_expression): New member function,
2746 implementation from ada_watch_location_expression.
2747 * breakpoint.c (watch_command_1): Update call to
2748 watch_location_expression.
2749 * c-lang.c (c_watch_location_expression): Rename to
2750 language_defn::watch_location_expression.
2751 (c_language_data): Delete la_watch_location_expression
2752 initializer.
2753 (cplus_language_data): Likewise.
2754 (asm_language_data): Likewise.
2755 (minimal_language_data): Likewise.
2756 * c-lang.h (c_watch_location_expression): Delete declaration.
2757 * d-lang.c (d_language_data): Delete la_watch_location_expression
2758 initializer.
2759 * f-lang.c (f_language_data): Likewise.
2760 * go-lang.c (go_language_data): Likewise.
2761 * language.c (language_defn::watch_location_expression): Member
2762 function implementation from c_watch_location_expression.
2763 (unknown_language_data): Delete la_watch_location_expression
2764 initializer.
2765 (auto_language_data): Likewise.
2766 * language.h (language_data): Delete la_watch_location_expression
2767 field.
2768 (language_defn::watch_location_expression): Declare new member
2769 function.
2770 * m2-lang.c (m2_language_data): Delete
2771 la_watch_location_expression initializer.
2772 * objc-lang.c (objc_language_data): Likewise.
2773 * opencl-lang.c (opencl_language_data): Likewise.
2774 * p-lang.c (pascal_language_data): Likewise.
2775 * rust-lang.c (rust_watch_location_expression): Rename to
2776 rust_language::watch_location_expression.
2777 (rust_language_data): Delete la_watch_location_expression
2778 initializer.
2779 (rust_language::watch_location_expression): New member function,
2780 implementation from rust_watch_location_expression.
2781
7e56227d
AB
27822020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2783
2784 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
2785 ada_language::collect_symbol_completion_matches.
2786 (ada_language_data): Delete la_collect_symbol_completion_matches
2787 initializer.
2788 (ada_language::collect_symbol_completion_matches): New member
2789 function, implementation from
2790 ada_collect_symbol_completion_matches.
2791 * c-lang.c (c_language_data): Delete
2792 la_collect_symbol_completion_matches initializer.
2793 (cplus_language_data): Likewise.
2794 (asm_language_data): Likewise.
2795 (minimal_language_data): Likewise.
2796 * d-lang.c (d_language_data): Likewise.
2797 * f-lang.c (f_collect_symbol_completion_matches): Rename to
2798 f_language::collect_symbol_completion_matches.
2799 (f_language_data): Delete la_collect_symbol_completion_matches
2800 initializer.
2801 (f_language::collect_symbol_completion_matches) New member
2802 function, implementation from f_collect_symbol_completion_matches.
2803 * go-lang.c (go_language_data): Delete
2804 la_collect_symbol_completion_matches initializer.
2805 * language.c (unknown_language_data): Likewise.
2806 (auto_language_data): Likewise.
2807 * language.h (language_data): Delete
2808 la_collect_symbol_completion_matches field.
2809 (language_defn::collect_symbol_completion_matches): New member
2810 function.
2811 * m2-lang.c (m2_language_data): Delete
2812 la_collect_symbol_completion_matches initializer.
2813 * objc-lang.c (objc_language_data): Likewise.
2814 * opencl-lang.c (opencl_language_data): Likewise.
2815 * p-lang.c (pascal_language_data): Likewise.
2816 * rust-lang.c (rust_language_data): Likewise.
2817 * symtab.c (default_collect_symbol_completion_matches): Delete.
2818 (collect_symbol_completion_matches): Update call to
2819 collect_symbol_completion_matches.
2820 (collect_symbol_completion_matches_type): Likewise.
2821 * symtab.h (default_collect_symbol_completion_matches): Delete
2822 declaration.
2823
53fc67f8
AB
28242020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2825
2826 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
2827 (ada_language_data): Delete la_word_break_characters initializer.
2828 (ada_language::word_break_characters): New member function.
2829 * c-lang.c (c_language_data): Delete la_word_break_characters
2830 initializer.
2831 (cplus_language_data): Likewise.
2832 (asm_language_data): Likewise.
2833 (minimal_language_data): Likewise.
2834 * completer.c: Update global comment.
2835 (advance_to_expression_complete_word_point): Update call to
2836 word_break_characters.
2837 (complete_files_symbols): Likewise.
2838 (complete_line_internal_1): Likewise.
2839 (default_completer_handle_brkchars): Likewise.
2840 (skip_quoted_chars): Likewise.
2841 * d-lang.c (d_language_data): Delete la_word_break_characters
2842 initializer.
2843 * f-lang.c (f_word_break_characters): Delete.
2844 (f_language_data): Delete la_word_break_characters initializer.
2845 (f_language::word_break_characters): New member function.
2846 * go-lang.c (go_language_data): Delete la_word_break_characters
2847 initializer.
2848 * language.c (unknown_language_data): Likewise.
2849 (auto_language_data): Likewise.
2850 * language.h (default_word_break_characters): Move declaration to
2851 earlier in the file.
2852 (language_data): Delete la_word_break_characters field.
2853 (language_defn::word_break_characters): New member function.
2854 * m2-lang.c (m2_language_data): Delete la_word_break_characters
2855 initializer.
2856 * objc-lang.c (objc_language_data): Likewise.
2857 * opencl-lang.c (opencl_language_data): Likewise.
2858 * p-lang.c (pascal_language_data): Likewise.
2859 * rust-lang.c (rust_language_data): Likewise.
2860
c9debfb9
AB
28612020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2862
2863 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
2864 (ada_language_data): Delete la_get_symbol_name_matcher
2865 initializer.
2866 (language_defn::get_symbol_name_matcher_inner): New member
2867 function.
2868 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
2869 initializer.
2870 (cplus_language_data): Likewise.
2871 (cplus_language::get_symbol_name_matcher_inner): New member
2872 function.
2873 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
2874 (minimal_language_data): Likewise.
2875 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
2876 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
2877 initializer.
2878 * dictionary.c (iter_match_first_hashed): Update call to
2879 get_symbol_name_matcher.
2880 (iter_match_next_hashed): Likewise.
2881 (iter_match_next_linear): Likewise.
2882 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
2883 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
2884 initializer.
2885 (f_language::get_symbol_name_matcher_inner): New member function.
2886 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
2887 initializer.
2888 * language.c (default_symbol_name_matcher): Update header comment,
2889 make static.
2890 (language_defn::get_symbol_name_matcher): New definition.
2891 (language_defn::get_symbol_name_matcher_inner): Likewise.
2892 (get_symbol_name_matcher): Delete.
2893 (unknown_language_data): Delete la_get_symbol_name_matcher
2894 initializer.
2895 (auto_language_data): Likewise.
2896 * language.h (language_data): Delete la_get_symbol_name_matcher
2897 field.
2898 (language_defn::get_symbol_name_matcher): New member function.
2899 (language_defn::get_symbol_name_matcher_inner): Likewise.
2900 (default_symbol_name_matcher): Delete declaration.
2901 * linespec.c (find_methods): Update call to
2902 get_symbol_name_matcher.
2903 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
2904 initializer.
2905 * minsyms.c (lookup_minimal_symbol): Update call to
2906 get_symbol_name_matcher.
2907 (iterate_over_minimal_symbols): Likewise.
2908 * objc-lang.c (objc_language_data): Delete
2909 la_get_symbol_name_matcher initializer.
2910 * opencl-lang.c (opencl_language_data): Likewise.
2911 * p-lang.c (pascal_language_data): Likewise.
2912 * psymtab.c (psymbol_name_matches): Update call to
2913 get_symbol_name_matcher.
2914 * rust-lang.c (rust_language_data): Delete
2915 la_get_symbol_name_matcher initializer.
2916 * symtab.c (symbol_matches_search_name): Update call to
2917 get_symbol_name_matcher.
2918 (compare_symbol_name): Likewise.
2919
9a49ad8c
AB
29202020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2921
2922 * ada-lang.c (ada_language_data): Delete la_compute_program
2923 initializer.
2924 * c-lang.c (c_language_data): Likewise.
2925 (c_language::compute_program): New member function.
2926 (cplus_language_data): Delete la_compute_program initializer.
2927 (cplus_language::compute_program): New member function.
2928 (asm_language_data): Delete la_compute_program initializer.
2929 (minimal_language_data): Likewise.
2930 * c-lang.h (c_compute_program): Update comment.
2931 (cplus_compute_program): Likewise.
2932 * compile/compile-c-support.c (c_compute_program): Likewise.
2933 (cplus_compute_program): Likewise.
2934 * compile/compile.c (compile_to_object): Update call to
2935 la_compute_program.
2936 * d-lang.c (d_language_data): Delete la_compute_program
2937 initializer.
2938 * f-lang.c (f_language_data): Likewise.
2939 * go-lang.c (go_language_data): Likewise.
2940 * language.c (unknown_language_data): Likewise.
2941 (auto_language_data): Likewise.
2942 * language.h (language_data): Delete la_compute_program field.
2943 (language_defn::compute_program): New member function.
2944 * m2-lang.c (m2_language_data): Delete la_compute_program
2945 initializer.
2946 * objc-lang.c (objc_language_data): Likewise.
2947 * opencl-lang.c (opencl_language_data): Likewise.
2948 * p-lang.c (pascal_language_data): Likewise.
2949 * rust-lang.c (rust_language_data): Likewise.
2950
eff93b4d
AB
29512020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2952
2953 * ada-lang.c (ada_language_data) Delete
2954 la_class_name_from_physname initializer.
2955 * c-lang.c (c_language_data): Likewise.
2956 (cplus_language_data): Likewise.
2957 (cplus_language::class_name_from_physname): New member function.
2958 (asm_language_data): Delete la_class_name_from_physname
2959 initializer.
2960 (minimal_language_data): Likewise.
2961 * d-lang.c (d_language_data): Likewise.
2962 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
2963 method on language_defn class.
2964 (guess_full_die_structure_name): Likewise.
2965 * f-lang.c (f_language_data): Delete la_class_name_from_physname
2966 initializer.
2967 * go-lang.c (go_language_data): Likewise.
2968 * language.c (language_class_name_from_physname): Delete.
2969 (unk_lang_class_name): Delete.
2970 (unknown_language_data): Delete la_class_name_from_physname
2971 initializer.
2972 (auto_language_data): Likewise.
2973 * language.h (language_data): Delete la_class_name_from_physname
2974 field.
2975 (language_defn::class_name_from_physname): New function.
2976 (language_class_name_from_physname): Delete declaration.
2977 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
2978 initializer.
2979 * objc-lang.c (objc_language_data): Likewise.
2980 * opencl-lang.c (opencl_language_data): Likewise.
2981 * p-lang.c (pascal_language_data): Likewise.
2982 * rust-lang.c (rust_language_data): Likewise.
2983
de543742
TT
29842020-06-16 Tom Tromey <tom@tromey.com>
2985
2986 * tui/tui-data.h (STATUS_NAME): New macro.
2987 * tui/tui-layout.c (tui_remove_some_windows)
2988 (initialize_known_windows, tui_register_window)
2989 (tui_layout_split::remove_windows, initialize_layouts)
2990 (tui_new_layout_command): Don't use hard-coded window names.
2991
a350efd4
TT
29922020-06-16 Tom Tromey <tom@tromey.com>
2993
2994 PR tui/25348:
2995 * tui/tui.c (tui_ensure_readline_initialized): Rename from
2996 tui_initialize_readline. Only run once. Call rl_initialize.
2997 * tui/tui.h (tui_ensure_readline_initialized): Rename from
2998 tui_initialize_readline.
2999 * tui/tui-io.c (tui_setup_io): Call
3000 tui_ensure_readline_initialized.
3001 * tui/tui-interp.c (tui_interp::init): Update.
3002
39ec0490
TT
30032020-06-16 Tom Tromey <tom@tromey.com>
3004
3005 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
3006 Also preserve the status window.
3007
d2d1ea20
TT
30082020-06-16 Tom Tromey <tom@tromey.com>
3009
3010 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
3011 where m_window==nullptr.
3012
66920317
TT
30132020-06-15 Tom Tromey <tromey@adacore.com>
3014
3015 * windows-nat.c (windows_nat::handle_output_debug_string):
3016 Update.
3017 (windows_nat::handle_ms_vc_exception): Update.
3018 * target.h (target_read_string): Change API.
3019 * target.c (target_read_string): Change API.
3020 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
3021 Update.
3022 * solib-frv.c (frv_current_sos): Update.
3023 * solib-dsbt.c (dsbt_current_sos): Update.
3024 * solib-darwin.c (darwin_current_sos): Update.
3025 * linux-thread-db.c (inferior_has_bug): Update.
3026 * expprint.c (print_subexp_standard): Update.
3027 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
3028 (ada_exception_message_1): Update.
3029
a5d871dd
TT
30302020-06-15 Tom Tromey <tromey@adacore.com>
3031
3032 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
3033
670e35fa
TT
30342020-06-15 Tom Tromey <tromey@adacore.com>
3035
3036 * valprint.c (read_string): Update comment.
3037 * target.c (MIN): Remove.
3038 (target_read_string): Rewrite.
3039
f5272a3b
TT
30402020-06-15 Tom Tromey <tromey@adacore.com>
3041
3042 * corefile.c (read_memory_string): Remove.
3043 * ada-valprint.c (ada_value_print_ptr): Update.
3044 * ada-lang.h (ada_tag_name): Change return type.
3045 * ada-lang.c (type_from_tag): Update.
3046 (ada_tag_name_from_tsd): Change return type. Use
3047 target_read_string.
3048 (ada_tag_name): Likewise.
3049 * gdbcore.h (read_memory_string): Don't declare.
3050
2c074f49
HD
30512020-06-14 Hannes Domani <ssbssa@yahoo.de>
3052
3053 * symtab.c (rbreak_command): Ignore Windows drive colon.
3054
6a17d503
SM
30552020-06-12 Simon Marchi <simon.marchi@efficios.com>
3056
3057 * NEWS: Mention removed GDBserver host support.
3058
453c733f
NC
30592020-06-12 Nelson Chu <nelson.chu@sifive.com>
3060
3061 * features/riscv/rebuild-csr-xml.sh: Updated.
3062
2b4e6a3f
TT
30632020-06-11 Tom Tromey <tom@tromey.com>
3064
3065 PR gdb/18318:
3066 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
3067
4412332f
JG
30682020-06-09 Jonny Grant <jg@jguk.org>
30692020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
3070
3071 * main.c (captured_main_1): Don't print new line after help.
3072 (print_gdb_help): add mailing list and IRC channel information
3073 to --help. Add new lines between items in the footer. Remove
3074 quotes around bug url.
3075
2f33032a
KS
30762020-06-11 Keith Seitz <keiths@redhat.com>
3077
3078 PR gdb/21356
3079 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
3080 Resolve typedefs for type length calculations.
3081
7ab96794
TV
30822020-06-10 Tom de Vries <tdevries@suse.de>
3083
3084 PR ada/24713
3085 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
3086 (write_psymbols): Enable .gdb_index for ada.
3087 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
3088 ada.
3089
e5f3ece2
TV
30902020-06-10 Tom de Vries <tdevries@suse.de>
3091
3092 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
3093 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
3094 namei" instead of "const char *name" argument.
3095 (dw2_map_matching_symbols): Use "offset_type namei" variant of
3096 dw2_symtab_iter_init.
3097
940da03e
SM
30982020-06-08 Simon Marchi <simon.marchi@efficios.com>
3099
3100 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
3101 to use type::field and field::type instead.
3102
b6cdac4b
SM
31032020-06-08 Simon Marchi <simon.marchi@efficios.com>
3104
3105 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
3106 to use field::type instead.
3107
5d14b6e5
SM
31082020-06-08 Simon Marchi <simon.marchi@efficios.com>
3109
3110 * gdbtypes.h (struct field) <type, set_type>: New methods.
3111 Rename `type` field to...
3112 <m_type>: ... this. Change references throughout to use type or
3113 set_type methods.
3114 (FIELD_TYPE): Use field::type. Change call sites that modify
3115 the field's type to use field::set_type instead.
3116
3d967001
SM
31172020-06-08 Simon Marchi <simon.marchi@efficios.com>
3118
3119 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
3120 to use type::index_type instead.
3121
262abc0d
SM
31222020-06-08 Simon Marchi <simon.marchi@efficios.com>
3123
3124 * gdbtypes.h (struct type) <index_type, set_index_type>: New
3125 methods.
3126 (TYPE_INDEX_TYPE): Use type::index_type.
3127 * gdbtypes.c (create_array_type_with_stride): Likewise.
3128
82836c92
TT
31292020-06-07 Tom Tromey <tom@tromey.com>
3130
3131 * valprint.c (generic_val_print_float): Remove "embedded_offset"
3132 parameter.
3133 (generic_value_print): Update.
3134
940dace9
AB
31352020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
3136
3137 Revert commit 982a38f60b0.
3138 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
3139
982a38f6
AB
31402020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
3141
3142 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
3143 avoid use after free.
3144
82f06518
TV
31452020-06-05 Tom de Vries <tdevries@suse.de>
3146
3147 * NEWS: Fix typos.
3148
f8c41851
SM
31492020-06-04 Simon Marchi <simon.marchi@efficios.com>
3150
3151 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
3152 the per_bfd object.
3153 (dwarf2_read_debug_names): Likewise.
3154 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
3155 object when re-using a per_bfd object with an index.
3156
f9b5d5ea
TV
31572020-06-03 Tom de Vries <tdevries@suse.de>
3158
3159 PR symtab/26046
3160 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
3161 children for C++.
3162 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
3163 DW_TAG_subprogram.
3164
f6eee2d0
AB
31652020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3166
3167 * ada-lang.c (ada_language_data): Delete skip_trampoline
3168 initializer.
3169 * c-lang.c (c_language_data): Likewise.
3170 (cplus_language_data): Likewise.
3171 (cplus_language::skip_trampoline): New member function.
3172 (asm_language_data): Delete skip_trampoline initializer.
3173 (minimal_language_data): Likewise.
3174 * d-lang.c (d_language_data): Likewise.
3175 * f-lang.c (f_language_data): Likewise.
3176 * go-lang.c (go_language_data): Likewise.
3177 * language.c (unk_lang_trampoline): Delete function.
3178 (skip_language_trampoline): Update.
3179 (unknown_language_data): Delete skip_trampoline initializer.
3180 (auto_language_data): Likewise.
3181 * language.h (language_data): Delete skip_trampoline field.
3182 (language_defn::skip_trampoline): New function.
3183 * m2-lang.c (m2_language_data): Delete skip_trampoline
3184 initializer.
3185 * objc-lang.c (objc_skip_trampoline): Delete function, move
3186 implementation to objc_language::skip_trampoline.
3187 (objc_language_data): Delete skip_trampoline initializer.
3188 (objc_language::skip_trampoline): New member function with
3189 implementation from objc_skip_trampoline.
3190 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
3191 initializer.
3192 * p-lang.c (pascal_language_data): Likewise.
3193 * rust-lang.c (rust_language_data): Likewise.
3194
0a50df5d
AB
31952020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3196
3197 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
3198 (ada_language::demangle): New member function.
3199 * c-lang.c (c_language_data): Delete la_demangle initializer.
3200 (cplus_language_data): Delete la_demangle initializer.
3201 (cplus_language::demangle): New member function.
3202 (asm_language_data): Delete la_demangle initializer.
3203 (minimal_language_data): Delete la_demangle initializer.
3204 * d-lang.c (d_language_data): Delete la_demangle initializer.
3205 (d_language::demangle): New member function.
3206 * f-lang.c (f_language_data): Delete la_demangle initializer.
3207 (f_language::demangle): New member function.
3208 * go-lang.c (go_language_data): Delete la_demangle initializer.
3209 (go_language::demangle): New member function.
3210 * language.c (language_demangle): Update.
3211 (unk_lang_demangle): Delete.
3212 (unknown_language_data): Delete la_demangle initializer.
3213 (unknown_language::demangle): New member function.
3214 (auto_language_data): Delete la_demangle initializer.
3215 (auto_language::demangle): New member function.
3216 * language.h (language_data): Delete la_demangle field.
3217 (language_defn::demangle): New function.
3218 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
3219 * objc-lang.c (objc_language_data): Delete la_demangle
3220 initializer.
3221 (objc_language::demangle): New member function.
3222 * opencl-lang.c (opencl_language_data): Delete la_demangle
3223 initializer.
3224 * p-lang.c (pascal_language_data): Likewise.
3225 * rust-lang.c (rust_language_data): Likewise.
3226 (rust_language::demangle): New member function.
3227
fbfb0a46
AB
32282020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3229
3230 * ada-lang.c (ada_language_data): Delete la_print_type
3231 initializer.
3232 (ada_language::print_type): New member function.
3233 * c-lang.c (c_language_data): Delete la_print_type initializer.
3234 (c_language::print_type): New member function.
3235 (cplus_language_data): Delete la_print_type initializer.
3236 (cplus_language::print_type): New member function.
3237 (asm_language_data): Delete la_print_type initializer.
3238 (asm_language::print_type): New member function.
3239 (minimal_language_data): Delete la_print_type initializer.
3240 (minimal_language::print_type): New member function.
3241 * d-lang.c (d_language_data): Delete la_print_type initializer.
3242 (d_language::print_type): New member function.
3243 * f-lang.c (f_language_data): Delete la_print_type initializer.
3244 (f_language::print_type): New member function.
3245 * go-lang.c (go_language_data): Delete la_print_type initializer.
3246 (go_language::print_type): New member function.
3247 * language.c (unk_lang_print_type): Delete.
3248 (unknown_language_data): Delete la_print_type initializer.
3249 (unknown_language::print_type): New member function.
3250 (auto_language_data): Delete la_print_type initializer.
3251 (auto_language::print_type): New member function.
3252 * language.h (language_data): Delete la_print_type field.
3253 (language_defn::print_type): New function.
3254 (LA_PRINT_TYPE): Update.
3255 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
3256 (m2_language::print_type): New member function.
3257 * objc-lang.c (objc_language_data): Delete la_print_type
3258 initializer.
3259 (objc_language::print_type): New member function.
3260 * opencl-lang.c (opencl_print_type): Delete, implementation moved
3261 to opencl_language::print_type.
3262 (opencl_language_data): Delete la_print_type initializer.
3263 (opencl_language::print_type): New member function, implementation
3264 from opencl_print_type.
3265 * p-lang.c (pascal_language_data): Delete la_print_type
3266 initializer.
3267 (pascal_language::print_type): New member function.
3268 * rust-lang.c (rust_print_type): Delete, implementation moved to
3269 rust_language::print_type.
3270 (rust_language_data): Delete la_print_type initializer.
3271 (rust_language::print_type): New member function, implementation
3272 from rust_print_type.
3273
6f827019
AB
32742020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3275
3276 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
3277 implementation moves to...
3278 (ada_language::sniff_from_mangled_name): ...here. Update return
3279 type.
3280 (ada_language_data): Delete la_sniff_from_mangled_name
3281 initializer.
3282 * c-lang.c (c_language_data): Likewise.
3283 (cplus_language_data): Likewise.
3284 (cplus_language::sniff_from_mangled_name): New member function,
3285 implementation taken from gdb_sniff_from_mangled_name.
3286 (asm_language_data): Delete la_sniff_from_mangled_name
3287 initializer.
3288 (minimal_language_data): Likewise.
3289 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
3290 implementation moves to cplus_language::sniff_from_mangled_name.
3291 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
3292 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
3293 moves to...
3294 (d_language::sniff_from_mangled_name): ...here.
3295 (d_language_data): Delete la_sniff_from_mangled_name initializer.
3296 * f-lang.c (f_language_data): Likewise.
3297 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
3298 moves to...
3299 (go_language::sniff_from_mangled_name): ...here.
3300 (go_language_data): Delete la_sniff_from_mangled_name initializer.
3301 * language.c (language_sniff_from_mangled_name): Delete.
3302 (unknown_language_data): Delete la_sniff_from_mangled_name
3303 initializer.
3304 (auto_language_data): Likewise.
3305 * language.h (language_data): Delete la_sniff_from_mangled_name
3306 field.
3307 (language_defn::sniff_from_mangled_name): New function.
3308 (language_sniff_from_mangled_name): Delete declaration.
3309 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
3310 field.
3311 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
3312 implementation moves to...
3313 (objc_language::sniff_from_mangled_name): ...here.
3314 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
3315 * opencl-lang.c (opencl_language_data): Likewise.
3316 * p-lang.c (pascal_language_data): Likewise.
3317 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
3318 implementation moves to...
3319 (rust_language::sniff_from_mangled_name): ...here.
3320 (rust_language_data): Delete la_sniff_from_mangled_name
3321 initializer.
3322 * symtab.c (symbol_find_demangled_name): Call
3323 sniff_from_mangled_name member function.
3324
fb8006fd
AB
33252020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3326
3327 * ada-lang.c (ada_language_data): Delete la_search_name_hash
3328 initializer.
3329 * c-lang.c (c_language_data): Likewise.
3330 (cplus_language_data): Likewise.
3331 (cplus_language::search_name_hash): New member function.
3332 (asm_language_data): Delete la_search_name_hash initializer.
3333 (minimal_language_data): Likewise.
3334 * d-lang.c (d_language_data): Likewise.
3335 * dictionary.c (default_search_name_hash): Rename to...
3336 (language_defn::search_name_hash): ...this.
3337 * f-lang.c (f_language_data): Likewise.
3338 (f_language::search_name_hash): New member function.
3339 * go-lang.c (go_language_data): Delete la_search_name_hash
3340 initializer.
3341 * language.c (unknown_language_data): Likewise.
3342 (auto_language_data): Likewise.
3343 * language.h (struct language_data): Delete la_search_name_hash
3344 field.
3345 (language_defn::search_name_hash): Declare new member function.
3346 (default_search_name_hash): Delete declaration.
3347 * m2-lang.c (m2_language_data): Delete la_search_name_hash
3348 initializer.
3349 * objc-lang.c (objc_language_data): Likewise.
3350 * opencl-lang.c (opencl_language_data): Likewise.
3351 * p-lang.c (pascal_language_data): Likewise.
3352 * rust-lang.c (rust_language_data): Likewise.
3353 * symtab.c (search_name_hash): Update call.
3354
8e25bafe
AB
33552020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3356
3357 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
3358 initializer.
3359 * c-lang.c (class compile_instance): Declare.
3360 (c_language_data): Delete la_get_compile_instance initializer.
3361 (c_language::get_compile_instance): New member function.
3362 (cplus_language_data): Delete la_get_compile_instance initializer.
3363 (cplus_language::get_compile_instance): New member function.
3364 (asm_language_data): Delete la_get_compile_instance initializer.
3365 (minimal_language_data): Likewise.
3366 * c-lang.h (c_get_compile_context): Update comment.
3367 (cplus_get_compile_context): Update comment.
3368 * compile/compile.c (compile_to_object): Update calls, don't rely
3369 on function pointer being NULL.
3370 * d-lang.c (d_language_data): Delete la_get_compile_instance
3371 initializer.
3372 * f-lang.c (f_language_data): Likewise.
3373 * go-lang.c (go_language_data): Likewise.
3374 * language.c (unknown_language_data): Likewise.
3375 (auto_language_data): Likewise.
3376 * language.h (language_data): Delete la_get_compile_instance field.
3377 (language_defn::get_compile_instance): New member function.
3378 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
3379 initializer.
3380 * objc-lang.c (objc_language_data): Likewise.
3381 * opencl-lang.c (opencl_language_data): Likewise.
3382 * p-lang.c (pascal_language_data): Likewise.
3383 * rust-lang.c (rust_language_data): Likewise.
3384
4009ee92
AB
33852020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3386
3387 * ada-lang.c (ada_add_all_symbols): Update comment.
3388 (ada_iterate_over_symbols): Delete, move implementation to...
3389 (ada_language::iterate_over_symbols): ...here, a new member
3390 function, rewrite to use range based for loop.
3391 (ada_language_data): Delete la_iterate_over_symbols initializer.
3392 * c-lang.c (c_language_data): Likewise.
3393 (cplus_language_data): Likewise.
3394 (asm_language_data): Likewise.
3395 (minimal_language_data): Likewise.
3396 * d-lang.c (d_language_data): Likewise.
3397 * f-lang.c (f_language_data): Likewise.
3398 * go-lang.c (go_language_data): Likewise.
3399 * language.c (unknown_language_data): Likewise.
3400 (auto_language_data): Likewise.
3401 * language.h (language_data): Delete la_iterate_over_symbols field.
3402 (language_defn::iterate_over_symbols): New member function.
3403 (LA_ITERATE_OVER_SYMBOLS): Update.
3404 * linespec.c (iterate_over_all_matching_symtabs): Update.
3405 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
3406 initializer.
3407 * objc-lang.c (objc_language_data): Likewise.
3408 * opencl-lang.c (opencl_language_data): Likewise.
3409 * p-lang.c (pascal_language_data): Likewise.
3410 * rust-lang.c (rust_language_data): Likewise.
3411
54f4ca46
AB
34122020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3413
3414 * ada-lang.c (ada_language_data): Delete
3415 la_lookup_transparent_type initializer.
3416 * c-lang.c (c_language_data): Likewise.
3417 (cplus_language_data): Likewise.
3418 (cplus_language::lookup_transparent_type): New member function.
3419 (asm_language_data): Delete la_lookup_transparent_type
3420 initializer.
3421 (minimal_language_data): Likewise.
3422 * d-lang.c (d_language_data): Likewise.
3423 * f-lang.c (f_language_data): Likewise.
3424 * go-lang.c (go_language_data): Likewise.
3425 * language.c (unknown_language_data): Likewise.
3426 (auto_language_data): Likewise.
3427 * language.h (struct language_data): Delete
3428 la_lookup_transparent_type field.
3429 (language_defn::lookup_transparent_type): New member function.
3430 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
3431 initializer.
3432 * objc-lang.c (objc_language_data): Likewise.
3433 * opencl-lang.c (opencl_language_data): Likewise.
3434 * p-lang.c (pascal_language_data): Likewise.
3435 * rust-lang.c (rust_language_data): Likewise.
3436 * symtab.c (symbol_matches_domain): Update call.
3437
1fb314aa
AB
34382020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3439
3440 * ada-lang.c (ada_language_arch_info): Delete function, move
3441 implementation to...
3442 (ada_language::language_arch_info): ...here, a new member
3443 function.
3444 (ada_language_data): Delete la_language_arch_info.
3445 * c-lang.c (c_language_data): Likewise.
3446 (c_language::language_arch_info): New member function.
3447 (cplus_language_arch_info): Delete function, move
3448 implementation to...
3449 (cplus_language::language_arch_info): ...here, a new member
3450 function.
3451 (cplus_language_data): Delete la_language_arch_info.
3452 (asm_language_data): Likewise.
3453 (asm_language::language_arch_info): New member function.
3454 (minimal_language_data): Delete la_language_arch_info.
3455 (minimal_language::language_arch_info): New member function.
3456 * d-lang.c (d_language_arch_info): Delete function, move
3457 implementation to...
3458 (d_language::language_arch_info): ...here, a new member
3459 function.
3460 (d_language_data): Delete la_language_arch_info.
3461 * f-lang.c (f_language_arch_info): Delete function, move
3462 implementation to...
3463 (f_language::language_arch_info): ...here, a new member
3464 function.
3465 (f_language_data): Delete la_language_arch_info.
3466 * go-lang.c (go_language_arch_info): Delete function, move
3467 implementation to...
3468 (go_language::language_arch_info): ...here, a new member
3469 function.
3470 (go_language_data): Delete la_language_arch_info.
3471 * language.c (unknown_language_data): Likewise.
3472 (unknown_language::language_arch_info): New member function.
3473 (auto_language_data): Delete la_language_arch_info.
3474 (auto_language::language_arch_info): New member function.
3475 (language_gdbarch_post_init): Update call to
3476 la_language_arch_info.
3477 * language.h (language_data): Delete la_language_arch_info
3478 function pointer.
3479 (language_defn::language_arch_info): New function.
3480 * m2-lang.c (m2_language_arch_info): Delete function, move
3481 implementation to...
3482 (m2_language::language_arch_info): ...here, a new member
3483 function.
3484 (m2_language_data): Delete la_language_arch_info.
3485 * objc-lang.c (objc_language_arch_info): Delete function, move
3486 implementation to...
3487 (objc_language::language_arch_info): ...here, a new member
3488 function.
3489 (objc_language_data): Delete la_language_arch_info.
3490 * opencl-lang.c (opencl_language_arch_info): Delete function, move
3491 implementation to...
3492 (opencl_language::language_arch_info): ...here, a new member
3493 function.
3494 (opencl_language_data): Delete la_language_arch_info.
3495 * p-lang.c (pascal_language_arch_info): Delete function, move
3496 implementation to...
3497 (pascal_language::language_arch_info): ...here, a new member
3498 function.
3499 (pascal_language_data): Delete la_language_arch_info.
3500 * rust-lang.c (rust_language_arch_info): Delete function, move
3501 implementation to...
3502 (rust_language::language_arch_info): ...here, a new member
3503 function.
3504 (rust_language_data): Delete la_language_arch_info.
3505
48448202
AB
35062020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3507
3508 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
3509 initializer.
3510 * c-lang.c (c_language_data): Likewise.
3511 (cplus_language_data): Likewise.
3512 (cplus_language::pass_by_reference_info): New method.
3513 (asm_language_data): Delete la_pass_by_reference initializer.
3514 (minimal_language_data): Likewise.
3515 * cp-abi.c (cp_pass_by_reference): Remove use of
3516 default_pass_by_reference.
3517 * d-lang.c (d_language_data): Likewise.
3518 * f-lang.c (f_language_data): Likewise.
3519 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
3520 default_pass_by_reference.
3521 * go-lang.c (go_language_data): Likewise.
3522 * language.c (language_pass_by_reference): Update.
3523 (default_pass_by_reference): Delete.
3524 (unknown_language_data): Delete la_pass_by_reference
3525 initializer.
3526 (auto_language_data): Likewise.
3527 * language.h (struct language_data): Delete la_pass_by_reference
3528 field.
3529 (language_defn::pass_by_reference_info): New member function.
3530 (default_pass_by_reference): Delete declaration.
3531 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
3532 initializer.
3533 * objc-lang.c (objc_language_data): Likewise.
3534 * opencl-lang.c (opencl_language_data): Likewise.
3535 * p-lang.c (pascal_language_data): Likewise.
3536 * rust-lang.c (rust_language_data): Likewise.
3537
15e5fd35
AB
35382020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3539
3540 * ada-lang.c (ada_read_var_value): Delete function, move
3541 implementation to...
3542 (ada_language::read_var_value): ...here.
3543 (ada_language_data): Delete la_read_var_value initializer.
3544 * c-lang.c (c_language_data): Likewise.
3545 (cplus_language_data): Likewise.
3546 (minimal_language_data): Likewise.
3547 * d-lang.c (d_language_data): Likewise.
3548 * f-lang.c (f_language_data): Likewise.
3549 * findvar.c (default_read_var_value): Rename to...
3550 (language_defn::read_var_value): ...this.
3551 * findvar.c (read_var_value): Update header comment, and change to
3552 call member function instead of function pointer.
3553 * go-lang.c (go_language_data): Likewise.
3554 * language.c (unknown_language_data): Delete la_read_var_value
3555 initializer.
3556 (auto_language_data): Likewise.
3557 * language.h (struct language_data): Delete la_read_var_value
3558 field.
3559 (language_defn::read_var_value): New member function.
3560 (default_read_var_value): Delete declaration.
3561 * m2-lang.c (m2_language_data): Delete la_read_var_value
3562 initializer.
3563 * objc-lang.c (objc_language_data): Likewise.
3564 * opencl-lang.c (opencl_language_data): Likewise.
3565 * p-lang.c (pascal_language_data): Likewise.
3566 * rust-lang.c (rust_language_data): Likewise.
3567 * value.h (default_read_var_value): Delete declaration.
3568
5bd40f2a
AB
35692020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3570
3571 * ada-lang.c (ada_print_array_index): Delete function, move
3572 implementation to...
3573 (ada_language::print_array_index): ...here.
3574 (ada_language_data): Delete la_print_array_index initializer.
3575 * c-lang.c (c_language_data): Likewise.
3576 (cplus_language_data): Likewise.
3577 (minimal_language_data): Likewise.
3578 * d-lang.c (d_language_data): Likewise.
3579 * f-lang.c (f_language_data): Likewise.
3580 * go-lang.c (go_language_data): Likewise.
3581 * language.c (default_print_array_index): Delete function, move
3582 implementation to...
3583 (language_defn::print_array_index): ...here.
3584 (unknown_language_data): Delete la_print_array_index initializer.
3585 (auto_language_data): Likewise.
3586 * language.h (struct language_data): Delete la_print_array_index
3587 field.
3588 (language_defn::print_array_index): New member function.
3589 (LA_PRINT_ARRAY_INDEX): Update.
3590 (default_print_array_index): Delete declaration.
3591 * m2-lang.c (m2_language_data): Delete la_print_array_index
3592 initializer.
3593 * objc-lang.c (objc_language_data): Likewise.
3594 * opencl-lang.c (opencl_language_data): Likewise.
3595 * p-lang.c (pascal_language_data): Likewise.
3596 * rust-lang.c (rust_language_data): Likewise.
3597
0874fd07
AB
35982020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3599
3600 * gdb/ada-lang.c (ada_language_defn): Convert to...
3601 (ada_language_data): ...this.
3602 (class ada_language): New class.
3603 (ada_language_defn): New static global.
3604 * gdb/c-lang.c (c_language_defn): Convert to...
3605 (c_language_data): ...this.
3606 (class c_language): New class.
3607 (c_language_defn): New static global.
3608 (cplus_language_defn): Convert to...
3609 (cplus_language_data): ...this.
3610 (class cplus_language): New class.
3611 (cplus_language_defn): New static global.
3612 (asm_language_defn): Convert to...
3613 (asm_language_data): ...this.
3614 (class asm_language): New class.
3615 (asm_language_defn): New static global.
3616 (minimal_language_defn): Convert to...
3617 (minimal_language_data): ...this.
3618 (class minimal_language): New class.
3619 (minimal_language_defn): New static global.
3620 * gdb/d-lang.c (d_language_defn): Convert to...
3621 (d_language_data): ...this.
3622 (class d_language): New class.
3623 (d_language_defn): New static global.
3624 * gdb/f-lang.c (f_language_defn): Convert to...
3625 (f_language_data): ...this.
3626 (class f_language): New class.
3627 (f_language_defn): New static global.
3628 * gdb/go-lang.c (go_language_defn): Convert to...
3629 (go_language_data): ...this.
3630 (class go_language): New class.
3631 (go_language_defn): New static global.
3632 * gdb/language.c (unknown_language_defn): Remove declaration.
3633 (current_language): Initialize to nullptr, real initialization is
3634 moved to _initialize_language.
3635 (languages): Delete global.
3636 (language_defn::languages): Define.
3637 (set_language_command): Use language_defn::languages.
3638 (set_language): Likewise.
3639 (range_error): Likewise.
3640 (language_enum): Likewise.
3641 (language_def): Likewise.
3642 (add_set_language_command): Use language_def::languages for the
3643 language list, and language_def to lookup language pointers.
3644 (skip_language_trampoline): Use language_defn::languages.
3645 (unknown_language_defn): Convert to...
3646 (unknown_language_data): ...this.
3647 (class unknown_language): New class.
3648 (unknown_language_defn): New static global.
3649 (auto_language_defn): Convert to...
3650 (auto_language_data): ...this.
3651 (class auto_language): New class.
3652 (auto_language_defn): New static global.
3653 (language_gdbarch_post_init): Use language_defn::languages.
3654 (_initialize_language): Initialize current_language.
3655 * gdb/language.h (struct language_defn): Rename to...
3656 (struct language_data): ...this.
3657 (struct language_defn): New.
3658 (auto_language_defn): Delete.
3659 (unknown_language_defn): Delete.
3660 (minimal_language_defn): Delete.
3661 (ada_language_defn): Delete.
3662 (asm_language_defn): Delete.
3663 (c_language_defn): Delete.
3664 (cplus_language_defn): Delete.
3665 (d_language_defn): Delete.
3666 (f_language_defn): Delete.
3667 (go_language_defn): Delete.
3668 (m2_language_defn): Delete.
3669 (objc_language_defn): Delete.
3670 (opencl_language_defn): Delete.
3671 (pascal_language_defn): Delete.
3672 (rust_language_defn): Delete.
3673 * gdb/m2-lang.c (m2_language_defn): Convert to...
3674 (m2_language_data): ...this.
3675 (class m2_language): New class.
3676 (m2_language_defn): New static global.
3677 * gdb/objc-lang.c (objc_language_defn): Convert to...
3678 (objc_language_data): ...this.
3679 (class objc_language): New class.
3680 (objc_language_defn): New static global.
3681 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
3682 (opencl_language_data): ...this.
3683 (class opencl_language): New class.
3684 (opencl_language_defn): New static global.
3685 * gdb/p-lang.c (pascal_language_defn): Convert to...
3686 (pascal_language_data): ...this.
3687 (class pascal_language): New class.
3688 (pascal_language_defn): New static global.
3689 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
3690 language pointer, update comment format.
3691 * gdb/rust-lang.c (rust_language_defn): Convert to...
3692 (rust_language_data): ...this.
3693 (class rust_language): New class.
3694 (rust_language_defn): New static global.
3695
1313c56e
AB
36962020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
3697
3698 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
3699 member variable.
3700 <m_stmt_at_address>: New member variable.
3701 (lnp_state_machine::record_line): Don't record some lines, update
3702 tracking of is_stmt at the same address.
3703 (lnp_state_machine::lnp_state_machine): Initialise new member
3704 variables.
3705
b7ed9f3d
ST
37062020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
3707
3708 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
3709 "-include gnu-nat-mig.h".
3710 * gnu-nat-mig.h: New file.
3711 * gnu-nat.c: Include "gnu-nat-mig.h".
3712 (exc_server, msg_reply_server, notify_server,
3713 process_reply_server): Remove declarations.
3714
14a8ad62
ST
37152020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3716
3717 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
3718 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
3719 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
3720 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
3721 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
3722 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
3723 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
3724 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
3725 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
3726 to gnu_nat_target class.
3727 * gnu-nat.c: Likewise.
3728 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
3729 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
3730 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
3731 object.
3732 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
3733 instead of `gnu_target'.
3734
0af5e106
ST
37352020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3736
3737 * i386-gnu-tdep.c: Include "gdbcore.h"
3738 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
3739 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
3740 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
3741 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
3742 i386_gnu_sigcontext_addr): New functions
3743 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
3744 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
3745 tdep.
3746
078f2fc9
ST
37472020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3748
3749 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
3750 before fork_inferior call. Avoid calling it if target_is_pushed returns
3751 true.
3752
53dff92c
ST
37532020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3754
3755 * gnu-nat.h (gnu_target): New variable declaration.
3756 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
3757 gnu_target.
3758 * gnu-nat.c (gnu_target): New variable.
3759 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
3760 add_thread_silent, and add_thread calls.
3761 (gnu_nat_target::create_inferior): Pass gnu_target to
3762 add_thread_silent, thread_change_ptid call.
3763 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
3764 call.
3765
5a8b8627
ST
37662020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3767
3768 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
3769 (gnu_nat_target::find_memory_regions): Remove unused
3770 `old_address' variable.
3771
366f550a
ST
37722020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3773
3774 * gnu-nat.c: Include "gdbarch.h".
3775
f14871bf
ST
37762020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3777
3778 * reply_mig_hack.awk (Error return): Cast function through
3779 void *, to bypass compiler function call check.
3780
c6887cfb
ST
37812020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3782
3783 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
3784 $(srcdir)/reply_mig_hack.awk.
3785
6930bffe
ST
37862020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3787
3788 * gnu-nat.h (gnu_debug_flag): Set type to bool.
3789
112c22ed
JG
37902020-05-30 Jonny Grant <jg@jguk.org>
3791
3792 * configure.ac (ACX_BUGURL): change bug URL to https.
3793
f68f85b5
PA
37942020-05-30 Pedro Alves <palves@redhat.com>
3795
3796 * cp-support.c (replace_typedefs_template): New.
3797 (replace_typedefs_qualified_name): Handle
3798 DEMANGLE_COMPONENT_TEMPLATE.
3799
976ca316
SM
38002020-05-29 Simon Marchi <simon.marchi@efficios.com>
3801
3802 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
3803 dwarf2/index-cache.h, dwarf2/index-write.c,
3804 dwarf2/index-write.h, dwarf2/line-header.c,
3805 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
3806 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
3807 variables and fields from `dwarf2_per_objfile` to just
3808 `per_objfile` throughout.
3809
989ade05
SM
38102020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
3811
3812 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
3813 <push_dwarf_reg_entry_value>: Add comment.
3814
c47bae85
KB
38152020-05-28 Kevin Buettner <kevinb@redhat.com>
3816 Keith Seitz <keiths@redhat.com>
3817
3818 * python/python.c (do_start_initialization): Call PyEval_SaveThread
3819 instead of PyEval_ReleaseLock.
3820 (class gdbpy_gil): Move to earlier in file.
3821 (finalize_python): Set gdb_python_initialized.
3822 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
3823 when not initialized.
3824
44486dcf
SM
38252020-05-28 Simon Marchi <simon.marchi@efficios.com>
3826
3827 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
3828 <push_dwarf_reg_entry_value>: Remove assert. Override
3829 per_objfile with caller_per_objfile.
3830
f030440d
TV
38312020-05-28 Tom de Vries <tdevries@suse.de>
3832
3833 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
3834 PR gold/15646 workaround to symbol kind "type".
3835
f0fbb768
TT
38362020-05-27 Tom Tromey <tromey@adacore.com>
3837
3838 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
3839
af0b2a3e
TT
38402020-05-27 Tom Tromey <tromey@adacore.com>
3841
3842 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
3843 Use htab_find_with_hash.
3844 <add_abbrev>: Remove "abbrev_number" parameter.
3845 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
3846 "abbrev_number" parameter. Use htab_find_slot_with_hash.
3847 (hash_abbrev): Add comment.
3848 (abbrev_table::lookup_abbrev): Move to header file.
3849 (abbrev_table::read): Update.
3850
7d00ffec
TT
38512020-05-27 Tom Tromey <tromey@adacore.com>
3852
3853 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
3854 method.
3855 <canonical_name>: New member.
3856 <raw_name>: Rename from "name".
3857 (partial_die_info): Initialize canonical_name.
3858 (scan_partial_symbols): Check raw_name.
3859 (partial_die_parent_scope, partial_die_full_name)
3860 (add_partial_symbol, add_partial_subprogram)
3861 (add_partial_enumeration, load_partial_dies): Use "name" method.
3862 (partial_die_info::name): New method.
3863 (partial_die_info::read, guess_partial_die_structure_name)
3864 (partial_die_info::fixup): Update.
3865
697bba18
TT
38662020-05-27 Tom Tromey <tromey@adacore.com>
3867
3868 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
3869 <get_ref_die_offset>: Inline.
3870 <get_ref_die_offset_complaint>: New method.
3871 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
3872 (attribute::get_ref_die_offset_complaint): Rename from
3873 get_ref_die_offset. Just issue complaint.
3874
c17ace43
HD
38752020-05-27 Hannes Domani <ssbssa@yahoo.de>
3876
3877 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
3878
96445f0b
HD
38792020-05-27 Hannes Domani <ssbssa@yahoo.de>
3880
3881 * exec.c (exec_file_attach): Use errno value of first openp failure.
3882
ac637ec3
HD
38832020-05-27 Hannes Domani <ssbssa@yahoo.de>
3884
3885 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
3886 Don't close thread handle.
3887
17ee85fc
TT
38882020-05-27 Tom Tromey <tom@tromey.com>
3889 Simon Marchi <simon.marchi@efficios.com>
3890
3891 * objfiles.h (struct objfile) <partial_symtabs>: Now a
3892 shared_ptr.
3893 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
3894 member.
3895 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
3896 dwarf2_per_bfd_objfile_data_key>: New globals.
3897 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
3898 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
3899 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
3900 shared.
3901 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
3902 short-circuit when sharing.
3903 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
3904 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
3905
39b16f87
SM
39062020-05-27 Simon Marchi <simon.marchi@efficios.com>
3907
3908 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
3909 to...
3910 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
3911 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
3912
fcf23d5b
SM
39132020-05-27 Simon Marchi <simon.marchi@efficios.com>
3914
3915 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
3916 build_name_components, find_name_components_bounds>:
3917 Add per_objfile parameter.
3918 (struct mapped_index) <symbol_name_at>: Likewise.
3919 (struct mapped_debug_names): Remove constructor.
3920 <dwarf2_per_objfile>: Remove field.
3921 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
3922 (mapped_index_base::find_name_components_bounds,
3923 mapped_index_base::build_name_components,
3924 dw2_expand_symtabs_matching_symbol): Likewise.
3925 (class mock_mapped_index) <symbol_name_at>: Likewise.
3926 (check_match): Likewise.
3927 (check_find_bounds_finds): Likewise.
3928 (test_mapped_index_find_name_component_bounds): Update.
3929 (CHECK_MATCH): Update.
3930 (dw2_expand_symtabs_matching): Update.
3931 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
3932 per_objfile parameter.
3933 <find_vec_in_debug_names>: Likewise.
3934 <m_per_objfile>: New field.
3935 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
3936 parameter.
3937 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
3938 (dw2_debug_names_iterator::next): Update.
3939 (dw2_debug_names_lookup_symbol): Update.
3940 (dw2_debug_names_expand_symtabs_for_function): Update.
3941 (dw2_debug_names_map_matching_symbols): Update.
3942 (dw2_debug_names_expand_symtabs_matching): Update.
3943 (dwarf2_read_debug_names): Update.
3944
7188ed02
SM
39452020-05-27 Simon Marchi <simon.marchi@efficios.com>
3946
3947 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
3948 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
3949 move to dwarf2_per_objfile.
3950 <read_in_chain>: Remove.
3951 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
3952 remove_all_cus, age_comp_units>: New methods.
3953 <m_dwarf2_cus>: New member.
3954 (struct dwarf2_per_cu_data) <cu>: Remove.
3955 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
3956 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
3957 moved to methods of dwarf2_per_objfile.
3958 (dwarf2_clear_marks): Remove.
3959 (dwarf2_queue_item::~dwarf2_queue_item): Update.
3960 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
3961 (dwarf2_per_bfd::free_cached_comp_units): Remove.
3962 (dwarf2_per_objfile::remove_all_cus): New.
3963 (class free_cached_comp_units) <~free_cached_comp_units>:
3964 Update.
3965 (load_cu): Update.
3966 (dw2_do_instantiate_symtab): Adjust.
3967 (fill_in_sig_entry_from_dwo_entry): Adjust.
3968 (cutu_reader::init_tu_and_read_dwo_dies): Update.
3969 (cutu_reader::cutu_reader): Likewise.
3970 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
3971 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
3972 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
3973 and dwarf2_per_objfile::age_comp_units.
3974 (load_partial_comp_unit): Update.
3975 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
3976 (process_queue): Likewise.
3977 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
3978 backlink.
3979 (dwarf2_read_addr_index): Likewise.
3980 (follow_die_offset): Likewise.
3981 (dwarf2_fetch_die_loc_sect_off): Likewise.
3982 (dwarf2_fetch_constant_bytes): Likewise.
3983 (dwarf2_fetch_die_type_sect_off): Likewise.
3984 (follow_die_sig_1): Likewise.
3985 (load_full_type_unit): Likewise.
3986 (read_signatured_type): Likewise.
3987 (dwarf2_cu::dwarf2_cu): Don't set cu field.
3988 (dwarf2_cu::~dwarf2_cu): Remove.
3989 (dwarf2_per_objfile::get_cu): New.
3990 (dwarf2_per_objfile::set_cu): New.
3991 (age_cached_comp_units): Rename to...
3992 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
3993 to std::unordered_map.
3994 (free_one_cached_comp_unit): Rename to...
3995 (dwarf2_per_objfile::remove_cu): ... this. Adjust
3996 to std::unordered_map.
3997 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
3998 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
3999 a dwarf2_per_objfile in data.
4000 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
4001 (dwarf2_clear_marks): Remove.
4002
2e671100
SM
40032020-05-27 Simon Marchi <simon.marchi@efficios.com>
4004
4005 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
4006 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
4007 (init_tu_and_read_dwo_dies): Likewise.
4008 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
4009 (cutu_reader::cutu_reader): Likewise.
4010 (load_partial_comp_unit): Likewise.
4011 (process_psymtab_comp_unit): Update.
4012 (build_type_psymtabs_1): Update.
4013 (process_skeletonless_type_unit): Update.
4014 (load_full_comp_unit): Update.
4015 (find_partial_die): Update.
4016 (dwarf2_read_addr_index): Update.
4017 (read_signatured_type): Update.
4018
2e6a9f79
SM
40192020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4020
4021 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
4022 m_header_read_in>: New fields.
4023 <get_header>: New method.
4024 * dwarf2/read.c (per_cu_header_read_in): Remove.
4025 (dwarf2_per_cu_data::get_header): New.
4026 (dwarf2_per_cu_data::addr_size): Update.
4027 (dwarf2_per_cu_data::offset_size): Update.
4028 (dwarf2_per_cu_data::ref_addr_size): Update.
4029
1b555f17
SM
40302020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4031
4032 * dwarf2/read.c (load_cu): Return dwarf2_cu.
4033 (dw2_do_instantiate_symtab): Update.
4034 (queue_and_load_all_dwo_tus): Change parameter from
4035 dwarf2_per_cu_data to dwarf2_cu.
4036 (dwarf2_fetch_die_loc_sect_off): Update.
4037 (dwarf2_fetch_constant_bytes): Update.
4038 (dwarf2_fetch_die_type_sect_off): Update.
4039
8fc0b21d
SM
40402020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4041
4042 * dwarf2/read.c (process_full_comp_unit,
4043 process_full_type_unit): Remove per_cu, per_objfile paramters.
4044 Add dwarf2_cu parameter.
4045 (process_queue): Update.
4046
168c9250
SM
40472020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4048
4049 * dwarf2/read.c (create_cu_from_index_list): Replace
4050 dwarf2_per_objfile parameter with dwarf2_per_bfd.
4051 (create_cus_from_index_list): Likewise.
4052 (create_cus_from_index): Likewise.
4053 (create_signatured_type_table_from_index): Likewise.
4054 (create_cus_from_debug_names_list): Likewise.
4055 (create_cus_from_debug_names): Likewise.
4056 (dwarf2_read_gdb_index): Update.
4057 (dwarf2_read_debug_names): Update.
4058
e286671b
TT
40592020-05-27 Tom Tromey <tom@tromey.com>
4060 Simon Marchi <simon.marchi@efficios.com>
4061
4062 * dwarf2/read.h (struct dwarf2_per_objfile)
4063 <get_type_for_signatured_type, set_type_for_signatured_type>:
4064 New methods.
4065 <m_type_map>: New member.
4066 (struct signatured_type) <type>: Remove.
4067 * dwarf2/read.c
4068 (dwarf2_per_objfile::get_type_for_signatured_type,
4069 dwarf2_per_objfile::set_type_for_signatured_type): New.
4070 (get_signatured_type): Use new methods.
4071
8adb8487
TT
40722020-05-27 Tom Tromey <tom@tromey.com>
4073 Simon Marchi <simon.marchi@efficios.com>
4074
4075 * dwarf2/read.h (struct type_unit_group_unshareable): New.
4076 (struct dwarf2_per_objfile) <type_units>: New member.
4077 <get_type_unit_group_unshareable>: New method.
4078 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
4079 num_symtabs, symtabs>: Remove; move to
4080 type_unit_group_unshareable.
4081 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
4082 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
4083 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
4084
127bbf4b
SM
40852020-05-27 Simon Marchi <simon.marchi@efficios.com>
4086
4087 * dwarf2/read.h (struct dwarf2_per_cu_data):
4088 <dwarf2_per_objfile>: Remove.
4089 * dwarf2/read.c (create_cu_from_index_list): Don't assign
4090 dwarf2_per_objfile.
4091 (create_signatured_type_table_from_index): Likewise.
4092 (create_signatured_type_table_from_debug_names): Likewise.
4093 (create_debug_type_hash_table): Likewise.
4094 (fill_in_sig_entry_from_dwo_entry): Likewise.
4095 (create_type_unit_group): Likewise.
4096 (read_comp_units_from_section): Likewise.
4097 (create_cus_hash_table): Likewise.
4098
f6e649dd
SM
40992020-05-27 Simon Marchi <simon.marchi@efficios.com>
4100
4101 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
4102 dwarf2_per_cu_data::dwarf2_per_objfile.
4103 (compute_compunit_symtab_includes): Likewise.
4104 (dwarf2_cu::start_symtab): Likewise.
4105
aa66c379
SM
41062020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4107
4108 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
4109 parameter.
4110 * dwarf2/read.c (get_die_type_at_offset): Likewise.
4111 (read_namespace_alias): Update.
4112 (lookup_die_type): Update.
4113 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
4114 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
4115 Update.
4116 (disassemble_dwarf_expression): Update.
4117
120ce1b5
SM
41182020-05-27 Simon Marchi <simon.marchi@efficios.com>
4119
4120 * dwarf2/read.h (struct dwarf2_queue_item): Add
4121 dwarf2_per_objfile parameter, assign new parameter.
4122 <per_objfile>: New field.
4123 * dwarf2/read.c (free_one_cached_comp_unit): Add
4124 dwarf2_per_objfile parameter.
4125 (queue_comp_unit): Likewise.
4126 (dw2_do_instantiate_symtab): Update.
4127 (process_psymtab_comp_unit): Update.
4128 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
4129 (process_imported_unit_die): Update.
4130 (queue_and_load_dwo_tu): Update.
4131 (follow_die_offset): Update.
4132 (follow_die_sig_1): Update.
4133
9f47c707
SM
41342020-05-27 Simon Marchi <simon.marchi@efficios.com>
4135
4136 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
4137 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
4138 (read_call_site_scope): Assign per_objfile.
4139 (dwarf2_per_cu_data::objfile): Remove.
4140 * gdbtypes.h (struct call_site) <per_objfile>: New member.
4141 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
4142 dwarf2_per_objfile parameter.
4143 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
4144 dwarf2_per_objfile parameter.
4145 (dwarf_expr_reg_to_entry_parameter): Add output
4146 dwarf2_per_objfile parameter.
4147 (locexpr_get_frame_base): Update.
4148 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
4149 <push_dwarf_reg_entry_value>: Update.
4150 <call_site_to_target_addr>: Update.
4151 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
4152 parameter.
4153 (value_of_dwarf_reg_entry): Update.
4154 (rw_pieced_value): Update.
4155 (indirect_synthetic_pointer): Update.
4156 (dwarf2_evaluate_property): Update.
4157 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
4158 parameter.
4159 (locexpr_read_variable): Update.
4160 (locexpr_get_symbol_read_needs): Update.
4161 (loclist_read_variable): Update.
4162
14095eb3
SM
41632020-05-27 Simon Marchi <simon.marchi@efficios.com>
4164
4165 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
4166 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
4167 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
4168 parameter.
4169 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
4170 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
4171 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
4172 parameter.
4173 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
4174 sect_variable_value): Add dwarf2_per_objfile parameter.
4175 (class dwarf_evaluate_loc_desc) <dwarf_call,
4176 dwarf_variable_value>: Update.
4177 (fetch_const_value_from_synthetic_pointer): Add
4178 dwarf2_per_objfile parameter.
4179 (fetch_const_value_from_synthetic_pointer): Update.
4180 (coerced_pieced_ref): Update.
4181 (class symbol_needs_eval_context) <dwarf_call,
4182 dwarf_variable_value>: Update.
4183 (dwarf2_compile_expr_to_ax): Update.
4184
3c3cd3d4
SM
41852020-05-27 Simon Marchi <simon.marchi@efficios.com>
4186
4187 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
4188 parameter.
4189 (dwarf2_evaluate_loc_desc_full): Update.
4190
82ca3f51
SM
41912020-05-27 Simon Marchi <simon.marchi@efficios.com>
4192
4193 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
4194 parameter.
4195 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
4196 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
4197 dwarf2_per_objfile parameter.
4198 (decode_debug_loc_dwo_addresses): Likewise.
4199 (dwarf2_find_location_expression): Update.
4200 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
4201 (locexpr_describe_location_piece): Add dwarf2_per_objfile
4202 parameter.
4203 (disassemble_dwarf_expression): Add dwarf2_per_objfile
4204 parameter.
4205 (locexpr_describe_location_1): Likewise.
4206 (locexpr_describe_location): Update.
4207
4b167ea1
SM
42082020-05-27 Simon Marchi <simon.marchi@efficios.com>
4209
4210 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
4211 Remove.
4212 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
4213 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
4214 (dwarf2_compile_property_to_c): Update.
4215 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
4216 use text offset from objfile.
4217 (locexpr_tracepoint_var_ref): Update.
4218 (locexpr_generate_c_location): Update.
4219 (loclist_describe_location): Update.
4220 (loclist_tracepoint_var_ref): Update.
4221 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
4222 dwarf2_per_objfile parameter.
4223 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
4224 use text offset from objfile.
4225 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
4226
89b07335
SM
42272020-05-27 Simon Marchi <simon.marchi@efficios.com>
4228
4229 * dwarf2/expr.h (struct dwarf_expr_context)
4230 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
4231 <offset>: Remove.
4232 <per_objfile>: New member.
4233 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
4234 dwarf2_per_objfile parameter. Don't set offset, set
4235 per_objfile.
4236 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
4237 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
4238 a dwarf2_per_objfile object instead of an offset.
4239 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
4240 constructor.
4241 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
4242 to dwarf2_expr_executor constructor. Don't set offset.
4243 (dwarf2_fetch_cfa_info): Update.
4244 (struct dwarf2_frame_cache) <text_offset>: Remove.
4245 <per_objfile>: New field.
4246 (dwarf2_frame_cache): Update.
4247 (dwarf2_frame_prev_register): Update.
4248 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
4249 <dwarf_evaluate_loc_desc>: Add constructor.
4250 (dwarf2_evaluate_loc_desc_full): Update.
4251 (dwarf2_locexpr_baton_eval): Update.
4252 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
4253 Add constructor.
4254 (dwarf2_loc_desc_get_symbol_read_needs): Update.
4255
293e7e51
SM
42562020-05-27 Simon Marchi <simon.marchi@efficios.com>
4257
4258 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
4259 addr_sized_int_type>: Move to dwarf2_cu.
4260 <int_type>: Move to dwarf2_per_objfile.
4261 (struct dwarf2_per_objfile) <int_type>: Move here.
4262 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
4263 addr_sized_int_type>: Move here.
4264 (read_func_scope): Update.
4265 (read_array_type): Update.
4266 (read_tag_string_type): Update.
4267 (attr_to_dynamic_prop): Update.
4268 (dwarf2_per_cu_data::int_type): Rename to...
4269 (dwarf2_per_objfile::int_type): ... this.
4270 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
4271 (dwarf2_cu::addr_sized_int_type): ... this.
4272 (read_subrange_type): Update.
4273 (dwarf2_per_cu_data::addr_type): Rename to...
4274 (dwarf2_cu::addr_type): ... this.
4275 (set_die_type): Update.
4276
64874a40
SM
42772020-05-27 Simon Marchi <simon.marchi@efficios.com>
4278
4279 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
4280 data through per_cu->cu.
4281
4ab09049
SM
42822020-05-27 Simon Marchi <simon.marchi@efficios.com>
4283
4284 * dwarf2/read.c (lookup_dwo_comp_unit): Change
4285 dwarf2_per_cu_data parameter fo dwarf2_cu.
4286 (lookup_dwo_type_unit): Likewise.
4287 (read_cutu_die_from_dwo): Likewise.
4288 (lookup_dwo_unit): Likewise.
4289 (open_and_init_dwo_file): Likewise.
4290 (lookup_dwo_cutu): Likewise.
4291 (lookup_dwo_comp_unit): Likewise.
4292 (lookup_dwo_type_unit): Likewise.
4293 (cutu_reader::init_tu_and_read_dwo_dies): Update.
4294 (cutu_reader::cutu_reader): Update.
4295
47b14e86
SM
42962020-05-27 Simon Marchi <simon.marchi@efficios.com>
4297
4298 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
4299 parameter.
4300 (process_full_type_unit): Likewise.
4301 (process_queue): Update.
4302
43182c09
SM
43032020-05-27 Simon Marchi <simon.marchi@efficios.com>
4304
4305 * dwarf2/read.c (recursively_compute_inclusions): Add
4306 dwarf2_per_objfile parameter.
4307 (compute_compunit_symtab_includes): Likewise.
4308 (process_cu_includes): Update.
4309
7aa104c4
SM
43102020-05-27 Simon Marchi <simon.marchi@efficios.com>
4311
4312 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
4313 parameter.
4314 (create_type_unit_group): Update.
4315 (process_psymtab_comp_unit_reader): Update.
4316 (build_type_psymtabs_reader): Update.
4317
e3beb21d
SM
43182020-05-27 Simon Marchi <simon.marchi@efficios.com>
4319
4320 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
4321 object through m_this_cu->cu.
4322
d460f660
SM
43232020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4324
4325 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
4326 the info parameter.
4327 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
4328
ab432490
SM
43292020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4330
4331 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
4332 per_objfile parameter.
4333 (load_full_type_unit): Add per_objfile parameter.
4334 (read_signatured_type): Likewise.
4335 (load_full_comp_unit): Likewise.
4336 (load_cu): Likewise.
4337 (dw2_do_instantiate_symtab): Likewise.
4338 (dw2_get_file_names): Likewise.
4339 (dw2_map_symtabs_matching_filename): Update.
4340 (dw_expand_symtabs_matching_file_matcher): Update.
4341 (dw2_map_symbol_filenames): Update.
4342 (process_psymtab_comp_unit): Add per_objfile parameter.
4343 (build_type_psymtabs_1): Update.
4344 (process_skeletonless_type_unit): Update.
4345 (dwarf2_build_psymtabs_hard): Update.
4346 (load_partial_comp_unit): Add per_objfile parameter.
4347 (scan_partial_symbols): Update.
4348 (load_full_comp_unit): Add per_objfile parameter.
4349 (process_imported_unit_die): Update.
4350 (create_cus_hash_table): Update.
4351 (find_partial_die): Update.
4352 (dwarf2_read_addr_index): Update.
4353 (follow_die_offset): Update.
4354 (dwarf2_fetch_die_loc_sect_off): Update.
4355 (dwarf2_fetch_constant_bytes): Update.
4356 (dwarf2_fetch_die_type_sect_off): Update.
4357 (follow_die_sig_1): Update.
4358 (load_full_type_unit): Add per_objfile parameter.
4359 (read_signatured_type): Likewise.
4360
313bad1b
SM
43612020-05-27 Simon Marchi <simon.marchi@efficios.com>
4362
4363 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
4364 of objfile_name.
4365
c3699833
SM
43662020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4367
4368 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
4369 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
4370 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
4371 field.
4372 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
4373 (create_cus_from_index): Update.
4374 (dwarf2_read_gdb_index): Update.
4375 (create_cus_from_debug_names): Update.
4376 (dwarf2_read_debug_names): Update.
4377 (get_abbrev_section_for_cu): Update.
4378 (create_all_comp_units): Update.
4379 (read_attribute_value): Update.
4380 (get_debug_line_section): Update.
4381 * dwarf2/index-cache.c (index_cache::store): Update.
4382 * dwarf2/index-write.c (save_gdb_index_command): Update.
4383 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
4384
1859c670
SM
43852020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4386
4387 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
4388 member.
4389 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
4390 dwarf2_per_cu_data::per_bfd.
4391 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
4392 (create_type_unit_group): Likewise.
4393 (queue_comp_unit): Remove reference to
4394 per_cu->dwarf2_per_objfile.
4395 (maybe_queue_comp_unit): Likewise.
4396 (fill_in_sig_entry_from_dwo_entry): Assign new field.
4397 (create_cus_hash_table): Assign new field.
4398
5e22e966
SM
43992020-05-27 Simon Marchi <simon.marchi@efficios.com>
4400
4401 * dwarf2/read.c: Replace
4402 dwarf2_cu->per_cu->dwarf2_per_objfile references with
4403 dwarf2_cu->per_objfile throughout.
4404
97a1449a
SM
44052020-05-27 Simon Marchi <simon.marchi@efficios.com>
4406
4407 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
4408 parameter, don't use per_cu->dwarf2_per_objfile.
4409 (dw2_instantiate_symtab): Likewise.
4410 (dw2_find_last_source_symtab): Update.
4411 (dw2_map_expand_apply): Update.
4412 (dw2_lookup_symbol): Update.
4413 (dw2_expand_symtabs_for_function): Update.
4414 (dw2_expand_all_symtabs): Update.
4415 (dw2_expand_symtabs_with_fullname): Update.
4416 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
4417 don't use per_cu->dwarf2_per_objfile.
4418 (dw2_expand_marked_cus): Update.
4419 (dw2_find_pc_sect_compunit_symtab): Update.
4420 (dw2_debug_names_lookup_symbol): Update.
4421 (dw2_debug_names_expand_symtabs_for_function): Update.
4422 (dw2_debug_names_map_matching_symbols): Update.
4423 (dwarf2_psymtab::expand_psymtab): Update.
4424
9e021579
SM
44252020-05-27 Simon Marchi <simon.marchi@efficios.com>
4426
4427 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
4428 <per_objfile>: New member.
4429 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
4430 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
4431 call to dwarf2_cu.
4432 (cutu_reader::cutu_reader): Update.
4433 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
4434
ae090bdb
SM
44352020-05-27 Simon Marchi <simon.marchi@efficios.com>
4436
4437 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
4438 struct dwarf2_per_objfile.
4439 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
4440 dwarf2_per_bfd.
4441 * dwarf2/read.c (set_die_type): Update.
4442 (get_die_type_at_offset): Update.
4443
af758d11
SM
44442020-05-27 Tom Tromey <tom@tromey.com>
4445 Simon Marchi <simon.marchi@efficios.com>
4446
4447 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
4448 method.
4449 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
4450 get_symtab, set_symtab>: New methods.
4451 <m_symtabs>: New field.
4452 (struct dwarf2_psymtab): Derive from partial_symtab.
4453 <readin_p, get_compunit_symtab>: Declare methods.
4454 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
4455 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
4456 New methods.
4457 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
4458 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
4459 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
4460 (dw2_symtab_iter_next, dw2_print_stats)
4461 (dw2_expand_symtabs_with_fullname)
4462 (dw2_expand_symtabs_matching_one)
4463 (dw_expand_symtabs_matching_file_matcher)
4464 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
4465 (dw2_debug_names_iterator::next)
4466 (dw2_debug_names_map_matching_symbols)
4467 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
4468 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
4469 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
4470 New methods.
4471 (get_compunit_symtab, process_full_comp_unit)
4472 (process_full_type_unit): Update.
4473 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
4474
5989a64e
SM
44752020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4476
4477 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
4478 then introduce a new dwarf2_per_objfile type.
4479 <read_line_string>: Move to the new dwarf2_per_objfile type.
4480 <objfile>: Likewise.
4481 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
4482 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
4483 dwarf2_per_objfile->per_bfd.
4484 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
4485 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
4486 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
4487 (dwarf2_per_bfd::free_cached_comp_units): ... this.
4488 (dwarf2_has_info): Allocate dwarf2_per_bfd.
4489 (dwarf2_per_objfile::locate_sections): Rename to...
4490 (dwarf2_per_bfd::locate_sections): ... this.
4491 (dwarf2_per_objfile::get_cutu): Rename to...
4492 (dwarf2_per_bfd::get_cutu): ... this.
4493 (dwarf2_per_objfile::get_cu): Rename to...
4494 (dwarf2_per_bfd::get_cu): ... this.
4495 (dwarf2_per_objfile::get_tu): Rename to...
4496 (dwarf2_per_bfd::get_tu): ... this.
4497 (dwarf2_per_objfile::allocate_per_cu): Rename to...
4498 (dwarf2_per_bfd::allocate_per_cu): ... this.
4499 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
4500 (dwarf2_per_bfd::allocate_signatured_type): ... this.
4501 (get_gdb_index_contents_ftype): Change parameter from
4502 dwarf2_per_objfile to dwarf2_per_bfd.
4503 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
4504 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
4505
a50264ba
TT
45062020-05-27 Tom Tromey <tom@tromey.com>
4507 Simon Marchi <simon.marchi@efficios.com>
4508
4509 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
4510 (allocate_piece_closure): Set "per_objfile" member.
4511 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
4512 (locexpr_describe_location, loclist_describe_location): Use new
4513 member.
4514 * dwarf2/read.c (read_call_site_scope)
4515 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
4516 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
4517 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
4518 handle_data_member_location): Set per_objfile member.
4519 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
4520 member.
4521 (struct dwarf2_loclist_baton) <per_objfile>: New member.
4522
d3473f0c
TT
45232020-05-27 Tom Tromey <tom@tromey.com>
4524
4525 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
4526 allocate_signatured_type>: Declare new methods.
4527 <m_num_psymtabs>: New member.
4528 (struct dwarf2_per_cu_data) <index>: New member.
4529 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
4530 (dwarf2_per_objfile::allocate_signatured_type): New methods.
4531 (create_cu_from_index_list): Use allocate_per_cu.
4532 (create_signatured_type_table_from_index)
4533 (create_signatured_type_table_from_debug_names)
4534 (create_debug_type_hash_table, add_type_unit)
4535 (read_comp_units_from_section): Use allocate_signatured_type.
4536
5717c425
TT
45372020-05-27 Tom Tromey <tom@tromey.com>
4538
4539 * psymtab.c (partial_map_expand_apply)
4540 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
4541 (psym_lookup_global_symbol_language)
4542 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
4543 (psym_print_stats, psym_expand_symtabs_for_function)
4544 (psym_map_symbol_filenames, psym_map_matching_symbols)
4545 (psym_expand_symtabs_matching)
4546 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
4547 (maintenance_check_psymtabs): Update.
4548 * psympriv.h (struct partial_symtab) <readin_p,
4549 get_compunit_symtab>: Add objfile parameter.
4550 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
4551 Likewise.
4552 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
4553 get_compunit_symtab>: Likewise.
4554 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
4555
45940949
TT
45562020-05-27 Tom Tromey <tom@tromey.com>
4557
4558 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
4559 member.
4560 * dwarf2/read.c (delete_file_name_entry): Fix comment.
4561 (create_cu_from_index_list)
4562 (create_signatured_type_table_from_index)
4563 (create_signatured_type_table_from_debug_names)
4564 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
4565 (dwarf2_create_include_psymtab)
4566 (create_debug_type_hash_table, add_type_unit)
4567 (create_type_unit_group, read_comp_units_from_section)
4568 (dwarf2_compute_name, create_cus_hash_table)
4569 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
4570 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
4571 obstack.
4572 (dw2_get_real_path): Likewise. Change argument to
4573 dwarf2_per_objfile.
4574
f8c6d152
LM
45752020-05-27 Luis Machado <luis.machado@linaro.org>
4576
4577 PR tdep/26000
4578 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
4579 for ldrd (immediate).
4580
e98d2e6d
PW
45812020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4582
4583 * command.h: Add comment giving the name of class_tui.
4584 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
4585 create the fake command for the help for class_tui.
4586
53a47a3e
TT
45872020-05-26 Tom Tromey <tromey@adacore.com>
4588
4589 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
4590 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
4591 (val_atr): New function.
4592 (value_val_atr): Use it.
4593 * ada-valprint.c (print_optional_low_bound): Change low bound
4594 handling for enums.
4595 (val_print_packed_array_elements): Don't call discrete_position.
4596 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
4597 discrete_position for enum types.
4598 * language.c (default_print_array_index): Change type.
4599 * language.h (struct language_defn) <la_print_array_index>: Add
4600 index_type parameter, change type of index_value.
4601 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
4602 (default_print_array_index): Update.
4603 * valprint.c (maybe_print_array_index): Don't call
4604 value_from_longest. Update.
4605 (value_print_array_elements): Don't call discrete_position.
4606
0bc2354b
TT
46072020-05-26 Tom Tromey <tromey@adacore.com>
4608
4609 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
4610 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
4611
1218a4bf
CDA
46122020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
4613
4614 PR gdb/13519
4615 * avr-tdep.c (avr_integer_to_address): Return data or code
4616 address accordingly to the second 'type' argument of the
4617 function.
4618
92651b1d
MW
46192020-05-25 Michael Weghorn <m.weghorn@posteo.de>
4620
4621 * infcmd.c, inferior.h: (construct_inferior_arguments):
4622 Moved function from here to gdbsupport/common-inferior.{h,cc}
4623
0a4f5f8c
TT
46242020-05-23 Tom Tromey <tom@tromey.com>
4625
4626 Revert commit eca1f90c:
4627 * NEWS: Remove entry for completion styling.
4628 * completer.c (_rl_completion_prefix_display_length): Move
4629 declaration later.
4630 (gdb_fnprint): Revert.
4631 (gdb_display_match_list_1): Likewise.
4632 * cli/cli-style.c (completion_prefix_style)
4633 (completion_difference_style, completion_suffix_style): Remove.
4634 (_initialize_cli_style): Revert.
4635 * cli/cli-style.h (completion_prefix_style)
4636 (completion_difference_style, completion_suffix_style): Don't
4637 declare.
4638
e08bd6c5
PA
46392020-05-24 Pedro Alves <palves@redhat.com>
4640
4641 * symtab.c (completion_list_add_name): Return boolean indication
4642 of whether the symbol matched.
4643 (completion_list_add_symbol): Don't try to remove C++ aliases if
4644 the symbol didn't match in the first place.
4645 * symtab.h (completion_list_add_name): Return bool.
4646
ceacbf6e
SM
46472020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
4648
4649 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
4650 type::field.
4651
26f16254
JB
46522020-05-23 Joel Brobecker <brobecker@adacore.com>
4653
4654 GDB 9.2 released.
4655
eca1f90c
TT
46562020-05-23 Tom Tromey <tom@tromey.com>
4657
4658 * NEWS: Add entry for completion styling.
4659 * completer.c (_rl_completion_prefix_display_length): Move
4660 declaration earlier.
4661 (gdb_fnprint): Use completion_style.
4662 (gdb_display_match_list_1): Likewise.
4663 * cli/cli-style.c (completion_prefix_style)
4664 (completion_difference_style, completion_suffix_style): New
4665 globals.
4666 (_initialize_cli_style): Register new globals.
4667 * cli/cli-style.h (completion_prefix_style)
4668 (completion_difference_style, completion_suffix_style): Declare.
4669
51e2cfa2
PA
46702020-05-23 Pedro Alves <palves@redhat.com>
4671
4672 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
4673 (parse_escape): Use ISDIGIT instead of isdigit.
4674 (puts_debug): Use gdb_isprint instead of isprint.
4675 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
4676 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
4677 ISSPACE instead of isspace.
4678 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
4679 instead of isspace.
4680 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
4681 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
4682 instead of isxdigit and ISDIGIT instead of isdigit.
4683
80fc5e77
SM
46842020-05-22 Simon Marchi <simon.marchi@efficios.com>
4685
4686 * gdbtypes.h (struct type) <field>: New method.
4687 (TYPE_FIELDS): Remove, replace all uses with either type::fields
4688 or type::field.
4689
3cabb6b0
SM
46902020-05-22 Simon Marchi <simon.marchi@efficios.com>
4691
4692 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
4693 (TYPE_FIELDS): Use type::fields. Change all call sites that
4694 modify the propery to use type::set_fields instead.
4695
1f704f76
SM
46962020-05-22 Simon Marchi <simon.marchi@efficios.com>
4697
4698 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
4699 type::num_fields instead.
4700
5e33d5f4
SM
47012020-05-22 Simon Marchi <simon.marchi@efficios.com>
4702
4703 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
4704 methods.
4705 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
4706 that modify the number of fields to use type::set_num_fields
4707 instead.
4708
9392ebb3
TT
47092020-05-22 Tom Tromey <tromey@adacore.com>
4710
4711 * compile/compile-object-load.h (munmap_list_free): Don't
4712 declare.
4713
7c13f4e8
AB
47142020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
4715
4716 * annotate.c (annotate_source_line): Update return type, add call
4717 to update current symtab and line.
4718 * annotate.h (annotate_source_line): Update return type, and
4719 extend header comment.
4720 * source.c (info_line_command): Check annotation_level before
4721 calling annotate_source_line.
4722 * stack.c (print_frame_info): If calling annotate_source_line
4723 returns true, then don't print any other source line information.
4724
aa370940
SM
47252020-05-21 Simon Marchi <simon.marchi@efficios.com>
4726
4727 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
4728
84d53fa9
SM
47292020-05-21 Simon Marchi <simon.marchi@efficios.com>
4730
4731 * coffread.c (patch_type): Remove NULL check before xfree.
4732 * corefile.c (set_gnutarget): Likewise.
4733 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
4734 * exec.c (build_section_table): Likewise.
4735 * remote.c (remote_target::pass_signals): Likewise.
4736 * utils.c (n_spaces): Likewise.
4737 * cli/cli-script.c (document_command): Likewise.
4738 * i386-windows-tdep.c (core_process_module_section): Likewise.
4739 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
4740
9d428aae
SM
47412020-05-20 Simon Marchi <simon.marchi@efficios.com>
4742
4743 * symfile.c (reread_symbols): Clear objfile's section_offsets
4744 vector and section indices, re-compute them by calling
4745 sym_offsets.
4746
250106a7
TT
47472020-05-20 Tom Tromey <tromey@adacore.com>
4748
4749 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
ec16513e 4750 (desc_one_bound, desc_index_type): Compute field name.
250106a7 4751
9a0bacfb
TV
47522020-05-20 Tom de Vries <tdevries@suse.de>
4753
4754 PR symtab/25833
4755 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
4756
7b958a48
AM
47572020-05-20 Alan Modra <amodra@gmail.com>
4758
4759 PR 25993
4760 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
4761 bfd_set_filename.
4762 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
4763 passed to bfd_set_filename.
4764 * symfile-mem.c (add_vsyscall_page): Likewise for string
4765 passed to symbol_file_add_from_memory.
4766 (symbol_file_add_from_memory): Make name param a const char* and
4767 don't strdup.
4768
c7e97679
AM
47692020-05-20 Alan Modra <amodra@gmail.com>
4770
4771 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
4772 rather than accessing bfd->filename directly.
4773 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
4774 and use bfd_section_name.
4775 * dwarf2/frame.c (decode_frame_entry): Likewise.
4776 * exec.c (exec_set_section_address): Likewise.
4777 * solib-aix.c (solib_aix_bfd_open): Likewise.
4778 * stap-probe.c (get_stap_base_address): Likewise.
4779 * symfile.c (reread_symbols): Likewise.
4780
563c591b
TT
47812020-05-19 Tom Tromey <tromey@adacore.com>
4782
4783 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
4784
f408d82c
SM
47852020-05-19 Simon Marchi <simon.marchi@efficios.com>
4786
4787 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
4788
98c59b52
PA
47892020-05-19 Pedro Alves <palves@redhat.com>
4790
4791 * NEWS (set exec-file-mismatch): Adjust entry.
4792 * exec.c: Include "build-id.h".
4793 (validate_exec_file): Try to match build IDs instead of filenames.
4794 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
4795 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
4796 and pass down 'warn_if_slow'.
4797 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
4798 gdb_bfd_open_closure to pass it down.
4799 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
4800
4111f652
PA
48012020-05-19 Pedro Alves <palves@redhat.com>
4802
4803 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
4804 * target.c (target_fileio_open_1): Rename to target_fileio_open
4805 and make extern. Use bool.
4806 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
4807 (target_fileio_read_alloc_1): Adjust.
4808 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
4809 (target_fileio_open_warn_if_slow): Delete declaration.
4810
ad80db5b
PA
48112020-05-19 Pedro Alves <palves@redhat.com>
4812
4813 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
4814 Adjust all callers.
4815
1d6ce4d3
YS
48162020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
4817
4818 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
4819 whether disp is negative.
4820
9005fbbb
SM
48212020-05-19 Simon Marchi <simon.marchi@efficios.com>
4822
4823 * symfile.h (struct symfile_segment_data)
4824 <~symfile_segment_data>: Remove.
4825 <segment_info>: Change to std::vector.
4826 * symfile.c (default_symfile_segments): Update.
4827 * elfread.c (elf_symfile_segments): Update.
4828
68b888ff
SM
48292020-05-19 Simon Marchi <simon.marchi@efficios.com>
4830
4831 * symfile.h (struct symfile_segment_data) <struct segment>: New.
4832 <segments>: New.
4833 <segment_bases, segment_sizes>: Remove.
4834 * symfile.c (default_symfile_segments): Update.
4835 * elfread.c (elf_symfile_segments): Update.
4836 * remote.c (remote_target::get_offsets): Update.
4837 * solib-target.c (solib_target_relocate_section_addresses):
4838 Update.
4839
62982abd
SM
48402020-05-19 Simon Marchi <simon.marchi@efficios.com>
4841
4842 * symfile.h (struct symfile_segment_data): Initialize fields.
4843 <~symfile_segment_data>: Add.
4844 (symfile_segment_data_up): New.
4845 (struct sym_fns) <sym_segments>: Return a
4846 symfile_segment_data_up.
4847 (default_symfile_segments): Return a symfile_segment_data_up.
4848 (free_symfile_segment_data): Remove.
4849 (get_symfile_segment_data): Return a symfile_segment_data_up.
4850 * symfile.c (default_symfile_segments): Likewise.
4851 (get_symfile_segment_data): Likewise.
4852 (free_symfile_segment_data): Remove.
4853 (symfile_find_segment_sections): Update.
4854 * elfread.c (elf_symfile_segments): Return a
4855 symfile_segment_data_up.
4856 * remote.c (remote_target::get_offsets): Update.
4857 * solib-target.c (solib_target_relocate_section_addresses):
4858 Update.
4859 * symfile-debug.c (debug_sym_segments): Return a
4860 symfile_segment_data_up.
4861
7f204339
RO
48622020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4863
e52a0f1b
RO
4864 PR build/25981
4865 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
4866 Hardcode register numbers.
4867
7f204339
RO
4868 PR build/25981
4869 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
4870 procfs_find_LDT_entry): Remove.
4871 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
4872 procfs_find_LDT_entry): Remove.
4873 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
4874 Remove.
4875
7f32a4d5
PA
48762020-05-17 Pedro Alves <palves@redhat.com>
4877 Andrew Burgess <andrew.burgess@embecosm.com>
4878 Keno Fischer <keno@juliacomputing.com>
4879
4880 PR gdb/25741
4881 * breakpoint.c (build_target_condition_list): Update comments.
4882 (build_target_command_list): Update comments and skip matching
4883 locations.
4884 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
4885 a separate function. Simplify "set breakpoint auto-hw off"
4886 handling.
4887 (insert_breakpoints): Update comment.
4888 (tracepoint_locations_match): New parameter. For breakpoints,
4889 compare location types too, if the caller wants to.
4890 (handle_automatic_hardware_breakpoints): New functions.
4891 (bp_location_is_less_than): Also sort by location type and
4892 hardware breakpoint length.
4893 (update_global_location_list): Handle "set breakpoint auto-hw on"
4894 here.
4895 (update_breakpoint_locations): Ask breakpoint_locations_match to
4896 ignore location types.
4897
7d93a1e0
SM
48982020-05-16 Simon Marchi <simon.marchi@efficios.com>
4899
4900 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
4901 type::name instead.
4902
d0e39ea2
SM
49032020-05-16 Simon Marchi <simon.marchi@efficios.com>
4904
4905 * gdbtypes.h (struct type) <name, set_name>: New methods.
4906 (TYPE_CODE): Use type::name. Change all call sites used to set
4907 the name to use type::set_name instead.
4908
2dab0c7b
TT
49092020-05-16 Tom Tromey <tom@tromey.com>
4910
4911 * top.c (quit_force): Update.
4912 * infrun.c (handle_no_resumed): Update.
4913 * top.h (all_uis): New function.
4914 (ALL_UIS): Remove.
4915
59f7bd8d
SM
49162020-05-16 Simon Marchi <simon.marchi@efficios.com>
4917
4918 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
4919
9bf058f0
PA
49202020-05-16 Pedro Alves <palves@redhat.com>
4921
4922 * ia64-linux-nat.c
4923 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
4924 Declare method.
4925 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
4926
8f86ae1a
SM
49272020-05-15 Simon Marchi <simon.marchi@efficios.com>
4928
4929 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
4930 (sparc64_adi_info): Likewise.
4931
d6bc0792
TT
49322020-05-15 Tom Tromey <tom@tromey.com>
4933
4934 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
4935 block_objfile.
4936 (lookup_objfile_from_block): Remove.
4937 (lookup_symbol_in_block, lookup_symbol_in_static_block)
4938 (lookup_global_symbol): Use block_objfile.
4939 * symtab.h (lookup_objfile_from_block): Don't declare.
4940 * printcmd.c (clear_dangling_display_expressions): Use
4941 block_objfile.
4942 * parse.c (operator_check_standard): Use block_objfile.
4943
8c14c3a3
TT
49442020-05-15 Tom Tromey <tom@tromey.com>
4945
4946 * language.c (language_alloc_type_symbol): Set
4947 SYMBOL_SECTION.
4948 * symtab.c (initialize_objfile_symbol): Remove.
4949 (allocate_symbol): Remove.
4950 (allocate_template_symbol): Remove.
4951 * dwarf2/read.c (fixup_go_packaging): Use "new".
4952 (new_symbol): Use "new".
4953 (read_variable): Don't call initialize_objfile_symbol. Use
4954 "new".
4955 (read_func_scope): Use "new".
4956 * xcoffread.c (process_xcoff_symbol): Don't call
4957 initialize_objfile_symbol.
4958 (SYMBOL_DUP): Remove.
4959 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
4960 "new".
4961 * symtab.h (allocate_symbol, initialize_objfile_symbol)
4962 (allocate_template_symbol): Don't declare.
4963 (struct symbol): Add copy constructor. Change defaults.
4964 * jit.c (finalize_symtab): Use "new".
4965 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
4966 Use "new".
4967 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
4968 (common_block_end): Use "new".
4969 * mdebugread.c (parse_symbol): Use "new".
4970 (new_symbol): Likewise.
4971
5b4a1a8d
PW
49722020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4973
4974 * NEWS: Mention changes to help and apropos.
4975
57b4f16e
PW
49762020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4977
4978 * command.h (enum command_class): Improve comments, document
4979 that class_alias is for user-defined aliases, give the class
4980 name for each class, remove unused class_xdb.
4981 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
4982 * breakpoint.c (_initialize_breakpoint): Replace class_alias
4983 by a precise class.
4984 * infcmd.c (_initialize_infcmd): Likewise.
4985 * reverse.c (_initialize_reverse): Likewise.
4986 * stack.c (_initialize_stack): Likewise.
4987 * symfile.c (_initialize_symfile): Likewise.
4988 * tracepoint.c (_initialize_tracepoint): Likewise.
4989
7c05caf7
PW
49902020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4991
4992 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
4993 when their aliased command is traversed.
4994 (help_cmd): Add fput_command_names_styled call to
4995 output command name and aliases when command has an alias.
4996
3b3aaacb
PW
49972020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4998
4999 * cli/cli-decode.h (help_cmd_list): Remove declaration.
5000 * cli/cli-decode.c (help_cmd_list): Declare as static,
5001 remove prefix argument, use bool for recurse arg, rework to show the aliases of
5002 a command together with the command.
5003 (fput_command_name_styled, fput_command_names_styled): New functions.
5004 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
5005 fput_command_name_styled.
5006 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
5007 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
5008
7aa1b46f
PW
50092020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5010
5011 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
5012 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
5013 * command.h (cmd_show_list): Likewise.
5014 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
5015 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
5016
89bcba74
PW
50172020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5018
5019 * unittests/command-def-selftests.c (traverse_command_structure):
5020 Verify all commands of a list have the same prefix command and
5021 that only the top cmdlist commands have a null prefix.
5022
3f4d92eb
PW
50232020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5024
5025 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
5026 as prefix, not one of its aliases.
5027 (set_cmd_prefix): Remove.
5028 (do_add_cmd): Centralize the setting of the prefix of a command, when
5029 command is defined after its full chain of prefix commands.
5030 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
5031 (add_setshow_cmd_full): Likewise.
5032 (update_prefix_field_of_prefixed_commands): New function.
5033 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
5034 update_prefix_field_of_prefixed_commands.
5035 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
5036 addresses of remote_set_cmdlist and remote_show_cmdlist given
5037 as argument, not the address of an argument.
5038 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
5039 * gdb/remote.c (_initialize_remote): Likewise.
5040
0605465f
PW
50412020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5042
5043 * cli/cli-cmds.c (alias_command): Check for an existing alias
5044 using lookup_cmd_composition, as valid_command_p is too strict
5045 and forbids aliases that are the prefix of an existing alias
5046 or command.
5047 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
5048 command is properly recognised as a valid command.
5049
58e6ac70
PW
50502020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5051
5052 * unittests/help-doc-selftests.c: Rename to
5053 unittests/command-def-selftests.c
5054 * unittests/command-def-selftests.c (help_doc_tests): Update some
5055 comments.
5056 (command_structure_tests, traverse_command_structure): New namespace
5057 and function.
5058 (command_structure_invariants_tests): New function.
5059 (_initialize_command_def_selftests) Renamed from
5060 _initialize_help_doc_selftests, register command_structure_invariants
5061 selftest.
5062
a7b9ceb8
PW
50632020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5064
5065 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
5066 an alias of 'show'.
5067
b2188a06
JB
50682020-05-15 Joel Brobecker <brobecker@adacore.com>
5069
5070 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
5071 ada_is_fixed_point_type. Update all callers.
5072 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
5073 all callers.
5074 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
5075 Update all callers.
5076 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
5077 print_fixed_point_type. Update all callers.
5078 * ada-valprint.c (ada_value_print_num): Replace call to
5079 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
5080
a51951c2
KB
50812020-05-14 Kevin Buettner <kevinb@redhat.com>
5082
5083 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
5084 processors.
5085 (cpu_supports_bts): Add CV_AMD case.
5086
29d6859f
LM
50872020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
5088 Simon Marchi <simon.marchi@efficios.com>
5089
5090 * infrun.c (stop_all_threads): Collect multiple wait events at
5091 each pass.
5092
78134374
SM
50932020-05-14 Simon Marchi <simon.marchi@efficios.com>
5094
5095 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
5096 type::code instead.
5097
67607e24
SM
50982020-05-14 Simon Marchi <simon.marchi@efficios.com>
5099
5100 * gdbtypes.h (struct type) <code, set_code>: New methods.
5101 (TYPE_CODE): Use type::code. Change all call sites used to set
5102 the code to use type::set_code instead.
5103
a05575d3
TBA
51042020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5105 Tom de Vries <tdevries@suse.de>
5106 Pedro Alves <palves@redhat.com>
5107
5108 PR threads/25478
5109 * infrun.c (stop_all_threads): Do NOT ignore
5110 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
5111 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
5112 received.
5113 (handle_no_resumed): Remove code handling a live inferior with no
5114 threads.
5115 * remote.c (has_single_non_exited_thread): New.
5116 (remote_target::update_thread_list): Do not delete a thread if is
5117 the last thread of the process.
5118 * thread.c (thread_select): Call delete_exited_threads instead of
5119 prune_threads.
5120
6ad82919
TBA
51212020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5122
5123 * infrun.c (stop_all_threads): Enable/disable thread events of all
5124 targets. Move a debug message denoting the end of the function
5125 into the SCOPED_EXIT block.
5126
d890404b
TBA
51272020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5128
5129 * process-stratum-target.h: Include <set>.
5130 (all_non_exited_process_targets, switch_to_target_no_thread): New
5131 function declarations.
5132 * process-stratum-target.c (all_non_exited_process_targets)
5133 (switch_to_target_no_thread): New function implementations.
5134
293b3ebc
TBA
51352020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5136
5137 * infrun.c (handle_inferior_event): Extract out a piece of code
5138 into...
5139 (mark_non_executing_threads): ...this new function.
5140
7ca9b62a
TBA
51412020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5142
5143 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
5144 use.
5145
fc75c28b
TBA
51462020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5147
5148 * regcache.c (regcache_read_pc_protected): New function
5149 implementation that returns 0 if the PC cannot read via
5150 'regcache_read_pc'.
5151 * infrun.c (proceed): Call 'regcache_read_pc_protected'
5152 instead of 'regcache_read_pc'.
5153 (keep_going_pass_signal): Ditto.
5154
a89febbd
TT
51552020-05-13 Tom Tromey <tromey@adacore.com>
5156
5157 * ada-lang.c (align_value): Remove.
5158 (ada_template_to_fixed_record_type_1): Use align_up.
5159
f7e23710
TBA
51602020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5161
5162 * async-event.c: Update the copyright year.
5163 * async-event.h: Update the copyright year.
5164
02ff80c2
SM
51652020-05-12 Simon Marchi <simon.marchi@efficios.com>
5166
5167 * objfiles.h (is_addr_in_objfile,
5168 shared_objfile_contains_address_p): Return bool.
5169 * objfile.c (is_addr_in_objfile,
5170 shared_objfile_contains_address_p): Return bool.
5171
4fd6c7e8
TT
51722020-05-11 Tom Tromey <tromey@adacore.com>
5173
5174 * cli/cli-cmds.c (info_command): Restore.
5175 (_initialize_cli_cmds): Use add_prefix_command for "info".
5176 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
5177
5eb68a39
TT
51782020-05-11 Tom Tromey <tromey@adacore.com>
5179
5180 * ada-lang.c (ada_value_primitive_field): Now public.
5181 * ada-lang.h (ada_value_primitive_field): Declare.
5182 * ada-valprint.c (print_field_values): Use
5183 ada_value_primitive_field for wrapper fields.
5184
7666722f
TV
51852020-05-11 Tom de Vries <tdevries@suse.de>
5186
5187 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
5188 MODULE_DOMAIN.
5189
3ee6bb11
TV
51902020-05-11 Tom de Vries <tdevries@suse.de>
5191
5192 PR symtab/25941
5193 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
5194 with length 0, if not gdb-produced.
5195 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
5196
43434996
TV
51972020-05-09 Tom de Vries <tdevries@suse.de>
5198
5199 PR gdb/25955
5200 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
5201 calculation.
5202
2f78cffc
TT
52032020-05-09 Tom Tromey <tom@tromey.com>
5204
5205 * top.c (server_command): Now bool.
5206 * top.h (server_command): Now bool.
5207
4f7bc5ed
TT
52082020-05-08 Tom Tromey <tromey@adacore.com>
5209
5210 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
5211 already being processed.
5212
8be4b118
TT
52132020-05-08 Tom Tromey <tom@tromey.com>
5214
5215 * printcmd.c (struct display) <next>: Remove.
5216 <display>: New constructor.
5217 <exp_string>: Now a std::string.
5218 <enabled_p>: Now a bool.
5219 (display_number): Move definition earlier.
5220 (displays): Rename from display_chain. Now a std::vector.
5221 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
5222 (display_command): Update.
5223 (do_one_display, disable_display)
5224 (enable_disable_display_command, do_enable_disable_display):
5225 Update.
5226 (free_display): Remove.
5227 (clear_displays): Rewrite.
5228 (delete_display): Update.
5229 (map_display_numbers): Use function_view. Remove "data"
5230 parameter. Update.
5231 (do_delete_display): Remove.
5232 (undisplay_command): Update.
5233 (do_one_display, do_displays, disable_display)
5234 (info_display_command): Update.
5235 (do_enable_disable_display): Remove.
5236 (enable_disable_display_command)
5237 (clear_dangling_display_expressions): Update.
5238
94c93c35
TT
52392020-05-08 Tom Tromey <tom@tromey.com>
5240
5241 * symtab.c (set_symbol_cache_size)
5242 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
5243 (maintenance_print_symbol_cache_statistics): Update.
5244 * symmisc.c (print_symbol_bcache_statistics)
5245 (print_objfile_statistics, maintenance_print_objfiles)
5246 (maintenance_info_symtabs, maintenance_check_symtabs)
5247 (maintenance_expand_symtabs, maintenance_info_line_tables):
5248 Update.
5249 * symfile-debug.c (set_debug_symfile): Update.
5250 * source.c (forget_cached_source_info): Update.
5251 * python/python.c (gdbpy_progspaces): Update.
5252 * psymtab.c (maintenance_info_psymtabs): Update.
5253 * probe.c (parse_probes): Update.
5254 * linespec.c (iterate_over_all_matching_symtabs)
5255 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
5256 * guile/scm-progspace.c (gdbscm_progspaces): Update.
5257 * exec.c (exec_target::close): Update.
5258 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
5259 * breakpoint.c (print_one_breakpoint_location)
5260 (create_longjmp_master_breakpoint)
5261 (create_std_terminate_master_breakpoint): Update.
5262 * progspace.c (program_spaces): Now a std::vector.
5263 (maybe_new_address_space): Update.
5264 (add_program_space): Remove.
5265 (program_space::program_space): Update.
5266 (remove_program_space): Update.
5267 (number_of_program_spaces): Remove.
5268 (print_program_space, update_address_spaces): Update.
5269 * progspace.h (program_spaces): Change type.
5270 (ALL_PSPACES): Remove.
5271 (number_of_program_spaces): Don't declare.
5272 (struct program_space) <next>: Remove.
5273
a1fd1ac9
TT
52742020-05-08 Tom Tromey <tom@tromey.com>
5275
5276 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
5277 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
5278 (enable_break): Update.
5279 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
5280 (frv_fdpic_find_canonical_descriptor): Update.
5281 (frv_fetch_objfile_link_map): Update.
5282 * progspace.c (program_space::free_all_objfiles): Update.
5283 (program_space::solibs): New method.
5284 * progspace.h (struct program_space) <solibs>: New method.
5285 * solist.h (master_so_list): Don't declare.
5286 (ALL_SO_LIBS): Remove.
5287 * solib.h (so_list_head): Remove.
5288 (update_solib_list): Update comment.
5289 * solib.c (master_so_list): Remove.
5290 (solib_used, update_solib_list, solib_add)
5291 (info_sharedlibrary_command, clear_solib)
5292 (reload_shared_libraries_1, remove_user_added_objfile): Update.
5293
38eae084
TT
52942020-05-08 Tom Tromey <tom@tromey.com>
5295
5296 * extension.c (extension_languages): Now a std::array.
5297 (ALL_EXTENSION_LANGUAGES): Remove.
5298 (get_ext_lang_defn, get_ext_lang_of_file)
5299 (eval_ext_lang_from_control_command): Update.
5300 (finish_ext_lang_initialization)
5301 (auto_load_ext_lang_scripts_for_objfile)
5302 (ext_lang_type_printers::ext_lang_type_printers)
5303 (apply_ext_lang_type_printers)
5304 (ext_lang_type_printers::~ext_lang_type_printers)
5305 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
5306 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
5307 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
5308 (get_matching_xmethod_workers, ext_lang_colorize)
5309 (ext_lang_before_prompt): Update.
5310 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
5311
596dc4ad
TT
53122020-05-08 Tom Tromey <tom@tromey.com>
5313
5314 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
5315 overload.
5316 <swap_string, m_string>: Remove.
5317 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
5318 Update.
5319 * stabsread.c (define_symbol, read_type): Update.
5320 * linespec.c (find_linespec_symbols): Update.
5321 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
5322 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
5323 * dbxread.c (read_dbx_symtab): Update.
5324 * cp-support.h (cp_canonicalize_string_full)
5325 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
5326 Return unique_xmalloc_ptr.
5327 * cp-support.c (inspect_type): Update.
5328 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
5329 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
5330 Likewise.
5331 * c-typeprint.c (print_name_maybe_canonical): Update.
5332 * break-catch-throw.c (check_status_exception_catchpoint):
5333 Update.
5334
bf4cb9be
TV
53352020-05-08 Tom de Vries <tdevries@suse.de>
5336
5337 * infrun.c (follow_fork): Copy current_line and current_symtab to
5338 child thread.
5339
a1b68f28
SM
53402020-05-07 Simon Marchi <simon.marchi@efficios.com>
5341
5342 * async-event.c (struct async_signal_handler, struct
5343 async_event_handler): Reformat, remove typedef.
5344
98d48915
SM
53452020-05-07 Simon Marchi <simon.marchi@efficios.com>
5346
5347 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
5348 access thistype->main_type->dyn_prop_list directly.
5349
7aa91313
SM
53502020-05-07 Simon Marchi <simon.marchi@efficios.com>
5351
5352 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
5353 (remove_dyn_prop): Remove. Update all users to use
5354 type::remove_dyn_prop.
5355 * gdbtypes.c (remove_dyn_prop): Rename to...
5356 (type::remove_dyn_prop): ... this.
5357
5c54719c
SM
53582020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
5359
5360 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
5361 (add_dyn_prop): Remove. Update all users to use
5362 type::add_dyn_prop.
5363 * gdbtypes.c (add_dyn_prop): Rename to...
5364 (type::add_dyn_prop): ... this.
5365
24e99c6c
SM
53662020-05-07 Simon Marchi <simon.marchi@efficios.com>
5367
5368 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
5369 (get_dyn_prop): Remove. Update all users to use
5370 type::dyn_prop.
5371 * gdbtypes.c (get_dyn_prop): Rename to...
5372 (type::dyn_prop): ... this.
5373
0d4bf016
SM
53742020-05-06 Simon Marchi <simon.marchi@efficios.com>
5375
5376 * gdbtypes.h (struct main_type) <flag_static>: Remove.
5377
ac4a4f1c
SM
53782020-05-06 Simon Marchi <simon.marchi@efficios.com>
5379
5380 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
5381 instruction, skip it if it's there.
5382
a3bbacc1
SM
53832020-05-05 Simon Marchi <simon.marchi@efficios.com>
5384
5385 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
5386
c3236f84
SM
53872020-05-04 Simon Marchi <simon.marchi@efficios.com>
5388
5389 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
5390 * gdbtypes.c (recursive_dump_type): Remove use of
5391 TYPE_INCOMPLETE.
5392
3b6acaee
TT
53932020-05-03 Tom Tromey <tom@tromey.com>
5394
5395 * breakpoint.c (catch_command, tcatch_command): Remove.
5396 (_initialize_breakpoint): Use add_basic_prefix_cmd,
5397 add_show_prefix_cmd.
5398 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
5399 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
5400 Remove.
5401 (add_internal_problem_command): Use add_basic_prefix_cmd,
5402 add_show_prefix_cmd.
5403 * mips-tdep.c (set_mipsfpu_command): Remove.
5404 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
5405 * dwarf2/index-cache.c (set_index_cache_command): Remove.
5406 (_initialize_index_cache): Use add_basic_prefix_cmd.
5407 * memattr.c (dummy_cmd): Remove.
5408 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
5409 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
5410 (_initialize_tui_win): Use add_basic_prefix_cmd,
5411 add_show_prefix_cmd.
5412 * cli/cli-logging.c (set_logging_command): Remove.
5413 (_initialize_cli_logging): Use add_basic_prefix_cmd,
5414 add_show_prefix_cmd.
5415 (show_logging_command): Remove.
5416 * target.c (target_command): Remove.
5417 (add_target): Use add_basic_prefix_cmd.
5418
a51119cd
HD
54192020-05-02 Hannes Domani <ssbssa@yahoo.de>
5420
5421 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
5422
652fc23a 54232020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 5424
652fc23a
PW
5425 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
5426 info_command.
5427
117539e6
KR
54282020-04-30 Kamil Rytarowski <n54@gmx.com>
5429
5430 * nbsd-nat.c (nbsd_enable_proc_events)
5431 (nbsd_nat_target::post_startup_inferior): Add.
5432 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
5433 (nbsd_nat_target::update_thread_list): Rewrite.
5434 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
5435 "PTRACE_LWP_CREATE".
5436 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
5437
102e38eb 54382020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 5439
102e38eb
PW
5440 * stack.c (_initialize_stack): Remove duplicated creation
5441 of "frame" command and "f" alias.
5442
ee9d1e5f
HD
54432020-04-30 Hannes Domani <ssbssa@yahoo.de>
5444
5445 PR gdb/18706
5446 * gdbtypes.c (check_typedef): Calculate size of array of
5447 stubbed type.
5448
627c7fb8
HD
54492020-04-30 Hannes Domani <ssbssa@yahoo.de>
5450
5451 PR gdb/15559
5452 * i386-tdep.c (i386_push_dummy_call): Call
5453 i386_thiscall_push_dummy_call.
5454 (i386_thiscall_push_dummy_call): New function.
5455 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
5456 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
5457 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
5458
ffc2844e
SM
54592020-04-29 Simon Marchi <simon.marchi@efficios.com>
5460
5461 * gdbarch.sh (do_read): Add shellcheck disable directive for
5462 warning SC2162.
5463
1207375d
SM
54642020-04-29 Simon Marchi <simon.marchi@efficios.com>
5465
5466 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
5467 "referenced but not assigned" warning.
5468
9fdb2916
SM
54692020-04-29 Simon Marchi <simon.marchi@efficios.com>
5470
5471 * gdbarch.sh: Remove code that sets fallbackdefault.
5472
759cea5e
SM
54732020-04-29 Simon Marchi <simon.marchi@efficios.com>
5474
5475 * gdbarch.sh: Use shell operators && and || instead of
5476 -a and -o.
5477
cb02ab24
SM
54782020-04-29 Simon Marchi <simon.marchi@efficios.com>
5479
5480 * gdbarch.sh: Use $(...) instead of `...`.
5481
a6fc5ffc
SM
54822020-04-29 Simon Marchi <simon.marchi@efficios.com>
5483
5484 * gdbarch.sh: Use double quotes around variables.
5485
8d113d13
SM
54862020-04-29 Simon Marchi <simon.marchi@efficios.com>
5487
5488 * gdbarch.sh: Use %s with printf, instead of variables in the
5489 format string.
5490
ed6acedd
TT
54912020-04-29 Tom Tromey <tromey@adacore.com>
5492
5493 PR ada/25875:
5494 * dwarf2/read.c (update_enumeration_type_from_children): Compute
5495 type fields here.
5496 (read_enumeration_type): Call
5497 update_enumeration_type_from_children later. Update comments.
5498 (process_enumeration_scope): Don't create type fields.
5499
b68b1b58
KR
55002020-04-29 Kamil Rytarowski <n54@gmx.com>
5501
5502 * nbsd-tdep.c: Include "xml-syscall.h".
5503 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
5504
f94b2e03
KR
55052020-04-29 Kamil Rytarowski <n54@gmx.com>
5506
5507 * nbsd-nat.c: Include "sys/wait.h".
5508 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
5509 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
5510 (nbsd_nat_target::remove_exec_catchpoint)
5511 (nbsd_nat_target::set_syscall_catchpoint): Add.
5512 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
5513 (nbsd_nat_target::insert_exec_catchpoint)
5514 (nbsd_nat_target::remove_exec_catchpoint)
5515 (nbsd_nat_target::set_syscall_catchpoint): Add.
5516 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
5517 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
5518 `nbsd_get_syscall_number'.
5519
fc49bc72
TT
55202020-04-29 Tom Tromey <tom@tromey.com>
5521
5522 * stack.c (print_block_frame_labels): Remove.
5523
d642b692
HD
55242020-04-29 Hannes Domani <ssbssa@yahoo.de>
5525
5526 PR gdb/17320
5527 * ada-valprint.c (val_print_packed_array_elements): Move array
5528 end bracket to new line.
5529 (ada_val_print_string): Remove extra spaces before first array
5530 element.
5531 * c-valprint.c (c_value_print_array): Likewise.
5532 * m2-valprint.c (m2_print_array_contents): Likewise.
5533 (m2_value_print_inner): Likewise.
5534 * p-valprint.c (pascal_value_print_inner): Likewise.
5535 * valprint.c (generic_val_print_array): Likewise.
5536 (value_print_array_elements): Move first array element and array
5537 end bracket to new line.
5538
ea90f227
TV
55392020-04-29 Tom de Vries <tdevries@suse.de>
5540
5541 PR symtab/25889
5542 * linespec.c (find_method): Fix ix calculation.
5543
4498ef4f
KR
55442020-04-28 Kamil Rytarowski <n54@gmx.com>
5545
5546 * syscalls/update-netbsd.sh: New file.
5547 * syscalls/netbsd.xml: Regenerate.
5548 * data-directory/Makefile.in: Register `netbsd.xml' in
5549 `SYSCALLS_FILES'.
5550
a55e30b5
SM
55512020-04-28 Simon Marchi <simon.marchi@efficios.com>
5552
5553 * syscalls/update-freebsd.sh: Add double quotes.
5554
2b2fbab8
TT
55552020-04-28 Tom Tromey <tom@tromey.com>
5556
5557 * NEWS: Update.
5558 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
5559 (cmdpy_init): Allow class_tui.
5560
a65189c9
TV
55612020-04-28 Mark Williams <mark@myosotissp.com>
5562
5563 PR gdb/24480
5564 * dwarf2read.c: Add missing assingments to list_in_scope when
5565 start_symtab was already called.
5566
1b95cdb7
SM
55672020-04-28 Simon Marchi <simon.marchi@efficios.com>
5568
5569 PR gdb/25881
5570 * dwarf2/read.c (offset_map_type): Use
5571 gdb:hash_enum<sect_offset> as hash function.
5572
15cd93d0
TV
55732020-04-28 Tom de Vries <tdevries@suse.de>
5574
5575 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
5576 with DW_AT_signature.
5577
1eb39914
SM
55782020-04-27 Simon Marchi <simon.marchi@efficios.com>
5579
5580 * configure.ac: Remove check for fs_base/gs_base in
5581 user_regs_struct.
5582 * configure: Re-generate.
5583 * config.in: Re-generate.
5584 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
5585 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
5586 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
5587
991a3e2e
LM
55882020-04-27 Luis Machado <luis.machado@linaro.org>
5589
5590 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
5591 problematic inline frame unwinding situation.
5592 * frame.c (frame_id_computed_p): New function.
5593 * frame.h (frame_id_computed_p): New prototype.
5594
361ba0e8
TT
55952020-04-26 Tom Tromey <tom@tromey.com>
5596
5597 * command.h (enum command_class) <class_pseudo>: Remove.
5598
bc3609fd
PW
55992020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5600
5601 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
5602 and whitespace.
5603
b9771db7
KR
56042020-04-25 Kamil Rytarowski <n54@gmx.com>
5605
ec16513e
SM
5606 * inf-ptrace.c (inf_ptrace_target::wait): Remove
5607 `PT_GET_PROCESS_STATE' block.
b9771db7 5608
7151c1af
TT
56092020-04-24 Tom Tromey <tom@tromey.com>
5610
5611 * symtab.h (symbol_get_demangled_name): Don't declare.
5612 * symtab.c (symbol_get_demangled_name): Remove.
5613 (general_symbol_info::natural_name)
5614 (general_symbol_info::demangled_name): Update.
5615
906bb4c5
TT
56162020-04-24 Tom Tromey <tom@tromey.com>
5617
5618 PR rust/25025:
5619 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
5620
bcfe6157
TT
56212020-04-24 Tom Tromey <tom@tromey.com>
5622
5623 PR symtab/12707:
5624 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
5625 exists.
5626 (new_symbol): Likewise.
5627 * compile/compile-object-load.c (get_out_value_type): Use
5628 symbol_matches_search_name.
5629
f049a313
TT
56302020-04-24 Tom Tromey <tom@tromey.com>
5631
5632 * dwarf2/read.c (add_partial_symbol): Do not call
5633 compute_and_set_names.
5634
76e288d1
TT
56352020-04-24 Tom Tromey <tom@tromey.com>
5636
5637 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
5638 overload.
5639
2467f4f6
TT
56402020-04-24 Tom Tromey <tom@tromey.com>
5641
5642 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
5643 (add_psymbol_to_list): New overload. Make old overload call new
5644 one.
5645 * psympriv.h (add_psymbol_to_list): New overload.
5646
e61108c9
TT
56472020-04-24 Tom Tromey <tom@tromey.com>
5648
5649 * dwarf2/read.c (partial_die_info::read) <case
5650 DW_AT_linkage_name>: Use value_as_string.
5651 (dwarf2_string_attr): Use value_as_string.
5652 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
5653 method.
5654 * dwarf2/attribute.c (attribute::value_as_string): New method.
5655
8c87a452
TT
56562020-04-24 Tom Tromey <tom@tromey.com>
5657
5658 * symtab.c (general_symbol_info::natural_name)
5659 (general_symbol_info::demangled_name): Check for language_rust.
5660
787de330
TT
56612020-04-24 Tom Tromey <tom@tromey.com>
5662
5663 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
5664 (dwarf2_physname): ... from here.
5665 (partial_die_info::read): Add Rust "{" hack.
5666
ff985671
TT
56672020-04-24 Tom Tromey <tom@tromey.com>
5668
5669 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
5670 method.
5671 (symbol_set_demangled_name): Don't declare.
5672 * symtab.c (general_symbol_info::set_demangled_name): Rename from
5673 symbol_set_demangled_name.
5674 (general_symbol_info::set_language)
5675 (general_symbol_info::compute_and_set_names): Update.
5676 * minsyms.c (minimal_symbol_reader::install): Update.
5677 * dwarf2/read.c (new_symbol): Update.
5678
1acda803
TT
56792020-04-24 Tom Tromey <tromey@adacore.com>
5680
5681 PR python/23662:
5682 * python/py-type.c (convert_field): Handle
5683 FIELD_LOC_KIND_DWARF_BLOCK.
5684 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
5685 (typy_get_dynamic): Nw function.
5686 (type_object_getset): Add "dynamic".
5687 * NEWS: Add entry.
5688
d656f129
TT
56892020-04-24 Tom Tromey <tromey@adacore.com>
5690
5691 * ada-typeprint.c (print_choices, print_variant_part)
5692 (print_record_field_types_dynamic): New functions.
5693 (print_record_field_types): Use print_record_field_types_dynamic.
5694
7d79de9a
TT
56952020-04-24 Tom Tromey <tromey@adacore.com>
5696
5697 * dwarf2/read.c (handle_data_member_location): New overload.
5698 (dwarf2_add_field): Use it.
5699 (decode_locdesc): Add "computed" parameter. Update comment.
5700 * gdbtypes.c (is_dynamic_type_internal): Also look for
5701 FIELD_LOC_KIND_DWARF_BLOCK.
5702 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
5703 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
5704 virtual base classes.
5705 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
5706 FIELD_LOC_KIND_DWARF_BLOCK.
5707
f8e89861
TT
57082020-04-24 Tom Tromey <tromey@adacore.com>
5709
5710 * dwarf2/read.c (read_structure_type): Handle dynamic length.
5711 * gdbtypes.c (is_dynamic_type_internal): Check
5712 TYPE_HAS_DYNAMIC_LENGTH.
5713 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
5714 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
5715 New macros.
5716 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
5717 constant.
5718
9c6a1327
TT
57192020-04-24 Tom Tromey <tromey@adacore.com>
5720
5721 * dwarf2/read.c (struct variant_field): Rewrite.
5722 (struct variant_part_builder): New.
5723 (struct nextfield): Remove "variant" field. Add "offset".
5724 (struct field_info): Add "current_variant_part" and
5725 "variant_parts".
5726 (alloc_discriminant_info): Remove.
5727 (alloc_rust_variant): New function.
5728 (quirk_rust_enum): Update.
5729 (dwarf2_add_field): Set "offset" member. Don't handle
5730 DW_TAG_variant_part.
5731 (offset_map_type): New typedef.
5732 (convert_variant_range, create_one_variant)
5733 (create_one_variant_part, create_variant_parts)
5734 (add_variant_property): New functions.
5735 (dwarf2_attach_fields_to_type): Call add_variant_property.
5736 (read_structure_type): Don't handle DW_TAG_variant_part.
5737 (handle_variant_part, handle_variant): New functions.
5738 (handle_struct_member_die): Use them.
5739 (process_structure_scope): Don't handle variant parts.
5740 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
5741 (struct discriminant_info): Remove.
5742 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
5743 (struct main_type) <flag_discriminated_union>: Remove.
5744 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
5745 (rust_enum_variant): Return int. Remove "contents". Rewrite.
5746 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
5747 Update.
5748 * valops.c (value_union_variant): Remove.
5749 * value.h (value_union_variant): Don't declare.
5750
b249d2c2
TT
57512020-04-24 Tom Tromey <tromey@adacore.com>
5752
5753 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
5754 (ada_value_primitive_packed_val): Update.
5755 * ada-valprint.c (ada_value_print_1): Update.
5756 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
5757 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
5758 just an address. Use evaluate_for_locexpr_baton.
5759 (dwarf2_evaluate_property): Update.
5760 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
5761 array_view.
5762 * findvar.c (default_read_var_value): Update.
5763 * gdbtypes.c (compute_variant_fields_inner)
5764 (resolve_dynamic_type_internal): Update.
5765 (resolve_dynamic_type): Change type of valaddr parameter.
5766 * gdbtypes.h (resolve_dynamic_type): Update.
5767 * valarith.c (value_subscripted_rvalue): Update.
5768 * value.c (value_from_contents_and_address): Update.
5769
61122aa9
TT
57702020-04-24 Tom Tromey <tromey@adacore.com>
5771
5772 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
5773 "push_initial_value" parameter.
5774 (dwarf2_evaluate_property): Likewise.
5775 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
5776
ef83a141
TT
57772020-04-24 Tom Tromey <tromey@adacore.com>
5778
5779 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
5780 (variant::matches, compute_variant_fields_recurse)
5781 (compute_variant_fields_inner, compute_variant_fields): New
5782 functions.
5783 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
5784 Use resolved_type after type is made.
5785 (operator==): Add new cases.
5786 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
5787 (struct discriminant_range, struct variant, struct variant_part):
5788 New.
5789 (union dynamic_prop_data) <variant_parts, original_type>: New
5790 members.
5791 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
5792 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
5793 constants.
5794 * value.c (unpack_bits_as_long): Now public.
5795 * value.h (unpack_bits_as_long): Declare.
5796
675127ec
TT
57972020-04-24 Tom Tromey <tromey@adacore.com>
5798
5799 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
5800 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
5801
9852ceef
HD
58022020-04-24 Hannes Domani <ssbssa@yahoo.de>
5803
5804 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
5805
7632c6ce
KR
58062020-04-24 Kamil Rytarowski <n54@gmx.com>
5807
5808 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
5809 (remove_fork_catchpoint, post_startup_inferior)
5810 (post_attach): Move...
5811 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
5812 (remove_fork_catchpoint, post_startup_inferior)
5813 (post_attach): ...here.
5814 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
5815 (remove_fork_catchpoint, post_startup_inferior)
5816 (post_attach): Move...
5817 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
5818 (remove_fork_catchpoint, post_startup_inferior)
5819 (post_attach): ...here.
5820
7be2bb4f
TT
58212020-04-24 Tom Tromey <tromey@adacore.com>
5822
5823 * nat/windows-nat.h (struct windows_thread_info)
5824 <pc_adjusted>: New member.
5825 * windows-nat.c (windows_fetch_one_register): Check
5826 pc_adjusted.
5827 (windows_nat_target::get_windows_debug_event)
5828 (windows_nat_target::wait): Set pc_adjusted.
5829
f80cb3b4
TV
58302020-04-24 Tom de Vries <tdevries@suse.de>
5831
5832 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
5833 Run gdb-add-index inside temp dir.
5834
29514b87
TT
58352020-04-23 Tom Tromey <tromey@adacore.com>
5836
5837 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
5838 in loop.
5839
5939967b
LM
58402020-04-23 Luis Machado <luis.machado@linaro.org>
5841
5842 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
5843 get_frame_register instead of gdbarch_unwind_pc.
5844
70bc38f5
TV
58452020-04-23 Tom de Vries <tdevries@suse.de>
5846
5847 * symtab.c (lookup_global_symbol): Prefer def over decl.
5848
de82891c
TV
58492020-04-23 Tom de Vries <tdevries@suse.de>
5850
5851 PR symtab/25807
5852 * block.c (best_symbol, better_symbol): Promote to external.
5853 * block.h (best_symbol, better_symbol): Declare.
5854 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
5855 decl.
5856
ecc6c606
TT
58572020-04-23 Tom Tromey <tromey@adacore.com>
5858
5859 PR ada/25837:
5860 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
5861 "const char *", not a "const std::string &".
5862 <name_and_matcher::operator==>: Update.
5863 * unittests/lookup_name_info-selftests.c: Change type of
5864 "result".
5865
740480b8
TT
58662020-04-23 Tom Tromey <tom@tromey.com>
5867
5868 * inferior.h (iterate_over_inferiors): Don't declare.
5869 * inferior.c (iterate_over_inferiors): Remove.
5870 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
5871 Remove.
5872 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
5873 use iterate_over_inferiors.
5874 (darwin_resume_inferior_it)
5875 (struct resume_inferior_threads_param)
5876 (darwin_resume_inferior_threads_it): Remove.
5877 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
5878
ae3ab1f0
TV
58792020-04-23 Tom de Vries <tdevries@suse.de>
5880
5881 * blockframe.c (find_pc_partial_function): Use
5882 find_pc_sect_compunit_symtab rather than
5883 objfile->sf->qf->find_pc_sect_compunit_symtab.
5884
317d2668
TV
58852020-04-22 Tom de Vries <tdevries@suse.de>
5886
5887 PR symtab/25764
5888 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
5889 in psymtabs.
5890
eea9e357
TV
58912020-04-22 Tom de Vries <tdevries@suse.de>
5892
5893 PR symtab/25801
5894 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
5895 symtabs.
5896
3d5afab3
TV
58972020-04-22 Tom de Vries <tdevries@suse.de>
5898
5899 PR symtab/25700
5900 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
5901 CU if already created.
5902
d43b7a2d
TBA
59032020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5904
5905 * infrun.c (displaced_step_fixup): Switch to the event_thread
5906 before calling displaced_step_restore, not after.
5907
d89edf9b
MM
59082020-04-21 Markus Metzger <markus.t.metzger@intel.com>
5909
5910 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
5911 its inferior is not recorded by us.
5912 (record_btrace_target_open): Replace call to
5913 all_non_exited_threads () with call to current_inferior
5914 ()->non_exited_threads ().
5915 (record_btrace_target::stop_recording): Likewise.
5916 (record_btrace_target::close): Likewise.
5917 (record_btrace_target::wait): Likewise.
5918 (record_btrace_target::record_stop_replaying): Likewise.
5919
5897fd49
MM
59202020-04-21 Markus Metzger <markus.t.metzger@intel.com>
5921
5922 * btrace.c (btrace_enable): Throw an error on double enables and
5923 when enabling recording fails.
5924 (btrace_disable): Throw an error if the thread is not recorded.
5925
1a476b6d
MM
59262020-04-21 Markus Metzger <markus.t.metzger@intel.com>
5927
5928 * record-btrace.c (record_btrace_target::fetch_registers): Forward
5929 request if we do not have a thread_info.
5930
4778a5f8
TV
59312020-04-21 Tom de Vries <tdevries@suse.de>
5932
5933 PR gdb/25471
5934 * thread.c
5935 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
5936 exception in get_frame_id.
5937
0fa7617d
TT
59382020-04-20 Tom Tromey <tromey@adacore.com>
5939
5940 * python/python.c (struct gdbpy_event): Mark move constructor as
5941 noexcept.
5942 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
5943 constructor as noexcept.
5944 * completer.h (struct completion_result): Mark move constructor as
5945 noexcept.
5946 * completer.c (completion_result::completion_result): Use
5947 initialization style. Don't call reset_match_list.
5948
ad23bda0
MS
59492020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
5950
5951 * MAINTAINERS (Write After Approval): Add myself.
5952
45e1f031
TT
59532020-04-18 Tom Tromey <tom@tromey.com>
5954
5955 * windows-tdep.c (init_w32_command_list)
5956 (w32_prefix_command_valid): Restore.
5957 (_initialize_windows_tdep): Call init_w32_command_list.
5958
08feed99
TT
59592020-04-18 Tom Tromey <tom@tromey.com>
5960
5961 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
5962 * value.c (value_fn_field): Update.
5963 * valops.c (find_function_in_inferior)
5964 (value_allocate_space_in_inferior): Update.
5965 * tui/tui-winsource.c (tui_update_source_windows_with_line):
5966 Update.
5967 * tui/tui-source.c (tui_source_window::set_contents): Update.
5968 * symtab.c (lookup_global_or_static_symbol)
5969 (find_function_start_sal_1, skip_prologue_sal)
5970 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
5971 * symmisc.c (dump_msymbols, dump_symtab_1)
5972 (maintenance_print_one_line_table): Update.
5973 * symfile.c (init_entry_point_info, section_is_mapped)
5974 (list_overlays_command, simple_read_overlay_table)
5975 (simple_overlay_update_1): Update.
5976 * stap-probe.c (handle_stap_probe): Update.
5977 * stabsread.c (dbx_init_float_type, define_symbol)
5978 (read_one_struct_field, read_enum_type, read_range_type): Update.
5979 * source.c (info_line_command): Update.
5980 * python/python.c (gdbpy_source_objfile_script)
5981 (gdbpy_execute_objfile_script): Update.
5982 * python/py-type.c (save_objfile_types): Update.
5983 * python/py-objfile.c (py_free_objfile): Update.
5984 * python/py-inferior.c (python_new_objfile): Update.
5985 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
5986 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
5987 (maintenance_check_psymtabs): Update.
5988 * printcmd.c (info_address_command): Update.
5989 * objfiles.h (struct objfile) <arch>: New method, from
5990 get_objfile_arch.
5991 (get_objfile_arch): Don't declare.
5992 * objfiles.c (get_objfile_arch): Remove.
5993 (filter_overlapping_sections): Update.
5994 * minsyms.c (msymbol_is_function): Update.
5995 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
5996 (output_nondebug_symbol): Update.
5997 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
5998 (mdebug_expand_psymtab): Update.
5999 * machoread.c (macho_add_oso_symfile): Update.
6000 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
6001 Update.
6002 * linux-fork.c (checkpoint_command): Update.
6003 * linespec.c (convert_linespec_to_sals): Update.
6004 * jit.c (finalize_symtab): Update.
6005 * infrun.c (insert_exception_resume_from_probe): Update.
6006 * ia64-tdep.c (ia64_find_unwind_table): Update.
6007 * hppa-tdep.c (internalize_unwinds): Update.
6008 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
6009 Update.
6010 * gcore.c (call_target_sbrk): Update.
6011 * elfread.c (record_minimal_symbol, elf_symtab_read)
6012 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
6013 (elf_gnu_ifunc_resolve_by_got): Update.
6014 * dwarf2/read.c (create_addrmap_from_index)
6015 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
6016 (read_debug_names_from_section)
6017 (process_psymtab_comp_unit_reader, add_partial_symbol)
6018 (add_partial_subprogram, process_full_comp_unit)
6019 (read_file_scope, read_func_scope, read_lexical_block_scope)
6020 (read_call_site_scope, dwarf2_ranges_read)
6021 (dwarf2_record_block_ranges, dwarf2_add_field)
6022 (mark_common_block_symbol_computed, read_tag_pointer_type)
6023 (read_tag_string_type, dwarf2_init_float_type)
6024 (dwarf2_init_complex_target_type, read_base_type)
6025 (partial_die_info::read, partial_die_info::read)
6026 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
6027 (dwarf2_fetch_die_loc_sect_off): Update.
6028 * dwarf2/loc.c (dwarf2_find_location_expression)
6029 (class dwarf_evaluate_loc_desc, rw_pieced_value)
6030 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
6031 (dwarf2_loc_desc_get_symbol_read_needs)
6032 (locexpr_describe_location_piece, locexpr_describe_location_1)
6033 (loclist_describe_location): Update.
6034 * dwarf2/index-write.c (write_debug_names): Update.
6035 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
6036 * dtrace-probe.c (dtrace_process_dof): Update.
6037 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
6038 (process_one_symbol): Update.
6039 * ctfread.c (ctf_init_float_type, read_base_type): Update.
6040 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
6041 (coff_read_enum_type): Update.
6042 * cli/cli-cmds.c (edit_command, list_command): Update.
6043 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
6044 * breakpoint.c (create_overlay_event_breakpoint)
6045 (create_longjmp_master_breakpoint)
6046 (create_std_terminate_master_breakpoint)
6047 (create_exception_master_breakpoint, get_sal_arch): Update.
6048 * block.c (block_gdbarch): Update.
6049 * annotate.c (annotate_source_line): Update.
6050
0743fc83
TT
60512020-04-17 Tom Tromey <tromey@adacore.com>
6052
6053 * auto-load.c (show_auto_load_cmd): Remove.
6054 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
6055 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
6056 (maintenance_print_arc_command): Remove.
6057 * tui/tui-win.c (tui_command): Remove.
6058 (tui_get_cmd_list): Use add_basic_prefix_cmd.
6059 * tui/tui-layout.c (tui_layout_command): Remove.
6060 (_initialize_tui_layout): Use add_basic_prefix_cmd.
6061 * python/python.c (user_set_python, user_show_python): Remove.
6062 (_initialize_python): Use add_basic_prefix_cmd,
6063 add_show_prefix_cmd.
6064 * guile/guile.c (set_guile_command, show_guile_command): Remove.
6065 (install_gdb_commands): Use add_basic_prefix_cmd,
6066 add_show_prefix_cmd.
6067 (info_guile_command): Remove.
6068 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
6069 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
6070 add_show_prefix_cmd.
6071 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
6072 Remove do_set and do_show parameters.
6073 * cli/cli-style.c (set_style, show_style): Remove.
6074 (_initialize_cli_style): Use add_basic_prefix_cmd,
6075 add_show_prefix_cmd.
6076 (cli_style_option::add_setshow_commands): Remove do_set and
6077 do_show parameters.
6078 (cli_style_option::add_setshow_commands): Use
6079 add_basic_prefix_cmd, add_show_prefix_cmd.
6080 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
6081 (set_style_name): Remove.
6082 * cli/cli-dump.c (dump_command, append_command): Remove.
6083 (srec_dump_command, ihex_dump_command, verilog_dump_command)
6084 (tekhex_dump_command, binary_dump_command)
6085 (binary_append_command): Remove.
6086 (_initialize_cli_dump): Use add_basic_prefix_cmd.
6087 * windows-tdep.c (w32_prefix_command_valid): Remove global.
6088 (init_w32_command_list): Remove; move into ...
6089 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
6090 * valprint.c (set_print, show_print, set_print_raw)
6091 (show_print_raw): Remove.
6092 (_initialize_valprint): Use add_basic_prefix_cmd,
6093 add_show_prefix_cmd.
6094 * typeprint.c (set_print_type, show_print_type): Remove.
6095 (_initialize_typeprint): Use add_basic_prefix_cmd,
6096 add_show_prefix_cmd.
6097 * record.c (set_record_command, show_record_command): Remove.
6098 (_initialize_record): Use add_basic_prefix_cmd,
6099 add_show_prefix_cmd.
6100 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
6101 add_show_prefix_cmd.
6102 (info_command, show_command, set_debug, show_debug): Remove.
6103 * top.h (set_history, show_history): Don't declare.
6104 * top.c (set_history, show_history): Remove.
6105 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
6106 (unset_tdesc_cmd): Remove.
6107 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
6108 add_show_prefix_cmd.
6109 * symtab.c (info_module_command): Remove.
6110 (_initialize_symtab): Use add_basic_prefix_cmd.
6111 * symfile.c (overlay_command): Remove.
6112 (_initialize_symfile): Use add_basic_prefix_cmd.
6113 * sparc64-tdep.c (info_adi_command): Remove.
6114 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
6115 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
6116 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
6117 add_show_prefix_cmd.
6118 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
6119 (_initialize_serial): Use add_basic_prefix_cmd,
6120 add_show_prefix_cmd.
6121 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
6122 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
6123 add_show_prefix_cmd.
6124 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
6125 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
6126 add_show_prefix_cmd.
6127 * riscv-tdep.c (show_riscv_command, set_riscv_command)
6128 (show_debug_riscv_command, set_debug_riscv_command): Remove.
6129 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
6130 add_show_prefix_cmd.
6131 * remote.c (remote_command, set_remote_cmd): Remove.
6132 (_initialize_remote): Use add_basic_prefix_cmd.
6133 * record-full.c (set_record_full_command)
6134 (show_record_full_command): Remove.
6135 (_initialize_record_full): Use add_basic_prefix_cmd,
6136 add_show_prefix_cmd.
6137 * record-btrace.c (cmd_set_record_btrace)
6138 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
6139 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
6140 (cmd_show_record_btrace_pt): Remove.
6141 (_initialize_record_btrace): Use add_basic_prefix_cmd,
6142 add_show_prefix_cmd.
6143 * ravenscar-thread.c (set_ravenscar_command)
6144 (show_ravenscar_command): Remove.
6145 (_initialize_ravenscar): Use add_basic_prefix_cmd,
6146 add_show_prefix_cmd.
6147 * mips-tdep.c (show_mips_command, set_mips_command)
6148 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
6149 add_show_prefix_cmd.
6150 * maint.c (maintenance_command, maintenance_info_command)
6151 (maintenance_check_command, maintenance_print_command)
6152 (maintenance_set_cmd, maintenance_show_cmd): Remove.
6153 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
6154 add_show_prefix_cmd.
6155 (show_per_command_cmd): Remove.
6156 * maint-test-settings.c (maintenance_set_test_settings_cmd):
6157 Remove.
6158 (maintenance_show_test_settings_cmd): Remove.
6159 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
6160 add_show_prefix_cmd.
6161 * maint-test-options.c (maintenance_test_options_command):
6162 Remove.
6163 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
6164 * macrocmd.c (macro_command): Remove
6165 (_initialize_macrocmd): Use add_basic_prefix_cmd.
6166 * language.c (set_check, show_check): Remove.
6167 (_initialize_language): Use add_basic_prefix_cmd,
6168 add_show_prefix_cmd.
6169 * infcmd.c (unset_command): Remove.
6170 (_initialize_infcmd): Use add_basic_prefix_cmd.
6171 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
6172 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
6173 add_show_prefix_cmd.
6174 * go32-nat.c (go32_info_dos_command): Remove.
6175 (_initialize_go32_nat): Use add_basic_prefix_cmd.
6176 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
6177 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
6178 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
6179 (_initialize_frame): Use add_basic_prefix_cmd,
6180 add_show_prefix_cmd.
6181 * dcache.c (set_dcache_command, show_dcache_command): Remove.
6182 (_initialize_dcache): Use add_basic_prefix_cmd,
6183 add_show_prefix_cmd.
6184 * cp-support.c (maint_cplus_command): Remove.
6185 (_initialize_cp_support): Use add_basic_prefix_cmd.
6186 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
6187 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
6188 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
6189 add_basic_prefix_cmd, add_show_prefix_cmd.
6190 * breakpoint.c (save_command): Remove.
6191 (_initialize_breakpoint): Use add_basic_prefix_cmd.
6192 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
6193 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
6194 add_show_prefix_cmd.
6195 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
6196 (set_ada_command, show_ada_command): Remove.
6197 (_initialize_ada_language): Use add_basic_prefix_cmd,
6198 add_show_prefix_cmd.
6199 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
6200
3557f442
KR
62012020-04-16 Kamil Rytarowski <n54@gmx.com>
6202
6203 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
6204 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
6205
16197208
SM
62062020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
6207
6208 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
6209 warning messages.
6210
00ac85d3
SM
62112020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
6212
6213 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
6214 import table is not at beginning of .idata section.
6215
381ce63f
PA
62162020-04-16 Pedro Alves <palves@redhat.com>
6217
6218 * inferior.c (delete_inferior): Use delete operator directly
6219 instead of delete_program_space.
6220 * progspace.c (add_program_space): New, factored out from
6221 program_space::program_space.
6222 (remove_program_space): New, factored out from
6223 delete_program_space.
6224 (program_space::program_space): Remove intro comment. Rewrite.
6225 (program_space::~program_space): Remove intro comment. Call
6226 remove_program_space.
6227 (delete_program_space): Delete.
6228 * progspace.h (program_space::program_space): Make explicit. Move
6229 intro comment here, adjusted.
6230 (program_space::~program_space): Move intro comment here,
6231 adjusted.
6232 (delete_program_space): Remove.
6233
a010605f
TT
62342020-04-16 Tom Tromey <tromey@adacore.com>
6235
6236 * windows-nat.c (windows_nat::handle_access_violation): New
6237 function.
6238 * nat/windows-nat.h (handle_access_violation): Declare.
6239 * nat/windows-nat.c (handle_exception): Move Cygwin code to
6240 windows-nat.c. Call handle_access_violation.
6241
efba5c23
TV
62422020-04-16 Tom de Vries <tdevries@suse.de>
6243
6244 PR symtab/25791
6245 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
6246 CUs without psymtab.
6247
97ed802d
KB
62482020-04-16 Kevin Buettner <kevinb@redhat.com>
6249
6250 * python/python.c (do_start_initialization): Don't call
6251 PyEval_InitThreads for Python 3.9 and beyond.
6252
c7d64809
KR
62532020-04-15 Kamil Rytarowski <n54@gmx.com>
6254
6255 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
6256 thread functions.
6257 (obsd_nat_target::wait): Likewise.
6258
ce127a96
TT
62592020-04-15 Tom Tromey <tromey@adacore.com>
6260
6261 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
6262 (DEBUG_EXCEPT): Use debug_printf.
6263
99f1bc6a
AB
62642020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
6265
6266 * completer.c (class completion_tracker::completion_hash_entry)
6267 <hash_name>: New member function.
6268 (completion_tracker::discard_completions): New callback to hash a
6269 completion_hash_entry, pass this to htab_create_alloc.
6270
a0e9b532
JT
62712016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
6272
6273 * windows-nat.c (windows_make_so): Warn rather than stopping with
6274 an error if realpath() fails.
6275
06ca5dd4
KR
62762020-04-14 Kamil Rytarowski <n54@gmx.com>
6277
6278 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
6279 (nbsd_nat_target::info_proc): Add do_status.
6280
194d088f
TV
62812020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
6282 Tom de Vries <tdevries@suse.de>
6283
6284 PR symtab/25718
6285 * psympriv.h (struct partial_symtab::read_symtab)
6286 (struct partial_symtab::expand_psymtab)
6287 (struct partial_symtab::read_dependencies): Update comments.
6288 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
6289 read_symtab for includer.
6290 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
6291 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
6292 (struct dwarf2_include_psymtab::m_readin): Remove.
6293 (struct dwarf2_include_psymtab::includer): New member function.
6294 (dwarf2_psymtab::expand_psymtab): Assert !readin.
6295
c1a66c06
TV
62962020-04-14 Tom de Vries <tdevries@suse.de>
6297
6298 PR symtab/25720
6299 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
6300 with NULL symbol_matcher and lookup_name.
6301 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
6302 and lookup_name.
6303 * dwarf2/read.c (dw2_expand_symtabs_matching)
6304 (dw2_debug_names_expand_symtabs_matching): Same.
6305 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
6306 Make lookup_name a pointer. Update comment.
6307 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
6308 lookup_name being a pointer.
6309 * symfile.c (expand_symtabs_matching): Same.
6310 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
6311 * linespec.c (iterate_over_all_matching_symtabs): Same.
6312
400b5eca
TT
63132020-04-13 Tom Tromey <tom@tromey.com>
6314
6315 * run-on-main-thread.c: Update include.
6316 * unittests/main-thread-selftests.c: Update include.
6317 * tui/tui-win.c: Update include.
6318 * tui/tui-io.c: Update include.
6319 * tui/tui-interp.c: Update include.
6320 * tui/tui-hooks.c: Update include.
6321 * top.h: Update include.
6322 * top.c: Update include.
6323 * ser-base.c: Update include.
6324 * remote.c: Update include.
6325 * remote-notif.c: Update include.
6326 * remote-fileio.c: Update include.
6327 * record-full.c: Update include.
6328 * record-btrace.c: Update include.
6329 * python/python.c: Update include.
6330 * posix-hdep.c: Update include.
6331 * mingw-hdep.c: Update include.
6332 * mi/mi-main.c: Update include.
6333 * mi/mi-interp.c: Update include.
6334 * main.c: Update include.
6335 * linux-nat.c: Update include.
6336 * interps.c: Update include.
6337 * infrun.c: Update include.
6338 * inf-loop.c: Update include.
6339 * event-top.c: Update include.
6340 * event-loop.c: Move to ../gdbsupport/.
6341 * event-loop.h: Move to ../gdbsupport/.
6342 * async-event.h: Update include.
6343 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
6344
93b54c8e
TT
63452020-04-13 Tom Tromey <tom@tromey.com>
6346
6347 * tui/tui-win.c: Include async-event.h.
6348 * remote.c: Include async-event.h.
6349 * remote-notif.c: Include async-event.h.
6350 * record-full.c: Include async-event.h.
6351 * record-btrace.c: Include async-event.h.
6352 * infrun.c: Include async-event.h.
6353 * event-top.c: Include async-event.h.
6354 * event-loop.h: Move some declarations to async-event.h.
6355 * event-loop.c: Don't include ser-event.h or top.h. Move some
6356 code to async-event.c.
6357 * async-event.h: New file.
6358 * async-event.c: New file.
6359 * Makefile.in (COMMON_SFILES): Add async-event.c.
6360 (HFILES_NO_SRCDIR): Add async-event.h.
6361
c1cd3163
TT
63622020-04-13 Tom Tromey <tom@tromey.com>
6363
6364 * utils.c (flush_streams): New function.
6365 * event-loop.c (gdb_wait_for_event): Call flush_streams.
6366
29f2bf4f
TT
63672020-04-13 Tom Tromey <tom@tromey.com>
6368
6369 * event-loop.c (handle_file_event): Use warning, not
6370 printf_unfiltered.
6371
98029d02
TT
63722020-04-13 Tom Tromey <tom@tromey.com>
6373
6374 * event-loop.c: Include <chrono>.
6375
06cc9596
TT
63762020-04-13 Tom Tromey <tom@tromey.com>
6377
6378 * gdb_select.h: Move to ../gdbsupport/.
6379 * event-loop.c: Update include path.
6380 * top.c: Update include path.
6381 * ser-base.c: Update include path.
6382 * ui-file.c: Update include path.
6383 * ser-tcp.c: Update include path.
6384 * guile/scm-ports.c: Update include path.
6385 * posix-hdep.c: Update include path.
6386 * ser-unix.c: Update include path.
6387 * gdb_usleep.c: Update include path.
6388 * mingw-hdep.c: Update include path.
6389 * inflow.c: Update include path.
6390 * infrun.c: Update include path.
6391 * event-top.c: Update include path.
6392
8ae8e197
TT
63932020-04-13 Tom Tromey <tom@tromey.com>
6394
6395 * configure: Rebuild.
6396 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
6397
58cf28e8
TT
63982020-04-13 Tom Tromey <tom@tromey.com>
6399
6400 * event-loop.h (start_event_loop): Don't declare.
6401 * event-loop.c (start_event_loop): Move...
6402 * main.c (start_event_loop): ...here. Now static.
6403
b7f999ae
SDJ
64042020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
6405
6406 * MAINTAINERS: Update my email address.
6407
1085dfd4
KR
64082020-04-12 Kamil Rytarowski <n54@gmx.com>
6409
6410 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
6411 IP_ALL.
6412
49d1d1f5
KR
64132020-04-12 Kamil Rytarowski <n54@gmx.com>
6414
6415 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
aac66a4c 6416 (nbsd_nat_target::info_proc): Add do_cmdline.
49d1d1f5 6417
b4848d2a
KR
64182020-04-12 Kamil Rytarowski <n54@gmx.com>
6419
6420 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
aac66a4c 6421 (nbsd_nat_target::info_proc): Add do_cwd.
b4848d2a 6422
51c133d5
KR
64232020-04-12 Kamil Rytarowski <n54@gmx.com>
6424
6425 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
6426
54b8cbd0
KR
64272020-04-11 Kamil Rytarowski <n54@gmx.com>
6428
6429 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
6430 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
6431 (nbsd_nat_target::info_proc): New functions.
6432 * nbsd-nat.c (kinfo_get_vmmap): New function.
6433 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
6434 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
6435 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
6436 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
6437 functions.
6438 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
6439 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
6440 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
6441 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
6442 (KINFO_VME_FLAG_GROWS_DOWN): New.
6443
cf83625d
AS
64442020-04-10 Artur Shepilko <nomadbyte@gmail.com>
6445
6446 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
6447 bit shift.
6448
0c4311ab
TT
64492020-04-10 Tom Tromey <tromey@adacore.com>
6450
6451 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
6452
3e65b3e9
TT
64532020-04-10 Tom Tromey <tromey@adacore.com>
6454
6455 * symtab.c (get_symbol_address, get_msymbol_address): Skip
6456 separate debug files.
6457
13302e95
HD
64582020-04-10 Hannes Domani <ssbssa@yahoo.de>
6459
6460 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
6461 Move to...
6462 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
6463 ... here.
6464 * windows-nat.c (windows_nat_target::get_windows_debug_event):
6465 Check for STATUS_WX86_BREAKPOINT.
6466 (windows_nat_target::wait): Same.
6467
bdfc1e8a
TV
64682020-04-10 Tom de Vries <tdevries@suse.de>
6469
6470 PR cli/25808
6471 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
6472
f4460aec
SM
64732020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
6474
6475 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
6476 (Write After Approval): Remove Tom de Vries.
6477
a25198bb
BE
64782020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
6479
6480 revert partially:
6481 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
6482
aac66a4c
SM
6483 * buildsym.c (record_line): Fix undefined behavior and preserve
6484 lines at eof.
a25198bb 6485
206c98a6
KR
64862020-04-09 Kamil Rytarowski <n54@gmx.com>
6487
6488 * auxv.h (svr4_auxv_parse): New.
6489 * auxv.c (default_auxv_parse): Split into default_auxv_parse
6490 and generic_auxv_parse.
6491 (svr4_auxv_parse): Add.
6492 * obsd-tdep.c: Include "auxv.h".
6493 (obsd_auxv_parse): Remove.
6494 (obsd_init_abi): Remove comment.
6495 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
6496 from `obsd_auxv_parse' to `svr4_auxv_parse'.
6497 * nbsd-tdep.c: Include "auxv.h".
6498 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
6499
71fbdbaf
TT
65002020-04-08 Tom Tromey <tromey@adacore.com>
6501
6502 * nat/windows-nat.h (last_wait_event): Don't declare.
6503 (wait_for_debug_event): Update comment.
6504 * nat/windows-nat.c (last_wait_event): Now static.
6505
2c1d95e8
TT
65062020-04-08 Tom Tromey <tromey@adacore.com>
6507
6508 * windows-nat.c (wait_for_debug_event): Move to
6509 nat/windows-nat.c.
6510 * nat/windows-nat.h (wait_for_debug_event): Declare.
6511 * nat/windows-nat.c (wait_for_debug_event): Move from
6512 windows-nat.c. No longer static.
6513
d2977bc4
TT
65142020-04-08 Tom Tromey <tromey@adacore.com>
6515
6516 * windows-nat.c (get_windows_debug_event): Use
6517 fetch_pending_stop.
6518 * nat/windows-nat.h (fetch_pending_stop): Declare.
6519 * nat/windows-nat.c (fetch_pending_stop): New function.
6520
e758e19c
TT
65212020-04-08 Tom Tromey <tromey@adacore.com>
6522
6523 * windows-nat.c (windows_continue): Use matching_pending_stop and
6524 continue_last_debug_event.
6525 * nat/windows-nat.h (matching_pending_stop)
6526 (continue_last_debug_event): Declare.
6527 * nat/windows-nat.c (DEBUG_EVENTS): New define.
6528 (matching_pending_stop, continue_last_debug_event): New
6529 functions.
6530
8d30e395
TT
65312020-04-08 Tom Tromey <tromey@adacore.com>
6532
6533 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
6534 (handle_exception_result): Move to nat/windows-nat.h.
6535 (DEBUG_EXCEPTION_SIMPLE): Remove.
6536 (windows_nat::handle_ms_vc_exception): New function.
6537 (handle_exception): Move to nat/windows-nat.c.
6538 (get_windows_debug_event): Update.
6539 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
6540 nat/windows-nat.c.
6541 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
6542 (handle_exception_result): Move from windows-nat.c.
6543 (handle_exception): Declare.
6544 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
6545 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
6546 windows-nat.c.
6547
29de418d
TT
65482020-04-08 Tom Tromey <tromey@adacore.com>
6549
6550 * windows-nat.c (exception_count, event_count): Remove.
6551 (handle_exception, get_windows_debug_event)
6552 (do_initial_windows_stuff): Update.
6553
a816ba18
TT
65542020-04-08 Tom Tromey <tromey@adacore.com>
6555
6556 * windows-nat.c (windows_nat::handle_load_dll)
6557 (windows_nat::handle_unload_dll): Rename. No longer static.
6558 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
6559 Declare.
6560
a00caa12
TT
65612020-04-08 Tom Tromey <tromey@adacore.com>
6562
6563 * complaints.h (stop_whining): Declare at top-level.
6564 (complaint): Don't declare stop_whining.
6565
d41b524f
TT
65662020-04-08 Tom Tromey <tromey@adacore.com>
6567
6568 * windows-nat.c (windows_nat::handle_output_debug_string):
6569 Rename. No longer static.
6570 * nat/windows-nat.h (handle_output_debug_string): Declare.
6571
3c76026d
TT
65722020-04-08 Tom Tromey <tromey@adacore.com>
6573
6574 * windows-nat.c (current_process_handle, current_process_id)
6575 (main_thread_id, last_sig, current_event, last_wait_event)
6576 (current_windows_thread, desired_stop_thread_id, pending_stops)
6577 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
6578 (display_selectors, fake_create_process)
6579 (get_windows_debug_event): Update.
6580 * nat/windows-nat.h (current_process_handle, current_process_id)
6581 (main_thread_id, last_sig, current_event, last_wait_event)
6582 (current_windows_thread, desired_stop_thread_id, pending_stops)
6583 (struct pending_stop, siginfo_er): Move from windows-nat.c.
6584 * nat/windows-nat.c (current_process_handle, current_process_id)
6585 (main_thread_id, last_sig, current_event, last_wait_event)
6586 (current_windows_thread, desired_stop_thread_id, pending_stops)
6587 (siginfo_er): New globals. Move from windows-nat.c.
6588
9d8679cc
TT
65892020-04-08 Tom Tromey <tromey@adacore.com>
6590
6591 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
6592 (handle_load_dll): Update.
6593 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
6594
28688adf
TT
65952020-04-08 Tom Tromey <tromey@adacore.com>
6596
6597 * windows-nat.c (enum thread_disposition_type): Move to
6598 nat/windows-nat.h.
6599 (windows_nat::thread_rec): Rename from thread_rec. No longer
6600 static.
6601 (windows_add_thread, windows_nat_target::fetch_registers)
6602 (windows_nat_target::store_registers, handle_exception)
6603 (windows_nat_target::resume, get_windows_debug_event)
6604 (windows_nat_target::get_tib_address)
6605 (windows_nat_target::thread_name)
6606 (windows_nat_target::thread_alive): Update.
6607 * nat/windows-nat.h (enum thread_disposition_type): Move from
6608 windows-nat.c.
6609 (thread_rec): Declare.
6610
4834dad0
TT
66112020-04-08 Tom Tromey <tromey@adacore.com>
6612
6613 * windows-nat.c: Add "using namespace".
6614 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
6615 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
6616
65bafd5b
TT
66172020-04-08 Tom Tromey <tromey@adacore.com>
6618
6619 * nat/windows-nat.h (struct windows_thread_info): Declare
6620 destructor.
6621 * nat/windows-nat.c (~windows_thread_info): New.
6622
0a4afda3
TT
66232020-04-08 Tom Tromey <tromey@adacore.com>
6624
6625 PR gdb/22992
6626 * windows-nat.c (current_event): Update comment.
6627 (last_wait_event, desired_stop_thread_id): New globals.
6628 (struct pending_stop): New.
6629 (pending_stops): New global.
6630 (windows_nat_target) <stopped_by_sw_breakpoint>
6631 <supports_stopped_by_sw_breakpoint>: New methods.
6632 (windows_fetch_one_register): Add assertions. Adjust PC.
6633 (windows_continue): Handle pending stops. Suspend other threads
6634 when stepping. Use last_wait_event
6635 (wait_for_debug_event): New function.
6636 (get_windows_debug_event): Use wait_for_debug_event. Handle
6637 pending stops. Queue spurious stops.
6638 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
6639 (windows_nat_target::kill): Use wait_for_debug_event.
6640 * nat/windows-nat.h (struct windows_thread_info)
6641 <stopped_at_software_breakpoint>: New field.
6642 * nat/windows-nat.c (windows_thread_info::resume): Clear
6643 stopped_at_software_breakpoint.
6644
8e61ebec
TT
66452020-04-08 Tom Tromey <tromey@adacore.com>
6646
6647 * windows-nat.c (enum thread_disposition_type): New.
6648 (thread_rec): Replace "get_context" parameter with "disposition";
6649 change type.
6650 (windows_add_thread, windows_nat_target::fetch_registers)
6651 (windows_nat_target::store_registers, handle_exception)
6652 (windows_nat_target::resume, get_windows_debug_event)
6653 (windows_nat_target::get_tib_address)
6654 (windows_nat_target::thread_name)
6655 (windows_nat_target::thread_alive): Update.
6656
98a03287
TT
66572020-04-08 Tom Tromey <tromey@adacore.com>
6658
6659 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
6660 (windows_continue): Use windows_continue::resume.
6661 * nat/windows-nat.h (struct windows_thread_info) <suspend,
6662 resume>: Declare new methods.
6663 * nat/windows-nat.c: New file.
6664 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
6665
7c7411bc
TT
66662020-04-08 Tom Tromey <tromey@adacore.com>
6667
6668 * windows-nat.c (windows_add_thread, windows_delete_thread)
6669 (windows_nat_target::fetch_registers)
6670 (windows_nat_target::store_registers, fake_create_process)
6671 (windows_nat_target::resume, windows_nat_target::resume)
6672 (get_windows_debug_event, windows_nat_target::wait)
6673 (windows_nat_target::pid_to_str)
6674 (windows_nat_target::get_tib_address)
6675 (windows_nat_target::get_ada_task_ptid)
6676 (windows_nat_target::thread_name)
6677 (windows_nat_target::thread_alive): Use lwp, not tid.
6678
2950fdf7
TT
66792020-04-08 Tom Tromey <tromey@adacore.com>
6680
6681 * windows-nat.c (handle_exception)
6682 (windows_nat_target::thread_name): Update.
6683 * nat/windows-nat.h (windows_thread_info): Remove destructor.
6684 <name>: Now unique_xmalloc_ptr.
6685
62fe396b
TT
66862020-04-08 Tom Tromey <tromey@adacore.com>
6687
6688 * windows-nat.c (thread_rec)
6689 (windows_nat_target::fetch_registers): Update.
6690 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
6691 Update comment.
6692 <debug_registers_changed, reload_context>: Now bool.
6693
e9534bd2
TT
66942020-04-08 Tom Tromey <tromey@adacore.com>
6695
6696 * windows-nat.c (windows_add_thread): Use new.
6697 (windows_init_thread_list, windows_delete_thread): Use delete.
6698 (get_windows_debug_event): Update.
6699 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
6700 destructor, and initializers.
6701
ae1f8880
TT
67022020-04-08 Tom Tromey <tromey@adacore.com>
6703
6704 * windows-nat.c (struct windows_thread_info): Remove.
6705 * nat/windows-nat.h: New file.
6706
55a1e039
TT
67072020-04-08 Tom Tromey <tromey@adacore.com>
6708
6709 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
6710 (thread_rec, windows_add_thread, windows_delete_thread)
6711 (windows_continue): Update.
6712
93366324
TT
67132020-04-08 Tom Tromey <tromey@adacore.com>
6714
6715 * windows-nat.c (struct windows_thread_info): Remove typedef.
6716 (thread_head): Remove.
6717 (thread_list): New global.
6718 (thread_rec, windows_add_thread, windows_init_thread_list)
6719 (windows_delete_thread, windows_continue): Update.
6720
0f2265e2
SM
67212020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
6722
6723 * windows-tdep.h (windows_init_abi): Add comment.
6724 (cygwin_init_abi): New declaration.
6725 * windows-tdep.c: Split signal enumeration in two, one for
6726 Windows and one for Cygwin.
6727 (windows_gdb_signal_to_target): Only deal with signal of the
6728 Windows OS ABI.
6729 (cygwin_gdb_signal_to_target): New function.
6730 (windows_init_abi): Rename to windows_init_abi_common, don't set
6731 gdb_signal_to_target gdbarch method. Add new new function with
6732 this name.
6733 (cygwin_init_abi): New function.
6734 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
6735 comment. Don't call windows_init_abi.
6736 (amd64_windows_init_abi): Add comment, call windows_init_abi.
6737 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
6738 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
6739 i386_windows_init_abi_common, don't call windows_init_abi. Add
6740 a new function of this name.
6741 (i386_cygwin_init_abi): New function.
6742 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
6743 OS ABI Cygwin.
6744
3810f182
SM
67452020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
6746
6747 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
6748 parameter.c.
6749 (dwarf2_read_gdb_index): Update.
6750
063f8e80
KR
67512020-04-07 Kamil Rytarowski <n54@gmx.com>
6752
6753 * nbsd-tdep.c: Include "objfiles.h".
6754 (nbsd_skip_solib_resolver): New.
6755 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
6756
85a9510c 67572020-04-07 Nitika Achra <Nitika.Achra@amd.com>
6758
6759 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
6760 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
6761 with DW_LLE_base_addressx are being emitted in DWARFv5.
6762 Add the newly added kind DW_LOC_OFFSET_PAIR also.
6763 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
6764 unsigned integer.
6765
9fc3eaae 67662020-04-07 Nitika Achra <Nitika.Achra@amd.com>
6767
6768 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
6769 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
6770 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
6771 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
6772 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
6773 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
6774 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
6775
6776
41144253 67772020-04-07 Nitika Achra <Nitika.Achra@amd.com>
6778
6779 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
6780 (read_loclist_index): New function definition.
6781 (lookup_loclist_base): New function definition.
6782 (read_loclist_header): New function definition.
6783 (dwarf2_cu): Add loclist_base and loclist_header field.
6784 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
6785 (read_full_die_1): Read the value of DW_AT_loclists_base.
6786 (read_attribute_reprocess): Handle DW_FORM_loclistx.
6787 (read_attribute_value): Handle DW_FORM_loclistx.
6788 (skip_one_die): Handle DW_FORM_loclistx.
6789 (loclist_header): New structure declaration.
6790 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
6791
9f4e76a4
SM
67922020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
6793
6794 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
6795 constructor. Remove `addr` parameter from other constructor and
6796 add `per_cu` parameter.
6797 * dwarf2/read.c (create_partial_symtab): Update.
6798
25c11aca
TV
67992020-04-07 Tom de Vries <tdevries@suse.de>
6800
6801 PR symtab/25796
6802 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
6803 (partial_die_info::fixup): Inherit has_const_value.
6804
5707e24b
TV
68052020-04-07 Tom de Vries <tdevries@suse.de>
6806
6807 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
6808 symbols without address.
6809
05f00e22
KR
68102020-04-06 Kamil Rytarowski <n54@gmx.com>
6811
6812 * nbsd-nat.h (struct thread_info): Add forward declaration.
6813 (nbsd_nat_target::thread_alive): Add.
6814 (nbsd_nat_target::thread_name): Likewise.
6815 (nbsd_nat_target::update_thread_list): Likewise.
6816 (update_thread_list::post_attach): Likewise.
6817 (post_attach::pid_to_str): Likewise.
6818 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
6819 (nbsd_thread_lister): Add.
6820 (nbsd_nat_target::thread_alive): Likewise.
6821 (nbsd_nat_target::thread_name): Likewise.
6822 (nbsd_add_threads): Likewise.
6823 (update_thread_list::post_attach): Likewise.
6824 (nbsd_nat_target::update_thread_list): Likewise.
6825 (post_attach::pid_to_str): Likewise.
6826
6ee448cc
TT
68272020-04-06 Tom Tromey <tromey@adacore.com>
6828
6829 * ada-valprint.c (print_variant_part): Extract the variant field.
6830 (print_field_values): Use the field as the outer value when
6831 recursing.
6832
dea34e8c
TT
68332020-04-06 Tom Tromey <tromey@adacore.com>
6834
6835 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
6836 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
6837 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
6838 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
6839 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
6840
93689ce9
TT
68412020-04-06 Tom Tromey <tromey@adacore.com>
6842
6843 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
6844 TYPE_CODE_ERROR.
6845
79743962
KR
68462020-04-06 Kamil Rytarowski <n54@gmx.com>
6847
6848 * nbsd-tdep.c: Include "gdbarch.h".
6849 Define enum with NetBSD signal numbers.
6850 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
6851 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
6852 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
6853 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
6854 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
6855 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
6856 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
6857 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
6858 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
6859 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
6860 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
6861 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
6862
9e7c9a03
HD
68632020-04-03 Hannes Domani <ssbssa@yahoo.de>
6864
6865 PR gdb/25325
6866 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
6867
d9e49b61
TT
68682020-04-03 Tom Tromey <tromey@adacore.com>
6869
6870 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
6871 Read constant block.
6872
e0fc5c3f
SM
68732020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
6874
6875 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
6876 (gdb_bfd_get_full_section_contents): New declaration.
6877 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
6878 * windows-tdep.c (is_linked_with_cygwin_dll): Use
6879 gdb_bfd_get_full_section_contents.
6880
e2ff18a0
SM
68812020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
6882
6883 * exec.c (build_section_table): Replace internal_error with
6884 gdb_assert.
6885 (section_table_xfer_memory_partial): Likewise.
6886 * mdebugread.c (parse_partial_symbols): Likewise.
6887 * psymtab.c (lookup_partial_symbol): Likewise.
6888 * utils.c (wrap_here): Likewise.
6889
0830d301
TT
68902020-04-02 Tom Tromey <tromey@adacore.com>
6891
6892 * f-lang.c (build_fortran_types): Use arch_type to initialize
6893 builtin_complex_s32 in the TYPE_CODE_ERROR case.
6894
e7da7f8f
TT
68952020-04-02 Tom Tromey <tromey@adacore.com>
6896
6897 * dwarf2/read.c (partial_die_info::read): Do not create a vector
6898 of attributes.
6899
c90d28ac
AB
69002020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
6901 Bernd Edlinger <bernd.edlinger@hotmail.de>
6902 Tom Tromey <tromey@adacore.com>
6903
6904 * buildsym.c (buildsym_compunit::record_line): Remove
6905 deduplication code.
6906
1aa98955
TV
69072020-04-02 Tom de Vries <tdevries@suse.de>
6908
6909 PR ada/24671
6910 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
6911
d3214198
TV
69122020-04-02 Tom de Vries <tdevries@suse.de>
6913
6914 * dwarf2/read.c (dwarf2_gdb_index_functions,
6915 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
6916 NULL.
6917 * psymtab.c (psym_lookup_global_symbol_language): New function.
6918 (psym_functions): Init psym_lookup_global_symbol_language with
6919 psym_lookup_global_symbol_language.
6920 * symfile-debug.c (debug_sym_quick_functions): Init
6921 lookup_global_symbol_language with NULL.
6922 * symfile.c (set_initial_language): Remove fixme comment.
6923 * symfile.h (struct quick_symbol_functions): Add
6924 lookup_global_symbol_language.
6925 * symtab.c (find_quick_global_symbol_language): New function.
6926 (find_main_name): Use find_quick_global_symbol_language.
6927
2836752f
SM
69282020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
6929
6930 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
6931
64dc2d4b
BE
69322020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
6933
6934 * buildsym.c (record_line): Fix undefined behavior and preserve
6935 lines at eof.
6936
bbe3dc41
BE
69372020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
6938
6939 * buildsym.c (record_line): Fix the resizing condition.
6940
6b4a335b
TT
69412020-04-01 Tom Tromey <tom@tromey.com>
6942
6943 * value.h (value_literal_complex): Add comment.
6944 * valops.c (value_literal_complex): Refer to value.h.
6945
3638a098
TT
69462020-04-01 Tom Tromey <tom@tromey.com>
6947
6948 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
6949 (scalar_type): New rule, from typebase.
6950 (typebase): Use scalar_type. Recognize complex types.
6951 (field_name): Handle FLOAT_KEYWORD.
6952 (ident_tokens): Add _Complex and __complex__.
6953
c34e8714
TT
69542020-04-01 Tom Tromey <tom@tromey.com>
6955
6956 PR exp/25299:
6957 * valarith.c (promotion_type, complex_binop): New functions.
6958 (scalar_binop): Handle complex numbers. Use promotion_type.
6959 (value_pos, value_neg, value_complement): Handle complex numbers.
6960
fa649bb7
TT
69612020-04-01 Tom Tromey <tom@tromey.com>
6962
6963 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
6964 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
6965 (parse_number): Handle complex numbers.
6966
981c08ce
TT
69672020-04-01 Tom Tromey <tom@tromey.com>
6968
6969 * c-valprint.c (c_decorations): Change complex suffix to "i".
6970
4c99290d
TT
69712020-04-01 Tom Tromey <tom@tromey.com>
6972
6973 * valprint.c (generic_value_print_complex): Use accessors.
6974 * value.h (value_real_part, value_imaginary_part): Declare.
6975 * valops.c (value_real_part, value_imaginary_part): New
6976 functions.
6977 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
6978
5b930b45
TT
69792020-04-01 Tom Tromey <tom@tromey.com>
6980
6981 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
6982 (read_range_type): Update.
6983 * mdebugread.c (basic_type): Update.
6984 * go-lang.c (build_go_types): Use init_complex_type.
6985 * gdbtypes.h (struct main_type) <complex_type>: New member.
6986 (init_complex_type): Update.
6987 (arch_complex_type): Don't declare.
6988 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
6989 Make name if none given. Use alloc_type_copy. Look for cached
6990 complex type.
6991 (arch_complex_type): Remove.
6992 (gdbtypes_post_init): Use init_complex_type.
6993 * f-lang.c (build_fortran_types): Use init_complex_type.
6994 * dwarf2/read.c (read_base_type): Update.
6995 * d-lang.c (build_d_types): Use init_complex_type.
6996 * ctfread.c (read_base_type): Update.
6997
53cccef1
TBA
69982020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6999
7000 * infrun.c (stop_all_threads): Update assertion, plus when
7001 stopping threads, take into account that we might be trying
7002 to stop an all-stop target.
7003 (stop_waiting): Call 'stop_all_threads' if there exists a
7004 non-stop target.
7005
a0714d30
TBA
70062020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7007
7008 * target.h (exists_non_stop_target): New function declaration.
7009 * target.c (exists_non_stop_target): New function.
7010
60e22c1e
HD
70112020-04-01 Hannes Domani <ssbssa@yahoo.de>
7012
7013 PR gdb/24789
7014 * eval.c (is_integral_or_integral_reference): New function.
7015 (evaluate_subexp_standard): Allow integer references in
7016 pointer arithmetic.
7017
e139a727
TBA
70182020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7019
7020 * remote.c (remote_target::remote_parse_stop_reply): Remove the
7021 check for no ptid in the stop reply when the target is non-stop.
7022
e0802d59
TT
70232020-04-01 Tom Tromey <tromey@adacore.com>
7024
7025 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
7026 "name" parameter to rvalue reference. Initialize m_name_holder.
7027 <lookup_name_info>: New overloads.
7028 <name>: Return gdb::string_view.
7029 <c_str>: New method.
7030 <make_ignore_params>: Update.
7031 <search_name_hash>: Update.
7032 <language_lookup_name>: Return const char *.
7033 <m_name>: Change type.
7034 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
7035 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
7036 (lookup_name_info::match_any): Update.
7037 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
7038 Update.
7039 * minsyms.c (linkage_name_str): Update.
7040 * language.c (default_symbol_name_matcher): Update.
7041 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
7042 Update.
7043 * ada-lang.c (ada_fold_name): Change parameter to string_view.
7044 (ada_lookup_name_info::ada_lookup_name_info): Update.
7045 (literal_symbol_name_matcher): Update.
7046
8c072cb6
TT
70472020-04-01 Tom Tromey <tromey@adacore.com>
7048
7049 * psymtab.c (psymtab_search_name): Remove function.
7050 (psym_lookup_symbol): Create search name and lookup name here.
7051 (lookup_partial_symbol): Remove "name" parameter; add
7052 lookup_name.
7053 (psym_expand_symtabs_for_function): Update.
7054
6f29a534
TT
70552020-03-31 Joel Jones <joelkevinjones@gmail.com>
7056
7057 PR tui/25597:
7058 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
7059
af62665e
TT
70602020-03-31 Tom Tromey <tromey@adacore.com>
7061
7062 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
7063 memcpy.
7064
d1a89da5
NC
70652020-03-30 Nelson Chu <nelson.chu@sifive.com>
7066
7067 * features/riscv/32bit-csr.xml: Regenerated.
7068 * features/riscv/64bit-csr.xml: Regenerated.
7069
d8af9068
TT
70702020-03-30 Tom Tromey <tromey@adacore.com>
7071
7072 * ada-valprint.c (print_variant_part): Update.
7073 * ada-lang.h (ada_which_variant_applies): Update.
7074 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
7075 outer_valaddr parameters; replace with "outer" value parameter.
7076 (to_fixed_variant_branch_type): Update.
7077
227c0bf4
PFC
70782020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
7079
7080 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
7081 <list>. Remove inclusion of observable.h.
7082 (PPC_DEBUG_CURRENT_VERSION): Move up define.
7083 (struct arch_lwp_info): New struct.
7084 (class ppc_linux_dreg_interface): New class.
7085 (struct ppc_linux_process_info): New struct.
7086 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
7087 <low_new_clone, low_forget_process, low_prepare_to_resume>
7088 <copy_thread_dreg_state, mark_thread_stale>
7089 <mark_debug_registers_changed, register_hw_breakpoint>
7090 <clear_hw_breakpoint, register_wp, clear_wp>
7091 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
7092 <num_memory_accesses, get_trigger_type>
7093 <create_watchpoint_request, hwdebug_point_cmp>
7094 <init_arch_lwp_info, get_arch_lwp_info>
7095 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
7096 methods.
7097 <struct ptid_hash>: New inner struct.
7098 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
7099 members.
7100 (saved_dabr_value, hwdebug_info, max_slots_number)
7101 (struct hw_break_tuple, struct thread_points, ppc_threads)
7102 (have_ptrace_hwdebug_interface)
7103 (hwdebug_find_thread_points_by_tid)
7104 (hwdebug_insert_point, hwdebug_remove_point): Remove.
7105 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
7106 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
7107 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
7108 use m_dreg_interface.
7109 (hwdebug_point_cmp): Change to...
7110 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
7111 reference arguments instead of pointers.
7112 (ppc_linux_nat_target::ranged_break_num_registers): Use
7113 m_dreg_interface.
7114 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
7115 m_dreg_interface. Call register_hw_breakpoint.
7116 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
7117 m_dreg_interface. Call clear_hw_breakpoint.
7118 (get_trigger_type): Change to...
7119 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
7120 comment.
7121 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
7122 use m_dreg_interface. Call register_hw_breakpoint.
7123 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
7124 use m_dreg_interface. Call clear_hw_breakpoint.
7125 (can_use_watchpoint_cond_accel): Change to...
7126 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
7127 method. Update comment, use m_dreg_interface and
7128 m_process_info.
7129 (calculate_dvc): Change to...
7130 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
7131 m_dreg_interface.
7132 (num_memory_accesses): Change to...
7133 (ppc_linux_nat_target::num_memory_accesses): ...this method.
7134 (check_condition): Change to...
7135 (ppc_linux_nat_target::check_condition): ...this method.
7136 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
7137 comment, use m_dreg_interface.
7138 (create_watchpoint_request): Change to...
7139 (ppc_linux_nat_target::create_watchpoint_request): ...this
7140 method. Use m_dreg_interface.
7141 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
7142 m_dreg_interface. Call register_hw_breakpoint or register_wp.
7143 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
7144 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
7145 (ppc_linux_nat_target::low_forget_process)
7146 (ppc_linux_nat_target::low_new_fork)
7147 (ppc_linux_nat_target::low_new_clone)
7148 (ppc_linux_nat_target::low_delete_thread)
7149 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
7150 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
7151 only call mark_thread_stale.
7152 (ppc_linux_thread_exit): Remove.
7153 (ppc_linux_nat_target::stopped_data_address): Change to...
7154 (ppc_linux_nat_target::low_stopped_data_address): This. Add
7155 comment, use m_dreg_interface and m_thread_hw_breakpoints.
7156 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
7157 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
7158 comment. Call low_stopped_data_address.
7159 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
7160 m_dreg_interface.
7161 (ppc_linux_nat_target::masked_watch_num_registers): Use
7162 m_dreg_interface.
7163 (ppc_linux_nat_target::copy_thread_dreg_state)
7164 (ppc_linux_nat_target::mark_thread_stale)
7165 (ppc_linux_nat_target::mark_debug_registers_changed)
7166 (ppc_linux_nat_target::register_hw_breakpoint)
7167 (ppc_linux_nat_target::clear_hw_breakpoint)
7168 (ppc_linux_nat_target::register_wp)
7169 (ppc_linux_nat_target::clear_wp)
7170 (ppc_linux_nat_target::init_arch_lwp_info)
7171 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
7172 (_initialize_ppc_linux_nat): Remove observer callback.
7173
4db10d8f
PFC
71742020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
7175
7176 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
7177 (ppc_linux_nat_target::auxv_parse)
7178 (ppc_linux_nat_target::read_description)
7179 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
7180 Move up.
7181
1310c1b0
PFC
71822020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
7183
7184 * linux-nat.h (low_new_clone): New method.
7185 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
7186
69b037c3
SM
71872020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
7188
7189 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
7190 (dbx_expand_psymtab): ... this.
7191 (start_psymtab): Update.
7192 * mdebugread.c (psymtab_to_symtab_1): Rename to...
7193 (mdebug_expand_psymtab): ... this.
7194 (parse_partial_symbols): Update.
7195 (new_psymtab): Update.
7196 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
7197 (xcoff_expand_psymtab): ... this.
7198 (xcoff_start_psymtab): Update.
7199
48993951
SM
72002020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
7201
7202 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
7203 <expand_dependencies>: ... this.
7204 * psymtab.c (partial_symtab::read_dependencies): Rename to...
7205 (partial_symtab::expand_dependencies): ... this.
7206 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
7207 Update.
7208 (dwarf2_psymtab::expand_psymtab): Update.
7209 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
7210 * mdebugread.c (psymtab_to_symtab_1): Update.
7211 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
7212
3ad83046
SM
72132020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
7214
7215 * psympriv.h (discard_psymtab): Remove.
7216 * dbxread.c (dbx_end_psymtab): Update.
7217 * xcoffread.c (xcoff_end_psymtab): Update.
7218
4d1b9ab6
TT
72192020-03-28 Tom Tromey <tom@tromey.com>
7220
7221 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
7222 comment.
7223
f1749218
TT
72242020-03-28 Tom Tromey <tom@tromey.com>
7225
7226 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
7227
ebea7626
HD
72282020-03-27 Hannes Domani <ssbssa@yahoo.de>
7229
7230 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
7231
a879b4d5
JB
72322020-03-26 John Baldwin <jhb@FreeBSD.org>
7233
7234 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
7235
0826b30a
TT
72362020-03-26 Tom Tromey <tom@tromey.com>
7237
7238 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
7239 (mark_common_block_symbol_computed, read_tag_string_type)
7240 (attr_to_dynamic_prop, read_subrange_type): Update.
7241 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
7242 to be methods on struct attribute.
7243 (skip_one_die, process_imported_unit_die, read_namespace_alias)
7244 (read_call_site_scope, partial_die_info::read)
7245 (partial_die_info::read, lookup_die_type, follow_die_ref):
7246 Update.
7247 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
7248 from dwarf2_get_ref_die_offset.
7249 (attribute::constant_value): New method, from
7250 dwarf2_get_attr_constant_value.
7251 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
7252 Declare method.
7253 <constant_value>: New method.
7254
2b2558bf
TT
72552020-03-26 Tom Tromey <tom@tromey.com>
7256
7257 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
7258 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
7259 (dwarf_type_encoding_name): Move to stringify.c.
7260 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
7261 * dwarf2/stringify.c: New file.
7262 * dwarf2/stringify.h: New file.
7263
eeb64781
TT
72642020-03-26 Tom Tromey <tom@tromey.com>
7265
7266 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
7267 Rewrite.
7268
a39fdb41
TT
72692020-03-26 Tom Tromey <tom@tromey.com>
7270
7271 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
7272 methods.
7273 * dwarf2/read.c (lookup_addr_base): Move to die.h.
7274 (lookup_ranges_base): Likewise.
7275 (read_cutu_die_from_dwo, read_full_die_1): Update.
7276
436c571c
TT
72772020-03-26 Tom Tromey <tom@tromey.com>
7278
7279 * dwarf2/read.c (read_import_statement, read_file_scope)
7280 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
7281 (read_lexical_block_scope, read_call_site_scope)
7282 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
7283 (handle_struct_member_die, process_structure_scope)
7284 (update_enumeration_type_from_children)
7285 (process_enumeration_scope, read_array_type, read_common_block)
7286 (read_namespace, read_module, read_subroutine_type): Update.
7287 (sibling_die): Remove.
7288
052c8bb8
TT
72892020-03-26 Tom Tromey <tom@tromey.com>
7290
7291 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
7292 (build_type_psymtabs_reader, read_structure_type)
7293 (read_enumeration_type, read_full_die_1): Update.
7294 (dwarf2_attr_no_follow): Move to die.h.
7295 * dwarf2/die.h (struct die_info) <attr>: New method.
7296
2b24b6e4
TT
72972020-03-26 Tom Tromey <tom@tromey.com>
7298
7299 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
7300 <base_address>: Now an optional.
7301 (dwarf2_find_base_address, dwarf2_rnglists_process)
7302 (dwarf2_ranges_process, fill_in_loclist_baton)
7303 (dwarf2_symbol_mark_computed): Update.
7304
c2d50fd0
TT
73052020-03-26 Tom Tromey <tom@tromey.com>
7306
7307 * dwarf2/read.c (struct die_info): Move to die.h.
7308 * dwarf2/die.h: New file.
7309
0df7ad3a
TT
73102020-03-26 Tom Tromey <tom@tromey.com>
7311
7312 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
7313 * dwarf2/read.c
7314 (dwarf2_statement_list_fits_in_line_number_section_complaint):
7315 Move to line-header.c.
7316 (read_checked_initial_length_and_offset, read_formatted_entries):
7317 Likewise.
7318 (dwarf_decode_line_header): Split into two.
7319 * dwarf2/line-header.c
7320 (dwarf2_statement_list_fits_in_line_number_section_complaint):
7321 Move from read.c.
7322 (read_checked_initial_length_and_offset, read_formatted_entries):
7323 Likewise.
7324 (dwarf_decode_line_header): New function, split from read.c.
7325
86c0bb4c
TT
73262020-03-26 Tom Tromey <tom@tromey.com>
7327
7328 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
7329 Declare method.
7330 * dwarf2/read.c (read_attribute_value): Update.
7331 (dwarf2_per_objfile::read_line_string): Rename from
7332 read_indirect_line_string.
7333 (read_formatted_entries): Update.
7334
2ef46c2f
TT
73352020-03-26 Tom Tromey <tom@tromey.com>
7336
7337 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
7338 variable.
7339
4f9c1eda
TT
73402020-03-26 Tom Tromey <tom@tromey.com>
7341
7342 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
7343 const.
7344 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
7345 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
7346 parameter const.
7347
5a0e026f
TT
73482020-03-26 Tom Tromey <tom@tromey.com>
7349
7350 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
7351 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
7352 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
7353 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
7354
8844c11b
TT
73552020-03-26 Tom Tromey <tom@tromey.com>
7356
7357 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
7358 file_names_size, file_full_name, file_file_name>: Use const.
7359 <file_name_at, file_names>: Add const overload.
7360 * dwarf2/line-header.c (line_header::file_file_name)
7361 (line_header::file_full_name): Update.
7362
c90ec28a
TT
73632020-03-26 Tom Tromey <tom@tromey.com>
7364
7365 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
7366 (macro_start_file, consume_improper_spaces)
7367 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
7368 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
7369 (dwarf_decode_macros): Move to macro.c.
7370 * dwarf2/macro.c: New file.
7371 * dwarf2/macro.h: New file.
7372 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
7373
4f44ae6c
TT
73742020-03-26 Tom Tromey <tom@tromey.com>
7375
7376 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
7377 method.
7378 * dwarf2/section.c: New method. From
7379 read_indirect_string_at_offset_from.
7380 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
7381 (read_indirect_string_at_offset_from): Move to section.c.
7382 (read_indirect_string_at_offset): Rewrite.
7383 (read_indirect_line_string_at_offset): Remove.
7384 (read_indirect_string, read_indirect_line_string)
7385 (dwarf_decode_macro_bytes): Update.
7386
a0194fa8
TT
73872020-03-26 Tom Tromey <tom@tromey.com>
7388
7389 * dwarf2/section.h (struct dwarf2_section_info)
7390 <overload_complaint>: Declare.
7391 (dwarf2_section_buffer_overflow_complaint): Don't declare.
7392 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
7393 Rename from dwarf2_section_buffer_overflow_complaint.
7394 * dwarf2/read.c (skip_one_die, partial_die_info::read)
7395 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
7396
3d27bbdb
TT
73972020-03-26 Tom Tromey <tom@tromey.com>
7398
7399 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
7400 Declare.
7401 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
7402 Move from read.c.
7403 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
7404 to section.c.
7405
9eac9650
TT
74062020-03-26 Tom Tromey <tom@tromey.com>
7407
7408 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
7409
bf80d710
TT
74102020-03-26 Tom Tromey <tom@tromey.com>
7411
7412 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
7413 "builder".
7414 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
7415 parameter.
7416 (dwarf_decode_macros): Update.
7417
0314b390
TT
74182020-03-26 Tom Tromey <tom@tromey.com>
7419
7420 * dwarf2/read.c (read_attribute_value): Update.
7421 (read_indirect_string_from_dwz): Move to dwz.c; change into
7422 method.
7423 (dwarf_decode_macro_bytes): Update.
7424 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
7425 * dwarf2/dwz.c: New file.
7426 * Makefile.in (COMMON_SFILES): Add dwz.c.
7427
9fda78b6
TT
74282020-03-26 Tom Tromey <tom@tromey.com>
7429
7430 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
7431 * dwarf2/read.c: Add include.
7432 * dwarf2/index-write.c: Add include.
7433 * dwarf2/index-cache.c: Add include.
7434 * dwarf2/dwz.h: New file.
7435
33aa3c10
TT
74362020-03-25 Tom Tromey <tom@tromey.com>
7437
7438 * compile/compile-object-load.c (get_out_value_type): Mention
7439 correct symbol name in error message.
7440
d503b685
HD
74412020-03-25 Hannes Domani <ssbssa@yahoo.de>
7442
7443 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
7444
7b1eff95
TV
74452020-03-25 Tom de Vries <tdevries@suse.de>
7446
7447 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
7448 * symmisc.c (dump_symtab_1): Print user and includes fields.
7449 (maintenance_info_symtabs): Same.
7450
dd895392
AB
74512020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
7452
7453 PR gdb/25534
7454 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
7455 (riscv_regcache_cooked_write): New function.
7456 (riscv_push_dummy_call): Use new function.
7457 (riscv_return_value): Likewise.
7458
5ab2fbf1
SM
74592020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
7460
7461 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
7462 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
7463 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
7464 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
7465 * infrun.c (follow_fork): Likewise.
7466 (follow_fork_inferior): Likewise.
7467 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
7468 * linux-nat.h (class linux_nat_target): Likewise.
7469 * remote.c (class remote_target) <follow_fork>: Likewise.
7470 (remote_target::follow_fork): Likewise.
7471 * target-delegates.c: Re-generate.
7472 * target.c (default_follow_fork): Likewise.
7473 (target_follow_fork): Likewise.
7474 * target.h (struct target_ops) <follow_fork>: Likewise.
7475 (target_follow_fork): Likewise.
7476
a64fafb5
TV
74772020-03-24 Tom de Vries <tdevries@suse.de>
7478
7479 * psymtab.c (maintenance_info_psymtabs): Print user field.
7480
fe26d3a3
TT
74812020-03-20 Tom Tromey <tromey@adacore.com>
7482
7483 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
7484 const.
7485 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
7486 const.
7487
c884cc46
SM
74882020-03-20 Simon Marchi <simon.marchi@efficios.com>
7489
7490 * ptrace.m4: Don't check for ptrace declaration.
7491 * config.in: Re-generate.
7492 * configure: Re-generate.
7493 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
7494 not defined.
7495
1ff700c2
KR
74962020-03-20 Kamil Rytarowski <n54@gmx.com>
7497
7498 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
7499 `PTRACE_TYPE_RET'.
7500 * i386-bsd-nat.c (gdb_ptrace): Likewise.
7501 * sparc-nat.c (gdb_ptrace): Likewise.
7502 * x86-bsd-nat.c (gdb_ptrace): Likewise.
7503
f7d4f0b1
TT
75042020-03-20 Tom Tromey <tromey@adacore.com>
7505
7506 * c-exp.y (lex_one_token): Fix assert.
7507
f67210ff
TT
75082020-03-20 Tom Tromey <tromey@adacore.com>
7509
7510 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
7511 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
7512 strncpy call.
7513
1773be9e
TT
75142020-03-20 Tom Tromey <tromey@adacore.com>
7515
7516 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
7517
70304be9
TT
75182020-03-20 Tom Tromey <tromey@adacore.com>
7519
7520 * ada-valprint.c (print_variant_part): Remove parameters; switch
7521 to value-based API.
7522 (print_field_values): Likewise.
7523 (ada_val_print_struct_union): Likewise.
7524 (ada_value_print_1): Update.
7525
9faa006d
KR
75262020-03-20 Kamil Rytarowski <n54@gmx.com>
7527
7528 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
7529 nbsd_nat_target instead of inf_ptrace_target.
7530 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
7531 nbsd_nat_target.
7532
4a90f062
KR
75332020-03-20 Kamil Rytarowski <n54@gmx.com>
7534
7535 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
7536 it to the ptrace call.
7537 * (store_registers): Likewise.
7538
75392020-03-20 Kamil Rytarowski <n54@gmx.com>
c7da12c7
KR
7540
7541 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
7542 it to the ptrace call.
7543 * (store_registers): Likewise.
7544
2d07da27
LM
75452020-03-19 Luis Machado <luis.machado@linaro.org>
7546
7547 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
7548 valid, fetch vg value from ptrace.
7549
f09db380
KR
75502020-03-19 Kamil Rytarowski <n54@gmx.com>
7551 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
7552 * inf-ptrace.c: Likewise.
7553 * (gdb_ptrace): Add.
7554 * (inf_ptrace_target::resume): Update.
7555 * (inf_ptrace_target::xfer_partial): Likewise.
7556 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
7557 * (inf_ptrace_peek_poke): Update.
7558
fcc7376e
KR
75592020-03-19 Kamil Rytarowski <n54@gmx.com>
7560
7561 * x86-bsd-nat.c (gdb_ptrace): New.
7562 * (x86bsd_dr_set): Add new argument `ptid'.
7563 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
7564 x86bsd_dr_set_addr): Update.
7565
cada5fc9
AB
75662020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
7567
7568 * remote.c (remote_target::process_stop_reply): Handle events for
7569 all threads differently.
7570
19a2740f
AB
75712020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
7572
7573 * completer.c (completion_tracker::remove_completion): Define new
7574 function.
7575 * completer.h (completion_tracker::remove_completion): Declare new
7576 function.
7577 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
7578 when adding a C++ function symbol.
7579
724fd9ba
AB
75802020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
7581
7582 * completer.c (completion_tracker::completion_hash_entry): Define
7583 new class.
7584 (advance_to_filename_complete_word_point): Call
7585 recompute_lowest_common_denominator.
7586 (completion_tracker::completion_tracker): Call discard_completions
7587 to setup the hash table.
7588 (completion_tracker::discard_completions): Allow for being called
7589 from the constructor, pass new equal function, and element deleter
7590 when constructing the hash table. Initialise new class member
7591 variables.
7592 (completion_tracker::maybe_add_completion): Remove use of
7593 m_entries_vec, and store more information into m_entries_hash.
7594 (completion_tracker::recompute_lcd_visitor): New function, most
7595 content taken from...
7596 (completion_tracker::recompute_lowest_common_denominator):
7597 ...here, this now just visits each item in the hash calling the
7598 above visitor.
7599 (completion_tracker::build_completion_result): Remove use of
7600 m_entries_vec, call recompute_lowest_common_denominator.
7601 * completer.h (completion_tracker::have_completions): Remove use
7602 of m_entries_vec.
7603 (completion_tracker::completion_hash_entry): Declare new class.
7604 (completion_tracker::recompute_lowest_common_denominator): Change
7605 function signature.
7606 (completion_tracker::recompute_lcd_visitor): Declare new function.
7607 (completion_tracker::m_entries_vec): Delete.
7608 (completion_tracker::m_entries_hash): Initialize to NULL.
7609 (completion_tracker::m_lowest_common_denominator_valid): New
7610 member variable.
7611 (completion_tracker::m_lowest_common_denominator_max_length): New
7612 member variable.
7613
5a82b8a1
KR
76142020-03-17 Kamil Rytarowski <n54@gmx.com>
7615
7616 * regformats/regdef.h: Put reg in gdb namespace.
7617
fb516a69
KR
76182020-03-17 Kamil Rytarowski <n54@gmx.com>
7619
7620 * i386-bsd-nat.c (gdb_ptrace): New.
7621 * (i386bsd_fetch_inferior_registers,
7622 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
7623 * (i386bsd_fetch_inferior_registers,
7624 i386bsd_store_inferior_registers) Use gdb_ptrace.
7625
1c0aa1fb
KR
76262020-03-17 Kamil Rytarowski <n54@gmx.com>
7627
7628 * amd64-bsd-nat.c (gdb_ptrace): New.
7629 * (amd64bsd_fetch_inferior_registers,
7630 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
7631 * (amd64bsd_fetch_inferior_registers,
7632 amd64bsd_store_inferior_registers) Use gdb_ptrace.
7633
5ccd2fb7
KR
76342020-03-17 Kamil Rytarowski <n54@gmx.com>
7635
7636 * user-regs.c (user_reg::read): Rename to...
7637 (user_reg::xread): ...this.
7638 * (append_user_reg): Rename argument `read' to `xread'.
7639 * (user_reg_add_builtin): Likewise.
7640 * (user_reg_add): Likewise.
7641 * (value_of_user_reg): Likewise.
7642
2108a63a
KR
76432020-03-17 Kamil Rytarowski <n54@gmx.com>
7644
7645 * sparc-nat.c (gdb_ptrace): New.
7646 * sparc-nat.c (sparc_fetch_inferior_registers)
7647 (sparc_store_inferior_registers) Remove obsolete comment.
7648 * sparc-nat.c (sparc_fetch_inferior_registers)
7649 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
7650 * sparc-nat.c (sparc_fetch_inferior_registers)
7651 (sparc_store_inferior_registers) Use gdb_ptrace.
7652
a225c9a8
KR
76532020-03-17 Kamil Rytarowski <n54@gmx.com>
7654
7655 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
7656 it to the ptrace call.
7657 * sh-nbsd-nat.c (store_registers): Likewise.
7658
98097623
KR
76592020-03-17 Kamil Rytarowski <n54@gmx.com>
7660
7661 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
7662 nbsd_nat_target instead of inf_ptrace_target.
7663 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
7664 nbsd_nat_target.
7665
9e38d619
KR
76662020-03-17 Kamil Rytarowski <n54@gmx.com>
7667
7668 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
7669
a2ecbe9f
KR
76702020-03-17 Kamil Rytarowski <n54@gmx.com>
7671
7672 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
7673 <sys/sysctl.h>.
7674 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
7675
58990295
TV
76762020-03-17 Tom de Vries <tdevries@suse.de>
7677
7678 PR gdb/23710
7679 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
7680 fields.
7681 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
7682 fields.
7683 (process_imported_unit_die): Skip import of c++ CUs.
7684
771dd3a8
TT
76852020-03-16 Tom Tromey <tom@tromey.com>
7686
7687 * p-valprint.c (pascal_object_print_value): Initialize
7688 base_value.
7689
817a7585
AK
76902020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
7691 Shahab Vahedi <shahab@synopsys.com>
7692
7693 * Makefile.in: Add arch/arc.o
7694 * configure.tgt: Likewise.
7695 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
7696 (_initialize_arc_tdep): Don't initialize old target descriptions.
aac66a4c 7697 (arc_read_description): New function to cache target descriptions.
817a7585
AK
7698 * arc-tdep.h (arc_read_description): Add proto type.
7699 * arch/arc.c: New file.
7700 * arch/arc.h: Likewise.
7701 * features/Makefile: Replace old target descriptions with new.
7702 * features/arc-arcompact.c: Remove.
7703 * features/arc-arcompact.xml: Likewise.
7704 * features/arc-v2.c: Likewise
7705 * features/arc-v2.xml: Likewise
7706 * features/arc/aux-arcompact.xml: New file.
7707 * features/arc/aux-v2.xml: Likewise.
7708 * features/arc/core-arcompact.xml: Likewise.
7709 * features/arc/core-v2.xml: Likewise.
7710 * features/arc/aux-arcompact.c: Generate.
7711 * features/arc/aux-v2.c: Likewise.
7712 * features/arc/core-arcompact.c: Likewise.
7713 * features/arc/core-v2.c: Likewise.
7714 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
7715
67430cd0
TT
77162020-03-16 Tom Tromey <tromey@adacore.com>
7717
7718 PR gdb/25663:
7719 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
7720 putting value into bcache.
7721
30efb6c7
SM
77222020-03-16 Simon Marchi <simon.marchi@efficios.com>
7723
7724 PR gdb/21500
7725 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
7726 to...
7727 (amd64_windows_init_abi_common): ... this. Don't set size of
7728 long type.
7729 (amd64_windows_init_abi): New function.
7730 (amd64_cygwin_init_abi): New function.
7731 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
7732 the Cygwin OS ABI.
7733 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
7734 comment.
7735
8db52437
SM
77362020-03-16 Simon Marchi <simon.marchi@efficios.com>
7737
7738 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
7739 * windows-tdep.c (CYGWIN_DLL_NAME): New.
7740 (pe_import_directory_entry): New struct type.
7741 (is_linked_with_cygwin_dll): New function.
7742 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
7743 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
7744 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
7745
5982a56a
SM
77462020-03-16 Simon Marchi <simon.marchi@efficios.com>
7747
7748 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
7749 i386_cygwin_core_osabi_sniffer.
7750
7a1998df
SM
77512020-03-16 Simon Marchi <simon.marchi@efficios.com>
7752
7753 * i386-cygwin-tdep.c: Rename to...
7754 * i386-windows-tdep.c: ... this.
7755 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
7756 i386-windows-tdep.c.
7757 * configure.tgt: Likewise.
7758
053205cc
SM
77592020-03-16 Simon Marchi <simon.marchi@efficios.com>
7760
7761 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
7762 * osabi.c (gdb_osabi_names): Add "Windows".
7763 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
7764 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
7765 (i386_cygwin_core_osabi_sniffer): New function, extracted from
7766 i386_cygwin_osabi_sniffer.
7767 (_initialize_i386_cygwin_tdep): Register OS ABI
7768 GDB_OSABI_WINDOWS for i386.
7769 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
7770 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
7771 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
7772 for x86-64.
7773 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
7774 when the target matches '*-*-mingw*'.
7775
fe4b2ee6
SM
77762020-03-16 Simon Marchi <simon.marchi@efficios.com>
7777
7778 * defs.h (enum gdb_osabi): Move to...
7779 * osabi.h (enum gdb_osabi): ... here.
7780 * gdbarch.sh: Include osabi.h in gdbarch.h.
7781 * gdbarch.h: Re-generate.
7782
cb9b645d
SM
77832020-03-16 Simon Marchi <simon.marchi@efficios.com>
7784
7785 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
7786 function.
7787 (_initialize_amd64_windows_tdep): Register osabi sniffer.
7788
3293bbaf
TT
77892020-03-14 Tom Tromey <tom@tromey.com>
7790
7791 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
7792 for C++.
7793 (c_type_print_modifier): Likewise. Add "language" parameter.
7794 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
7795 (c_type_print_base_1): Update.
7796 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
7797 constants.
7798 * type-stack.c (type_stack::insert): Handle tp_atomic and
7799 tp_restrict.
7800 (type_stack::follow_type_instance_flags): Likewise.
7801 (type_stack::follow_types): Likewise. Merge type-following code.
7802 * c-exp.y (RESTRICT, ATOMIC): New tokens.
7803 (space_identifier, cv_with_space_id)
7804 (const_or_volatile_or_space_identifier_noopt)
7805 (const_or_volatile_or_space_identifier): Remove.
7806 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
7807 rules.
7808 (ptr_operator, typebase): Update.
7809 (enum token_flag) <FLAG_C>: New constant.
7810 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
7811 "_Atomic".
7812 (lex_one_token): Handle FLAG_C.
7813
154151a6
KR
78142020-03-14 Kamil Rytarowski <n54@gmx.com>
7815
7816 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
7817 it to the ptrace call.
7818 * m68k-bsd-nat.c (store_registers): Likewise.
7819
bc107784
KR
78202020-03-14 Kamil Rytarowski <n54@gmx.com>
7821
7822 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
7823 gdb_byte *.
7824 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
7825 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
7826 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
7827
01a80117
KR
78282020-03-14 Kamil Rytarowski <n54@gmx.com>
7829
7830 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
7831 nbsd_nat_target instead of inf_ptrace_target.
7832 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
7833 nbsd_nat_target.
7834
f90280ca
KR
78352020-03-14 Kamil Rytarowski <n54@gmx.com>
7836
7837 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
7838 register_t.
7839
6def66f1
KR
78402020-03-14 Kamil Rytarowski <n54@gmx.com>
7841
7842 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
7843 it to the ptrace call.
7844 * alpha-bsd-nat.c (store_registers): Likewise.
7845
66eaca97
KR
78462020-03-14 Kamil Rytarowski <n54@gmx.com>
7847
7848 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
7849 includes.
7850 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
7851 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
7852 fill_fpregset): Likewise.
7853
4fed520b
KR
78542020-03-14 Kamil Rytarowski <n54@gmx.com>
7855
7856 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
7857 nbsd_nat_target instead of inf_ptrace_target.
7858 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
7859 nbsd_nat_target.
7860
2190cf06
KR
78612020-03-14 Kamil Rytarowski <n54@gmx.com>
7862
7863 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
7864 register_t.
7865
75c56d3d
KR
78662020-03-14 Kamil Rytarowski <n54@gmx.com>
7867
7868 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
7869 it to the ptrace call.
7870 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
7871 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
7872 * arm-nbsd-nat.c (store_register): Likewise.
7873 * arm-nbsd-nat.c (store_regs): Likewise.
7874 * arm-nbsd-nat.c (store_fp_register): Likewise.
7875 * arm-nbsd-nat.c (store_fp_regs): Likewise.
7876
6018d381
KR
78772020-03-14 Kamil Rytarowski <n54@gmx.com>
7878
7879 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
7880 nbsd_nat_target instead of inf_ptrace_target.
7881 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
7882 nbsd_nat_target.
7883
013f99f0
KR
78842020-03-14 Kamil Rytarowski <n54@gmx.com>
7885
7886 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
7887 it to the ptrace call.
7888 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
7889
12753073
KR
78902020-03-14 Kamil Rytarowski <n54@gmx.com>
7891
6227b330
KR
7892 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
7893 it to the ptrace call.
7894 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
7895
78962020-03-14 Kamil Rytarowski <n54@gmx.com>
7897
7898 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
7899 gdb_byte *.
12753073
KR
7900 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
7901
d5be5fa4
KR
79022020-03-14 Kamil Rytarowski <n54@gmx.com>
7903
7904 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
7905 instead of inf_ptrace_target.
7906 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
7907 nbsd_nat_target.
7908
8110f842
KR
79092020-03-14 Kamil Rytarowski <n54@gmx.com>
7910
7911 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
7912 register_t.
7913
52feded7
KR
79142020-03-14 Kamil Rytarowski <n54@gmx.com>
7915
7916 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
7917 register_t.
7918
25567eee
KR
79192020-03-14 Kamil Rytarowski <n54@gmx.com>
7920
7921 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
7922 register_t.
7923
426a9c18
TT
79242020-03-13 Tom Tromey <tom@tromey.com>
7925
7926 * value.h (val_print): Don't declare.
7927 * valprint.h (val_print_array_elements)
7928 (val_print_scalar_formatted, generic_val_print): Don't declare.
7929 * valprint.c (generic_val_print_array): Take a struct value.
7930 (generic_val_print_ptr, generic_val_print_memberptr)
7931 (generic_val_print_bool, generic_val_print_int)
7932 (generic_val_print_char, generic_val_print_complex)
7933 (generic_val_print): Remove.
7934 (generic_value_print): Update.
7935 (do_val_print): Remove unused parameters. Don't call
7936 la_val_print.
7937 (val_print): Remove.
7938 (common_val_print): Update. Don't call value_check_printable.
7939 (val_print_scalar_formatted, val_print_array_elements): Remove.
7940 * rust-lang.c (rust_val_print): Remove.
7941 (rust_language_defn): Update.
7942 * p-valprint.c (pascal_val_print): Remove.
7943 (pascal_value_print_inner): Update.
7944 (pascal_object_print_val_fields, pascal_object_print_val):
7945 Remove.
7946 (pascal_object_print_static_field): Update.
7947 * p-lang.h (pascal_val_print): Don't declare.
7948 * p-lang.c (pascal_language_defn): Update.
7949 * opencl-lang.c (opencl_language_defn): Update.
7950 * objc-lang.c (objc_language_defn): Update.
7951 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
7952 * m2-lang.h (m2_val_print): Don't declare.
7953 * m2-lang.c (m2_language_defn): Update.
7954 * language.h (struct language_defn) <la_val_print>: Remove.
7955 * language.c (unk_lang_value_print_inner): Rename. Change
7956 argument types.
7957 (unknown_language_defn, auto_language_defn): Update.
7958 * go-valprint.c (go_val_print): Remove.
7959 * go-lang.h (go_val_print): Don't declare.
7960 * go-lang.c (go_language_defn): Update.
7961 * f-valprint.c (f_val_print): Remove.
7962 * f-lang.h (f_value_print): Don't declare.
7963 * f-lang.c (f_language_defn): Update.
7964 * d-valprint.c (d_val_print): Remove.
7965 * d-lang.h (d_value_print): Don't declare.
7966 * d-lang.c (d_language_defn): Update.
7967 * cp-valprint.c (cp_print_value_fields)
7968 (cp_print_value_fields_rtti, cp_print_value): Remove.
7969 (cp_print_static_field): Update.
7970 * c-valprint.c (c_val_print_array, c_val_print_ptr)
7971 (c_val_print_struct, c_val_print_union, c_val_print_int)
7972 (c_val_print_memberptr, c_val_print): Remove.
7973 * c-lang.h (c_val_print_array, cp_print_value_fields)
7974 (cp_print_value_fields_rtti): Don't declare.
7975 * c-lang.c (c_language_defn, cplus_language_defn)
7976 (asm_language_defn, minimal_language_defn): Update.
7977 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
7978 (ada_val_print_enum): Take a struct value.
7979 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
7980 (ada_val_print): Remove.
7981 (ada_value_print_1): Update.
7982 (printable_val_type): Remove.
7983 * ada-lang.h (ada_val_print): Don't declare.
7984 * ada-lang.c (ada_language_defn): Update.
7985
42331a1e
TT
79862020-03-13 Tom Tromey <tom@tromey.com>
7987
7988 * valprint.c (do_val_print): Update.
7989 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
7990 a struct value.
7991 (value_to_value_object_no_release): Declare.
7992 * python/py-value.c (value_to_value_object_no_release): New
7993 function.
7994 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
7995 struct value.
7996 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
7997 function.
7998 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
7999 a struct value.
8000 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
8001 Declare.
8002 (gdbscm_apply_val_pretty_printer): Take a struct value.
8003 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
8004 value.
8005 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
8006 value.
8007 * extension-priv.h (struct extension_language_ops)
8008 <apply_val_pretty_printer>: Take a struct value.
8009 * cp-valprint.c (cp_print_value): Create a struct value.
8010 (cp_print_value): Update.
8011
3a916a97
TT
80122020-03-13 Tom Tromey <tom@tromey.com>
8013
8014 * ada-valprint.c (print_field_values): Call common_val_print.
8015
b59eac37
TT
80162020-03-13 Tom Tromey <tom@tromey.com>
8017
8018 * ada-valprint.c (val_print_packed_array_elements): Remove
8019 bitoffset and val parameters. Call common_val_print.
8020 (ada_val_print_string): Remove offset, address, and original_value
8021 parameters.
8022 (ada_val_print_array): Update.
8023 (ada_value_print_array): New function.
8024 (ada_value_print_1): Call it.
8025
03371129
TT
80262020-03-13 Tom Tromey <tom@tromey.com>
8027
8028 * ada-valprint.c (ada_value_print): Use common_val_print.
8029
2e088f8b
TT
80302020-03-13 Tom Tromey <tom@tromey.com>
8031
8032 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
8033
39ef85a8
TT
80342020-03-13 Tom Tromey <tom@tromey.com>
8035
8036 * ada-valprint.c (ada_value_print_num): New function.
8037 (ada_value_print_1): Use it.
8038
b9fa6e07
TT
80392020-03-13 Tom Tromey <tom@tromey.com>
8040
8041 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
8042
416595d6
TT
80432020-03-13 Tom Tromey <tom@tromey.com>
8044
8045 * ada-valprint.c (ada_value_print_ptr): New function.
8046 (ada_value_print_1): Use it.
8047
5b5e15ec
TT
80482020-03-13 Tom Tromey <tom@tromey.com>
8049
8050 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
8051 call common_val_print.
8052 (ada_val_print_1): Update.
8053 (ada_value_print_1): New function.
8054 (ada_value_print_inner): Rewrite.
8055
fbf54e75
TT
80562020-03-13 Tom Tromey <tom@tromey.com>
8057
8058 * cp-valprint.c (cp_print_value_fields): Update.
8059 (cp_print_value): New function.
8060
64b653ca
TT
80612020-03-13 Tom Tromey <tom@tromey.com>
8062
8063 * m2-valprint.c (m2_value_print_inner): Use
8064 cp_print_value_fields.
8065 * cp-valprint.c (cp_print_value_fields): New function.
8066 * c-valprint.c (c_value_print_struct): New function.
8067 (c_value_print_inner): Use c_value_print_struct.
8068 * c-lang.h (cp_print_value_fields): Declare.
8069
6999f067
TT
80702020-03-13 Tom Tromey <tom@tromey.com>
8071
8072 * c-valprint.c (c_value_print_array): New function.
8073 (c_value_print_inner): Use it.
8074
ce80b8bd
TT
80752020-03-13 Tom Tromey <tom@tromey.com>
8076
8077 * c-valprint.c (c_value_print_memberptr): New function.
8078 (c_value_print_inner): Use it.
8079
2faac269
TT
80802020-03-13 Tom Tromey <tom@tromey.com>
8081
8082 * c-valprint.c (c_value_print_int): New function.
8083 (c_value_print_inner): Use it.
8084
da3e2c29
TT
80852020-03-13 Tom Tromey <tom@tromey.com>
8086
8087 * c-valprint.c (c_value_print_ptr): New function.
8088 (c_value_print_inner): Use it.
8089
50836231
TT
80902020-03-13 Tom Tromey <tom@tromey.com>
8091
8092 * c-valprint.c (c_value_print_inner): Rewrite.
8093
4f412b6e
TT
80942020-03-13 Tom Tromey <tom@tromey.com>
8095
8096 * valprint.c (generic_value_print_complex): New function.
8097 (generic_value_print): Use it.
8098
f5354008
TT
80992020-03-13 Tom Tromey <tom@tromey.com>
8100
8101 * valprint.c (generic_val_print_float): Don't call
8102 val_print_scalar_formatted.
8103 (generic_val_print, generic_value_print): Update.
8104
3eec3b05
TT
81052020-03-13 Tom Tromey <tom@tromey.com>
8106
8107 * valprint.c (generic_value_print_char): New function
8108 (generic_value_print): Use it.
8109
fdddfccb
TT
81102020-03-13 Tom Tromey <tom@tromey.com>
8111
8112 * valprint.c (generic_value_print_int): New function.
8113 (generic_value_print): Use it.
8114
6dde7521
TT
81152020-03-13 Tom Tromey <tom@tromey.com>
8116
8117 * valprint.c (generic_value_print_bool): New function.
8118 (generic_value_print): Use it.
8119
4112d2e6
TT
81202020-03-13 Tom Tromey <tom@tromey.com>
8121
8122 * valprint.c (generic_val_print_func): Simplify.
8123 (generic_val_print, generic_value_print): Update.
8124
65786af6
TT
81252020-03-13 Tom Tromey <tom@tromey.com>
8126
8127 * valprint.c (generic_val_print_flags): Remove.
8128 (generic_val_print, generic_value_print): Update.
8129 (val_print_type_code_flags): Add original_value parameter.
8130
40f3ce18
TT
81312020-03-13 Tom Tromey <tom@tromey.com>
8132
8133 * valprint.c (generic_val_print): Update.
8134 (generic_value_print): Update.
8135 * valprint.c (generic_val_print_enum): Don't call
8136 val_print_scalar_formatted.
8137
2a5b130b
TT
81382020-03-13 Tom Tromey <tom@tromey.com>
8139
8140 * valprint.c (generic_value_print): Call generic_value_print_ptr.
8141 * valprint.c (generic_value_print_ptr): New function.
8142
abc66ce9
TT
81432020-03-13 Tom Tromey <tom@tromey.com>
8144
8145 * valprint.c (generic_value_print): Rewrite.
8146
07a32858
TT
81472020-03-13 Tom Tromey <tom@tromey.com>
8148
8149 * p-valprint.c (pascal_object_print_value_fields)
8150 (pascal_object_print_value): New functions.
8151
64d64d3a
TT
81522020-03-13 Tom Tromey <tom@tromey.com>
8153
8154 * p-valprint.c (pascal_value_print_inner): Rewrite.
8155
6a95a1f5
TT
81562020-03-13 Tom Tromey <tom@tromey.com>
8157
8158 * f-valprint.c (f_value_print_innner): Rewrite.
8159
59fcdac6
TT
81602020-03-13 Tom Tromey <tom@tromey.com>
8161
8162 * m2-valprint.c (m2_print_unbounded_array): New overload.
8163 (m2_print_unbounded_array): Update.
8164 (m2_print_array_contents): Take a struct value.
8165 (m2_value_print_inner): Rewrite.
8166
d133c3e1
TT
81672020-03-13 Tom Tromey <tom@tromey.com>
8168
8169 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
8170 (d_value_print_inner): New function.
8171 * d-lang.h (d_value_print_inner): Declare.
8172 * d-lang.c (d_language_defn): Use d_value_print_inner.
8173
23b0f06b
TT
81742020-03-13 Tom Tromey <tom@tromey.com>
8175
8176 * go-valprint.c (go_value_print_inner): New function.
8177 * go-lang.h (go_value_print_inner): Declare.
8178 * go-lang.c (go_language_defn): Use go_value_print_inner.
8179
5f56f7cb
TT
81802020-03-13 Tom Tromey <tom@tromey.com>
8181
8182 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
8183 API.
8184 (rust_val_print): Rewrite.
8185 (rust_value_print_inner): New function, from rust_val_print.
8186 (rust_language_defn): Use rust_value_print_inner.
8187
26792ee0
TT
81882020-03-13 Tom Tromey <tom@tromey.com>
8189
8190 * ada-valprint.c (ada_value_print_inner): New function.
8191 * ada-lang.h (ada_value_print_inner): Declare.
8192 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
8193
24051bbe
TT
81942020-03-13 Tom Tromey <tom@tromey.com>
8195
8196 * f-valprint.c (f_value_print_innner): New function.
8197 * f-lang.h (f_value_print_innner): Declare.
8198 * f-lang.c (f_language_defn): Use f_value_print_innner.
8199
c0941be6
TT
82002020-03-13 Tom Tromey <tom@tromey.com>
8201
8202 * p-valprint.c (pascal_value_print_inner): New function.
8203 * p-lang.h (pascal_value_print_inner): Declare.
8204 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
8205
62c4663d
TT
82062020-03-13 Tom Tromey <tom@tromey.com>
8207
8208 * m2-valprint.c (m2_value_print_inner): New function.
8209 * m2-lang.h (m2_value_print_inner): Declare.
8210 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
8211
62182190
TT
82122020-03-13 Tom Tromey <tom@tromey.com>
8213
8214 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
8215 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
8216 * c-valprint.c (c_value_print_inner): New function.
8217 * c-lang.h (c_value_print_inner): Declare.
8218 * c-lang.c (c_language_defn, cplus_language_defn)
8219 (asm_language_defn, minimal_language_defn): Use
8220 c_value_print_inner.
8221
1e592a8a
TT
82222020-03-13 Tom Tromey <tom@tromey.com>
8223
8224 * p-valprint.c (pascal_object_print_value_fields): Now static.
8225 * p-lang.h (pascal_object_print_value_fields): Don't declare.
8226
7fe471e9
TT
82272020-03-13 Tom Tromey <tom@tromey.com>
8228
8229 * c-valprint.c (c_val_print_array): Simplify.
8230
d121c6ce
TT
82312020-03-13 Tom Tromey <tom@tromey.com>
8232
8233 * valprint.c (value_print_array_elements): New function.
8234 * valprint.h (value_print_array_elements): Declare.
8235
4dba70ee
TT
82362020-03-13 Tom Tromey <tom@tromey.com>
8237
8238 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
8239 * mips-tdep.c (mips_print_register): Use
8240 value_print_scalar_formatted.
8241
4f9ae810
TT
82422020-03-13 Tom Tromey <tom@tromey.com>
8243
8244 * valprint.h (value_print_scalar_formatted): Declare.
8245 * valprint.c (value_print_scalar_formatted): New function.
8246
156bfec9
TT
82472020-03-13 Tom Tromey <tom@tromey.com>
8248
8249 * valprint.h (generic_value_print): Declare.
8250 * valprint.c (generic_value_print): New function.
8251
2b4e573d
TT
82522020-03-13 Tom Tromey <tom@tromey.com>
8253
8254 * valprint.c (do_val_print): Call la_value_print_inner, if
8255 available.
8256 * rust-lang.c (rust_language_defn): Update.
8257 * p-lang.c (pascal_language_defn): Update.
8258 * opencl-lang.c (opencl_language_defn): Update.
8259 * objc-lang.c (objc_language_defn): Update.
8260 * m2-lang.c (m2_language_defn): Update.
8261 * language.h (struct language_defn) <la_value_print_inner>: New
8262 member.
8263 * language.c (unknown_language_defn, auto_language_defn): Update.
8264 * go-lang.c (go_language_defn): Update.
8265 * f-lang.c (f_language_defn): Update.
8266 * d-lang.c (d_language_defn): Update.
8267 * c-lang.c (c_language_defn, cplus_language_defn)
8268 (asm_language_defn, minimal_language_defn): Update.
8269 * ada-lang.c (ada_language_defn): Update.
8270
a1f6a07c
TT
82712020-03-13 Tom Tromey <tom@tromey.com>
8272
8273 * c-valprint.c (c_value_print): Use common_val_print.
8274
410cf315
TT
82752020-03-13 Tom Tromey <tom@tromey.com>
8276
8277 * cp-valprint.c (cp_print_static_field): Use common_val_print.
8278
72a45c93
TT
82792020-03-13 Tom Tromey <tom@tromey.com>
8280
8281 * f-valprint.c (f77_print_array_1, f_val_print): Use
8282 common_val_print.
8283
040f66bd
TT
82842020-03-13 Tom Tromey <tom@tromey.com>
8285
8286 * riscv-tdep.c (riscv_print_one_register_info): Use
8287 common_val_print.
8288
a6e05a6c
TT
82892020-03-13 Tom Tromey <tom@tromey.com>
8290
8291 * mi/mi-main.c (output_register): Use common_val_print.
8292
3444c526
TT
82932020-03-13 Tom Tromey <tom@tromey.com>
8294
8295 * infcmd.c (default_print_one_register_info): Use
8296 common_val_print.
8297
c2a44efe
TT
82982020-03-13 Tom Tromey <tom@tromey.com>
8299
8300 * valprint.h (common_val_print_checked): Declare.
8301 * valprint.c (common_val_print_checked): New function.
8302 * stack.c (print_frame_arg): Use common_val_print_checked.
8303
b0c26e99
TT
83042020-03-13 Tom Tromey <tom@tromey.com>
8305
8306 * valprint.c (do_val_print): New function, from val_print.
8307 (val_print): Use do_val_print.
8308 (common_val_print): Use do_val_print.
8309
ce3acbe9
TT
83102020-03-13 Tom Tromey <tom@tromey.com>
8311
8312 * valprint.c (value_print): Use scoped_value_mark.
8313
96c7f873
TV
83142020-03-13 Tom de Vries <tdevries@suse.de>
8315
8316 PR symtab/25646
8317 * psymtab.c (partial_symtab::partial_symtab): Don't set
8318 globals_offset and statics_offset. Push element onto
8319 current_global_psymbols and current_static_psymbols stacks.
8320 (concat): New function.
8321 (end_psymtab_common): Set globals_offset and statics_offset. Pop
8322 element from current_global_psymbols and current_static_psymbols
8323 stacks. Concat popped elements to global_psymbols and
8324 static_symbols.
8325 (add_psymbol_to_list): Use current_global_psymbols and
8326 current_static_psymbols stacks.
8327 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
8328 current_static_psymbols fields.
8329
6ba0a321
CB
83302020-03-12 Christian Biesinger <cbiesinger@google.com>
8331
8332 * corelow.c (sniff_core_bfd): Remove.
8333 (class core_target) <m_core_vec>: Remove.
8334 (core_target::core_target): Update.
8335 (core_file_fns): Remove.
8336 (deprecated_add_core_fns): Remove.
8337 (default_core_sniffer): Remove.
8338 (sniff_core_bfd): Remove.
8339 (default_check_format): Remove.
8340 (gdb_check_format): Remove.
8341 (core_target_open): Update.
8342 (core_target::get_core_register_section): Update.
8343 (get_core_registers_cb): Update.
8344 (core_target::fetch_registers): Update.
8345 * gdbcore.h (struct core_fns): Remove.
8346 (deprecated_add_core_fns): Remove.
8347 (default_core_sniffer): Remove.
8348 (default_check_format): Remove.
8349
227031b2
TT
83502020-03-12 Tom Tromey <tom@tromey.com>
8351
8352 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
8353 CORE_ADDR.
8354 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
8355
53807e9f
TT
83562020-03-12 Tom Tromey <tom@tromey.com>
8357
8358 * remote.c (remote_target::download_tracepoint)
8359 (remote_target::enable_tracepoint)
8360 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
8361 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
8362 sprintf_vma.
8363
64f25102
TT
83642020-03-12 Tom Tromey <tom@tromey.com>
8365
8366 * symfile-mem.c: Update CORE_ADDR size assert.
8367
272cd5a3
SM
83682020-03-12 Simon Marchi <simon.marchi@efficios.com>
8369
8370 * selftest.m4: Move to gdbsupport/.
8371 * acinclude.m4: Update path to selftest.m4.
8372
74cd3f9d
SM
83732020-03-12 Simon Marchi <simon.marchi@efficios.com>
8374
8375 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
8376 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
8377 gdbarch-selfselftests.c and selftest-arch.c.
8378 (SUBDIR_UNITTESTS_OBS): Rename to...
8379 (SELFTESTS_OBS): ... this.
8380 (COMMON_SFILES): Remove disasm-selftests.c and
8381 gdbarch-selftests.c.
8382 * configure.ac: Don't add selftest-arch.{c,o} to
8383 CONFIG_{SRCS,OBS}.
8384 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
8385 preprocessor conditions.
8386
db6878ac
SM
83872020-03-12 Simon Marchi <simon.marchi@efficios.com>
8388
8389 * configure.ac: Don't source bfd/development.sh.
8390 * selftest.m4: Modify comment.
8391 * configure: Re-generate.
8392
4d696a5c
SM
83932020-03-12 Simon Marchi <simon.marchi@efficios.com>
8394
8395 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
8396 not "true" or "false".
8397 * configure: Re-generate.
8398
8dd8e1c7
CB
83992020-03-12 Christian Biesinger <cbiesinger@google.com>
8400
8401 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
8402 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
8403 renamed to arm_nbsd_supply_gregset.
8404 (fetch_register): Update to call arm_nbsd_supply_gregset.
8405 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
8406 (arm_netbsd_nat_target::fetch_registers): Update.
8407 (fetch_elfcore_registers): Removed.
8408 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
8409 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
8410 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
8411 not require NetBSD system headers.
8412 (arm_nbsd_regset): New struct.
8413 (arm_nbsd_iterate_over_regset_sections): New function.
8414 (arm_netbsd_init_abi_common): Updated to call
8415 set_gdbarch_iterate_over_regset_sections.
8416 * arm-nbsd-tdep.h: New file.
8417
dd69bf7a
KB
84182020-03-11 Kevin Buettner <kevinb@redhat.com>
8419
8420 * symtab.c (find_pc_sect_line): Add check which prevents infinite
8421 recursion.
8422
a0761e34
SM
84232020-03-11 Simon Marchi <simon.marchi@efficios.com>
8424
8425 * configure: Re-generate.
8426
e7a82140
TT
84272020-03-11 Tom Tromey <tromey@adacore.com>
8428
8429 * ada-typeprint.c (print_choices): Fix comment.
8430
dcc050c8
AB
84312020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
8432
8433 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
8434 previous item in the list, when the list has no items.
8435
1c33af77
TV
84362020-03-11 Tom de Vries <tdevries@suse.de>
8437
8438 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
8439 PROP_LOCLIST handling code.
8440
8c95582d
AB
84412020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
8442
8443 * buildsym-legacy.c (record_line): Pass extra parameter to
8444 record_line.
8445 * buildsym.c (buildsym_compunit::record_line): Take an extra
8446 parameter, reduce duplication in the line table, and record the
8447 is_stmt flag in the line table.
8448 * buildsym.h (buildsym_compunit::record_line): Add extra
8449 parameter.
8450 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
8451 non-statement lines.
8452 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
8453 this to the symtab builder.
8454 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
8455 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
8456 through to dwarf_record_line_1.
8457 * infrun.c (process_event_stop_test): When stepping, don't stop at
8458 a non-statement instruction, and only refresh the step info when
8459 we land in the middle of a line's range. Also add an extra
8460 comment.
8461 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
8462 field.
8463 * record-btrace.c (btrace_find_line_range): Only record lines
8464 marked as is-statement.
8465 * stack.c (frame_show_address): Show the frame address if we are
8466 in a non-statement sal.
8467 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
8468 (maintenance_print_one_line_table): Print a header for the is_stmt
8469 column, and include is_stmt information in the output.
8470 * symtab.c (find_pc_sect_line): Find lines marked as statements in
8471 preference to non-statements.
8472 (find_pcs_for_symtab_line): Prefer is-statement entries.
8473 (find_line_common): Likewise.
8474 * symtab.h (struct linetable_entry): Add is_stmt field.
8475 (struct symtab_and_line): Likewise.
8476 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
8477 arranging the line table.
8478
e4003a34
TV
84792020-03-07 Tom de Vries <tdevries@suse.de>
8480
8481 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
8482 DIE.
8483
e8932576
TT
84842020-03-07 Tom Tromey <tom@tromey.com>
8485
8486 * valops.c (value_literal_complex): Remove obsolete comment.
8487 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
8488 comment.
8489
29734269
SM
84902020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
8491
8492 * infrun.h: Forward-declare thread_info.
8493 (set_step_info): Add thread_info parameter, add doc.
8494 * infrun.c (set_step_info): Add thread_info parameter, move doc
8495 to header.
8496 * infrun.c (process_event_stop_test): Pass thread to
8497 set_step_info call.
8498 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
8499 set_step_info.
8500 (prepare_one_step): Add thread_info parameter, pass it to
8501 set_step_frame and prepare_one_step (recursive) call.
8502 (step_1): Pass thread to prepare_one_step call.
8503 (step_command_fsm::should_stop): Pass thread to
8504 prepare_one_step.
8505 (until_next_fsm): Pass thread to set_step_frame call.
8506 (finish_command): Pass thread to set_step_info call.
8507
b7d64b29
HD
85082020-03-06 Hannes Domani <ssbssa@yahoo.de>
8509
8510 * windows-tdep.c (windows_solib_create_inferior_hook):
8511 Check if inferior is running.
8512
09f2921c
TV
85132020-03-06 Tom de Vries <tdevries@suse.de>
8514
8515 * NEWS: Fix "the the".
8516 * ctfread.c: Same.
8517
fd760e79
TV
85182020-03-06 Tom de Vries <tdevries@suse.de>
8519
8520 * psymtab.c (psymtab_to_symtab): Don't print "done.".
8521
20ea4a60
AB
85222020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
8523
8524 * .dir-locals.el: Add a comment referencing the other copies of
8525 this file.
8526
0afbabf0
JB
85272020-03-05 John Baldwin <jhb@FreeBSD.org>
8528
8529 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
8530 psargs.
8531
842806cb
TBA
85322020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8533
8534 * .gitattributes: New file.
8535
be1e3d3e
TT
85362020-03-04 Tom Tromey <tom@tromey.com>
8537
8538 * symmisc.c (print_symbol_bcache_statistics)
8539 (print_objfile_statistics): Update.
8540 * symfile.c (allocate_symtab): Use intern.
8541 * psymtab.c (partial_symtab::partial_symtab): Use intern.
8542 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
8543 macro_cache>: Remove.
8544 <string_cache>: New member.
8545 (struct objfile) <intern>: New methods.
8546 * elfread.c (elf_symtab_read): Use intern.
8547 * dwarf2/read.c (fixup_go_packaging): Intern package name.
8548 (dwarf2_compute_name, dwarf2_physname)
8549 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
8550 names.
8551 (guess_partial_die_structure_name): Update.
8552 (partial_die_info::fixup): Intern name.
8553 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
8554 name.
8555 (dwarf2_name): Intern name. Update.
8556 * buildsym.c (buildsym_compunit::get_macro_table): Use
8557 string_cache.
8558
4e7625fd
TT
85592020-03-04 Tom Tromey <tom@tromey.com>
8560
8561 * jit.c (bfd_open_from_target_memory): Make "target" const.
8562 * corefile.c (gnutarget): Now const.
8563 * gdbcore.h (gnutarget): Now const.
8564
46f9f931
HD
85652020-03-04 Hannes Domani <ssbssa@yahoo.de>
8566
8567 * NEWS: Mention support for WOW64 processes.
8568 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
8569 (amd64_windows_segment_register_p): Remove static.
8570 (_initialize_amd64_windows_nat): Update.
8571 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
8572 * i386-windows-nat.c (context_offset): Update.
8573 (i386_mappings): Rename and remove static.
8574 (i386_windows_segment_register_p): Remove static.
8575 (_initialize_i386_windows_nat): Update.
8576 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
8577 (STATUS_WX86_SINGLE_STEP): New macro.
8578 (EnumProcessModulesEx): New macro.
8579 (Wow64SuspendThread): New macro.
8580 (Wow64GetThreadContext): New macro.
8581 (Wow64SetThreadContext): New macro.
8582 (Wow64GetThreadSelectorEntry): New macro.
8583 (windows_set_context_register_offsets): Add static.
8584 (windows_set_segment_register_p): Likewise.
8585 (windows_add_thread): Adapt for WOW64 processes.
8586 (windows_fetch_one_register): Likewise.
8587 (windows_nat_target::fetch_registers): Likewise.
8588 (windows_store_one_register): Likewise.
8589 (display_selector): Likewise.
8590 (display_selectors): Likewise.
8591 (handle_exception): Likewise.
8592 (windows_continue): Likewise.
8593 (windows_nat_target::resume): Likewise.
8594 (windows_add_all_dlls): Likewise.
8595 (do_initial_windows_stuff): Likewise.
8596 (windows_nat_target::attach): Likewise.
8597 (windows_get_exec_module_filename): Likewise.
8598 (windows_nat_target::create_inferior): Likewise.
8599 (windows_xfer_siginfo): Likewise.
8600 (_initialize_loadable): Initialize Wow64SuspendThread,
8601 Wow64GetThreadContext, Wow64SetThreadContext,
8602 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
8603 * windows-nat.h (windows_set_context_register_offsets):
8604 Remove declaration.
8605 (windows_set_segment_register_p): Likewise.
8606 (i386_windows_segment_register_p): Add declaration.
8607 (amd64_windows_segment_register_p): Likewise.
8608
440cf44e
LM
86092020-03-04 Luis Machado <luis.machado@linaro.org>
8610
8611 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
8612 in "info registers" for AArch64/ARM.
8613
8614 The change caused "info registers" to not print GPR's.
8615
8616 gdb/ChangeLog:
8617
8618 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
8619
8620 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
8621 when reg->group is empty and reggroup is not.
8622
1009d92f
TT
86232020-03-03 Tom Tromey <tromey@adacore.com>
8624
8625 * dwarf2/frame.c (struct dwarf2_frame_cache)
8626 <checked_tailcall_bottom, entry_cfa_sp_offset,
8627 entry_cfa_sp_offset_p>: Remove members.
8628 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
8629 (dwarf2_frame_prev_register): Don't call
8630 dwarf2_tailcall_sniffer_first.
8631 (dwarf2_append_unwinders): Don't append tailcall unwinder.
8632 * frame-unwind.c (add_unwinder): New fuction.
8633 (frame_unwind_init): Use it. Add tailcall unwinder.
8634
5e5d66b6
AB
86352020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
8636 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
8637
8638 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
8639 value should be printed as true.
8640
584cf46d
HD
86412020-03-03 Hannes Domani <ssbssa@yahoo.de>
8642
8643 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
8644 (windows_init_abi): Set and use windows_so_ops.
8645
7b973adc
SDJ
86462020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
8647
8648 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
8649 when verifying if dealing with a convenience variable.
8650
bb7b70ab
LM
86512020-03-03 Luis Machado <luis.machado@linaro.org>
8652
8653 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
8654
9822cb57
SM
86552020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
8656
8657 * infrun.c (gdbarch_supports_displaced_stepping): New.
8658 (use_displaced_stepping): Break up conditions in smaller pieces.
8659 Use gdbarch_supports_displaced_stepping.
8660 (displaced_step_prepare_throw): Use
8661 gdbarch_supports_displaced_stepping.
8662
63e163f2
AB
86632020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
8664
8665 * NEWS: Mention new behaviour of the history filename.
8666 * top.c (write_history_p): Add comment.
8667 (show_write_history_p): Add header comment, give a different
8668 message when history writing is on, but the history filename is
8669 empty.
8670 (history_filename): Add comment.
8671 (history_filename_empty): New function.
8672 (show_history_filename): Add header comment, give a different
8673 message when the filename is empty.
8674 (init_history): Compare history_filename against nullptr, and only
8675 read history if the filename is not empty.
8676 (set_history_filename): Add header comment, and only make
8677 non-empty filenames absolute.
8678 (init_main): Make the filename argument to 'set history filename'
8679 optional.
8680
81b86b97
CB
86812020-03-02 Christian Biesinger <cbiesinger@google.com>
8682
8683 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
8684 (arm_supply_vfpregset): ...this, and update to use VFP registers.
8685 (fetch_fp_register): Update.
8686 (fetch_fp_regs): Update.
8687 (store_fp_register): Update.
8688 (store_fp_regs): Update.
8689 (arm_netbsd_nat_target::read_description): New function.
8690 (fetch_elfcore_registers): Update.
8691
24ed6739
AB
86922020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
8693
8694 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
8695 general_thread if the stop reply is missing a thread-id.
8696 (remote_target::process_stop_reply): Use the first non-exited
8697 thread if the target didn't pass a thread-id.
8698 * infrun.c (do_target_wait): Move call to
8699 switch_to_inferior_no_thread to ....
8700 (do_target_wait_1): ... here.
8701
a84bb2a0
JT
87022020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
8703
8704 * debuginfod-support.c: Include defs.h first.
8705
658dadf0
TV
87062020-02-28 Tom de Vries <tdevries@suse.de>
8707
8708 * symfile.c (set_initial_language): Use default language for lookup.
8709
4ebe4877
SM
87102020-02-28 Simon Marchi <simon.marchi@efficios.com>
8711
8712 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
8713 reader variable, pass `this` to read_cutu_die_from_dwo.
8714
e5da1139
AM
87152020-02-27 Aaron Merey <amerey@redhat.com>
8716
8717 * source.c (open_source_file): Check for nullptr when computing
8718 srcpath.
8719
317f7127
TT
87202020-02-27 Tom Tromey <tromey@adacore.com>
8721
8722 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
8723 member.
8724 (dwarf2_add_field): Don't update nfields.
8725 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
8726
3104d9ee
AB
87272020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8728
8729 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
8730 abs.
8731
b83470bf
TT
87322020-02-26 Tom Tromey <tom@tromey.com>
8733
8734 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
8735 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
8736 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
8737 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
8738 per_cu_data.
8739
edfe0a0c
TT
87402020-02-26 Tom Tromey <tom@tromey.com>
8741
8742 * dwarf2/index-write.c (psym_index_map): Change type.
8743 (add_address_entry_worker, write_one_signatured_type)
8744 (recursively_count_psymbols, recursively_write_psymbols)
8745 (class debug_names, psyms_seen_size, write_gdbindex)
8746 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
8747
0d79cdc4
AM
87482020-02-26 Aaron Merey <amerey@redhat.com>
8749
8750 * Makefile.in: Handle optional debuginfod support.
8751 * NEWS: Update.
8752 * README: Add --with-debuginfod summary.
8753 * config.in: Regenerate.
8754 * configure: Regenerate.
8755 * configure.ac: Handle optional debuginfod support.
8756 * debuginfod-support.c: debuginfod helper functions.
8757 * debuginfod-support.h: Ditto.
8758 * doc/gdb.texinfo: Add --with-debuginfod to configure options
8759 summary.
8760 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
8761 when a dwz file cannot be found.
8762 * elfread.c (elf_symfile_read): Query debuginfod servers when a
8763 debuginfo file cannot be found.
8764 * source.c (open_source_file): Query debuginfod servers when a
8765 source file cannot be found.
8766 * top.c (print_gdb_configuration): Include
8767 --{with,without}-debuginfod in the output.
8768
b65ce565
JG
87692020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
8770
8771 * thread.c (thr_try_catch_cmd): Print thread name.
8772
d4c9a4f8
SM
87732020-02-26 Simon Marchi <simon.marchi@efficios.com>
8774
8775 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
8776 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
8777 dwarf2_fetch_die_type_sect_off): Move to...
8778 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
8779 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
8780 dwarf2_fetch_die_type_sect_off): ... here.
8781 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
8782 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
8783 dwarf2_fetch_die_type_sect_off): Move doc to header file.
8784
0dce4280
TV
87852020-02-26 Tom de Vries <tdevries@suse.de>
8786
8787 PR gdb/25603
8788 * symfile.c (set_initial_language): Exit-early if
8789 language_mode == language_mode_manual.
8790
450a1bfc
SM
87912020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
8792
8793 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
8794 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
8795 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
8796
9e80cfa1
AB
87972020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
8798
8799 * gdbtypes.c (create_array_type_with_stride): Handle negative
8800 array strides.
8801 * valarith.c (value_subscripted_rvalue): Likewise.
8802
09624f1f
LM
88032020-02-25 Luis Machado <luis.machado@linaro.org>
8804
8805 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
8806
8cb5117c
SM
88072020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
8808
8809 * loc.h (dwarf2_get_die_type): Move to...
8810 * read.h (dwarf2_get_die_type): ... here.
8811 * read.c (dwarf2_get_die_type): Move doc to header.
8812
c325c44e
JB
88132020-02-25 Joel Brobecker <brobecker@adacore.com>
8814
8815 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
8816 'gnulib/Makefile.in' to the list.
8817
4ac93832
TT
88182020-02-24 Tom Tromey <tom@tromey.com>
8819
8820 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
8821 Remove.
8822 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
8823 XOBNEWVEC.
8824
197400e8
TT
88252020-02-24 Tom Tromey <tom@tromey.com>
8826
8827 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
8828 New method.
8829 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
8830 (dw2_do_instantiate_symtab, dw2_get_file_names)
8831 (build_type_psymtab_dependencies, load_full_type_unit): Update.
8832
76935768
TT
88332020-02-24 Tom Tromey <tom@tromey.com>
8834
8835 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
8836 make_scoped_restore.
8837 (dwarf2_psymtab::read_symtab): Don't clear
8838 reading_partial_symbols.
8839
a88ef40d
TV
88402020-02-24 Tom de Vries <tdevries@suse.de>
8841
8842 PR gdb/25592
8843 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
8844
c9af6521
TV
88452020-02-24 Tom de Vries <tdevries@suse.de>
8846
8847 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
8848 commands layout next/prev/regs.
8849
5707a07a
TT
88502020-02-22 Tom Tromey <tom@tromey.com>
8851
8852 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
8853 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
8854
3b0fb49e
TT
88552020-02-22 Tom Tromey <tom@tromey.com>
8856
8857 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
8858
283be8bf
TT
88592020-02-22 Tom Tromey <tom@tromey.com>
8860
8861 * tui/tui-win.c (_initialize_tui_win): Add usage text.
8862 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
8863 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
8864 * tui/tui.c (_initialize_tui): Add usage text.
8865
ca793b96
TT
88662020-02-22 Tom Tromey <tom@tromey.com>
8867
8868 * tui/tui-win.c (tui_set_focus_command)
8869 (tui_set_win_height_command): Use error_no_arg.
8870 (_initialize_tui_win): Update help text.
8871 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
8872
432b5c40
TT
88732020-02-22 Tom Tromey <tom@tromey.com>
8874
8875 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
8876 * tui/tui-disasm.h (struct tui_disasm_window)
8877 <display_start_addr>: Declare.
8878 * tui/tui-source.h (struct tui_source_window)
8879 <display_start_addr>: Declare.
8880 * tui/tui-winsource.h (struct tui_source_window_base)
8881 <show_source_line, display_start_addr>: New methods.
8882 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
8883 Rename and move to protected section.
8884 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
8885 (tui_source_window_base::do_erase_source_content): Update.
8886 (tui_source_window_base::show_source_line): Now a method.
8887 (tui_source_window_base::show_source_content)
8888 (tui_source_window_base::tui_source_window_base)
8889 (tui_source_window_base::rerender)
8890 (tui_source_window_base::refill)
8891 (tui_source_window_base::do_scroll_horizontal)
8892 (tui_source_window_base::set_is_exec_point_at)
8893 (tui_source_window_base::update_breakpoint_info)
8894 (tui_source_window_base::update_exec_info): Update.
8895 * tui/tui-source.c (tui_source_window::set_contents)
8896 (tui_source_window::showing_source_p)
8897 (tui_source_window::do_scroll_vertical)
8898 (tui_source_window::location_matches_p)
8899 (tui_source_window::line_is_displayed): Update.
8900 (tui_source_window::display_start_addr): New method.
8901 * tui/tui-disasm.c (tui_disasm_window::set_contents)
8902 (tui_disasm_window::do_scroll_vertical)
8903 (tui_disasm_window::location_matches_p): Update.
8904 (tui_disasm_window::display_start_addr): New method.
8905
01b1af32
TT
89062020-02-22 Tom Tromey <tom@tromey.com>
8907
8908 * NEWS: Add entry for gdb.register_window_type.
8909 * tui/tui-layout.h (window_factory): New typedef.
8910 (tui_register_window): Declare.
8911 * tui/tui-layout.c (saved_tui_windows): New global.
8912 (tui_apply_current_layout): Use it.
8913 (tui_register_window): New function.
8914 * python/python.c (do_start_initialization): Call
8915 gdbpy_initialize_tui.
8916 (python_GdbMethods): Add "register_window_type" function.
8917 * python/python-internal.h (gdbpy_register_tui_window)
8918 (gdbpy_initialize_tui): Declare.
8919 * python/py-tui.c: New file.
8920 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
8921
fc96d20b
TT
89222020-02-22 Tom Tromey <tom@tromey.com>
8923
8924 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
8925
935c78c0
TT
89262020-02-22 Tom Tromey <tom@tromey.com>
8927
8928 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
8929 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
8930 * tui/tui-data.c (tui_set_win_with_focus): Remove.
8931 (tui_set_win_focus_to): Move from tui-win.c.
8932
0240c8f1
TT
89332020-02-22 Tom Tromey <tom@tromey.com>
8934
8935 * tui/tui-layout.c (make_standard_window, get_locator_window): New
8936 functions.
8937 (known_window_types): New global.
8938 (tui_get_window_by_name): Reimplement.
8939 (initialize_known_windows): New function.
8940 (validate_window_name): Rewrite.
8941 (_initialize_tui_layout): Call initialize_known_windows.
8942
fdb01f0c
TT
89432020-02-22 Tom Tromey <tom@tromey.com>
8944
8945 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
8946 Remove constants.
8947 * tui/tui-winsource.h (struct tui_source_window_base)
8948 <tui_source_window_base>: Remove parameter.
8949 * tui/tui-winsource.c
8950 (tui_source_window_base::tui_source_window_base): Remove
8951 parameter.
8952 (tui_source_window_base::refill): Update.
8953 * tui/tui-stack.h (struct tui_locator_window)
8954 <tui_locator_window>: Update.
8955 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
8956 Default the constructor.
8957 * tui/tui-regs.h (struct tui_data_item_window)
8958 <tui_data_item_window>: Default the constructor.
8959 (struct tui_data_window) <tui_data_window>: Likewise.
8960 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
8961 Default the constructor.
8962 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
8963 Default the constructor.
8964 <type>: Remove.
8965 (struct tui_win_info) <tui_win_info>: Default the constructor.
8966 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
8967 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
8968 Default the constructor.
8969
865a5aec
TT
89702020-02-22 Tom Tromey <tom@tromey.com>
8971
8972 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
8973 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
8974 * tui/tui-win.c (tui_resize_all): Don't call
8975 tui_delete_invisible_windows.
8976 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
8977 done.
8978 (tui_set_layout): Update.
8979 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
8980 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
8981 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
8982
e098d18c
TT
89832020-02-22 Tom Tromey <tom@tromey.com>
8984
8985 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
8986 correctly.
8987
eb9c8874
TT
89882020-02-22 Tom Tromey <tom@tromey.com>
8989
8990 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
8991
7eed1a8e
TT
89922020-02-22 Tom Tromey <tom@tromey.com>
8993
8994 * tui/tui-winsource.h (struct tui_source_window_iterator)
8995 <inner_iterator>: New etytypedef.
8996 <tui_source_window_iterator>: Take "end" parameter.
8997 <tui_source_window_iterator>: Take iterator.
8998 <operator*, advance>: Update.
8999 <m_iter>: Change type.
9000 <m_end>: New field.
9001 (struct tui_source_windows) <begin, end>: Update.
9002 * tui/tui-layout.c (tui_windows): New global.
9003 (tui_apply_current_layout): Clear tui_windows.
9004 (tui_layout_window::apply): Update tui_windows.
9005 * tui/tui-data.h (tui_windows): Declare.
9006 (all_tui_windows): Now inline function.
9007 (class tui_window_iterator, struct all_tui_windows): Remove.
9008
7c043ba6
TT
90092020-02-22 Tom Tromey <tom@tromey.com>
9010
9011 PR tui/17850:
9012 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
9013 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
9014 "height" argument.
9015 (class tui_layout_window) <get_sizes>: Likewise.
9016 (class tui_layout_split) <tui_layout_split>: Add "vertical"
9017 argument.
9018 <get_sizes>: Add "height" argument.
9019 <m_vertical>: New field.
9020 * tui/tui-layout.c (tui_layout_split::clone): Update.
9021 (tui_layout_split::get_sizes): Add "height" argument.
9022 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
9023 (tui_new_layout_command): Parse "-horizontal".
9024 (_initialize_tui_layout): Update help string.
9025 (tui_layout_split::specification): Add "-horizontal" when needed.
9026 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
9027 argument.
9028 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
9029 New methods.
9030
6bc56648
TT
90312020-02-22 Tom Tromey <tom@tromey.com>
9032
9033 * tui/tui-layout.h (enum tui_adjust_result): New.
9034 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
9035 (class tui_layout_window) <adjust_size>: Return
9036 tui_adjust_result. Rewrite.
9037 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
9038 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
9039
c22fef7e
TT
90402020-02-22 Tom Tromey <tom@tromey.com>
9041
9042 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
9043 parameter and return types.
9044 (class tui_layout_base) <specification>: Add "depth".
9045 (class tui_layout_window) <specification>: Add "depth".
9046 (class tui_layout_split) <specification>: Add "depth".
9047 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
9048 and return types.
9049 (tui_new_layout_command): Parse sub-layouts.
9050 (_initialize_tui_layout): Update help string.
9051 (tui_layout_window::specification): Add "depth".
9052 (add_layout_command): Update.
9053
ee325b61
TT
90542020-02-22 Tom Tromey <tom@tromey.com>
9055
9056 * NEWS: Add "tui new-layout" item.
9057 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
9058 Add new-layout command to help text.
9059 (validate_window_name): New function.
9060 (tui_new_layout_command): New function.
9061 (_initialize_tui_layout): Register "new-layout".
9062 (tui_layout_window::specification): New method.
9063 (tui_layout_window::specification): New method.
9064 * tui/tui-layout.h (class tui_layout_base) <specification>: New
9065 method.
9066 (class tui_layout_window) <specification>: New method.
9067 (class tui_layout_split) <specification>: New method.
9068
416eb92d
TT
90692020-02-22 Tom Tromey <tom@tromey.com>
9070
9071 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
9072 * tui/tui-win.c (window_name_completer): Update comment.
9073 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
9074 Declare method.
9075 (class tui_layout_window) <replace_window>: Likewise.
9076 (class tui_layout_split) <replace_window>: Likewise.
9077 (tui_set_layout): Don't declare.
9078 (tui_set_initial_layout): Declare function.
9079 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
9080 (asm_regs_layout): New globals.
9081 (tui_current_layout, show_layout): Remove.
9082 (tui_set_layout, tui_add_win_to_layout): Rewrite.
9083 (find_layout, tui_apply_layout): New function.
9084 (layout_completer): Remove.
9085 (tui_next_layout): Reimplement.
9086 (tui_next_layout_command): New function.
9087 (tui_set_initial_layout, tui_prev_layout_command): New functions.
9088 (tui_regs_layout): Reimplement.
9089 (tui_regs_layout_command): New function.
9090 (extract_display_start_addr): Rewrite.
9091 (next_layout, prev_layout): Remove.
9092 (tui_layout_window::replace_window): New method.
9093 (tui_layout_split::replace_window): New method.
9094 (destroy_layout): New function.
9095 (layout_list): New global.
9096 (add_layout_command): New function.
9097 (initialize_layouts): Update.
9098 (tui_layout_command): New function.
9099 (_initialize_tui_layout): Install "layout" commands.
9100 * tui/tui-data.h (enum tui_layout_type): Remove.
9101 (tui_current_layout): Don't declare.
9102
0dbc2fc7
TT
91032020-02-22 Tom Tromey <tom@tromey.com>
9104
9105 * tui/tui-regs.c (tui_reg_layout): Remove.
9106 (tui_reg_command): Use tui_regs_layout.
9107 * tui/tui-layout.h (tui_reg_command): Declare.
9108 * tui/tui-layout.c (tui_reg_command): New function.
9109
5afe342e
TT
91102020-02-22 Tom Tromey <tom@tromey.com>
9111
9112 * tui/tui.c (tui_rl_delete_other_windows): Call
9113 tui_remove_some_windows.
9114 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
9115 Declare method.
9116 (class tui_layout_window) <remove_windows>: New method.
9117 (class tui_layout_split) <remove_windows>: Declare.
9118 (tui_remove_some_windows): Declare.
9119 * tui/tui-layout.c (tui_remove_some_windows): New function.
9120 (tui_layout_split::remove_windows): New method.
9121
427326a8
TT
91222020-02-22 Tom Tromey <tom@tromey.com>
9123
9124 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
9125 * tui/tui-layout.h (tui_next_layout): Declare.
9126 * tui/tui-layout.c (tui_next_layout): New function.
9127
3fe12b6d
TT
91282020-02-22 Tom Tromey <tom@tromey.com>
9129
9130 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
9131 correct coordinates.
9132
59b8b5d2
TT
91332020-02-22 Tom Tromey <tom@tromey.com>
9134
9135 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
9136 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
9137 DATA_WIN case.
9138
2a3d458b
TT
91392020-02-22 Tom Tromey <tom@tromey.com>
9140
9141 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
9142 TUI_DISASM_WIN, not tui_win_list.
9143
3f0cbb04
TT
91442020-02-22 Tom Tromey <tom@tromey.com>
9145
9146 * valprint.c (generic_val_print_enum_1)
9147 (val_print_type_code_flags): Style member names.
9148 * rust-lang.c (val_print_struct, rust_print_enum)
9149 (rust_print_struct_def, rust_internal_print_type): Style member
9150 names.
9151 * p-valprint.c (pascal_object_print_value_fields): Style member
9152 names. Only call fprintf_symbol_filtered for static members.
9153 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
9154 * f-valprint.c (f_val_print): Style member names.
9155 * f-typeprint.c (f_type_print_base): Style member names.
9156 * cp-valprint.c (cp_print_value_fields): Style member names. Only
9157 call fprintf_symbol_filtered for static members.
9158 (cp_print_class_member): Style member names.
9159 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
9160 member names.
9161 * ada-valprint.c (ada_print_scalar): Style enum names.
9162 (ada_val_print_enum): Likewise.
9163 * ada-typeprint.c (print_enum_type): Style enum names.
9164
d4d947ae
TT
91652020-02-21 Tom Tromey <tom@tromey.com>
9166
9167 * psympriv.h (struct partial_symtab): Update comment.
9168
e94e944b
TT
91692020-02-21 Tom Tromey <tromey@adacore.com>
9170
9171 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
9172 type is CORE_ADDR.
9173
1eb73179
TV
91742020-02-21 Tom de Vries <tdevries@suse.de>
9175
9176 PR gdb/25534
9177 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
9178 if dependencies[i]->user != NULL.
9179
4f180d53
AT
91802020-02-21 Ali Tamur <tamur@google.com>
9181
9182 * dwarf2/read.c (dwarf2_name): Add null check.
9183
22b6cd70
TT
91842020-02-20 Tom Tromey <tom@tromey.com>
9185
9186 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
9187 ">=", in binary search.
9188 (dwarf2_find_containing_comp_unit): New overload.
9189 (run_test): New self-test.
9190 (_initialize_dwarf2_read): Register new test.
9191
bd0cf5a6
NC
91922020-02-20 Nelson Chu <nelson.chu@sifive.com>
9193
9194 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
9195 * riscv-tdep.h: Likewise.
9196 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
9197 rv32-only CSR.
9198 * features/riscv/64bit-csr.xml: Regenerated.
9199
3f702acd
SDJ
92002020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
9201 Tom Tromey <tom@tromey.com>
9202
9203 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
9204 of 'fputc_unfiltered'.
9205 (putchar_unfiltered): Call 'fputc_unfiltered'.
9206 (fputc_unfiltered): Call 'fputs_unfiltered'.
9207
d13c7322
AB
92082020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
9209
9210 * config.in: Regenerate.
9211 * configure: Regenerate.
9212 * configure.ac: Add --with-python-libdir option.
9213 * main.c: Use WITH_PYTHON_LIBDIR.
9214
869d8950
TT
92152020-02-19 Tom Tromey <tom@tromey.com>
9216
9217 * symtab.c (general_symbol_info::compute_and_set_names): Use
9218 obstack_strndup. Simplify call to symbol_set_demangled_name.
9219
298e9637
SM
92202020-02-19 Simon Marchi <simon.marchi@efficios.com>
9221
9222 * dwarf2/read.c (allocate_signatured_type_table,
9223 allocate_dwo_unit_table, allocate_type_unit_groups_table,
9224 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
9225 Remove objfile parameter, update all callers.
9226
08410482
DE
92272020-02-19 Doug Evans <dje@google.com>
9228
9229 PR rust/25535
9230 * rust-lang.c (rust_print_enum): Apply embedded_offset to
9231 rust_enum_variant calculation.
9232
dfdeeca1
TT
92332020-02-19 Tom Tromey <tromey@adacore.com>
9234
9235 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
9236
2ef5453b
TT
92372020-02-19 Tom Tromey <tromey@adacore.com>
9238
9239 * ada-lang.c (cache_symbol): Use obstack_strdup.
9240
9f1528a1
AB
92412020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
9242
9243 * configure: Regenerate.
9244
d3c22fa8
TT
92452020-02-19 Tom Tromey <tromey@adacore.com>
9246
9247 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
9248 NULL check.
9249
bf84f706
MR
92502020-02-19 Maciej W. Rozycki <macro@wdc.com>
9251
9252 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
9253
d1c9b20f
AB
92542020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
9255
9256 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
9257 if GDBSERVER is not defined.
9258 (riscv_tdesc_cache): Likewise, also store const target_desc.
9259 (STATIC_IN_GDB): Define.
9260 (riscv_create_target_description): Update declaration with
9261 STATIC_IN_GDB.
9262 (riscv_lookup_target_description): New function, only define if
9263 GDBSERVER is not defined.
9264 * arch/riscv.h (riscv_create_target_description): Declare only
9265 when GDBSERVER is defined.
9266 (riscv_lookup_target_description): New declaration when GDBSERVER
9267 is not defined.
9268 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
9269 (riscv_linux_read_features): ...this, and return
9270 riscv_gdbarch_features instead of target_desc.
9271 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
9272 (riscv_linux_read_description): Rename to...
9273 (riscv_linux_read_features): ...this.
9274 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
9275 Update to use riscv_gdbarch_features and
9276 riscv_lookup_target_description.
9277 * riscv-tdep.c (riscv_find_default_target_description): Use
9278 riscv_lookup_target_description instead of
9279 riscv_create_target_description.
9280
373d7ac0
SM
92812020-02-18 Simon Marchi <simon.marchi@efficios.com>
9282
9283 * valprint.c (generic_val_print_enum_1): When printing a flag
9284 enum with value 0 and there is no enumerator with value 0, print
9285 just "0" instead of "(unknown: 0x0)".
9286
b29a2df0
SM
92872020-02-18 Simon Marchi <simon.marchi@efficios.com>
9288
9289 * valprint.c (generic_val_print_enum_1): Print unknown part of
9290 flag enum in hex.
9291
6740f0cc
SM
92922020-02-18 Simon Marchi <simon.marchi@efficios.com>
9293
9294 * dwarf2/read.c (update_enumeration_type_from_children): Allow
9295 flag enums to contain duplicate enumerators.
9296 * valprint.c (generic_val_print_enum_1): Update comment.
9297
edd45eb0
SM
92982020-02-18 Simon Marchi <simon.marchi@efficios.com>
9299
9300 * dwarf2/read.c: Include "count-one-bits.h".
9301 (update_enumeration_type_from_children): If an enumerator has
9302 multiple bits set, don't treat the enumeration as a "flag enum".
9303 * valprint.c (generic_val_print_enum_1): Assert that enumerators
9304 of flag enums have 0 or 1 bit set.
9305
6d0cf446
BE
93062020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
9307
9308 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
9309 conversion.
9310 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
9311 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
9312 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
9313 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
9314 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
9315
7001c1b7
SM
93162020-02-18 Simon Marchi <simon.marchi@efficios.com>
9317
9318 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
9319
fdb61c6c
SM
93202020-02-14 Simon Marchi <simon.marchi@efficios.com>
9321
9322 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
9323 displaced_step_closure_up.
9324 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
9325 (struct displaced_step_closure_up):
9326 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
9327 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
9328 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
9329 Likewise.
9330 * gdbarch.sh (displaced_step_copy_insn): Likewise.
9331 * gdbarch.c, gdbarch.h: Re-generate.
9332 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
9333 displaced_step_closure_up.
9334 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
9335 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
9336 * infrun.h (displaced_step_closure_up): New type alias.
9337 (struct displaced_step_inferior_state) <step_closure>: Change
9338 type to displaced_step_closure_up.
9339 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
9340 displaced_step_closure_up.
9341 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
9342
a4a38eb4
TT
93432020-02-14 Tom Tromey <tom@tromey.com>
9344
9345 * minidebug.c (gnu_debug_key): New global.
9346 (find_separate_debug_file_in_section): Use it.
9347
e8217e61
SM
93482020-02-14 Simon Marchi <simon.marchi@efficios.com>
9349
9350 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
9351 std::unique_ptr.
9352 * gdbarch.c: Re-generate.
9353 * gdbarch.h: Re-generate.
9354 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
9355 change.
9356 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
9357 type to std::unique_ptr.
9358 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
9359 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
9360 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
9361 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
9362 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
9363 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
9364 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
9365 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
9366 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
9367
d8d83535
SM
93682020-02-14 Simon Marchi <simon.marchi@efficios.com>
9369
9370 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
9371 std::unique_ptr.
9372 (displaced_step_clear): Rename to...
9373 (displaced_step_reset): ... this. Just call displaced->reset ().
9374 (displaced_step_clear_cleanup): Rename to...
9375 (displaced_step_reset_cleanup): ... this.
9376 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
9377 (displaced_step_fixup): Likewise.
9378 (resume_1): Likewise.
9379 (handle_inferior_event): Restore child's memory before calling
9380 displaced_step_fixup on the parent.
9381 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
9382 to std::unique_ptr.
9383 <step_closure>: Change type to std::unique_ptr.
9384
5f661e03
SM
93852020-02-14 Simon Marchi <simon.marchi@efficios.com>
9386
9387 * arm-tdep.c: Include count-one-bits.h.
9388 (cleanup_block_store_pc): Use count_one_bits.
9389 (cleanup_block_load_pc): Use count_one_bits.
9390 (arm_copy_block_xfer): Use count_one_bits.
9391 (thumb2_copy_block_xfer): Use count_one_bits.
9392 (thumb_copy_pop_pc_16bit): Use count_one_bits.
9393 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
9394 (thumb_get_next_pcs_raw): Use count_one_bits.
9395 (arm_get_next_pcs_raw): Use count_one_bits_l.
9396 * arch/arm.c (bitcount): Remove.
9397 * arch/arm.h (bitcount): Remove.
9398
8084e579
TT
93992020-02-14 Tom Tromey <tromey@adacore.com>
9400
9401 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
9402 Update.
9403 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
9404 * dwarf2/loc.c (call_site_find_chain_1): Return
9405 unique_xmalloc_ptr.
9406 (call_site_find_chain): Likewise.
9407
258bf0ee
RB
94082020-02-14 Richard Biener <rguenther@suse.de>
9409
9410 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
9411 on expression with division operators.
9412
f98a8458
AKS
94132020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
9414
9415 * MAINTAINERS (Write After Approval): Adding myself.
9416
d1437c0e
TT
94172020-02-12 Tom Tromey <tom@tromey.com>
9418
9419 * event-loop.c (event_data, gdb_event, event_handler_func):
9420 Remove.
9421
3d4560f7
TT
94222020-02-12 Tom Tromey <tom@tromey.com>
9423
9424 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
9425 (dwarf2_frame_objfile_data): Add comment.
9426 (find_comp_unit, set_comp_unit): New functions.
9427 (dwarf2_frame_find_fde): Use find_comp_unit.
9428 (dwarf2_build_frame_info): Use set_comp_unit.
9429
21982304
TT
94302020-02-12 Tom Tromey <tom@tromey.com>
9431
9432 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
9433 (comp_unit): Don't initialize objfile.
9434 (execute_cfa_program): Add text_offset parameter.
9435 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
9436 (dwarf2_frame_cache): Update.
9437 (dwarf2_build_frame_info): Don't set "objfile" member.
9438
4debb237
TT
94392020-02-12 Tom Tromey <tom@tromey.com>
9440
9441 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
9442 (decode_frame_entry): Likewise.
9443 (dwarf2_build_frame_info): Update.
9444
0d404d44
TT
94452020-02-12 Tom Tromey <tom@tromey.com>
9446
9447 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
9448 (decode_frame_entry_1): Use the comp_unit obstack.
9449
a7a3ae5c
TT
94502020-02-12 Tom Tromey <tom@tromey.com>
9451
9452 * dwarf2/frame.c (struct comp_unit): Add initializers and
9453 constructor.
9454 (dwarf2_frame_objfile_data): Store a comp_unit.
9455 (dwarf2_frame_find_fde): Update.
9456 (dwarf2_build_frame_info): Use "new".
9457
a9d65418
TT
94582020-02-12 Tom Tromey <tom@tromey.com>
9459
9460 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
9461 (dwarf2_fde_table): Typedef for std::vector.
9462 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
9463 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
9464 (decode_frame_entry): Update.
9465 (dwarf2_build_frame_info): Use "new".
9466
7559c217
CB
94672020-02-12 Christian Biesinger <cbiesinger@google.com>
9468
9469 * arm-tdep.c (arm_gdbarch_init): Update.
9470 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
9471 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
9472 have_neon, is_m>: Change to bool.
9473
aeefc73c
CB
94742020-02-12 Christian Biesinger <cbiesinger@google.com>
9475
9476 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
9477
d27b8e5f
TT
94782020-02-12 Tom Tromey <tom@tromey.com>
9479
9480 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
9481
cd5900f3
HD
94822020-02-12 Hannes Domani <ssbssa@yahoo.de>
9483
9484 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
9485 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
9486
f056b22b
TT
94872020-02-11 Tom Tromey <tom@tromey.com>
9488
9489 * psymtab.h: Update comment.
9490
f92ff6b5
TT
94912020-02-11 Tom Tromey <tom@tromey.com>
9492
9493 * gdb_obstack.h (struct auto_obstack): Use
9494 DISABLE_COPY_AND_ASSIGN.
9495
3fd6912b
TT
94962020-02-11 Tom Tromey <tom@tromey.com>
9497
9498 * dwarf2/frame.h (struct objfile): Don't forward declare.
9499
69ed9b74
CB
95002020-02-11 Christian Biesinger <cbiesinger@google.com>
9501
9502 * cris-tdep.c (cris_supply_gregset): Change signature to match
9503 what struct regset expects.
9504 (cris_regset): New struct.
9505 (fetch_core_registers): Remove.
9506 (cris_iterate_over_regset_sections): New function.
9507 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
9508 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
9509
bda874f6
CB
95102020-02-11 Christian Biesinger <cbiesinger@google.com>
9511
9512 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
9513 registers.
9514
754e1564
CB
95152020-02-11 Christian Biesinger <cbiesinger@google.com>
9516
9517 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
9518
8ddd8e0e
SM
95192020-02-11 Simon Marchi <simon.marchi@efficios.com>
9520
9521 * configure: Re-generate.
9522
898e7f60
SM
95232020-02-11 Simon Marchi <simon.marchi@efficios.com>
9524
9525 * configure: Re-generate.
9526
58df732b
SM
95272020-02-11 Simon Marchi <simon.marchi@efficios.com>
9528
9529 * acinclude: Update warning.m4 path.
9530 * warning.m4: Move to gdbsupport.
9531
da5bd37e
TT
95322020-02-11 Tom Tromey <tromey@adacore.com>
9533
9534 * remote.c (remote_console_output): Update.
9535 * printcmd.c (printf_command): Update.
9536 * event-loop.c (gdb_wait_for_event): Update.
9537 * linux-nat.c (sigchld_handler): Update.
9538 * remote-sim.c (gdb_os_write_stdout): Update.
9539 (gdb_os_flush_stdout): Update.
9540 (gdb_os_flush_stderr): Update.
9541 (gdb_os_write_stderr): Update.
9542 * exceptions.c (print_exception): Update.
9543 * remote-fileio.c (remote_fileio_func_read): Update.
9544 (remote_fileio_func_write): Update.
9545 * tui/tui.c (tui_enable): Update.
9546 * tui/tui-interp.c (tui_interp::init): Update.
9547 * utils.c (init_page_info): Update.
9548 (putchar_unfiltered, fputc_unfiltered): Update.
9549 (gdb_flush): Update.
9550 (emit_style_escape): Update.
9551 (flush_wrap_buffer, fputs_maybe_filtered): Update.
9552 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
9553 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
9554 (stderr_file::write): Update.
9555 (stderr_file::puts): Update.
9556 * ui-file.h (ui_file_isatty, ui_file_write)
9557 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
9558 (ui_file_puts): Don't declare.
9559
85f0dd3c
TV
95602020-02-10 Tom de Vries <tdevries@suse.de>
9561
9562 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
9563 sentinel to char *.
9564
2e927613
TV
95652020-02-09 Tom de Vries <tdevries@suse.de>
9566
9567 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
9568 filename if it matches "<artificial>".
9569
6bafc845
HD
95702020-02-09 Hannes Domani <ssbssa@yahoo.de>
9571
9572 * windows-tdep.c (struct enum_value_name): New struct.
9573 (create_enum): New function.
9574 (windows_get_siginfo_type): Create and use enum types.
9575
7928d571
HD
95762020-02-09 Hannes Domani <ssbssa@yahoo.de>
9577
9578 * NEWS: Mention $_siginfo support for Windows.
9579 * windows-nat.c (handle_exception): Set siginfo_er.
9580 (windows_nat_target::mourn_inferior): Reset siginfo_er.
9581 (windows_xfer_siginfo): New function.
9582 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
9583 * windows-tdep.c (struct windows_gdbarch_data): New struct.
9584 (init_windows_gdbarch_data): New function.
9585 (get_windows_gdbarch_data): New function.
9586 (windows_get_siginfo_type): New function.
9587 (windows_init_abi): Register windows_get_siginfo_type.
9588 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
9589
6751ebae
TT
95902020-02-08 Tom Tromey <tom@tromey.com>
9591
9592 * dwarf2/read.c (class cutu_reader) <cutu_reader,
9593 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
9594 <keep>: Declare method.
9595 <m_keep>: Remove member.
9596 <~cutu_reader>: Remove.
9597 (cutu_reader::init_tu_and_read_dwo_dies): Update.
9598 (cutu_reader::cutu_reader): Update.
9599 (cutu_reader::keep): Rename from ~cutu_reader.
9600 (process_psymtab_comp_unit, build_type_psymtabs_1)
9601 (process_skeletonless_type_unit, load_partial_comp_unit)
9602 (load_full_comp_unit, dwarf2_read_addr_index)
9603 (read_signatured_type): Update.
9604
135f5437
TT
96052020-02-08 Tom Tromey <tom@tromey.com>
9606
9607 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
9608 "want_partial_unit" parameter.
9609 (process_psymtab_comp_unit): Change want_partial_unit to bool.
9610 Inline check for DW_TAG_partial_unit.
9611 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
9612
9f66ff1c
TT
96132020-02-08 Tom Tromey <tom@tromey.com>
9614
9615 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
9616 read.c.
9617 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
9618 read.c.
9619
c8a7a66f
TT
96202020-02-08 Tom Tromey <tom@tromey.com>
9621
9622 * dwarf2/read.c (read_address): Move to comp-unit.c.
9623 (dwarf2_rnglists_process, dwarf2_ranges_process)
9624 (read_attribute_value, dwarf_decode_lines_1)
9625 (var_decode_location, decode_locdesc): Update.
9626 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
9627 read.c. Remove "cu" parameter.
9628 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
9629 method.
9630
8266302d
TT
96312020-02-08 Tom Tromey <tom@tromey.com>
9632
9633 * dwarf2/read.c (read_attribute_value, read_indirect_string)
9634 (read_indirect_line_string): Update.
9635 * dwarf2/comp-unit.c (read_offset): Remove.
9636 (read_comp_unit_head): Update.
9637 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
9638 method.
9639 (read_offset): Don't declare.
9640
4057dfde
TT
96412020-02-08 Tom Tromey <tom@tromey.com>
9642
9643 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
9644 * dwarf2/read.c (struct comp_unit_head): Move to
9645 dwarf2/comp-unit.h.
9646 (enum class rcuh_kind): Move to comp-unit.h.
9647 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
9648 (read_comp_unit_head, error_check_comp_unit_head)
9649 (read_and_check_comp_unit_head): Move to comp-unit.c.
9650 (read_offset, dwarf_unit_type_name): Likewise.
9651 (create_debug_type_hash_table, read_cutu_die_from_dwo)
9652 (cutu_reader::cutu_reader, read_call_site_scope)
9653 (find_partial_die, follow_die_offset): Update.
9654 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
9655
24aa364d
TT
96562020-02-08 Tom Tromey <tom@tromey.com>
9657
9658 * dwarf2/read.c (read_offset_1): Move to leb.c.
9659 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
9660 (dwarf_decode_macro_bytes): Update.
9661 * dwarf2/leb.c (read_offset): Rename; move from read.c.
9662 * dwarf2/leb.h (read_offset): Declare.
9663
2c7d5afc
TT
96642020-02-08 Tom Tromey <tom@tromey.com>
9665
9666 * dwarf2/read.c (dwarf2_section_size): Remove.
9667 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
9668 Update.
9669 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
9670
4075cb26
TT
96712020-02-08 Tom Tromey <tom@tromey.com>
9672
9673 * dwarf2/read.c (read_initial_length): Move to leb.c.
9674 * dwarf2/leb.h (read_initial_length): Declare.
9675 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
9676 handle_nonstd parameter.
9677 * dwarf2/frame.c (read_initial_length): Remove.
9678 (decode_frame_entry_1): Update.
9679
09ba997f
TT
96802020-02-08 Tom Tromey <tom@tromey.com>
9681
9682 * dwarf2/loc.c (dwarf2_find_location_expression)
9683 (dwarf_evaluate_loc_desc::get_tls_address)
9684 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
9685 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
9686 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
9687 (dwarf2_compile_property_to_c)
9688 (dwarf2_loc_desc_get_symbol_read_needs)
9689 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
9690 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
9691 (loclist_describe_location, loclist_tracepoint_var_ref)
9692 (loclist_generate_c_location): Update.
9693 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
9694 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
9695 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
9696 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
9697 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
9698 (dwarf2_per_cu_data::addr_size)
9699 (dwarf2_per_cu_data::ref_addr_size)
9700 (dwarf2_per_cu_data::text_offset)
9701 (dwarf2_per_cu_data::addr_type): Now methods.
9702 (per_cu_header_read_in): Make per_cu "const".
9703 (dwarf2_version): Remove.
9704 (dwarf2_per_cu_data::int_type): Now a method.
9705 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
9706 (set_die_type, read_array_type, read_subrange_index_type)
9707 (read_tag_string_type, read_subrange_type): Update.
9708 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
9709 offset_size, ref_addr_size, text_offset, addr_type, version,
9710 objfile, int_type, addr_sized_int_type>: Declare methods.
9711
96c738c0
TT
97122020-02-08 Tom Tromey <tom@tromey.com>
9713
9714 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
9715 Move earlier.
9716
8fdd972c
TT
97172020-02-08 Tom Tromey <tom@tromey.com>
9718
9719 * dwarf2/read.h (dwarf_line_debug): Declare.
9720 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
9721 * dwarf2/read.c: Move line_header code to new files.
9722 (dwarf_line_debug): No longer static.
9723 * dwarf2/line-header.c: New file.
9724 * dwarf2/line-header.h: New file.
9725
03075812
TT
97262020-02-08 Tom Tromey <tom@tromey.com>
9727
9728 * dwarf2/read.c (struct line_header) <file_full_name,
9729 file_file_name>: Return unique_xmalloc_ptr.
9730 (line_header::file_file_name): Update.
9731 (line_header::file_full_name): Update.
9732 (dw2_get_file_names_reader): Update.
9733 (macro_start_file): Update.
9734
bb822404
TT
97352020-02-08 Tom Tromey <tom@tromey.com>
9736
9737 * dwarf2/read.c (struct line_header) <file_full_name,
9738 file_file_name>: Declare methods.
9739 (dw2_get_file_names_reader): Update.
9740 (file_file_name): Now a method.
9741 (file_full_name): Likewise.
9742 (macro_start_file): Update.
9743
009b64fc
TT
97442020-02-08 Tom Tromey <tom@tromey.com>
9745
9746 * dwarf2/read.c (dwarf_always_disassemble)
9747 (show_dwarf_always_disassemble): Move to loc.c.
9748 (_initialize_dwarf2_read): Move "always-disassemble" registration
9749 to loc.c.
9750 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
9751 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
9752 static.
9753 (show_dwarf_always_disassemble): Move from read.c.
9754 (_initialize_dwarf2loc): Move always-disassemble from read.c.
9755
5895093f
TT
97562020-02-08 Tom Tromey <tom@tromey.com>
9757
9758 * dwarf2/read.c (~dwarf2_per_objfile): Update.
9759 (create_quick_file_names_table): Return htab_up.
9760 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
9761 Update.
9762 * dwarf2/read.h (struct dwarf2_per_objfile)
9763 <quick_file_names_table>: Now htab_up.
9764
b3b32279
TT
97652020-02-08 Tom Tromey <tom@tromey.com>
9766
9767 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
9768
1d33d811
TT
97692020-02-08 Tom Tromey <tom@tromey.com>
9770
9771 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
9772 Rewrite.
9773 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
9774 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
9775 (abbrev_table::abbrev_table): No longer inline.
9776 (ABBREV_HASH_SIZE): Remove.
9777 (abbrev_table::m_abbrevs): Now an htab_up.
9778
86de1d91
TT
97792020-02-08 Tom Tromey <tom@tromey.com>
9780
9781 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
9782 (cutu_reader): Update.
9783 (build_type_psymtabs_1): Update.
9784 * dwarf2/abbrev.c (abbrev_table::read): Rename.
9785 (abbrev_table::alloc_abbrev): Update.
9786 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
9787 (abbrev_table::read): New static method, renamed from
9788 abbrev_table_read_table.
9789 (abbrev_table::alloc_abbrev)
9790 (abbrev_table::add_abbrev): Now private.
9791 (abbrev_table::abbrev_table): Now private.
9792 (abbrev_table::m_abbrev_obstack): Now private. Rename.
9793
0335378b
TT
97942020-02-08 Tom Tromey <tom@tromey.com>
9795
9796 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
9797 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
9798 htab_up.
9799
48b490f2
TT
98002020-02-08 Tom Tromey <tom@tromey.com>
9801
9802 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
9803 htab_up.
9804 (lookup_dwo_unit_in_dwp): Update.
9805 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
9806 on obstack.
9807
bc68fb19
TT
98082020-02-08 Tom Tromey <tom@tromey.com>
9809
9810 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
9811 obstack.
9812
d15acc42
TT
98132020-02-08 Tom Tromey <tom@tromey.com>
9814
9815 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
9816 line_header_hash.
9817 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
9818 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
9819 Change type to htab_up.
9820
eaa5fa8b
TT
98212020-02-08 Tom Tromey <tom@tromey.com>
9822
9823 * dwarf2/read.c (allocate_type_unit_groups_table): Return
9824 htab_up. Don't allocate on obstack.
9825 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
9826 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
9827 Change type to htab_up.
9828
b0b6a987
TT
98292020-02-08 Tom Tromey <tom@tromey.com>
9830
9831 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
9832 Change type to htab_up.
9833 * dwarf2/read.c (create_signatured_type_table_from_index)
9834 (create_signatured_type_table_from_debug_names)
9835 (create_all_type_units, add_type_unit)
9836 (lookup_dwo_signatured_type, lookup_signatured_type)
9837 (process_skeletonless_type_unit): Update.
9838 (create_debug_type_hash_table, create_debug_types_hash_table):
9839 Change type of types_htab.
9840 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
9841 htab_up. Don't allocate on obstack.
9842 (create_cus_hash_table): Change type of cus_htab parameter.
9843 (struct dwo_file) <cus, tus>: Now htab_up.
9844 (lookup_dwo_signatured_type, lookup_dwo_cutu)
9845 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
9846 (queue_and_load_all_dwo_tus): Update.
9847 * dwarf2/index-write.c (write_gdbindex): Update.
9848 (write_debug_names): Update.
9849
39856def
TT
98502020-02-08 Tom Tromey <tom@tromey.com>
9851
9852 * dwarf2/read.h (struct dwarf2_queue_item): Move from
9853 dwarf2/read.c. Remove "next" member. Add constructor ntad
9854 destructor.
9855 (struct dwarf2_per_objfile) <queue>: New member.
9856 * dwarf2/read.c (struct dwarf2_queue_item): Move to
9857 dwarf2/read.h.
9858 (dwarf2_queue, dwarf2_queue_tail): Remove.
9859 (class dwarf2_queue_guard): Add parameter to constructor. Use
9860 DISABLE_COPY_AND_ASSIGN.
9861 <m_per_objfile>: New member.
9862 <~dwarf2_queue_guard>: Rewrite.
9863 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
9864 Update.
9865 (~dwarf2_queue_item): New.
9866
3e225074
TT
98672020-02-08 Tom Tromey <tom@tromey.com>
9868
9869 * dwarf2/read.c (struct die_info) <has_children>: New member.
9870 (dw2_get_file_names_reader): Remove has_children.
9871 (dw2_get_file_names): Update.
9872 (read_cutu_die_from_dwo): Remove has_children.
9873 (cutu_reader::init_tu_and_read_dwo_dies)
9874 (cutu_reader::cutu_reader): Update.
9875 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
9876 Remove has_children.
9877 (build_type_psymtabs_1, process_skeletonless_type_unit)
9878 (load_partial_comp_unit, load_full_comp_unit): Update.
9879 (create_dwo_cu_reader): Remove has_children.
9880 (create_cus_hash_table, read_die_and_children): Update.
9881 (read_full_die_1,read_full_die): Remove has_children.
9882 (read_signatured_type): Update.
9883 (class cutu_reader) <has_children>: Remove.
9884
82ca8957
TT
98852020-02-08 Tom Tromey <tom@tromey.com>
9886
9887 * dwarf2/expr.c: Rename from dwarf2expr.c.
9888 * dwarf2/expr.h: Rename from dwarf2expr.h.
9889 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
9890 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
9891 * dwarf2/frame.c: Rename from dwarf2-frame.c.
9892 * dwarf2/frame.h: Rename from dwarf2-frame.h.
9893 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
9894 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
9895 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
9896 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
9897 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
9898 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
9899 * dwarf2/loc.c: Rename from dwarf2loc.c.
9900 * dwarf2/loc.h: Rename from dwarf2loc.h.
9901 * dwarf2/read.c: Rename from dwarf2read.c.
9902 * dwarf2/read.h: Rename from dwarf2read.h.
9903 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
9904 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
9905 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
9906 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
9907 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
9908 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
9909 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
9910 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
9911 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
9912 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
9913 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
9914 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
9915 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
9916 Update.
9917 * Makefile.in (COMMON_SFILES): Update.
9918 (HFILES_NO_SRCDIR): Update.
9919
9e35d499
TT
99202020-02-08 Tom Tromey <tom@tromey.com>
9921
9922 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
9923 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
9924
1eba2311
TT
99252020-02-08 Tom Tromey <tom@tromey.com>
9926
9927 * dwarf2read.h (struct die_info): Don't declare.
9928
e41c2da2
TT
99292020-02-08 Tom Tromey <tom@tromey.com>
9930
9931 * dwarf2read.h (die_info_ptr): Remove typedef.
9932
4fc6c0d5
TT
99332020-02-08 Tom Tromey <tom@tromey.com>
9934
9935 * dwarf2read.c (read_call_site_scope)
9936 (handle_data_member_location, dwarf2_add_member_fn)
9937 (mark_common_block_symbol_computed, read_common_block)
9938 (attr_to_dynamic_prop, partial_die_info::read)
9939 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
9940 (dwarf2_symbol_mark_computed, set_die_type): Update.
9941 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
9942 method.
9943 (attr_form_is_block): Don't declare.
9944 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
9945
cd6c91b4
TT
99462020-02-08 Tom Tromey <tom@tromey.com>
9947
9948 * dwarf2read.c (dwarf2_find_base_address, )
9949 (read_call_site_scope, rust_containing_type)
9950 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
9951 (handle_data_member_location, dwarf2_add_member_fn)
9952 (get_alignment, read_structure_type, process_structure_scope)
9953 (mark_common_block_symbol_computed, read_common_block)
9954 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
9955 (partial_die_info::read, read_attribute_value, new_symbol)
9956 (lookup_die_type, dwarf2_get_ref_die_offset)
9957 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
9958 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
9959 (dwarf2_symbol_mark_computed): Update.
9960 * dwarf2/attribute.h (struct attribute) <value_as_address,
9961 form_is_section_offset, form_is_constant, form_is_ref>: Declare
9962 methods.
9963 (value_as_address, attr_form_is_section_offset)
9964 (attr_form_is_constant, attr_form_is_ref): Don't declare.
9965 * dwarf2/attribute.c (attribute::value_as_address)
9966 (attribute::form_is_section_offset, attribute::form_is_constant)
9967 (attribute::form_is_ref): Now methods.
9968
162dce55
TT
99692020-02-08 Tom Tromey <tom@tromey.com>
9970
9971 * dwarf2read.c (struct attribute, DW_STRING)
9972 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
9973 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
9974 (attr_form_is_block, attr_form_is_section_offset)
9975 (attr_form_is_constant, attr_form_is_ref): Move.
9976 * dwarf2/attribute.h: New file.
9977 * dwarf2/attribute.c: New file, from dwarf2read.c.
9978 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
9979
3054dd54
TT
99802020-02-08 Tom Tromey <tom@tromey.com>
9981
9982 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
9983 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
9984 Move.
9985 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
9986 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
9987 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
9988 abbrev.c.
9989 * dwarf2/abbrev.h: New file.
9990 * dwarf2/abbrev.c: New file, from dwarf2read.c.
9991 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
9992
96b79293
TT
99932020-02-08 Tom Tromey <tom@tromey.com>
9994
9995 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
9996 (dwarf2_section_size, dwarf2_get_section_info)
9997 (create_signatured_type_table_from_debug_names)
9998 (create_addrmap_from_aranges, read_debug_names_from_section)
9999 (get_gdb_index_contents_from_section, read_comp_unit_head)
10000 (error_check_comp_unit_head, read_abbrev_offset)
10001 (create_debug_type_hash_table, init_cu_die_reader)
10002 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
10003 (read_comp_units_from_section, create_cus_hash_table)
10004 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
10005 (create_dwp_v2_section, dwarf2_rnglists_process)
10006 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
10007 (abbrev_table_read_table, read_indirect_string_at_offset_from)
10008 (read_indirect_string_from_dwz, read_addr_index_1)
10009 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
10010 (dwarf_decode_macro_bytes, dwarf_decode_macros)
10011 (fill_in_loclist_baton): Update.
10012 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
10013 get_containing_section, get_bfd_owner, get_bfd_section,
10014 get_file_name, get_id, get_flags, empty, read>: Declare methods.
10015 (dwarf2_read_section, get_section_name, get_section_file_name)
10016 (get_containing_section, get_section_bfd_owner)
10017 (get_section_bfd_section, get_section_name, get_section_file_name)
10018 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
10019 declare.
10020 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
10021 (dwarf2_section_info::get_bfd_owner)
10022 (dwarf2_section_info::get_bfd_section)
10023 (dwarf2_section_info::get_name)
10024 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
10025 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
10026 (dwarf2_section_info::read): Now methods.
10027 * dwarf-index-write.c (class debug_names): Update.
10028
2c86cff9
TT
100292020-02-08 Tom Tromey <tom@tromey.com>
10030
10031 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
10032 Move to dwarf2/section.h.
10033 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
10034 (get_section_bfd_section, get_section_name)
10035 (get_section_file_name, get_section_id, get_section_flags)
10036 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
10037 dwarf2/section.c.
10038 * dwarf2/section.h: New file.
10039 * dwarf2/section.c: New file, from dwarf2read.c.
10040 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
10041
f4382c45
TT
100422020-02-08 Tom Tromey <tom@tromey.com>
10043
10044 * dwarf2read.h (read_unsigned_leb128): Don't declare.
10045 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
10046 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
10047 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
10048 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
10049 * dwarf2/leb.h: New file, from dwarf2read.c.
10050 * dwarf2/leb.c: New file, from dwarf2read.c.
10051 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
10052 Remove.
10053 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
10054 (COMMON_SFILES): Add dwarf2/leb.c.
10055
01840b7a
JB
100562020-02-08 Joel Brobecker <brobecker@adacore.com>
10057
10058 GDB 9.1 released.
10059
dfcb27e4
IB
100602020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
10061
10062 PR gdb/25190:
aac66a4c
SM
10063 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
10064 * gdb/remote.c (remote_console_output): Update.
10065 * gdb/ui-file.c (fputs_unfiltered): Rename to...
10066 (ui_file_puts): ...this.
10067 * gdb/ui-file.h (ui_file_puts): Add declaration.
10068 * gdb/utils.c (emit_style_escape): Update.
10069 (flush_wrap_buffer): Update.
10070 (fputs_maybe_filtered): Update.
10071 (fputs_unfiltered): Add function.
dfcb27e4 10072
faa17681
IB
100732020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
10074
aac66a4c
SM
10075 * gdb/event-loop.c (gdb_wait_for_event): Update.
10076 * gdb/printcmd.c (printf_command): Update.
10077 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
10078 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
10079 (gdb_os_flush_stderr): Update.
10080 * gdb/remote.c (remote_console_output): Update.
10081 * gdb/ui-file.c (gdb_flush): Rename to...
10082 (ui_file_flush): ...this.
10083 (stderr_file::write): Update.
10084 (stderr_file::puts): Update.
10085 * gdb/ui-file.h (gdb_flush): Rename to...
10086 (ui_file_flush): ...this.
10087 * gdb/utils.c (gdb_flush): Add function.
10088 * gdb/utils.h (gdb_flush): Add declaration.
faa17681 10089
5abbbe1d
TT
100902020-02-07 Tom Tromey <tromey@adacore.com>
10091
10092 PR breakpoints/24915:
10093 * source.c (find_and_open_source): Do not check basenames_may_differ.
10094
919adfe8
TT
100952020-02-07 Tom Tromey <tom@tromey.com>
10096
10097 * README: Update gdbserver documentation.
10098 * gdbserver: Move to top level.
10099 * configure.tgt (build_gdbserver): Remove.
10100 * configure.ac: Remove --enable-gdbserver.
10101 * configure: Rebuild.
10102 * Makefile.in (distclean): Don't mention gdbserver.
10103
1d5d29e7
SV
101042020-02-06 Shahab Vahedi <shahab@synopsys.com>
10105
10106 * source-cache.c (source_cache::ensure): Surround
10107 get_plain_source_lines with a try/catch.
10108 (source_cache::get_line_charpos): Get rid of try/catch
10109 and only check for the return value of "ensure".
10110 * tui/tui-source.c (tui_source_window::set_contents):
10111 Simplify "nlines" calculation.
10112
6eb1129c
SV
101132020-02-06 Shahab Vahedi <shahab@synopsys.com>
10114
10115 * MAINTAINERS (Write After Approval): Add myself.
10116
c6a42d11
CB
101172020-02-05 Christian Biesinger <cbiesinger@google.com>
10118
10119 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
10120 function call.
10121
c8ecdda6
CB
101222020-02-05 Christian Biesinger <cbiesinger@google.com>
10123
10124 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
10125
f6480e70
MR
101262020-02-05 Maciej W. Rozycki <macro@wdc.com>
10127
10128 * nat/riscv-linux-tdesc.h: New file.
10129 * nat/riscv-linux-tdesc.c: New file, taking code from...
10130 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
10131 ... here.
10132 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
10133 NATDEPFILES.
10134
dcc9fbc6
AB
101352020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
10136
10137 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
10138 we don't set the fake simulator ptid to the null_ptid.
10139
719546c4
SM
101402020-02-03 Simon Marchi <simon.marchi@efficios.com>
10141
10142 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
10143 * gdbthread.h (class thread_info) <resumed>: Likewise.
10144 * infrun.c (resume_1): Likewise.
10145 (proceed): Likewise.
10146 (infrun_thread_stop_requested): Likewise.
10147 (stop_all_threads): Likewise.
10148 (handle_inferior_event): Likewise.
10149 (restart_threads): Likewise.
10150 (finish_step_over): Likewise.
10151 (keep_going_stepped_thread): Likewise.
10152 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
10153 (linux_handle_extended_wait): Likewise.
10154 * record-btrace.c (get_thread_current_frame_id): Likewise.
10155 * record-full.c (record_full_wait_1): Likewise.
10156 * remote.c (remote_target::process_initial_stop_replies): Likewise.
10157 * target.c (target_resume): Likewise.
10158 * thread.c (set_running_thread): Likewise.
10159
e409c542
AKS
101602020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
10161
10162 * f-valprint.c (f77_print_array_1): Changed datatype of index
10163 variable to LONGEST from int to enable it to contain bound
10164 values correctly.
10165
ee98c0da
MR
101662020-02-03 Maciej W. Rozycki <macro@wdc.com>
10167
10168 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
10169 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
10170 offsets according to FLEN determined.
10171 (riscv_linux_nat_target::read_description): Determine FLEN
10172 dynamically.
10173 (riscv_linux_nat_target::fetch_registers): Size regset buffer
10174 according to FLEN determined.
10175 (riscv_linux_nat_target::store_registers): Likewise.
10176
aa66aac4
SV
101772020-02-01 Shahab Vahedi <shahab@synopsys.com>
10178
10179 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
10180 when reg->group is empty and reggroup is not.
10181
fd9faca8
TT
101822020-01-31 Tom Tromey <tromey@adacore.com>
10183
10184 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
10185 Call beneath target's mourn_inferior after unpushing.
10186
42330a68
AB
101872020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
10188
10189 PR tui/9765
10190 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
10191 have enough lines to fill the screen, still return the lowest
10192 address we found.
10193
7a27a45b
AB
101942020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
10195
10196 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
10197 '-', '<', and '>' commands.
10198
c47f70e2
PA
101992020-01-29 Pedro Alves <palves@redhat.com>
10200 Sergio Durigan Junior <sergiodj@redhat.com>
10201
10202 * infcmd.c (construct_inferior_arguments): Assert that
10203 'argc' is greater than 0.
10204
5133a315
LM
102052020-01-29 Luis Machado <luis.machado@linaro.org>
10206
10207 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
10208 (BRK_INSN_MASK): Define to 0xd4200000.
10209 (aarch64_program_breakpoint_here_p): New function.
10210 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
10211 * arch-utils.c (default_program_breakpoint_here_p): Moved from
10212 breakpoint.c.
10213 * arch-utils.h (default_program_breakpoint_here_p): Moved from
10214 breakpoint.h
10215 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
10216 call gdbarch_program_breakpoint_here_p.
10217 (program_breakpoint_here): Moved to arch-utils.c, renamed to
10218 default_program_breakpoint_here_p, changed return type to bool and
10219 simplified.
10220 * breakpoint.h (program_breakpoint_here): Moved prototype to
10221 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
10222 return type to bool.
10223 * gdbarch.c: Regenerate.
10224 * gdbarch.h: Regenerate.
10225 * gdbarch.sh (program_breakpoint_here_p): New method.
10226 * infrun.c (handle_signal_stop): Call
10227 gdbarch_program_breakpoint_here_p.
10228
168f8c6b
TT
102292020-01-26 Tom Tromey <tom@tromey.com>
10230
10231 * ctfread.c (struct ctf_fp_info): Reindent.
10232 (_initialize_ctfread): Remove.
10233
128a391f
TT
102342020-01-26 Tom Tromey <tom@tromey.com>
10235
10236 * psymtab.c (partial_map_expand_apply)
10237 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
10238 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
10239 (psym_print_stats, psym_expand_symtabs_for_function)
10240 (psym_map_symbol_filenames, psym_map_matching_symbols)
10241 (psym_expand_symtabs_matching)
10242 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
10243 (maintenance_check_psymtabs): Use new methods.
10244 * psympriv.h (struct partial_symtab) <readin_p,
10245 get_compunit_symtab>: New methods.
10246 <readin, compunit_symtab>: Remove members.
10247 (struct standard_psymtab): New.
10248 (struct legacy_psymtab): Derive from standard_psymtab.
10249 * dwarf2read.h (struct dwarf2_psymtab): Derive from
10250 standard_psymtab.
10251 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
10252
0494dbec
TT
102532020-01-26 Tom Tromey <tom@tromey.com>
10254
10255 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
10256 read_dependencies. Add assert.
10257 * psymtab.c (partial_symtab::read_dependencies): New method.
10258 * psympriv.h (struct partial_symtab) <read_dependencies>: New
10259 method.
10260 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
10261 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
10262 read_dependencies.
10263 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
10264 Add assert.
10265
8566b89b
TT
102662020-01-26 Tom Tromey <tom@tromey.com>
10267
10268 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
10269 Call expand_psymtab.
10270 (xcoff_read_symtab): Call expand_psymtab.
10271 (xcoff_start_psymtab, xcoff_end_psymtab): Set
10272 legacy_expand_psymtab.
10273 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
10274 method.
10275 (struct legacy_psymtab) <expand_psymtab>: Implement.
10276 <legacy_expand_psymtab>: New member.
10277 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
10278 (parse_partial_symbols): Set legacy_expand_psymtab.
10279 (psymtab_to_symtab_1): Change argument order. Call
10280 expand_psymtab.
10281 (new_psymtab): Set legacy_expand_psymtab.
10282 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
10283 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
10284 expand_psymtab.
10285 (dwarf2_psymtab::expand_psymtab): Rename from
10286 psymtab_to_symtab_1. Call expand_psymtab.
10287 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
10288 (dbx_end_psymtab): Likewise.
10289 (dbx_psymtab_to_symtab_1): Change argument order. Call
10290 expand_psymtab.
10291 (dbx_read_symtab): Call expand_psymtab.
10292 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
10293 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
10294 (ctf_psymtab::read_symtab): Call expand_psymtab.
10295
077cbab2
TT
102962020-01-26 Tom Tromey <tom@tromey.com>
10297
10298 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
10299 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
10300 messages.
10301 * mdebugread.c (mdebug_read_symtab): Remove prints.
10302 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
10303 assert.
10304 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
10305
891813be
TT
103062020-01-26 Tom Tromey <tom@tromey.com>
10307
10308 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
10309 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
10310 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
10311 legacy_symtab.
10312 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
10313 * psymtab.c (psymtab_to_symtab): Call method.
10314 (dump_psymtab): Update.
10315 * psympriv.h (struct partial_symtab): Add virtual destructor.
10316 <read_symtab>: New method.
10317 (struct legacy_symtab): New.
10318 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
10319 (struct pst_map) <pst>: Now a legacy_psymtab.
10320 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
10321 (new_psymtab): Use legacy_psymtab.
10322 * dwarf2read.h (struct dwarf2_psymtab): New.
10323 (struct dwarf2_per_cu_data) <psymtab>: Use it.
10324 * dwarf2read.c (dwarf2_create_include_psymtab)
10325 (dwarf2_build_include_psymtabs, create_type_unit_group)
10326 (create_partial_symtab, process_psymtab_comp_unit_reader)
10327 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
10328 (set_partial_user): Use dwarf2_psymtab.
10329 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
10330 (psymtab_to_symtab_1, process_full_comp_unit)
10331 (process_full_type_unit, dwarf2_ranges_read)
10332 (dwarf2_get_pc_bounds, psymtab_include_file_name)
10333 (dwarf_decode_lines): Use dwarf2_psymtab.
10334 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
10335 (add_address_entry_worker, write_one_signatured_type)
10336 (recursively_count_psymbols, recursively_write_psymbols)
10337 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
10338 (write_debug_names): Likewise.
10339 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
10340 <pst>: Now a legacy_psymtab.
10341 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
10342 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
10343 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
10344 * ctfread.c (struct ctf_psymtab): New.
10345 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
10346 ctf_psymtab.
10347 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
10348 (create_partial_symtab): Return a ctf_psymtab.
10349 (scan_partial_symbols): Update.
10350
c3693a1d
TT
103512020-01-26 Tom Tromey <tom@tromey.com>
10352
10353 * xcoffread.c (xcoff_start_psymtab): Use new.
10354 * psymtab.c (partial_symtab::partial_symtab): New constructor,
10355 renamed from start_psymtab_common.
10356 * psympriv.h (struct partial_symtab): Add new constructor.
10357 (start_psymtab_common): Don't declare.
10358 * mdebugread.c (parse_partial_symbols): Use new.
10359 * dwarf2read.c (create_partial_symtab): Use new.
10360 * dbxread.c (start_psymtab): Use new.
10361 * ctfread.c (create_partial_symtab): Use new.
10362
32caafd0
TT
103632020-01-26 Tom Tromey <tom@tromey.com>
10364
10365 * xcoffread.c (xcoff_end_psymtab): Use new.
10366 * psymtab.c (start_psymtab_common): Use new.
10367 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
10368 Update.
10369 * psympriv.h (struct partial_symtab): Add parameters to
10370 constructor. Don't inline.
10371 (allocate_psymtab): Don't declare.
10372 * mdebugread.c (new_psymtab): Use new.
10373 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
10374 * dbxread.c (dbx_end_psymtab): Use new.
10375
abaa2f23
TT
103762020-01-26 Tom Tromey <tom@tromey.com>
10377
10378 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
10379 allocate_psymtab. Update documentation.
10380 * psymtab.c (psymtab_storage::install_psymtab): Rename from
10381 allocate_psymtab. Do not use new.
10382 (allocate_psymtab): Use new. Update.
10383
6d94535f
TT
103842020-01-26 Tom Tromey <tom@tromey.com>
10385
10386 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
10387 * psymtab.c (psym_print_stats): Update.
10388 * psympriv.h (struct partial_symtab) <readin,
10389 psymtabs_addrmap_supported, anonymous>: Now bool.
10390 * mdebugread.c (psymtab_to_symtab_1): Update.
10391 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
10392 (build_type_psymtabs_reader, psymtab_to_symtab_1)
10393 (process_full_comp_unit, process_full_type_unit): Update.
10394 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
10395 * ctfread.c (psymtab_to_symtab): Update.
10396
6f17252b
TT
103972020-01-26 Tom Tromey <tom@tromey.com>
10398
10399 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
10400 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
10401 * psymtab.c (psymtab_storage): Delete psymtabs.
10402 (psymtab_storage::allocate_psymtab): Use new.
10403 (psymtab_storage::discard_psymtab): Use delete.
10404 * psympriv.h (struct partial_symtab): Add constructor and
10405 initializers.
10406
f6f1cebc
TT
104072020-01-26 Tom Tromey <tom@tromey.com>
10408
10409 * machoread.c: Do not include psympriv.h.
10410
e47e48f6
PW
104112020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10412
10413 * NEWS: Mention the new option and the set/show commands.
10414
a2fedca9
PW
104152020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10416
10417 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
10418 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
10419 (validate_exec_file): New variables, enums, functions.
10420 (exec_file_locate_attach, print_section_info): Style the filenames.
10421 (_initialize_exec): Install show_exec_file_mismatch_command and
10422 set_exec_file_mismatch_command.
10423 * gdbcore.h (validate_exec_file): Declare.
10424 * infcmd.c (attach_command): Call validate_exec_file.
10425 * remote.c ( remote_target::remote_add_inferior): Likewise.
10426
7ffa82e1
AB
104272020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10428
10429 * frame.c (find_frame_sal): Move call to get_next_frame into more
10430 inner scope.
10431 * inline-frame.c (inilne_state) <inline_state>: Update argument
10432 types.
10433 (inilne_state) <skipped_symbol>: Rename to...
10434 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
10435 (skip_inline_frames): Build vector of skipped symbols and use this
10436 to reate the inline_state.
10437 (inline_skipped_symbol): Add a comment and some assertions, fetch
10438 skipped symbol from the list.
10439
3d92a3e3
AB
104402020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10441
10442 * buildsym.c (lte_is_less_than): Delete.
10443 (buildsym_compunit::end_symtab_with_blockvector): Create local
10444 lambda function to sort line table entries, and use
10445 std::stable_sort instead of std::sort.
10446 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
10447 markers when looking for a previous line.
10448
94a72be7
AB
104492020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10450
10451 * dwarf2read.c (lnp_state_machine::record_line): Include
10452 end_sequence parameter in debug print out. Record the line if we
10453 are at an end_sequence marker even if it's not the start of a
10454 statement.
10455 * symmisc.c (maintenance_print_one_line_table): Print end of
10456 sequence markers with 'END' not '0'.
10457
53af73bf
PA
104582020-01-24 Pedro Alves <palves@redhat.com>
10459
10460 PR gdb/25410
10461 * thread.c (scoped_restore_current_thread::restore): Use
10462 switch_to_inferior_no_thread.
10463 * exec.c: Include "progspace-and-thread.h".
10464 (add_target_sections, remove_target_sections):
10465 scoped_restore_current_pspace_and_thread instead of
10466 scoped_restore_current_thread.
10467 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
10468 and aspace to the inferior before calling clone_program_space.
10469 Remove stale comment.
10470
3050c6f4
CB
104712020-01-24 Christian Biesinger <cbiesinger@google.com>
10472
10473 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
10474 (arm_netbsd_nat_target::fetch_registers): ...this.
10475 (arm_nbsd_nat_target::store_registers): Rename to...
10476 (arm_netbsd_nat_target::store_registers): ...this.
10477
73685c7e
CB
104782020-01-24 Christian Biesinger <cbiesinger@google.com>
10479
10480 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
10481 register_t.
10482
89203d40
CB
104832020-01-24 Christian Biesinger <cbiesinger@google.com>
10484
10485 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
10486 Update comment.
10487 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
10488 Likewise.
10489 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
10490 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
10491 the correct replacement (iterate_over_regset_sections).
10492 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
10493 Update comment.
10494
1ba1ac88
AB
104952020-01-24 Graham Markall <graham.markall@embecosm.com>
10496
10497 PR gdb/23718
10498 * gdb/python/python.c (execute_gdb_command): Call
10499 async_enable_stdin in catch block.
10500
f3364a6d
AB
105012020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10502
10503 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
10504 SWITCH_THRU_ALL_UIS.
10505
733d0a67
AB
105062020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10507
10508 PR tui/9765
10509 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
10510 comment, add extra parameter, and update to store previous symbol
10511 when appropriate.
10512 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
10513 add extra parameter.
10514 * tui/tui-disasm.c (tui_disassemble): Update header comment,
10515 remove unneeded parameter, add try/catch around gdb_print_insn,
10516 rewrite to add items to asm_lines vector.
10517 (tui_find_backward_disassembly_start_address): New function.
10518 (tui_find_disassembly_address): Updated throughout.
10519 (tui_disasm_window::set_contents): Update for changes to
10520 tui_disassemble.
10521 (tui_disasm_window::do_scroll_vertical): No need to adjust the
10522 number of lines to scroll.
10523
b3b3bada
SM
105242020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
10525
10526 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
10527 (SECT_OFF_DATA): Likewise.
10528 (SECT_OFF_RODATA): Likewise.
10529 (SECT_OFF_TEXT): Likewise.
10530 (SECT_OFF_BSS): Likewise.
10531 (struct objfile) <text_section_offset, data_section_offset>: New
10532 methods.
10533 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
10534 objfile::text_section_offset.
10535 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
10536 * coffread.c (coff_symtab_read): Likewise.
10537 (enter_linenos): Likewise.
10538 (process_coff_symbol): Likewise.
10539 * ctfread.c (get_objfile_text_range): Likewise.
10540 * dtrace-probe.c (dtrace_probe::get_relocated_address):
10541 Use objfile::data_section_offset.
10542 * dwarf2-frame.c (execute_cfa_program): Use
10543 objfile::text_section_offset.
10544 (dwarf2_frame_find_fde): Likewise.
10545 * dwarf2read.c (create_addrmap_from_index): Likewise.
10546 (create_addrmap_from_aranges): Likewise.
10547 (dw2_find_pc_sect_compunit_symtab): Likewise.
10548 (process_psymtab_comp_unit_reader): Likewise.
10549 (add_partial_symbol): Likewise.
10550 (add_partial_subprogram): Likewise.
10551 (process_full_comp_unit): Likewise.
10552 (read_file_scope): Likewise.
10553 (read_func_scope): Likewise.
10554 (read_lexical_block_scope): Likewise.
10555 (read_call_site_scope): Likewise.
10556 (dwarf2_rnglists_process): Likewise.
10557 (dwarf2_ranges_process): Likewise.
10558 (dwarf2_ranges_read): Likewise.
10559 (dwarf_decode_lines_1): Likewise.
10560 (new_symbol): Likewise.
10561 (dwarf2_fetch_die_loc_sect_off): Likewise.
10562 (dwarf2_per_cu_text_offset): Likewise.
10563 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
10564 * hppa-tdep.c (read_unwind_info): Likewise.
10565 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
10566 * psympriv.h (struct partial_symtab): Likewise.
10567 * psymtab.c (find_pc_sect_psymtab): Likewise.
10568 * solib-svr4.c (enable_break): Likewise.
10569 * stap-probe.c (relocate_address): Use
10570 objfile::data_section_offset.
10571 * xcoffread.c (enter_line_range): Use
10572 objfile::text_section_offset.
10573 (read_xcoff_symtab): Likewise.
10574
ab53f382
SM
105752020-01-23 Simon Marchi <simon.marchi@efficios.com>
10576
10577 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
10578 declaration to narrower scopes.
10579
e7eee665
SM
105802020-01-23 Simon Marchi <simon.marchi@efficios.com>
10581
10582 * darwin-nat.h (struct darwin_exception_msg, enum
10583 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
10584 Move up.
10585 (class darwin_nat_target) <wait_1, check_new_threads,
10586 decode_exception_message, decode_message, stop_inferior,
10587 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
10588 * darwin-nat.c (darwin_check_new_threads): Rename to...
10589 (darwin_nat_target::check_new_threads): ... this.
10590 (darwin_suspend_inferior_it): Remove.
10591 (darwin_decode_exception_message): Rename to...
10592 (darwin_nat_target::decode_exception_message): ... this.
10593 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
10594 (darwin_decode_message): Rename to...
10595 (darwin_nat_target::decode_message): ... this.
10596 (cancel_breakpoint): Rename to...
10597 (darwin_nat_target::cancel_breakpoint): ... this.
10598 (darwin_wait): Rename to...
10599 (darwin_nat_target::wait_1): ... this. Use range-based for loop
10600 instead of iterate_over_inferiors.
10601 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
10602 (darwin_stop_inferior): Rename to...
10603 (darwin_nat_target::stop_inferior): ... this.
10604 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
10605 (darwin_init_thread_list): Rename to...
10606 (darwin_nat_target::init_thread_list): ... this.
10607 (darwin_ptrace_him): Rename to...
10608 (darwin_nat_target::ptrace_him): ... this.
10609 (darwin_nat_target::create_inferior): Pass lambda function to
10610 fork_inferior.
10611 (darwin_nat_target::detach): Call stop_inferior instead of
10612 darwin_stop_inferior.
10613 * fork-inferior.h (fork_inferior): Change init_trace_fun
10614 parameter to gdb::function_view.
10615 * fork-inferior.c (fork_inferior): Likewise.
10616
c162ed3e
HD
106172020-01-23 Hannes Domani <ssbssa@yahoo.de>
10618
10619 * i386-cygwin-tdep.c (core_process_module_section): Update.
10620 * windows-nat.c (struct lm_info_windows): Add text_offset.
10621 (windows_xfer_shared_libraries): Update.
10622 * windows-tdep.c (windows_xfer_shared_library):
10623 Add text_offset_cached argument.
10624 * windows-tdep.h (windows_xfer_shared_library): Update.
10625
a1237872
SM
106262020-01-21 Simon Marchi <simon.marchi@efficios.com>
10627
10628 * gdbarch.sh: Add declaration for _initialize_gdbarch.
10629
b3ee6dd9
SM
106302020-01-21 Simon Marchi <simon.marchi@efficios.com>
10631
10632 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
10633 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
10634 replace with range-based for.
10635 (gdbsim_interrupt_inferior): Remove.
10636 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
10637 with a range-based for. Inline code from
10638 gdbsim_interrupt_inferior.
10639
f9fac3c8
SM
106402020-01-21 Simon Marchi <simon.marchi@efficios.com>
10641
10642 * infrun.c (proceed): Fix indentation.
10643
f6474de9
TT
106442020-01-21 Tom Tromey <tromey@adacore.com>
10645
10646 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
10647 * python/python.c (python_extension_ops): Update.
10648 (gdbpy_colorize): New function.
10649 * python/lib/gdb/__init__.py (colorize): New function.
10650 * extension.h (ext_lang_colorize): Declare.
10651 * extension.c (ext_lang_colorize): New function.
10652 * extension-priv.h (struct extension_language_ops) <colorize>: New
10653 member.
10654 * cli/cli-style.c (_initialize_cli_style): Update help text.
10655
f0c702d4
LM
106562020-01-21 Luis Machado <luis.machado@linaro.org>
10657
10658 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
10659 <cond>: Change type to bool.
10660 (aarch64_displaced_step_b_cond): Update cond to use bool type.
10661 (aarch64_displaced_step_cb): Likewise.
10662 (aarch64_displaced_step_tb): Likewise.
10663
1ab139e5
LM
106642020-01-21 Luis Machado <luis.machado@linaro.org>
10665
10666 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
10667 output.
10668
0c271889
LM
106692020-01-21 Luis Machado <luis.machado@linaro.org>
10670
10671 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
10672 <pc_adjust>: Adjust the documentation.
10673 (aarch64_displaced_step_fixup): Check if PC really moved before
10674 adjusting it.
10675
4d89c1c7
TT
106762020-01-19 Tom Tromey <tom@tromey.com>
10677
10678 * disasm.c (~gdb_disassembler): New destructor.
10679 (gdb_buffered_insn_length): Call disassemble_free_target.
10680 * disasm.h (class gdb_disassembler): Declare destructor. Use
10681 DISABLE_COPY_AND_ASSIGN.
10682
c0ab21c2
TT
106832020-01-19 Tom Tromey <tom@tromey.com>
10684
10685 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
10686 (die_reader_func_ftype): Remove.
10687 (cutu_reader): New class.
10688 (dw2_get_file_names_reader): Remove "data" parameter.
10689 (dw2_get_file_names): Use cutu_reader.
10690 (create_debug_type_hash_table): Update.
10691 (read_cutu_die_from_dwo): Update comment.
10692 (lookup_dwo_unit): Add dwo_name parameter.
10693 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
10694 die_reader_func_ftype and data parameters.
10695 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
10696 Remove die_reader_func_ftype and data parameters.
10697 (~cutu_reader): New; from init_cutu_and_read_dies.
10698 (cutu_reader::cutu_reader): Rename from
10699 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
10700 and data parameters.
10701 (init_cutu_and_read_dies_simple): Remove.
10702 (struct process_psymtab_comp_unit_data): Remove.
10703 (process_psymtab_comp_unit_reader): Remove data parameter; add
10704 want_partial_unit and pretend_language parameters.
10705 (process_psymtab_comp_unit): Use cutu_reader.
10706 (build_type_psymtabs_reader): Remove data parameter.
10707 (build_type_psymtabs_1): Use cutu_reader.
10708 (process_skeletonless_type_unit): Likewise.
10709 (load_partial_comp_unit_reader): Remove.
10710 (load_partial_comp_unit): Use cutu_reader.
10711 (load_full_comp_unit_reader): Remove.
10712 (load_full_comp_unit): Use cutu_reader.
10713 (struct create_dwo_cu_data): Remove.
10714 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
10715 dwo_unit parameters.
10716 (create_cus_hash_table): Use cutu_reader.
10717 (struct dwarf2_read_addr_index_data): Remove.
10718 (dwarf2_read_addr_index_reader): Remove.
10719 (dwarf2_read_addr_index): Use cutu_reader.
10720 (read_signatured_type_reader): Remove.
10721 (read_signatured_type): Use cutu_reader.
10722
45bbae5c
TT
107232020-01-19 Tom Tromey <tom@tromey.com>
10724
10725 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
10726 * tui/tui-wingeneral.h (class tui_suppress_output): New.
10727 (tui_wrefresh): Declare.
10728 * tui/tui-wingeneral.c (suppress_output): New global.
10729 (tui_suppress_output, ~tui_suppress_output): New constructor and
10730 destructor.
10731 (tui_wrefresh): New function.
10732 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
10733 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
10734 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
10735 method.
10736 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
10737 tui_wrefresh.
10738 (tui_data_window::no_refresh): New method.
10739 (tui_data_item_window::refresh_window): Call tui_wrefresh.
10740 (tui_reg_command): Use tui_suppress_output
10741 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
10742 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
10743 method.
10744 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
10745
4f13c1c0
TT
107462020-01-19 Tom Tromey <tom@tromey.com>
10747
10748 * tui/tui-winsource.c (tui_update_source_windows_with_line):
10749 Handle case where symtab is null.
10750
fa47e446
SM
107512020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
10752
10753 * linux-fork.c (one_fork_p): Simplify.
10754
26f42329
SM
107552020-01-17 Simon Marchi <simon.marchi@efficios.com>
10756
10757 * top.c (struct qt_args): Remove.
10758 (kill_or_detach): Change return type to void, replace `void *`
10759 parameter with a proper one.
10760 (print_inferior_quit_action): Likewise.
10761 (quit_confirm): Use range-based for loop to iterate over inferiors.
10762 (quit_force): Likewise.
10763
a9ac81b1
SM
107642020-01-17 Simon Marchi <simon.marchi@efficios.com>
10765
10766 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
10767 `void *` parameter with proper parameters.
10768 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
10769 (print_one_inferior): Change return type to void, replace `void *`
10770 parameter with proper parameters.
10771 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
10772 inferiors.
10773 (get_other_inferior): Remove.
10774 (mi_cmd_remove_inferior): Use range-based loop to iterate over
10775 inferiors.
10776
788eca49
SM
107772020-01-17 Simon Marchi <simon.marchi@efficios.com>
10778
10779 * mi/mi-interp.c (report_initial_inferior): Remove.
10780 (mi_interp::init): Use range-based for to iterate over inferiors.
10781
d9bc85b6
SM
107822020-01-17 Simon Marchi <simon.marchi@efficios.com>
10783
10784 * python/py-inferior.c (build_inferior_list): Remove.
10785 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
10786
40c94099
CB
107872020-01-16 Christian Biesinger <cbiesinger@google.com>
10788
10789 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
10790 (btrace_stitch_trace): Likewise.
10791 * charset.c (intermediate_encoding): Likewise (vaild).
10792 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
10793 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
10794 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
10795
e0cdfe3c
HD
107962020-01-16 Hannes Domani <ssbssa@yahoo.de>
10797
10798 * windows-tdep.c (windows_get_tlb_type):
10799 Add rtl_user_process_parameters type.
10800
790f1718 108012020-01-16 Pedro Alves <palves@redhat.com>
aac66a4c 10802 Norbert Lange <nolange79@gmail.com>
790f1718
PA
10803
10804 PR build/24805
10805 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
10806 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
10807 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
10808 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
10809 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
10810 (ps_plog): Redeclare exported functions with default visibility.
10811
3112ed97
NA
108122020-01-16 Nitika Achra <Nitika.Achra@amd.com>
10813
10814 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
10815 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
10816
8dc3273e
SM
108172020-01-15 Simon Marchi <simon.marchi@efficios.com>
10818
10819 * infcmd.c (post_create_inferior): Use get_thread_regcache
10820 instead of get_current_regcache.
10821
ff47f4f0
TT
108222020-01-14 Tom Tromey <tom@tromey.com>
10823
10824 PR symtab/12535:
10825 * python/python.c (gdbpy_decode_line): Treat empty string the same
10826 as no argument.
10827
975f45b7
TT
108282020-01-14 Tom Tromey <tom@tromey.com>
10829
10830 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
10831
25e57356
TT
108322020-01-14 Tom Tromey <tom@tromey.com>
10833
10834 * nat/linux-btrace.c: Don't include <config.h>.
10835 * nat/linux-ptrace.c: Don't include <config.h>.
10836 * nat/x86-linux-dregs.c: Don't include <config.h>.
10837
05ea2a05
TT
108382020-01-14 Tom Tromey <tom@tromey.com>
10839
10840 * configure: Rebuild.
10841 * configure.ac: Move many checks to ../gdbsupport/common.m4.
10842
01027315
TT
108432020-01-14 Tom Tromey <tom@tromey.com>
10844
10845 * nat/x86-linux-dregs.c: Include configh.h.
10846 * nat/linux-ptrace.c: Include configh.h.
10847 * nat/linux-btrace.c: Include configh.h.
10848 * defs.h: Include config.h, bfd.h.
10849 * configure.ac: Don't source common.host.
10850 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
10851 * configure: Rebuild.
10852 * acinclude.m4: Update path.
10853 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
10854 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
10855 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
10856 (CLIBS): Add LIBSUPPORT.
10857 (CDEPS): Likewise.
10858 (COMMON_SFILES): Remove gdbsupport files.
10859 (HFILES_NO_SRCDIR): Likewise.
10860 (stamp-version): Update path to create-version.sh.
10861 (ALLDEPFILES): Remove gdbsupport files.
10862
b2ceabe8
TT
108632020-01-14 Tom Tromey <tom@tromey.com>
10864
10865 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
10866 USE_WIN32API when needed.
10867 * configure.ac (USE_WIN32API): Don't define.
10868 (WIN32LIBS): Use WIN32APILIBS.
10869 * configure: Rebuild.
10870
25c51f71
TT
108712020-01-14 Tom Tromey <tom@tromey.com>
10872
10873 * configure: Rebuild.
10874 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
10875
717c684d
BE
108762020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
10877
10878 * skip.c (skip_function_command): Make skip w/o arguments use the
10879 name of the inlined function if pc is inside any inlined function.
10880
7da6a5b9
LM
108812020-01-14 Luis Machado <luis.machado@linaro.org>
10882
10883 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
10884 * infrun.c (resume_1): Likewise.
10885 (handle_inferior_event): Remove stale comment.
10886 * linux-nat.c (linux_nat_target::resume): Update comments.
10887 (save_stop_reason): Likewise.
10888 (linux_nat_filter_event): Likewise.
10889 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
10890
44e4c775
AB
108912020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
10892
10893 * elfread.c (record_minimal_symbol): Set section index to 0 for
10894 non-allocatable sections.
10895
18a8505e
AT
10896
108972020-01-13 Ali Tamur <tamur@google.com>
10898
10899 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
10900 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
10901 to gdb::optional. Update comments.
10902 (dwo_file): Update comments.
10903 (read_attribute): Update API to take an additional out parameter,
10904 need_reprocess. This is used to mark attributes that need other
10905 attributes (e.g. str_offsets_base) for correct computation which may not
10906 have been read yet.
10907 (read_attribute_reprocess): New function declaration.
10908 (read_addr_index): Likewise.
10909 (read_dwo_str_index): Likewise.
10910 (read_stub_str_index): Likewise.
10911 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
10912 (lookup_addr_base): New function definition.
10913 (lookup_ranges_base): Likewise.
10914 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
10915 lookup_ranges_base.
10916 (init_cutu_and_read_dies): Update comments.
10917 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
10918 unit. This is used to inherit parent's str_offsets_base and addr_base.
10919 Update comments.
10920 (init_cutu_and_read_dies_simple): Reflect API changes.
10921 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
10922 (create_cus_hash_table): Change API to take parent compile unit.
10923 Reflect API changes.
10924 (open_and_init_dwo_file): Reflect API changes.
10925 (dwarf2_get_pc_bounds): Update comments.
10926 (dwarf2_record_block_ranges): Likewise.
10927 (read_full_die_1): Change implementation to reprocess attributes that
10928 need str_offsets_base and addr_base.
10929 (partial_die_info::read): Likewise.
10930 (read_attribute_reprocess): New function definition.
10931 (read_attribute_value): Change API to take an additional out parameter,
10932 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
10933 when a non-dwo compile unit has index based attributes.
10934 (read_attribute): Reflect API changes.
10935 (read_addr_index_1): Reflect API changes. Update comments.
10936 (dwarf2_read_addr_index_data): Reflect API changes.
10937 (dwarf2_read_addr_index): Likewise.
10938 (read_str_index): Change API and implementation. This becomes a helper
10939 to be used by the new string index related methods. Update error
10940 message and comments.
10941 (read_dwo_str_index): New function definition.
10942 (read_stub_str_index): Likewise.
10943 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
10944 * symfile.h (dwarf2_debug_sections): Likewise.
10945 * xcoffread.c (dwarf2_debug_sections): Likewise.
10946
0cac9354
SM
109472020-01-13 Simon Marchi <simon.marchi@efficios.com>
10948
10949 * gdbcore.h (struct core_fns) <core_read_registers>: Change
10950 core_reg_sect type to gdb_byte *.
10951 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
10952 * cris-tdep.c (fetch_core_registers): Likewise.
10953 * corelow.c (core_target::get_core_register_section): Change
10954 type of `contents` to gdb::byte_vector.
10955
9a6d629c
AB
109562020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
10957
10958 * tui/tui-wingeneral.c (box_win): Position the title in the center
10959 of the border.
10960
d8b2f9e3
SM
109612020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
10962
10963 * corelow.c (core_target::get_core_register_section): Use
10964 std::vector instead of alloca.
10965
bb564c58
SM
109662020-01-13 Simon Marchi <simon.marchi@efficios.com>
10967
10968 * warning.m4: Add -Wmissing-declarations to build_warnings.
10969 * configure: Re-generate.
10970
6b366111
SM
109712020-01-13 Simon Marchi <simon.marchi@efficios.com>
10972
10973 * python/python.c (init__gdb_module): Add declaration.
10974
6c265988
SM
109752020-01-13 Simon Marchi <simon.marchi@efficios.com>
10976
10977 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
10978 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
10979 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
10980 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
10981 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
10982 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
10983 * ada-exp.y (_initialize_ada_exp): Add declaration.
10984 * ada-lang.c (_initialize_ada_language): Add declaration.
10985 * ada-tasks.c (_initialize_tasks): Add declaration.
10986 * agent.c (_initialize_agent): Add declaration.
10987 * aix-thread.c (_initialize_aix_thread): Add declaration.
10988 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
10989 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
10990 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
10991 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
10992 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
10993 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
10994 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
10995 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
10996 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
10997 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
10998 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
10999 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
11000 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
11001 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
11002 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
11003 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
11004 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
11005 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
11006 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
11007 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
11008 * annotate.c (_initialize_annotate): Add declaration.
11009 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
11010 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
11011 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
11012 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
11013 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
11014 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
11015 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
11016 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
11017 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
11018 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
11019 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
11020 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
11021 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
11022 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
11023 * auto-load.c (_initialize_auto_load): Add declaration.
11024 * auxv.c (_initialize_auxv): Add declaration.
11025 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
11026 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
11027 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
11028 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
11029 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
11030 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
11031 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
11032 * breakpoint.c (_initialize_breakpoint): Add declaration.
11033 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
11034 * btrace.c (_initialize_btrace): Add declaration.
11035 * charset.c (_initialize_charset): Add declaration.
11036 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
11037 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
11038 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
11039 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
11040 * cli/cli-script.c (_initialize_cli_script): Add declaration.
11041 * cli/cli-style.c (_initialize_cli_style): Add declaration.
11042 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
11043 * coffread.c (_initialize_coffread): Add declaration.
11044 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
11045 * compile/compile.c (_initialize_compile): Add declaration.
11046 * complaints.c (_initialize_complaints): Add declaration.
11047 * completer.c (_initialize_completer): Add declaration.
11048 * copying.c (_initialize_copying): Add declaration.
11049 * corefile.c (_initialize_core): Add declaration.
11050 * corelow.c (_initialize_corelow): Add declaration.
11051 * cp-abi.c (_initialize_cp_abi): Add declaration.
11052 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
11053 * cp-support.c (_initialize_cp_support): Add declaration.
11054 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
11055 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
11056 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
11057 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
11058 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
11059 * ctfread.c (_initialize_ctfread): Add declaration.
11060 * d-lang.c (_initialize_d_language): Add declaration.
11061 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
11062 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
11063 * dbxread.c (_initialize_dbxread): Add declaration.
11064 * dcache.c (_initialize_dcache): Add declaration.
11065 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
11066 * disasm.c (_initialize_disasm): Add declaration.
11067 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
11068 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
11069 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
11070 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
11071 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
11072 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
11073 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
11074 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
11075 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
11076 * elfread.c (_initialize_elfread): Add declaration.
11077 * exec.c (_initialize_exec): Add declaration.
11078 * extension.c (_initialize_extension): Add declaration.
11079 * f-lang.c (_initialize_f_language): Add declaration.
11080 * f-valprint.c (_initialize_f_valprint): Add declaration.
11081 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
11082 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
11083 * filesystem.c (_initialize_filesystem): Add declaration.
11084 * findcmd.c (_initialize_mem_search): Add declaration.
11085 * findvar.c (_initialize_findvar): Add declaration.
11086 * fork-child.c (_initialize_fork_child): Add declaration.
11087 * frame-base.c (_initialize_frame_base): Add declaration.
11088 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
11089 * frame.c (_initialize_frame): Add declaration.
11090 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
11091 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
11092 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
11093 * gcore.c (_initialize_gcore): Add declaration.
11094 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
11095 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
11096 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
11097 * gdbarch.c (_initialize_gdbarch): Add declaration.
11098 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
11099 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
11100 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
11101 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
11102 * go-lang.c (_initialize_go_language): Add declaration.
11103 * go32-nat.c (_initialize_go32_nat): Add declaration.
11104 * guile/guile.c (_initialize_guile): Add declaration.
11105 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
11106 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
11107 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
11108 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
11109 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
11110 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
11111 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
11112 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
11113 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
11114 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
11115 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
11116 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
11117 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
11118 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
11119 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
11120 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
11121 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
11122 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
11123 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
11124 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
11125 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
11126 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
11127 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
11128 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
11129 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
11130 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
11131 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
11132 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
11133 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
11134 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
11135 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
11136 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
11137 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
11138 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
11139 * infcall.c (_initialize_infcall): Add declaration.
11140 * infcmd.c (_initialize_infcmd): Add declaration.
11141 * inflow.c (_initialize_inflow): Add declaration.
11142 * infrun.c (_initialize_infrun): Add declaration.
11143 * interps.c (_initialize_interpreter): Add declaration.
11144 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
11145 * jit.c (_initialize_jit): Add declaration.
11146 * language.c (_initialize_language): Add declaration.
11147 * linux-fork.c (_initialize_linux_fork): Add declaration.
11148 * linux-nat.c (_initialize_linux_nat): Add declaration.
11149 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
11150 * linux-thread-db.c (_initialize_thread_db): Add declaration.
11151 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
11152 * m2-lang.c (_initialize_m2_language): Add declaration.
11153 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
11154 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
11155 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
11156 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
11157 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
11158 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
11159 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
11160 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
11161 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
11162 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
11163 * machoread.c (_initialize_machoread): Add declaration.
11164 * macrocmd.c (_initialize_macrocmd): Add declaration.
11165 * macroscope.c (_initialize_macroscope): Add declaration.
11166 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
11167 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
11168 * maint.c (_initialize_maint_cmds): Add declaration.
11169 * mdebugread.c (_initialize_mdebugread): Add declaration.
11170 * memattr.c (_initialize_mem): Add declaration.
11171 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
11172 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
11173 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
11174 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
11175 * mi/mi-main.c (_initialize_mi_main): Add declaration.
11176 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
11177 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
11178 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
11179 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
11180 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
11181 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
11182 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
11183 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
11184 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
11185 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
11186 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
11187 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
11188 * mipsread.c (_initialize_mipsread): Add declaration.
11189 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
11190 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
11191 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
11192 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
11193 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
11194 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
11195 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
11196 * nto-procfs.c (_initialize_procfs): Add declaration.
11197 * objc-lang.c (_initialize_objc_language): Add declaration.
11198 * observable.c (_initialize_observer): Add declaration.
11199 * opencl-lang.c (_initialize_opencl_language): Add declaration.
11200 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
11201 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
11202 * osabi.c (_initialize_gdb_osabi): Add declaration.
11203 * osdata.c (_initialize_osdata): Add declaration.
11204 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
11205 * parse.c (_initialize_parse): Add declaration.
11206 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
11207 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
11208 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
11209 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
11210 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
11211 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
11212 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
11213 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
11214 * printcmd.c (_initialize_printcmd): Add declaration.
11215 * probe.c (_initialize_probe): Add declaration.
11216 * proc-api.c (_initialize_proc_api): Add declaration.
11217 * proc-events.c (_initialize_proc_events): Add declaration.
11218 * proc-service.c (_initialize_proc_service): Add declaration.
11219 * procfs.c (_initialize_procfs): Add declaration.
11220 * producer.c (_initialize_producer): Add declaration.
11221 * psymtab.c (_initialize_psymtab): Add declaration.
11222 * python/python.c (_initialize_python): Add declaration.
11223 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
11224 * record-btrace.c (_initialize_record_btrace): Add declaration.
11225 * record-full.c (_initialize_record_full): Add declaration.
11226 * record.c (_initialize_record): Add declaration.
11227 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
11228 * regcache.c (_initialize_regcache): Add declaration.
11229 * reggroups.c (_initialize_reggroup): Add declaration.
11230 * remote-notif.c (_initialize_notif): Add declaration.
11231 * remote-sim.c (_initialize_remote_sim): Add declaration.
11232 * remote.c (_initialize_remote): Add declaration.
11233 * reverse.c (_initialize_reverse): Add declaration.
11234 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
11235 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
11236 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
11237 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
11238 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
11239 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
11240 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
11241 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
11242 Add declaration.
11243 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
11244 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
11245 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
11246 * rust-exp.y (_initialize_rust_exp): Add declaration.
11247 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
11248 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
11249 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
11250 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
11251 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
11252 * score-tdep.c (_initialize_score_tdep): Add declaration.
11253 * ser-go32.c (_initialize_ser_dos): Add declaration.
11254 * ser-mingw.c (_initialize_ser_windows): Add declaration.
11255 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
11256 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
11257 * ser-uds.c (_initialize_ser_socket): Add declaration.
11258 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
11259 * serial.c (_initialize_serial): Add declaration.
11260 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
11261 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
11262 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
11263 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
11264 * skip.c (_initialize_step_skip): Add declaration.
11265 * sol-thread.c (_initialize_sol_thread): Add declaration.
11266 * solib-aix.c (_initialize_solib_aix): Add declaration.
11267 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
11268 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
11269 * solib-frv.c (_initialize_frv_solib): Add declaration.
11270 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
11271 * solib-target.c (_initialize_solib_target): Add declaration.
11272 * solib.c (_initialize_solib): Add declaration.
11273 * source-cache.c (_initialize_source_cache): Add declaration.
11274 * source.c (_initialize_source): Add declaration.
11275 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
11276 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
11277 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
11278 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
11279 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
11280 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
11281 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
11282 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
11283 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
11284 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
11285 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
11286 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
11287 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
11288 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
11289 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
11290 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
11291 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
11292 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
11293 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
11294 * stabsread.c (_initialize_stabsread): Add declaration.
11295 * stack.c (_initialize_stack): Add declaration.
11296 * stap-probe.c (_initialize_stap_probe): Add declaration.
11297 * std-regs.c (_initialize_frame_reg): Add declaration.
11298 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
11299 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
11300 * symfile.c (_initialize_symfile): Add declaration.
11301 * symmisc.c (_initialize_symmisc): Add declaration.
11302 * symtab.c (_initialize_symtab): Add declaration.
11303 * target.c (_initialize_target): Add declaration.
11304 * target-connection.c (_initialize_target_connection): Add
11305 declaration.
11306 * target-dcache.c (_initialize_target_dcache): Add declaration.
11307 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
11308 * thread.c (_initialize_thread): Add declaration.
11309 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
11310 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
11311 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
11312 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
11313 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
11314 * tracectf.c (_initialize_ctf): Add declaration.
11315 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
11316 * tracefile.c (_initialize_tracefile): Add declaration.
11317 * tracepoint.c (_initialize_tracepoint): Add declaration.
11318 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
11319 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
11320 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
11321 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
11322 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
11323 * tui/tui-win.c (_initialize_tui_win): Add declaration.
11324 * tui/tui.c (_initialize_tui): Add declaration.
11325 * typeprint.c (_initialize_typeprint): Add declaration.
11326 * ui-style.c (_initialize_ui_style): Add declaration.
11327 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
11328 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
11329 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
11330 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
11331 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
11332 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
11333 * unittests/filtered_iterator-selftests.c
11334 (_initialize_filtered_iterator_selftests): Add declaration.
11335 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
11336 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
11337 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
11338 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
11339 * unittests/main-thread-selftests.c
11340 (_initialize_main_thread_selftests): Add declaration.
11341 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
11342 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
11343 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
11344 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
11345 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
11346 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
11347 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
11348 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
11349 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
11350 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
11351 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
11352 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
11353 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
11354 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
11355 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
11356 declaration.
11357 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
11358 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
11359 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
11360 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
11361 * user-regs.c (_initialize_user_regs): Add declaration.
11362 * utils.c (_initialize_utils): Add declaration.
11363 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
11364 * valops.c (_initialize_valops): Add declaration.
11365 * valprint.c (_initialize_valprint): Add declaration.
11366 * value.c (_initialize_values): Add declaration.
11367 * varobj.c (_initialize_varobj): Add declaration.
11368 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
11369 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
11370 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
11371 * windows-nat.c (_initialize_windows_nat): Add declaration.
11372 (_initialize_check_for_gdb_ini): Add declaration.
11373 (_initialize_loadable): Add declaration.
11374 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
11375 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
11376 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
11377 * xcoffread.c (_initialize_xcoffread): Add declaration.
11378 * xml-support.c (_initialize_xml_support): Add declaration.
11379 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
11380 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
11381 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
11382 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
11383
e2de1eec
SM
113842020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
11385
11386 * regformats/regdat.sh: Generate declaration for init function.
11387
e0037b4c
SM
113882020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
11389
11390 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
11391 up.
11392 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
11393 close_one_inferior>: New methods.
11394 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
11395 pass down target to find_inferior_pid.
11396 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
11397 Pass down target to find_inferior_ptid.
11398 (gdbsim_target::create_inferior): Pass down target to
11399 add_thread_silent.
11400 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
11401 target down to find_inferior_ptid and switch_to_thread.
11402 (gdbsim_target::close): Update to call close_one_inferior.
11403 (struct resume_data): Remove.
11404 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
11405 directly, rather than through a void pointer.
11406 (gdbsim_target::resume): Update to call resume_one_inferior.
11407
58920b5b
SM
114082020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
11409
11410 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
11411
4ec89149
PA
114122020-01-12 Pedro Alves <palves@redhat.com>
11413
11414 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
11415 directly for the current inferior instead of
11416 discard_all_inferiors.
11417 (discard_all_inferiors): Delete.
11418
7c392d1d
TT
114192020-01-11 Tom Tromey <tom@tromey.com>
11420
11421 * tui/tui-wingeneral.c (box_win): Check cli_styling.
11422 * tui/tui-winsource.c (tui_source_window_base::refill): Use
11423 deprecated_safe_get_selected_frame.
11424
d9ebdab7
TBA
114252020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11426
11427 * inferior.c (print_inferior): Switch inferior before printing it.
11428
f3c469b9
PA
114292020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
11430 Pedro Alves <palves@redhat.com>
11431
11432 * progspace-and-thread.c (switch_to_program_space_and_thread):
11433 Assert there's an inferior for PSPACE. Use
11434 switch_to_inferior_no_thread to switch the inferior too.
11435 * progspace.c (program_space::~program_space): Call
11436 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
11437 (program_space::free_all_objfiles): Don't call clear_symtab_users
11438 here.
11439 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
11440
65c574f6
PA
114412020-01-10 Pedro Alves <palves@redhat.com>
11442
11443 * NEWS: Mention multi-target debugging, "info connections", and
11444 "add-inferior -no-connection".
11445
2f4fcf00
PA
114462020-01-10 Pedro Alves <palves@redhat.com>
11447
11448 * infrun.c: Include "target-connection.h".
11449 (check_multi_target_resumption): New.
11450 (proceed): Call it.
11451 * target-connection.c (make_target_connection_string): Make
11452 extern.
11453 * target-connection.h (make_target_connection_string): Declare.
11454
121b3efd
PA
114552020-01-10 Pedro Alves <palves@redhat.com>
11456
11457 * Makefile.in (COMMON_SFILES): Add target-connection.c.
11458 * inferior.c (uiout_field_connection): New function.
11459 (print_inferior): Add new "connection-id" column.
11460 (add_inferior_command): Show connection number/string of added
11461 inferior.
11462 * process-stratum-target.h
11463 (process_stratum_target::connection_string): New virtual method.
11464 (process_stratum_target::connection_number): New field.
11465 * remote.c (remote_target::connection_string): New override.
11466 * target-connection.c: New file.
11467 * target-connection.h: New file.
11468 * target.c (decref_target): Remove process_stratum targets from
11469 the connection list.
11470 (target_stack::push): Add process_stratum targets to the
11471 connection list.
11472
4f837581
PA
114732020-01-10 Pedro Alves <palves@redhat.com>
11474
11475 Revert:
11476 2016-04-12 Pedro Alves <palves@redhat.com>
11477 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
11478 Remove references to name.
11479 * serial.h (struct serial) <name>: Delete.
11480
f4ec508e
PA
114812020-01-10 Pedro Alves <palves@redhat.com>
11482
11483 * gdbarch-selftests.c (register_to_value_test): Remove "target
11484 already pushed" check.
11485
5b6d1e4f
PA
114862020-01-10 Pedro Alves <palves@redhat.com>
11487 John Baldwin <jhb@FreeBSD.org>
11488
11489 * aarch64-linux-nat.c
11490 (aarch64_linux_nat_target::thread_architecture): Adjust.
11491 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
11492 (task_command_1): Likewise.
11493 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
11494 (aix_thread_target::wait, aix_thread_target::fetch_registers)
11495 (aix_thread_target::store_registers)
11496 (aix_thread_target::thread_alive): Adjust.
11497 * amd64-fbsd-tdep.c: Include "inferior.h".
11498 (amd64fbsd_get_thread_local_address): Pass down target.
11499 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
11500 thread's gdbarch instead of target_gdbarch.
11501 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
11502 get_last_target_status.
11503 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
11504 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
11505 inferiors.
11506 (update_inserted_breakpoint_locations): Skip if inferiors with no
11507 execution.
11508 (update_global_location_list): When handling moribund locations,
11509 find representative inferior for location's pspace, and use thread
11510 count of its process_stratum target.
11511 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
11512 * bsd-uthread.c (bsd_uthread_target::wait): Use
11513 as_process_stratum_target and adjust thread_change_ptid and
11514 add_thread calls.
11515 (bsd_uthread_target::update_thread_list): Use
11516 as_process_stratum_target and adjust find_thread_ptid,
11517 thread_change_ptid and add_thread calls.
11518 * btrace.c (maint_btrace_packet_history_cmd): Adjust
11519 find_thread_ptid call.
11520 * corelow.c (add_to_thread_list): Adjust add_thread call.
11521 (core_target_open): Adjust add_thread_silent and thread_count
11522 calls.
11523 (core_target::pid_to_str): Adjust find_inferior_ptid call.
11524 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
11525 * event-top.c (async_disconnect): Pop targets from all inferiors.
11526 * exec.c (add_target_sections): Push exec target on all inferiors
11527 sharing the program space.
11528 (remove_target_sections): Remove the exec target from all
11529 inferiors sharing the program space.
11530 (exec_on_vfork): New.
11531 * exec.h (exec_on_vfork): Declare.
11532 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
11533 Pass it down.
11534 (fbsd_nat_target::update_thread_list): Adjust.
11535 (fbsd_nat_target::resume): Adjust.
11536 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
11537 down.
11538 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
11539 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
11540 get_thread_arch_regcache call.
11541 * fork-child.c (gdb_startup_inferior): Pass target down to
11542 startup_inferior and set_executing.
11543 * gdbthread.h (struct process_stratum_target): Forward declare.
11544 (add_thread, add_thread_silent, add_thread_with_info)
11545 (in_thread_list): Add process_stratum_target parameter.
11546 (find_thread_ptid(inferior*, ptid_t)): New overload.
11547 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
11548 parameter.
11549 (all_threads()): Delete overload.
11550 (all_threads, all_non_exited_threads): Add process_stratum_target
11551 parameter.
11552 (all_threads_safe): Use brace initialization.
11553 (thread_count): Add process_stratum_target parameter.
11554 (set_resumed, set_running, set_stop_requested, set_executing)
11555 (threads_are_executing, finish_thread_state): Add
11556 process_stratum_target parameter.
11557 (switch_to_thread): Use is_current_thread.
11558 * i386-fbsd-tdep.c: Include "inferior.h".
11559 (i386fbsd_get_thread_local_address): Pass down target.
11560 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
11561 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
11562 have_inferiors check.
11563 * inf-ptrace.c (inf_ptrace_target::create_inferior)
11564 (inf_ptrace_target::attach): Adjust.
11565 * infcall.c (run_inferior_call): Adjust.
11566 * infcmd.c (run_command_1): Pass target to
11567 scoped_finish_thread_state.
11568 (proceed_thread_callback): Skip inferiors with no execution.
11569 (continue_command): Rename 'all_threads' local to avoid hiding
11570 'all_threads' function. Adjust get_last_target_status call.
11571 (prepare_one_step): Adjust set_running call.
11572 (signal_command): Use user_visible_resume_target. Compare thread
11573 pointers instead of inferior_ptid.
11574 (info_program_command): Adjust to pass down target.
11575 (attach_command): Mark target's 'thread_executing' flag.
11576 (stop_current_target_threads_ns): New, factored out from ...
11577 (interrupt_target_1): ... this. Switch inferior before making
11578 target calls.
11579 * inferior-iter.h
11580 (struct all_inferiors_iterator, struct all_inferiors_range)
11581 (struct all_inferiors_safe_range)
11582 (struct all_non_exited_inferiors_range): Filter on
11583 process_stratum_target too. Remove explicit.
11584 * inferior.c (inferior::inferior): Push dummy target on target
11585 stack.
11586 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
11587 Add process_stratum_target parameter, and pass it down.
11588 (have_live_inferiors): Adjust.
11589 (switch_to_inferior_and_push_target): New.
11590 (add_inferior_command, clone_inferior_command): Handle
11591 "-no-connection" parameter. Use
11592 switch_to_inferior_and_push_target.
11593 (_initialize_inferior): Mention "-no-connection" option in
11594 the help of "add-inferior" and "clone-inferior" commands.
11595 * inferior.h: Include "process-stratum-target.h".
11596 (interrupt_target_1): Use bool.
11597 (struct inferior) <push_target, unpush_target, target_is_pushed,
11598 find_target_beneath, top_target, process_target, target_at,
11599 m_stack>: New.
11600 (discard_all_inferiors): Delete.
11601 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
11602 (all_inferiors, all_non_exited_inferiors): Add
11603 process_stratum_target parameter.
11604 * infrun.c: Include "gdb_select.h" and <unordered_map>.
11605 (target_last_proc_target): New global.
11606 (follow_fork_inferior): Push target on new inferior. Pass target
11607 to add_thread_silent. Call exec_on_vfork. Handle target's
11608 reference count.
11609 (follow_fork): Adjust get_last_target_status call. Also consider
11610 target.
11611 (follow_exec): Push target on new inferior.
11612 (struct execution_control_state) <target>: New field.
11613 (user_visible_resume_target): New.
11614 (do_target_resume): Call target_async.
11615 (resume_1): Set target's threads_executing flag. Consider resume
11616 target.
11617 (commit_resume_all_targets): New.
11618 (proceed): Also consider resume target. Skip threads of inferiors
11619 with no execution. Commit resumtion in all targets.
11620 (start_remote): Pass current inferior to wait_for_inferior.
11621 (infrun_thread_stop_requested): Consider target as well. Pass
11622 thread_info pointer to clear_inline_frame_state instead of ptid.
11623 (infrun_thread_thread_exit): Consider target as well.
11624 (random_pending_event_thread): New inferior parameter. Use it.
11625 (do_target_wait): Rename to ...
11626 (do_target_wait_1): ... this. Add inferior parameter, and pass it
11627 down.
11628 (threads_are_resumed_pending_p, do_target_wait): New.
11629 (prepare_for_detach): Adjust calls.
11630 (wait_for_inferior): New inferior parameter. Handle it. Use
11631 do_target_wait_1 instead of do_target_wait.
11632 (fetch_inferior_event): Adjust. Switch to representative
11633 inferior. Pass target down.
11634 (set_last_target_status): Add process_stratum_target parameter.
11635 Save target in global.
11636 (get_last_target_status): Add process_stratum_target parameter and
11637 handle it.
11638 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
11639 (context_switch): Check inferior_ptid == null_ptid before calling
11640 inferior_thread().
11641 (get_inferior_stop_soon): Pass down target.
11642 (wait_one): Rename to ...
11643 (poll_one_curr_target): ... this.
11644 (struct wait_one_event): New.
11645 (wait_one): New.
11646 (stop_all_threads): Adjust.
11647 (handle_no_resumed, handle_inferior_event): Adjust to consider the
11648 event's target.
11649 (switch_back_to_stepped_thread): Also consider target.
11650 (print_stop_event): Update.
11651 (normal_stop): Update. Also consider the resume target.
11652 * infrun.h (wait_for_inferior): Remove declaration.
11653 (user_visible_resume_target): New declaration.
11654 (get_last_target_status, set_last_target_status): New
11655 process_stratum_target parameter.
11656 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
11657 process_stratum_target parameter, and use it.
11658 (clear_inline_frame_state (thread_info*)): New.
11659 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
11660 process_stratum_target parameter.
11661 (clear_inline_frame_state (thread_info*)): Declare.
11662 * linux-fork.c (delete_checkpoint_command): Pass target down to
11663 find_thread_ptid.
11664 (checkpoint_command): Adjust.
11665 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
11666 instead of just tweaking inferior_ptid.
11667 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
11668 (exit_lwp): Pass target down to find_thread_ptid.
11669 (attach_proc_task_lwp_callback): Pass target down to
11670 add_thread/set_running/set_executing.
11671 (linux_nat_target::attach): Pass target down to
11672 thread_change_ptid.
11673 (get_detach_signal): Pass target down to find_thread_ptid.
11674 Consider last target status's target.
11675 (linux_resume_one_lwp_throw, resume_lwp)
11676 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
11677 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
11678 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
11679 (linux_nat_target::async_wait_fd): New.
11680 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
11681 target down.
11682 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
11683 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
11684 * linux-thread-db.c (struct thread_db_info::process_target): New
11685 field.
11686 (add_thread_db_info): Save target.
11687 (get_thread_db_info): New process_stratum_target parameter. Also
11688 match target.
11689 (delete_thread_db_info): New process_stratum_target parameter.
11690 Also match target.
11691 (thread_from_lwp): Adjust to pass down target.
11692 (thread_db_notice_clone): Pass down target.
11693 (check_thread_db_callback): Pass down target.
11694 (try_thread_db_load_1): Always push the thread_db target.
11695 (try_thread_db_load, record_thread): Pass target down.
11696 (thread_db_target::detach): Pass target down. Always unpush the
11697 thread_db target.
11698 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
11699 target down. Always unpush the thread_db target.
11700 (find_new_threads_callback, thread_db_find_new_threads_2)
11701 (thread_db_target::update_thread_list): Pass target down.
11702 (thread_db_target::pid_to_str): Pass current inferior down.
11703 (thread_db_target::get_thread_local_address): Pass target down.
11704 (thread_db_target::resume, maintenance_check_libthread_db): Pass
11705 target down.
11706 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
11707 * procfs.c (procfs_target::procfs_init_inferior): Declare.
11708 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
11709 (procfs_init_inferior): Rename to ...
11710 (procfs_target::procfs_init_inferior): ... this and adjust.
11711 (procfs_target::create_inferior, procfs_notice_thread)
11712 (procfs_do_thread_registers): Adjust.
11713 * ppc-fbsd-tdep.c: Include "inferior.h".
11714 (ppcfbsd_get_thread_local_address): Pass down target.
11715 * proc-service.c (ps_xfer_memory): Switch current inferior and
11716 program space as well.
11717 (get_ps_regcache): Pass target down.
11718 * process-stratum-target.c
11719 (process_stratum_target::thread_address_space)
11720 (process_stratum_target::thread_architecture): Pass target down.
11721 * process-stratum-target.h
11722 (process_stratum_target::threads_executing): New field.
11723 (as_process_stratum_target): New.
11724 * ravenscar-thread.c
11725 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
11726 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
11727 down.
11728 * record-btrace.c (record_btrace_target::info_record): Adjust.
11729 (record_btrace_target::record_method)
11730 (record_btrace_target::record_is_replaying)
11731 (record_btrace_target::fetch_registers)
11732 (get_thread_current_frame_id, record_btrace_target::resume)
11733 (record_btrace_target::wait, record_btrace_target::stop): Pass
11734 target down.
11735 * record-full.c (record_full_wait_1): Switch to event thread.
11736 Pass target down.
11737 * regcache.c (regcache::regcache)
11738 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
11739 process_stratum_target parameter and handle it.
11740 (current_thread_target): New global.
11741 (get_thread_regcache): Add process_stratum_target parameter and
11742 handle it. Switch inferior before calling target method.
11743 (get_thread_regcache): Pass target down.
11744 (get_thread_regcache_for_ptid): Pass target down.
11745 (registers_changed_ptid): Add process_stratum_target parameter and
11746 handle it.
11747 (registers_changed_thread, registers_changed): Pass target down.
11748 (test_get_thread_arch_aspace_regcache): New.
11749 (current_regcache_test): Define a couple local test_target_ops
11750 instances and use them for testing.
11751 (readwrite_regcache): Pass process_stratum_target parameter.
11752 (cooked_read_test, cooked_write_test): Pass mock_target down.
11753 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
11754 (get_thread_arch_aspace_regcache): Add process_stratum_target
11755 parameter.
11756 (regcache::target): New method.
11757 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
11758 (regcache::registers_changed_ptid): Add process_stratum_target
11759 parameter.
11760 (regcache::m_target): New field.
11761 (registers_changed_ptid): Add process_stratum_target parameter.
11762 * remote.c (remote_state::supports_vCont_probed): New field.
11763 (remote_target::async_wait_fd): New method.
11764 (remote_unpush_and_throw): Add remote_target parameter.
11765 (get_current_remote_target): Adjust.
11766 (remote_target::remote_add_inferior): Push target.
11767 (remote_target::remote_add_thread)
11768 (remote_target::remote_notice_new_inferior)
11769 (get_remote_thread_info): Pass target down.
11770 (remote_target::update_thread_list): Skip threads of inferiors
11771 bound to other targets. (remote_target::close): Don't discard
11772 inferiors. (remote_target::add_current_inferior_and_thread)
11773 (remote_target::process_initial_stop_replies)
11774 (remote_target::start_remote)
11775 (remote_target::remote_serial_quit_handler): Pass down target.
11776 (remote_target::remote_unpush_target): New remote_target
11777 parameter. Unpush the target from all inferiors.
11778 (remote_target::remote_unpush_and_throw): New remote_target
11779 parameter. Pass it down.
11780 (remote_target::open_1): Check whether the current inferior has
11781 execution instead of checking whether any inferior is live. Pass
11782 target down.
11783 (remote_target::remote_detach_1): Pass down target. Use
11784 remote_unpush_target.
11785 (extended_remote_target::attach): Pass down target.
11786 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
11787 (remote_target::append_resumption): Pass down target.
11788 (remote_target::append_pending_thread_resumptions)
11789 (remote_target::remote_resume_with_hc, remote_target::resume)
11790 (remote_target::commit_resume): Pass down target.
11791 (remote_target::remote_stop_ns): Check supports_vCont_probed.
11792 (remote_target::interrupt_query)
11793 (remote_target::remove_new_fork_children)
11794 (remote_target::check_pending_events_prevent_wildcard_vcont)
11795 (remote_target::remote_parse_stop_reply)
11796 (remote_target::process_stop_reply): Pass down target.
11797 (first_remote_resumed_thread): New remote_target parameter. Pass
11798 it down.
11799 (remote_target::wait_as): Pass down target.
11800 (unpush_and_perror): New remote_target parameter. Pass it down.
11801 (remote_target::readchar, remote_target::remote_serial_write)
11802 (remote_target::getpkt_or_notif_sane_1)
11803 (remote_target::kill_new_fork_children, remote_target::kill): Pass
11804 down target.
11805 (remote_target::mourn_inferior): Pass down target. Use
11806 remote_unpush_target.
11807 (remote_target::core_of_thread)
11808 (remote_target::remote_btrace_maybe_reopen): Pass down target.
11809 (remote_target::pid_to_exec_file)
11810 (remote_target::thread_handle_to_thread_info): Pass down target.
11811 (remote_target::async_wait_fd): New.
11812 * riscv-fbsd-tdep.c: Include "inferior.h".
11813 (riscv_fbsd_get_thread_local_address): Pass down target.
11814 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
11815 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
11816 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
11817 Adjust.
11818 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
11819 * solib-svr4.c (enable_break): Pass down target.
11820 * spu-multiarch.c (parse_spufs_run): Pass down target.
11821 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
11822 * target-delegates.c: Regenerate.
11823 * target.c (g_target_stack): Delete.
11824 (current_top_target): Return the current inferior's top target.
11825 (target_has_execution_1): Refer to the passed-in inferior's top
11826 target.
11827 (target_supports_terminal_ours): Check whether the initial
11828 inferior was already created.
11829 (decref_target): New.
11830 (target_stack::push): Incref/decref the target.
11831 (push_target, push_target, unpush_target): Adjust.
11832 (target_stack::unpush): Defref target.
11833 (target_is_pushed): Return bool. Adjust to refer to the current
11834 inferior's target stack.
11835 (dispose_inferior): Delete, and inline parts ...
11836 (target_preopen): ... here. Only dispose of the current inferior.
11837 (target_detach): Hold strong target reference while detaching.
11838 Pass target down.
11839 (target_thread_name): Add assertion.
11840 (target_resume): Pass down target.
11841 (target_ops::beneath, find_target_at): Adjust to refer to the
11842 current inferior's target stack.
11843 (get_dummy_target): New.
11844 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
11845 has a thread running.
11846 (initialize_targets): Rename to ...
11847 (_initialize_target): ... this.
11848 * target.h: Include "gdbsupport/refcounted-object.h".
11849 (struct target_ops): Inherit refcounted_object.
11850 (target_ops::shortname, target_ops::longname): Make const.
11851 (target_ops::async_wait_fd): New method.
11852 (decref_target): Declare.
11853 (struct target_ops_ref_policy): New.
11854 (target_ops_ref): New typedef.
11855 (get_dummy_target): Declare function.
11856 (target_is_pushed): Return bool.
11857 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
11858 (all_matching_threads_iterator::all_matching_threads_iterator):
11859 Handle filter target.
11860 * thread-iter.h (struct all_matching_threads_iterator, struct
11861 all_matching_threads_range, class all_non_exited_threads_range):
11862 Filter by target too. Remove explicit.
11863 * thread.c (threads_executing): Delete.
11864 (inferior_thread): Pass down current inferior.
11865 (clear_thread_inferior_resources): Pass down thread pointer
11866 instead of ptid_t.
11867 (add_thread_silent, add_thread_with_info, add_thread): Add
11868 process_stratum_target parameter. Use it for thread and inferior
11869 searches.
11870 (is_current_thread): New.
11871 (thread_info::deletable): Use it.
11872 (find_thread_ptid, thread_count, in_thread_list)
11873 (thread_change_ptid, set_resumed, set_running): New
11874 process_stratum_target parameter. Pass it down.
11875 (set_executing): New process_stratum_target parameter. Pass it
11876 down. Adjust reference to 'threads_executing'.
11877 (threads_are_executing): New process_stratum_target parameter.
11878 Adjust reference to 'threads_executing'.
11879 (set_stop_requested, finish_thread_state): New
11880 process_stratum_target parameter. Pass it down.
11881 (switch_to_thread): Also match inferior.
11882 (switch_to_thread): New process_stratum_target parameter. Pass it
11883 down.
11884 (update_threads_executing): Reimplement.
11885 * top.c (quit_force): Pop targets from all inferior.
11886 (gdb_init): Don't call initialize_targets.
11887 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
11888 Declare.
11889 (windows_add_thread, windows_delete_thread): Adjust.
11890 (get_windows_debug_event): Rename to ...
11891 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
11892 * tracefile-tfile.c (tfile_target_open): Pass down target.
11893 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
11894 Forward declare.
11895 (switch_to_thread): Add process_stratum_target parameter.
11896 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
11897 parameter. Use it.
11898 (mi_on_resume): Pass target down.
11899 * nat/fork-inferior.c (startup_inferior): Add
11900 process_stratum_target parameter. Pass it down.
11901 * nat/fork-inferior.h (startup_inferior): Add
11902 process_stratum_target parameter.
11903 * python/py-threadevent.c (py_get_event_thread): Pass target down.
11904
75c6c844
PA
119052020-01-10 Pedro Alves <palves@redhat.com>
11906
11907 * remote.c (remote_target::start_remote): Don't set inferior_ptid
11908 directly. Instead find the first thread in the thread list and
11909 use switch_to_thread.
11910
78f2c40a
PA
119112020-01-10 Pedro Alves <palves@redhat.com>
11912
11913 * remote.c (remote_target::remote_add_inferior): Don't bind a
11914 process to the current inferior if the current inferior is already
11915 bound to a process.
11916
e7af6c70
TBA
119172020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11918 Pedro Alves <palves@redhat.com>
11919
11920 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
11921 If no process is specified, return null_ptid instead of
11922 inferior_ptid.
11923 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
11924 TARGET_WAITKIND_SIGNALLED with no pid.
11925
31ba933e
PA
119262020-01-10 Pedro Alves <palves@redhat.com>
11927
11928 * remote.c (first_remote_resumed_thread): New.
11929 (remote_target::wait_as): Use it as default event_ptid instead of
11930 inferior_ptid.
11931
735fc2ca
PA
119322020-01-10 Pedro Alves <palves@redhat.com>
11933
11934 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
11935
c17e02e1
PA
119362020-01-10 Pedro Alves <palves@redhat.com>
11937
11938 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
11939 not -1.
11940
ab1ddbcf
PA
119412020-01-10 Pedro Alves <palves@redhat.com>
11942
11943 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
11944 ptid to get_last_target_status.
11945 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
11946 ptid to get_last_target_status.
11947 * infcmd.c (continue_command): Don't pass a target_waitstatus to
11948 get_last_target_status.
11949 (info_program_command): Don't pass a target_waitstatus to
11950 get_last_target_status.
11951 * infrun.c (init_wait_for_inferior): Use
11952 nullify_last_target_wait_ptid.
11953 (get_last_target_status): Handle nullptr arguments.
11954 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
11955 (print_stop_event): Don't pass a ptid to get_last_target_status.
11956 (normal_stop): Don't pass a ptid to get_last_target_status.
11957 * infrun.h (get_last_target_status, set_last_target_status): Move
11958 comments here and update.
11959 (nullify_last_target_wait_ptid): Declare.
11960 * linux-fork.c (fork_load_infrun_state): Remove local extern
11961 declaration of nullify_last_target_wait_ptid.
11962 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
11963 to get_last_target_status.
11964
f3f8ece4
PA
119652020-01-10 Pedro Alves <palves@redhat.com>
11966
11967 * gdbthread.h (scoped_restore_current_thread)
11968 <dont_restore, restore, m_dont_restore>: Declare.
11969 * thread.c (thread_alive): Add assertion. Return bool.
11970 (switch_to_thread_if_alive): New.
11971 (prune_threads): Switch inferior/thread.
11972 (print_thread_info_1): Switch thread before calling target methods.
11973 (scoped_restore_current_thread::restore): New, factored out from
11974 ...
11975 (scoped_restore_current_thread::~scoped_restore_current_thread):
11976 ... this.
11977 (scoped_restore_current_thread::scoped_restore_current_thread):
11978 Add assertion.
11979 (thread_apply_all_command, thread_select): Use
11980 switch_to_thread_if_alive.
11981 * infrun.c (proceed, restart_threads, handle_signal_stop)
11982 (switch_back_to_stepped_thread): Switch current thread before
11983 calling target methods.
11984
db2d40f7
PA
119852020-01-10 Pedro Alves <palves@redhat.com>
11986
11987 * inferior.c (switch_to_inferior_no_thread): New function,
11988 factored out from ...
11989 (inferior_command): ... here.
11990 * inferior.h (switch_to_inferior_no_thread): Declare.
11991 * mi/mi-main.c (run_one_inferior): Use
11992 switch_to_inferior_no_thread.
11993
bd420a2d
PA
119942020-01-10 Pedro Alves <palves@redhat.com>
11995
11996 * infcmd.c (kill_command): Remove dead code.
11997
ddf5db90
PA
119982020-01-10 Pedro Alves <palves@redhat.com>
11999
12000 * remote.c (remote_target::mourn_inferior): No longer check
12001 whether the target is running.
12002
5018ce90
PA
120032020-01-10 Pedro Alves <palves@redhat.com>
12004
12005 * corelow.c (core_target::has_execution): Change parameter type to
12006 inferior pointer.
12007 * inferior.c (number_of_live_inferiors): Use
12008 inferior::has_execution instead of target_has_execution_1.
12009 * inferior.h (inferior::has_execution): New.
12010 * linux-thread-db.c (thread_db_target::update_thread_list): Use
12011 inferior::has_execution instead of target_has_execution_1.
12012 * process-stratum-target.c
12013 (process_stratum_target::has_execution): Change parameter type to
12014 inferior pointer. Check the inferior's PID instead of
12015 inferior_ptid.
12016 * process-stratum-target.h
12017 (process_stratum_target::has_execution): Change parameter type to
12018 inferior pointer.
12019 * record-full.c (record_full_core_target::has_execution): Change
12020 parameter type to inferior pointer.
12021 * target.c (target_has_execution_1): Change parameter type to
12022 inferior pointer.
12023 (target_has_execution_current): Adjust.
12024 * target.h (target_ops::has_execution): Change parameter type to
12025 inferior pointer.
12026 (target_has_execution_1): Change parameter type to inferior
12027 pointer. Change return type to bool.
12028 * tracefile.h (tracefile_target::has_execution): Change parameter
12029 type to inferior pointer.
12030
74375d18
PA
120312020-01-10 Pedro Alves <palves@redhat.com>
12032
12033 * exceptions.c (print_flush): Remove current_top_target() check.
12034
acdf84a6
PA
120352020-01-10 Pedro Alves <palves@redhat.com>
12036
12037 * remote.c (show_remote_exec_file): Show the current inferior's
12038 exec-file instead of the command variable's value.
12039
ec506636
PA
120402020-01-10 Pedro Alves <palves@redhat.com>
12041
12042 * record-full.c (record_full_resume_ptid): New global.
12043 (record_full_target::resume): Set it.
12044 (record_full_wait_1): Use record_full_resume_ptid instead of
12045 inferior_ptid.
12046
873657b9
PA
120472020-01-10 Pedro Alves <palves@redhat.com>
12048
12049 * gdbthread.h (scoped_restore_current_thread)
12050 <dont_restore, restore, m_dont_restore>: Declare.
12051 * thread.c (thread_alive): Add assertion. Return bool.
12052 (switch_to_thread_if_alive): New.
12053 (prune_threads): Switch inferior/thread.
12054 (print_thread_info_1): Switch thread before calling target methods.
12055 (scoped_restore_current_thread::restore): New, factored out from
12056 ...
12057 (scoped_restore_current_thread::~scoped_restore_current_thread):
12058 ... this.
12059 (scoped_restore_current_thread::scoped_restore_current_thread):
12060 Add assertion.
12061 (thread_apply_all_command, thread_select): Use
12062 switch_to_thread_if_alive.
12063
7f0ae84c
GB
120642020-01-10 George Barrett <bob@bob131.so>
12065
12066 * stap-probe.c (stap_modify_semaphore): Don't check for null
12067 semaphores.
12068 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
12069 for null semaphores.
12070
f5a7c406
AB
120712020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
12072
12073 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
12074 all source windows, and maintain horizontal scroll status while
12075 doing so.
12076
9ae6bf64
TT
120772020-01-09 Tom Tromey <tom@tromey.com>
12078
12079 PR tui/18932:
12080 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
12081 update_source_window, not print_source_lines.
12082
b2efe70c
AB
120832020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
12084
12085 * tui/tui.c (tui_enable): Register tui hooks after calling
12086 tui_display_main.
12087
5f23a082
CB
120882020-01-09 Christian Biesinger <cbiesinger@google.com>
12089
12090 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
12091
3061113b
SM
120922020-01-08 Simon Marchi <simon.marchi@efficios.com>
12093
12094 * thread.c (print_thread_info_1): Fix indentation.
12095
57d75002
CB
120962020-01-09 Christian Biesinger <cbiesinger@google.com>
12097
12098 * symtab.c (general_symbol_info::compute_and_set_names): Move the
12099 unique_xmalloc_ptr outside the if to always free the demangled name.
12100
6a053cb1
TT
121012020-01-08 Tom Tromey <tromey@adacore.com>
12102
12103 * xcoffread.c (enter_line_range, read_xcoff_symtab)
12104 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
12105 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
12106 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
12107 Remove.
12108 (section_offsets): New typedef.
12109 * symtab.c (fixup_section, get_msymbol_address): Update.
12110 * symmisc.c (dump_msymbols): Update.
12111 * symfile.h (relative_addr_info_to_section_offsets)
12112 (symfile_map_offsets_to_segments): Update.
12113 * symfile.c (build_section_addr_info_from_objfile)
12114 (init_objfile_sect_indices): Update.
12115 (struct place_section_arg): Change type of "offsets".
12116 (place_section): Update.
12117 (relative_addr_info_to_section_offsets): Change type of
12118 "section_offsets". Remove "num_sections" parameter.
12119 (default_symfile_offsets, syms_from_objfile_1)
12120 (set_objfile_default_section_offset): Update.
12121 (reread_symbols): No need to preserve section offsets by hand.
12122 (symfile_map_offsets_to_segments): Change type of "offsets".
12123 * stap-probe.c (relocate_address): Update.
12124 * stabsread.h (process_one_symbol): Update.
12125 * solib-target.c (struct lm_info_target) <offsets>: Change type.
12126 (solib_target_relocate_section_addresses): Update.
12127 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
12128 Update.
12129 * solib-frv.c (frv_relocate_main_executable): Update.
12130 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
12131 * solib-aix.c (solib_aix_get_section_offsets): Change return
12132 type.
12133 (solib_aix_solib_create_inferior_hook): Update.
12134 * remote.c (remote_target::get_offsets): Update.
12135 * psymtab.c (find_pc_sect_psymtab): Update.
12136 * psympriv.h (struct partial_symbol) <address, text_low,
12137 text_high>: Update.
12138 * objfiles.h (obj_section_offset): Update.
12139 (struct objfile) <section_offsets>: Change type.
12140 <num_sections>: Remove.
12141 (objfile_relocate): Update.
12142 * objfiles.c (entry_point_address_query): Update
12143 (relocate_one_symbol): Change type of "section_offsets".
12144 (objfile_relocate1, objfile_relocate1): Change type of
12145 "new_offsets".
12146 (objfile_rebase1): Update.
12147 * mipsread.c (mipscoff_symfile_read): Update.
12148 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
12149 parameter.
12150 * mdebugread.c (parse_symbol): Change type of "section_offsets".
12151 (parse_external, psymtab_to_symtab_1): Update.
12152 * machoread.c (macho_symfile_offsets): Update.
12153 * ia64-tdep.c (ia64_find_unwind_table): Update.
12154 * hppa-tdep.c (read_unwind_info): Update.
12155 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
12156 * dwarf2read.c (create_addrmap_from_index)
12157 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
12158 (process_psymtab_comp_unit_reader, add_partial_symbol)
12159 (add_partial_subprogram, process_full_comp_unit)
12160 (read_file_scope, read_func_scope, read_lexical_block_scope)
12161 (read_call_site_scope, dwarf2_rnglists_process)
12162 (dwarf2_ranges_process, dwarf2_ranges_read)
12163 (dwarf_decode_lines_1, var_decode_location, new_symbol)
12164 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
12165 Update.
12166 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
12167 Update.
12168 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
12169 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
12170 (process_one_symbol): Change type of "section_offsets".
12171 * ctfread.c (get_objfile_text_range): Update.
12172 * coffread.c (coff_symtab_read, enter_linenos)
12173 (process_coff_symbol): Update.
12174 * coff-pe-read.c (add_pe_forwarded_sym): Update.
12175 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
12176
456e800a
TT
121772020-01-08 Tom Tromey <tromey@adacore.com>
12178
12179 * dwarf2read.c (parse_macro_definition): Use std::string.
12180 (parse_macro_definition): Likewise.
12181
6dfa2fc2
TT
121822020-01-08 Tom Tromey <tromey@adacore.com>
12183
12184 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
12185 (ATTR_ALLOC_CHUNK): Remove.
12186
421d1616
TT
121872020-01-08 Tom Tromey <tromey@adacore.com>
12188
12189 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
12190
43816ebc
TT
121912020-01-08 Tom Tromey <tromey@adacore.com>
12192
12193 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
12194 (dwarf2_compute_name, open_dwo_file): Likewise.
12195 (process_enumeration_scope): Use std::vector.
12196 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
12197 (partial_die_info::fixup, dwarf2_start_subfile)
12198 (guess_full_die_structure_name, dwarf2_name): Likewise.
12199 (determine_prefix): Update.
12200 (guess_full_die_structure_name): Make return type const.
12201 (partial_die_full_name): Return unique_xmalloc_ptr.
12202 (DW_FIELD_ALLOC_CHUNK): Remove.
12203
4212d509
TT
122042020-01-07 Tom Tromey <tromey@adacore.com>
12205
12206 PR build/24937:
12207 * stap-probe.c (class stap_static_probe_ops): Add constructor.
12208
06a6207a
JT
122092020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
12210
12211 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
12212
153d79c4
AB
122132020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
12214
12215 * stack.c (print_frame_info): Move disassemble_next_line code
12216 inside source_print block.
12217
66182876
EZ
122182020-01-06 Eli Zaretskii <eliz@gnu.org>
12219
12220 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
12221 gdb/signals.h, as we are now using native signal symbols.
12222
cbfa8581
SV
122232020-01-06 Shahab Vahedi <shahab@synopsys.com>
12224
12225 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
12226 overflow by an early check of content vs threshold.
aac66a4c 12227 * tui/tui-source.c (tui_source_window::line_is_displayed):
cbfa8581
SV
12228 Likewise.
12229
3f602821
EZ
122302020-01-06 Eli Zaretskii <eliz@gnu.org>
12231
12232 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
12233
a08c904d
JT
122342020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
12235
12236 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
12237 export table if no section contains it's RVA.
12238
89a65580
EZ
122392020-01-06 Eli Zaretskii <eliz@gnu.org>
12240
12241 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
12242
8b7fcda2
HD
122432020-01-06 Hannes Domani <ssbssa@yahoo.de>
12244
12245 * source.c (print_source_lines_base): Set last_line_listed.
12246
a61b4f69
SV
122472020-01-06 Shahab Vahedi <shahab@synopsys.com>
12248
12249 * tui/tui-disasm.c: Remove trailing spaces.
12250
559e7e50
EZ
122512020-01-06 Eli Zaretskii <eliz@gnu.org>
12252 Pedro Alves <palves@redhat.com>
12253
12254 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
12255 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
12256 (windows_gdb_signal_to_target): New function, uses the above
12257 enumeration to convert GDB internal signal codes to equivalent
12258 Windows codes.
12259 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
12260 * windows-nat.c: Include "gdb_wait.h".
12261 (get_windows_debug_event): Extract the fatal exception from the
12262 exit status and convert to the equivalent Posix signal number.
12263 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
12264 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
12265 * gdbsupport/gdb_wait.c: New file, implements
12266 windows_status_to_termsig.
12267 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
12268 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
12269
f2302a34
AB
122702020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
12271
12272 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
12273 show_layout.
12274
6a5206eb
LM
122752020-01-05 Luis Machado <luis.machado@linaro.org>
12276
12277 * aarch64-linux-nat.c
12278 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
12279 and bfd_mach_aarch64.
12280
6ec1d75e
PW
122812020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12282
12283 * ui-file.c (stdio_file::can_emit_style_escape)
12284 (tee_file::can_emit_style_escape): Ensure style is used also on
12285 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
12286 to gdb_stdout.
12287 * main.c (set_gdb_data_directory): Use file style to output the
12288 warning that the given pathname is not a directory.
12289 * top.c (show_history_filename, gdb_safe_append_history)
12290 (show_gdb_datadir): Use file style.
12291
44f81a76
HD
122922020-01-03 Hannes Domani <ssbssa@yahoo.de>
12293
12294 * solib-target.c (struct lm_info_target):
12295 Change offsets to be a unique_xmalloc_ptr.
12296 (solib_target_relocate_section_addresses): Update.
12297
25057eb0
HD
122982020-01-03 Hannes Domani <ssbssa@yahoo.de>
12299
12300 * windows-nat.c (windows_clear_solib): Free so_list linked list.
12301
6e2118f5
BE
123022020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
12303
12304 * MAINTAINERS (Write After Approval): Add myself.
12305
8133c7dc
LM
123062020-01-02 Luis Machado <luis.machado@linaro.org>
12307
12308 * proc-service.c (get_ps_regcache): Remove reference to obsolete
12309 Cell BE architecture.
12310 * target.h (struct target_ops) <thread_architecture>: Likewise.
12311
48189bec
HD
123122020-01-01 Hannes Domani <ssbssa@yahoo.de>
12313
12314 * Makefile.in: Use INSTALL_PROGRAM_ENV.
12315
ead1063b
HD
123162020-01-01 Hannes Domani <ssbssa@yahoo.de>
12317
12318 * MAINTAINERS (Write After Approval): Add myself.
12319
e5d78223
JB
123202020-01-01 Joel Brobecker <brobecker@adacore.com>
12321
12322 * gdbarch.sh: Update copyright year range of generated files.
12323
b811d2c2
JB
123242020-01-01 Joel Brobecker <brobecker@adacore.com>
12325
12326 Update copyright year range in all GDB files.
12327
5f4def5c
JB
123282020-01-01 Joel Brobecker <brobecker@adacore.com>
12329
12330 * copyright.py: Convert to Python 3.
12331
51fd4002
JB
123322020-01-01 Joel Brobecker <brobecker@adacore.com>
12333
12334 * copyright.py: Adapt after move of gnulib directory from gdb
12335 directory to toplevel directory.
12336
5fb651f2
JB
123372020-01-01 Joel Brobecker <brobecker@adacore.com>
12338
12339 * copyright.py (main): Exit if run from the wrong directory.
12340
5dd8bf88
JB
123412020-01-01 Joel Brobecker <brobecker@adacore.com>
12342
12343 * top.c (print_gdb_version): Change copyright year to 2020.
12344
9f71dacb 123452020-01-01 Joel Brobecker <brobecker@adacore.com>
3d34df0a 12346
9f71dacb 12347 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
3d34df0a 12348
9f71dacb 12349For older changes see ChangeLog-2019.
c906108c
SS
12350\f
12351Local Variables:
12352mode: change-log
12353left-margin: 8
12354fill-column: 74
12355version-control: never
57da7796 12356coding: utf-8
c906108c 12357End: