]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/ChangeLog
CSKY: Support attribute section.
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
df631783
PA
12020-08-27 Pedro Alves <pedro@palves.net>
2
3 PR gdb/26524
4 * breakpoint.c (until_break_fsm) <location_breakpoint,
5 caller_breakpoint>: Delete fields.
6 <breakpoints>: New field.
7 <until_break_fsm>: Adjust to save a breakpoint vector instead of
8 two individual breakpoints.
9 (until_break_fsm::should_stop): Loop over breakpoints in the
10 breakpoint vector.
11 (until_break_fsm::clean_up): Adjust to clear the breakpoints
12 vector.
13 (until_break_command): Handle location expanding into multiple
14 sals.
15
b2b38aa4
PA
162020-08-27 Pedro Alves <pedro@palves.net>
17
18 PR gdb/26523
19 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
20 bp_until breakpoints user-specified locations. Update intro
21 comment.
22
b886559f
SM
232020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
24
25 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
26 gdb_bfd_sections): New.
27 * maint.c (print_bfd_section_info): Change param type to
28 maint_print_section_data.
29 (print_objfile_section_info): Likewise.
30 (print_bfd_section_info_maybe_relocated): Likewise.
31 (maintenance_info_sections): Use gdb_bfd_sections.
32
4c6e63bf
SV
332020-08-25 Shahab Vahedi <shahab@synopsys.com>
34
35 * MAINTAINERS: Add ARC target and maintainer.
36
8d7f0635
AK
372020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
38
39 * configure.tgt: ARC support for GNU/Linux.
40 * Makefile.in (ALL_TARGET_OBJS): Likewise.
41 * arc-linux-tdep.c: New file.
42 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
43 * arc-tdep.c (arc_write_pc): Use it.
44
fdd8731b
SV
452020-08-25 Shahab Vahedi <shahab@synopsys.com>
46
47 * arc-tdep.c (arc_check_for_hardware_loop): New.
48 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
49
22459524
SV
502020-08-25 Shahab Vahedi <shahab@synopsys.com>
51
52 * arc-tdep.h: Include "gdbarch.h".
53
995d3a19
SV
542020-08-25 Shahab Vahedi <shahab@synopsys.com>
55
56 * arch/arc.h
57 (arc_gdbarch_features): New class to stir the selection of target XML.
58 (arc_create_target_description): Use FEATURES to choose XML target.
59 (arc_lookup_target_description): Use arc_create_target_description
60 to create _new_ target descriptions or return the already created
61 ones if the FEATURES is the same.
62 * arch/arc.c: Implementation of prototypes described above.
63 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
64 (arc_gdbarch_features_init): Initialize the FEATURES struct.
65 * arc-tdep.c (*_feature_name): Make feature names consistent.
66 (arc_register_feature): A new struct to hold information about
67 registers of a particular target/feature.
68 (arc_check_tdesc_feature): Check if XML provides registers in
69 compliance with ARC_REGISTER_FEATURE structs.
70 (arc_update_acc_reg_names): Add aliases for r58 and r59.
71 (determine_*_reg_feature_set): Which feature name to look for.
72 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
73 (mach_type_to_arc_isa): Convert from a set of binutils machine types
74 to expected ISA enums to be used in arc_gdbarch_features structs.
75 * features/Makefile (FEATURE_XMLFILES): Add new files.
76 * gdb/features/arc/v1-aux.c: New file.
77 * gdb/features/arc/v1-aux.xml: Likewise.
78 * gdb/features/arc/v1-core.c: Likewise.
79 * gdb/features/arc/v1-core.xml: Likewise.
80 * gdb/features/arc/v2-aux.c: Likewise.
81 * gdb/features/arc/v2-aux.xml: Likewise.
82 * gdb/features/arc/v2-core.c: Likewise.
83 * gdb/features/arc/v2-core.xml: Likewise.
84 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
85
3945d2d7
GM
862020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
87 Andrew Burgess <andrew.burgess@embecosm.com>
88
89 PR m2/26372
fc5d6901 90 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
3945d2d7
GM
91 an assert. Remove single element array indexing pattern as the
92 MULTI_SUBSCRIPT support will handle this case too.
93
2677f2d3
SM
942020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
95
96 * value.h (valprint_check_validity): Move declaration from
97 here...
98 * valprint.h (valprint_check_validity): ... to here.
99
c426fddb
SM
1002020-08-24 Simon Marchi <simon.marchi@efficios.com>
101
102 * debug.h: New file.
103 * debug.c (debug_prefixed_vprintf): New function.
104 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
105 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
106
1eb8556f
SM
1072020-08-24 Simon Marchi <simon.marchi@efficios.com>
108
109 * infrun.h (infrun_debug_printf_1): New function declaration.
110 (infrun_debug_printf): New macro.
111 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
112 throughout.
113 (infrun_debug_printf): New function.
114 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
115 (handle_jit_event): Likewise.
116
b8fff44e
MW
1172020-08-21 Mark Wielaard <mark@klomp.org>
118
119 * ada-lex.l: Extend register warnings diagnostics comment for g++.
120
d19c3068
SM
1212020-08-22 Simon Marchi <simon.marchi@efficios.com>
122
123 * frame.c (enum class frame_id_status): New.
124 (struct frame_info) <this_id::p>: Change type to frame_id_status.
125 (fprintf_frame): Update.
126 (compute_frame_id): Set frame id status to "computing" on entry.
127 Set it back to "not_computed" on failure and to "computed" on
128 success.
129 (get_frame_id): Assert the frame id is not being computed.
130 (create_sentinel_frame): Use frame_id_status::COMPUTED.
131 (create_new_frame): Likewise.
132 (frame_cleanup_after_sniffer): Update assert.
133
b70e516e
SM
1342020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
135
136 * regcache.c (pid_ptid_regcache_map): New type.
137 (target_ptid_regcache_map): Remove.
138 (target_pid_ptid_regcache_map): New type.
139 (regcaches): Change type to target_pid_ptid_regcache_map.
140 (get_thread_arch_aspace_regcache): Update.
141 (regcache_thread_ptid_changed): Update, handle pid-like ptid
142 case.
143 (regcaches_size): Update.
144 (regcache_count): Update.
145 (registers_changed_ptid_target_pid_test): New.
146 (_initialize_regcache): Register new test.
147
cdd9148a
SM
1482020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
149
150 * regcache.c (regcache_count): New.
151 (struct regcache_test_data): New.
152 (regcache_test_data_up): New.
153 (populate_regcaches_for_test): New.
154 (regcaches_test): Remove.
155 (get_thread_arch_aspace_regcache_test): New.
156 (registers_changed_ptid_all_test): New.
157 (registers_changed_ptid_target_test): New.
158 (registers_changed_ptid_target_ptid_test): New.
159 (regcache_thread_ptid_changed): Remove regcache_count lambda.
160 (_initialize_regcache): Register new tests.
161
dd125343
SM
1622020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
163
164 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
165 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
166 gdbarch and aspace parameter. Use current inferior's aspace.
167 Validate regcache's arch value.
168 (regcaches_test): Update.
169
3ee93972
SM
1702020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
171
172 * regcache.c (regcaches_test): Call registers_changed.
173
33bf4c5c
TBA
1742020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
175
176 * infrun.c (process_event_stop_test): Fix typo "breapoint".
177
c2fd7fae
AKS
1782020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
179
180 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
181 to find the end of prologue for flang compiled binaries.
182 * arm-tdep.c (arm_skip_prologue): Likewise.
183 * i386-tdep.c (i386_skip_prologue): Likewise.
184 * producer.c (producer_is_llvm): New function.
185 (producer_parsing_tests): Added new tests for clang/flang.
186 * producer.h (producer_is_llvm): New declaration.
187
9327494e
SM
1882020-08-18 Simon Marchi <simon.marchi@efficios.com>
189
190 * linux-nat.c (linux_nat_debug_printf): New function.
191 (linux_nat_debug_printf_1): New macro. Use throughout the file.
192
d138725a
AM
1932020-08-18 Aaron Merey <amerey@redhat.com>
194
195 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
196 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
197 (CLIBS): Add DEBUGINFOD_LIBS.
198
f9b11e6b
ST
1992020-08-17 Sergei Trofimovich <siarheit@google.com>
200
201 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
202 'gdbarch_num_regs'.
203
3ae7ab99
TT
2042020-08-17 Tom Tromey <tromey@adacore.com>
205
206 * ada-varobj.c (ada_varobj_decode_var): Handle case where
207 ada_get_decoded_value returns NULL.
208
b017825f
TT
2092020-08-17 Tom Tromey <tromey@adacore.com>
210
211 * python/py-inferior.c (infpy_search_memory): Use
212 gdb_py_object_from_ulongest.
213 * python/py-infevents.c (create_inferior_call_event_object)
214 (create_memory_changed_event_object): Use
215 gdb_py_object_from_ulongest.
216 * python/py-linetable.c (ltpy_entry_get_pc): Use
217 gdb_py_object_from_ulongest.
218
7635cf79
SM
2192020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
220
221 * loc.c (class symbol_needs_eval_context): Fix indentation.
222
f54be24b
SM
2232020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
224
225 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
226 bool.
227
53d5a2a5
TV
2282020-08-17 Tom de Vries <tdevries@suse.de>
229
230 PR gdb/26393
231 * gdbtypes.c (dump_dynamic_prop): New function.
232 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
233
547ce8f0
TV
2342020-08-15 Tom de Vries <tdevries@suse.de>
235
236 PR backtrace/26390
237 * stack.c (print_frame_args): Temporarily set the selected
238 frame to FRAME while printing the frame's arguments.
239
6ea815e7
PFC
2402020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
241
242 PR breakpoints/26385
243 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
244 Always clear watchpoint with PTRACE_SET_DEBUGREG.
245
6e562fa3
PFC
2462020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
247
248 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
249 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
250 and >= to check return value instead of == -1 and != -1.
251
d369b608
SM
2522020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
253
254 * utils.h (class gdb_argv) <as_array_view>: New method.
255 * utils.c (gdb_argv_as_array_view_test): New.
256 (_initialize_utils): Register selftest.
257 * maint.c (maintenance_selftest): Use the new method.
258
b31488a3
KR
2592020-08-13 Kamil Rytarowski <n54@gmx.com>
260
261 * target.h (supports_dumpcore, dumpcore): New
262 function declarations.
263 * target.c (supports_dumpcore, dumpcore): New
264 functions.
265 * target-delegates.c: Rebuild.
266 * gcore.c (gcore_command): Use target_supports_dumpcore ()
267 and target_dumpcore ().
268
002a3166
AM
2692020-08-13 Aaron Merey <amerey@redhat.com>
270
271 * debuginfod-support.c: Replace global variables with user_data.
272
ece5bc8a
SM
2732020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
274
275 * maint.c (maintenance_selftest): Split args and pass array_view
276 to run_tests.
277
6d8a0a5e
LM
2782020-08-12 Luis Machado <luis.machado@linaro.org>
279
280 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
281 type's length.
282 Use %s and pulongest to print the length.
283
7cf663a9
PA
2842020-08-12 Pedro Alves <palves@redhat.com>
285
286 * NEWS: Move "Multi-target debugging support" item to the
287 "Changes since GDB 9" section.
288
27c7b875
PA
2892020-08-12 Pedro Alves <palves@redhat.com>
290
291 PR gdb/26336
292 * progspace.c (program_space::remove_objfile): Invalidate the
293 frame cache.
294
1796a2a1
TV
2952020-08-11 Tom de Vries <tdevries@suse.de>
296
297 * MAINTAINERS: Mark ms1 as deleted.
298
f8e3fe0d
LM
2992020-08-10 Luis Machado <luis.machado@linaro.org>
300
301 PR gdb/26310
302
303 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
304 act accordingly.
305 (aarch64_analyze_prologue_test): Add more unit tests to exercise
306 movz/str/stur/stp skipping behavior.
307
cc308722
LM
3082020-08-10 Luis Machado <luis.machado@linaro.org>
309
310 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
311 struct user_sve_header instead of struct sve_context.
312
041d9819
SM
3132020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
314
315 * read.h (dwarf2_fetch_die_loc_sect_off,
316 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
317 `void *` parameter with function_view.
318 * read.c (dwarf2_fetch_die_loc_sect_off,
319 dwarf2_fetch_die_loc_cu_off): Likewise.
320 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
321 (per_cu_dwarf_call): Adjust.
322 (get_frame_address_in_block_wrapper): Remove.
323 (indirect_synthetic_pointer): Adjust.
324 (get_ax_pc): Remove.
325 (dwarf2_compile_expr_to_ax): Adjust.
326
38f8aa06
TV
3272020-08-08 Tom de Vries <tdevries@suse.de>
328
329 PR build/26344
330 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
331 constructor.
332 * regcache.c (get_thread_arch_aspace_regcache): Same.
333
a52b3ae2
TT
3342020-08-07 Tom Tromey <tromey@adacore.com>
335
336 * ravenscar-thread.c
337 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
338 New method.
339 (ravenscar_thread_target::wait): Check
340 runtime_initialized.
341 (ravenscar_thread_target::prepare_to_store)
342 (ravenscar_thread_target::stopped_by_sw_breakpoint)
343 (ravenscar_thread_target::stopped_by_hw_breakpoint)
344 (ravenscar_thread_target::stopped_by_watchpoint)
345 (ravenscar_thread_target::stopped_data_address)
346 (ravenscar_thread_target::core_of_thread): Use
347 scoped_restore_current_thread and
348 set_base_thread_from_ravenscar_task.
349
0e29517d
TT
3502020-08-07 Tom Tromey <tromey@adacore.com>
351
352 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
353
592f9bd7
TT
3542020-08-07 Tom Tromey <tromey@adacore.com>
355
356 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
357 update_inferior_ptid before update_thread_list.
358 (temporarily_change_regcache_ptid): New class.
359 (ravenscar_thread_target::fetch_registers)
360 (ravenscar_thread_target::store_registers)
361 (ravenscar_thread_target::prepare_to_store): Use base thread when
362 forwarding operation.
363
39e2018a
TT
3642020-08-07 Tom Tromey <tromey@adacore.com>
365
366 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
367 "is_pid" case.
368
2080266b
TT
3692020-08-07 Tom Tromey <tromey@adacore.com>
370
371 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
372 New methods.
373 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
374 first.
375 (ravenscar_thread_target::add_thread): Rename from
376 ravenscar_add_thread.
377 (ravenscar_thread_target::update_thread_list): Use a lambda.
378 (ravenscar_thread_target::xfer_partial): New method.
379
78c02f21
TT
3802020-08-07 Tom Tromey <tromey@adacore.com>
381
382 * ada-lang.h (ada_task_list_iterator_ftype): Now a
383 gdb::function_view.
384 (iterate_over_live_ada_tasks): Change type of argument.
385 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
386 of argument.
387
d5d833af
TT
3882020-08-07 Tom Tromey <tromey@adacore.com>
389
390 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
391 Remove.
392 (ravenscar_thread_target::extra_thread_info): Remove.
393 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
394 defer to target beneath for non-Ravenscar threads.
395
a8ac85bb
TT
3962020-08-07 Tom Tromey <tromey@adacore.com>
397
398 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
399 get_base_thread_from_ravenscar_task>: Now methods.
400 <m_cpu_map>: New member.
401 (ravenscar_thread_target::get_thread_base_cpu): Rename from
402 ravenscar_get_thread_base_cpu. Check m_cpu_map.
403 (ravenscar_thread_target::task_is_currently_active): Update.
404 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
405 Now a method.
406 (ravenscar_thread_target::add_active_thread): Put initial thread
407 into the m_cpu_map.
408
550ab58d
TT
4092020-08-07 Tom Tromey <tromey@adacore.com>
410
411 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
412 event_ptid.
413
e9546579
TT
4142020-08-07 Tom Tromey <tromey@adacore.com>
415
416 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
417 runtime_initialized.
418
3d4470e5
TT
4192020-08-07 Tom Tromey <tromey@adacore.com>
420
421 * ravenscar-thread.c (ravenscar_thread_target): Don't call
422 add_active_thread.
423 (ravenscar_thread_target::add_active_thread): Now public.
424 (ravenscar_inferior_created): Call add_active_thread after pushing
425 the target.
426
888bdb2b
SM
4272020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
428
429 * regcache.c (ptid_regcache_map): New type.
430 (target_ptid_regcache_map): New type.
431 (regcaches): Change type to target_ptid_regcache_map.
432 (get_thread_arch_aspace_regcache): Update to regcaches' new
433 type.
434 (regcache_thread_ptid_changed): Likewise.
435 (registers_changed_ptid): Likewise.
436 (regcaches_size): Likewise.
437 (regcaches_test): Update.
438 (regcache_thread_ptid_changed): Update.
439 * regcache.h (regcache_up): New type.
440 * gdbsupport/ptid.h (hash_ptid): New struct.
441
b161a60d
SM
4422020-08-07 Simon Marchi <simon.marchi@efficios.com>
443
444 * observable.h (thread_ptid_changed): Add parameter
445 `process_stratum_target *`.
446 * infrun.c (infrun_thread_ptid_changed): Add parameter
447 `process_stratum_target *` and use it.
448 (selftests): New namespace.
449 (infrun_thread_ptid_changed): New function.
450 (_initialize_infrun): Register selftest.
451 * regcache.c (regcache_thread_ptid_changed): Add parameter
452 `process_stratum_target *` and use it.
453 (regcache_thread_ptid_changed): New function.
454 (_initialize_regcache): Register selftest.
455 * thread.c (thread_change_ptid): Pass target to
456 thread_ptid_changed observable.
457
d2854d8d
CT
4582020-08-06 Caroline Tice <cmtice@google.com>
459
fe4c3d43
SM
460 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
461 (struct dwp_sections): Update field comments. Add loclists and
462 rnglists fields.
463 (struct virtual_v2_dwo_sections): Rename struct to
464 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
465 size & offset fields for loclists and rnglists.
466 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
467 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
468 skipping dummy type units.
469 (create_dwp_hash_table): Update the large comment above the function to
470 discuss Version 5 DWP files as well, with references. Update all the
471 version checks in the function to check for version 5 as well. Add new
472 section at the end to create dwp hash table for version 5.
473 (create_dwp_v2_section): Rename function to
474 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
475 Add V5 to error message text.
476 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
477 into calls to create_dwp_v2_or_v5_section.
478 (create_dwo_unit_in_dwp_v5): New function.
479 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
480 check for version2; add else clause to handle version 5.
481 (open_and_init_dwo_file): Add code to check dwarf version & only call
482 create_debug_types_hash_table (with sections.types) if version is not 5;
483 else call create_debug_type_hash_table, with sections.info.
484 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
485 version 5.
486 (dwarf2_locate_v5_dwp_sections): New function.
487 (open_and_init_dwp_file): Add else-if clause for version 5 to call
488 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
d2854d8d 489
159ed7d9
SM
4902020-08-06 Simon Marchi <simon.marchi@efficios.com>
491
492 * regcache.h (class regcache): Remove friend
493 registers_changed_ptid.
494 <regcache_thread_ptid_changed>: Remove.
495 <regcaches>: Remove.
496 * regcache.c (regcache::regcaches): Rename to...
497 (regcaches): ... this. Make static.
498 (get_thread_arch_aspace_regcache): Update.
499 (regcache::regcache_thread_ptid_changed): Rename to...
500 (regcache_thread_ptid_changed): ... this. Update.
501 (class regcache_access): Remove.
502 (regcaches_test): Update.
503 (_initialize_regcache): Update.
504 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
505 <forward_list>.
506
174981ae
SM
5072020-08-06 Simon Marchi <simon.marchi@efficios.com>
508
509 * regcache.h (class regcache) <current_regcache>: Rename to...
510 <regcaches>: ... this. Move doc here.
511 * regcache.c (regcache::current_regcache) Rename to...
512 (regcache::regcaches): ... this. Move doc to header.
513 (get_thread_arch_aspace_regcache): Update.
514 (regcache::regcache_thread_ptid_changed): Update.
515 (registers_changed_ptid): Update.
516 (class regcache_access) <current_regcache_size>: Rename to...
517 <regcaches_size>: ... this.
518 (current_regcache_test): Rename to...
519 (regcaches_test): ... this.
520 (_initialize_regcache): Update.
521
ed908db6
VC
5222020-08-06 Victor Collod <vcollod@nvidia.com>
523
524 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
525
b5582ab7
KB
5262020-08-05 Kevin Buettner <kevinb@redhat.com>
527
528 * corelow.c (core_target::build_file_mappings): Don't output
529 null pathname in warning.
530
ea946b86
SM
5312020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
532
533 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
534 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
535 gdb.dwarf2/dw2-single-line-discriminators.exp,
536 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
537
57d02173
TT
5382020-08-05 Tom Tromey <tromey@adacore.com>
539
540 PR rust/26197:
541 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
542 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
543 Fix off-by-one and type size errors in ordinary case.
544
5555c86d
TV
5452020-08-05 Tom de Vries <tdevries@suse.de>
546
547 * gdbtypes.c (type_not_allocated, type_not_associated): Use
548 "prop->const_val () == 0" instead of "prop->const_val () != 0".
549
97916bfe
SM
5502020-08-04 Simon Marchi <simon.marchi@efficios.com>
551
552 * frame.h (frame_id_p): Return bool.
553 (frame_id_artificial_p): Return bool.
554 (frame_id_eq): Return bool.
555 (has_stack_frames): Return bool.
556 (get_selected_frame): Fix typo in comment.
557 (get_frame_pc_if_available): Return bool.
558 (get_frame_address_in_block_if_available): Return bool.
559 (get_frame_func_if_available): Return bool.
560 (read_frame_register_unsigned): Return bool.
561 (get_frame_register_bytes): Return bool.
562 (safe_frame_unwind_memory): Return bool.
563 (deprecated_frame_register_read): Return bool.
564 (frame_unwinder_is): Return bool.
565 * frame.c (struct frame_info) <prev_arch::p>: Change type to
566 bool.
567 <this_id::p>: Likewise.
568 <prev_p>: Likewise.
569 (frame_stash_add): Return bool.
570 (get_frame_id): Use bool.
571 (frame_id_build_special) Use bool.
572 (frame_id_build_unavailable_stack): Use bool.
573 (frame_id_build): Use bool.
574 (frame_id_p): Return bool, use true/false instead of 1/0.
575 (frame_id_artificial_p): Likewise.
576 (frame_id_eq): Likewise.
577 (frame_id_inner): Likewise.
578 (get_frame_func_if_available): Likewise.
579 (read_frame_register_unsigned): Likewise.
580 (deprecated_frame_register_read): Likewise.
581 (get_frame_register_bytes): Likewise.
582 (has_stack_frames): Likewise.
583 (inside_main_func): Likewise.
584 (inside_entry_func): Likewise.
585 (get_frame_pc_if_available): Likewise.
586 (get_frame_address_in_block_if_available): Likewise.
587 (frame_unwinder_is): Likewise.
588 (safe_frame_unwind_memory): Likewise.
589 (frame_unwind_arch): Likewise.
590
fedfee88
SM
5912020-08-04 Simon Marchi <simon.marchi@efficios.com>
592
593 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
594 type to cached_copy_status.
595 (fprintf_frame): Adjust.
596 (get_frame_func_if_available): Adjust.
597 (frame_cleanup_after_sniffer): Adjust.
598
6cfa9b59
MW
5992020-08-04 Mark Wielaard <mark@klomp.org>
600
601 * MAINTAINERS (Write After Approval): Update email address.
602
66d6346b
SM
6032020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
604
605 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
606 dynamic_prop::const_val.
607
8a6d5e35
SM
6082020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
609
610 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
611 dynamic_prop::kind.
612
51d6067d
SM
6132020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
614
615 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
616
b26e2ae7
JM
6172020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
618
619 * configure.tgt: Set gdb_sim for bpf-*-* targets.
620
39791af2
JM
6212020-08-04 Weimin Pan <weimin.pan@oracle.com>
622 Jose E. Marchesi <jose.marchesi@oracle.com>
623
624 * configure.tgt: Add entry for bpf-*-*.
625 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
626 (ALLDEPFILES): Add bpf-tdep.c.
627 * bpf-tdep.c: New file.
628 * MAINTAINERS: Add bpf target and maintainer.
629 * NEWS: Mention the support for the new target.
630
521894aa
TV
6312020-08-04 Tom de Vries <tdevries@suse.de>
632
633 PR symtab/23270
634 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
635 Error.
636
5d6356e9
JB
6372020-08-03 John Baldwin <jhb@FreeBSD.org>
638
639 * syscalls/freebsd.xml: Regenerate.
640
0cf82b81
JB
6412020-08-03 John Baldwin <jhb@FreeBSD.org>
642
643 * syscalls/update-freebsd.sh: Fix usage and year range.
644
8f34b746
TV
6452020-08-03 Tom de Vries <tdevries@suse.de>
646
647 PR symtab/26333
648 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
649 DW_LNE_lo_user/DW_LNE_hi_user range.
650
5e500d33
SM
6512020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
652
653 PR ada/26318
654 * ada-lang.c (ada_modulus): Return 0 if property is not of const
655 kind.
656
78319c15
TBA
6572020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
658
659 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
660
4c55e970
TBA
6612020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
662
663 * breakpoint.c (set_breakpoint_condition): Update the condition
664 expressions after checking that the input condition string parses
665 successfully and does not contain junk at the end.
666
1e620590
TBA
6672020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
668
669 * breakpoint.c (set_breakpoint_condition): Update the
670 condition string after parsing the new condition successfully.
671
c8693053
RO
6722020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
673
674 * proc-api.c (_STRUCTURED_PROC): Don't define.
675 * proc-events.c: Likewise.
676 * proc-flags.c: Likewise.
677 * proc-why.c: Likewise.
678 * procfs.c: Likewise.
679
680 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
681 * configure, config.in: Regenerate.
682
5a99adb8
TV
6832020-07-30 Tom de Vries <tdevries@suse.de>
684
685 PR build/26320
686 * ui-style.h (struct ui_file_style::color): Wrap m_value and
687 m_red/m_green/m_blue in a union.
688
8ba83e91
TV
6892020-07-29 Tom de Vries <tdevries@suse.de>
690
691 PR tdep/26280
692 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
693
f75a0693
AB
6942020-07-28 Tom Tromey <tromey@adacore.com>
695
696 PR symtab/26270:
697 * symtab.h (find_pc_partial_function_sym): Declare.
698 * cli/cli-cmds.c (disassemble_command): Use
699 find_pc_partial_function_sym. Check asm_demangle.
700 * blockframe.c (cache_pc_function_sym): New global.
701 (cache_pc_function_name): Remove.
702 (clear_pc_function_cache): Update.
703 (find_pc_partial_function_sym): New function, from
704 find_pc_partial_function.
705 (find_pc_partial_function): Rewrite using
706 find_pc_partial_function_sym.
707
16f3242c
TT
7082020-07-28 Tom Tromey <tromey@adacore.com>
709
710 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
711 help. Add usage.
712
4888741a
TT
7132020-07-28 Tom Tromey <tromey@adacore.com>
714
715 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
716 <DW_OP_GNU_variable_value>: Cast to address type.
717
4d46f402
KR
7182020-07-28 Kamil Rytarowski <n54@gmx.com>
719
720 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
721 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
722 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
723 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
724 (nbsd_get_siginfo_type): New.
725 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
726 (_initialize_nbsd_tdep): New.
727
d70f978b
L
7282020-07-28 H.J. Lu <hongjiu.lu@intel.com>
729
730 PR binutils/26301
731 * configure: Regenerated.
732
377170fa
L
7332020-07-28 H.J. Lu <hongjiu.lu@intel.com>
734
735 PR binutils/26301
736 * configure: Regenerated.
737
43d5901d
AB
7382020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
739
740 * python/py-frame.c: Remove 'user-regs.h' include.
741 (frapy_read_register): Rewrite to make use of
742 gdbpy_parse_register_id.
743 * python/py-registers.c (gdbpy_parse_register_id): New function,
744 moved here from python/py-unwind.c. Updated the return type, and
745 also accepts register descriptor objects.
746 * python/py-unwind.c: Remove 'user-regs.h' include.
747 (pyuw_parse_register_id): Moved to python/py-registers.c.
748 (unwind_infopy_add_saved_register): Update to use
749 gdbpy_parse_register_id.
750 (pending_framepy_read_register): Likewise.
751 * python/python-internal.h (gdbpy_parse_register_id): Declare.
752
14fa8fb3
AB
7532020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
754
755 * python/py-registers.c: Add 'user-regs.h' include.
756 (register_descriptor_iter_find): New function.
757 (register_descriptor_iterator_object_methods): New static global
758 methods array.
759 (register_descriptor_iterator_object_type): Add pointer to methods
760 array.
761
ddce1758
JB
7622020-07-27 John Baldwin <jhb@FreeBSD.org>
763
764 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
765 for all architectures on FreeBSD 11.3 and later.
766
a4089f52
TT
7672020-07-27 Tom Tromey <tromey@adacore.com>
768
769 * gcore.h (load_corefile): Don't declare.
770
95420d30
TV
7712020-07-27 Tom de Vries <tdevries@suse.de>
772
773 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
774 * config.in: Regenerate.
775 * configure: Regenerate.
776
05a6b8c2
EZ
7772020-07-26 Eli Zaretskii <eliz@gnu.org>
778
779 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
780 ws2tcpip.h. When checking whether socklen_t type is defined, use
781 ws2tcpip.h if it is available and sys/socket.h isn't.
782 * configure: Regenerate.
783 * config.in: Regenerate.
784
e79eb02f
AB
7852020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
786
787 PR fortran/23051
788 PR fortran/26139
789 * valops.c (value_ind): Pass address to
790 readjust_indirect_value_type.
791 * value.c (readjust_indirect_value_type): Make parameter
792 non-const, and add extra address parameter. Resolve original type
793 before using it.
794 * value.h (readjust_indirect_value_type): Update function
795 signature and comment.
796
876518dd
TV
7972020-07-25 Tom de Vries <tdevries@suse.de>
798
799 PR symtab/26243
800 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
801 entries.
802
f6720b1c
AM
8032020-07-24 Aaron Merey <amerey@redhat.com>
804
805 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
806 * configure: Rebuild.
807
513487e1
KB
8082020-07-23 Kevin Buettner <kevinb@redhat.com>
809
810 PR corefiles/26294
811 * corelow.c (_initialize_corelow): Add period to help text
812 for "maintenance print core-file-backed-mappings".
813
e7bc9db8
PA
8142020-07-23 Pedro Alves <pedro@palves.net>
815
816 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
817 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
818 meanwhile.
819 * frame.c (frame_cache_generation, get_frame_cache_generation):
820 New.
821 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
822 (get_prev_frame_if_no_cycle): On exception, don't touch
823 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
824 * frame.h (get_frame_cache_generation): Declare.
825
90fcc466
TV
8262020-07-23 Tom de Vries <tdevries@suse.de>
827
828 PR tui/26282
829 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
830 New default constructor.
831
78344df7
AB
8322020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
833
834 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
835 exclude non-statement entries.
836
b089853a
KB
8372020-07-22 Kevin Buettner <kevinb@redhat.com>
838
839 * NEWS (New commands): Mention new command
840 "maintenance print core-file-backed-mappings".
841
09c2f5d4
KB
8422020-07-22 Kevin Buettner <kevinb@redhat.com>
843
844 * corelow.c (gdbcmd.h): Include.
845 (core_target::info_proc_mappings): New method.
846 (get_current_core_target): New function.
847 (maintenance_print_core_file_backed_mappings): New function.
848 (_initialize_corelow): Add core-file-backed-mappings to
849 "maint print" commands.
850
9c5ec5c2 8512020-07-22 Kevin Buettner <kevinb@redhat.com>
fe4c3d43 852
9c5ec5c2
KB
853 * linux-tdep.c (dump_note_entry_p): New function.
854 (linux_dump_mapping_p_ftype): New typedef.
855 (linux_find_memory_regions_full): Add new parameter,
856 should_dump_mapping_p.
857 (linux_find_memory_regions): Adjust call to
858 linux_find_memory_regions_full.
859 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
860 call to linux_find_memory_regions_full.
861
db082f59
KB
8622020-07-22 Kevin Buettner <kevinb@redhat.com>
863
864 * corelow.c (solist.h, unordered_map): Include.
865 (class core_target): Add field m_core_file_mappings and
866 method build_file_mappings.
867 (core_target::core_target): Call build_file_mappings.
868 (core_target::~core_target): Free memory associated with
869 m_core_file_mappings.
870 (core_target::build_file_mappings): New method.
871 (core_target::xfer_partial): Use m_core_file_mappings
872 for memory transfers.
873 * linux-tdep.c (linux_read_core_file_mappings): New
874 function.
875 (linux_core_info_proc_mappings): Rewrite to use
876 linux_read_core_file_mappings.
877 (linux_init_abi): Register linux_read_core_file_mappings.
878
7e183d27
KB
8792020-07-22 Kevin Buettner <kevinb@redhat.com>
880
881 * arch-utils.c (default_read_core_file_mappings): New function.
882 * arch-utils.c (default_read_core_file_mappings): Declare.
883 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
884 * gdbarch.h, gdbarch.c: Regenerate.
885
2735d421
KB
8862020-07-22 Kevin Buettner <kevinb@redhat.com>
887
888 PR corefiles/25631
889 * corelow.c (core_target:xfer_partial): Revise
890 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
891 case after first checking the stratum beneath the core
892 target.
893 (has_all_memory): Return true.
894 * target.c (raw_memory_xfer_partial): Revise comment
895 regarding use of has_all_memory.
896
e56cb451
KB
8972020-07-22 Kevin Buettner <kevinb@redhat.com>
898
899 * exec.h (section_table_xfer_memory): Revise declaration,
900 replacing section name parameter with an optional callback
901 predicate.
902 * exec.c (section_table_xfer_memory): Likewise.
903 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
904 of section_table_xfer_memory.
905
32fa152e
TT
9062020-07-22 Tom Tromey <tromey@adacore.com>
907
908 * mi/mi-cmd-stack.c (list_args_or_locals): Use
909 lookup_symbol_search_name.
910
a67a1c41
AB
9112020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
912
913 * python/py-registers.c (gdbpy_register_object_data_init): Remove
914 redundant local variable.
915 (gdbpy_get_register_descriptor): Extract descriptor vector as a
916 reference, not pointer, update code accordingly.
917
a7b4ff4f
SM
9182020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
919 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
920
921 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
922 * jit.c (jit_breakpoint_re_set_internal): Use the
923 `skip_jit_symbol_lookup` field.
924
2340e834
SM
9252020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
926 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
927
928 * jit.c (jit_read_descriptor): Define the descriptor address once,
929 use twice.
930 (jit_breakpoint_deleted): Move the declaration of the loop variable
931 `iter` into the loop header.
932 (jit_breakpoint_re_set_internal): Move the declaration of the local
933 variable `objf_data` to the first point of definition.
934 (jit_event_handler): Move the declaration of local variables
935 `code_entry`, `entry_addr`, and `objf` to their first point of use.
936 Rename `objf` to `jited`.
937
c1072906
SM
9382020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
939
940 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
941 Remove.
942 * jit.c (get_jiter_objfile_data): Update.
943
c8474dc3
TBA
9442020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
945 Simon Marchi <simon.marchi@polymtl.ca>
946
947 * jit.c (struct jit_program_space_data): Remove.
948 (jit_program_space_key): Remove.
949 (jiter_objfile_data::~jiter_objfile_data): Remove program space
950 stuff.
951 (get_jit_program_space_data): Remove.
952 (jit_breakpoint_deleted): Iterate on all of the program space's
953 objfiles.
954 (jit_inferior_init): Likewise.
955 (jit_breakpoint_re_set_internal): Likewise. Also change return
956 type to void.
957 (jit_breakpoint_re_set): Pass current_program_space to
958 jit_breakpoint_re_set_internal.
959
77208eb7
SM
9602020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
961
962 * jit.h (struct jiter_objfile_data) <cached_code_address,
963 jit_breakpoint>: Move to here from ...
964 * jit.c (jit_program_space_data): ... here.
965 (jiter_objfile_data::~jiter_objfile_data): Update.
966 (jit_breakpoint_deleted): Update.
967 (jit_breakpoint_re_set_internal): Update.
968
8c1c720f
SM
9692020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
970
971 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
972 checks.
973 (jit_read_descriptor): Remove NULL check.
974 (jit_event_handler): Add an assertion.
975
0e74a041
SM
9762020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
977
978 * jit.h (struct jit_objfile_data): Split into...
979 (struct jiter_objfile_data): ... this ...
980 (struct jited_objfile_data): ... and this.
981 * objfiles.h (struct objfile) <jit_data>: Remove.
982 <jiter_data, jited_data>: New fields.
983 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
984 (jiter_objfile_data::~jiter_objfile_data): ... this.
985 (get_jit_objfile_data): Rename to ...
986 (get_jiter_objfile_data): ... this.
987 (add_objfile_entry): Update.
988 (jit_read_descriptor): Use get_jiter_objfile_data.
989 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
990 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
991 (jit_inferior_exit_hook): Use objfile's jited_data field.
992
238b5c9f
SM
9932020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
994
995 * jit.h: Forward-declare `struct minimal_symbol`.
996 (struct jit_objfile_data): Migrate to here from jit.c; also add a
997 constructor, destructor, and an objfile* field.
998 * jit.c (jit_objfile_data): Remove.
999 (struct jit_objfile_data): Migrate from here to jit.h.
1000 (jit_objfile_data::~jit_objfile_data): New destructor
1001 implementation with code moved from free_objfile_data.
1002 (free_objfile_data): Delete.
1003 (get_jit_objfile_data): Update to use the jit_data field of objfile.
1004 (jit_find_objf_with_entry_addr): Ditto.
1005 (jit_inferior_exit_hook): Ditto.
1006 (_initialize_jit): Remove the call to
1007 register_objfile_data_with_cleanup.
1008 * objfiles.h (struct objfile) <jit_data>: New field.
1009
fe053b9e
TBA
10102020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1011
1012 * jit.h: Forward-declare `struct objfile`.
1013 (jit_event_handler): Add a second parameter, the JITer objfile.
1014 * jit.c (jit_read_descriptor): Change the signature to take the
1015 JITer objfile as an argument instead of the jit_program_space_data.
1016 (jit_inferior_init): Update the call to jit_read_descriptor.
1017 (jit_event_handler): Use the new JITer objfile argument when calling
1018 jit_read_descriptor.
1019 * breakpoint.c (handle_jit_event): Update the call to
1020 jit_event_handler to pass the JITer objfile.
1021
4cec0c66
JB
10222020-07-21 John Baldwin <jhb@FreeBSD.org>
1023
1024 * gdbarch.c: Regenerate.
1025 * gdbarch.h: Regenerate.
1026 * gdbarch.sh (handle_segmentation_fault): Remove method.
1027 * infrun.c (handle_segmentation_fault): Remove.
1028 (print_signal_received_reason): Remove call to
1029 handle_segmentation_fault.
1030
0e42f66a
JB
10312020-07-21 John Baldwin <jhb@FreeBSD.org>
1032
1033 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
1034 Rename to sparc64_linux_report_signal_info and add siggnal
1035 argument.
1036 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
1037 instead of sparc64_linux_handle_segmentation_fault.
1038
77bdfeb2
JB
10392020-07-21 John Baldwin <jhb@FreeBSD.org>
1040
1041 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
1042 i386_linux_report_signal_info instead of
1043 i386_linux_handle_segmentation_fault.
1044 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
1045 to i386_linux_report_signal_info and add siggnal argument.
1046 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
1047 of i386_linux_handle_segmentation_fault.
1048 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
1049 to i386_linux_report_signal_info and add siggnal argument.
1050
ad97bfc5
JB
10512020-07-21 John Baldwin <jhb@FreeBSD.org>
1052
1053 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
1054 hook if present.
1055
272bb05c
JB
10562020-07-21 John Baldwin <jhb@FreeBSD.org>
1057
1058 * gdbarch.c: Regenerate.
1059 * gdbarch.h: Regenerate.
1060 * gdbarch.sh (report_signal_info): New method.
1061 * infrun.c (print_signal_received_reason): Invoke gdbarch
1062 report_signal_info hook if present.
1063
baf8791e
AB
10642020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
1065
1066 * python/py-registers.c : Add 'unordered_map' include.
1067 (gdbpy_new_reggroup): Renamed to...
1068 (gdbpy_get_reggroup): ...this. Update to only create register
1069 group descriptors when needed.
1070 (gdbpy_reggroup_iter_next): Update.
1071
f7306dac
AB
10722020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
1073
1074 * python/py-registers.c (gdbpy_register_object_data): New static
1075 global.
1076 (gdbpy_register_object_data_init): New function.
1077 (gdbpy_new_register_descriptor): Renamed to...
1078 (gdbpy_get_register_descriptor): ...this, and update to reuse
1079 existing register descriptors where possible.
1080 (gdbpy_register_descriptor_iter_next): Update.
1081 (gdbpy_initialize_registers): Register new gdbarch data.
1082
05c309a8
SM
10832020-07-21 Simon Marchi <simon.marchi@efficios.com>
1084
1085 * linux-nat.c (stopped_pids): Make static.
1086
d1fd641e
SM
10872020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
1088
1089 PR ada/26235
1090 * gdbtypes.c (ada_discrete_type_low_bound,
1091 ada_discrete_type_high_bound): Handle undefined bounds.
1092
1de14d77
KR
10932020-07-21 Kamil Rytarowski <n54@gmx.com>
1094
1095 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
1096 declaration.
1097 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
1098 function.
1099
ed810cc7
JB
11002020-07-20 John Baldwin <jhb@FreeBSD.org>
1101
1102 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
1103 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
1104 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
1105 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
1106 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
1107 method.
1108
ae5369e7
LC
11092020-07-20 Ludovic Courtès <ludo@gnu.org>
1110
1111 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
1112 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
1113 which are deprecated in Guile 3.0.
1114 * configure.ac (try_guile_versions): Add "guile-3.0".
1115 * configure (try_guile_versions): Regenerate.
1116 * NEWS: Update entry.
1117
68cf161c
LC
11182020-07-20 Ludovic Courtès <ludo@gnu.org>
1119 Doug Evans <dje@google.com>
1120
1121 PR gdb/21104
1122 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
1123 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
1124 USING_GUILE_BEFORE_2_2.
1125 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
1126 Change type to 'scm_t_port_type *'.
1127 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
1128 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
1129 parameter and honor it. Update callers.
1130 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
1131 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
1132 functions.
1133 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
1134 USING_GUILE_BEFORE_2_2.
1135 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
1136 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
1137 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
1138 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
1139 and 'SCM_PORT_TYPE'.
1140 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
1141 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
1142 (gdbscm_memory_port_read, gdbscm_memory_port_write)
1143 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
1144 [!USING_GUILE_BEFORE_2_2]: New functions.
1145 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
1146 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
1147 'gdbscm_memory_port_read'.
1148 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
1149 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
1150 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
1151 function.
1152 (ioscm_init_memory_port): Remove.
1153 (ioscm_init_memory_port_stream): New function
1154 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
1155 function.
1156 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
1157 Return scm_from_uint (0).
1158 (gdbscm_set_memory_port_read_buffer_size_x)
1159 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
1160 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
1161 Return scm_from_uint (0).
1162 (gdbscm_set_memory_port_write_buffer_size_x)
1163 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
1164 * configure.ac (try_guile_versions): Add "guile-2.2".
1165 * configure: Regenerate.
1166 * NEWS: Add entry.
1167
aee91db3
TT
11682020-07-18 Tom Tromey <tom@tromey.com>
1169
1170 * linux-nat.c (linux_multi_process): Remove.
1171 (linux_nat_target::supports_multi_process): Return true.
1172
0e267416
AB
11732020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
1174
1175 * arch/riscv.c (riscv_tdesc_cache): Change map type.
1176 (riscv_lookup_target_description): Return pointer out of
1177 unique_ptr.
1178 * target-descriptions.c (allocate_target_description): Add
1179 comment.
1180 (target_desc_deleter::operator()): Likewise.
1181 * target-descriptions.h (struct target_desc_deleter): Moved to
1182 gdbsupport/tdesc.h.
1183 (target_desc_up): Likewise.
1184
f80c8ec4
TT
11852020-07-17 Tom Tromey <tromey@adacore.com>
1186
1187 * linux-nat.c (linux_nat_target::supports_non_stop)
1188 (linux_nat_target::always_non_stop_p): Use "true".
1189 (linux_nat_target::supports_disable_randomization): Use "true" and
1190 "false".
1191
d0ce17d8
CT
11922020-07-16 Caroline Tice <cmtice@google.com>
1193
1194 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
1195 (RNGLIST_HEADER_SIZE64): New constant definition.
1196 (struct dwop_section_names): Add rnglists_dwo.
1197 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
1198 (struct loclist_header): Rename to 'loclists_rnglists_header'.
1199 (struct dwo_sections): Add rnglists field.
1200 (read_attribut_reprocess): Add tag parameter.
1201 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
1202 (cu_debug_rnglists_section): New function (decl & definition).
1203 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
1204 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
1205 die whose range is being checked; get rnglist section from
1206 cu_debug_rnglists_section, to get from either objfile or dwo file as
1207 appropriate. Add cases for DW_RLE_base_addressx,
1208 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
1209 the base address to DW_RLE_offset_pairs (not to all ranges), moving
1210 test inside if-condition and updating complaint message.
1211 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
1212 dwarf2_rnglists_process.
1213 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
1214 dwarf2_ranges_process.
1215 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
1216 need_ranges_base and update comment appropriately. Also pass die tag
1217 to dwarf2_ranges_read.
1218 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
1219 need_ranges_base and update comment appropriately. Also pass die tag
1220 to dwarf2_ranges_process.
1221 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
1222 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
1223 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
1224 need_ranges_base and update comment appropriately. Also pass die tag
1225 to read_attribute_reprocess and dwarf2_ranges_read.
1226 (read_loclist_header): Rename function to read_loclists_rnglists_header,
1227 and update function comment appropriately.
1228 (read_loclist_index): Call read_loclists_rnglists_header instead of
1229 read_loclist_header.
1230 (read_rnglist_index): New function.
1231 (read_attribute_reprocess): Add tag parameter. Add code for
1232 DW_FORM_rnglistx, passing tag to read_rnglist_index.
1233 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
1234
3dcc261c
AB
12352020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
1236
1237 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
1238 being resolved.
1239
ccb9eba6
AB
12402020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
1241
1242 * arch-utils.c (show_architecture): Update formatting of messages.
1243
cf88be68
SM
12442020-07-12 Simon Marchi <simon.marchi@efficios.com>
1245
1246 * gdbtypes.h (struct type) <bounds>: Handle array and string
1247 types.
1248 * ada-lang.c (assign_aggregate): Use type::bounds on
1249 array/string type.
1250 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
1251 * c-varobj.c (c_number_of_children): Likewise.
1252 (c_describe_child): Likewise.
1253 * eval.c (evaluate_subexp_for_sizeof): Likewise.
1254 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
1255 (f_type_print_base): Likewise.
1256 * f-valprint.c (f77_array_offset_tbl): Likewise.
1257 (f77_get_upperbound): Likewise.
1258 (f77_print_array_1): Likewise.
1259 * guile/scm-type.c (gdbscm_type_range): Likewise.
1260 * m2-typeprint.c (m2_array): Likewise.
1261 (m2_is_long_set_of_type): Likewise.
1262 * m2-valprint.c (get_long_set_bounds): Likewise.
1263 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
1264 * python/py-type.c (typy_range): Likewise.
1265 * rust-lang.c (rust_internal_print_type): Likewise.
1266 * type-stack.c (type_stack::follow_types): Likewise.
1267 * valarith.c (value_subscripted_rvalue): Likewise.
1268 * valops.c (value_cast): Likewise.
1269
509971ae
SM
12702020-07-12 Simon Marchi <simon.marchi@efficios.com>
1271
1272 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
1273 callers to use the equivalent accessor methods.
1274
107406b7
SM
12752020-07-12 Simon Marchi <simon.marchi@efficios.com>
1276
1277 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
1278 (struct type) <bit_stride>: New method.
1279 (TYPE_BIT_STRIDE): Remove.
1280 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
1281
bb789949
SM
12822020-07-12 Simon Marchi <simon.marchi@efficios.com>
1283
1284 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
1285 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
1286 callers to use the equivalent accessor methods instead.
1287
39498edb
SM
12882020-07-12 Simon Marchi <simon.marchi@efficios.com>
1289
1290 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
1291 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
1292 callers to use the equivalent accessor methods instead.
1293
3b606f38
SM
12942020-07-12 Simon Marchi <simon.marchi@efficios.com>
1295
1296 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
1297 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
1298 to use dynamic_prop::kind.
1299
064d9cb9
SM
13002020-07-12 Simon Marchi <simon.marchi@efficios.com>
1301
1302 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
1303 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
1304 to get the bound property's kind and check against
1305 PROP_UNDEFINED.
1306
5537ddd0
SM
13072020-07-12 Simon Marchi <simon.marchi@efficios.com>
1308
1309 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
1310 all callers to use type::range_bounds followed by
1311 dynamic_prop::{low,high}.
1312
8c2e4e06
SM
13132020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
1314
1315 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
1316 const_val, set_const_val, baton, set_locexpr, set_loclist,
1317 set_addr_offset, variant_parts, set_variant_parts,
1318 original_type, set_original_type>: New methods.
1319 <kind>: Rename to...
1320 <m_kind>: ... this. Update all users to use the new methods
1321 instead.
1322 <data>: Rename to...
1323 <m_data>: ... this. Update all users to use the new methods
1324 instead.
1325
7c6f2712
SM
13262020-07-12 Simon Marchi <simon.marchi@efficios.com>
1327
1328 * gdbtypes.c (get_discrete_bounds): Return failure if
1329 the range type's bounds are not both defined and constant
1330 values.
1331 (get_array_bounds): Update comment. Remove undefined bound check.
1332
599088e3
SM
13332020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
1334
1335 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
1336 the type::bounds method directly.
1337
c4dfcb36
SM
13382020-07-12 Simon Marchi <simon.marchi@efficios.com>
1339
1340 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
1341 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
1342 are used to set the range type's bounds to use set_bounds.
1343
0a278aa7
PW
13442020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1345
1346 * exec.c (_initialize_exec): Update exec-file-mismatch help.
1347
cce20f10
PA
13482020-07-10 Pedro Alves <pedro@palves.net>
1349
1350 * gdbthread.h (inferior_ref): Define.
1351 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
1352 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
1353 * thread.c
1354 (scoped_restore_current_thread::restore):
1355 Adjust to gdb::ref_ptr.
1356 (scoped_restore_current_thread::~scoped_restore_current_thread):
1357 Remove manual decref handling.
1358 (scoped_restore_current_thread::scoped_restore_current_thread):
1359 Adjust to use
1360 inferior_ref::new_reference/thread_info_ref::new_reference.
1361 Incref the thread before calling get_frame_id instead of after.
1362 Let TARGET_CLOSE_ERROR propagate.
1363
6d7aa592
PA
13642020-07-10 Pedro Alves <pedro@palves.net>
1365
1366 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
1367 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
1368 NOT_AVAILABLE_ERROR.
1369 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
1370 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
1371
b3e3a4c1
SM
13722020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
1373 Pedro Alves <pedro@palves.net>
1374
1375 PR gdb/26199
1376 * infrun.c (threads_are_resumed_pending_p): Delete.
1377 (do_target_wait): Remove threads_are_executing and
1378 threads_are_resumed_pending_p checks from the inferior_matches
1379 lambda. Update comments.
1380
d6cc5d98
PA
13812020-07-10 Pedro Alves <pedro@palves.net>
1382
1383 PR gdb/26199
1384 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
1385 executing threads.
1386
7d3badc6
PA
13872020-07-10 Pedro Alves <pedro@palves.net>
1388
1389 PR gdb/26199
1390 * infrun.c (handle_no_resumed): Handle multiple targets.
1391
42bd97a6
PA
13922020-07-10 Pedro Alves <pedro@palves.net>
1393
1394 PR gdb/26199
1395 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
1396 target_is_async_p.
1397
43667cc6
PA
13982020-07-10 Pedro Alves <pedro@palves.net>
1399
1400 PR gdb/26199
1401 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
1402 threads, not all threads.
1403
96118d11
PA
14042020-07-10 Pedro Alves <pedro@palves.net>
1405
1406 PR gdb/26199
1407 * remote.c (remote_target::open_1): Pass remote target pointer as
1408 data to create_async_event_handler.
1409 (remote_async_inferior_event_handler): Mark async event handler
1410 before returning if the remote target still has either pending
1411 events or unacknowledged notifications.
1412
54904d81
JB
14132020-07-10 John Baldwin <jhb@FreeBSD.org>
1414
1415 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
1416 declaration.
1417 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
1418 function.
1419
f37e5866
JB
14202020-07-09 John Baldwin <jhb@FreeBSD.org>
1421
1422 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
1423 inferior_ptid.
1424
fc238d4a
JB
14252020-07-09 John Baldwin <jhb@FreeBSD.org>
1426
1427 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
1428 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
1429 AT_FREEBSD_PS_STRINGS.
1430
6e2469ff
HD
14312020-07-08 Hannes Domani <ssbssa@yahoo.de>
1432
1433 * auto-load.c (auto_load_objfile_script_1): Convert drive part
1434 of debugfile path on Windows.
1435
d1076c41
JB
14362020-07-08 John Baldwin <jhb@FreeBSD.org>
1437
1438 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
1439 argument to 'data'.
1440
15f3b077
TT
14412020-07-08 Tom Tromey <tromey@adacore.com>
1442
1443 * ada-lang.c (ada_exception_message_1): Use read_memory.
1444
9fc501fd
AB
14452020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1446
1447 PR python/22748
1448 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
1449 special handling for inline frames.
1450 * findvar.c (value_of_register_lazy): Skip inline frames when
1451 creating lazy register values.
1452 * frame.c (frame_id_computed_p): Delete definition.
1453 * frame.h (frame_id_computed_p): Delete declaration.
1454
64cb3757
AB
14552020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1456
1457 * NEWS: Mention additions to Python API.
1458 * python/py-arch.c (archpy_register_groups): New function.
1459 (arch_object_methods): Add 'register_groups' method.
1460 * python/py-registers.c (reggroup_iterator_object): New struct.
1461 (reggroup_object): New struct.
1462 (gdbpy_new_reggroup): New function.
1463 (gdbpy_reggroup_to_string): New function.
1464 (gdbpy_reggroup_name): New function.
1465 (gdbpy_reggroup_iter): New function.
1466 (gdbpy_reggroup_iter_next): New function.
1467 (gdbpy_new_reggroup_iterator): New function
1468 (gdbpy_initialize_registers): Register new types.
1469 (reggroup_iterator_object_type): Define new Python type.
1470 (gdbpy_reggroup_getset): New static global.
1471 (reggroup_object_type): Define new Python type.
1472 * python/python-internal.h
1473
0f767f94
AB
14742020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1475
1476 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
1477 * python/py-arch.c (archpy_registers): New function.
1478 (arch_object_methods): Add 'registers' method.
1479 * python/py-registers.c: New file.
1480 * python/python-internal.h
1481 (gdbpy_new_register_descriptor_iterator): Declare.
1482 (gdbpy_initialize_registers): Declare.
1483 * python/python.c (do_start_initialization): Call
1484 gdbpy_initialize_registers.
1485 * NEWS: Mention additions to the Python API.
1486
87dbc774
AB
14872020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1488
1489 * NEWS: Mention new Python API method.
1490 * python/py-unwind.c (pending_framepy_architecture): New function.
1491 (pending_frame_object_methods): Add architecture method.
1492
3bc98c0c
AB
14932020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1494
1495 * gdbarch.c: Regenerate.
1496 * gdbarch.h: Regenerate.
1497 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
1498 (gdbarch_data): Use internal_error for the case where
1499 deprecated_set_gdbarch_data was originally needed.
1500 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
1501 and use passed in obstack.
1502 (libunwind_frame_set_descr): Should no longer get back NULL from
1503 gdbarch_data.
1504 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
1505 type.
1506 * user-regs.c (user_regs_init): Update parameters, and use passed
1507 in obstack.
1508 (user_reg_add): Should no longer get back NULL from gdbarch_data.
1509 (_initialize_user_regs): Register as a pre-init gdbarch data type.
1510
d8cc8af6
TV
15112020-07-06 Tom de Vries <tdevries@suse.de>
1512
1513 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
1514 End-Of-Sequence in lte_is_less_than.
1515 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
1516 "gdb: Don't reorder line table entries too much when sorting".
1517
947f7597
TV
15182020-07-06 Tom de Vries <tdevries@suse.de>
1519
1520 PR tui/26205
1521 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
1522
1e7c1b22
TV
15232020-07-05 Tom de Vries <tdevries@suse.de>
1524
1525 PR build/26187
1526 * inferior.h (struct infcall_suspend_state_deleter): If available, use
1527 std::uncaught_exceptions instead of deprecated
1528 std::uncaught_exception.
1529
a36158ec
SM
15302020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
1531
1532 * macroexp.h (macro_stringify): Return
1533 gdb::unique_xmalloc_ptr<char>.
1534 * macroexp.c (macro_stringify): Likewise.
1535 * macrotab.c (fixup_definition): Update.
1536
14d960c8
SM
15372020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
1538
1539 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
1540 (lex_one_token): Update.
1541 * macroexp.c (struct macro_buffer) <release>: Return
1542 gdb::unique_xmalloc_ptr<char>.
1543 (macro_stringify): Update.
1544 (macro_expand): Update.
1545 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
1546 * macroexp.h (macro_expand_next): Likewise.
1547
211d5b1c
SM
15482020-07-02 Simon Marchi <simon.marchi@efficios.com>
1549
1550 * macroexp.h (macro_lookup_ftype): Remove.
1551 (macro_expand, macro_expand_once, macro_expand_next): Remove
1552 lookup function parameters, add scope parameter.
1553 * macroexp.c (scan, substitute_args, expand, maybe_expand,
1554 macro_expand, macro_expand_once, macro_expand_next): Likewise.
1555 * macroscope.h (standard_macro_lookup): Change parameter type
1556 to macro_scope.
1557 * macroscope.c (standard_macro_lookup): Likewise.
1558 * c-exp.y (lex_one_token): Update.
1559 * macrocmd.c (macro_expand_command): Likewise.
1560 (macro_expand_once_command): Likewise.
1561
b1a35af2
SM
15622020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
1563
1564 * inf-loop.c (inferior_event_handler): Remove client_data param.
1565 * inf-loop.h (inferior_event_handler): Likewise.
1566 * infcmd.c (step_1): Adjust.
1567 * infrun.c (proceed): Adjust.
1568 (fetch_inferior_event): Remove client_data param.
1569 (infrun_async_inferior_event_handler): Adjust.
1570 * infrun.h (fetch_inferior_event): Remove `void *` param.
1571 * linux-nat.c (handle_target_event): Adjust.
1572 * record-btrace.c (record_btrace_handle_async_inferior_event):
1573 Adjust.
1574 * record-full.c (record_full_async_inferior_event_handler):
1575 Adjust.
1576 * remote.c (remote_async_inferior_event_handler): Adjust.
1577
1cdf9e33
TT
15782020-07-01 Tom Tromey <tom@tromey.com>
1579
1580 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
1581 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
1582
32c1e210
TT
15832020-07-01 Tom Tromey <tom@tromey.com>
1584
1585 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
1586 tui_gen_win_info.
1587 (tui_win_info::make_window): Merge with
1588 tui_gen_win_info::make_window.
1589 (tui_win_info::make_visible): Move from tui_gen_win_info.
1590 * tui/tui-win.c (tui_win_info::max_width): Move from
1591 tui_gen_win_info.
1592 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
1593 type.
1594 <window_factory>: Likewise.
1595 * tui/tui-layout.c (tui_win_info::resize): Move from
1596 tui_gen_win_info.
1597 (make_standard_window): Change return type.
1598 (get_locator_window, tui_get_window_by_name): Likewise.
1599 (tui_layout_window::apply): Remove a cast.
1600 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
1601 (struct tui_win_info): Merge with tui_gen_win_info.
1602 (struct tui_gen_win_info): Remove.
1603
a30cb6da
TT
16042020-07-01 Tom Tromey <tom@tromey.com>
1605
1606 * tui/tui-stack.h (struct tui_locator_window): Derive from
1607 tui_win_info.
1608 <do_scroll_horizontal, do_scroll_vertical>: New methods.
1609 <can_box>: New method.
1610
1eb2161f
TT
16112020-07-01 Tom Tromey <tom@tromey.com>
1612
1613 * tui/tui-stack.h (struct tui_locator_window): Remove body.
1614
7134f2eb
TT
16152020-07-01 Tom Tromey <tom@tromey.com>
1616
1617 * tui/tui-regs.c (tui_data_window::display_registers_from)
1618 (tui_data_window::display_registers_from)
1619 (tui_data_window::first_data_item_displayed)
1620 (tui_data_window::delete_data_content_windows): Update.
1621 (tui_data_window::refresh_window, tui_data_window::no_refresh):
1622 Remove.
1623 (tui_data_window::check_register_values): Update.
1624 (tui_data_item_window::rerender): Add parameters. Update.
1625 (tui_data_item_window::refresh_window): Remove.
1626 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
1627 virtual.
1628 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
1629 tui_gen_win_info.
1630 <refresh_window, max_height, min_height>: Remove.
1631 <rerender>: Add parameters.
1632 <x, y, visible>: New members.
1633 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
1634 <m_item_width>: New member.
1635
22b7b041
TT
16362020-07-01 Tom Tromey <tom@tromey.com>
1637
1638 * tui/tui-regs.c (tui_data_window::show_register_group)
1639 (tui_data_window::check_register_values): Update.
1640 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
1641 from item_no.
1642
c9753adb
TT
16432020-07-01 Tom Tromey <tom@tromey.com>
1644
1645 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
1646 useless "if".
1647
9ab26b4a
TT
16482020-07-01 Tom Tromey <tom@tromey.com>
1649
1650 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
1651 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
1652
e555083f
TT
16532020-07-01 Tom Tromey <tom@tromey.com>
1654
1655 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
1656 * tui/tui-winsource.h (enum tui_line_or_address_kind)
1657 (struct tui_line_or_address): Move from tui-data.h.
1658 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
1659 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
1660 (tui_cmd_window, tui_source_window_base, tui_source_window)
1661 (tui_disasm_window): Don't declare.
1662 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
1663 to tui-winsource.h.
1664 (SINGLE_KEY): Move to tui-stack.c.
1665
7a02bab7
TT
16662020-07-01 Tom Tromey <tom@tromey.com>
1667
1668 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
1669 std::string.
1670 * tui/tui-regs.c (class tab_expansion_file): New.
1671 (tab_expansion_file::write): New method.
1672 (tui_register_format): Change return type. Use
1673 tab_expansion_file.
1674 (tui_get_register, tui_data_window::display_registers_from)
1675 (tui_data_item_window::rerender): Update.
1676 * tui/tui-io.h (tui_expand_tabs): Don't declare.
1677 * tui/tui-io.c (tui_expand_tabs): Remove.
1678
ea68593b
TT
16792020-07-01 Tom Tromey <tom@tromey.com>
1680
1681 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
1682
a8caed5d
FS
16832020-07-01 Fangrui Song <maskray@google.com>
1684
1685 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
1686
9cdf9820
AKS
16872020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
1688
1689 * dwarf2/read.c (set_die_type): Removed conditions to restrict
1690 forms for DW_AT_associated and DW_AT_allocated attributes,
1691 which is already checked in function attr_to_dynamic_prop.
1692
a1520ad8
TT
16932020-06-30 Tom Tromey <tromey@adacore.com>
1694
1695 * dwarf2/read.c (quirk_rust_enum): Correctly call
1696 alloc_rust_variant for default-less enum.
1697
5ac58899
TT
16982020-06-30 Tom Tromey <tromey@adacore.com>
1699
1700 PR build/26183:
1701 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
1702 gdb::to_string.
1703
19b187a9
SM
17042020-06-29 Simon Marchi <simon.marchi@efficios.com>
1705
1706 * gdbarch.sh (displaced_step_copy_insn): Update doc.
1707 * gdbarch.h: Re-generate.
1708
cd4c4c07
TT
17092020-06-28 Tom Tromey <tom@tromey.com>
1710
1711 * command.h (cmd_types): Remove.
1712 (cmd_type): Don't declare.
1713 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
1714 typedef.
1715 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
1716 * cli/cli-decode.c (cmd_type): Remove.
1717
05779d57
PA
17182020-06-27 Pedro Alves <palves@redhat.com>
1719
1720 * fork-child.c (prefork_hook): Adjust.
1721 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
1722 Delete.
1723 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
1724 * inferior.c (inferior::set_tty, inferior::tty): New methods.
1725 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
1726 Remove declarations.
1727 (struct inferior) <set_tty, tty>: New methods.
1728 (struct inferior) <terminal>: Rename to ...
1729 (struct inferior) <m_terminal>: ... this and make private.
1730 * main.c (captured_main_1): Adjust.
1731 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
1732 (mi_cmd_inferior_tty_show): Adjust.
1733 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
1734 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
1735
1776e3e5
NA
17362020-06-26 Nick Alcock <nick.alcock@oracle.com>
1737
1738 * configure.ac: Add --enable-libctf: handle --disable-static
1739 properly.
1740 * acinclude.m4: sinclude ../config/enable.m4.
1741 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
1742 (LIBCTF): Substitute in.
1743 (CTF_DEPS): New, likewise.
1744 (CLIBS): libctf needs symbols from libbfd: move earlier.
1745 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
1746 flags.
1747 * ctfread.c: Surround in ENABLE_LIBCTF.
1748 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
1749 * configure: Regenerate.
1750 * config.in: Likewise.
1751
58373b80
SM
17522020-06-25 Simon Marchi <simon.marchi@efficios.com>
1753
1754 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
1755
277474ee
SM
17562020-06-25 Simon Marchi <simon.marchi@efficios.com>
1757
1758 * inferior.h (struct inferior) <terminal>: Change type to
1759 gdb::unique_xmalloc_ptr<char>.
1760 * inferior.c (inferior::~inferior): Don't free inf->terminal.
1761 * infcmd.c (set_inferior_io_terminal): Don't free terminal
1762 field, adjust to unique pointer.
1763 (get_inferior_io_terminal): Adjust to unique pointer.
1764
6d74da72
AB
17652020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1766
1767 * riscv-tdep.c (riscv_print_registers_info): Loop over all
1768 registers, not just the known core set of registers.
1769
2e52d038
AB
17702020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1771
1772 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
1773 fflags, frm, and fcsr registers.
1774 (riscv_register_reggroup_p): Remove unknown CSRs from save and
1775 restore groups.
1776 (riscv_tdesc_unknown_reg): New function.
1777 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
1778 tdesc_use_registers.
1779 * riscv-tdep.h (struct gdbarch_tdep): Add
1780 unknown_csrs_first_regnum, unknown_csrs_count,
1781 duplicate_fflags_regnum, duplicate_frm_regnum, and
1782 duplicate_fcsr_regnum fields.
1783
be64fd07
AB
17842020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1785
1786 * target-descriptions.c (tdesc_use_registers): Add new parameter a
1787 callback, use the callback (when not null) to help number unknown
1788 registers.
1789 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
1790 (tdesc_use_registers): Add extra parameter to declaration.
1791
3b9fce96
AB
17922020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1793
1794 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
1795 in the file.
1796 (class riscv_pending_register_alias): Likewise.
1797 (riscv_register_feature::register_info): Change 'required_p' field
1798 to 'required', and change its type. Add 'check' member function.
1799 (riscv_register_feature::register_info::check): Define new member
1800 function.
1801 (riscv_xreg_feature): Change initialisation of 'required' field.
1802 (riscv_freg_feature): Likewise.
1803 (riscv_virtual_feature): Likewise.
1804 (riscv_csr_feature): Likewise.
1805 (riscv_check_tdesc_feature): Take extra parameter, the csr
1806 tdesc_feature, rewrite the function to use the new
1807 riscv_register_feature::register_info::check function.
1808 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
1809
865bad26
AB
18102020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1811
1812 * features/Makefile: Remove all references to the deleted files
1813 below.
1814 * features/riscv/32bit-csr.c: Deleted.
1815 * features/riscv/32bit-csr.xml: Deleted.
1816 * features/riscv/64bit-csr.c: Deleted.
1817 * features/riscv/64bit-csr.xml: Deleted.
1818 * features/riscv/rebuild-csr-xml.sh: Deleted.
1819
ed69cbc8
AB
18202020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1821
1822 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
1823 whitespace error for declaration of names member variable.
1824 (struct riscv_register_feature): Add new prefer_first_name member
1825 variable, and fix whitespace error in declaration of registers.
1826 (riscv_xreg_feature): Initialize prefer_first_name field.
1827 (riscv_freg_feature): Likewise.
1828 (riscv_virtual_feature): Likewise.
1829 (riscv_csr_feature): Likewise.
1830 (riscv_register_name): Expand on comments. Remove register name
1831 modifications for CSR and virtual registers.
1832
4445e8f5
AB
18332020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1834
1835 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
1836 errors.
1837
767a879e
AB
18382020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1839
1840 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
1841 riscv-opc.h.
1842 (class riscv_pending_register_alias): New class.
1843 (riscv_check_tdesc_feature): Take vector of pending aliases and
1844 populate it as appropriate.
1845 (riscv_setup_register_aliases): Delete.
1846 (riscv_gdbarch_init): Create vector of pending aliases and pass it
1847 to riscv_check_tdesc_feature in all cases. Use the vector to
1848 create the register aliases.
1849
bb6e55f3
RO
18502020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1851
1852 * sol2-tdep.c (sol2_static_transform_name): Remove.
1853 (sol2_init_abi): Don't register it.
1854 * gdbarch.sh (static_transform_name): Remove.
1855 * gdbarch.c, gdbarch.h: Regenerate.
1856
1857 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
1858 gdbarch_static_transform_name.
1859 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
1860 * stabsread.c (define_symbol) <'X'>: Remove.
1861 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
1862 handling.
1863 <'V'>: Likewise.
1864 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
1865 <'S'>: Remove call to gdbarch_static_transform_name.
1866
c6d36836
RO
18672020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1868
1869 * procfs.c (procfs_pre_trace): New function.
1870 (procfs_target::create_inferior): Pass it to fork_inferior.
1871
a7e6196b
RO
18722020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1873
1874 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
1875 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
1876 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
1877 sol2-tdep.o, sparc-sol2-tdep.o.
1878 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
1879 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
1880 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
1881 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
1882
d412e696
RO
18832020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1884
1885 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
1886 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
1887 Call sol2_init_abi.
1888 Remove calls to set_gdbarch_skip_solib_resolver,
1889 set_gdbarch_core_pid_to_str.
1890 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
1891 (i386_sol2_static_transform_name): Remove.
1892 (i386_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, set_gdbarch_core_pid_to_str.
1896 Use sol2_sigtramp_p.
1897 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
1898 (sol2_sigtramp_p): New function.
1899 (sol2_static_transform_name): New function.
1900 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
1901 (sol2_init_abi): New function.
1902 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
1903 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
1904 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
1905 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
1906 (sparc_sol2_static_transform_name): Remove.
1907 (sparc32_sol2_init_abi): Call sol2_init_abi.
1908 Remove calls to set_gdbarch_sofun_address_maybe_missing,
1909 set_gdbarch_static_transform_name,
1910 set_gdbarch_skip_solib_resolver,
1911 set_gdbarch_core_pid_to_str.
1912 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
1913 (sparc_sol2_static_transform_name): Remove
1914 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
1915 call sol2_sigtramp_p.
1916 (sparc64_sol2_init_abi): Call sol2_init_abi.
1917 Remove calls to set_gdbarch_sofun_address_maybe_missing,
1918 set_gdbarch_static_transform_name,
1919 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
1920
a8654e7d
PW
19212020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1922
1923 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
1924 * exec.c (validate_exec_file): If from_tty, set both
1925 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
1926 * symfile.c (symbol_file_add_with_addrs): if always_confirm
1927 and from_tty, unconditionally ask a confirmation.
1928
caa7fd04
AB
19292020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1930
1931 * target-descriptions.c (tdesc_architecture_name): Protect against
1932 NULL pointer dereference.
1933 (maint_print_xml_tdesc_cmd): New function.
1934 (_initialize_target_descriptions): Register new 'maint print
1935 xml-tdesc' command and give it the filename completer.
1936 * NEWS: Mention new 'maint print xml-tdesc' command.
1937
fbf42f4e
AB
19382020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1939
1940 * target-descriptions.c (class tdesc_compatible_info): New class.
1941 (struct target_desc): Change type of compatible vector.
1942 (tdesc_compatible_p): Update for change in type of
1943 target_desc::compatible.
1944 (tdesc_compatible_info_list): New function.
1945 (tdesc_compatible_info_arch_name): New function.
1946 (tdesc_add_compatible): Update for change in type of
1947 target_desc::compatible.
1948 (print_c_tdesc::visit_pre): Likewise.
1949
20821f4e
AB
19502020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1951
1952 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
1953 whitespace to underscore.
1954 (maint_print_c_tdesc_cmd): Use fake filename for target
1955 descriptions that came from the target.
1956 (_initialize_target_descriptions): Add filename command completion
1957 for 'maint print c-tdesc'.
1958
1fb5ee62
SM
19592020-06-23 Simon Marchi <simon.marchi@efficios.com>
1960
1961 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
1962 lines.
1963
fc3ecb3e
SM
19642020-06-23 Simon Marchi <simon.marchi@efficios.com>
1965
1966 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
1967 lines.
1968 (dwarf2_find_location_expression): Likewise.
1969 (call_site_parameter_matches): Likewise.
1970 (dwarf2_compile_expr_to_ax): Likewise.
1971 (disassemble_dwarf_expression): Likewise.
1972 (loclist_describe_location): Likewise.
1973
236ef034
PA
19742020-06-23 Pedro Alves <palves@redhat.com>
1975
1976 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
1977 progspace-and-thread.h. Include scoped-mock-context.h instead.
1978 (register_to_value_test): Use scoped_mock_context.
1979 * regcache.c: Include "scoped-mock-context.h".
1980 (cooked_read_test): Don't error out if a target is already pushed.
1981 Use scoped_mock_context. Adjust.
1982 * scoped-mock-context.h: New file.
1983
39e7ecca
AB
19842020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1985
1986 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
1987 initializer.
1988 (ada_language::is_string_type_p): New member function.
1989 * c-lang.c (c_language_data): Delete la_is_string_type_p
1990 initializer.
1991 (cplus_language_data): Likewise.
1992 (asm_language_data): Likewise.
1993 (minimal_language_data): Likewise.
1994 * d-lang.c (d_language_data): Likewise.
1995 * f-lang.c (f_is_string_type_p): Delete function, implementation
1996 moved to f_language::is_string_type_p.
1997 (f_language_data): Delete la_is_string_type_p initializer.
1998 (f_language::is_string_type_p): New member function,
1999 implementation from f_is_string_type_p.
2000 * go-lang.c (go_is_string_type_p): Delete function, implementation
2001 moved to go_language::is_string_type_p.
2002 (go_language_data): Delete la_is_string_type_p initializer.
2003 (go_language::is_string_type_p): New member function,
2004 implementation from go_is_string_type_p.
2005 * language.c (language_defn::is_string_type_p): Define new member
2006 function.
2007 (default_is_string_type_p): Make static, add comment copied from
2008 header file.
2009 (unknown_language_data): Delete la_is_string_type_p initializer.
2010 (unknown_language::is_string_type_p): New member function.
2011 (auto_language_data): Delete la_is_string_type_p initializer.
2012 (auto_language::is_string_type_p): New member function.
2013 * language.h (language_data): Delete la_is_string_type_p field.
2014 (language_defn::is_string_type_p): Declare new function.
2015 (default_is_string_type_p): Delete desclaration, move comment to
2016 definition.
2017 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
2018 moved to m2_language::is_string_type_p.
2019 (m2_language_data): Delete la_is_string_type_p initializer.
2020 (m2_language::is_string_type_p): New member function,
2021 implementation from m2_is_string_type_p.
2022 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
2023 initializer.
2024 * opencl-lang.c (opencl_language_data): Likewise.
2025 * p-lang.c (pascal_is_string_type_p): Delete function,
2026 implementation moved to pascal_language::is_string_type_p.
2027 (pascal_language_data): Delete la_is_string_type_p initializer.
2028 (pascal_language::is_string_type_p): New member function,
2029 implementation from pascal_is_string_type_p.
2030 * rust-lang.c (rust_is_string_type_p): Delete function,
2031 implementation moved to rust_language::is_string_type_p.
2032 (rust_language_data): Delete la_is_string_type_p initializer.
2033 (rust_language::is_string_type_p): New member function,
2034 implementation from rust_is_string_type_p.
2035 * valprint.c (val_print_scalar_or_string_type_p): Update call to
2036 is_string_type_p.
2037
4ffc13fb
AB
20382020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2039
2040 * ada-lang.c (ada_language_data): Delete la_print_typedef
2041 initializer.
2042 (ada_language::print_typedef): New member function.
2043 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
2044 (cplus_language_data): Likewise.
2045 (asm_language_data): Likewise.
2046 (minimal_language_data): Likewise.
2047 * d-lang.c (d_language_data): Likewise.
2048 * f-lang.c (f_language_data): Likewise.
2049 (f_language::print_typedef): New member function.
2050 * go-lang.c (go_language_data): Delete la_print_typedef
2051 initializer.
2052 * language.c (language_defn::print_typedef): Define member
2053 function.
2054 (unknown_language_data): Delete la_print_typedef initializer.
2055 (unknown_language::print_typedef): New member function.
2056 (auto_language_data): Delete la_print_typedef initializer.
2057 (auto_language::print_typedef): New member function.
2058 * language.h (language_data): Delete la_print_typedef field.
2059 (language_defn::print_typedef): Declare new member function.
2060 (LA_PRINT_TYPEDEF): Update call to print_typedef.
2061 (default_print_typedef): Delete declaration.
2062 * m2-lang.c (m2_language_data): Delete la_print_typedef
2063 initializer.
2064 (m2_language::print_typedef): New member function.
2065 * objc-lang.c (objc_language_data): Delete la_print_typedef
2066 initializer.
2067 * opencl-lang.c (opencl_language_data): Likewise.
2068 * p-lang.c (pascal_language_data): Likewise.
2069 (pascal_language::print_typedef): New member function.
2070 * rust-lang.c (rust_print_typedef): Delete function,
2071 implementation moved to rust_language::print_typedef.
2072 (rust_language): Delete la_print_typedef initializer.
2073 (rust_language::print_typedef): New member function,
2074 implementation from rust_print_typedef.
2075 * typeprint.c (default_print_typedef): Delete.
2076
d711ee67
AB
20772020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2078
2079 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
2080 (ada_language::printstr): New member function.
2081 * c-lang.c (c_language_data): Delete la_printstr initializer.
2082 (cplus_language_data): Likewise.
2083 (asm_language_data): Likewise.
2084 (minimal_language_data): Likewise.
2085 * d-lang.c (d_language_data): Likewise.
2086 * f-lang.c (f_printstr): Rename to f_language::printstr.
2087 (f_language_data): Delete la_printstr initializer.
2088 (f_language::printstr): New member function, implementation from
2089 f_printstr.
2090 * go-lang.c (go_language_data): Delete la_printstr initializer.
2091 * language.c (language_defn::printstr): Define new member
2092 function.
2093 (unk_lang_printstr): Delete.
2094 (unknown_language_data): Delete la_printstr initializer.
2095 (unknown_language::printstr): New member function.
2096 (auto_language_data): Delete la_printstr initializer.
2097 (auto_language::printstr): New member function.
2098 * language.h (language_data): Delete la_printstr field.
2099 (language_defn::printstr): Declare new member function.
2100 (LA_PRINT_STRING): Update call to printstr.
2101 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
2102 (m2_language_data): Delete la_printstr initializer.
2103 (m2_language::printstr): New member function, implementation from
2104 m2_printstr.
2105 * objc-lang.c (objc_language_data): Delete la_printstr
2106 initializer.
2107 * opencl-lang.c (opencl_language_data): Likewise.
2108 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
2109 (pascal_language_data): Delete la_printstr initializer.
2110 (pascal_language::printstr): New member function, implementation
2111 from pascal_printstr.
2112 * p-lang.h (pascal_printstr): Delete declaration.
2113 * rust-lang.c (rust_printstr): Update header comment.
2114 (rust_language_data): Delete la_printstr initializer.
2115 (rust_language::printstr): New member function.
2116
52b50f2c
AB
21172020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2118
2119 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
2120 (ada_language::printchar): New member function.
2121 * c-lang.c (c_language_data): Delete la_printchar initializer.
2122 (cplus_language_data): Likewise.
2123 (asm_language_data): Likewise.
2124 (minimal_language_data): Likewise.
2125 * d-lang.c (d_language_data): Likewise.
2126 * f-lang.c (f_printchar): Rename to f_language::printchar.
2127 (f_language_data): Delete la_printchar initializer.
2128 (f_language::printchar): New member function, implementation from
2129 f_printchar.
2130 * go-lang.c (go_language_data): Delete la_printchar initializer.
2131 * language.c (unk_lang_printchar): Delete.
2132 (language_defn::printchar): Define new member function.
2133 (unknown_language_data): Delete la_printchar initializer.
2134 (unknown_language::printchar): New member function.
2135 (auto_language_data): Delete la_printchar initializer.
2136 (auto_language::printchar): New member function.
2137 * language.h (language_data): Delete la_printchar field.
2138 (language_defn::printchar): Declare new member function.
2139 (LA_PRINT_CHAR): Update call to printchar.
2140 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
2141 (m2_language::printchar): New member function.
2142 * objc-lang.c (objc_language_data): Delete la_printchar
2143 initializer.
2144 * opencl-lang.c (opencl_language_data): Likewise.
2145 * p-lang.c (pascal_language_data): Delete la_printchar
2146 initializer.
2147 (pascal_language::printchar): New member function.
2148 * rust-lang.c (rust_printchar): Rename to
2149 rust_language::printchar.
2150 (rust_language_data): Delete la_printchar initializer.
2151 (rust_language::printchar): New member function, implementation
2152 from rust_printchar.
2153
ec8cec5b
AB
21542020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2155
2156 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
2157 (ada_language_data): Delete la_emitchar initializer.
2158 (ada_language::emitchar): New member function, implementation from
2159 emit_char.
2160 * c-lang.c (c_language_data): Delete la_emitchar initializer.
2161 (cplus_language_data): Likewise.
2162 (asm_language_data): Likewise.
2163 (minimal_language_data): Likewise.
2164 * d-lang.c (d_language_data): Likewise.
2165 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
2166 (f_language_data): Delete la_emitchar initializer.
2167 (f_language::emitchar): New member function, implementation from
2168 f_emit_char.
2169 * go-lang.c (go_language_data): Delete la_emitchar initializer.
2170 * language.c (unk_lang_emit_char): Delete.
2171 (language_defn::emitchar): New member function definition.
2172 (unknown_language_data): Delete la_emitchar initializer.
2173 (unknown_language::emitchar): New member function.
2174 (auto_language_data): Delete la_emitchar initializer.
2175 (auto_language::emitchar): New member function.
2176 * language.h (language_data): Delete la_emitchar field.
2177 (language_defn::emitchar): New member field declaration.
2178 (LA_EMIT_CHAR): Update call to emitchar.
2179 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
2180 (m2_language_data): Delete la_emitchar initializer.
2181 (m2_language::emitchar): New member function, implementation from
2182 m2_emit_char.
2183 * objc-lang.c (objc_language_data): Delete la_emitchar
2184 initializer.
2185 * opencl-lang.c (opencl_language_data): Likewise.
2186 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
2187 (pascal_language_data): Delete la_emitchar initializer.
2188 (pascal_language::emitchar): New member function, implementation
2189 from pascal_emit_char.
2190 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
2191 (rust_language_data): Delete la_emitchar initializer.
2192 (rust_language::emitchar): New member function, implementation
2193 from rust_emitchar.
2194
1bf9c363
AB
21952020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2196
2197 * ada-lang.c (resolve): Rename to ada_language::post_parser.
2198 (ada_language_data): Delete la_post_parser initializer.
2199 (ada_language::post_parser): New member function.
2200 * c-lang.c (c_language_data): Delete la_post_parser initializer.
2201 (cplus_language_data): Likewise.
2202 (asm_language_data): Likewise.
2203 (minimal_language_data): Likewise.
2204 * d-lang.c (d_language_data): Likewise.
2205 * f-lang.c (f_language_data): Likewise.
2206 * go-lang.c (go_language_data): Likewise.
2207 * language.c (unknown_language_data): Likewise.
2208 (auto_language_data): Likewise.
2209 * language.h (language_data): Delete la_post_parser field.
2210 (language_defn::post_parser): New member function.
2211 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
2212 * objc-lang.c (objc_language_data): Likewise.
2213 * opencl-lang.c (opencl_language_data): Likewise.
2214 * p-lang.c (pascal_language_data): Likewise.
2215 * parse.c (parse_exp_in_context): Update call to post_parser.
2216 (null_post_parser): Delete definition.
2217 * parser-defs.h (null_post_parser): Delete declaration.
2218 * rust-lang.c (rust_language_data): Delete la_post_parser
2219 initializer.
2220
87afa652
AB
22212020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2222
2223 * ada-lang.c (parse): Rename to ada_language::parser.
2224 (ada_language_data): Delete la_parser initializer.
2225 (ada_language::parser): New member function, implementation from
2226 parse.
2227 * c-lang.c (c_language_data): Delete la_parser initializer.
2228 (cplus_language_data): Likewise.
2229 (asm_language_data): Likewise.
2230 (minimal_language_data): Likewise.
2231 * d-lang.c (d_language_data): Likewise.
2232 (d_language::parser): New member function.
2233 * f-lang.c (f_language_data): Delete la_parser initializer.
2234 (f_language::parser): New member function.
2235 * go-lang.c (go_language_data): Delete la_parser initializer.
2236 (go_language::parser): New member function.
2237 * language.c (unk_lang_parser): Delete.
2238 (language_defn::parser): Define new member function.
2239 (unknown_language_data): Delete la_parser initializer.
2240 (unknown_language::parser): New member function.
2241 (auto_language_data): Delete la_parser initializer.
2242 (auto_language::parser): New member function.
2243 * language.h (language_data): Delete la_parser field.
2244 (language_defn::parser): Declare new member function.
2245 * m2-lang.c (m2_language_data): Delete la_parser initializer.
2246 (m2_language::parser): New member function.
2247 * objc-lang.c (objc_language_data): Delete la_parser initializer.
2248 * opencl-lang.c (opencl_language_data): Likewise.
2249 * p-lang.c (pascal_language_data): Likewise.
2250 (pascal_language::parser): New member function.
2251 * parse.c (parse_exp_in_context): Update call to parser.
2252 * rust-lang.c (rust_language_data): Delete la_parser initializer.
2253 (rust_language::parser): New member function.
2254
37825800
AB
22552020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2256
2257 * top.c (print_gdb_configuration): Print --with-python-libdir
2258 configuration value.
2259
5b860c93
PW
22602020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2261
2262 * NEWS: Mention change to the alias command.
2263
cf00cd6f
PW
22642020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2265
2266 * cli/cli-cmds.c (lookup_cmd_for_default_args)
2267 (alias_command_completer)
2268 (make_alias_options_def_group): New functions.
2269 (alias_opts, alias_option_defs): New struct and array.
2270 (alias_usage_error): Update usage.
2271 (alias_command): Handles optional DEFAULT-ARGS... arguments.
2272 Use option framework.
2273 (_initialize_cli_cmds): Update alias command help.
2274 Update aliases command help.
2275 (show_user):
2276 Add NULL for new default_args lookup_cmd argument.
2277 (valid_command_p): Rename to validate_aliased_command.
2278 Add NULL for new default_args lookup_cmd argument. Verify that the
2279 aliased_command has no default args.
2280 * cli/cli-decode.c (help_cmd): Show aliases definitions.
2281 (lookup_cmd_1, lookup_cmd): New argument default_args.
2282 (add_alias_cmd):
2283 Add NULL for new default_args lookup_cmd argument.
2284 (print_help_for_command): Show default args under the layout
2285 alias some_alias = some_aliased_cmd some_alias_default_arg.
2286 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
2287 xfree default_args in destructor.
2288 * cli/cli-script.c (process_next_line, do_define_command):
2289 Add NULL for new default_args lookup_cmd argument.
2290 * command.h: Declare new default_args argument in lookup_cmd
2291 and lookup_cmd_1.
2292 * completer.c (complete_line_internal_1):
2293 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
2294 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
2295 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
2296 Likewise.
2297 * infcmd.c (_initialize_infcmd): Likewise.
2298 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
2299 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
2300 * python/py-param.c (add_setshow_generic): Likewise.
2301 * remote.c (_initialize_remote): Likewise.
2302 * top.c (execute_command): Prepend default_args if command has some.
2303 (set_verbose):
2304 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
2305 * tracepoint.c (validate_actionline, encode_actions_1):
2306 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
2307
bd920864
TBA
23082020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2309
2310 * jit.c (jit_read_descriptor): Use bool as the return type.
2311 (jit_breakpoint_re_set_internal): Use bool as the return type.
2312 Invert the return value logic; return true if the jit breakpoint
2313 has been successfully initialized.
2314 (jit_inferior_init): Update the call to
2315 jit_breakpoint_re_set_internal.
2316
f8098322
PA
23172020-06-22 Pedro Alves <palves@redhat.com>
2318
2319 PR gdb/25939
2320 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
2321 Use the current inferior instead. Don't return
2322 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
2323 wait again.
2324 * sol-thread.c (sol_thread_target::wait): Don't reference
2325 inferior_ptid.
2326 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
2327 (sol_update_thread_list_callback): Use the current inferior's pid
2328 instead of inferior_ptid.
2329
196535a6
RO
23302020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2331
2332 * procfs.c: Cleanup many comments.
2333
2334 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
2335 (AFTER_WATCHFLAG): Replace by value.
2336
2337 (MAIN_PROC_NAME_FORMAT): Inline ...
2338 (create_procinfo): ... here.
2339
2340 (procfs_debug_inferior): Remove SYS_exec handling.
2341 (syscall_is_exec): Likewise.
2342 (procfs_set_exec_trap): Likewise.
2343
2344 (syscall_is_lwp_exit): Inline in callers.
2345 (syscall_is_exit): Likewise.
2346 (syscall_is_exec): Likewise.
2347 (syscall_is_lwp_create): Likewise.
2348
2349 (invalidate_cache): Remove #if 0 code.
2350
2351 (make_signal_thread_runnable): Remove.
2352 (procfs_target::resume): Remove #if 0 code.
2353
cf6f3e86
RO
23542020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2355
2356 PR gdb/25939
2357 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
2358 call ...
2359 (procfs_target::create_inferior): ... here.
2360
48e9cc84
PW
23612020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2362
2363 * exec.c (validate_exec_file): Ensure the build-id is up to
2364 date by calling reopen_exec_file (that checks file timestamp
2365 to decide to re-read the file).
2366
3922b302
PA
23672020-06-18 Pedro Alves <palves@redhat.com>
2368
2369 PR gdb/25412
2370 * gdbthread.h (delete_thread, delete_thread_silent)
2371 (find_thread_ptid): Update comments.
2372 * thread.c (current_thread_): New global.
2373 (is_current_thread): Move higher, and reimplement.
2374 (inferior_thread): Reimplement.
2375 (set_thread_exited): Use bool. Add assertions.
2376 (add_thread_silent): Simplify thread-reuse handling by always
2377 calling delete_thread.
2378 (delete_thread): Remove intro comment.
2379 (find_thread_ptid): Skip exited threads.
2380 (switch_to_thread_no_regs): Write to current_thread_.
2381 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
2382 INFERIOR_PTID. Clear current_thread_.
2383
6dbdab44
PA
23842020-06-18 Pedro Alves <palves@redhat.com>
2385
2386 * aix-thread.c (pd_update): Use switch_to_thread.
2387
2da4b788
PA
23882020-06-18 Pedro Alves <palves@redhat.com>
2389
2390 * ravenscar-thread.c (ravenscar_thread_target): Update.
2391 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
2392 (ravenscar_thread_target::add_active_thread): ... this. Don't
2393 set m_base_ptid here. Update to avoid referencing inferior_ptid.
2394 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
2395
50838d1b
PA
23962020-06-18 Pedro Alves <palves@redhat.com>
2397
2398 * nat/windows-nat.c (current_windows_thread): Remove.
2399 * nat/windows-nat.h (current_windows_thread): Remove.
2400 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
2401 Adjust.
2402 (display_selectors): Adjust to fetch the current
2403 windows_thread_info based on inferior_ptid.
2404 (fake_create_process): No longer write to current_windows_thread.
2405 (windows_nat_target::get_windows_debug_event):
2406 Don't set inferior_ptid or current_windows_thread.
2407 (windows_nat_target::wait): Adjust to not rely on
2408 current_windows_thread.
2409 (do_initial_windows_stuff): Now a method of windows_nat_target.
2410 Switch to the last_ptid thread.
2411 (windows_nat_target::attach): Adjust.
2412 (windows_nat_target::detach): Use switch_to_no_thread instead of
2413 writing to inferior_ptid directly.
2414 (windows_nat_target::create_inferior): Adjust.
2415
31ce04e9
PA
24162020-06-18 Pedro Alves <palves@redhat.com>
2417
2418 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
2419
1ee1a363
PA
24202020-06-18 Pedro Alves <palves@redhat.com>
2421
2422 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
2423 after creating it, instead of writing to inferior_ptid. Don't
2424 write to inferior_ptid.
2425
6d350754
PA
24262020-06-18 Pedro Alves <palves@redhat.com>
2427
2428 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
2429
5d971d48
PA
24302020-06-18 Pedro Alves <palves@redhat.com>
2431
2432 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
2433 it, instead of writing to inferior_ptid.
2434
86e57d1b
PA
24352020-06-18 Pedro Alves <palves@redhat.com>
2436
2437 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
2438 to inferior_ptid.
2439
f2e1c129
PA
24402020-06-18 Pedro Alves <palves@redhat.com>
2441
2442 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
2443 instead of writing to inferior_ptid directly.
2444
60db1b85
PA
24452020-06-18 Pedro Alves <palves@redhat.com>
2446
2447 * corelow.c (core_target::close): Use switch_to_no_thread instead
2448 of writing to inferior_ptid directly.
2449 (add_to_thread_list, core_target_open): Use switch_to_thread
2450 instead of writing to inferior_ptid directly.
2451
fe7d6a8d
PA
24522020-06-18 Pedro Alves <palves@redhat.com>
2453
2454 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
2455 inferior_ptid.
2456 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
2457 inferior_ptid.
2458 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
2459 inferior_ptid directly.
2460 (darwin_nat_target::init_thread_list): Switch to thread, instead
2461 of writing to inferior_ptid.
2462 (darwin_nat_target::attach): Don't write to inferior_ptid.
2463 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
2464
975f8708
PA
24652020-06-18 Pedro Alves <palves@redhat.com>
2466
2467 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
2468 thread.
2469 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
2470 Instead use switch_to_thread.
2471 (gnu_nat_target::detach): Use switch_to_no_thread
2472 instead of writing to inferior_ptid directly. Used passed-in
2473 inferior instead of looking up the inferior by pid.
2474
1a204730
PA
24752020-06-18 Pedro Alves <palves@redhat.com>
2476
2477 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
2478 inferior_ptid.
2479
ebe84f23
PA
24802020-06-18 Pedro Alves <palves@redhat.com>
2481
2482 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
2483 inferior_ptid.
2484 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
2485 thread.
2486 (nto_procfs_target::detach): Avoid referencing
2487 inferior_ptid. Use switch_to_no_thread instead of writing to
2488 inferior_ptid directly.
2489 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
2490 instead of writing to inferior_ptid directly.
2491 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
2492 to thread.
2493
191f02e5
PA
24942020-06-18 Pedro Alves <palves@redhat.com>
2495
2496 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
2497 after creating it, instead of writing to inferior_ptid.
2498 (gdbsim_target_open): Use switch_to_no_thread instead of writing
2499 to inferior_ptid directly.
2500 (gdbsim_target::wait): Don't write to inferior_ptid.
2501
0ac55310
PA
25022020-06-18 Pedro Alves <palves@redhat.com>
2503
2504 * remote.c (remote_target::remote_notice_new_inferior): Use
2505 switch_to_thread instead of writing to inferior_ptid directly.
2506 (remote_target::add_current_inferior_and_thread): Use
2507 switch_to_no_thread instead of writing to inferior_ptid directly.
2508 (extended_remote_target::attach): Use switch_to_inferior_no_thread
2509 and switch_to_thread instead of using set_current_inferior or
2510 writing to inferior_ptid directly.
2511
5233f39b
PA
25122020-06-18 Pedro Alves <palves@redhat.com>
2513
2514 * tracectf.c (ctf_target_open): Switch to added thread instead of
2515 writing to inferior_ptid directly.
2516 (ctf_target::close): Use switch_to_no_thread instead of writing to
2517 inferior_ptid directly.
2518
087e161b
PA
25192020-06-18 Pedro Alves <palves@redhat.com>
2520
2521 * tracefile-tfile.c (tfile_target_open): Don't write to
2522 inferior_ptid directly, instead switch to added thread.
2523 (tfile_target::close): Use switch_to_no_thread instead of writing
2524 to inferior_ptid directly.
2525
7fb43e53
PA
25262020-06-18 Pedro Alves <palves@redhat.com>
2527
2528 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
2529 (procfs_target::detach): Use switch_to_no_thread
2530 instead of writing to inferior_ptid directly.
2531 (do_attach): Change return type to void. Switch to the added
2532 thread.
2533 (procfs_target::create_inferior): Switch to the added thread.
2534 (procfs_do_thread_registers): Don't write to inferior_ptid.
2535
18493a00
PA
25362020-06-18 Pedro Alves <palves@redhat.com>
2537
2538 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
2539 of writing to inferior_ptid.
2540 (scoped_restore_exited_inferior): Delete.
2541 (handle_vfork_child_exec_or_exit): Simplify using
2542 scoped_restore_current_pspace_and_thread. Use switch_to_thread
2543 instead of writing to inferior_ptid.
2544 (THREAD_STOPPED_BY): Delete.
2545 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
2546 (thread_stopped_by_hw_breakpoint): Delete.
2547 (save_waitstatus): Use
2548 scoped_restore_current_thread+switch_to_thread, and call
2549 target_stopped_by_watchpoint instead of
2550 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
2551 instead of thread_stopped_by_sw_breakpoint, and
2552 target_stopped_by_hw_breakpoint instead of
2553 thread_stopped_by_hw_breakpoint.
2554 (handle_inferior_event)
2555 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
2556 inferior_ptid directly, nor
2557 set_current_inferior/set_current_program_space. Use
2558 switch_to_thread / switch_to_inferior_no_thread instead.
2559
a0776b13
PA
25602020-06-18 Pedro Alves <palves@redhat.com>
2561
2562 * target.c (generic_mourn_inferior): Use switch_to_no_thread
2563 instead of writing to inferior_ptid.
2564
6155c136
PA
25652020-06-18 Pedro Alves <palves@redhat.com>
2566
2567 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
2568 added thread.
2569 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
2570 to the added thread.
2571 (inf_ptrace_target::detach_success): Use switch_to_no_thread
2572 instead of writing to inferior_ptid.
2573
c5316fc6
PA
25742020-06-18 Pedro Alves <palves@redhat.com>
2575
2576 * gdbarch-selftests.c: Include "progspace-and-thread.h".
2577 (register_to_value_test): Mock a program_space too. Heap-allocate
2578 the address space. Don't write to inferior_ptid. Use
2579 switch_to_thread instead.
2580
8df01799
PA
25812020-06-18 Pedro Alves <palves@redhat.com>
2582
2583 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
2584 Delete.
2585 (find_signalled_thread()): New, factored out from
2586 linux_make_corefile_notes and adjusted to handle exited threads.
2587 (linux_make_corefile_notes): Adjust to use the new
2588 find_signalled_thread.
2589
41792d68
PA
25902020-06-18 Pedro Alves <palves@redhat.com>
2591
2592 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
2593 of saving/restoring inferior_ptid.
2594
612f258a
TT
25952020-06-17 Tom Tromey <tom@tromey.com>
2596
2597 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
2598 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
2599 declare.
2600 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
2601
efb763a5
SM
26022020-06-15 Simon Marchi <simon.marchi@efficios.com>
2603
2604 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
2605 of partial symtabs.
2606
2951f6c0
SM
26072020-06-17 Simon Marchi <simon.marchi@efficios.com>
2608
2609 * regformats/reg-arm.dat: Remove.
2610 * regformats/reg-bfin.dat: Remove.
2611 * regformats/reg-cris.dat: Remove.
2612 * regformats/reg-crisv32.dat: Remove.
2613 * regformats/reg-m32r.dat: Remove.
2614 * regformats/reg-tilegx.dat: Remove.
2615 * regformats/reg-tilegx32.dat: Remove.
2616
7d458ea5
SM
26172020-06-17 Simon Marchi <simon.marchi@efficios.com>
2618
2619 * features/Makefile (WHICH): Remove arm files.
2620 * regformats/arm/arm-with-iwmmxt.dat: Remove.
2621 * regformats/arm/arm-with-neon.dat: Remove.
2622 * regformats/arm/arm-with-vfpv2.dat: Remove.
2623 * regformats/arm/arm-with-vfpv3.dat: Remove.
2624
3af96c0d
SM
26252020-06-17 Simon Marchi <simon.marchi@efficios.com>
2626
2627 * features/Makefile (XMLTOC): Remove rx.xml.
2628
b25e22fd
PA
26292020-06-17 Pedro Alves <palves@redhat.com>
2630
2631 * gdbthread.h (thread_control_state) <trap_expected> Update
2632 comments.
2633
a78a19b1
AB
26342020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2635
2636 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
2637 ada_language::lookup_symbol_nonlocal.
2638 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
2639 (ada_language::lookup_symbol_nonlocal): New member function,
2640 implementation from ada_lookup_symbol_nonlocal.
2641 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
2642 initializer.
2643 (cplus_language_data): Delete la_lookup_symbol_nonlocal
2644 initializer.
2645 (cplus_language::lookup_symbol_nonlocal): New member function.
2646 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
2647 (minimal_language_data) Likewise.
2648 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
2649 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
2650 initializer.
2651 (d_language::lookup_symbol_nonlocal): New member function.
2652 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
2653 initializer.
2654 (f_language::lookup_symbol_nonlocal): New member function.
2655 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
2656 initializer.
2657 * language.c (unknown_language_data): Likewise.
2658 (auto_language_data): Likewise.
2659 * language.h (language_data): Delete la_lookup_symbol_nonlocal
2660 field.
2661 (language_defn::lookup_symbol_nonlocal): New member function.
2662 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
2663 initializer.
2664 * objc-lang.c (objc_language_data): Likewise.
2665 * opencl-lang.c (opencl_language_data): Likewise.
2666 * p-lang.c (pascal_language_data): Likewise.
2667 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
2668 rust_language::lookup_symbol_nonlocal.
2669 (rust_language_data): Delete la_lookup_symbol_nonlocal
2670 initializer.
2671 (rust_language::lookup_symbol_nonlocal): New member function,
2672 implementation from rust_lookup_symbol_nonlocal.
2673 * symtab.c (lookup_symbol_aux): Update call to
2674 lookup_symbol_nonlocal.
2675 (basic_lookup_symbol_nonlocal): Rename to...
2676 (language_defn::lookup_symbol_nonlocal): ...this, and update
2677 header comment. Remove language_defn parameter, and replace with
2678 uses of `this'.
2679 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
2680
ebe2334e
AB
26812020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2682
2683 * ada-lang.c (ada_language_data): Delete la_value_print_inner
2684 initializer.
2685 (ada_language::value_print_inner): New member function.
2686 * c-lang.c (c_language_data): Delete la_value_print_inner
2687 initializer.
2688 (cplus_language_data): Likewise.
2689 (asm_language_data): Likewise.
2690 (minimal_language_data): Likewise.
2691 * d-lang.c (d_language_data): Likewise.
2692 (d_language::value_print_inner): New member function.
2693 * f-lang.c (f_language_data): Delete la_value_print_inner
2694 initializer.
2695 (f_language::value_print_inner): New member function.
2696 * f-lang.h (f_value_print_innner): Rename to...
2697 (f_value_print_inner): ...this (note spelling of 'inner').
2698 * f-valprint.c (f_value_print_innner): Rename to...
2699 (f_value_print_inner): ...this (note spelling of 'inner').
2700 * go-lang.c (go_language_data): Delete la_value_print_inner
2701 initializer.
2702 (go_language::value_print_inner): New member function.
2703 * language.c (language_defn::value_print_inner): Define new member
2704 function.
2705 (unk_lang_value_print_inner): Delete.
2706 (unknown_language_data): Delete la_value_print_inner initializer.
2707 (unknown_language::value_print_inner): New member function.
2708 (auto_language_data): Delete la_value_print_inner initializer.
2709 (auto_language::value_print_inner): New member function.
2710 * language.h (language_data): Delete la_value_print_inner field.
2711 (language_defn::value_print_inner): Delcare new member function.
2712 * m2-lang.c (m2_language_data): Delete la_value_print_inner
2713 initializer.
2714 (m2_language::value_print_inner): New member function.
2715 * objc-lang.c (objc_language_data): Delete la_value_print_inner
2716 initializer.
2717 * opencl-lang.c (opencl_language_data): Likewise.
2718 * p-lang.c (pascal_language_data): Likewise.
2719 (pascal_language::value_print_inner): New member function.
2720 * rust-lang.c (rust_language_data): Delete la_value_print_inner
2721 initializer.
2722 (rust_language::value_print_inner): New member function.
2723 * valprint.c (do_val_print): Update call to value_print_inner.
2724
a1d1fa3e
AB
27252020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2726
2727 * ada-lang.c (ada_language_data): Delete la_value_print
2728 initializer.
2729 (ada_language::value_print): New member function.
2730 * c-lang.c (c_language_data): Delete la_value_print initializer.
2731 (cplus_language_data): Likewise.
2732 (asm_language_data): Likewise.
2733 (minimal_language_data): Likewise.
2734 * d-lang.c (d_language_data): Likewise.
2735 * f-lang.c (f_language_data): Likewise.
2736 * go-lang.c (go_language_data): Likewise.
2737 * language.c (unk_lang_value_print): Delete.
2738 (language_defn::value_print): Define new member function.
2739 (unknown_language_data): Delete la_value_print initializer.
2740 (unknown_language::value_print): New member function.
2741 (auto_language_data): Delete la_value_print initializer.
2742 (auto_language::value_print): New member function.
2743 * language.h (language_data): Delete la_value_print field.
2744 (language_defn::value_print): Declare new member function.
2745 (LA_VALUE_PRINT): Update call to value_print.
2746 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
2747 * objc-lang.c (objc_language_data): Likewise.
2748 * opencl-lang.c (opencl_language_data): Likewise.
2749 * p-lang.c (pascal_language_data): Likewise.
2750 (pascal_language::value_print): New member function.
2751 * rust-lang.c (rust_language_data): Delete la_value_print
2752 initializer.
2753
f16a9f57
AB
27542020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2755
2756 * ada-lang.c (ada_watch_location_expression): Rename to
2757 ada_language::watch_location_expression.
2758 (ada_language_data): Delete la_watch_location_expression
2759 initializer.
2760 (ada_language::watch_location_expression): New member function,
2761 implementation from ada_watch_location_expression.
2762 * breakpoint.c (watch_command_1): Update call to
2763 watch_location_expression.
2764 * c-lang.c (c_watch_location_expression): Rename to
2765 language_defn::watch_location_expression.
2766 (c_language_data): Delete la_watch_location_expression
2767 initializer.
2768 (cplus_language_data): Likewise.
2769 (asm_language_data): Likewise.
2770 (minimal_language_data): Likewise.
2771 * c-lang.h (c_watch_location_expression): Delete declaration.
2772 * d-lang.c (d_language_data): Delete la_watch_location_expression
2773 initializer.
2774 * f-lang.c (f_language_data): Likewise.
2775 * go-lang.c (go_language_data): Likewise.
2776 * language.c (language_defn::watch_location_expression): Member
2777 function implementation from c_watch_location_expression.
2778 (unknown_language_data): Delete la_watch_location_expression
2779 initializer.
2780 (auto_language_data): Likewise.
2781 * language.h (language_data): Delete la_watch_location_expression
2782 field.
2783 (language_defn::watch_location_expression): Declare new member
2784 function.
2785 * m2-lang.c (m2_language_data): Delete
2786 la_watch_location_expression initializer.
2787 * objc-lang.c (objc_language_data): Likewise.
2788 * opencl-lang.c (opencl_language_data): Likewise.
2789 * p-lang.c (pascal_language_data): Likewise.
2790 * rust-lang.c (rust_watch_location_expression): Rename to
2791 rust_language::watch_location_expression.
2792 (rust_language_data): Delete la_watch_location_expression
2793 initializer.
2794 (rust_language::watch_location_expression): New member function,
2795 implementation from rust_watch_location_expression.
2796
7e56227d
AB
27972020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2798
2799 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
2800 ada_language::collect_symbol_completion_matches.
2801 (ada_language_data): Delete la_collect_symbol_completion_matches
2802 initializer.
2803 (ada_language::collect_symbol_completion_matches): New member
2804 function, implementation from
2805 ada_collect_symbol_completion_matches.
2806 * c-lang.c (c_language_data): Delete
2807 la_collect_symbol_completion_matches initializer.
2808 (cplus_language_data): Likewise.
2809 (asm_language_data): Likewise.
2810 (minimal_language_data): Likewise.
2811 * d-lang.c (d_language_data): Likewise.
2812 * f-lang.c (f_collect_symbol_completion_matches): Rename to
2813 f_language::collect_symbol_completion_matches.
2814 (f_language_data): Delete la_collect_symbol_completion_matches
2815 initializer.
2816 (f_language::collect_symbol_completion_matches) New member
2817 function, implementation from f_collect_symbol_completion_matches.
2818 * go-lang.c (go_language_data): Delete
2819 la_collect_symbol_completion_matches initializer.
2820 * language.c (unknown_language_data): Likewise.
2821 (auto_language_data): Likewise.
2822 * language.h (language_data): Delete
2823 la_collect_symbol_completion_matches field.
2824 (language_defn::collect_symbol_completion_matches): New member
2825 function.
2826 * m2-lang.c (m2_language_data): Delete
2827 la_collect_symbol_completion_matches initializer.
2828 * objc-lang.c (objc_language_data): Likewise.
2829 * opencl-lang.c (opencl_language_data): Likewise.
2830 * p-lang.c (pascal_language_data): Likewise.
2831 * rust-lang.c (rust_language_data): Likewise.
2832 * symtab.c (default_collect_symbol_completion_matches): Delete.
2833 (collect_symbol_completion_matches): Update call to
2834 collect_symbol_completion_matches.
2835 (collect_symbol_completion_matches_type): Likewise.
2836 * symtab.h (default_collect_symbol_completion_matches): Delete
2837 declaration.
2838
53fc67f8
AB
28392020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2840
2841 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
2842 (ada_language_data): Delete la_word_break_characters initializer.
2843 (ada_language::word_break_characters): New member function.
2844 * c-lang.c (c_language_data): Delete la_word_break_characters
2845 initializer.
2846 (cplus_language_data): Likewise.
2847 (asm_language_data): Likewise.
2848 (minimal_language_data): Likewise.
2849 * completer.c: Update global comment.
2850 (advance_to_expression_complete_word_point): Update call to
2851 word_break_characters.
2852 (complete_files_symbols): Likewise.
2853 (complete_line_internal_1): Likewise.
2854 (default_completer_handle_brkchars): Likewise.
2855 (skip_quoted_chars): Likewise.
2856 * d-lang.c (d_language_data): Delete la_word_break_characters
2857 initializer.
2858 * f-lang.c (f_word_break_characters): Delete.
2859 (f_language_data): Delete la_word_break_characters initializer.
2860 (f_language::word_break_characters): New member function.
2861 * go-lang.c (go_language_data): Delete la_word_break_characters
2862 initializer.
2863 * language.c (unknown_language_data): Likewise.
2864 (auto_language_data): Likewise.
2865 * language.h (default_word_break_characters): Move declaration to
2866 earlier in the file.
2867 (language_data): Delete la_word_break_characters field.
2868 (language_defn::word_break_characters): New member function.
2869 * m2-lang.c (m2_language_data): Delete la_word_break_characters
2870 initializer.
2871 * objc-lang.c (objc_language_data): Likewise.
2872 * opencl-lang.c (opencl_language_data): Likewise.
2873 * p-lang.c (pascal_language_data): Likewise.
2874 * rust-lang.c (rust_language_data): Likewise.
2875
c9debfb9
AB
28762020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2877
2878 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
2879 (ada_language_data): Delete la_get_symbol_name_matcher
2880 initializer.
2881 (language_defn::get_symbol_name_matcher_inner): New member
2882 function.
2883 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
2884 initializer.
2885 (cplus_language_data): Likewise.
2886 (cplus_language::get_symbol_name_matcher_inner): New member
2887 function.
2888 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
2889 (minimal_language_data): Likewise.
2890 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
2891 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
2892 initializer.
2893 * dictionary.c (iter_match_first_hashed): Update call to
2894 get_symbol_name_matcher.
2895 (iter_match_next_hashed): Likewise.
2896 (iter_match_next_linear): Likewise.
2897 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
2898 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
2899 initializer.
2900 (f_language::get_symbol_name_matcher_inner): New member function.
2901 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
2902 initializer.
2903 * language.c (default_symbol_name_matcher): Update header comment,
2904 make static.
2905 (language_defn::get_symbol_name_matcher): New definition.
2906 (language_defn::get_symbol_name_matcher_inner): Likewise.
2907 (get_symbol_name_matcher): Delete.
2908 (unknown_language_data): Delete la_get_symbol_name_matcher
2909 initializer.
2910 (auto_language_data): Likewise.
2911 * language.h (language_data): Delete la_get_symbol_name_matcher
2912 field.
2913 (language_defn::get_symbol_name_matcher): New member function.
2914 (language_defn::get_symbol_name_matcher_inner): Likewise.
2915 (default_symbol_name_matcher): Delete declaration.
2916 * linespec.c (find_methods): Update call to
2917 get_symbol_name_matcher.
2918 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
2919 initializer.
2920 * minsyms.c (lookup_minimal_symbol): Update call to
2921 get_symbol_name_matcher.
2922 (iterate_over_minimal_symbols): Likewise.
2923 * objc-lang.c (objc_language_data): Delete
2924 la_get_symbol_name_matcher initializer.
2925 * opencl-lang.c (opencl_language_data): Likewise.
2926 * p-lang.c (pascal_language_data): Likewise.
2927 * psymtab.c (psymbol_name_matches): Update call to
2928 get_symbol_name_matcher.
2929 * rust-lang.c (rust_language_data): Delete
2930 la_get_symbol_name_matcher initializer.
2931 * symtab.c (symbol_matches_search_name): Update call to
2932 get_symbol_name_matcher.
2933 (compare_symbol_name): Likewise.
2934
9a49ad8c
AB
29352020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2936
2937 * ada-lang.c (ada_language_data): Delete la_compute_program
2938 initializer.
2939 * c-lang.c (c_language_data): Likewise.
2940 (c_language::compute_program): New member function.
2941 (cplus_language_data): Delete la_compute_program initializer.
2942 (cplus_language::compute_program): New member function.
2943 (asm_language_data): Delete la_compute_program initializer.
2944 (minimal_language_data): Likewise.
2945 * c-lang.h (c_compute_program): Update comment.
2946 (cplus_compute_program): Likewise.
2947 * compile/compile-c-support.c (c_compute_program): Likewise.
2948 (cplus_compute_program): Likewise.
2949 * compile/compile.c (compile_to_object): Update call to
2950 la_compute_program.
2951 * d-lang.c (d_language_data): Delete la_compute_program
2952 initializer.
2953 * f-lang.c (f_language_data): Likewise.
2954 * go-lang.c (go_language_data): Likewise.
2955 * language.c (unknown_language_data): Likewise.
2956 (auto_language_data): Likewise.
2957 * language.h (language_data): Delete la_compute_program field.
2958 (language_defn::compute_program): New member function.
2959 * m2-lang.c (m2_language_data): Delete la_compute_program
2960 initializer.
2961 * objc-lang.c (objc_language_data): Likewise.
2962 * opencl-lang.c (opencl_language_data): Likewise.
2963 * p-lang.c (pascal_language_data): Likewise.
2964 * rust-lang.c (rust_language_data): Likewise.
2965
eff93b4d
AB
29662020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2967
2968 * ada-lang.c (ada_language_data) Delete
2969 la_class_name_from_physname initializer.
2970 * c-lang.c (c_language_data): Likewise.
2971 (cplus_language_data): Likewise.
2972 (cplus_language::class_name_from_physname): New member function.
2973 (asm_language_data): Delete la_class_name_from_physname
2974 initializer.
2975 (minimal_language_data): Likewise.
2976 * d-lang.c (d_language_data): Likewise.
2977 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
2978 method on language_defn class.
2979 (guess_full_die_structure_name): Likewise.
2980 * f-lang.c (f_language_data): Delete la_class_name_from_physname
2981 initializer.
2982 * go-lang.c (go_language_data): Likewise.
2983 * language.c (language_class_name_from_physname): Delete.
2984 (unk_lang_class_name): Delete.
2985 (unknown_language_data): Delete la_class_name_from_physname
2986 initializer.
2987 (auto_language_data): Likewise.
2988 * language.h (language_data): Delete la_class_name_from_physname
2989 field.
2990 (language_defn::class_name_from_physname): New function.
2991 (language_class_name_from_physname): Delete declaration.
2992 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
2993 initializer.
2994 * objc-lang.c (objc_language_data): Likewise.
2995 * opencl-lang.c (opencl_language_data): Likewise.
2996 * p-lang.c (pascal_language_data): Likewise.
2997 * rust-lang.c (rust_language_data): Likewise.
2998
de543742
TT
29992020-06-16 Tom Tromey <tom@tromey.com>
3000
3001 * tui/tui-data.h (STATUS_NAME): New macro.
3002 * tui/tui-layout.c (tui_remove_some_windows)
3003 (initialize_known_windows, tui_register_window)
3004 (tui_layout_split::remove_windows, initialize_layouts)
3005 (tui_new_layout_command): Don't use hard-coded window names.
3006
a350efd4
TT
30072020-06-16 Tom Tromey <tom@tromey.com>
3008
3009 PR tui/25348:
3010 * tui/tui.c (tui_ensure_readline_initialized): Rename from
3011 tui_initialize_readline. Only run once. Call rl_initialize.
3012 * tui/tui.h (tui_ensure_readline_initialized): Rename from
3013 tui_initialize_readline.
3014 * tui/tui-io.c (tui_setup_io): Call
3015 tui_ensure_readline_initialized.
3016 * tui/tui-interp.c (tui_interp::init): Update.
3017
39ec0490
TT
30182020-06-16 Tom Tromey <tom@tromey.com>
3019
3020 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
3021 Also preserve the status window.
3022
d2d1ea20
TT
30232020-06-16 Tom Tromey <tom@tromey.com>
3024
3025 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
3026 where m_window==nullptr.
3027
66920317
TT
30282020-06-15 Tom Tromey <tromey@adacore.com>
3029
3030 * windows-nat.c (windows_nat::handle_output_debug_string):
3031 Update.
3032 (windows_nat::handle_ms_vc_exception): Update.
3033 * target.h (target_read_string): Change API.
3034 * target.c (target_read_string): Change API.
3035 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
3036 Update.
3037 * solib-frv.c (frv_current_sos): Update.
3038 * solib-dsbt.c (dsbt_current_sos): Update.
3039 * solib-darwin.c (darwin_current_sos): Update.
3040 * linux-thread-db.c (inferior_has_bug): Update.
3041 * expprint.c (print_subexp_standard): Update.
3042 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
3043 (ada_exception_message_1): Update.
3044
a5d871dd
TT
30452020-06-15 Tom Tromey <tromey@adacore.com>
3046
3047 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
3048
670e35fa
TT
30492020-06-15 Tom Tromey <tromey@adacore.com>
3050
3051 * valprint.c (read_string): Update comment.
3052 * target.c (MIN): Remove.
3053 (target_read_string): Rewrite.
3054
f5272a3b
TT
30552020-06-15 Tom Tromey <tromey@adacore.com>
3056
3057 * corefile.c (read_memory_string): Remove.
3058 * ada-valprint.c (ada_value_print_ptr): Update.
3059 * ada-lang.h (ada_tag_name): Change return type.
3060 * ada-lang.c (type_from_tag): Update.
3061 (ada_tag_name_from_tsd): Change return type. Use
3062 target_read_string.
3063 (ada_tag_name): Likewise.
3064 * gdbcore.h (read_memory_string): Don't declare.
3065
2c074f49
HD
30662020-06-14 Hannes Domani <ssbssa@yahoo.de>
3067
3068 * symtab.c (rbreak_command): Ignore Windows drive colon.
3069
6a17d503
SM
30702020-06-12 Simon Marchi <simon.marchi@efficios.com>
3071
3072 * NEWS: Mention removed GDBserver host support.
3073
453c733f
NC
30742020-06-12 Nelson Chu <nelson.chu@sifive.com>
3075
3076 * features/riscv/rebuild-csr-xml.sh: Updated.
3077
2b4e6a3f
TT
30782020-06-11 Tom Tromey <tom@tromey.com>
3079
3080 PR gdb/18318:
3081 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
3082
4412332f
JG
30832020-06-09 Jonny Grant <jg@jguk.org>
30842020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
3085
3086 * main.c (captured_main_1): Don't print new line after help.
3087 (print_gdb_help): add mailing list and IRC channel information
3088 to --help. Add new lines between items in the footer. Remove
3089 quotes around bug url.
3090
2f33032a
KS
30912020-06-11 Keith Seitz <keiths@redhat.com>
3092
3093 PR gdb/21356
3094 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
3095 Resolve typedefs for type length calculations.
3096
7ab96794
TV
30972020-06-10 Tom de Vries <tdevries@suse.de>
3098
3099 PR ada/24713
3100 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
3101 (write_psymbols): Enable .gdb_index for ada.
3102 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
3103 ada.
3104
e5f3ece2
TV
31052020-06-10 Tom de Vries <tdevries@suse.de>
3106
3107 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
3108 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
3109 namei" instead of "const char *name" argument.
3110 (dw2_map_matching_symbols): Use "offset_type namei" variant of
3111 dw2_symtab_iter_init.
3112
940da03e
SM
31132020-06-08 Simon Marchi <simon.marchi@efficios.com>
3114
3115 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
3116 to use type::field and field::type instead.
3117
b6cdac4b
SM
31182020-06-08 Simon Marchi <simon.marchi@efficios.com>
3119
3120 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
3121 to use field::type instead.
3122
5d14b6e5
SM
31232020-06-08 Simon Marchi <simon.marchi@efficios.com>
3124
3125 * gdbtypes.h (struct field) <type, set_type>: New methods.
3126 Rename `type` field to...
3127 <m_type>: ... this. Change references throughout to use type or
3128 set_type methods.
3129 (FIELD_TYPE): Use field::type. Change call sites that modify
3130 the field's type to use field::set_type instead.
3131
3d967001
SM
31322020-06-08 Simon Marchi <simon.marchi@efficios.com>
3133
3134 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
3135 to use type::index_type instead.
3136
262abc0d
SM
31372020-06-08 Simon Marchi <simon.marchi@efficios.com>
3138
3139 * gdbtypes.h (struct type) <index_type, set_index_type>: New
3140 methods.
3141 (TYPE_INDEX_TYPE): Use type::index_type.
3142 * gdbtypes.c (create_array_type_with_stride): Likewise.
3143
82836c92
TT
31442020-06-07 Tom Tromey <tom@tromey.com>
3145
3146 * valprint.c (generic_val_print_float): Remove "embedded_offset"
3147 parameter.
3148 (generic_value_print): Update.
3149
940dace9
AB
31502020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
3151
3152 Revert commit 982a38f60b0.
3153 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
3154
982a38f6
AB
31552020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
3156
3157 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
3158 avoid use after free.
3159
82f06518
TV
31602020-06-05 Tom de Vries <tdevries@suse.de>
3161
3162 * NEWS: Fix typos.
3163
f8c41851
SM
31642020-06-04 Simon Marchi <simon.marchi@efficios.com>
3165
3166 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
3167 the per_bfd object.
3168 (dwarf2_read_debug_names): Likewise.
3169 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
3170 object when re-using a per_bfd object with an index.
3171
f9b5d5ea
TV
31722020-06-03 Tom de Vries <tdevries@suse.de>
3173
3174 PR symtab/26046
3175 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
3176 children for C++.
3177 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
3178 DW_TAG_subprogram.
3179
f6eee2d0
AB
31802020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3181
3182 * ada-lang.c (ada_language_data): Delete skip_trampoline
3183 initializer.
3184 * c-lang.c (c_language_data): Likewise.
3185 (cplus_language_data): Likewise.
3186 (cplus_language::skip_trampoline): New member function.
3187 (asm_language_data): Delete skip_trampoline initializer.
3188 (minimal_language_data): Likewise.
3189 * d-lang.c (d_language_data): Likewise.
3190 * f-lang.c (f_language_data): Likewise.
3191 * go-lang.c (go_language_data): Likewise.
3192 * language.c (unk_lang_trampoline): Delete function.
3193 (skip_language_trampoline): Update.
3194 (unknown_language_data): Delete skip_trampoline initializer.
3195 (auto_language_data): Likewise.
3196 * language.h (language_data): Delete skip_trampoline field.
3197 (language_defn::skip_trampoline): New function.
3198 * m2-lang.c (m2_language_data): Delete skip_trampoline
3199 initializer.
3200 * objc-lang.c (objc_skip_trampoline): Delete function, move
3201 implementation to objc_language::skip_trampoline.
3202 (objc_language_data): Delete skip_trampoline initializer.
3203 (objc_language::skip_trampoline): New member function with
3204 implementation from objc_skip_trampoline.
3205 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
3206 initializer.
3207 * p-lang.c (pascal_language_data): Likewise.
3208 * rust-lang.c (rust_language_data): Likewise.
3209
0a50df5d
AB
32102020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3211
3212 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
3213 (ada_language::demangle): New member function.
3214 * c-lang.c (c_language_data): Delete la_demangle initializer.
3215 (cplus_language_data): Delete la_demangle initializer.
3216 (cplus_language::demangle): New member function.
3217 (asm_language_data): Delete la_demangle initializer.
3218 (minimal_language_data): Delete la_demangle initializer.
3219 * d-lang.c (d_language_data): Delete la_demangle initializer.
3220 (d_language::demangle): New member function.
3221 * f-lang.c (f_language_data): Delete la_demangle initializer.
3222 (f_language::demangle): New member function.
3223 * go-lang.c (go_language_data): Delete la_demangle initializer.
3224 (go_language::demangle): New member function.
3225 * language.c (language_demangle): Update.
3226 (unk_lang_demangle): Delete.
3227 (unknown_language_data): Delete la_demangle initializer.
3228 (unknown_language::demangle): New member function.
3229 (auto_language_data): Delete la_demangle initializer.
3230 (auto_language::demangle): New member function.
3231 * language.h (language_data): Delete la_demangle field.
3232 (language_defn::demangle): New function.
3233 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
3234 * objc-lang.c (objc_language_data): Delete la_demangle
3235 initializer.
3236 (objc_language::demangle): New member function.
3237 * opencl-lang.c (opencl_language_data): Delete la_demangle
3238 initializer.
3239 * p-lang.c (pascal_language_data): Likewise.
3240 * rust-lang.c (rust_language_data): Likewise.
3241 (rust_language::demangle): New member function.
3242
fbfb0a46
AB
32432020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3244
3245 * ada-lang.c (ada_language_data): Delete la_print_type
3246 initializer.
3247 (ada_language::print_type): New member function.
3248 * c-lang.c (c_language_data): Delete la_print_type initializer.
3249 (c_language::print_type): New member function.
3250 (cplus_language_data): Delete la_print_type initializer.
3251 (cplus_language::print_type): New member function.
3252 (asm_language_data): Delete la_print_type initializer.
3253 (asm_language::print_type): New member function.
3254 (minimal_language_data): Delete la_print_type initializer.
3255 (minimal_language::print_type): New member function.
3256 * d-lang.c (d_language_data): Delete la_print_type initializer.
3257 (d_language::print_type): New member function.
3258 * f-lang.c (f_language_data): Delete la_print_type initializer.
3259 (f_language::print_type): New member function.
3260 * go-lang.c (go_language_data): Delete la_print_type initializer.
3261 (go_language::print_type): New member function.
3262 * language.c (unk_lang_print_type): Delete.
3263 (unknown_language_data): Delete la_print_type initializer.
3264 (unknown_language::print_type): New member function.
3265 (auto_language_data): Delete la_print_type initializer.
3266 (auto_language::print_type): New member function.
3267 * language.h (language_data): Delete la_print_type field.
3268 (language_defn::print_type): New function.
3269 (LA_PRINT_TYPE): Update.
3270 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
3271 (m2_language::print_type): New member function.
3272 * objc-lang.c (objc_language_data): Delete la_print_type
3273 initializer.
3274 (objc_language::print_type): New member function.
3275 * opencl-lang.c (opencl_print_type): Delete, implementation moved
3276 to opencl_language::print_type.
3277 (opencl_language_data): Delete la_print_type initializer.
3278 (opencl_language::print_type): New member function, implementation
3279 from opencl_print_type.
3280 * p-lang.c (pascal_language_data): Delete la_print_type
3281 initializer.
3282 (pascal_language::print_type): New member function.
3283 * rust-lang.c (rust_print_type): Delete, implementation moved to
3284 rust_language::print_type.
3285 (rust_language_data): Delete la_print_type initializer.
3286 (rust_language::print_type): New member function, implementation
3287 from rust_print_type.
3288
6f827019
AB
32892020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3290
3291 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
3292 implementation moves to...
3293 (ada_language::sniff_from_mangled_name): ...here. Update return
3294 type.
3295 (ada_language_data): Delete la_sniff_from_mangled_name
3296 initializer.
3297 * c-lang.c (c_language_data): Likewise.
3298 (cplus_language_data): Likewise.
3299 (cplus_language::sniff_from_mangled_name): New member function,
3300 implementation taken from gdb_sniff_from_mangled_name.
3301 (asm_language_data): Delete la_sniff_from_mangled_name
3302 initializer.
3303 (minimal_language_data): Likewise.
3304 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
3305 implementation moves to cplus_language::sniff_from_mangled_name.
3306 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
3307 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
3308 moves to...
3309 (d_language::sniff_from_mangled_name): ...here.
3310 (d_language_data): Delete la_sniff_from_mangled_name initializer.
3311 * f-lang.c (f_language_data): Likewise.
3312 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
3313 moves to...
3314 (go_language::sniff_from_mangled_name): ...here.
3315 (go_language_data): Delete la_sniff_from_mangled_name initializer.
3316 * language.c (language_sniff_from_mangled_name): Delete.
3317 (unknown_language_data): Delete la_sniff_from_mangled_name
3318 initializer.
3319 (auto_language_data): Likewise.
3320 * language.h (language_data): Delete la_sniff_from_mangled_name
3321 field.
3322 (language_defn::sniff_from_mangled_name): New function.
3323 (language_sniff_from_mangled_name): Delete declaration.
3324 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
3325 field.
3326 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
3327 implementation moves to...
3328 (objc_language::sniff_from_mangled_name): ...here.
3329 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
3330 * opencl-lang.c (opencl_language_data): Likewise.
3331 * p-lang.c (pascal_language_data): Likewise.
3332 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
3333 implementation moves to...
3334 (rust_language::sniff_from_mangled_name): ...here.
3335 (rust_language_data): Delete la_sniff_from_mangled_name
3336 initializer.
3337 * symtab.c (symbol_find_demangled_name): Call
3338 sniff_from_mangled_name member function.
3339
fb8006fd
AB
33402020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3341
3342 * ada-lang.c (ada_language_data): Delete la_search_name_hash
3343 initializer.
3344 * c-lang.c (c_language_data): Likewise.
3345 (cplus_language_data): Likewise.
3346 (cplus_language::search_name_hash): New member function.
3347 (asm_language_data): Delete la_search_name_hash initializer.
3348 (minimal_language_data): Likewise.
3349 * d-lang.c (d_language_data): Likewise.
3350 * dictionary.c (default_search_name_hash): Rename to...
3351 (language_defn::search_name_hash): ...this.
3352 * f-lang.c (f_language_data): Likewise.
3353 (f_language::search_name_hash): New member function.
3354 * go-lang.c (go_language_data): Delete la_search_name_hash
3355 initializer.
3356 * language.c (unknown_language_data): Likewise.
3357 (auto_language_data): Likewise.
3358 * language.h (struct language_data): Delete la_search_name_hash
3359 field.
3360 (language_defn::search_name_hash): Declare new member function.
3361 (default_search_name_hash): Delete declaration.
3362 * m2-lang.c (m2_language_data): Delete la_search_name_hash
3363 initializer.
3364 * objc-lang.c (objc_language_data): Likewise.
3365 * opencl-lang.c (opencl_language_data): Likewise.
3366 * p-lang.c (pascal_language_data): Likewise.
3367 * rust-lang.c (rust_language_data): Likewise.
3368 * symtab.c (search_name_hash): Update call.
3369
8e25bafe
AB
33702020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3371
3372 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
3373 initializer.
3374 * c-lang.c (class compile_instance): Declare.
3375 (c_language_data): Delete la_get_compile_instance initializer.
3376 (c_language::get_compile_instance): New member function.
3377 (cplus_language_data): Delete la_get_compile_instance initializer.
3378 (cplus_language::get_compile_instance): New member function.
3379 (asm_language_data): Delete la_get_compile_instance initializer.
3380 (minimal_language_data): Likewise.
3381 * c-lang.h (c_get_compile_context): Update comment.
3382 (cplus_get_compile_context): Update comment.
3383 * compile/compile.c (compile_to_object): Update calls, don't rely
3384 on function pointer being NULL.
3385 * d-lang.c (d_language_data): Delete la_get_compile_instance
3386 initializer.
3387 * f-lang.c (f_language_data): Likewise.
3388 * go-lang.c (go_language_data): Likewise.
3389 * language.c (unknown_language_data): Likewise.
3390 (auto_language_data): Likewise.
3391 * language.h (language_data): Delete la_get_compile_instance field.
3392 (language_defn::get_compile_instance): New member function.
3393 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
3394 initializer.
3395 * objc-lang.c (objc_language_data): Likewise.
3396 * opencl-lang.c (opencl_language_data): Likewise.
3397 * p-lang.c (pascal_language_data): Likewise.
3398 * rust-lang.c (rust_language_data): Likewise.
3399
4009ee92
AB
34002020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3401
3402 * ada-lang.c (ada_add_all_symbols): Update comment.
3403 (ada_iterate_over_symbols): Delete, move implementation to...
3404 (ada_language::iterate_over_symbols): ...here, a new member
3405 function, rewrite to use range based for loop.
3406 (ada_language_data): Delete la_iterate_over_symbols initializer.
3407 * c-lang.c (c_language_data): Likewise.
3408 (cplus_language_data): Likewise.
3409 (asm_language_data): Likewise.
3410 (minimal_language_data): Likewise.
3411 * d-lang.c (d_language_data): Likewise.
3412 * f-lang.c (f_language_data): Likewise.
3413 * go-lang.c (go_language_data): Likewise.
3414 * language.c (unknown_language_data): Likewise.
3415 (auto_language_data): Likewise.
3416 * language.h (language_data): Delete la_iterate_over_symbols field.
3417 (language_defn::iterate_over_symbols): New member function.
3418 (LA_ITERATE_OVER_SYMBOLS): Update.
3419 * linespec.c (iterate_over_all_matching_symtabs): Update.
3420 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
3421 initializer.
3422 * objc-lang.c (objc_language_data): Likewise.
3423 * opencl-lang.c (opencl_language_data): Likewise.
3424 * p-lang.c (pascal_language_data): Likewise.
3425 * rust-lang.c (rust_language_data): Likewise.
3426
54f4ca46
AB
34272020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3428
3429 * ada-lang.c (ada_language_data): Delete
3430 la_lookup_transparent_type initializer.
3431 * c-lang.c (c_language_data): Likewise.
3432 (cplus_language_data): Likewise.
3433 (cplus_language::lookup_transparent_type): New member function.
3434 (asm_language_data): Delete la_lookup_transparent_type
3435 initializer.
3436 (minimal_language_data): Likewise.
3437 * d-lang.c (d_language_data): Likewise.
3438 * f-lang.c (f_language_data): Likewise.
3439 * go-lang.c (go_language_data): Likewise.
3440 * language.c (unknown_language_data): Likewise.
3441 (auto_language_data): Likewise.
3442 * language.h (struct language_data): Delete
3443 la_lookup_transparent_type field.
3444 (language_defn::lookup_transparent_type): New member function.
3445 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
3446 initializer.
3447 * objc-lang.c (objc_language_data): Likewise.
3448 * opencl-lang.c (opencl_language_data): Likewise.
3449 * p-lang.c (pascal_language_data): Likewise.
3450 * rust-lang.c (rust_language_data): Likewise.
3451 * symtab.c (symbol_matches_domain): Update call.
3452
1fb314aa
AB
34532020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3454
3455 * ada-lang.c (ada_language_arch_info): Delete function, move
3456 implementation to...
3457 (ada_language::language_arch_info): ...here, a new member
3458 function.
3459 (ada_language_data): Delete la_language_arch_info.
3460 * c-lang.c (c_language_data): Likewise.
3461 (c_language::language_arch_info): New member function.
3462 (cplus_language_arch_info): Delete function, move
3463 implementation to...
3464 (cplus_language::language_arch_info): ...here, a new member
3465 function.
3466 (cplus_language_data): Delete la_language_arch_info.
3467 (asm_language_data): Likewise.
3468 (asm_language::language_arch_info): New member function.
3469 (minimal_language_data): Delete la_language_arch_info.
3470 (minimal_language::language_arch_info): New member function.
3471 * d-lang.c (d_language_arch_info): Delete function, move
3472 implementation to...
3473 (d_language::language_arch_info): ...here, a new member
3474 function.
3475 (d_language_data): Delete la_language_arch_info.
3476 * f-lang.c (f_language_arch_info): Delete function, move
3477 implementation to...
3478 (f_language::language_arch_info): ...here, a new member
3479 function.
3480 (f_language_data): Delete la_language_arch_info.
3481 * go-lang.c (go_language_arch_info): Delete function, move
3482 implementation to...
3483 (go_language::language_arch_info): ...here, a new member
3484 function.
3485 (go_language_data): Delete la_language_arch_info.
3486 * language.c (unknown_language_data): Likewise.
3487 (unknown_language::language_arch_info): New member function.
3488 (auto_language_data): Delete la_language_arch_info.
3489 (auto_language::language_arch_info): New member function.
3490 (language_gdbarch_post_init): Update call to
3491 la_language_arch_info.
3492 * language.h (language_data): Delete la_language_arch_info
3493 function pointer.
3494 (language_defn::language_arch_info): New function.
3495 * m2-lang.c (m2_language_arch_info): Delete function, move
3496 implementation to...
3497 (m2_language::language_arch_info): ...here, a new member
3498 function.
3499 (m2_language_data): Delete la_language_arch_info.
3500 * objc-lang.c (objc_language_arch_info): Delete function, move
3501 implementation to...
3502 (objc_language::language_arch_info): ...here, a new member
3503 function.
3504 (objc_language_data): Delete la_language_arch_info.
3505 * opencl-lang.c (opencl_language_arch_info): Delete function, move
3506 implementation to...
3507 (opencl_language::language_arch_info): ...here, a new member
3508 function.
3509 (opencl_language_data): Delete la_language_arch_info.
3510 * p-lang.c (pascal_language_arch_info): Delete function, move
3511 implementation to...
3512 (pascal_language::language_arch_info): ...here, a new member
3513 function.
3514 (pascal_language_data): Delete la_language_arch_info.
3515 * rust-lang.c (rust_language_arch_info): Delete function, move
3516 implementation to...
3517 (rust_language::language_arch_info): ...here, a new member
3518 function.
3519 (rust_language_data): Delete la_language_arch_info.
3520
48448202
AB
35212020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3522
3523 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
3524 initializer.
3525 * c-lang.c (c_language_data): Likewise.
3526 (cplus_language_data): Likewise.
3527 (cplus_language::pass_by_reference_info): New method.
3528 (asm_language_data): Delete la_pass_by_reference initializer.
3529 (minimal_language_data): Likewise.
3530 * cp-abi.c (cp_pass_by_reference): Remove use of
3531 default_pass_by_reference.
3532 * d-lang.c (d_language_data): Likewise.
3533 * f-lang.c (f_language_data): Likewise.
3534 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
3535 default_pass_by_reference.
3536 * go-lang.c (go_language_data): Likewise.
3537 * language.c (language_pass_by_reference): Update.
3538 (default_pass_by_reference): Delete.
3539 (unknown_language_data): Delete la_pass_by_reference
3540 initializer.
3541 (auto_language_data): Likewise.
3542 * language.h (struct language_data): Delete la_pass_by_reference
3543 field.
3544 (language_defn::pass_by_reference_info): New member function.
3545 (default_pass_by_reference): Delete declaration.
3546 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
3547 initializer.
3548 * objc-lang.c (objc_language_data): Likewise.
3549 * opencl-lang.c (opencl_language_data): Likewise.
3550 * p-lang.c (pascal_language_data): Likewise.
3551 * rust-lang.c (rust_language_data): Likewise.
3552
15e5fd35
AB
35532020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3554
3555 * ada-lang.c (ada_read_var_value): Delete function, move
3556 implementation to...
3557 (ada_language::read_var_value): ...here.
3558 (ada_language_data): Delete la_read_var_value initializer.
3559 * c-lang.c (c_language_data): Likewise.
3560 (cplus_language_data): Likewise.
3561 (minimal_language_data): Likewise.
3562 * d-lang.c (d_language_data): Likewise.
3563 * f-lang.c (f_language_data): Likewise.
3564 * findvar.c (default_read_var_value): Rename to...
3565 (language_defn::read_var_value): ...this.
3566 * findvar.c (read_var_value): Update header comment, and change to
3567 call member function instead of function pointer.
3568 * go-lang.c (go_language_data): Likewise.
3569 * language.c (unknown_language_data): Delete la_read_var_value
3570 initializer.
3571 (auto_language_data): Likewise.
3572 * language.h (struct language_data): Delete la_read_var_value
3573 field.
3574 (language_defn::read_var_value): New member function.
3575 (default_read_var_value): Delete declaration.
3576 * m2-lang.c (m2_language_data): Delete la_read_var_value
3577 initializer.
3578 * objc-lang.c (objc_language_data): Likewise.
3579 * opencl-lang.c (opencl_language_data): Likewise.
3580 * p-lang.c (pascal_language_data): Likewise.
3581 * rust-lang.c (rust_language_data): Likewise.
3582 * value.h (default_read_var_value): Delete declaration.
3583
5bd40f2a
AB
35842020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3585
3586 * ada-lang.c (ada_print_array_index): Delete function, move
3587 implementation to...
3588 (ada_language::print_array_index): ...here.
3589 (ada_language_data): Delete la_print_array_index initializer.
3590 * c-lang.c (c_language_data): Likewise.
3591 (cplus_language_data): Likewise.
3592 (minimal_language_data): Likewise.
3593 * d-lang.c (d_language_data): Likewise.
3594 * f-lang.c (f_language_data): Likewise.
3595 * go-lang.c (go_language_data): Likewise.
3596 * language.c (default_print_array_index): Delete function, move
3597 implementation to...
3598 (language_defn::print_array_index): ...here.
3599 (unknown_language_data): Delete la_print_array_index initializer.
3600 (auto_language_data): Likewise.
3601 * language.h (struct language_data): Delete la_print_array_index
3602 field.
3603 (language_defn::print_array_index): New member function.
3604 (LA_PRINT_ARRAY_INDEX): Update.
3605 (default_print_array_index): Delete declaration.
3606 * m2-lang.c (m2_language_data): Delete la_print_array_index
3607 initializer.
3608 * objc-lang.c (objc_language_data): Likewise.
3609 * opencl-lang.c (opencl_language_data): Likewise.
3610 * p-lang.c (pascal_language_data): Likewise.
3611 * rust-lang.c (rust_language_data): Likewise.
3612
0874fd07
AB
36132020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3614
3615 * gdb/ada-lang.c (ada_language_defn): Convert to...
3616 (ada_language_data): ...this.
3617 (class ada_language): New class.
3618 (ada_language_defn): New static global.
3619 * gdb/c-lang.c (c_language_defn): Convert to...
3620 (c_language_data): ...this.
3621 (class c_language): New class.
3622 (c_language_defn): New static global.
3623 (cplus_language_defn): Convert to...
3624 (cplus_language_data): ...this.
3625 (class cplus_language): New class.
3626 (cplus_language_defn): New static global.
3627 (asm_language_defn): Convert to...
3628 (asm_language_data): ...this.
3629 (class asm_language): New class.
3630 (asm_language_defn): New static global.
3631 (minimal_language_defn): Convert to...
3632 (minimal_language_data): ...this.
3633 (class minimal_language): New class.
3634 (minimal_language_defn): New static global.
3635 * gdb/d-lang.c (d_language_defn): Convert to...
3636 (d_language_data): ...this.
3637 (class d_language): New class.
3638 (d_language_defn): New static global.
3639 * gdb/f-lang.c (f_language_defn): Convert to...
3640 (f_language_data): ...this.
3641 (class f_language): New class.
3642 (f_language_defn): New static global.
3643 * gdb/go-lang.c (go_language_defn): Convert to...
3644 (go_language_data): ...this.
3645 (class go_language): New class.
3646 (go_language_defn): New static global.
3647 * gdb/language.c (unknown_language_defn): Remove declaration.
3648 (current_language): Initialize to nullptr, real initialization is
3649 moved to _initialize_language.
3650 (languages): Delete global.
3651 (language_defn::languages): Define.
3652 (set_language_command): Use language_defn::languages.
3653 (set_language): Likewise.
3654 (range_error): Likewise.
3655 (language_enum): Likewise.
3656 (language_def): Likewise.
3657 (add_set_language_command): Use language_def::languages for the
3658 language list, and language_def to lookup language pointers.
3659 (skip_language_trampoline): Use language_defn::languages.
3660 (unknown_language_defn): Convert to...
3661 (unknown_language_data): ...this.
3662 (class unknown_language): New class.
3663 (unknown_language_defn): New static global.
3664 (auto_language_defn): Convert to...
3665 (auto_language_data): ...this.
3666 (class auto_language): New class.
3667 (auto_language_defn): New static global.
3668 (language_gdbarch_post_init): Use language_defn::languages.
3669 (_initialize_language): Initialize current_language.
3670 * gdb/language.h (struct language_defn): Rename to...
3671 (struct language_data): ...this.
3672 (struct language_defn): New.
3673 (auto_language_defn): Delete.
3674 (unknown_language_defn): Delete.
3675 (minimal_language_defn): Delete.
3676 (ada_language_defn): Delete.
3677 (asm_language_defn): Delete.
3678 (c_language_defn): Delete.
3679 (cplus_language_defn): Delete.
3680 (d_language_defn): Delete.
3681 (f_language_defn): Delete.
3682 (go_language_defn): Delete.
3683 (m2_language_defn): Delete.
3684 (objc_language_defn): Delete.
3685 (opencl_language_defn): Delete.
3686 (pascal_language_defn): Delete.
3687 (rust_language_defn): Delete.
3688 * gdb/m2-lang.c (m2_language_defn): Convert to...
3689 (m2_language_data): ...this.
3690 (class m2_language): New class.
3691 (m2_language_defn): New static global.
3692 * gdb/objc-lang.c (objc_language_defn): Convert to...
3693 (objc_language_data): ...this.
3694 (class objc_language): New class.
3695 (objc_language_defn): New static global.
3696 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
3697 (opencl_language_data): ...this.
3698 (class opencl_language): New class.
3699 (opencl_language_defn): New static global.
3700 * gdb/p-lang.c (pascal_language_defn): Convert to...
3701 (pascal_language_data): ...this.
3702 (class pascal_language): New class.
3703 (pascal_language_defn): New static global.
3704 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
3705 language pointer, update comment format.
3706 * gdb/rust-lang.c (rust_language_defn): Convert to...
3707 (rust_language_data): ...this.
3708 (class rust_language): New class.
3709 (rust_language_defn): New static global.
3710
1313c56e
AB
37112020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
3712
3713 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
3714 member variable.
3715 <m_stmt_at_address>: New member variable.
3716 (lnp_state_machine::record_line): Don't record some lines, update
3717 tracking of is_stmt at the same address.
3718 (lnp_state_machine::lnp_state_machine): Initialise new member
3719 variables.
3720
b7ed9f3d
ST
37212020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
3722
3723 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
3724 "-include gnu-nat-mig.h".
3725 * gnu-nat-mig.h: New file.
3726 * gnu-nat.c: Include "gnu-nat-mig.h".
3727 (exc_server, msg_reply_server, notify_server,
3728 process_reply_server): Remove declarations.
3729
14a8ad62
ST
37302020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3731
3732 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
3733 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
3734 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
3735 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
3736 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
3737 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
3738 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
3739 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
3740 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
3741 to gnu_nat_target class.
3742 * gnu-nat.c: Likewise.
3743 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
3744 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
3745 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
3746 object.
3747 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
3748 instead of `gnu_target'.
3749
0af5e106
ST
37502020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3751
3752 * i386-gnu-tdep.c: Include "gdbcore.h"
3753 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
3754 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
3755 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
3756 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
3757 i386_gnu_sigcontext_addr): New functions
3758 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
3759 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
3760 tdep.
3761
078f2fc9
ST
37622020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3763
3764 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
3765 before fork_inferior call. Avoid calling it if target_is_pushed returns
3766 true.
3767
53dff92c
ST
37682020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3769
3770 * gnu-nat.h (gnu_target): New variable declaration.
3771 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
3772 gnu_target.
3773 * gnu-nat.c (gnu_target): New variable.
3774 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
3775 add_thread_silent, and add_thread calls.
3776 (gnu_nat_target::create_inferior): Pass gnu_target to
3777 add_thread_silent, thread_change_ptid call.
3778 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
3779 call.
3780
5a8b8627
ST
37812020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3782
3783 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
3784 (gnu_nat_target::find_memory_regions): Remove unused
3785 `old_address' variable.
3786
366f550a
ST
37872020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3788
3789 * gnu-nat.c: Include "gdbarch.h".
3790
f14871bf
ST
37912020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3792
3793 * reply_mig_hack.awk (Error return): Cast function through
3794 void *, to bypass compiler function call check.
3795
c6887cfb
ST
37962020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3797
3798 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
3799 $(srcdir)/reply_mig_hack.awk.
3800
6930bffe
ST
38012020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3802
3803 * gnu-nat.h (gnu_debug_flag): Set type to bool.
3804
112c22ed
JG
38052020-05-30 Jonny Grant <jg@jguk.org>
3806
3807 * configure.ac (ACX_BUGURL): change bug URL to https.
3808
f68f85b5
PA
38092020-05-30 Pedro Alves <palves@redhat.com>
3810
3811 * cp-support.c (replace_typedefs_template): New.
3812 (replace_typedefs_qualified_name): Handle
3813 DEMANGLE_COMPONENT_TEMPLATE.
3814
976ca316
SM
38152020-05-29 Simon Marchi <simon.marchi@efficios.com>
3816
3817 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
3818 dwarf2/index-cache.h, dwarf2/index-write.c,
3819 dwarf2/index-write.h, dwarf2/line-header.c,
3820 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
3821 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
3822 variables and fields from `dwarf2_per_objfile` to just
3823 `per_objfile` throughout.
3824
989ade05
SM
38252020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
3826
3827 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
3828 <push_dwarf_reg_entry_value>: Add comment.
3829
c47bae85
KB
38302020-05-28 Kevin Buettner <kevinb@redhat.com>
3831 Keith Seitz <keiths@redhat.com>
3832
3833 * python/python.c (do_start_initialization): Call PyEval_SaveThread
3834 instead of PyEval_ReleaseLock.
3835 (class gdbpy_gil): Move to earlier in file.
3836 (finalize_python): Set gdb_python_initialized.
3837 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
3838 when not initialized.
3839
44486dcf
SM
38402020-05-28 Simon Marchi <simon.marchi@efficios.com>
3841
3842 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
3843 <push_dwarf_reg_entry_value>: Remove assert. Override
3844 per_objfile with caller_per_objfile.
3845
f030440d
TV
38462020-05-28 Tom de Vries <tdevries@suse.de>
3847
3848 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
3849 PR gold/15646 workaround to symbol kind "type".
3850
f0fbb768
TT
38512020-05-27 Tom Tromey <tromey@adacore.com>
3852
3853 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
3854
af0b2a3e
TT
38552020-05-27 Tom Tromey <tromey@adacore.com>
3856
3857 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
3858 Use htab_find_with_hash.
3859 <add_abbrev>: Remove "abbrev_number" parameter.
3860 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
3861 "abbrev_number" parameter. Use htab_find_slot_with_hash.
3862 (hash_abbrev): Add comment.
3863 (abbrev_table::lookup_abbrev): Move to header file.
3864 (abbrev_table::read): Update.
3865
7d00ffec
TT
38662020-05-27 Tom Tromey <tromey@adacore.com>
3867
3868 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
3869 method.
3870 <canonical_name>: New member.
3871 <raw_name>: Rename from "name".
3872 (partial_die_info): Initialize canonical_name.
3873 (scan_partial_symbols): Check raw_name.
3874 (partial_die_parent_scope, partial_die_full_name)
3875 (add_partial_symbol, add_partial_subprogram)
3876 (add_partial_enumeration, load_partial_dies): Use "name" method.
3877 (partial_die_info::name): New method.
3878 (partial_die_info::read, guess_partial_die_structure_name)
3879 (partial_die_info::fixup): Update.
3880
697bba18
TT
38812020-05-27 Tom Tromey <tromey@adacore.com>
3882
3883 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
3884 <get_ref_die_offset>: Inline.
3885 <get_ref_die_offset_complaint>: New method.
3886 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
3887 (attribute::get_ref_die_offset_complaint): Rename from
3888 get_ref_die_offset. Just issue complaint.
3889
c17ace43
HD
38902020-05-27 Hannes Domani <ssbssa@yahoo.de>
3891
3892 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
3893
96445f0b
HD
38942020-05-27 Hannes Domani <ssbssa@yahoo.de>
3895
3896 * exec.c (exec_file_attach): Use errno value of first openp failure.
3897
ac637ec3
HD
38982020-05-27 Hannes Domani <ssbssa@yahoo.de>
3899
3900 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
3901 Don't close thread handle.
3902
17ee85fc
TT
39032020-05-27 Tom Tromey <tom@tromey.com>
3904 Simon Marchi <simon.marchi@efficios.com>
3905
3906 * objfiles.h (struct objfile) <partial_symtabs>: Now a
3907 shared_ptr.
3908 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
3909 member.
3910 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
3911 dwarf2_per_bfd_objfile_data_key>: New globals.
3912 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
3913 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
3914 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
3915 shared.
3916 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
3917 short-circuit when sharing.
3918 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
3919 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
3920
39b16f87
SM
39212020-05-27 Simon Marchi <simon.marchi@efficios.com>
3922
3923 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
3924 to...
3925 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
3926 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
3927
fcf23d5b
SM
39282020-05-27 Simon Marchi <simon.marchi@efficios.com>
3929
3930 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
3931 build_name_components, find_name_components_bounds>:
3932 Add per_objfile parameter.
3933 (struct mapped_index) <symbol_name_at>: Likewise.
3934 (struct mapped_debug_names): Remove constructor.
3935 <dwarf2_per_objfile>: Remove field.
3936 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
3937 (mapped_index_base::find_name_components_bounds,
3938 mapped_index_base::build_name_components,
3939 dw2_expand_symtabs_matching_symbol): Likewise.
3940 (class mock_mapped_index) <symbol_name_at>: Likewise.
3941 (check_match): Likewise.
3942 (check_find_bounds_finds): Likewise.
3943 (test_mapped_index_find_name_component_bounds): Update.
3944 (CHECK_MATCH): Update.
3945 (dw2_expand_symtabs_matching): Update.
3946 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
3947 per_objfile parameter.
3948 <find_vec_in_debug_names>: Likewise.
3949 <m_per_objfile>: New field.
3950 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
3951 parameter.
3952 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
3953 (dw2_debug_names_iterator::next): Update.
3954 (dw2_debug_names_lookup_symbol): Update.
3955 (dw2_debug_names_expand_symtabs_for_function): Update.
3956 (dw2_debug_names_map_matching_symbols): Update.
3957 (dw2_debug_names_expand_symtabs_matching): Update.
3958 (dwarf2_read_debug_names): Update.
3959
7188ed02
SM
39602020-05-27 Simon Marchi <simon.marchi@efficios.com>
3961
3962 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
3963 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
3964 move to dwarf2_per_objfile.
3965 <read_in_chain>: Remove.
3966 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
3967 remove_all_cus, age_comp_units>: New methods.
3968 <m_dwarf2_cus>: New member.
3969 (struct dwarf2_per_cu_data) <cu>: Remove.
3970 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
3971 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
3972 moved to methods of dwarf2_per_objfile.
3973 (dwarf2_clear_marks): Remove.
3974 (dwarf2_queue_item::~dwarf2_queue_item): Update.
3975 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
3976 (dwarf2_per_bfd::free_cached_comp_units): Remove.
3977 (dwarf2_per_objfile::remove_all_cus): New.
3978 (class free_cached_comp_units) <~free_cached_comp_units>:
3979 Update.
3980 (load_cu): Update.
3981 (dw2_do_instantiate_symtab): Adjust.
3982 (fill_in_sig_entry_from_dwo_entry): Adjust.
3983 (cutu_reader::init_tu_and_read_dwo_dies): Update.
3984 (cutu_reader::cutu_reader): Likewise.
3985 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
3986 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
3987 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
3988 and dwarf2_per_objfile::age_comp_units.
3989 (load_partial_comp_unit): Update.
3990 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
3991 (process_queue): Likewise.
3992 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
3993 backlink.
3994 (dwarf2_read_addr_index): Likewise.
3995 (follow_die_offset): Likewise.
3996 (dwarf2_fetch_die_loc_sect_off): Likewise.
3997 (dwarf2_fetch_constant_bytes): Likewise.
3998 (dwarf2_fetch_die_type_sect_off): Likewise.
3999 (follow_die_sig_1): Likewise.
4000 (load_full_type_unit): Likewise.
4001 (read_signatured_type): Likewise.
4002 (dwarf2_cu::dwarf2_cu): Don't set cu field.
4003 (dwarf2_cu::~dwarf2_cu): Remove.
4004 (dwarf2_per_objfile::get_cu): New.
4005 (dwarf2_per_objfile::set_cu): New.
4006 (age_cached_comp_units): Rename to...
4007 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
4008 to std::unordered_map.
4009 (free_one_cached_comp_unit): Rename to...
4010 (dwarf2_per_objfile::remove_cu): ... this. Adjust
4011 to std::unordered_map.
4012 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
4013 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
4014 a dwarf2_per_objfile in data.
4015 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
4016 (dwarf2_clear_marks): Remove.
4017
2e671100
SM
40182020-05-27 Simon Marchi <simon.marchi@efficios.com>
4019
4020 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
4021 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
4022 (init_tu_and_read_dwo_dies): Likewise.
4023 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
4024 (cutu_reader::cutu_reader): Likewise.
4025 (load_partial_comp_unit): Likewise.
4026 (process_psymtab_comp_unit): Update.
4027 (build_type_psymtabs_1): Update.
4028 (process_skeletonless_type_unit): Update.
4029 (load_full_comp_unit): Update.
4030 (find_partial_die): Update.
4031 (dwarf2_read_addr_index): Update.
4032 (read_signatured_type): Update.
4033
2e6a9f79
SM
40342020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4035
4036 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
4037 m_header_read_in>: New fields.
4038 <get_header>: New method.
4039 * dwarf2/read.c (per_cu_header_read_in): Remove.
4040 (dwarf2_per_cu_data::get_header): New.
4041 (dwarf2_per_cu_data::addr_size): Update.
4042 (dwarf2_per_cu_data::offset_size): Update.
4043 (dwarf2_per_cu_data::ref_addr_size): Update.
4044
1b555f17
SM
40452020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4046
4047 * dwarf2/read.c (load_cu): Return dwarf2_cu.
4048 (dw2_do_instantiate_symtab): Update.
4049 (queue_and_load_all_dwo_tus): Change parameter from
4050 dwarf2_per_cu_data to dwarf2_cu.
4051 (dwarf2_fetch_die_loc_sect_off): Update.
4052 (dwarf2_fetch_constant_bytes): Update.
4053 (dwarf2_fetch_die_type_sect_off): Update.
4054
8fc0b21d
SM
40552020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4056
4057 * dwarf2/read.c (process_full_comp_unit,
4058 process_full_type_unit): Remove per_cu, per_objfile paramters.
4059 Add dwarf2_cu parameter.
4060 (process_queue): Update.
4061
168c9250
SM
40622020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4063
4064 * dwarf2/read.c (create_cu_from_index_list): Replace
4065 dwarf2_per_objfile parameter with dwarf2_per_bfd.
4066 (create_cus_from_index_list): Likewise.
4067 (create_cus_from_index): Likewise.
4068 (create_signatured_type_table_from_index): Likewise.
4069 (create_cus_from_debug_names_list): Likewise.
4070 (create_cus_from_debug_names): Likewise.
4071 (dwarf2_read_gdb_index): Update.
4072 (dwarf2_read_debug_names): Update.
4073
e286671b
TT
40742020-05-27 Tom Tromey <tom@tromey.com>
4075 Simon Marchi <simon.marchi@efficios.com>
4076
4077 * dwarf2/read.h (struct dwarf2_per_objfile)
4078 <get_type_for_signatured_type, set_type_for_signatured_type>:
4079 New methods.
4080 <m_type_map>: New member.
4081 (struct signatured_type) <type>: Remove.
4082 * dwarf2/read.c
4083 (dwarf2_per_objfile::get_type_for_signatured_type,
4084 dwarf2_per_objfile::set_type_for_signatured_type): New.
4085 (get_signatured_type): Use new methods.
4086
8adb8487
TT
40872020-05-27 Tom Tromey <tom@tromey.com>
4088 Simon Marchi <simon.marchi@efficios.com>
4089
4090 * dwarf2/read.h (struct type_unit_group_unshareable): New.
4091 (struct dwarf2_per_objfile) <type_units>: New member.
4092 <get_type_unit_group_unshareable>: New method.
4093 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
4094 num_symtabs, symtabs>: Remove; move to
4095 type_unit_group_unshareable.
4096 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
4097 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
4098 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
4099
127bbf4b
SM
41002020-05-27 Simon Marchi <simon.marchi@efficios.com>
4101
4102 * dwarf2/read.h (struct dwarf2_per_cu_data):
4103 <dwarf2_per_objfile>: Remove.
4104 * dwarf2/read.c (create_cu_from_index_list): Don't assign
4105 dwarf2_per_objfile.
4106 (create_signatured_type_table_from_index): Likewise.
4107 (create_signatured_type_table_from_debug_names): Likewise.
4108 (create_debug_type_hash_table): Likewise.
4109 (fill_in_sig_entry_from_dwo_entry): Likewise.
4110 (create_type_unit_group): Likewise.
4111 (read_comp_units_from_section): Likewise.
4112 (create_cus_hash_table): Likewise.
4113
f6e649dd
SM
41142020-05-27 Simon Marchi <simon.marchi@efficios.com>
4115
4116 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
4117 dwarf2_per_cu_data::dwarf2_per_objfile.
4118 (compute_compunit_symtab_includes): Likewise.
4119 (dwarf2_cu::start_symtab): Likewise.
4120
aa66c379
SM
41212020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4122
4123 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
4124 parameter.
4125 * dwarf2/read.c (get_die_type_at_offset): Likewise.
4126 (read_namespace_alias): Update.
4127 (lookup_die_type): Update.
4128 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
4129 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
4130 Update.
4131 (disassemble_dwarf_expression): Update.
4132
120ce1b5
SM
41332020-05-27 Simon Marchi <simon.marchi@efficios.com>
4134
4135 * dwarf2/read.h (struct dwarf2_queue_item): Add
4136 dwarf2_per_objfile parameter, assign new parameter.
4137 <per_objfile>: New field.
4138 * dwarf2/read.c (free_one_cached_comp_unit): Add
4139 dwarf2_per_objfile parameter.
4140 (queue_comp_unit): Likewise.
4141 (dw2_do_instantiate_symtab): Update.
4142 (process_psymtab_comp_unit): Update.
4143 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
4144 (process_imported_unit_die): Update.
4145 (queue_and_load_dwo_tu): Update.
4146 (follow_die_offset): Update.
4147 (follow_die_sig_1): Update.
4148
9f47c707
SM
41492020-05-27 Simon Marchi <simon.marchi@efficios.com>
4150
4151 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
4152 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
4153 (read_call_site_scope): Assign per_objfile.
4154 (dwarf2_per_cu_data::objfile): Remove.
4155 * gdbtypes.h (struct call_site) <per_objfile>: New member.
4156 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
4157 dwarf2_per_objfile parameter.
4158 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
4159 dwarf2_per_objfile parameter.
4160 (dwarf_expr_reg_to_entry_parameter): Add output
4161 dwarf2_per_objfile parameter.
4162 (locexpr_get_frame_base): Update.
4163 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
4164 <push_dwarf_reg_entry_value>: Update.
4165 <call_site_to_target_addr>: Update.
4166 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
4167 parameter.
4168 (value_of_dwarf_reg_entry): Update.
4169 (rw_pieced_value): Update.
4170 (indirect_synthetic_pointer): Update.
4171 (dwarf2_evaluate_property): Update.
4172 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
4173 parameter.
4174 (locexpr_read_variable): Update.
4175 (locexpr_get_symbol_read_needs): Update.
4176 (loclist_read_variable): Update.
4177
14095eb3
SM
41782020-05-27 Simon Marchi <simon.marchi@efficios.com>
4179
4180 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
4181 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
4182 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
4183 parameter.
4184 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
4185 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
4186 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
4187 parameter.
4188 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
4189 sect_variable_value): Add dwarf2_per_objfile parameter.
4190 (class dwarf_evaluate_loc_desc) <dwarf_call,
4191 dwarf_variable_value>: Update.
4192 (fetch_const_value_from_synthetic_pointer): Add
4193 dwarf2_per_objfile parameter.
4194 (fetch_const_value_from_synthetic_pointer): Update.
4195 (coerced_pieced_ref): Update.
4196 (class symbol_needs_eval_context) <dwarf_call,
4197 dwarf_variable_value>: Update.
4198 (dwarf2_compile_expr_to_ax): Update.
4199
3c3cd3d4
SM
42002020-05-27 Simon Marchi <simon.marchi@efficios.com>
4201
4202 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
4203 parameter.
4204 (dwarf2_evaluate_loc_desc_full): Update.
4205
82ca3f51
SM
42062020-05-27 Simon Marchi <simon.marchi@efficios.com>
4207
4208 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
4209 parameter.
4210 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
4211 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
4212 dwarf2_per_objfile parameter.
4213 (decode_debug_loc_dwo_addresses): Likewise.
4214 (dwarf2_find_location_expression): Update.
4215 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
4216 (locexpr_describe_location_piece): Add dwarf2_per_objfile
4217 parameter.
4218 (disassemble_dwarf_expression): Add dwarf2_per_objfile
4219 parameter.
4220 (locexpr_describe_location_1): Likewise.
4221 (locexpr_describe_location): Update.
4222
4b167ea1
SM
42232020-05-27 Simon Marchi <simon.marchi@efficios.com>
4224
4225 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
4226 Remove.
4227 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
4228 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
4229 (dwarf2_compile_property_to_c): Update.
4230 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
4231 use text offset from objfile.
4232 (locexpr_tracepoint_var_ref): Update.
4233 (locexpr_generate_c_location): Update.
4234 (loclist_describe_location): Update.
4235 (loclist_tracepoint_var_ref): Update.
4236 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
4237 dwarf2_per_objfile parameter.
4238 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
4239 use text offset from objfile.
4240 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
4241
89b07335
SM
42422020-05-27 Simon Marchi <simon.marchi@efficios.com>
4243
4244 * dwarf2/expr.h (struct dwarf_expr_context)
4245 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
4246 <offset>: Remove.
4247 <per_objfile>: New member.
4248 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
4249 dwarf2_per_objfile parameter. Don't set offset, set
4250 per_objfile.
4251 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
4252 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
4253 a dwarf2_per_objfile object instead of an offset.
4254 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
4255 constructor.
4256 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
4257 to dwarf2_expr_executor constructor. Don't set offset.
4258 (dwarf2_fetch_cfa_info): Update.
4259 (struct dwarf2_frame_cache) <text_offset>: Remove.
4260 <per_objfile>: New field.
4261 (dwarf2_frame_cache): Update.
4262 (dwarf2_frame_prev_register): Update.
4263 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
4264 <dwarf_evaluate_loc_desc>: Add constructor.
4265 (dwarf2_evaluate_loc_desc_full): Update.
4266 (dwarf2_locexpr_baton_eval): Update.
4267 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
4268 Add constructor.
4269 (dwarf2_loc_desc_get_symbol_read_needs): Update.
4270
293e7e51
SM
42712020-05-27 Simon Marchi <simon.marchi@efficios.com>
4272
4273 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
4274 addr_sized_int_type>: Move to dwarf2_cu.
4275 <int_type>: Move to dwarf2_per_objfile.
4276 (struct dwarf2_per_objfile) <int_type>: Move here.
4277 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
4278 addr_sized_int_type>: Move here.
4279 (read_func_scope): Update.
4280 (read_array_type): Update.
4281 (read_tag_string_type): Update.
4282 (attr_to_dynamic_prop): Update.
4283 (dwarf2_per_cu_data::int_type): Rename to...
4284 (dwarf2_per_objfile::int_type): ... this.
4285 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
4286 (dwarf2_cu::addr_sized_int_type): ... this.
4287 (read_subrange_type): Update.
4288 (dwarf2_per_cu_data::addr_type): Rename to...
4289 (dwarf2_cu::addr_type): ... this.
4290 (set_die_type): Update.
4291
64874a40
SM
42922020-05-27 Simon Marchi <simon.marchi@efficios.com>
4293
4294 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
4295 data through per_cu->cu.
4296
4ab09049
SM
42972020-05-27 Simon Marchi <simon.marchi@efficios.com>
4298
4299 * dwarf2/read.c (lookup_dwo_comp_unit): Change
4300 dwarf2_per_cu_data parameter fo dwarf2_cu.
4301 (lookup_dwo_type_unit): Likewise.
4302 (read_cutu_die_from_dwo): Likewise.
4303 (lookup_dwo_unit): Likewise.
4304 (open_and_init_dwo_file): Likewise.
4305 (lookup_dwo_cutu): Likewise.
4306 (lookup_dwo_comp_unit): Likewise.
4307 (lookup_dwo_type_unit): Likewise.
4308 (cutu_reader::init_tu_and_read_dwo_dies): Update.
4309 (cutu_reader::cutu_reader): Update.
4310
47b14e86
SM
43112020-05-27 Simon Marchi <simon.marchi@efficios.com>
4312
4313 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
4314 parameter.
4315 (process_full_type_unit): Likewise.
4316 (process_queue): Update.
4317
43182c09
SM
43182020-05-27 Simon Marchi <simon.marchi@efficios.com>
4319
4320 * dwarf2/read.c (recursively_compute_inclusions): Add
4321 dwarf2_per_objfile parameter.
4322 (compute_compunit_symtab_includes): Likewise.
4323 (process_cu_includes): Update.
4324
7aa104c4
SM
43252020-05-27 Simon Marchi <simon.marchi@efficios.com>
4326
4327 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
4328 parameter.
4329 (create_type_unit_group): Update.
4330 (process_psymtab_comp_unit_reader): Update.
4331 (build_type_psymtabs_reader): Update.
4332
e3beb21d
SM
43332020-05-27 Simon Marchi <simon.marchi@efficios.com>
4334
4335 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
4336 object through m_this_cu->cu.
4337
d460f660
SM
43382020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4339
4340 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
4341 the info parameter.
4342 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
4343
ab432490
SM
43442020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4345
4346 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
4347 per_objfile parameter.
4348 (load_full_type_unit): Add per_objfile parameter.
4349 (read_signatured_type): Likewise.
4350 (load_full_comp_unit): Likewise.
4351 (load_cu): Likewise.
4352 (dw2_do_instantiate_symtab): Likewise.
4353 (dw2_get_file_names): Likewise.
4354 (dw2_map_symtabs_matching_filename): Update.
4355 (dw_expand_symtabs_matching_file_matcher): Update.
4356 (dw2_map_symbol_filenames): Update.
4357 (process_psymtab_comp_unit): Add per_objfile parameter.
4358 (build_type_psymtabs_1): Update.
4359 (process_skeletonless_type_unit): Update.
4360 (dwarf2_build_psymtabs_hard): Update.
4361 (load_partial_comp_unit): Add per_objfile parameter.
4362 (scan_partial_symbols): Update.
4363 (load_full_comp_unit): Add per_objfile parameter.
4364 (process_imported_unit_die): Update.
4365 (create_cus_hash_table): Update.
4366 (find_partial_die): Update.
4367 (dwarf2_read_addr_index): Update.
4368 (follow_die_offset): Update.
4369 (dwarf2_fetch_die_loc_sect_off): Update.
4370 (dwarf2_fetch_constant_bytes): Update.
4371 (dwarf2_fetch_die_type_sect_off): Update.
4372 (follow_die_sig_1): Update.
4373 (load_full_type_unit): Add per_objfile parameter.
4374 (read_signatured_type): Likewise.
4375
313bad1b
SM
43762020-05-27 Simon Marchi <simon.marchi@efficios.com>
4377
4378 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
4379 of objfile_name.
4380
c3699833
SM
43812020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4382
4383 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
4384 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
4385 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
4386 field.
4387 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
4388 (create_cus_from_index): Update.
4389 (dwarf2_read_gdb_index): Update.
4390 (create_cus_from_debug_names): Update.
4391 (dwarf2_read_debug_names): Update.
4392 (get_abbrev_section_for_cu): Update.
4393 (create_all_comp_units): Update.
4394 (read_attribute_value): Update.
4395 (get_debug_line_section): Update.
4396 * dwarf2/index-cache.c (index_cache::store): Update.
4397 * dwarf2/index-write.c (save_gdb_index_command): Update.
4398 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
4399
1859c670
SM
44002020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4401
4402 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
4403 member.
4404 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
4405 dwarf2_per_cu_data::per_bfd.
4406 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
4407 (create_type_unit_group): Likewise.
4408 (queue_comp_unit): Remove reference to
4409 per_cu->dwarf2_per_objfile.
4410 (maybe_queue_comp_unit): Likewise.
4411 (fill_in_sig_entry_from_dwo_entry): Assign new field.
4412 (create_cus_hash_table): Assign new field.
4413
5e22e966
SM
44142020-05-27 Simon Marchi <simon.marchi@efficios.com>
4415
4416 * dwarf2/read.c: Replace
4417 dwarf2_cu->per_cu->dwarf2_per_objfile references with
4418 dwarf2_cu->per_objfile throughout.
4419
97a1449a
SM
44202020-05-27 Simon Marchi <simon.marchi@efficios.com>
4421
4422 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
4423 parameter, don't use per_cu->dwarf2_per_objfile.
4424 (dw2_instantiate_symtab): Likewise.
4425 (dw2_find_last_source_symtab): Update.
4426 (dw2_map_expand_apply): Update.
4427 (dw2_lookup_symbol): Update.
4428 (dw2_expand_symtabs_for_function): Update.
4429 (dw2_expand_all_symtabs): Update.
4430 (dw2_expand_symtabs_with_fullname): Update.
4431 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
4432 don't use per_cu->dwarf2_per_objfile.
4433 (dw2_expand_marked_cus): Update.
4434 (dw2_find_pc_sect_compunit_symtab): Update.
4435 (dw2_debug_names_lookup_symbol): Update.
4436 (dw2_debug_names_expand_symtabs_for_function): Update.
4437 (dw2_debug_names_map_matching_symbols): Update.
4438 (dwarf2_psymtab::expand_psymtab): Update.
4439
9e021579
SM
44402020-05-27 Simon Marchi <simon.marchi@efficios.com>
4441
4442 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
4443 <per_objfile>: New member.
4444 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
4445 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
4446 call to dwarf2_cu.
4447 (cutu_reader::cutu_reader): Update.
4448 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
4449
ae090bdb
SM
44502020-05-27 Simon Marchi <simon.marchi@efficios.com>
4451
4452 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
4453 struct dwarf2_per_objfile.
4454 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
4455 dwarf2_per_bfd.
4456 * dwarf2/read.c (set_die_type): Update.
4457 (get_die_type_at_offset): Update.
4458
af758d11
SM
44592020-05-27 Tom Tromey <tom@tromey.com>
4460 Simon Marchi <simon.marchi@efficios.com>
4461
4462 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
4463 method.
4464 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
4465 get_symtab, set_symtab>: New methods.
4466 <m_symtabs>: New field.
4467 (struct dwarf2_psymtab): Derive from partial_symtab.
4468 <readin_p, get_compunit_symtab>: Declare methods.
4469 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
4470 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
4471 New methods.
4472 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
4473 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
4474 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
4475 (dw2_symtab_iter_next, dw2_print_stats)
4476 (dw2_expand_symtabs_with_fullname)
4477 (dw2_expand_symtabs_matching_one)
4478 (dw_expand_symtabs_matching_file_matcher)
4479 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
4480 (dw2_debug_names_iterator::next)
4481 (dw2_debug_names_map_matching_symbols)
4482 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
4483 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
4484 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
4485 New methods.
4486 (get_compunit_symtab, process_full_comp_unit)
4487 (process_full_type_unit): Update.
4488 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
4489
5989a64e
SM
44902020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4491
4492 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
4493 then introduce a new dwarf2_per_objfile type.
4494 <read_line_string>: Move to the new dwarf2_per_objfile type.
4495 <objfile>: Likewise.
4496 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
4497 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
4498 dwarf2_per_objfile->per_bfd.
4499 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
4500 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
4501 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
4502 (dwarf2_per_bfd::free_cached_comp_units): ... this.
4503 (dwarf2_has_info): Allocate dwarf2_per_bfd.
4504 (dwarf2_per_objfile::locate_sections): Rename to...
4505 (dwarf2_per_bfd::locate_sections): ... this.
4506 (dwarf2_per_objfile::get_cutu): Rename to...
4507 (dwarf2_per_bfd::get_cutu): ... this.
4508 (dwarf2_per_objfile::get_cu): Rename to...
4509 (dwarf2_per_bfd::get_cu): ... this.
4510 (dwarf2_per_objfile::get_tu): Rename to...
4511 (dwarf2_per_bfd::get_tu): ... this.
4512 (dwarf2_per_objfile::allocate_per_cu): Rename to...
4513 (dwarf2_per_bfd::allocate_per_cu): ... this.
4514 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
4515 (dwarf2_per_bfd::allocate_signatured_type): ... this.
4516 (get_gdb_index_contents_ftype): Change parameter from
4517 dwarf2_per_objfile to dwarf2_per_bfd.
4518 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
4519 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
4520
a50264ba
TT
45212020-05-27 Tom Tromey <tom@tromey.com>
4522 Simon Marchi <simon.marchi@efficios.com>
4523
4524 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
4525 (allocate_piece_closure): Set "per_objfile" member.
4526 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
4527 (locexpr_describe_location, loclist_describe_location): Use new
4528 member.
4529 * dwarf2/read.c (read_call_site_scope)
4530 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
4531 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
4532 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
4533 handle_data_member_location): Set per_objfile member.
4534 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
4535 member.
4536 (struct dwarf2_loclist_baton) <per_objfile>: New member.
4537
d3473f0c
TT
45382020-05-27 Tom Tromey <tom@tromey.com>
4539
4540 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
4541 allocate_signatured_type>: Declare new methods.
4542 <m_num_psymtabs>: New member.
4543 (struct dwarf2_per_cu_data) <index>: New member.
4544 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
4545 (dwarf2_per_objfile::allocate_signatured_type): New methods.
4546 (create_cu_from_index_list): Use allocate_per_cu.
4547 (create_signatured_type_table_from_index)
4548 (create_signatured_type_table_from_debug_names)
4549 (create_debug_type_hash_table, add_type_unit)
4550 (read_comp_units_from_section): Use allocate_signatured_type.
4551
5717c425
TT
45522020-05-27 Tom Tromey <tom@tromey.com>
4553
4554 * psymtab.c (partial_map_expand_apply)
4555 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
4556 (psym_lookup_global_symbol_language)
4557 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
4558 (psym_print_stats, psym_expand_symtabs_for_function)
4559 (psym_map_symbol_filenames, psym_map_matching_symbols)
4560 (psym_expand_symtabs_matching)
4561 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
4562 (maintenance_check_psymtabs): Update.
4563 * psympriv.h (struct partial_symtab) <readin_p,
4564 get_compunit_symtab>: Add objfile parameter.
4565 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
4566 Likewise.
4567 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
4568 get_compunit_symtab>: Likewise.
4569 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
4570
45940949
TT
45712020-05-27 Tom Tromey <tom@tromey.com>
4572
4573 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
4574 member.
4575 * dwarf2/read.c (delete_file_name_entry): Fix comment.
4576 (create_cu_from_index_list)
4577 (create_signatured_type_table_from_index)
4578 (create_signatured_type_table_from_debug_names)
4579 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
4580 (dwarf2_create_include_psymtab)
4581 (create_debug_type_hash_table, add_type_unit)
4582 (create_type_unit_group, read_comp_units_from_section)
4583 (dwarf2_compute_name, create_cus_hash_table)
4584 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
4585 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
4586 obstack.
4587 (dw2_get_real_path): Likewise. Change argument to
4588 dwarf2_per_objfile.
4589
f8c6d152
LM
45902020-05-27 Luis Machado <luis.machado@linaro.org>
4591
4592 PR tdep/26000
4593 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
4594 for ldrd (immediate).
4595
e98d2e6d
PW
45962020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4597
4598 * command.h: Add comment giving the name of class_tui.
4599 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
4600 create the fake command for the help for class_tui.
4601
53a47a3e
TT
46022020-05-26 Tom Tromey <tromey@adacore.com>
4603
4604 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
4605 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
4606 (val_atr): New function.
4607 (value_val_atr): Use it.
4608 * ada-valprint.c (print_optional_low_bound): Change low bound
4609 handling for enums.
4610 (val_print_packed_array_elements): Don't call discrete_position.
4611 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
4612 discrete_position for enum types.
4613 * language.c (default_print_array_index): Change type.
4614 * language.h (struct language_defn) <la_print_array_index>: Add
4615 index_type parameter, change type of index_value.
4616 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
4617 (default_print_array_index): Update.
4618 * valprint.c (maybe_print_array_index): Don't call
4619 value_from_longest. Update.
4620 (value_print_array_elements): Don't call discrete_position.
4621
0bc2354b
TT
46222020-05-26 Tom Tromey <tromey@adacore.com>
4623
4624 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
4625 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
4626
1218a4bf
CDA
46272020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
4628
4629 PR gdb/13519
4630 * avr-tdep.c (avr_integer_to_address): Return data or code
4631 address accordingly to the second 'type' argument of the
4632 function.
4633
92651b1d
MW
46342020-05-25 Michael Weghorn <m.weghorn@posteo.de>
4635
4636 * infcmd.c, inferior.h: (construct_inferior_arguments):
4637 Moved function from here to gdbsupport/common-inferior.{h,cc}
4638
0a4f5f8c
TT
46392020-05-23 Tom Tromey <tom@tromey.com>
4640
4641 Revert commit eca1f90c:
4642 * NEWS: Remove entry for completion styling.
4643 * completer.c (_rl_completion_prefix_display_length): Move
4644 declaration later.
4645 (gdb_fnprint): Revert.
4646 (gdb_display_match_list_1): Likewise.
4647 * cli/cli-style.c (completion_prefix_style)
4648 (completion_difference_style, completion_suffix_style): Remove.
4649 (_initialize_cli_style): Revert.
4650 * cli/cli-style.h (completion_prefix_style)
4651 (completion_difference_style, completion_suffix_style): Don't
4652 declare.
4653
e08bd6c5
PA
46542020-05-24 Pedro Alves <palves@redhat.com>
4655
4656 * symtab.c (completion_list_add_name): Return boolean indication
4657 of whether the symbol matched.
4658 (completion_list_add_symbol): Don't try to remove C++ aliases if
4659 the symbol didn't match in the first place.
4660 * symtab.h (completion_list_add_name): Return bool.
4661
ceacbf6e
SM
46622020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
4663
4664 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
4665 type::field.
4666
26f16254
JB
46672020-05-23 Joel Brobecker <brobecker@adacore.com>
4668
4669 GDB 9.2 released.
4670
eca1f90c
TT
46712020-05-23 Tom Tromey <tom@tromey.com>
4672
4673 * NEWS: Add entry for completion styling.
4674 * completer.c (_rl_completion_prefix_display_length): Move
4675 declaration earlier.
4676 (gdb_fnprint): Use completion_style.
4677 (gdb_display_match_list_1): Likewise.
4678 * cli/cli-style.c (completion_prefix_style)
4679 (completion_difference_style, completion_suffix_style): New
4680 globals.
4681 (_initialize_cli_style): Register new globals.
4682 * cli/cli-style.h (completion_prefix_style)
4683 (completion_difference_style, completion_suffix_style): Declare.
4684
51e2cfa2
PA
46852020-05-23 Pedro Alves <palves@redhat.com>
4686
4687 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
4688 (parse_escape): Use ISDIGIT instead of isdigit.
4689 (puts_debug): Use gdb_isprint instead of isprint.
4690 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
4691 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
4692 ISSPACE instead of isspace.
4693 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
4694 instead of isspace.
4695 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
4696 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
4697 instead of isxdigit and ISDIGIT instead of isdigit.
4698
80fc5e77
SM
46992020-05-22 Simon Marchi <simon.marchi@efficios.com>
4700
4701 * gdbtypes.h (struct type) <field>: New method.
4702 (TYPE_FIELDS): Remove, replace all uses with either type::fields
4703 or type::field.
4704
3cabb6b0
SM
47052020-05-22 Simon Marchi <simon.marchi@efficios.com>
4706
4707 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
4708 (TYPE_FIELDS): Use type::fields. Change all call sites that
4709 modify the propery to use type::set_fields instead.
4710
1f704f76
SM
47112020-05-22 Simon Marchi <simon.marchi@efficios.com>
4712
4713 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
4714 type::num_fields instead.
4715
5e33d5f4
SM
47162020-05-22 Simon Marchi <simon.marchi@efficios.com>
4717
4718 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
4719 methods.
4720 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
4721 that modify the number of fields to use type::set_num_fields
4722 instead.
4723
9392ebb3
TT
47242020-05-22 Tom Tromey <tromey@adacore.com>
4725
4726 * compile/compile-object-load.h (munmap_list_free): Don't
4727 declare.
4728
7c13f4e8
AB
47292020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
4730
4731 * annotate.c (annotate_source_line): Update return type, add call
4732 to update current symtab and line.
4733 * annotate.h (annotate_source_line): Update return type, and
4734 extend header comment.
4735 * source.c (info_line_command): Check annotation_level before
4736 calling annotate_source_line.
4737 * stack.c (print_frame_info): If calling annotate_source_line
4738 returns true, then don't print any other source line information.
4739
aa370940
SM
47402020-05-21 Simon Marchi <simon.marchi@efficios.com>
4741
4742 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
4743
84d53fa9
SM
47442020-05-21 Simon Marchi <simon.marchi@efficios.com>
4745
4746 * coffread.c (patch_type): Remove NULL check before xfree.
4747 * corefile.c (set_gnutarget): Likewise.
4748 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
4749 * exec.c (build_section_table): Likewise.
4750 * remote.c (remote_target::pass_signals): Likewise.
4751 * utils.c (n_spaces): Likewise.
4752 * cli/cli-script.c (document_command): Likewise.
4753 * i386-windows-tdep.c (core_process_module_section): Likewise.
4754 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
4755
9d428aae
SM
47562020-05-20 Simon Marchi <simon.marchi@efficios.com>
4757
4758 * symfile.c (reread_symbols): Clear objfile's section_offsets
4759 vector and section indices, re-compute them by calling
4760 sym_offsets.
4761
250106a7
TT
47622020-05-20 Tom Tromey <tromey@adacore.com>
4763
4764 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
ec16513e 4765 (desc_one_bound, desc_index_type): Compute field name.
250106a7 4766
9a0bacfb
TV
47672020-05-20 Tom de Vries <tdevries@suse.de>
4768
4769 PR symtab/25833
4770 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
4771
7b958a48
AM
47722020-05-20 Alan Modra <amodra@gmail.com>
4773
4774 PR 25993
4775 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
4776 bfd_set_filename.
4777 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
4778 passed to bfd_set_filename.
4779 * symfile-mem.c (add_vsyscall_page): Likewise for string
4780 passed to symbol_file_add_from_memory.
4781 (symbol_file_add_from_memory): Make name param a const char* and
4782 don't strdup.
4783
c7e97679
AM
47842020-05-20 Alan Modra <amodra@gmail.com>
4785
4786 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
4787 rather than accessing bfd->filename directly.
4788 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
4789 and use bfd_section_name.
4790 * dwarf2/frame.c (decode_frame_entry): Likewise.
4791 * exec.c (exec_set_section_address): Likewise.
4792 * solib-aix.c (solib_aix_bfd_open): Likewise.
4793 * stap-probe.c (get_stap_base_address): Likewise.
4794 * symfile.c (reread_symbols): Likewise.
4795
563c591b
TT
47962020-05-19 Tom Tromey <tromey@adacore.com>
4797
4798 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
4799
f408d82c
SM
48002020-05-19 Simon Marchi <simon.marchi@efficios.com>
4801
4802 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
4803
98c59b52
PA
48042020-05-19 Pedro Alves <palves@redhat.com>
4805
4806 * NEWS (set exec-file-mismatch): Adjust entry.
4807 * exec.c: Include "build-id.h".
4808 (validate_exec_file): Try to match build IDs instead of filenames.
4809 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
4810 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
4811 and pass down 'warn_if_slow'.
4812 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
4813 gdb_bfd_open_closure to pass it down.
4814 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
4815
4111f652
PA
48162020-05-19 Pedro Alves <palves@redhat.com>
4817
4818 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
4819 * target.c (target_fileio_open_1): Rename to target_fileio_open
4820 and make extern. Use bool.
4821 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
4822 (target_fileio_read_alloc_1): Adjust.
4823 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
4824 (target_fileio_open_warn_if_slow): Delete declaration.
4825
ad80db5b
PA
48262020-05-19 Pedro Alves <palves@redhat.com>
4827
4828 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
4829 Adjust all callers.
4830
1d6ce4d3
YS
48312020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
4832
4833 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
4834 whether disp is negative.
4835
9005fbbb
SM
48362020-05-19 Simon Marchi <simon.marchi@efficios.com>
4837
4838 * symfile.h (struct symfile_segment_data)
4839 <~symfile_segment_data>: Remove.
4840 <segment_info>: Change to std::vector.
4841 * symfile.c (default_symfile_segments): Update.
4842 * elfread.c (elf_symfile_segments): Update.
4843
68b888ff
SM
48442020-05-19 Simon Marchi <simon.marchi@efficios.com>
4845
4846 * symfile.h (struct symfile_segment_data) <struct segment>: New.
4847 <segments>: New.
4848 <segment_bases, segment_sizes>: Remove.
4849 * symfile.c (default_symfile_segments): Update.
4850 * elfread.c (elf_symfile_segments): Update.
4851 * remote.c (remote_target::get_offsets): Update.
4852 * solib-target.c (solib_target_relocate_section_addresses):
4853 Update.
4854
62982abd
SM
48552020-05-19 Simon Marchi <simon.marchi@efficios.com>
4856
4857 * symfile.h (struct symfile_segment_data): Initialize fields.
4858 <~symfile_segment_data>: Add.
4859 (symfile_segment_data_up): New.
4860 (struct sym_fns) <sym_segments>: Return a
4861 symfile_segment_data_up.
4862 (default_symfile_segments): Return a symfile_segment_data_up.
4863 (free_symfile_segment_data): Remove.
4864 (get_symfile_segment_data): Return a symfile_segment_data_up.
4865 * symfile.c (default_symfile_segments): Likewise.
4866 (get_symfile_segment_data): Likewise.
4867 (free_symfile_segment_data): Remove.
4868 (symfile_find_segment_sections): Update.
4869 * elfread.c (elf_symfile_segments): Return a
4870 symfile_segment_data_up.
4871 * remote.c (remote_target::get_offsets): Update.
4872 * solib-target.c (solib_target_relocate_section_addresses):
4873 Update.
4874 * symfile-debug.c (debug_sym_segments): Return a
4875 symfile_segment_data_up.
4876
7f204339
RO
48772020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4878
e52a0f1b
RO
4879 PR build/25981
4880 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
4881 Hardcode register numbers.
4882
7f204339
RO
4883 PR build/25981
4884 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
4885 procfs_find_LDT_entry): Remove.
4886 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
4887 procfs_find_LDT_entry): Remove.
4888 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
4889 Remove.
4890
7f32a4d5
PA
48912020-05-17 Pedro Alves <palves@redhat.com>
4892 Andrew Burgess <andrew.burgess@embecosm.com>
4893 Keno Fischer <keno@juliacomputing.com>
4894
4895 PR gdb/25741
4896 * breakpoint.c (build_target_condition_list): Update comments.
4897 (build_target_command_list): Update comments and skip matching
4898 locations.
4899 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
4900 a separate function. Simplify "set breakpoint auto-hw off"
4901 handling.
4902 (insert_breakpoints): Update comment.
4903 (tracepoint_locations_match): New parameter. For breakpoints,
4904 compare location types too, if the caller wants to.
4905 (handle_automatic_hardware_breakpoints): New functions.
4906 (bp_location_is_less_than): Also sort by location type and
4907 hardware breakpoint length.
4908 (update_global_location_list): Handle "set breakpoint auto-hw on"
4909 here.
4910 (update_breakpoint_locations): Ask breakpoint_locations_match to
4911 ignore location types.
4912
7d93a1e0
SM
49132020-05-16 Simon Marchi <simon.marchi@efficios.com>
4914
4915 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
4916 type::name instead.
4917
d0e39ea2
SM
49182020-05-16 Simon Marchi <simon.marchi@efficios.com>
4919
4920 * gdbtypes.h (struct type) <name, set_name>: New methods.
4921 (TYPE_CODE): Use type::name. Change all call sites used to set
4922 the name to use type::set_name instead.
4923
2dab0c7b
TT
49242020-05-16 Tom Tromey <tom@tromey.com>
4925
4926 * top.c (quit_force): Update.
4927 * infrun.c (handle_no_resumed): Update.
4928 * top.h (all_uis): New function.
4929 (ALL_UIS): Remove.
4930
59f7bd8d
SM
49312020-05-16 Simon Marchi <simon.marchi@efficios.com>
4932
4933 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
4934
9bf058f0
PA
49352020-05-16 Pedro Alves <palves@redhat.com>
4936
4937 * ia64-linux-nat.c
4938 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
4939 Declare method.
4940 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
4941
8f86ae1a
SM
49422020-05-15 Simon Marchi <simon.marchi@efficios.com>
4943
4944 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
4945 (sparc64_adi_info): Likewise.
4946
d6bc0792
TT
49472020-05-15 Tom Tromey <tom@tromey.com>
4948
4949 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
4950 block_objfile.
4951 (lookup_objfile_from_block): Remove.
4952 (lookup_symbol_in_block, lookup_symbol_in_static_block)
4953 (lookup_global_symbol): Use block_objfile.
4954 * symtab.h (lookup_objfile_from_block): Don't declare.
4955 * printcmd.c (clear_dangling_display_expressions): Use
4956 block_objfile.
4957 * parse.c (operator_check_standard): Use block_objfile.
4958
8c14c3a3
TT
49592020-05-15 Tom Tromey <tom@tromey.com>
4960
4961 * language.c (language_alloc_type_symbol): Set
4962 SYMBOL_SECTION.
4963 * symtab.c (initialize_objfile_symbol): Remove.
4964 (allocate_symbol): Remove.
4965 (allocate_template_symbol): Remove.
4966 * dwarf2/read.c (fixup_go_packaging): Use "new".
4967 (new_symbol): Use "new".
4968 (read_variable): Don't call initialize_objfile_symbol. Use
4969 "new".
4970 (read_func_scope): Use "new".
4971 * xcoffread.c (process_xcoff_symbol): Don't call
4972 initialize_objfile_symbol.
4973 (SYMBOL_DUP): Remove.
4974 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
4975 "new".
4976 * symtab.h (allocate_symbol, initialize_objfile_symbol)
4977 (allocate_template_symbol): Don't declare.
4978 (struct symbol): Add copy constructor. Change defaults.
4979 * jit.c (finalize_symtab): Use "new".
4980 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
4981 Use "new".
4982 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
4983 (common_block_end): Use "new".
4984 * mdebugread.c (parse_symbol): Use "new".
4985 (new_symbol): Likewise.
4986
5b4a1a8d
PW
49872020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4988
4989 * NEWS: Mention changes to help and apropos.
4990
57b4f16e
PW
49912020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4992
4993 * command.h (enum command_class): Improve comments, document
4994 that class_alias is for user-defined aliases, give the class
4995 name for each class, remove unused class_xdb.
4996 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
4997 * breakpoint.c (_initialize_breakpoint): Replace class_alias
4998 by a precise class.
4999 * infcmd.c (_initialize_infcmd): Likewise.
5000 * reverse.c (_initialize_reverse): Likewise.
5001 * stack.c (_initialize_stack): Likewise.
5002 * symfile.c (_initialize_symfile): Likewise.
5003 * tracepoint.c (_initialize_tracepoint): Likewise.
5004
7c05caf7
PW
50052020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5006
5007 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
5008 when their aliased command is traversed.
5009 (help_cmd): Add fput_command_names_styled call to
5010 output command name and aliases when command has an alias.
5011
3b3aaacb
PW
50122020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5013
5014 * cli/cli-decode.h (help_cmd_list): Remove declaration.
5015 * cli/cli-decode.c (help_cmd_list): Declare as static,
5016 remove prefix argument, use bool for recurse arg, rework to show the aliases of
5017 a command together with the command.
5018 (fput_command_name_styled, fput_command_names_styled): New functions.
5019 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
5020 fput_command_name_styled.
5021 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
5022 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
5023
7aa1b46f
PW
50242020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5025
5026 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
5027 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
5028 * command.h (cmd_show_list): Likewise.
5029 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
5030 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
5031
89bcba74
PW
50322020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5033
5034 * unittests/command-def-selftests.c (traverse_command_structure):
5035 Verify all commands of a list have the same prefix command and
5036 that only the top cmdlist commands have a null prefix.
5037
3f4d92eb
PW
50382020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5039
5040 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
5041 as prefix, not one of its aliases.
5042 (set_cmd_prefix): Remove.
5043 (do_add_cmd): Centralize the setting of the prefix of a command, when
5044 command is defined after its full chain of prefix commands.
5045 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
5046 (add_setshow_cmd_full): Likewise.
5047 (update_prefix_field_of_prefixed_commands): New function.
5048 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
5049 update_prefix_field_of_prefixed_commands.
5050 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
5051 addresses of remote_set_cmdlist and remote_show_cmdlist given
5052 as argument, not the address of an argument.
5053 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
5054 * gdb/remote.c (_initialize_remote): Likewise.
5055
0605465f
PW
50562020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5057
5058 * cli/cli-cmds.c (alias_command): Check for an existing alias
5059 using lookup_cmd_composition, as valid_command_p is too strict
5060 and forbids aliases that are the prefix of an existing alias
5061 or command.
5062 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
5063 command is properly recognised as a valid command.
5064
58e6ac70
PW
50652020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5066
5067 * unittests/help-doc-selftests.c: Rename to
5068 unittests/command-def-selftests.c
5069 * unittests/command-def-selftests.c (help_doc_tests): Update some
5070 comments.
5071 (command_structure_tests, traverse_command_structure): New namespace
5072 and function.
5073 (command_structure_invariants_tests): New function.
5074 (_initialize_command_def_selftests) Renamed from
5075 _initialize_help_doc_selftests, register command_structure_invariants
5076 selftest.
5077
a7b9ceb8
PW
50782020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5079
5080 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
5081 an alias of 'show'.
5082
b2188a06
JB
50832020-05-15 Joel Brobecker <brobecker@adacore.com>
5084
5085 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
5086 ada_is_fixed_point_type. Update all callers.
5087 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
5088 all callers.
5089 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
5090 Update all callers.
5091 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
5092 print_fixed_point_type. Update all callers.
5093 * ada-valprint.c (ada_value_print_num): Replace call to
5094 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
5095
a51951c2
KB
50962020-05-14 Kevin Buettner <kevinb@redhat.com>
5097
5098 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
5099 processors.
5100 (cpu_supports_bts): Add CV_AMD case.
5101
29d6859f
LM
51022020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
5103 Simon Marchi <simon.marchi@efficios.com>
5104
5105 * infrun.c (stop_all_threads): Collect multiple wait events at
5106 each pass.
5107
78134374
SM
51082020-05-14 Simon Marchi <simon.marchi@efficios.com>
5109
5110 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
5111 type::code instead.
5112
67607e24
SM
51132020-05-14 Simon Marchi <simon.marchi@efficios.com>
5114
5115 * gdbtypes.h (struct type) <code, set_code>: New methods.
5116 (TYPE_CODE): Use type::code. Change all call sites used to set
5117 the code to use type::set_code instead.
5118
a05575d3
TBA
51192020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5120 Tom de Vries <tdevries@suse.de>
5121 Pedro Alves <palves@redhat.com>
5122
5123 PR threads/25478
5124 * infrun.c (stop_all_threads): Do NOT ignore
5125 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
5126 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
5127 received.
5128 (handle_no_resumed): Remove code handling a live inferior with no
5129 threads.
5130 * remote.c (has_single_non_exited_thread): New.
5131 (remote_target::update_thread_list): Do not delete a thread if is
5132 the last thread of the process.
5133 * thread.c (thread_select): Call delete_exited_threads instead of
5134 prune_threads.
5135
6ad82919
TBA
51362020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5137
5138 * infrun.c (stop_all_threads): Enable/disable thread events of all
5139 targets. Move a debug message denoting the end of the function
5140 into the SCOPED_EXIT block.
5141
d890404b
TBA
51422020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5143
5144 * process-stratum-target.h: Include <set>.
5145 (all_non_exited_process_targets, switch_to_target_no_thread): New
5146 function declarations.
5147 * process-stratum-target.c (all_non_exited_process_targets)
5148 (switch_to_target_no_thread): New function implementations.
5149
293b3ebc
TBA
51502020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5151
5152 * infrun.c (handle_inferior_event): Extract out a piece of code
5153 into...
5154 (mark_non_executing_threads): ...this new function.
5155
7ca9b62a
TBA
51562020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5157
5158 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
5159 use.
5160
fc75c28b
TBA
51612020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5162
5163 * regcache.c (regcache_read_pc_protected): New function
5164 implementation that returns 0 if the PC cannot read via
5165 'regcache_read_pc'.
5166 * infrun.c (proceed): Call 'regcache_read_pc_protected'
5167 instead of 'regcache_read_pc'.
5168 (keep_going_pass_signal): Ditto.
5169
a89febbd
TT
51702020-05-13 Tom Tromey <tromey@adacore.com>
5171
5172 * ada-lang.c (align_value): Remove.
5173 (ada_template_to_fixed_record_type_1): Use align_up.
5174
f7e23710
TBA
51752020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5176
5177 * async-event.c: Update the copyright year.
5178 * async-event.h: Update the copyright year.
5179
02ff80c2
SM
51802020-05-12 Simon Marchi <simon.marchi@efficios.com>
5181
5182 * objfiles.h (is_addr_in_objfile,
5183 shared_objfile_contains_address_p): Return bool.
5184 * objfile.c (is_addr_in_objfile,
5185 shared_objfile_contains_address_p): Return bool.
5186
4fd6c7e8
TT
51872020-05-11 Tom Tromey <tromey@adacore.com>
5188
5189 * cli/cli-cmds.c (info_command): Restore.
5190 (_initialize_cli_cmds): Use add_prefix_command for "info".
5191 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
5192
5eb68a39
TT
51932020-05-11 Tom Tromey <tromey@adacore.com>
5194
5195 * ada-lang.c (ada_value_primitive_field): Now public.
5196 * ada-lang.h (ada_value_primitive_field): Declare.
5197 * ada-valprint.c (print_field_values): Use
5198 ada_value_primitive_field for wrapper fields.
5199
7666722f
TV
52002020-05-11 Tom de Vries <tdevries@suse.de>
5201
5202 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
5203 MODULE_DOMAIN.
5204
3ee6bb11
TV
52052020-05-11 Tom de Vries <tdevries@suse.de>
5206
5207 PR symtab/25941
5208 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
5209 with length 0, if not gdb-produced.
5210 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
5211
43434996
TV
52122020-05-09 Tom de Vries <tdevries@suse.de>
5213
5214 PR gdb/25955
5215 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
5216 calculation.
5217
2f78cffc
TT
52182020-05-09 Tom Tromey <tom@tromey.com>
5219
5220 * top.c (server_command): Now bool.
5221 * top.h (server_command): Now bool.
5222
4f7bc5ed
TT
52232020-05-08 Tom Tromey <tromey@adacore.com>
5224
5225 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
5226 already being processed.
5227
8be4b118
TT
52282020-05-08 Tom Tromey <tom@tromey.com>
5229
5230 * printcmd.c (struct display) <next>: Remove.
5231 <display>: New constructor.
5232 <exp_string>: Now a std::string.
5233 <enabled_p>: Now a bool.
5234 (display_number): Move definition earlier.
5235 (displays): Rename from display_chain. Now a std::vector.
5236 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
5237 (display_command): Update.
5238 (do_one_display, disable_display)
5239 (enable_disable_display_command, do_enable_disable_display):
5240 Update.
5241 (free_display): Remove.
5242 (clear_displays): Rewrite.
5243 (delete_display): Update.
5244 (map_display_numbers): Use function_view. Remove "data"
5245 parameter. Update.
5246 (do_delete_display): Remove.
5247 (undisplay_command): Update.
5248 (do_one_display, do_displays, disable_display)
5249 (info_display_command): Update.
5250 (do_enable_disable_display): Remove.
5251 (enable_disable_display_command)
5252 (clear_dangling_display_expressions): Update.
5253
94c93c35
TT
52542020-05-08 Tom Tromey <tom@tromey.com>
5255
5256 * symtab.c (set_symbol_cache_size)
5257 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
5258 (maintenance_print_symbol_cache_statistics): Update.
5259 * symmisc.c (print_symbol_bcache_statistics)
5260 (print_objfile_statistics, maintenance_print_objfiles)
5261 (maintenance_info_symtabs, maintenance_check_symtabs)
5262 (maintenance_expand_symtabs, maintenance_info_line_tables):
5263 Update.
5264 * symfile-debug.c (set_debug_symfile): Update.
5265 * source.c (forget_cached_source_info): Update.
5266 * python/python.c (gdbpy_progspaces): Update.
5267 * psymtab.c (maintenance_info_psymtabs): Update.
5268 * probe.c (parse_probes): Update.
5269 * linespec.c (iterate_over_all_matching_symtabs)
5270 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
5271 * guile/scm-progspace.c (gdbscm_progspaces): Update.
5272 * exec.c (exec_target::close): Update.
5273 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
5274 * breakpoint.c (print_one_breakpoint_location)
5275 (create_longjmp_master_breakpoint)
5276 (create_std_terminate_master_breakpoint): Update.
5277 * progspace.c (program_spaces): Now a std::vector.
5278 (maybe_new_address_space): Update.
5279 (add_program_space): Remove.
5280 (program_space::program_space): Update.
5281 (remove_program_space): Update.
5282 (number_of_program_spaces): Remove.
5283 (print_program_space, update_address_spaces): Update.
5284 * progspace.h (program_spaces): Change type.
5285 (ALL_PSPACES): Remove.
5286 (number_of_program_spaces): Don't declare.
5287 (struct program_space) <next>: Remove.
5288
a1fd1ac9
TT
52892020-05-08 Tom Tromey <tom@tromey.com>
5290
5291 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
5292 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
5293 (enable_break): Update.
5294 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
5295 (frv_fdpic_find_canonical_descriptor): Update.
5296 (frv_fetch_objfile_link_map): Update.
5297 * progspace.c (program_space::free_all_objfiles): Update.
5298 (program_space::solibs): New method.
5299 * progspace.h (struct program_space) <solibs>: New method.
5300 * solist.h (master_so_list): Don't declare.
5301 (ALL_SO_LIBS): Remove.
5302 * solib.h (so_list_head): Remove.
5303 (update_solib_list): Update comment.
5304 * solib.c (master_so_list): Remove.
5305 (solib_used, update_solib_list, solib_add)
5306 (info_sharedlibrary_command, clear_solib)
5307 (reload_shared_libraries_1, remove_user_added_objfile): Update.
5308
38eae084
TT
53092020-05-08 Tom Tromey <tom@tromey.com>
5310
5311 * extension.c (extension_languages): Now a std::array.
5312 (ALL_EXTENSION_LANGUAGES): Remove.
5313 (get_ext_lang_defn, get_ext_lang_of_file)
5314 (eval_ext_lang_from_control_command): Update.
5315 (finish_ext_lang_initialization)
5316 (auto_load_ext_lang_scripts_for_objfile)
5317 (ext_lang_type_printers::ext_lang_type_printers)
5318 (apply_ext_lang_type_printers)
5319 (ext_lang_type_printers::~ext_lang_type_printers)
5320 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
5321 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
5322 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
5323 (get_matching_xmethod_workers, ext_lang_colorize)
5324 (ext_lang_before_prompt): Update.
5325 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
5326
596dc4ad
TT
53272020-05-08 Tom Tromey <tom@tromey.com>
5328
5329 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
5330 overload.
5331 <swap_string, m_string>: Remove.
5332 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
5333 Update.
5334 * stabsread.c (define_symbol, read_type): Update.
5335 * linespec.c (find_linespec_symbols): Update.
5336 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
5337 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
5338 * dbxread.c (read_dbx_symtab): Update.
5339 * cp-support.h (cp_canonicalize_string_full)
5340 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
5341 Return unique_xmalloc_ptr.
5342 * cp-support.c (inspect_type): Update.
5343 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
5344 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
5345 Likewise.
5346 * c-typeprint.c (print_name_maybe_canonical): Update.
5347 * break-catch-throw.c (check_status_exception_catchpoint):
5348 Update.
5349
bf4cb9be
TV
53502020-05-08 Tom de Vries <tdevries@suse.de>
5351
5352 * infrun.c (follow_fork): Copy current_line and current_symtab to
5353 child thread.
5354
a1b68f28
SM
53552020-05-07 Simon Marchi <simon.marchi@efficios.com>
5356
5357 * async-event.c (struct async_signal_handler, struct
5358 async_event_handler): Reformat, remove typedef.
5359
98d48915
SM
53602020-05-07 Simon Marchi <simon.marchi@efficios.com>
5361
5362 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
5363 access thistype->main_type->dyn_prop_list directly.
5364
7aa91313
SM
53652020-05-07 Simon Marchi <simon.marchi@efficios.com>
5366
5367 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
5368 (remove_dyn_prop): Remove. Update all users to use
5369 type::remove_dyn_prop.
5370 * gdbtypes.c (remove_dyn_prop): Rename to...
5371 (type::remove_dyn_prop): ... this.
5372
5c54719c
SM
53732020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
5374
5375 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
5376 (add_dyn_prop): Remove. Update all users to use
5377 type::add_dyn_prop.
5378 * gdbtypes.c (add_dyn_prop): Rename to...
5379 (type::add_dyn_prop): ... this.
5380
24e99c6c
SM
53812020-05-07 Simon Marchi <simon.marchi@efficios.com>
5382
5383 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
5384 (get_dyn_prop): Remove. Update all users to use
5385 type::dyn_prop.
5386 * gdbtypes.c (get_dyn_prop): Rename to...
5387 (type::dyn_prop): ... this.
5388
0d4bf016
SM
53892020-05-06 Simon Marchi <simon.marchi@efficios.com>
5390
5391 * gdbtypes.h (struct main_type) <flag_static>: Remove.
5392
ac4a4f1c
SM
53932020-05-06 Simon Marchi <simon.marchi@efficios.com>
5394
5395 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
5396 instruction, skip it if it's there.
5397
a3bbacc1
SM
53982020-05-05 Simon Marchi <simon.marchi@efficios.com>
5399
5400 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
5401
c3236f84
SM
54022020-05-04 Simon Marchi <simon.marchi@efficios.com>
5403
5404 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
5405 * gdbtypes.c (recursive_dump_type): Remove use of
5406 TYPE_INCOMPLETE.
5407
3b6acaee
TT
54082020-05-03 Tom Tromey <tom@tromey.com>
5409
5410 * breakpoint.c (catch_command, tcatch_command): Remove.
5411 (_initialize_breakpoint): Use add_basic_prefix_cmd,
5412 add_show_prefix_cmd.
5413 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
5414 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
5415 Remove.
5416 (add_internal_problem_command): Use add_basic_prefix_cmd,
5417 add_show_prefix_cmd.
5418 * mips-tdep.c (set_mipsfpu_command): Remove.
5419 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
5420 * dwarf2/index-cache.c (set_index_cache_command): Remove.
5421 (_initialize_index_cache): Use add_basic_prefix_cmd.
5422 * memattr.c (dummy_cmd): Remove.
5423 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
5424 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
5425 (_initialize_tui_win): Use add_basic_prefix_cmd,
5426 add_show_prefix_cmd.
5427 * cli/cli-logging.c (set_logging_command): Remove.
5428 (_initialize_cli_logging): Use add_basic_prefix_cmd,
5429 add_show_prefix_cmd.
5430 (show_logging_command): Remove.
5431 * target.c (target_command): Remove.
5432 (add_target): Use add_basic_prefix_cmd.
5433
a51119cd
HD
54342020-05-02 Hannes Domani <ssbssa@yahoo.de>
5435
5436 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
5437
652fc23a 54382020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 5439
652fc23a
PW
5440 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
5441 info_command.
5442
117539e6
KR
54432020-04-30 Kamil Rytarowski <n54@gmx.com>
5444
5445 * nbsd-nat.c (nbsd_enable_proc_events)
5446 (nbsd_nat_target::post_startup_inferior): Add.
5447 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
5448 (nbsd_nat_target::update_thread_list): Rewrite.
5449 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
5450 "PTRACE_LWP_CREATE".
5451 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
5452
102e38eb 54532020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 5454
102e38eb
PW
5455 * stack.c (_initialize_stack): Remove duplicated creation
5456 of "frame" command and "f" alias.
5457
ee9d1e5f
HD
54582020-04-30 Hannes Domani <ssbssa@yahoo.de>
5459
5460 PR gdb/18706
5461 * gdbtypes.c (check_typedef): Calculate size of array of
5462 stubbed type.
5463
627c7fb8
HD
54642020-04-30 Hannes Domani <ssbssa@yahoo.de>
5465
5466 PR gdb/15559
5467 * i386-tdep.c (i386_push_dummy_call): Call
5468 i386_thiscall_push_dummy_call.
5469 (i386_thiscall_push_dummy_call): New function.
5470 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
5471 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
5472 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
5473
ffc2844e
SM
54742020-04-29 Simon Marchi <simon.marchi@efficios.com>
5475
5476 * gdbarch.sh (do_read): Add shellcheck disable directive for
5477 warning SC2162.
5478
1207375d
SM
54792020-04-29 Simon Marchi <simon.marchi@efficios.com>
5480
5481 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
5482 "referenced but not assigned" warning.
5483
9fdb2916
SM
54842020-04-29 Simon Marchi <simon.marchi@efficios.com>
5485
5486 * gdbarch.sh: Remove code that sets fallbackdefault.
5487
759cea5e
SM
54882020-04-29 Simon Marchi <simon.marchi@efficios.com>
5489
5490 * gdbarch.sh: Use shell operators && and || instead of
5491 -a and -o.
5492
cb02ab24
SM
54932020-04-29 Simon Marchi <simon.marchi@efficios.com>
5494
5495 * gdbarch.sh: Use $(...) instead of `...`.
5496
a6fc5ffc
SM
54972020-04-29 Simon Marchi <simon.marchi@efficios.com>
5498
5499 * gdbarch.sh: Use double quotes around variables.
5500
8d113d13
SM
55012020-04-29 Simon Marchi <simon.marchi@efficios.com>
5502
5503 * gdbarch.sh: Use %s with printf, instead of variables in the
5504 format string.
5505
ed6acedd
TT
55062020-04-29 Tom Tromey <tromey@adacore.com>
5507
5508 PR ada/25875:
5509 * dwarf2/read.c (update_enumeration_type_from_children): Compute
5510 type fields here.
5511 (read_enumeration_type): Call
5512 update_enumeration_type_from_children later. Update comments.
5513 (process_enumeration_scope): Don't create type fields.
5514
b68b1b58
KR
55152020-04-29 Kamil Rytarowski <n54@gmx.com>
5516
5517 * nbsd-tdep.c: Include "xml-syscall.h".
5518 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
5519
f94b2e03
KR
55202020-04-29 Kamil Rytarowski <n54@gmx.com>
5521
5522 * nbsd-nat.c: Include "sys/wait.h".
5523 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
5524 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
5525 (nbsd_nat_target::remove_exec_catchpoint)
5526 (nbsd_nat_target::set_syscall_catchpoint): Add.
5527 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
5528 (nbsd_nat_target::insert_exec_catchpoint)
5529 (nbsd_nat_target::remove_exec_catchpoint)
5530 (nbsd_nat_target::set_syscall_catchpoint): Add.
5531 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
5532 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
5533 `nbsd_get_syscall_number'.
5534
fc49bc72
TT
55352020-04-29 Tom Tromey <tom@tromey.com>
5536
5537 * stack.c (print_block_frame_labels): Remove.
5538
d642b692
HD
55392020-04-29 Hannes Domani <ssbssa@yahoo.de>
5540
5541 PR gdb/17320
5542 * ada-valprint.c (val_print_packed_array_elements): Move array
5543 end bracket to new line.
5544 (ada_val_print_string): Remove extra spaces before first array
5545 element.
5546 * c-valprint.c (c_value_print_array): Likewise.
5547 * m2-valprint.c (m2_print_array_contents): Likewise.
5548 (m2_value_print_inner): Likewise.
5549 * p-valprint.c (pascal_value_print_inner): Likewise.
5550 * valprint.c (generic_val_print_array): Likewise.
5551 (value_print_array_elements): Move first array element and array
5552 end bracket to new line.
5553
ea90f227
TV
55542020-04-29 Tom de Vries <tdevries@suse.de>
5555
5556 PR symtab/25889
5557 * linespec.c (find_method): Fix ix calculation.
5558
4498ef4f
KR
55592020-04-28 Kamil Rytarowski <n54@gmx.com>
5560
5561 * syscalls/update-netbsd.sh: New file.
5562 * syscalls/netbsd.xml: Regenerate.
5563 * data-directory/Makefile.in: Register `netbsd.xml' in
5564 `SYSCALLS_FILES'.
5565
a55e30b5
SM
55662020-04-28 Simon Marchi <simon.marchi@efficios.com>
5567
5568 * syscalls/update-freebsd.sh: Add double quotes.
5569
2b2fbab8
TT
55702020-04-28 Tom Tromey <tom@tromey.com>
5571
5572 * NEWS: Update.
5573 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
5574 (cmdpy_init): Allow class_tui.
5575
a65189c9
TV
55762020-04-28 Mark Williams <mark@myosotissp.com>
5577
5578 PR gdb/24480
5579 * dwarf2read.c: Add missing assingments to list_in_scope when
5580 start_symtab was already called.
5581
1b95cdb7
SM
55822020-04-28 Simon Marchi <simon.marchi@efficios.com>
5583
5584 PR gdb/25881
5585 * dwarf2/read.c (offset_map_type): Use
5586 gdb:hash_enum<sect_offset> as hash function.
5587
15cd93d0
TV
55882020-04-28 Tom de Vries <tdevries@suse.de>
5589
5590 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
5591 with DW_AT_signature.
5592
1eb39914
SM
55932020-04-27 Simon Marchi <simon.marchi@efficios.com>
5594
5595 * configure.ac: Remove check for fs_base/gs_base in
5596 user_regs_struct.
5597 * configure: Re-generate.
5598 * config.in: Re-generate.
5599 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
5600 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
5601 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
5602
991a3e2e
LM
56032020-04-27 Luis Machado <luis.machado@linaro.org>
5604
5605 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
5606 problematic inline frame unwinding situation.
5607 * frame.c (frame_id_computed_p): New function.
5608 * frame.h (frame_id_computed_p): New prototype.
5609
361ba0e8
TT
56102020-04-26 Tom Tromey <tom@tromey.com>
5611
5612 * command.h (enum command_class) <class_pseudo>: Remove.
5613
bc3609fd
PW
56142020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5615
5616 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
5617 and whitespace.
5618
b9771db7
KR
56192020-04-25 Kamil Rytarowski <n54@gmx.com>
5620
ec16513e
SM
5621 * inf-ptrace.c (inf_ptrace_target::wait): Remove
5622 `PT_GET_PROCESS_STATE' block.
b9771db7 5623
7151c1af
TT
56242020-04-24 Tom Tromey <tom@tromey.com>
5625
5626 * symtab.h (symbol_get_demangled_name): Don't declare.
5627 * symtab.c (symbol_get_demangled_name): Remove.
5628 (general_symbol_info::natural_name)
5629 (general_symbol_info::demangled_name): Update.
5630
906bb4c5
TT
56312020-04-24 Tom Tromey <tom@tromey.com>
5632
5633 PR rust/25025:
5634 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
5635
bcfe6157
TT
56362020-04-24 Tom Tromey <tom@tromey.com>
5637
5638 PR symtab/12707:
5639 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
5640 exists.
5641 (new_symbol): Likewise.
5642 * compile/compile-object-load.c (get_out_value_type): Use
5643 symbol_matches_search_name.
5644
f049a313
TT
56452020-04-24 Tom Tromey <tom@tromey.com>
5646
5647 * dwarf2/read.c (add_partial_symbol): Do not call
5648 compute_and_set_names.
5649
76e288d1
TT
56502020-04-24 Tom Tromey <tom@tromey.com>
5651
5652 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
5653 overload.
5654
2467f4f6
TT
56552020-04-24 Tom Tromey <tom@tromey.com>
5656
5657 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
5658 (add_psymbol_to_list): New overload. Make old overload call new
5659 one.
5660 * psympriv.h (add_psymbol_to_list): New overload.
5661
e61108c9
TT
56622020-04-24 Tom Tromey <tom@tromey.com>
5663
5664 * dwarf2/read.c (partial_die_info::read) <case
5665 DW_AT_linkage_name>: Use value_as_string.
5666 (dwarf2_string_attr): Use value_as_string.
5667 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
5668 method.
5669 * dwarf2/attribute.c (attribute::value_as_string): New method.
5670
8c87a452
TT
56712020-04-24 Tom Tromey <tom@tromey.com>
5672
5673 * symtab.c (general_symbol_info::natural_name)
5674 (general_symbol_info::demangled_name): Check for language_rust.
5675
787de330
TT
56762020-04-24 Tom Tromey <tom@tromey.com>
5677
5678 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
5679 (dwarf2_physname): ... from here.
5680 (partial_die_info::read): Add Rust "{" hack.
5681
ff985671
TT
56822020-04-24 Tom Tromey <tom@tromey.com>
5683
5684 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
5685 method.
5686 (symbol_set_demangled_name): Don't declare.
5687 * symtab.c (general_symbol_info::set_demangled_name): Rename from
5688 symbol_set_demangled_name.
5689 (general_symbol_info::set_language)
5690 (general_symbol_info::compute_and_set_names): Update.
5691 * minsyms.c (minimal_symbol_reader::install): Update.
5692 * dwarf2/read.c (new_symbol): Update.
5693
1acda803
TT
56942020-04-24 Tom Tromey <tromey@adacore.com>
5695
5696 PR python/23662:
5697 * python/py-type.c (convert_field): Handle
5698 FIELD_LOC_KIND_DWARF_BLOCK.
5699 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
5700 (typy_get_dynamic): Nw function.
5701 (type_object_getset): Add "dynamic".
5702 * NEWS: Add entry.
5703
d656f129
TT
57042020-04-24 Tom Tromey <tromey@adacore.com>
5705
5706 * ada-typeprint.c (print_choices, print_variant_part)
5707 (print_record_field_types_dynamic): New functions.
5708 (print_record_field_types): Use print_record_field_types_dynamic.
5709
7d79de9a
TT
57102020-04-24 Tom Tromey <tromey@adacore.com>
5711
5712 * dwarf2/read.c (handle_data_member_location): New overload.
5713 (dwarf2_add_field): Use it.
5714 (decode_locdesc): Add "computed" parameter. Update comment.
5715 * gdbtypes.c (is_dynamic_type_internal): Also look for
5716 FIELD_LOC_KIND_DWARF_BLOCK.
5717 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
5718 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
5719 virtual base classes.
5720 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
5721 FIELD_LOC_KIND_DWARF_BLOCK.
5722
f8e89861
TT
57232020-04-24 Tom Tromey <tromey@adacore.com>
5724
5725 * dwarf2/read.c (read_structure_type): Handle dynamic length.
5726 * gdbtypes.c (is_dynamic_type_internal): Check
5727 TYPE_HAS_DYNAMIC_LENGTH.
5728 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
5729 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
5730 New macros.
5731 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
5732 constant.
5733
9c6a1327
TT
57342020-04-24 Tom Tromey <tromey@adacore.com>
5735
5736 * dwarf2/read.c (struct variant_field): Rewrite.
5737 (struct variant_part_builder): New.
5738 (struct nextfield): Remove "variant" field. Add "offset".
5739 (struct field_info): Add "current_variant_part" and
5740 "variant_parts".
5741 (alloc_discriminant_info): Remove.
5742 (alloc_rust_variant): New function.
5743 (quirk_rust_enum): Update.
5744 (dwarf2_add_field): Set "offset" member. Don't handle
5745 DW_TAG_variant_part.
5746 (offset_map_type): New typedef.
5747 (convert_variant_range, create_one_variant)
5748 (create_one_variant_part, create_variant_parts)
5749 (add_variant_property): New functions.
5750 (dwarf2_attach_fields_to_type): Call add_variant_property.
5751 (read_structure_type): Don't handle DW_TAG_variant_part.
5752 (handle_variant_part, handle_variant): New functions.
5753 (handle_struct_member_die): Use them.
5754 (process_structure_scope): Don't handle variant parts.
5755 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
5756 (struct discriminant_info): Remove.
5757 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
5758 (struct main_type) <flag_discriminated_union>: Remove.
5759 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
5760 (rust_enum_variant): Return int. Remove "contents". Rewrite.
5761 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
5762 Update.
5763 * valops.c (value_union_variant): Remove.
5764 * value.h (value_union_variant): Don't declare.
5765
b249d2c2
TT
57662020-04-24 Tom Tromey <tromey@adacore.com>
5767
5768 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
5769 (ada_value_primitive_packed_val): Update.
5770 * ada-valprint.c (ada_value_print_1): Update.
5771 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
5772 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
5773 just an address. Use evaluate_for_locexpr_baton.
5774 (dwarf2_evaluate_property): Update.
5775 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
5776 array_view.
5777 * findvar.c (default_read_var_value): Update.
5778 * gdbtypes.c (compute_variant_fields_inner)
5779 (resolve_dynamic_type_internal): Update.
5780 (resolve_dynamic_type): Change type of valaddr parameter.
5781 * gdbtypes.h (resolve_dynamic_type): Update.
5782 * valarith.c (value_subscripted_rvalue): Update.
5783 * value.c (value_from_contents_and_address): Update.
5784
61122aa9
TT
57852020-04-24 Tom Tromey <tromey@adacore.com>
5786
5787 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
5788 "push_initial_value" parameter.
5789 (dwarf2_evaluate_property): Likewise.
5790 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
5791
ef83a141
TT
57922020-04-24 Tom Tromey <tromey@adacore.com>
5793
5794 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
5795 (variant::matches, compute_variant_fields_recurse)
5796 (compute_variant_fields_inner, compute_variant_fields): New
5797 functions.
5798 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
5799 Use resolved_type after type is made.
5800 (operator==): Add new cases.
5801 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
5802 (struct discriminant_range, struct variant, struct variant_part):
5803 New.
5804 (union dynamic_prop_data) <variant_parts, original_type>: New
5805 members.
5806 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
5807 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
5808 constants.
5809 * value.c (unpack_bits_as_long): Now public.
5810 * value.h (unpack_bits_as_long): Declare.
5811
675127ec
TT
58122020-04-24 Tom Tromey <tromey@adacore.com>
5813
5814 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
5815 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
5816
9852ceef
HD
58172020-04-24 Hannes Domani <ssbssa@yahoo.de>
5818
5819 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
5820
7632c6ce
KR
58212020-04-24 Kamil Rytarowski <n54@gmx.com>
5822
5823 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
5824 (remove_fork_catchpoint, post_startup_inferior)
5825 (post_attach): Move...
5826 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
5827 (remove_fork_catchpoint, post_startup_inferior)
5828 (post_attach): ...here.
5829 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
5830 (remove_fork_catchpoint, post_startup_inferior)
5831 (post_attach): Move...
5832 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
5833 (remove_fork_catchpoint, post_startup_inferior)
5834 (post_attach): ...here.
5835
7be2bb4f
TT
58362020-04-24 Tom Tromey <tromey@adacore.com>
5837
5838 * nat/windows-nat.h (struct windows_thread_info)
5839 <pc_adjusted>: New member.
5840 * windows-nat.c (windows_fetch_one_register): Check
5841 pc_adjusted.
5842 (windows_nat_target::get_windows_debug_event)
5843 (windows_nat_target::wait): Set pc_adjusted.
5844
f80cb3b4
TV
58452020-04-24 Tom de Vries <tdevries@suse.de>
5846
5847 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
5848 Run gdb-add-index inside temp dir.
5849
29514b87
TT
58502020-04-23 Tom Tromey <tromey@adacore.com>
5851
5852 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
5853 in loop.
5854
5939967b
LM
58552020-04-23 Luis Machado <luis.machado@linaro.org>
5856
5857 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
5858 get_frame_register instead of gdbarch_unwind_pc.
5859
70bc38f5
TV
58602020-04-23 Tom de Vries <tdevries@suse.de>
5861
5862 * symtab.c (lookup_global_symbol): Prefer def over decl.
5863
de82891c
TV
58642020-04-23 Tom de Vries <tdevries@suse.de>
5865
5866 PR symtab/25807
5867 * block.c (best_symbol, better_symbol): Promote to external.
5868 * block.h (best_symbol, better_symbol): Declare.
5869 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
5870 decl.
5871
ecc6c606
TT
58722020-04-23 Tom Tromey <tromey@adacore.com>
5873
5874 PR ada/25837:
5875 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
5876 "const char *", not a "const std::string &".
5877 <name_and_matcher::operator==>: Update.
5878 * unittests/lookup_name_info-selftests.c: Change type of
5879 "result".
5880
740480b8
TT
58812020-04-23 Tom Tromey <tom@tromey.com>
5882
5883 * inferior.h (iterate_over_inferiors): Don't declare.
5884 * inferior.c (iterate_over_inferiors): Remove.
5885 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
5886 Remove.
5887 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
5888 use iterate_over_inferiors.
5889 (darwin_resume_inferior_it)
5890 (struct resume_inferior_threads_param)
5891 (darwin_resume_inferior_threads_it): Remove.
5892 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
5893
ae3ab1f0
TV
58942020-04-23 Tom de Vries <tdevries@suse.de>
5895
5896 * blockframe.c (find_pc_partial_function): Use
5897 find_pc_sect_compunit_symtab rather than
5898 objfile->sf->qf->find_pc_sect_compunit_symtab.
5899
317d2668
TV
59002020-04-22 Tom de Vries <tdevries@suse.de>
5901
5902 PR symtab/25764
5903 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
5904 in psymtabs.
5905
eea9e357
TV
59062020-04-22 Tom de Vries <tdevries@suse.de>
5907
5908 PR symtab/25801
5909 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
5910 symtabs.
5911
3d5afab3
TV
59122020-04-22 Tom de Vries <tdevries@suse.de>
5913
5914 PR symtab/25700
5915 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
5916 CU if already created.
5917
d43b7a2d
TBA
59182020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5919
5920 * infrun.c (displaced_step_fixup): Switch to the event_thread
5921 before calling displaced_step_restore, not after.
5922
d89edf9b
MM
59232020-04-21 Markus Metzger <markus.t.metzger@intel.com>
5924
5925 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
5926 its inferior is not recorded by us.
5927 (record_btrace_target_open): Replace call to
5928 all_non_exited_threads () with call to current_inferior
5929 ()->non_exited_threads ().
5930 (record_btrace_target::stop_recording): Likewise.
5931 (record_btrace_target::close): Likewise.
5932 (record_btrace_target::wait): Likewise.
5933 (record_btrace_target::record_stop_replaying): Likewise.
5934
5897fd49
MM
59352020-04-21 Markus Metzger <markus.t.metzger@intel.com>
5936
5937 * btrace.c (btrace_enable): Throw an error on double enables and
5938 when enabling recording fails.
5939 (btrace_disable): Throw an error if the thread is not recorded.
5940
1a476b6d
MM
59412020-04-21 Markus Metzger <markus.t.metzger@intel.com>
5942
5943 * record-btrace.c (record_btrace_target::fetch_registers): Forward
5944 request if we do not have a thread_info.
5945
4778a5f8
TV
59462020-04-21 Tom de Vries <tdevries@suse.de>
5947
5948 PR gdb/25471
5949 * thread.c
5950 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
5951 exception in get_frame_id.
5952
0fa7617d
TT
59532020-04-20 Tom Tromey <tromey@adacore.com>
5954
5955 * python/python.c (struct gdbpy_event): Mark move constructor as
5956 noexcept.
5957 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
5958 constructor as noexcept.
5959 * completer.h (struct completion_result): Mark move constructor as
5960 noexcept.
5961 * completer.c (completion_result::completion_result): Use
5962 initialization style. Don't call reset_match_list.
5963
ad23bda0
MS
59642020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
5965
5966 * MAINTAINERS (Write After Approval): Add myself.
5967
45e1f031
TT
59682020-04-18 Tom Tromey <tom@tromey.com>
5969
5970 * windows-tdep.c (init_w32_command_list)
5971 (w32_prefix_command_valid): Restore.
5972 (_initialize_windows_tdep): Call init_w32_command_list.
5973
08feed99
TT
59742020-04-18 Tom Tromey <tom@tromey.com>
5975
5976 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
5977 * value.c (value_fn_field): Update.
5978 * valops.c (find_function_in_inferior)
5979 (value_allocate_space_in_inferior): Update.
5980 * tui/tui-winsource.c (tui_update_source_windows_with_line):
5981 Update.
5982 * tui/tui-source.c (tui_source_window::set_contents): Update.
5983 * symtab.c (lookup_global_or_static_symbol)
5984 (find_function_start_sal_1, skip_prologue_sal)
5985 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
5986 * symmisc.c (dump_msymbols, dump_symtab_1)
5987 (maintenance_print_one_line_table): Update.
5988 * symfile.c (init_entry_point_info, section_is_mapped)
5989 (list_overlays_command, simple_read_overlay_table)
5990 (simple_overlay_update_1): Update.
5991 * stap-probe.c (handle_stap_probe): Update.
5992 * stabsread.c (dbx_init_float_type, define_symbol)
5993 (read_one_struct_field, read_enum_type, read_range_type): Update.
5994 * source.c (info_line_command): Update.
5995 * python/python.c (gdbpy_source_objfile_script)
5996 (gdbpy_execute_objfile_script): Update.
5997 * python/py-type.c (save_objfile_types): Update.
5998 * python/py-objfile.c (py_free_objfile): Update.
5999 * python/py-inferior.c (python_new_objfile): Update.
6000 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
6001 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
6002 (maintenance_check_psymtabs): Update.
6003 * printcmd.c (info_address_command): Update.
6004 * objfiles.h (struct objfile) <arch>: New method, from
6005 get_objfile_arch.
6006 (get_objfile_arch): Don't declare.
6007 * objfiles.c (get_objfile_arch): Remove.
6008 (filter_overlapping_sections): Update.
6009 * minsyms.c (msymbol_is_function): Update.
6010 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
6011 (output_nondebug_symbol): Update.
6012 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
6013 (mdebug_expand_psymtab): Update.
6014 * machoread.c (macho_add_oso_symfile): Update.
6015 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
6016 Update.
6017 * linux-fork.c (checkpoint_command): Update.
6018 * linespec.c (convert_linespec_to_sals): Update.
6019 * jit.c (finalize_symtab): Update.
6020 * infrun.c (insert_exception_resume_from_probe): Update.
6021 * ia64-tdep.c (ia64_find_unwind_table): Update.
6022 * hppa-tdep.c (internalize_unwinds): Update.
6023 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
6024 Update.
6025 * gcore.c (call_target_sbrk): Update.
6026 * elfread.c (record_minimal_symbol, elf_symtab_read)
6027 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
6028 (elf_gnu_ifunc_resolve_by_got): Update.
6029 * dwarf2/read.c (create_addrmap_from_index)
6030 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
6031 (read_debug_names_from_section)
6032 (process_psymtab_comp_unit_reader, add_partial_symbol)
6033 (add_partial_subprogram, process_full_comp_unit)
6034 (read_file_scope, read_func_scope, read_lexical_block_scope)
6035 (read_call_site_scope, dwarf2_ranges_read)
6036 (dwarf2_record_block_ranges, dwarf2_add_field)
6037 (mark_common_block_symbol_computed, read_tag_pointer_type)
6038 (read_tag_string_type, dwarf2_init_float_type)
6039 (dwarf2_init_complex_target_type, read_base_type)
6040 (partial_die_info::read, partial_die_info::read)
6041 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
6042 (dwarf2_fetch_die_loc_sect_off): Update.
6043 * dwarf2/loc.c (dwarf2_find_location_expression)
6044 (class dwarf_evaluate_loc_desc, rw_pieced_value)
6045 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
6046 (dwarf2_loc_desc_get_symbol_read_needs)
6047 (locexpr_describe_location_piece, locexpr_describe_location_1)
6048 (loclist_describe_location): Update.
6049 * dwarf2/index-write.c (write_debug_names): Update.
6050 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
6051 * dtrace-probe.c (dtrace_process_dof): Update.
6052 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
6053 (process_one_symbol): Update.
6054 * ctfread.c (ctf_init_float_type, read_base_type): Update.
6055 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
6056 (coff_read_enum_type): Update.
6057 * cli/cli-cmds.c (edit_command, list_command): Update.
6058 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
6059 * breakpoint.c (create_overlay_event_breakpoint)
6060 (create_longjmp_master_breakpoint)
6061 (create_std_terminate_master_breakpoint)
6062 (create_exception_master_breakpoint, get_sal_arch): Update.
6063 * block.c (block_gdbarch): Update.
6064 * annotate.c (annotate_source_line): Update.
6065
0743fc83
TT
60662020-04-17 Tom Tromey <tromey@adacore.com>
6067
6068 * auto-load.c (show_auto_load_cmd): Remove.
6069 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
6070 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
6071 (maintenance_print_arc_command): Remove.
6072 * tui/tui-win.c (tui_command): Remove.
6073 (tui_get_cmd_list): Use add_basic_prefix_cmd.
6074 * tui/tui-layout.c (tui_layout_command): Remove.
6075 (_initialize_tui_layout): Use add_basic_prefix_cmd.
6076 * python/python.c (user_set_python, user_show_python): Remove.
6077 (_initialize_python): Use add_basic_prefix_cmd,
6078 add_show_prefix_cmd.
6079 * guile/guile.c (set_guile_command, show_guile_command): Remove.
6080 (install_gdb_commands): Use add_basic_prefix_cmd,
6081 add_show_prefix_cmd.
6082 (info_guile_command): Remove.
6083 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
6084 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
6085 add_show_prefix_cmd.
6086 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
6087 Remove do_set and do_show parameters.
6088 * cli/cli-style.c (set_style, show_style): Remove.
6089 (_initialize_cli_style): Use add_basic_prefix_cmd,
6090 add_show_prefix_cmd.
6091 (cli_style_option::add_setshow_commands): Remove do_set and
6092 do_show parameters.
6093 (cli_style_option::add_setshow_commands): Use
6094 add_basic_prefix_cmd, add_show_prefix_cmd.
6095 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
6096 (set_style_name): Remove.
6097 * cli/cli-dump.c (dump_command, append_command): Remove.
6098 (srec_dump_command, ihex_dump_command, verilog_dump_command)
6099 (tekhex_dump_command, binary_dump_command)
6100 (binary_append_command): Remove.
6101 (_initialize_cli_dump): Use add_basic_prefix_cmd.
6102 * windows-tdep.c (w32_prefix_command_valid): Remove global.
6103 (init_w32_command_list): Remove; move into ...
6104 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
6105 * valprint.c (set_print, show_print, set_print_raw)
6106 (show_print_raw): Remove.
6107 (_initialize_valprint): Use add_basic_prefix_cmd,
6108 add_show_prefix_cmd.
6109 * typeprint.c (set_print_type, show_print_type): Remove.
6110 (_initialize_typeprint): Use add_basic_prefix_cmd,
6111 add_show_prefix_cmd.
6112 * record.c (set_record_command, show_record_command): Remove.
6113 (_initialize_record): Use add_basic_prefix_cmd,
6114 add_show_prefix_cmd.
6115 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
6116 add_show_prefix_cmd.
6117 (info_command, show_command, set_debug, show_debug): Remove.
6118 * top.h (set_history, show_history): Don't declare.
6119 * top.c (set_history, show_history): Remove.
6120 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
6121 (unset_tdesc_cmd): Remove.
6122 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
6123 add_show_prefix_cmd.
6124 * symtab.c (info_module_command): Remove.
6125 (_initialize_symtab): Use add_basic_prefix_cmd.
6126 * symfile.c (overlay_command): Remove.
6127 (_initialize_symfile): Use add_basic_prefix_cmd.
6128 * sparc64-tdep.c (info_adi_command): Remove.
6129 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
6130 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
6131 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
6132 add_show_prefix_cmd.
6133 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
6134 (_initialize_serial): Use add_basic_prefix_cmd,
6135 add_show_prefix_cmd.
6136 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
6137 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
6138 add_show_prefix_cmd.
6139 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
6140 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
6141 add_show_prefix_cmd.
6142 * riscv-tdep.c (show_riscv_command, set_riscv_command)
6143 (show_debug_riscv_command, set_debug_riscv_command): Remove.
6144 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
6145 add_show_prefix_cmd.
6146 * remote.c (remote_command, set_remote_cmd): Remove.
6147 (_initialize_remote): Use add_basic_prefix_cmd.
6148 * record-full.c (set_record_full_command)
6149 (show_record_full_command): Remove.
6150 (_initialize_record_full): Use add_basic_prefix_cmd,
6151 add_show_prefix_cmd.
6152 * record-btrace.c (cmd_set_record_btrace)
6153 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
6154 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
6155 (cmd_show_record_btrace_pt): Remove.
6156 (_initialize_record_btrace): Use add_basic_prefix_cmd,
6157 add_show_prefix_cmd.
6158 * ravenscar-thread.c (set_ravenscar_command)
6159 (show_ravenscar_command): Remove.
6160 (_initialize_ravenscar): Use add_basic_prefix_cmd,
6161 add_show_prefix_cmd.
6162 * mips-tdep.c (show_mips_command, set_mips_command)
6163 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
6164 add_show_prefix_cmd.
6165 * maint.c (maintenance_command, maintenance_info_command)
6166 (maintenance_check_command, maintenance_print_command)
6167 (maintenance_set_cmd, maintenance_show_cmd): Remove.
6168 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
6169 add_show_prefix_cmd.
6170 (show_per_command_cmd): Remove.
6171 * maint-test-settings.c (maintenance_set_test_settings_cmd):
6172 Remove.
6173 (maintenance_show_test_settings_cmd): Remove.
6174 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
6175 add_show_prefix_cmd.
6176 * maint-test-options.c (maintenance_test_options_command):
6177 Remove.
6178 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
6179 * macrocmd.c (macro_command): Remove
6180 (_initialize_macrocmd): Use add_basic_prefix_cmd.
6181 * language.c (set_check, show_check): Remove.
6182 (_initialize_language): Use add_basic_prefix_cmd,
6183 add_show_prefix_cmd.
6184 * infcmd.c (unset_command): Remove.
6185 (_initialize_infcmd): Use add_basic_prefix_cmd.
6186 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
6187 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
6188 add_show_prefix_cmd.
6189 * go32-nat.c (go32_info_dos_command): Remove.
6190 (_initialize_go32_nat): Use add_basic_prefix_cmd.
6191 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
6192 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
6193 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
6194 (_initialize_frame): Use add_basic_prefix_cmd,
6195 add_show_prefix_cmd.
6196 * dcache.c (set_dcache_command, show_dcache_command): Remove.
6197 (_initialize_dcache): Use add_basic_prefix_cmd,
6198 add_show_prefix_cmd.
6199 * cp-support.c (maint_cplus_command): Remove.
6200 (_initialize_cp_support): Use add_basic_prefix_cmd.
6201 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
6202 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
6203 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
6204 add_basic_prefix_cmd, add_show_prefix_cmd.
6205 * breakpoint.c (save_command): Remove.
6206 (_initialize_breakpoint): Use add_basic_prefix_cmd.
6207 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
6208 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
6209 add_show_prefix_cmd.
6210 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
6211 (set_ada_command, show_ada_command): Remove.
6212 (_initialize_ada_language): Use add_basic_prefix_cmd,
6213 add_show_prefix_cmd.
6214 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
6215
3557f442
KR
62162020-04-16 Kamil Rytarowski <n54@gmx.com>
6217
6218 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
6219 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
6220
16197208
SM
62212020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
6222
6223 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
6224 warning messages.
6225
00ac85d3
SM
62262020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
6227
6228 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
6229 import table is not at beginning of .idata section.
6230
381ce63f
PA
62312020-04-16 Pedro Alves <palves@redhat.com>
6232
6233 * inferior.c (delete_inferior): Use delete operator directly
6234 instead of delete_program_space.
6235 * progspace.c (add_program_space): New, factored out from
6236 program_space::program_space.
6237 (remove_program_space): New, factored out from
6238 delete_program_space.
6239 (program_space::program_space): Remove intro comment. Rewrite.
6240 (program_space::~program_space): Remove intro comment. Call
6241 remove_program_space.
6242 (delete_program_space): Delete.
6243 * progspace.h (program_space::program_space): Make explicit. Move
6244 intro comment here, adjusted.
6245 (program_space::~program_space): Move intro comment here,
6246 adjusted.
6247 (delete_program_space): Remove.
6248
a010605f
TT
62492020-04-16 Tom Tromey <tromey@adacore.com>
6250
6251 * windows-nat.c (windows_nat::handle_access_violation): New
6252 function.
6253 * nat/windows-nat.h (handle_access_violation): Declare.
6254 * nat/windows-nat.c (handle_exception): Move Cygwin code to
6255 windows-nat.c. Call handle_access_violation.
6256
efba5c23
TV
62572020-04-16 Tom de Vries <tdevries@suse.de>
6258
6259 PR symtab/25791
6260 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
6261 CUs without psymtab.
6262
97ed802d
KB
62632020-04-16 Kevin Buettner <kevinb@redhat.com>
6264
6265 * python/python.c (do_start_initialization): Don't call
6266 PyEval_InitThreads for Python 3.9 and beyond.
6267
c7d64809
KR
62682020-04-15 Kamil Rytarowski <n54@gmx.com>
6269
6270 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
6271 thread functions.
6272 (obsd_nat_target::wait): Likewise.
6273
ce127a96
TT
62742020-04-15 Tom Tromey <tromey@adacore.com>
6275
6276 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
6277 (DEBUG_EXCEPT): Use debug_printf.
6278
99f1bc6a
AB
62792020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
6280
6281 * completer.c (class completion_tracker::completion_hash_entry)
6282 <hash_name>: New member function.
6283 (completion_tracker::discard_completions): New callback to hash a
6284 completion_hash_entry, pass this to htab_create_alloc.
6285
a0e9b532
JT
62862016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
6287
6288 * windows-nat.c (windows_make_so): Warn rather than stopping with
6289 an error if realpath() fails.
6290
06ca5dd4
KR
62912020-04-14 Kamil Rytarowski <n54@gmx.com>
6292
6293 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
6294 (nbsd_nat_target::info_proc): Add do_status.
6295
194d088f
TV
62962020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
6297 Tom de Vries <tdevries@suse.de>
6298
6299 PR symtab/25718
6300 * psympriv.h (struct partial_symtab::read_symtab)
6301 (struct partial_symtab::expand_psymtab)
6302 (struct partial_symtab::read_dependencies): Update comments.
6303 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
6304 read_symtab for includer.
6305 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
6306 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
6307 (struct dwarf2_include_psymtab::m_readin): Remove.
6308 (struct dwarf2_include_psymtab::includer): New member function.
6309 (dwarf2_psymtab::expand_psymtab): Assert !readin.
6310
c1a66c06
TV
63112020-04-14 Tom de Vries <tdevries@suse.de>
6312
6313 PR symtab/25720
6314 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
6315 with NULL symbol_matcher and lookup_name.
6316 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
6317 and lookup_name.
6318 * dwarf2/read.c (dw2_expand_symtabs_matching)
6319 (dw2_debug_names_expand_symtabs_matching): Same.
6320 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
6321 Make lookup_name a pointer. Update comment.
6322 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
6323 lookup_name being a pointer.
6324 * symfile.c (expand_symtabs_matching): Same.
6325 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
6326 * linespec.c (iterate_over_all_matching_symtabs): Same.
6327
400b5eca
TT
63282020-04-13 Tom Tromey <tom@tromey.com>
6329
6330 * run-on-main-thread.c: Update include.
6331 * unittests/main-thread-selftests.c: Update include.
6332 * tui/tui-win.c: Update include.
6333 * tui/tui-io.c: Update include.
6334 * tui/tui-interp.c: Update include.
6335 * tui/tui-hooks.c: Update include.
6336 * top.h: Update include.
6337 * top.c: Update include.
6338 * ser-base.c: Update include.
6339 * remote.c: Update include.
6340 * remote-notif.c: Update include.
6341 * remote-fileio.c: Update include.
6342 * record-full.c: Update include.
6343 * record-btrace.c: Update include.
6344 * python/python.c: Update include.
6345 * posix-hdep.c: Update include.
6346 * mingw-hdep.c: Update include.
6347 * mi/mi-main.c: Update include.
6348 * mi/mi-interp.c: Update include.
6349 * main.c: Update include.
6350 * linux-nat.c: Update include.
6351 * interps.c: Update include.
6352 * infrun.c: Update include.
6353 * inf-loop.c: Update include.
6354 * event-top.c: Update include.
6355 * event-loop.c: Move to ../gdbsupport/.
6356 * event-loop.h: Move to ../gdbsupport/.
6357 * async-event.h: Update include.
6358 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
6359
93b54c8e
TT
63602020-04-13 Tom Tromey <tom@tromey.com>
6361
6362 * tui/tui-win.c: Include async-event.h.
6363 * remote.c: Include async-event.h.
6364 * remote-notif.c: Include async-event.h.
6365 * record-full.c: Include async-event.h.
6366 * record-btrace.c: Include async-event.h.
6367 * infrun.c: Include async-event.h.
6368 * event-top.c: Include async-event.h.
6369 * event-loop.h: Move some declarations to async-event.h.
6370 * event-loop.c: Don't include ser-event.h or top.h. Move some
6371 code to async-event.c.
6372 * async-event.h: New file.
6373 * async-event.c: New file.
6374 * Makefile.in (COMMON_SFILES): Add async-event.c.
6375 (HFILES_NO_SRCDIR): Add async-event.h.
6376
c1cd3163
TT
63772020-04-13 Tom Tromey <tom@tromey.com>
6378
6379 * utils.c (flush_streams): New function.
6380 * event-loop.c (gdb_wait_for_event): Call flush_streams.
6381
29f2bf4f
TT
63822020-04-13 Tom Tromey <tom@tromey.com>
6383
6384 * event-loop.c (handle_file_event): Use warning, not
6385 printf_unfiltered.
6386
98029d02
TT
63872020-04-13 Tom Tromey <tom@tromey.com>
6388
6389 * event-loop.c: Include <chrono>.
6390
06cc9596
TT
63912020-04-13 Tom Tromey <tom@tromey.com>
6392
6393 * gdb_select.h: Move to ../gdbsupport/.
6394 * event-loop.c: Update include path.
6395 * top.c: Update include path.
6396 * ser-base.c: Update include path.
6397 * ui-file.c: Update include path.
6398 * ser-tcp.c: Update include path.
6399 * guile/scm-ports.c: Update include path.
6400 * posix-hdep.c: Update include path.
6401 * ser-unix.c: Update include path.
6402 * gdb_usleep.c: Update include path.
6403 * mingw-hdep.c: Update include path.
6404 * inflow.c: Update include path.
6405 * infrun.c: Update include path.
6406 * event-top.c: Update include path.
6407
8ae8e197
TT
64082020-04-13 Tom Tromey <tom@tromey.com>
6409
6410 * configure: Rebuild.
6411 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
6412
58cf28e8
TT
64132020-04-13 Tom Tromey <tom@tromey.com>
6414
6415 * event-loop.h (start_event_loop): Don't declare.
6416 * event-loop.c (start_event_loop): Move...
6417 * main.c (start_event_loop): ...here. Now static.
6418
b7f999ae
SDJ
64192020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
6420
6421 * MAINTAINERS: Update my email address.
6422
1085dfd4
KR
64232020-04-12 Kamil Rytarowski <n54@gmx.com>
6424
6425 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
6426 IP_ALL.
6427
49d1d1f5
KR
64282020-04-12 Kamil Rytarowski <n54@gmx.com>
6429
6430 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
aac66a4c 6431 (nbsd_nat_target::info_proc): Add do_cmdline.
49d1d1f5 6432
b4848d2a
KR
64332020-04-12 Kamil Rytarowski <n54@gmx.com>
6434
6435 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
aac66a4c 6436 (nbsd_nat_target::info_proc): Add do_cwd.
b4848d2a 6437
51c133d5
KR
64382020-04-12 Kamil Rytarowski <n54@gmx.com>
6439
6440 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
6441
54b8cbd0
KR
64422020-04-11 Kamil Rytarowski <n54@gmx.com>
6443
6444 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
6445 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
6446 (nbsd_nat_target::info_proc): New functions.
6447 * nbsd-nat.c (kinfo_get_vmmap): New function.
6448 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
6449 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
6450 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
6451 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
6452 functions.
6453 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
6454 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
6455 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
6456 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
6457 (KINFO_VME_FLAG_GROWS_DOWN): New.
6458
cf83625d
AS
64592020-04-10 Artur Shepilko <nomadbyte@gmail.com>
6460
6461 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
6462 bit shift.
6463
0c4311ab
TT
64642020-04-10 Tom Tromey <tromey@adacore.com>
6465
6466 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
6467
3e65b3e9
TT
64682020-04-10 Tom Tromey <tromey@adacore.com>
6469
6470 * symtab.c (get_symbol_address, get_msymbol_address): Skip
6471 separate debug files.
6472
13302e95
HD
64732020-04-10 Hannes Domani <ssbssa@yahoo.de>
6474
6475 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
6476 Move to...
6477 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
6478 ... here.
6479 * windows-nat.c (windows_nat_target::get_windows_debug_event):
6480 Check for STATUS_WX86_BREAKPOINT.
6481 (windows_nat_target::wait): Same.
6482
bdfc1e8a
TV
64832020-04-10 Tom de Vries <tdevries@suse.de>
6484
6485 PR cli/25808
6486 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
6487
f4460aec
SM
64882020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
6489
6490 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
6491 (Write After Approval): Remove Tom de Vries.
6492
a25198bb
BE
64932020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
6494
6495 revert partially:
6496 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
6497
aac66a4c
SM
6498 * buildsym.c (record_line): Fix undefined behavior and preserve
6499 lines at eof.
a25198bb 6500
206c98a6
KR
65012020-04-09 Kamil Rytarowski <n54@gmx.com>
6502
6503 * auxv.h (svr4_auxv_parse): New.
6504 * auxv.c (default_auxv_parse): Split into default_auxv_parse
6505 and generic_auxv_parse.
6506 (svr4_auxv_parse): Add.
6507 * obsd-tdep.c: Include "auxv.h".
6508 (obsd_auxv_parse): Remove.
6509 (obsd_init_abi): Remove comment.
6510 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
6511 from `obsd_auxv_parse' to `svr4_auxv_parse'.
6512 * nbsd-tdep.c: Include "auxv.h".
6513 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
6514
71fbdbaf
TT
65152020-04-08 Tom Tromey <tromey@adacore.com>
6516
6517 * nat/windows-nat.h (last_wait_event): Don't declare.
6518 (wait_for_debug_event): Update comment.
6519 * nat/windows-nat.c (last_wait_event): Now static.
6520
2c1d95e8
TT
65212020-04-08 Tom Tromey <tromey@adacore.com>
6522
6523 * windows-nat.c (wait_for_debug_event): Move to
6524 nat/windows-nat.c.
6525 * nat/windows-nat.h (wait_for_debug_event): Declare.
6526 * nat/windows-nat.c (wait_for_debug_event): Move from
6527 windows-nat.c. No longer static.
6528
d2977bc4
TT
65292020-04-08 Tom Tromey <tromey@adacore.com>
6530
6531 * windows-nat.c (get_windows_debug_event): Use
6532 fetch_pending_stop.
6533 * nat/windows-nat.h (fetch_pending_stop): Declare.
6534 * nat/windows-nat.c (fetch_pending_stop): New function.
6535
e758e19c
TT
65362020-04-08 Tom Tromey <tromey@adacore.com>
6537
6538 * windows-nat.c (windows_continue): Use matching_pending_stop and
6539 continue_last_debug_event.
6540 * nat/windows-nat.h (matching_pending_stop)
6541 (continue_last_debug_event): Declare.
6542 * nat/windows-nat.c (DEBUG_EVENTS): New define.
6543 (matching_pending_stop, continue_last_debug_event): New
6544 functions.
6545
8d30e395
TT
65462020-04-08 Tom Tromey <tromey@adacore.com>
6547
6548 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
6549 (handle_exception_result): Move to nat/windows-nat.h.
6550 (DEBUG_EXCEPTION_SIMPLE): Remove.
6551 (windows_nat::handle_ms_vc_exception): New function.
6552 (handle_exception): Move to nat/windows-nat.c.
6553 (get_windows_debug_event): Update.
6554 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
6555 nat/windows-nat.c.
6556 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
6557 (handle_exception_result): Move from windows-nat.c.
6558 (handle_exception): Declare.
6559 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
6560 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
6561 windows-nat.c.
6562
29de418d
TT
65632020-04-08 Tom Tromey <tromey@adacore.com>
6564
6565 * windows-nat.c (exception_count, event_count): Remove.
6566 (handle_exception, get_windows_debug_event)
6567 (do_initial_windows_stuff): Update.
6568
a816ba18
TT
65692020-04-08 Tom Tromey <tromey@adacore.com>
6570
6571 * windows-nat.c (windows_nat::handle_load_dll)
6572 (windows_nat::handle_unload_dll): Rename. No longer static.
6573 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
6574 Declare.
6575
a00caa12
TT
65762020-04-08 Tom Tromey <tromey@adacore.com>
6577
6578 * complaints.h (stop_whining): Declare at top-level.
6579 (complaint): Don't declare stop_whining.
6580
d41b524f
TT
65812020-04-08 Tom Tromey <tromey@adacore.com>
6582
6583 * windows-nat.c (windows_nat::handle_output_debug_string):
6584 Rename. No longer static.
6585 * nat/windows-nat.h (handle_output_debug_string): Declare.
6586
3c76026d
TT
65872020-04-08 Tom Tromey <tromey@adacore.com>
6588
6589 * windows-nat.c (current_process_handle, current_process_id)
6590 (main_thread_id, last_sig, current_event, last_wait_event)
6591 (current_windows_thread, desired_stop_thread_id, pending_stops)
6592 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
6593 (display_selectors, fake_create_process)
6594 (get_windows_debug_event): Update.
6595 * nat/windows-nat.h (current_process_handle, current_process_id)
6596 (main_thread_id, last_sig, current_event, last_wait_event)
6597 (current_windows_thread, desired_stop_thread_id, pending_stops)
6598 (struct pending_stop, siginfo_er): Move from windows-nat.c.
6599 * nat/windows-nat.c (current_process_handle, current_process_id)
6600 (main_thread_id, last_sig, current_event, last_wait_event)
6601 (current_windows_thread, desired_stop_thread_id, pending_stops)
6602 (siginfo_er): New globals. Move from windows-nat.c.
6603
9d8679cc
TT
66042020-04-08 Tom Tromey <tromey@adacore.com>
6605
6606 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
6607 (handle_load_dll): Update.
6608 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
6609
28688adf
TT
66102020-04-08 Tom Tromey <tromey@adacore.com>
6611
6612 * windows-nat.c (enum thread_disposition_type): Move to
6613 nat/windows-nat.h.
6614 (windows_nat::thread_rec): Rename from thread_rec. No longer
6615 static.
6616 (windows_add_thread, windows_nat_target::fetch_registers)
6617 (windows_nat_target::store_registers, handle_exception)
6618 (windows_nat_target::resume, get_windows_debug_event)
6619 (windows_nat_target::get_tib_address)
6620 (windows_nat_target::thread_name)
6621 (windows_nat_target::thread_alive): Update.
6622 * nat/windows-nat.h (enum thread_disposition_type): Move from
6623 windows-nat.c.
6624 (thread_rec): Declare.
6625
4834dad0
TT
66262020-04-08 Tom Tromey <tromey@adacore.com>
6627
6628 * windows-nat.c: Add "using namespace".
6629 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
6630 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
6631
65bafd5b
TT
66322020-04-08 Tom Tromey <tromey@adacore.com>
6633
6634 * nat/windows-nat.h (struct windows_thread_info): Declare
6635 destructor.
6636 * nat/windows-nat.c (~windows_thread_info): New.
6637
0a4afda3
TT
66382020-04-08 Tom Tromey <tromey@adacore.com>
6639
6640 PR gdb/22992
6641 * windows-nat.c (current_event): Update comment.
6642 (last_wait_event, desired_stop_thread_id): New globals.
6643 (struct pending_stop): New.
6644 (pending_stops): New global.
6645 (windows_nat_target) <stopped_by_sw_breakpoint>
6646 <supports_stopped_by_sw_breakpoint>: New methods.
6647 (windows_fetch_one_register): Add assertions. Adjust PC.
6648 (windows_continue): Handle pending stops. Suspend other threads
6649 when stepping. Use last_wait_event
6650 (wait_for_debug_event): New function.
6651 (get_windows_debug_event): Use wait_for_debug_event. Handle
6652 pending stops. Queue spurious stops.
6653 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
6654 (windows_nat_target::kill): Use wait_for_debug_event.
6655 * nat/windows-nat.h (struct windows_thread_info)
6656 <stopped_at_software_breakpoint>: New field.
6657 * nat/windows-nat.c (windows_thread_info::resume): Clear
6658 stopped_at_software_breakpoint.
6659
8e61ebec
TT
66602020-04-08 Tom Tromey <tromey@adacore.com>
6661
6662 * windows-nat.c (enum thread_disposition_type): New.
6663 (thread_rec): Replace "get_context" parameter with "disposition";
6664 change type.
6665 (windows_add_thread, windows_nat_target::fetch_registers)
6666 (windows_nat_target::store_registers, handle_exception)
6667 (windows_nat_target::resume, get_windows_debug_event)
6668 (windows_nat_target::get_tib_address)
6669 (windows_nat_target::thread_name)
6670 (windows_nat_target::thread_alive): Update.
6671
98a03287
TT
66722020-04-08 Tom Tromey <tromey@adacore.com>
6673
6674 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
6675 (windows_continue): Use windows_continue::resume.
6676 * nat/windows-nat.h (struct windows_thread_info) <suspend,
6677 resume>: Declare new methods.
6678 * nat/windows-nat.c: New file.
6679 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
6680
7c7411bc
TT
66812020-04-08 Tom Tromey <tromey@adacore.com>
6682
6683 * windows-nat.c (windows_add_thread, windows_delete_thread)
6684 (windows_nat_target::fetch_registers)
6685 (windows_nat_target::store_registers, fake_create_process)
6686 (windows_nat_target::resume, windows_nat_target::resume)
6687 (get_windows_debug_event, windows_nat_target::wait)
6688 (windows_nat_target::pid_to_str)
6689 (windows_nat_target::get_tib_address)
6690 (windows_nat_target::get_ada_task_ptid)
6691 (windows_nat_target::thread_name)
6692 (windows_nat_target::thread_alive): Use lwp, not tid.
6693
2950fdf7
TT
66942020-04-08 Tom Tromey <tromey@adacore.com>
6695
6696 * windows-nat.c (handle_exception)
6697 (windows_nat_target::thread_name): Update.
6698 * nat/windows-nat.h (windows_thread_info): Remove destructor.
6699 <name>: Now unique_xmalloc_ptr.
6700
62fe396b
TT
67012020-04-08 Tom Tromey <tromey@adacore.com>
6702
6703 * windows-nat.c (thread_rec)
6704 (windows_nat_target::fetch_registers): Update.
6705 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
6706 Update comment.
6707 <debug_registers_changed, reload_context>: Now bool.
6708
e9534bd2
TT
67092020-04-08 Tom Tromey <tromey@adacore.com>
6710
6711 * windows-nat.c (windows_add_thread): Use new.
6712 (windows_init_thread_list, windows_delete_thread): Use delete.
6713 (get_windows_debug_event): Update.
6714 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
6715 destructor, and initializers.
6716
ae1f8880
TT
67172020-04-08 Tom Tromey <tromey@adacore.com>
6718
6719 * windows-nat.c (struct windows_thread_info): Remove.
6720 * nat/windows-nat.h: New file.
6721
55a1e039
TT
67222020-04-08 Tom Tromey <tromey@adacore.com>
6723
6724 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
6725 (thread_rec, windows_add_thread, windows_delete_thread)
6726 (windows_continue): Update.
6727
93366324
TT
67282020-04-08 Tom Tromey <tromey@adacore.com>
6729
6730 * windows-nat.c (struct windows_thread_info): Remove typedef.
6731 (thread_head): Remove.
6732 (thread_list): New global.
6733 (thread_rec, windows_add_thread, windows_init_thread_list)
6734 (windows_delete_thread, windows_continue): Update.
6735
0f2265e2
SM
67362020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
6737
6738 * windows-tdep.h (windows_init_abi): Add comment.
6739 (cygwin_init_abi): New declaration.
6740 * windows-tdep.c: Split signal enumeration in two, one for
6741 Windows and one for Cygwin.
6742 (windows_gdb_signal_to_target): Only deal with signal of the
6743 Windows OS ABI.
6744 (cygwin_gdb_signal_to_target): New function.
6745 (windows_init_abi): Rename to windows_init_abi_common, don't set
6746 gdb_signal_to_target gdbarch method. Add new new function with
6747 this name.
6748 (cygwin_init_abi): New function.
6749 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
6750 comment. Don't call windows_init_abi.
6751 (amd64_windows_init_abi): Add comment, call windows_init_abi.
6752 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
6753 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
6754 i386_windows_init_abi_common, don't call windows_init_abi. Add
6755 a new function of this name.
6756 (i386_cygwin_init_abi): New function.
6757 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
6758 OS ABI Cygwin.
6759
3810f182
SM
67602020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
6761
6762 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
6763 parameter.c.
6764 (dwarf2_read_gdb_index): Update.
6765
063f8e80
KR
67662020-04-07 Kamil Rytarowski <n54@gmx.com>
6767
6768 * nbsd-tdep.c: Include "objfiles.h".
6769 (nbsd_skip_solib_resolver): New.
6770 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
6771
85a9510c 67722020-04-07 Nitika Achra <Nitika.Achra@amd.com>
6773
6774 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
6775 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
6776 with DW_LLE_base_addressx are being emitted in DWARFv5.
6777 Add the newly added kind DW_LOC_OFFSET_PAIR also.
6778 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
6779 unsigned integer.
6780
9fc3eaae 67812020-04-07 Nitika Achra <Nitika.Achra@amd.com>
6782
6783 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
6784 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
6785 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
6786 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
6787 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
6788 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
6789 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
6790
6791
41144253 67922020-04-07 Nitika Achra <Nitika.Achra@amd.com>
6793
6794 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
6795 (read_loclist_index): New function definition.
6796 (lookup_loclist_base): New function definition.
6797 (read_loclist_header): New function definition.
6798 (dwarf2_cu): Add loclist_base and loclist_header field.
6799 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
6800 (read_full_die_1): Read the value of DW_AT_loclists_base.
6801 (read_attribute_reprocess): Handle DW_FORM_loclistx.
6802 (read_attribute_value): Handle DW_FORM_loclistx.
6803 (skip_one_die): Handle DW_FORM_loclistx.
6804 (loclist_header): New structure declaration.
6805 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
6806
9f4e76a4
SM
68072020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
6808
6809 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
6810 constructor. Remove `addr` parameter from other constructor and
6811 add `per_cu` parameter.
6812 * dwarf2/read.c (create_partial_symtab): Update.
6813
25c11aca
TV
68142020-04-07 Tom de Vries <tdevries@suse.de>
6815
6816 PR symtab/25796
6817 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
6818 (partial_die_info::fixup): Inherit has_const_value.
6819
5707e24b
TV
68202020-04-07 Tom de Vries <tdevries@suse.de>
6821
6822 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
6823 symbols without address.
6824
05f00e22
KR
68252020-04-06 Kamil Rytarowski <n54@gmx.com>
6826
6827 * nbsd-nat.h (struct thread_info): Add forward declaration.
6828 (nbsd_nat_target::thread_alive): Add.
6829 (nbsd_nat_target::thread_name): Likewise.
6830 (nbsd_nat_target::update_thread_list): Likewise.
6831 (update_thread_list::post_attach): Likewise.
6832 (post_attach::pid_to_str): Likewise.
6833 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
6834 (nbsd_thread_lister): Add.
6835 (nbsd_nat_target::thread_alive): Likewise.
6836 (nbsd_nat_target::thread_name): Likewise.
6837 (nbsd_add_threads): Likewise.
6838 (update_thread_list::post_attach): Likewise.
6839 (nbsd_nat_target::update_thread_list): Likewise.
6840 (post_attach::pid_to_str): Likewise.
6841
6ee448cc
TT
68422020-04-06 Tom Tromey <tromey@adacore.com>
6843
6844 * ada-valprint.c (print_variant_part): Extract the variant field.
6845 (print_field_values): Use the field as the outer value when
6846 recursing.
6847
dea34e8c
TT
68482020-04-06 Tom Tromey <tromey@adacore.com>
6849
6850 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
6851 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
6852 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
6853 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
6854 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
6855
93689ce9
TT
68562020-04-06 Tom Tromey <tromey@adacore.com>
6857
6858 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
6859 TYPE_CODE_ERROR.
6860
79743962
KR
68612020-04-06 Kamil Rytarowski <n54@gmx.com>
6862
6863 * nbsd-tdep.c: Include "gdbarch.h".
6864 Define enum with NetBSD signal numbers.
6865 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
6866 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
6867 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
6868 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
6869 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
6870 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
6871 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
6872 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
6873 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
6874 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
6875 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
6876 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
6877
9e7c9a03
HD
68782020-04-03 Hannes Domani <ssbssa@yahoo.de>
6879
6880 PR gdb/25325
6881 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
6882
d9e49b61
TT
68832020-04-03 Tom Tromey <tromey@adacore.com>
6884
6885 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
6886 Read constant block.
6887
e0fc5c3f
SM
68882020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
6889
6890 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
6891 (gdb_bfd_get_full_section_contents): New declaration.
6892 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
6893 * windows-tdep.c (is_linked_with_cygwin_dll): Use
6894 gdb_bfd_get_full_section_contents.
6895
e2ff18a0
SM
68962020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
6897
6898 * exec.c (build_section_table): Replace internal_error with
6899 gdb_assert.
6900 (section_table_xfer_memory_partial): Likewise.
6901 * mdebugread.c (parse_partial_symbols): Likewise.
6902 * psymtab.c (lookup_partial_symbol): Likewise.
6903 * utils.c (wrap_here): Likewise.
6904
0830d301
TT
69052020-04-02 Tom Tromey <tromey@adacore.com>
6906
6907 * f-lang.c (build_fortran_types): Use arch_type to initialize
6908 builtin_complex_s32 in the TYPE_CODE_ERROR case.
6909
e7da7f8f
TT
69102020-04-02 Tom Tromey <tromey@adacore.com>
6911
6912 * dwarf2/read.c (partial_die_info::read): Do not create a vector
6913 of attributes.
6914
c90d28ac
AB
69152020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
6916 Bernd Edlinger <bernd.edlinger@hotmail.de>
6917 Tom Tromey <tromey@adacore.com>
6918
6919 * buildsym.c (buildsym_compunit::record_line): Remove
6920 deduplication code.
6921
1aa98955
TV
69222020-04-02 Tom de Vries <tdevries@suse.de>
6923
6924 PR ada/24671
6925 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
6926
d3214198
TV
69272020-04-02 Tom de Vries <tdevries@suse.de>
6928
6929 * dwarf2/read.c (dwarf2_gdb_index_functions,
6930 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
6931 NULL.
6932 * psymtab.c (psym_lookup_global_symbol_language): New function.
6933 (psym_functions): Init psym_lookup_global_symbol_language with
6934 psym_lookup_global_symbol_language.
6935 * symfile-debug.c (debug_sym_quick_functions): Init
6936 lookup_global_symbol_language with NULL.
6937 * symfile.c (set_initial_language): Remove fixme comment.
6938 * symfile.h (struct quick_symbol_functions): Add
6939 lookup_global_symbol_language.
6940 * symtab.c (find_quick_global_symbol_language): New function.
6941 (find_main_name): Use find_quick_global_symbol_language.
6942
2836752f
SM
69432020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
6944
6945 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
6946
64dc2d4b
BE
69472020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
6948
6949 * buildsym.c (record_line): Fix undefined behavior and preserve
6950 lines at eof.
6951
bbe3dc41
BE
69522020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
6953
6954 * buildsym.c (record_line): Fix the resizing condition.
6955
6b4a335b
TT
69562020-04-01 Tom Tromey <tom@tromey.com>
6957
6958 * value.h (value_literal_complex): Add comment.
6959 * valops.c (value_literal_complex): Refer to value.h.
6960
3638a098
TT
69612020-04-01 Tom Tromey <tom@tromey.com>
6962
6963 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
6964 (scalar_type): New rule, from typebase.
6965 (typebase): Use scalar_type. Recognize complex types.
6966 (field_name): Handle FLOAT_KEYWORD.
6967 (ident_tokens): Add _Complex and __complex__.
6968
c34e8714
TT
69692020-04-01 Tom Tromey <tom@tromey.com>
6970
6971 PR exp/25299:
6972 * valarith.c (promotion_type, complex_binop): New functions.
6973 (scalar_binop): Handle complex numbers. Use promotion_type.
6974 (value_pos, value_neg, value_complement): Handle complex numbers.
6975
fa649bb7
TT
69762020-04-01 Tom Tromey <tom@tromey.com>
6977
6978 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
6979 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
6980 (parse_number): Handle complex numbers.
6981
981c08ce
TT
69822020-04-01 Tom Tromey <tom@tromey.com>
6983
6984 * c-valprint.c (c_decorations): Change complex suffix to "i".
6985
4c99290d
TT
69862020-04-01 Tom Tromey <tom@tromey.com>
6987
6988 * valprint.c (generic_value_print_complex): Use accessors.
6989 * value.h (value_real_part, value_imaginary_part): Declare.
6990 * valops.c (value_real_part, value_imaginary_part): New
6991 functions.
6992 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
6993
5b930b45
TT
69942020-04-01 Tom Tromey <tom@tromey.com>
6995
6996 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
6997 (read_range_type): Update.
6998 * mdebugread.c (basic_type): Update.
6999 * go-lang.c (build_go_types): Use init_complex_type.
7000 * gdbtypes.h (struct main_type) <complex_type>: New member.
7001 (init_complex_type): Update.
7002 (arch_complex_type): Don't declare.
7003 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
7004 Make name if none given. Use alloc_type_copy. Look for cached
7005 complex type.
7006 (arch_complex_type): Remove.
7007 (gdbtypes_post_init): Use init_complex_type.
7008 * f-lang.c (build_fortran_types): Use init_complex_type.
7009 * dwarf2/read.c (read_base_type): Update.
7010 * d-lang.c (build_d_types): Use init_complex_type.
7011 * ctfread.c (read_base_type): Update.
7012
53cccef1
TBA
70132020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7014
7015 * infrun.c (stop_all_threads): Update assertion, plus when
7016 stopping threads, take into account that we might be trying
7017 to stop an all-stop target.
7018 (stop_waiting): Call 'stop_all_threads' if there exists a
7019 non-stop target.
7020
a0714d30
TBA
70212020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7022
7023 * target.h (exists_non_stop_target): New function declaration.
7024 * target.c (exists_non_stop_target): New function.
7025
60e22c1e
HD
70262020-04-01 Hannes Domani <ssbssa@yahoo.de>
7027
7028 PR gdb/24789
7029 * eval.c (is_integral_or_integral_reference): New function.
7030 (evaluate_subexp_standard): Allow integer references in
7031 pointer arithmetic.
7032
e139a727
TBA
70332020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7034
7035 * remote.c (remote_target::remote_parse_stop_reply): Remove the
7036 check for no ptid in the stop reply when the target is non-stop.
7037
e0802d59
TT
70382020-04-01 Tom Tromey <tromey@adacore.com>
7039
7040 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
7041 "name" parameter to rvalue reference. Initialize m_name_holder.
7042 <lookup_name_info>: New overloads.
7043 <name>: Return gdb::string_view.
7044 <c_str>: New method.
7045 <make_ignore_params>: Update.
7046 <search_name_hash>: Update.
7047 <language_lookup_name>: Return const char *.
7048 <m_name>: Change type.
7049 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
7050 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
7051 (lookup_name_info::match_any): Update.
7052 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
7053 Update.
7054 * minsyms.c (linkage_name_str): Update.
7055 * language.c (default_symbol_name_matcher): Update.
7056 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
7057 Update.
7058 * ada-lang.c (ada_fold_name): Change parameter to string_view.
7059 (ada_lookup_name_info::ada_lookup_name_info): Update.
7060 (literal_symbol_name_matcher): Update.
7061
8c072cb6
TT
70622020-04-01 Tom Tromey <tromey@adacore.com>
7063
7064 * psymtab.c (psymtab_search_name): Remove function.
7065 (psym_lookup_symbol): Create search name and lookup name here.
7066 (lookup_partial_symbol): Remove "name" parameter; add
7067 lookup_name.
7068 (psym_expand_symtabs_for_function): Update.
7069
6f29a534
TT
70702020-03-31 Joel Jones <joelkevinjones@gmail.com>
7071
7072 PR tui/25597:
7073 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
7074
af62665e
TT
70752020-03-31 Tom Tromey <tromey@adacore.com>
7076
7077 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
7078 memcpy.
7079
d1a89da5
NC
70802020-03-30 Nelson Chu <nelson.chu@sifive.com>
7081
7082 * features/riscv/32bit-csr.xml: Regenerated.
7083 * features/riscv/64bit-csr.xml: Regenerated.
7084
d8af9068
TT
70852020-03-30 Tom Tromey <tromey@adacore.com>
7086
7087 * ada-valprint.c (print_variant_part): Update.
7088 * ada-lang.h (ada_which_variant_applies): Update.
7089 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
7090 outer_valaddr parameters; replace with "outer" value parameter.
7091 (to_fixed_variant_branch_type): Update.
7092
227c0bf4
PFC
70932020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
7094
7095 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
7096 <list>. Remove inclusion of observable.h.
7097 (PPC_DEBUG_CURRENT_VERSION): Move up define.
7098 (struct arch_lwp_info): New struct.
7099 (class ppc_linux_dreg_interface): New class.
7100 (struct ppc_linux_process_info): New struct.
7101 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
7102 <low_new_clone, low_forget_process, low_prepare_to_resume>
7103 <copy_thread_dreg_state, mark_thread_stale>
7104 <mark_debug_registers_changed, register_hw_breakpoint>
7105 <clear_hw_breakpoint, register_wp, clear_wp>
7106 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
7107 <num_memory_accesses, get_trigger_type>
7108 <create_watchpoint_request, hwdebug_point_cmp>
7109 <init_arch_lwp_info, get_arch_lwp_info>
7110 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
7111 methods.
7112 <struct ptid_hash>: New inner struct.
7113 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
7114 members.
7115 (saved_dabr_value, hwdebug_info, max_slots_number)
7116 (struct hw_break_tuple, struct thread_points, ppc_threads)
7117 (have_ptrace_hwdebug_interface)
7118 (hwdebug_find_thread_points_by_tid)
7119 (hwdebug_insert_point, hwdebug_remove_point): Remove.
7120 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
7121 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
7122 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
7123 use m_dreg_interface.
7124 (hwdebug_point_cmp): Change to...
7125 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
7126 reference arguments instead of pointers.
7127 (ppc_linux_nat_target::ranged_break_num_registers): Use
7128 m_dreg_interface.
7129 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
7130 m_dreg_interface. Call register_hw_breakpoint.
7131 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
7132 m_dreg_interface. Call clear_hw_breakpoint.
7133 (get_trigger_type): Change to...
7134 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
7135 comment.
7136 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
7137 use m_dreg_interface. Call register_hw_breakpoint.
7138 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
7139 use m_dreg_interface. Call clear_hw_breakpoint.
7140 (can_use_watchpoint_cond_accel): Change to...
7141 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
7142 method. Update comment, use m_dreg_interface and
7143 m_process_info.
7144 (calculate_dvc): Change to...
7145 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
7146 m_dreg_interface.
7147 (num_memory_accesses): Change to...
7148 (ppc_linux_nat_target::num_memory_accesses): ...this method.
7149 (check_condition): Change to...
7150 (ppc_linux_nat_target::check_condition): ...this method.
7151 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
7152 comment, use m_dreg_interface.
7153 (create_watchpoint_request): Change to...
7154 (ppc_linux_nat_target::create_watchpoint_request): ...this
7155 method. Use m_dreg_interface.
7156 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
7157 m_dreg_interface. Call register_hw_breakpoint or register_wp.
7158 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
7159 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
7160 (ppc_linux_nat_target::low_forget_process)
7161 (ppc_linux_nat_target::low_new_fork)
7162 (ppc_linux_nat_target::low_new_clone)
7163 (ppc_linux_nat_target::low_delete_thread)
7164 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
7165 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
7166 only call mark_thread_stale.
7167 (ppc_linux_thread_exit): Remove.
7168 (ppc_linux_nat_target::stopped_data_address): Change to...
7169 (ppc_linux_nat_target::low_stopped_data_address): This. Add
7170 comment, use m_dreg_interface and m_thread_hw_breakpoints.
7171 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
7172 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
7173 comment. Call low_stopped_data_address.
7174 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
7175 m_dreg_interface.
7176 (ppc_linux_nat_target::masked_watch_num_registers): Use
7177 m_dreg_interface.
7178 (ppc_linux_nat_target::copy_thread_dreg_state)
7179 (ppc_linux_nat_target::mark_thread_stale)
7180 (ppc_linux_nat_target::mark_debug_registers_changed)
7181 (ppc_linux_nat_target::register_hw_breakpoint)
7182 (ppc_linux_nat_target::clear_hw_breakpoint)
7183 (ppc_linux_nat_target::register_wp)
7184 (ppc_linux_nat_target::clear_wp)
7185 (ppc_linux_nat_target::init_arch_lwp_info)
7186 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
7187 (_initialize_ppc_linux_nat): Remove observer callback.
7188
4db10d8f
PFC
71892020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
7190
7191 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
7192 (ppc_linux_nat_target::auxv_parse)
7193 (ppc_linux_nat_target::read_description)
7194 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
7195 Move up.
7196
1310c1b0
PFC
71972020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
7198
7199 * linux-nat.h (low_new_clone): New method.
7200 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
7201
69b037c3
SM
72022020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
7203
7204 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
7205 (dbx_expand_psymtab): ... this.
7206 (start_psymtab): Update.
7207 * mdebugread.c (psymtab_to_symtab_1): Rename to...
7208 (mdebug_expand_psymtab): ... this.
7209 (parse_partial_symbols): Update.
7210 (new_psymtab): Update.
7211 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
7212 (xcoff_expand_psymtab): ... this.
7213 (xcoff_start_psymtab): Update.
7214
48993951
SM
72152020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
7216
7217 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
7218 <expand_dependencies>: ... this.
7219 * psymtab.c (partial_symtab::read_dependencies): Rename to...
7220 (partial_symtab::expand_dependencies): ... this.
7221 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
7222 Update.
7223 (dwarf2_psymtab::expand_psymtab): Update.
7224 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
7225 * mdebugread.c (psymtab_to_symtab_1): Update.
7226 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
7227
3ad83046
SM
72282020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
7229
7230 * psympriv.h (discard_psymtab): Remove.
7231 * dbxread.c (dbx_end_psymtab): Update.
7232 * xcoffread.c (xcoff_end_psymtab): Update.
7233
4d1b9ab6
TT
72342020-03-28 Tom Tromey <tom@tromey.com>
7235
7236 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
7237 comment.
7238
f1749218
TT
72392020-03-28 Tom Tromey <tom@tromey.com>
7240
7241 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
7242
ebea7626
HD
72432020-03-27 Hannes Domani <ssbssa@yahoo.de>
7244
7245 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
7246
a879b4d5
JB
72472020-03-26 John Baldwin <jhb@FreeBSD.org>
7248
7249 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
7250
0826b30a
TT
72512020-03-26 Tom Tromey <tom@tromey.com>
7252
7253 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
7254 (mark_common_block_symbol_computed, read_tag_string_type)
7255 (attr_to_dynamic_prop, read_subrange_type): Update.
7256 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
7257 to be methods on struct attribute.
7258 (skip_one_die, process_imported_unit_die, read_namespace_alias)
7259 (read_call_site_scope, partial_die_info::read)
7260 (partial_die_info::read, lookup_die_type, follow_die_ref):
7261 Update.
7262 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
7263 from dwarf2_get_ref_die_offset.
7264 (attribute::constant_value): New method, from
7265 dwarf2_get_attr_constant_value.
7266 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
7267 Declare method.
7268 <constant_value>: New method.
7269
2b2558bf
TT
72702020-03-26 Tom Tromey <tom@tromey.com>
7271
7272 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
7273 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
7274 (dwarf_type_encoding_name): Move to stringify.c.
7275 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
7276 * dwarf2/stringify.c: New file.
7277 * dwarf2/stringify.h: New file.
7278
eeb64781
TT
72792020-03-26 Tom Tromey <tom@tromey.com>
7280
7281 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
7282 Rewrite.
7283
a39fdb41
TT
72842020-03-26 Tom Tromey <tom@tromey.com>
7285
7286 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
7287 methods.
7288 * dwarf2/read.c (lookup_addr_base): Move to die.h.
7289 (lookup_ranges_base): Likewise.
7290 (read_cutu_die_from_dwo, read_full_die_1): Update.
7291
436c571c
TT
72922020-03-26 Tom Tromey <tom@tromey.com>
7293
7294 * dwarf2/read.c (read_import_statement, read_file_scope)
7295 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
7296 (read_lexical_block_scope, read_call_site_scope)
7297 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
7298 (handle_struct_member_die, process_structure_scope)
7299 (update_enumeration_type_from_children)
7300 (process_enumeration_scope, read_array_type, read_common_block)
7301 (read_namespace, read_module, read_subroutine_type): Update.
7302 (sibling_die): Remove.
7303
052c8bb8
TT
73042020-03-26 Tom Tromey <tom@tromey.com>
7305
7306 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
7307 (build_type_psymtabs_reader, read_structure_type)
7308 (read_enumeration_type, read_full_die_1): Update.
7309 (dwarf2_attr_no_follow): Move to die.h.
7310 * dwarf2/die.h (struct die_info) <attr>: New method.
7311
2b24b6e4
TT
73122020-03-26 Tom Tromey <tom@tromey.com>
7313
7314 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
7315 <base_address>: Now an optional.
7316 (dwarf2_find_base_address, dwarf2_rnglists_process)
7317 (dwarf2_ranges_process, fill_in_loclist_baton)
7318 (dwarf2_symbol_mark_computed): Update.
7319
c2d50fd0
TT
73202020-03-26 Tom Tromey <tom@tromey.com>
7321
7322 * dwarf2/read.c (struct die_info): Move to die.h.
7323 * dwarf2/die.h: New file.
7324
0df7ad3a
TT
73252020-03-26 Tom Tromey <tom@tromey.com>
7326
7327 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
7328 * dwarf2/read.c
7329 (dwarf2_statement_list_fits_in_line_number_section_complaint):
7330 Move to line-header.c.
7331 (read_checked_initial_length_and_offset, read_formatted_entries):
7332 Likewise.
7333 (dwarf_decode_line_header): Split into two.
7334 * dwarf2/line-header.c
7335 (dwarf2_statement_list_fits_in_line_number_section_complaint):
7336 Move from read.c.
7337 (read_checked_initial_length_and_offset, read_formatted_entries):
7338 Likewise.
7339 (dwarf_decode_line_header): New function, split from read.c.
7340
86c0bb4c
TT
73412020-03-26 Tom Tromey <tom@tromey.com>
7342
7343 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
7344 Declare method.
7345 * dwarf2/read.c (read_attribute_value): Update.
7346 (dwarf2_per_objfile::read_line_string): Rename from
7347 read_indirect_line_string.
7348 (read_formatted_entries): Update.
7349
2ef46c2f
TT
73502020-03-26 Tom Tromey <tom@tromey.com>
7351
7352 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
7353 variable.
7354
4f9c1eda
TT
73552020-03-26 Tom Tromey <tom@tromey.com>
7356
7357 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
7358 const.
7359 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
7360 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
7361 parameter const.
7362
5a0e026f
TT
73632020-03-26 Tom Tromey <tom@tromey.com>
7364
7365 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
7366 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
7367 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
7368 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
7369
8844c11b
TT
73702020-03-26 Tom Tromey <tom@tromey.com>
7371
7372 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
7373 file_names_size, file_full_name, file_file_name>: Use const.
7374 <file_name_at, file_names>: Add const overload.
7375 * dwarf2/line-header.c (line_header::file_file_name)
7376 (line_header::file_full_name): Update.
7377
c90ec28a
TT
73782020-03-26 Tom Tromey <tom@tromey.com>
7379
7380 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
7381 (macro_start_file, consume_improper_spaces)
7382 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
7383 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
7384 (dwarf_decode_macros): Move to macro.c.
7385 * dwarf2/macro.c: New file.
7386 * dwarf2/macro.h: New file.
7387 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
7388
4f44ae6c
TT
73892020-03-26 Tom Tromey <tom@tromey.com>
7390
7391 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
7392 method.
7393 * dwarf2/section.c: New method. From
7394 read_indirect_string_at_offset_from.
7395 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
7396 (read_indirect_string_at_offset_from): Move to section.c.
7397 (read_indirect_string_at_offset): Rewrite.
7398 (read_indirect_line_string_at_offset): Remove.
7399 (read_indirect_string, read_indirect_line_string)
7400 (dwarf_decode_macro_bytes): Update.
7401
a0194fa8
TT
74022020-03-26 Tom Tromey <tom@tromey.com>
7403
7404 * dwarf2/section.h (struct dwarf2_section_info)
7405 <overload_complaint>: Declare.
7406 (dwarf2_section_buffer_overflow_complaint): Don't declare.
7407 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
7408 Rename from dwarf2_section_buffer_overflow_complaint.
7409 * dwarf2/read.c (skip_one_die, partial_die_info::read)
7410 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
7411
3d27bbdb
TT
74122020-03-26 Tom Tromey <tom@tromey.com>
7413
7414 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
7415 Declare.
7416 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
7417 Move from read.c.
7418 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
7419 to section.c.
7420
9eac9650
TT
74212020-03-26 Tom Tromey <tom@tromey.com>
7422
7423 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
7424
bf80d710
TT
74252020-03-26 Tom Tromey <tom@tromey.com>
7426
7427 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
7428 "builder".
7429 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
7430 parameter.
7431 (dwarf_decode_macros): Update.
7432
0314b390
TT
74332020-03-26 Tom Tromey <tom@tromey.com>
7434
7435 * dwarf2/read.c (read_attribute_value): Update.
7436 (read_indirect_string_from_dwz): Move to dwz.c; change into
7437 method.
7438 (dwarf_decode_macro_bytes): Update.
7439 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
7440 * dwarf2/dwz.c: New file.
7441 * Makefile.in (COMMON_SFILES): Add dwz.c.
7442
9fda78b6
TT
74432020-03-26 Tom Tromey <tom@tromey.com>
7444
7445 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
7446 * dwarf2/read.c: Add include.
7447 * dwarf2/index-write.c: Add include.
7448 * dwarf2/index-cache.c: Add include.
7449 * dwarf2/dwz.h: New file.
7450
33aa3c10
TT
74512020-03-25 Tom Tromey <tom@tromey.com>
7452
7453 * compile/compile-object-load.c (get_out_value_type): Mention
7454 correct symbol name in error message.
7455
d503b685
HD
74562020-03-25 Hannes Domani <ssbssa@yahoo.de>
7457
7458 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
7459
7b1eff95
TV
74602020-03-25 Tom de Vries <tdevries@suse.de>
7461
7462 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
7463 * symmisc.c (dump_symtab_1): Print user and includes fields.
7464 (maintenance_info_symtabs): Same.
7465
dd895392
AB
74662020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
7467
7468 PR gdb/25534
7469 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
7470 (riscv_regcache_cooked_write): New function.
7471 (riscv_push_dummy_call): Use new function.
7472 (riscv_return_value): Likewise.
7473
5ab2fbf1
SM
74742020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
7475
7476 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
7477 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
7478 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
7479 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
7480 * infrun.c (follow_fork): Likewise.
7481 (follow_fork_inferior): Likewise.
7482 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
7483 * linux-nat.h (class linux_nat_target): Likewise.
7484 * remote.c (class remote_target) <follow_fork>: Likewise.
7485 (remote_target::follow_fork): Likewise.
7486 * target-delegates.c: Re-generate.
7487 * target.c (default_follow_fork): Likewise.
7488 (target_follow_fork): Likewise.
7489 * target.h (struct target_ops) <follow_fork>: Likewise.
7490 (target_follow_fork): Likewise.
7491
a64fafb5
TV
74922020-03-24 Tom de Vries <tdevries@suse.de>
7493
7494 * psymtab.c (maintenance_info_psymtabs): Print user field.
7495
fe26d3a3
TT
74962020-03-20 Tom Tromey <tromey@adacore.com>
7497
7498 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
7499 const.
7500 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
7501 const.
7502
c884cc46
SM
75032020-03-20 Simon Marchi <simon.marchi@efficios.com>
7504
7505 * ptrace.m4: Don't check for ptrace declaration.
7506 * config.in: Re-generate.
7507 * configure: Re-generate.
7508 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
7509 not defined.
7510
1ff700c2
KR
75112020-03-20 Kamil Rytarowski <n54@gmx.com>
7512
7513 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
7514 `PTRACE_TYPE_RET'.
7515 * i386-bsd-nat.c (gdb_ptrace): Likewise.
7516 * sparc-nat.c (gdb_ptrace): Likewise.
7517 * x86-bsd-nat.c (gdb_ptrace): Likewise.
7518
f7d4f0b1
TT
75192020-03-20 Tom Tromey <tromey@adacore.com>
7520
7521 * c-exp.y (lex_one_token): Fix assert.
7522
f67210ff
TT
75232020-03-20 Tom Tromey <tromey@adacore.com>
7524
7525 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
7526 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
7527 strncpy call.
7528
1773be9e
TT
75292020-03-20 Tom Tromey <tromey@adacore.com>
7530
7531 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
7532
70304be9
TT
75332020-03-20 Tom Tromey <tromey@adacore.com>
7534
7535 * ada-valprint.c (print_variant_part): Remove parameters; switch
7536 to value-based API.
7537 (print_field_values): Likewise.
7538 (ada_val_print_struct_union): Likewise.
7539 (ada_value_print_1): Update.
7540
9faa006d
KR
75412020-03-20 Kamil Rytarowski <n54@gmx.com>
7542
7543 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
7544 nbsd_nat_target instead of inf_ptrace_target.
7545 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
7546 nbsd_nat_target.
7547
4a90f062
KR
75482020-03-20 Kamil Rytarowski <n54@gmx.com>
7549
7550 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
7551 it to the ptrace call.
7552 * (store_registers): Likewise.
7553
75542020-03-20 Kamil Rytarowski <n54@gmx.com>
c7da12c7
KR
7555
7556 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
7557 it to the ptrace call.
7558 * (store_registers): Likewise.
7559
2d07da27
LM
75602020-03-19 Luis Machado <luis.machado@linaro.org>
7561
7562 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
7563 valid, fetch vg value from ptrace.
7564
f09db380
KR
75652020-03-19 Kamil Rytarowski <n54@gmx.com>
7566 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
7567 * inf-ptrace.c: Likewise.
7568 * (gdb_ptrace): Add.
7569 * (inf_ptrace_target::resume): Update.
7570 * (inf_ptrace_target::xfer_partial): Likewise.
7571 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
7572 * (inf_ptrace_peek_poke): Update.
7573
fcc7376e
KR
75742020-03-19 Kamil Rytarowski <n54@gmx.com>
7575
7576 * x86-bsd-nat.c (gdb_ptrace): New.
7577 * (x86bsd_dr_set): Add new argument `ptid'.
7578 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
7579 x86bsd_dr_set_addr): Update.
7580
cada5fc9
AB
75812020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
7582
7583 * remote.c (remote_target::process_stop_reply): Handle events for
7584 all threads differently.
7585
19a2740f
AB
75862020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
7587
7588 * completer.c (completion_tracker::remove_completion): Define new
7589 function.
7590 * completer.h (completion_tracker::remove_completion): Declare new
7591 function.
7592 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
7593 when adding a C++ function symbol.
7594
724fd9ba
AB
75952020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
7596
7597 * completer.c (completion_tracker::completion_hash_entry): Define
7598 new class.
7599 (advance_to_filename_complete_word_point): Call
7600 recompute_lowest_common_denominator.
7601 (completion_tracker::completion_tracker): Call discard_completions
7602 to setup the hash table.
7603 (completion_tracker::discard_completions): Allow for being called
7604 from the constructor, pass new equal function, and element deleter
7605 when constructing the hash table. Initialise new class member
7606 variables.
7607 (completion_tracker::maybe_add_completion): Remove use of
7608 m_entries_vec, and store more information into m_entries_hash.
7609 (completion_tracker::recompute_lcd_visitor): New function, most
7610 content taken from...
7611 (completion_tracker::recompute_lowest_common_denominator):
7612 ...here, this now just visits each item in the hash calling the
7613 above visitor.
7614 (completion_tracker::build_completion_result): Remove use of
7615 m_entries_vec, call recompute_lowest_common_denominator.
7616 * completer.h (completion_tracker::have_completions): Remove use
7617 of m_entries_vec.
7618 (completion_tracker::completion_hash_entry): Declare new class.
7619 (completion_tracker::recompute_lowest_common_denominator): Change
7620 function signature.
7621 (completion_tracker::recompute_lcd_visitor): Declare new function.
7622 (completion_tracker::m_entries_vec): Delete.
7623 (completion_tracker::m_entries_hash): Initialize to NULL.
7624 (completion_tracker::m_lowest_common_denominator_valid): New
7625 member variable.
7626 (completion_tracker::m_lowest_common_denominator_max_length): New
7627 member variable.
7628
5a82b8a1
KR
76292020-03-17 Kamil Rytarowski <n54@gmx.com>
7630
7631 * regformats/regdef.h: Put reg in gdb namespace.
7632
fb516a69
KR
76332020-03-17 Kamil Rytarowski <n54@gmx.com>
7634
7635 * i386-bsd-nat.c (gdb_ptrace): New.
7636 * (i386bsd_fetch_inferior_registers,
7637 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
7638 * (i386bsd_fetch_inferior_registers,
7639 i386bsd_store_inferior_registers) Use gdb_ptrace.
7640
1c0aa1fb
KR
76412020-03-17 Kamil Rytarowski <n54@gmx.com>
7642
7643 * amd64-bsd-nat.c (gdb_ptrace): New.
7644 * (amd64bsd_fetch_inferior_registers,
7645 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
7646 * (amd64bsd_fetch_inferior_registers,
7647 amd64bsd_store_inferior_registers) Use gdb_ptrace.
7648
5ccd2fb7
KR
76492020-03-17 Kamil Rytarowski <n54@gmx.com>
7650
7651 * user-regs.c (user_reg::read): Rename to...
7652 (user_reg::xread): ...this.
7653 * (append_user_reg): Rename argument `read' to `xread'.
7654 * (user_reg_add_builtin): Likewise.
7655 * (user_reg_add): Likewise.
7656 * (value_of_user_reg): Likewise.
7657
2108a63a
KR
76582020-03-17 Kamil Rytarowski <n54@gmx.com>
7659
7660 * sparc-nat.c (gdb_ptrace): New.
7661 * sparc-nat.c (sparc_fetch_inferior_registers)
7662 (sparc_store_inferior_registers) Remove obsolete comment.
7663 * sparc-nat.c (sparc_fetch_inferior_registers)
7664 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
7665 * sparc-nat.c (sparc_fetch_inferior_registers)
7666 (sparc_store_inferior_registers) Use gdb_ptrace.
7667
a225c9a8
KR
76682020-03-17 Kamil Rytarowski <n54@gmx.com>
7669
7670 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
7671 it to the ptrace call.
7672 * sh-nbsd-nat.c (store_registers): Likewise.
7673
98097623
KR
76742020-03-17 Kamil Rytarowski <n54@gmx.com>
7675
7676 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
7677 nbsd_nat_target instead of inf_ptrace_target.
7678 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
7679 nbsd_nat_target.
7680
9e38d619
KR
76812020-03-17 Kamil Rytarowski <n54@gmx.com>
7682
7683 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
7684
a2ecbe9f
KR
76852020-03-17 Kamil Rytarowski <n54@gmx.com>
7686
7687 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
7688 <sys/sysctl.h>.
7689 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
7690
58990295
TV
76912020-03-17 Tom de Vries <tdevries@suse.de>
7692
7693 PR gdb/23710
7694 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
7695 fields.
7696 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
7697 fields.
7698 (process_imported_unit_die): Skip import of c++ CUs.
7699
771dd3a8
TT
77002020-03-16 Tom Tromey <tom@tromey.com>
7701
7702 * p-valprint.c (pascal_object_print_value): Initialize
7703 base_value.
7704
817a7585
AK
77052020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
7706 Shahab Vahedi <shahab@synopsys.com>
7707
7708 * Makefile.in: Add arch/arc.o
7709 * configure.tgt: Likewise.
7710 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
7711 (_initialize_arc_tdep): Don't initialize old target descriptions.
aac66a4c 7712 (arc_read_description): New function to cache target descriptions.
817a7585
AK
7713 * arc-tdep.h (arc_read_description): Add proto type.
7714 * arch/arc.c: New file.
7715 * arch/arc.h: Likewise.
7716 * features/Makefile: Replace old target descriptions with new.
7717 * features/arc-arcompact.c: Remove.
7718 * features/arc-arcompact.xml: Likewise.
7719 * features/arc-v2.c: Likewise
7720 * features/arc-v2.xml: Likewise
7721 * features/arc/aux-arcompact.xml: New file.
7722 * features/arc/aux-v2.xml: Likewise.
7723 * features/arc/core-arcompact.xml: Likewise.
7724 * features/arc/core-v2.xml: Likewise.
7725 * features/arc/aux-arcompact.c: Generate.
7726 * features/arc/aux-v2.c: Likewise.
7727 * features/arc/core-arcompact.c: Likewise.
7728 * features/arc/core-v2.c: Likewise.
7729 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
7730
67430cd0
TT
77312020-03-16 Tom Tromey <tromey@adacore.com>
7732
7733 PR gdb/25663:
7734 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
7735 putting value into bcache.
7736
30efb6c7
SM
77372020-03-16 Simon Marchi <simon.marchi@efficios.com>
7738
7739 PR gdb/21500
7740 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
7741 to...
7742 (amd64_windows_init_abi_common): ... this. Don't set size of
7743 long type.
7744 (amd64_windows_init_abi): New function.
7745 (amd64_cygwin_init_abi): New function.
7746 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
7747 the Cygwin OS ABI.
7748 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
7749 comment.
7750
8db52437
SM
77512020-03-16 Simon Marchi <simon.marchi@efficios.com>
7752
7753 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
7754 * windows-tdep.c (CYGWIN_DLL_NAME): New.
7755 (pe_import_directory_entry): New struct type.
7756 (is_linked_with_cygwin_dll): New function.
7757 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
7758 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
7759 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
7760
5982a56a
SM
77612020-03-16 Simon Marchi <simon.marchi@efficios.com>
7762
7763 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
7764 i386_cygwin_core_osabi_sniffer.
7765
7a1998df
SM
77662020-03-16 Simon Marchi <simon.marchi@efficios.com>
7767
7768 * i386-cygwin-tdep.c: Rename to...
7769 * i386-windows-tdep.c: ... this.
7770 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
7771 i386-windows-tdep.c.
7772 * configure.tgt: Likewise.
7773
053205cc
SM
77742020-03-16 Simon Marchi <simon.marchi@efficios.com>
7775
7776 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
7777 * osabi.c (gdb_osabi_names): Add "Windows".
7778 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
7779 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
7780 (i386_cygwin_core_osabi_sniffer): New function, extracted from
7781 i386_cygwin_osabi_sniffer.
7782 (_initialize_i386_cygwin_tdep): Register OS ABI
7783 GDB_OSABI_WINDOWS for i386.
7784 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
7785 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
7786 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
7787 for x86-64.
7788 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
7789 when the target matches '*-*-mingw*'.
7790
fe4b2ee6
SM
77912020-03-16 Simon Marchi <simon.marchi@efficios.com>
7792
7793 * defs.h (enum gdb_osabi): Move to...
7794 * osabi.h (enum gdb_osabi): ... here.
7795 * gdbarch.sh: Include osabi.h in gdbarch.h.
7796 * gdbarch.h: Re-generate.
7797
cb9b645d
SM
77982020-03-16 Simon Marchi <simon.marchi@efficios.com>
7799
7800 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
7801 function.
7802 (_initialize_amd64_windows_tdep): Register osabi sniffer.
7803
3293bbaf
TT
78042020-03-14 Tom Tromey <tom@tromey.com>
7805
7806 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
7807 for C++.
7808 (c_type_print_modifier): Likewise. Add "language" parameter.
7809 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
7810 (c_type_print_base_1): Update.
7811 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
7812 constants.
7813 * type-stack.c (type_stack::insert): Handle tp_atomic and
7814 tp_restrict.
7815 (type_stack::follow_type_instance_flags): Likewise.
7816 (type_stack::follow_types): Likewise. Merge type-following code.
7817 * c-exp.y (RESTRICT, ATOMIC): New tokens.
7818 (space_identifier, cv_with_space_id)
7819 (const_or_volatile_or_space_identifier_noopt)
7820 (const_or_volatile_or_space_identifier): Remove.
7821 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
7822 rules.
7823 (ptr_operator, typebase): Update.
7824 (enum token_flag) <FLAG_C>: New constant.
7825 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
7826 "_Atomic".
7827 (lex_one_token): Handle FLAG_C.
7828
154151a6
KR
78292020-03-14 Kamil Rytarowski <n54@gmx.com>
7830
7831 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
7832 it to the ptrace call.
7833 * m68k-bsd-nat.c (store_registers): Likewise.
7834
bc107784
KR
78352020-03-14 Kamil Rytarowski <n54@gmx.com>
7836
7837 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
7838 gdb_byte *.
7839 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
7840 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
7841 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
7842
01a80117
KR
78432020-03-14 Kamil Rytarowski <n54@gmx.com>
7844
7845 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
7846 nbsd_nat_target instead of inf_ptrace_target.
7847 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
7848 nbsd_nat_target.
7849
f90280ca
KR
78502020-03-14 Kamil Rytarowski <n54@gmx.com>
7851
7852 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
7853 register_t.
7854
6def66f1
KR
78552020-03-14 Kamil Rytarowski <n54@gmx.com>
7856
7857 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
7858 it to the ptrace call.
7859 * alpha-bsd-nat.c (store_registers): Likewise.
7860
66eaca97
KR
78612020-03-14 Kamil Rytarowski <n54@gmx.com>
7862
7863 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
7864 includes.
7865 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
7866 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
7867 fill_fpregset): Likewise.
7868
4fed520b
KR
78692020-03-14 Kamil Rytarowski <n54@gmx.com>
7870
7871 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
7872 nbsd_nat_target instead of inf_ptrace_target.
7873 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
7874 nbsd_nat_target.
7875
2190cf06
KR
78762020-03-14 Kamil Rytarowski <n54@gmx.com>
7877
7878 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
7879 register_t.
7880
75c56d3d
KR
78812020-03-14 Kamil Rytarowski <n54@gmx.com>
7882
7883 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
7884 it to the ptrace call.
7885 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
7886 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
7887 * arm-nbsd-nat.c (store_register): Likewise.
7888 * arm-nbsd-nat.c (store_regs): Likewise.
7889 * arm-nbsd-nat.c (store_fp_register): Likewise.
7890 * arm-nbsd-nat.c (store_fp_regs): Likewise.
7891
6018d381
KR
78922020-03-14 Kamil Rytarowski <n54@gmx.com>
7893
7894 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
7895 nbsd_nat_target instead of inf_ptrace_target.
7896 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
7897 nbsd_nat_target.
7898
013f99f0
KR
78992020-03-14 Kamil Rytarowski <n54@gmx.com>
7900
7901 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
7902 it to the ptrace call.
7903 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
7904
12753073
KR
79052020-03-14 Kamil Rytarowski <n54@gmx.com>
7906
6227b330
KR
7907 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
7908 it to the ptrace call.
7909 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
7910
79112020-03-14 Kamil Rytarowski <n54@gmx.com>
7912
7913 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
7914 gdb_byte *.
12753073
KR
7915 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
7916
d5be5fa4
KR
79172020-03-14 Kamil Rytarowski <n54@gmx.com>
7918
7919 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
7920 instead of inf_ptrace_target.
7921 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
7922 nbsd_nat_target.
7923
8110f842
KR
79242020-03-14 Kamil Rytarowski <n54@gmx.com>
7925
7926 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
7927 register_t.
7928
52feded7
KR
79292020-03-14 Kamil Rytarowski <n54@gmx.com>
7930
7931 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
7932 register_t.
7933
25567eee
KR
79342020-03-14 Kamil Rytarowski <n54@gmx.com>
7935
7936 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
7937 register_t.
7938
426a9c18
TT
79392020-03-13 Tom Tromey <tom@tromey.com>
7940
7941 * value.h (val_print): Don't declare.
7942 * valprint.h (val_print_array_elements)
7943 (val_print_scalar_formatted, generic_val_print): Don't declare.
7944 * valprint.c (generic_val_print_array): Take a struct value.
7945 (generic_val_print_ptr, generic_val_print_memberptr)
7946 (generic_val_print_bool, generic_val_print_int)
7947 (generic_val_print_char, generic_val_print_complex)
7948 (generic_val_print): Remove.
7949 (generic_value_print): Update.
7950 (do_val_print): Remove unused parameters. Don't call
7951 la_val_print.
7952 (val_print): Remove.
7953 (common_val_print): Update. Don't call value_check_printable.
7954 (val_print_scalar_formatted, val_print_array_elements): Remove.
7955 * rust-lang.c (rust_val_print): Remove.
7956 (rust_language_defn): Update.
7957 * p-valprint.c (pascal_val_print): Remove.
7958 (pascal_value_print_inner): Update.
7959 (pascal_object_print_val_fields, pascal_object_print_val):
7960 Remove.
7961 (pascal_object_print_static_field): Update.
7962 * p-lang.h (pascal_val_print): Don't declare.
7963 * p-lang.c (pascal_language_defn): Update.
7964 * opencl-lang.c (opencl_language_defn): Update.
7965 * objc-lang.c (objc_language_defn): Update.
7966 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
7967 * m2-lang.h (m2_val_print): Don't declare.
7968 * m2-lang.c (m2_language_defn): Update.
7969 * language.h (struct language_defn) <la_val_print>: Remove.
7970 * language.c (unk_lang_value_print_inner): Rename. Change
7971 argument types.
7972 (unknown_language_defn, auto_language_defn): Update.
7973 * go-valprint.c (go_val_print): Remove.
7974 * go-lang.h (go_val_print): Don't declare.
7975 * go-lang.c (go_language_defn): Update.
7976 * f-valprint.c (f_val_print): Remove.
7977 * f-lang.h (f_value_print): Don't declare.
7978 * f-lang.c (f_language_defn): Update.
7979 * d-valprint.c (d_val_print): Remove.
7980 * d-lang.h (d_value_print): Don't declare.
7981 * d-lang.c (d_language_defn): Update.
7982 * cp-valprint.c (cp_print_value_fields)
7983 (cp_print_value_fields_rtti, cp_print_value): Remove.
7984 (cp_print_static_field): Update.
7985 * c-valprint.c (c_val_print_array, c_val_print_ptr)
7986 (c_val_print_struct, c_val_print_union, c_val_print_int)
7987 (c_val_print_memberptr, c_val_print): Remove.
7988 * c-lang.h (c_val_print_array, cp_print_value_fields)
7989 (cp_print_value_fields_rtti): Don't declare.
7990 * c-lang.c (c_language_defn, cplus_language_defn)
7991 (asm_language_defn, minimal_language_defn): Update.
7992 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
7993 (ada_val_print_enum): Take a struct value.
7994 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
7995 (ada_val_print): Remove.
7996 (ada_value_print_1): Update.
7997 (printable_val_type): Remove.
7998 * ada-lang.h (ada_val_print): Don't declare.
7999 * ada-lang.c (ada_language_defn): Update.
8000
42331a1e
TT
80012020-03-13 Tom Tromey <tom@tromey.com>
8002
8003 * valprint.c (do_val_print): Update.
8004 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
8005 a struct value.
8006 (value_to_value_object_no_release): Declare.
8007 * python/py-value.c (value_to_value_object_no_release): New
8008 function.
8009 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
8010 struct value.
8011 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
8012 function.
8013 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
8014 a struct value.
8015 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
8016 Declare.
8017 (gdbscm_apply_val_pretty_printer): Take a struct value.
8018 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
8019 value.
8020 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
8021 value.
8022 * extension-priv.h (struct extension_language_ops)
8023 <apply_val_pretty_printer>: Take a struct value.
8024 * cp-valprint.c (cp_print_value): Create a struct value.
8025 (cp_print_value): Update.
8026
3a916a97
TT
80272020-03-13 Tom Tromey <tom@tromey.com>
8028
8029 * ada-valprint.c (print_field_values): Call common_val_print.
8030
b59eac37
TT
80312020-03-13 Tom Tromey <tom@tromey.com>
8032
8033 * ada-valprint.c (val_print_packed_array_elements): Remove
8034 bitoffset and val parameters. Call common_val_print.
8035 (ada_val_print_string): Remove offset, address, and original_value
8036 parameters.
8037 (ada_val_print_array): Update.
8038 (ada_value_print_array): New function.
8039 (ada_value_print_1): Call it.
8040
03371129
TT
80412020-03-13 Tom Tromey <tom@tromey.com>
8042
8043 * ada-valprint.c (ada_value_print): Use common_val_print.
8044
2e088f8b
TT
80452020-03-13 Tom Tromey <tom@tromey.com>
8046
8047 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
8048
39ef85a8
TT
80492020-03-13 Tom Tromey <tom@tromey.com>
8050
8051 * ada-valprint.c (ada_value_print_num): New function.
8052 (ada_value_print_1): Use it.
8053
b9fa6e07
TT
80542020-03-13 Tom Tromey <tom@tromey.com>
8055
8056 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
8057
416595d6
TT
80582020-03-13 Tom Tromey <tom@tromey.com>
8059
8060 * ada-valprint.c (ada_value_print_ptr): New function.
8061 (ada_value_print_1): Use it.
8062
5b5e15ec
TT
80632020-03-13 Tom Tromey <tom@tromey.com>
8064
8065 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
8066 call common_val_print.
8067 (ada_val_print_1): Update.
8068 (ada_value_print_1): New function.
8069 (ada_value_print_inner): Rewrite.
8070
fbf54e75
TT
80712020-03-13 Tom Tromey <tom@tromey.com>
8072
8073 * cp-valprint.c (cp_print_value_fields): Update.
8074 (cp_print_value): New function.
8075
64b653ca
TT
80762020-03-13 Tom Tromey <tom@tromey.com>
8077
8078 * m2-valprint.c (m2_value_print_inner): Use
8079 cp_print_value_fields.
8080 * cp-valprint.c (cp_print_value_fields): New function.
8081 * c-valprint.c (c_value_print_struct): New function.
8082 (c_value_print_inner): Use c_value_print_struct.
8083 * c-lang.h (cp_print_value_fields): Declare.
8084
6999f067
TT
80852020-03-13 Tom Tromey <tom@tromey.com>
8086
8087 * c-valprint.c (c_value_print_array): New function.
8088 (c_value_print_inner): Use it.
8089
ce80b8bd
TT
80902020-03-13 Tom Tromey <tom@tromey.com>
8091
8092 * c-valprint.c (c_value_print_memberptr): New function.
8093 (c_value_print_inner): Use it.
8094
2faac269
TT
80952020-03-13 Tom Tromey <tom@tromey.com>
8096
8097 * c-valprint.c (c_value_print_int): New function.
8098 (c_value_print_inner): Use it.
8099
da3e2c29
TT
81002020-03-13 Tom Tromey <tom@tromey.com>
8101
8102 * c-valprint.c (c_value_print_ptr): New function.
8103 (c_value_print_inner): Use it.
8104
50836231
TT
81052020-03-13 Tom Tromey <tom@tromey.com>
8106
8107 * c-valprint.c (c_value_print_inner): Rewrite.
8108
4f412b6e
TT
81092020-03-13 Tom Tromey <tom@tromey.com>
8110
8111 * valprint.c (generic_value_print_complex): New function.
8112 (generic_value_print): Use it.
8113
f5354008
TT
81142020-03-13 Tom Tromey <tom@tromey.com>
8115
8116 * valprint.c (generic_val_print_float): Don't call
8117 val_print_scalar_formatted.
8118 (generic_val_print, generic_value_print): Update.
8119
3eec3b05
TT
81202020-03-13 Tom Tromey <tom@tromey.com>
8121
8122 * valprint.c (generic_value_print_char): New function
8123 (generic_value_print): Use it.
8124
fdddfccb
TT
81252020-03-13 Tom Tromey <tom@tromey.com>
8126
8127 * valprint.c (generic_value_print_int): New function.
8128 (generic_value_print): Use it.
8129
6dde7521
TT
81302020-03-13 Tom Tromey <tom@tromey.com>
8131
8132 * valprint.c (generic_value_print_bool): New function.
8133 (generic_value_print): Use it.
8134
4112d2e6
TT
81352020-03-13 Tom Tromey <tom@tromey.com>
8136
8137 * valprint.c (generic_val_print_func): Simplify.
8138 (generic_val_print, generic_value_print): Update.
8139
65786af6
TT
81402020-03-13 Tom Tromey <tom@tromey.com>
8141
8142 * valprint.c (generic_val_print_flags): Remove.
8143 (generic_val_print, generic_value_print): Update.
8144 (val_print_type_code_flags): Add original_value parameter.
8145
40f3ce18
TT
81462020-03-13 Tom Tromey <tom@tromey.com>
8147
8148 * valprint.c (generic_val_print): Update.
8149 (generic_value_print): Update.
8150 * valprint.c (generic_val_print_enum): Don't call
8151 val_print_scalar_formatted.
8152
2a5b130b
TT
81532020-03-13 Tom Tromey <tom@tromey.com>
8154
8155 * valprint.c (generic_value_print): Call generic_value_print_ptr.
8156 * valprint.c (generic_value_print_ptr): New function.
8157
abc66ce9
TT
81582020-03-13 Tom Tromey <tom@tromey.com>
8159
8160 * valprint.c (generic_value_print): Rewrite.
8161
07a32858
TT
81622020-03-13 Tom Tromey <tom@tromey.com>
8163
8164 * p-valprint.c (pascal_object_print_value_fields)
8165 (pascal_object_print_value): New functions.
8166
64d64d3a
TT
81672020-03-13 Tom Tromey <tom@tromey.com>
8168
8169 * p-valprint.c (pascal_value_print_inner): Rewrite.
8170
6a95a1f5
TT
81712020-03-13 Tom Tromey <tom@tromey.com>
8172
8173 * f-valprint.c (f_value_print_innner): Rewrite.
8174
59fcdac6
TT
81752020-03-13 Tom Tromey <tom@tromey.com>
8176
8177 * m2-valprint.c (m2_print_unbounded_array): New overload.
8178 (m2_print_unbounded_array): Update.
8179 (m2_print_array_contents): Take a struct value.
8180 (m2_value_print_inner): Rewrite.
8181
d133c3e1
TT
81822020-03-13 Tom Tromey <tom@tromey.com>
8183
8184 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
8185 (d_value_print_inner): New function.
8186 * d-lang.h (d_value_print_inner): Declare.
8187 * d-lang.c (d_language_defn): Use d_value_print_inner.
8188
23b0f06b
TT
81892020-03-13 Tom Tromey <tom@tromey.com>
8190
8191 * go-valprint.c (go_value_print_inner): New function.
8192 * go-lang.h (go_value_print_inner): Declare.
8193 * go-lang.c (go_language_defn): Use go_value_print_inner.
8194
5f56f7cb
TT
81952020-03-13 Tom Tromey <tom@tromey.com>
8196
8197 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
8198 API.
8199 (rust_val_print): Rewrite.
8200 (rust_value_print_inner): New function, from rust_val_print.
8201 (rust_language_defn): Use rust_value_print_inner.
8202
26792ee0
TT
82032020-03-13 Tom Tromey <tom@tromey.com>
8204
8205 * ada-valprint.c (ada_value_print_inner): New function.
8206 * ada-lang.h (ada_value_print_inner): Declare.
8207 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
8208
24051bbe
TT
82092020-03-13 Tom Tromey <tom@tromey.com>
8210
8211 * f-valprint.c (f_value_print_innner): New function.
8212 * f-lang.h (f_value_print_innner): Declare.
8213 * f-lang.c (f_language_defn): Use f_value_print_innner.
8214
c0941be6
TT
82152020-03-13 Tom Tromey <tom@tromey.com>
8216
8217 * p-valprint.c (pascal_value_print_inner): New function.
8218 * p-lang.h (pascal_value_print_inner): Declare.
8219 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
8220
62c4663d
TT
82212020-03-13 Tom Tromey <tom@tromey.com>
8222
8223 * m2-valprint.c (m2_value_print_inner): New function.
8224 * m2-lang.h (m2_value_print_inner): Declare.
8225 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
8226
62182190
TT
82272020-03-13 Tom Tromey <tom@tromey.com>
8228
8229 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
8230 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
8231 * c-valprint.c (c_value_print_inner): New function.
8232 * c-lang.h (c_value_print_inner): Declare.
8233 * c-lang.c (c_language_defn, cplus_language_defn)
8234 (asm_language_defn, minimal_language_defn): Use
8235 c_value_print_inner.
8236
1e592a8a
TT
82372020-03-13 Tom Tromey <tom@tromey.com>
8238
8239 * p-valprint.c (pascal_object_print_value_fields): Now static.
8240 * p-lang.h (pascal_object_print_value_fields): Don't declare.
8241
7fe471e9
TT
82422020-03-13 Tom Tromey <tom@tromey.com>
8243
8244 * c-valprint.c (c_val_print_array): Simplify.
8245
d121c6ce
TT
82462020-03-13 Tom Tromey <tom@tromey.com>
8247
8248 * valprint.c (value_print_array_elements): New function.
8249 * valprint.h (value_print_array_elements): Declare.
8250
4dba70ee
TT
82512020-03-13 Tom Tromey <tom@tromey.com>
8252
8253 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
8254 * mips-tdep.c (mips_print_register): Use
8255 value_print_scalar_formatted.
8256
4f9ae810
TT
82572020-03-13 Tom Tromey <tom@tromey.com>
8258
8259 * valprint.h (value_print_scalar_formatted): Declare.
8260 * valprint.c (value_print_scalar_formatted): New function.
8261
156bfec9
TT
82622020-03-13 Tom Tromey <tom@tromey.com>
8263
8264 * valprint.h (generic_value_print): Declare.
8265 * valprint.c (generic_value_print): New function.
8266
2b4e573d
TT
82672020-03-13 Tom Tromey <tom@tromey.com>
8268
8269 * valprint.c (do_val_print): Call la_value_print_inner, if
8270 available.
8271 * rust-lang.c (rust_language_defn): Update.
8272 * p-lang.c (pascal_language_defn): Update.
8273 * opencl-lang.c (opencl_language_defn): Update.
8274 * objc-lang.c (objc_language_defn): Update.
8275 * m2-lang.c (m2_language_defn): Update.
8276 * language.h (struct language_defn) <la_value_print_inner>: New
8277 member.
8278 * language.c (unknown_language_defn, auto_language_defn): Update.
8279 * go-lang.c (go_language_defn): Update.
8280 * f-lang.c (f_language_defn): Update.
8281 * d-lang.c (d_language_defn): Update.
8282 * c-lang.c (c_language_defn, cplus_language_defn)
8283 (asm_language_defn, minimal_language_defn): Update.
8284 * ada-lang.c (ada_language_defn): Update.
8285
a1f6a07c
TT
82862020-03-13 Tom Tromey <tom@tromey.com>
8287
8288 * c-valprint.c (c_value_print): Use common_val_print.
8289
410cf315
TT
82902020-03-13 Tom Tromey <tom@tromey.com>
8291
8292 * cp-valprint.c (cp_print_static_field): Use common_val_print.
8293
72a45c93
TT
82942020-03-13 Tom Tromey <tom@tromey.com>
8295
8296 * f-valprint.c (f77_print_array_1, f_val_print): Use
8297 common_val_print.
8298
040f66bd
TT
82992020-03-13 Tom Tromey <tom@tromey.com>
8300
8301 * riscv-tdep.c (riscv_print_one_register_info): Use
8302 common_val_print.
8303
a6e05a6c
TT
83042020-03-13 Tom Tromey <tom@tromey.com>
8305
8306 * mi/mi-main.c (output_register): Use common_val_print.
8307
3444c526
TT
83082020-03-13 Tom Tromey <tom@tromey.com>
8309
8310 * infcmd.c (default_print_one_register_info): Use
8311 common_val_print.
8312
c2a44efe
TT
83132020-03-13 Tom Tromey <tom@tromey.com>
8314
8315 * valprint.h (common_val_print_checked): Declare.
8316 * valprint.c (common_val_print_checked): New function.
8317 * stack.c (print_frame_arg): Use common_val_print_checked.
8318
b0c26e99
TT
83192020-03-13 Tom Tromey <tom@tromey.com>
8320
8321 * valprint.c (do_val_print): New function, from val_print.
8322 (val_print): Use do_val_print.
8323 (common_val_print): Use do_val_print.
8324
ce3acbe9
TT
83252020-03-13 Tom Tromey <tom@tromey.com>
8326
8327 * valprint.c (value_print): Use scoped_value_mark.
8328
96c7f873
TV
83292020-03-13 Tom de Vries <tdevries@suse.de>
8330
8331 PR symtab/25646
8332 * psymtab.c (partial_symtab::partial_symtab): Don't set
8333 globals_offset and statics_offset. Push element onto
8334 current_global_psymbols and current_static_psymbols stacks.
8335 (concat): New function.
8336 (end_psymtab_common): Set globals_offset and statics_offset. Pop
8337 element from current_global_psymbols and current_static_psymbols
8338 stacks. Concat popped elements to global_psymbols and
8339 static_symbols.
8340 (add_psymbol_to_list): Use current_global_psymbols and
8341 current_static_psymbols stacks.
8342 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
8343 current_static_psymbols fields.
8344
6ba0a321
CB
83452020-03-12 Christian Biesinger <cbiesinger@google.com>
8346
8347 * corelow.c (sniff_core_bfd): Remove.
8348 (class core_target) <m_core_vec>: Remove.
8349 (core_target::core_target): Update.
8350 (core_file_fns): Remove.
8351 (deprecated_add_core_fns): Remove.
8352 (default_core_sniffer): Remove.
8353 (sniff_core_bfd): Remove.
8354 (default_check_format): Remove.
8355 (gdb_check_format): Remove.
8356 (core_target_open): Update.
8357 (core_target::get_core_register_section): Update.
8358 (get_core_registers_cb): Update.
8359 (core_target::fetch_registers): Update.
8360 * gdbcore.h (struct core_fns): Remove.
8361 (deprecated_add_core_fns): Remove.
8362 (default_core_sniffer): Remove.
8363 (default_check_format): Remove.
8364
227031b2
TT
83652020-03-12 Tom Tromey <tom@tromey.com>
8366
8367 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
8368 CORE_ADDR.
8369 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
8370
53807e9f
TT
83712020-03-12 Tom Tromey <tom@tromey.com>
8372
8373 * remote.c (remote_target::download_tracepoint)
8374 (remote_target::enable_tracepoint)
8375 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
8376 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
8377 sprintf_vma.
8378
64f25102
TT
83792020-03-12 Tom Tromey <tom@tromey.com>
8380
8381 * symfile-mem.c: Update CORE_ADDR size assert.
8382
272cd5a3
SM
83832020-03-12 Simon Marchi <simon.marchi@efficios.com>
8384
8385 * selftest.m4: Move to gdbsupport/.
8386 * acinclude.m4: Update path to selftest.m4.
8387
74cd3f9d
SM
83882020-03-12 Simon Marchi <simon.marchi@efficios.com>
8389
8390 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
8391 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
8392 gdbarch-selfselftests.c and selftest-arch.c.
8393 (SUBDIR_UNITTESTS_OBS): Rename to...
8394 (SELFTESTS_OBS): ... this.
8395 (COMMON_SFILES): Remove disasm-selftests.c and
8396 gdbarch-selftests.c.
8397 * configure.ac: Don't add selftest-arch.{c,o} to
8398 CONFIG_{SRCS,OBS}.
8399 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
8400 preprocessor conditions.
8401
db6878ac
SM
84022020-03-12 Simon Marchi <simon.marchi@efficios.com>
8403
8404 * configure.ac: Don't source bfd/development.sh.
8405 * selftest.m4: Modify comment.
8406 * configure: Re-generate.
8407
4d696a5c
SM
84082020-03-12 Simon Marchi <simon.marchi@efficios.com>
8409
8410 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
8411 not "true" or "false".
8412 * configure: Re-generate.
8413
8dd8e1c7
CB
84142020-03-12 Christian Biesinger <cbiesinger@google.com>
8415
8416 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
8417 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
8418 renamed to arm_nbsd_supply_gregset.
8419 (fetch_register): Update to call arm_nbsd_supply_gregset.
8420 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
8421 (arm_netbsd_nat_target::fetch_registers): Update.
8422 (fetch_elfcore_registers): Removed.
8423 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
8424 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
8425 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
8426 not require NetBSD system headers.
8427 (arm_nbsd_regset): New struct.
8428 (arm_nbsd_iterate_over_regset_sections): New function.
8429 (arm_netbsd_init_abi_common): Updated to call
8430 set_gdbarch_iterate_over_regset_sections.
8431 * arm-nbsd-tdep.h: New file.
8432
dd69bf7a
KB
84332020-03-11 Kevin Buettner <kevinb@redhat.com>
8434
8435 * symtab.c (find_pc_sect_line): Add check which prevents infinite
8436 recursion.
8437
a0761e34
SM
84382020-03-11 Simon Marchi <simon.marchi@efficios.com>
8439
8440 * configure: Re-generate.
8441
e7a82140
TT
84422020-03-11 Tom Tromey <tromey@adacore.com>
8443
8444 * ada-typeprint.c (print_choices): Fix comment.
8445
dcc050c8
AB
84462020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
8447
8448 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
8449 previous item in the list, when the list has no items.
8450
1c33af77
TV
84512020-03-11 Tom de Vries <tdevries@suse.de>
8452
8453 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
8454 PROP_LOCLIST handling code.
8455
8c95582d
AB
84562020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
8457
8458 * buildsym-legacy.c (record_line): Pass extra parameter to
8459 record_line.
8460 * buildsym.c (buildsym_compunit::record_line): Take an extra
8461 parameter, reduce duplication in the line table, and record the
8462 is_stmt flag in the line table.
8463 * buildsym.h (buildsym_compunit::record_line): Add extra
8464 parameter.
8465 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
8466 non-statement lines.
8467 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
8468 this to the symtab builder.
8469 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
8470 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
8471 through to dwarf_record_line_1.
8472 * infrun.c (process_event_stop_test): When stepping, don't stop at
8473 a non-statement instruction, and only refresh the step info when
8474 we land in the middle of a line's range. Also add an extra
8475 comment.
8476 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
8477 field.
8478 * record-btrace.c (btrace_find_line_range): Only record lines
8479 marked as is-statement.
8480 * stack.c (frame_show_address): Show the frame address if we are
8481 in a non-statement sal.
8482 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
8483 (maintenance_print_one_line_table): Print a header for the is_stmt
8484 column, and include is_stmt information in the output.
8485 * symtab.c (find_pc_sect_line): Find lines marked as statements in
8486 preference to non-statements.
8487 (find_pcs_for_symtab_line): Prefer is-statement entries.
8488 (find_line_common): Likewise.
8489 * symtab.h (struct linetable_entry): Add is_stmt field.
8490 (struct symtab_and_line): Likewise.
8491 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
8492 arranging the line table.
8493
e4003a34
TV
84942020-03-07 Tom de Vries <tdevries@suse.de>
8495
8496 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
8497 DIE.
8498
e8932576
TT
84992020-03-07 Tom Tromey <tom@tromey.com>
8500
8501 * valops.c (value_literal_complex): Remove obsolete comment.
8502 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
8503 comment.
8504
29734269
SM
85052020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
8506
8507 * infrun.h: Forward-declare thread_info.
8508 (set_step_info): Add thread_info parameter, add doc.
8509 * infrun.c (set_step_info): Add thread_info parameter, move doc
8510 to header.
8511 * infrun.c (process_event_stop_test): Pass thread to
8512 set_step_info call.
8513 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
8514 set_step_info.
8515 (prepare_one_step): Add thread_info parameter, pass it to
8516 set_step_frame and prepare_one_step (recursive) call.
8517 (step_1): Pass thread to prepare_one_step call.
8518 (step_command_fsm::should_stop): Pass thread to
8519 prepare_one_step.
8520 (until_next_fsm): Pass thread to set_step_frame call.
8521 (finish_command): Pass thread to set_step_info call.
8522
b7d64b29
HD
85232020-03-06 Hannes Domani <ssbssa@yahoo.de>
8524
8525 * windows-tdep.c (windows_solib_create_inferior_hook):
8526 Check if inferior is running.
8527
09f2921c
TV
85282020-03-06 Tom de Vries <tdevries@suse.de>
8529
8530 * NEWS: Fix "the the".
8531 * ctfread.c: Same.
8532
fd760e79
TV
85332020-03-06 Tom de Vries <tdevries@suse.de>
8534
8535 * psymtab.c (psymtab_to_symtab): Don't print "done.".
8536
20ea4a60
AB
85372020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
8538
8539 * .dir-locals.el: Add a comment referencing the other copies of
8540 this file.
8541
0afbabf0
JB
85422020-03-05 John Baldwin <jhb@FreeBSD.org>
8543
8544 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
8545 psargs.
8546
842806cb
TBA
85472020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8548
8549 * .gitattributes: New file.
8550
be1e3d3e
TT
85512020-03-04 Tom Tromey <tom@tromey.com>
8552
8553 * symmisc.c (print_symbol_bcache_statistics)
8554 (print_objfile_statistics): Update.
8555 * symfile.c (allocate_symtab): Use intern.
8556 * psymtab.c (partial_symtab::partial_symtab): Use intern.
8557 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
8558 macro_cache>: Remove.
8559 <string_cache>: New member.
8560 (struct objfile) <intern>: New methods.
8561 * elfread.c (elf_symtab_read): Use intern.
8562 * dwarf2/read.c (fixup_go_packaging): Intern package name.
8563 (dwarf2_compute_name, dwarf2_physname)
8564 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
8565 names.
8566 (guess_partial_die_structure_name): Update.
8567 (partial_die_info::fixup): Intern name.
8568 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
8569 name.
8570 (dwarf2_name): Intern name. Update.
8571 * buildsym.c (buildsym_compunit::get_macro_table): Use
8572 string_cache.
8573
4e7625fd
TT
85742020-03-04 Tom Tromey <tom@tromey.com>
8575
8576 * jit.c (bfd_open_from_target_memory): Make "target" const.
8577 * corefile.c (gnutarget): Now const.
8578 * gdbcore.h (gnutarget): Now const.
8579
46f9f931
HD
85802020-03-04 Hannes Domani <ssbssa@yahoo.de>
8581
8582 * NEWS: Mention support for WOW64 processes.
8583 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
8584 (amd64_windows_segment_register_p): Remove static.
8585 (_initialize_amd64_windows_nat): Update.
8586 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
8587 * i386-windows-nat.c (context_offset): Update.
8588 (i386_mappings): Rename and remove static.
8589 (i386_windows_segment_register_p): Remove static.
8590 (_initialize_i386_windows_nat): Update.
8591 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
8592 (STATUS_WX86_SINGLE_STEP): New macro.
8593 (EnumProcessModulesEx): New macro.
8594 (Wow64SuspendThread): New macro.
8595 (Wow64GetThreadContext): New macro.
8596 (Wow64SetThreadContext): New macro.
8597 (Wow64GetThreadSelectorEntry): New macro.
8598 (windows_set_context_register_offsets): Add static.
8599 (windows_set_segment_register_p): Likewise.
8600 (windows_add_thread): Adapt for WOW64 processes.
8601 (windows_fetch_one_register): Likewise.
8602 (windows_nat_target::fetch_registers): Likewise.
8603 (windows_store_one_register): Likewise.
8604 (display_selector): Likewise.
8605 (display_selectors): Likewise.
8606 (handle_exception): Likewise.
8607 (windows_continue): Likewise.
8608 (windows_nat_target::resume): Likewise.
8609 (windows_add_all_dlls): Likewise.
8610 (do_initial_windows_stuff): Likewise.
8611 (windows_nat_target::attach): Likewise.
8612 (windows_get_exec_module_filename): Likewise.
8613 (windows_nat_target::create_inferior): Likewise.
8614 (windows_xfer_siginfo): Likewise.
8615 (_initialize_loadable): Initialize Wow64SuspendThread,
8616 Wow64GetThreadContext, Wow64SetThreadContext,
8617 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
8618 * windows-nat.h (windows_set_context_register_offsets):
8619 Remove declaration.
8620 (windows_set_segment_register_p): Likewise.
8621 (i386_windows_segment_register_p): Add declaration.
8622 (amd64_windows_segment_register_p): Likewise.
8623
440cf44e
LM
86242020-03-04 Luis Machado <luis.machado@linaro.org>
8625
8626 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
8627 in "info registers" for AArch64/ARM.
8628
8629 The change caused "info registers" to not print GPR's.
8630
8631 gdb/ChangeLog:
8632
8633 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
8634
8635 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
8636 when reg->group is empty and reggroup is not.
8637
1009d92f
TT
86382020-03-03 Tom Tromey <tromey@adacore.com>
8639
8640 * dwarf2/frame.c (struct dwarf2_frame_cache)
8641 <checked_tailcall_bottom, entry_cfa_sp_offset,
8642 entry_cfa_sp_offset_p>: Remove members.
8643 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
8644 (dwarf2_frame_prev_register): Don't call
8645 dwarf2_tailcall_sniffer_first.
8646 (dwarf2_append_unwinders): Don't append tailcall unwinder.
8647 * frame-unwind.c (add_unwinder): New fuction.
8648 (frame_unwind_init): Use it. Add tailcall unwinder.
8649
5e5d66b6
AB
86502020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
8651 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
8652
8653 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
8654 value should be printed as true.
8655
584cf46d
HD
86562020-03-03 Hannes Domani <ssbssa@yahoo.de>
8657
8658 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
8659 (windows_init_abi): Set and use windows_so_ops.
8660
7b973adc
SDJ
86612020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
8662
8663 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
8664 when verifying if dealing with a convenience variable.
8665
bb7b70ab
LM
86662020-03-03 Luis Machado <luis.machado@linaro.org>
8667
8668 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
8669
9822cb57
SM
86702020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
8671
8672 * infrun.c (gdbarch_supports_displaced_stepping): New.
8673 (use_displaced_stepping): Break up conditions in smaller pieces.
8674 Use gdbarch_supports_displaced_stepping.
8675 (displaced_step_prepare_throw): Use
8676 gdbarch_supports_displaced_stepping.
8677
63e163f2
AB
86782020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
8679
8680 * NEWS: Mention new behaviour of the history filename.
8681 * top.c (write_history_p): Add comment.
8682 (show_write_history_p): Add header comment, give a different
8683 message when history writing is on, but the history filename is
8684 empty.
8685 (history_filename): Add comment.
8686 (history_filename_empty): New function.
8687 (show_history_filename): Add header comment, give a different
8688 message when the filename is empty.
8689 (init_history): Compare history_filename against nullptr, and only
8690 read history if the filename is not empty.
8691 (set_history_filename): Add header comment, and only make
8692 non-empty filenames absolute.
8693 (init_main): Make the filename argument to 'set history filename'
8694 optional.
8695
81b86b97
CB
86962020-03-02 Christian Biesinger <cbiesinger@google.com>
8697
8698 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
8699 (arm_supply_vfpregset): ...this, and update to use VFP registers.
8700 (fetch_fp_register): Update.
8701 (fetch_fp_regs): Update.
8702 (store_fp_register): Update.
8703 (store_fp_regs): Update.
8704 (arm_netbsd_nat_target::read_description): New function.
8705 (fetch_elfcore_registers): Update.
8706
24ed6739
AB
87072020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
8708
8709 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
8710 general_thread if the stop reply is missing a thread-id.
8711 (remote_target::process_stop_reply): Use the first non-exited
8712 thread if the target didn't pass a thread-id.
8713 * infrun.c (do_target_wait): Move call to
8714 switch_to_inferior_no_thread to ....
8715 (do_target_wait_1): ... here.
8716
a84bb2a0
JT
87172020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
8718
8719 * debuginfod-support.c: Include defs.h first.
8720
658dadf0
TV
87212020-02-28 Tom de Vries <tdevries@suse.de>
8722
8723 * symfile.c (set_initial_language): Use default language for lookup.
8724
4ebe4877
SM
87252020-02-28 Simon Marchi <simon.marchi@efficios.com>
8726
8727 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
8728 reader variable, pass `this` to read_cutu_die_from_dwo.
8729
e5da1139
AM
87302020-02-27 Aaron Merey <amerey@redhat.com>
8731
8732 * source.c (open_source_file): Check for nullptr when computing
8733 srcpath.
8734
317f7127
TT
87352020-02-27 Tom Tromey <tromey@adacore.com>
8736
8737 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
8738 member.
8739 (dwarf2_add_field): Don't update nfields.
8740 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
8741
3104d9ee
AB
87422020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8743
8744 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
8745 abs.
8746
b83470bf
TT
87472020-02-26 Tom Tromey <tom@tromey.com>
8748
8749 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
8750 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
8751 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
8752 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
8753 per_cu_data.
8754
edfe0a0c
TT
87552020-02-26 Tom Tromey <tom@tromey.com>
8756
8757 * dwarf2/index-write.c (psym_index_map): Change type.
8758 (add_address_entry_worker, write_one_signatured_type)
8759 (recursively_count_psymbols, recursively_write_psymbols)
8760 (class debug_names, psyms_seen_size, write_gdbindex)
8761 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
8762
0d79cdc4
AM
87632020-02-26 Aaron Merey <amerey@redhat.com>
8764
8765 * Makefile.in: Handle optional debuginfod support.
8766 * NEWS: Update.
8767 * README: Add --with-debuginfod summary.
8768 * config.in: Regenerate.
8769 * configure: Regenerate.
8770 * configure.ac: Handle optional debuginfod support.
8771 * debuginfod-support.c: debuginfod helper functions.
8772 * debuginfod-support.h: Ditto.
8773 * doc/gdb.texinfo: Add --with-debuginfod to configure options
8774 summary.
8775 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
8776 when a dwz file cannot be found.
8777 * elfread.c (elf_symfile_read): Query debuginfod servers when a
8778 debuginfo file cannot be found.
8779 * source.c (open_source_file): Query debuginfod servers when a
8780 source file cannot be found.
8781 * top.c (print_gdb_configuration): Include
8782 --{with,without}-debuginfod in the output.
8783
b65ce565
JG
87842020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
8785
8786 * thread.c (thr_try_catch_cmd): Print thread name.
8787
d4c9a4f8
SM
87882020-02-26 Simon Marchi <simon.marchi@efficios.com>
8789
8790 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
8791 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
8792 dwarf2_fetch_die_type_sect_off): Move to...
8793 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
8794 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
8795 dwarf2_fetch_die_type_sect_off): ... here.
8796 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
8797 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
8798 dwarf2_fetch_die_type_sect_off): Move doc to header file.
8799
0dce4280
TV
88002020-02-26 Tom de Vries <tdevries@suse.de>
8801
8802 PR gdb/25603
8803 * symfile.c (set_initial_language): Exit-early if
8804 language_mode == language_mode_manual.
8805
450a1bfc
SM
88062020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
8807
8808 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
8809 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
8810 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
8811
9e80cfa1
AB
88122020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
8813
8814 * gdbtypes.c (create_array_type_with_stride): Handle negative
8815 array strides.
8816 * valarith.c (value_subscripted_rvalue): Likewise.
8817
09624f1f
LM
88182020-02-25 Luis Machado <luis.machado@linaro.org>
8819
8820 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
8821
8cb5117c
SM
88222020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
8823
8824 * loc.h (dwarf2_get_die_type): Move to...
8825 * read.h (dwarf2_get_die_type): ... here.
8826 * read.c (dwarf2_get_die_type): Move doc to header.
8827
c325c44e
JB
88282020-02-25 Joel Brobecker <brobecker@adacore.com>
8829
8830 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
8831 'gnulib/Makefile.in' to the list.
8832
4ac93832
TT
88332020-02-24 Tom Tromey <tom@tromey.com>
8834
8835 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
8836 Remove.
8837 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
8838 XOBNEWVEC.
8839
197400e8
TT
88402020-02-24 Tom Tromey <tom@tromey.com>
8841
8842 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
8843 New method.
8844 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
8845 (dw2_do_instantiate_symtab, dw2_get_file_names)
8846 (build_type_psymtab_dependencies, load_full_type_unit): Update.
8847
76935768
TT
88482020-02-24 Tom Tromey <tom@tromey.com>
8849
8850 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
8851 make_scoped_restore.
8852 (dwarf2_psymtab::read_symtab): Don't clear
8853 reading_partial_symbols.
8854
a88ef40d
TV
88552020-02-24 Tom de Vries <tdevries@suse.de>
8856
8857 PR gdb/25592
8858 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
8859
c9af6521
TV
88602020-02-24 Tom de Vries <tdevries@suse.de>
8861
8862 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
8863 commands layout next/prev/regs.
8864
5707a07a
TT
88652020-02-22 Tom Tromey <tom@tromey.com>
8866
8867 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
8868 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
8869
3b0fb49e
TT
88702020-02-22 Tom Tromey <tom@tromey.com>
8871
8872 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
8873
283be8bf
TT
88742020-02-22 Tom Tromey <tom@tromey.com>
8875
8876 * tui/tui-win.c (_initialize_tui_win): Add usage text.
8877 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
8878 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
8879 * tui/tui.c (_initialize_tui): Add usage text.
8880
ca793b96
TT
88812020-02-22 Tom Tromey <tom@tromey.com>
8882
8883 * tui/tui-win.c (tui_set_focus_command)
8884 (tui_set_win_height_command): Use error_no_arg.
8885 (_initialize_tui_win): Update help text.
8886 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
8887
432b5c40
TT
88882020-02-22 Tom Tromey <tom@tromey.com>
8889
8890 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
8891 * tui/tui-disasm.h (struct tui_disasm_window)
8892 <display_start_addr>: Declare.
8893 * tui/tui-source.h (struct tui_source_window)
8894 <display_start_addr>: Declare.
8895 * tui/tui-winsource.h (struct tui_source_window_base)
8896 <show_source_line, display_start_addr>: New methods.
8897 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
8898 Rename and move to protected section.
8899 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
8900 (tui_source_window_base::do_erase_source_content): Update.
8901 (tui_source_window_base::show_source_line): Now a method.
8902 (tui_source_window_base::show_source_content)
8903 (tui_source_window_base::tui_source_window_base)
8904 (tui_source_window_base::rerender)
8905 (tui_source_window_base::refill)
8906 (tui_source_window_base::do_scroll_horizontal)
8907 (tui_source_window_base::set_is_exec_point_at)
8908 (tui_source_window_base::update_breakpoint_info)
8909 (tui_source_window_base::update_exec_info): Update.
8910 * tui/tui-source.c (tui_source_window::set_contents)
8911 (tui_source_window::showing_source_p)
8912 (tui_source_window::do_scroll_vertical)
8913 (tui_source_window::location_matches_p)
8914 (tui_source_window::line_is_displayed): Update.
8915 (tui_source_window::display_start_addr): New method.
8916 * tui/tui-disasm.c (tui_disasm_window::set_contents)
8917 (tui_disasm_window::do_scroll_vertical)
8918 (tui_disasm_window::location_matches_p): Update.
8919 (tui_disasm_window::display_start_addr): New method.
8920
01b1af32
TT
89212020-02-22 Tom Tromey <tom@tromey.com>
8922
8923 * NEWS: Add entry for gdb.register_window_type.
8924 * tui/tui-layout.h (window_factory): New typedef.
8925 (tui_register_window): Declare.
8926 * tui/tui-layout.c (saved_tui_windows): New global.
8927 (tui_apply_current_layout): Use it.
8928 (tui_register_window): New function.
8929 * python/python.c (do_start_initialization): Call
8930 gdbpy_initialize_tui.
8931 (python_GdbMethods): Add "register_window_type" function.
8932 * python/python-internal.h (gdbpy_register_tui_window)
8933 (gdbpy_initialize_tui): Declare.
8934 * python/py-tui.c: New file.
8935 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
8936
fc96d20b
TT
89372020-02-22 Tom Tromey <tom@tromey.com>
8938
8939 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
8940
935c78c0
TT
89412020-02-22 Tom Tromey <tom@tromey.com>
8942
8943 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
8944 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
8945 * tui/tui-data.c (tui_set_win_with_focus): Remove.
8946 (tui_set_win_focus_to): Move from tui-win.c.
8947
0240c8f1
TT
89482020-02-22 Tom Tromey <tom@tromey.com>
8949
8950 * tui/tui-layout.c (make_standard_window, get_locator_window): New
8951 functions.
8952 (known_window_types): New global.
8953 (tui_get_window_by_name): Reimplement.
8954 (initialize_known_windows): New function.
8955 (validate_window_name): Rewrite.
8956 (_initialize_tui_layout): Call initialize_known_windows.
8957
fdb01f0c
TT
89582020-02-22 Tom Tromey <tom@tromey.com>
8959
8960 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
8961 Remove constants.
8962 * tui/tui-winsource.h (struct tui_source_window_base)
8963 <tui_source_window_base>: Remove parameter.
8964 * tui/tui-winsource.c
8965 (tui_source_window_base::tui_source_window_base): Remove
8966 parameter.
8967 (tui_source_window_base::refill): Update.
8968 * tui/tui-stack.h (struct tui_locator_window)
8969 <tui_locator_window>: Update.
8970 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
8971 Default the constructor.
8972 * tui/tui-regs.h (struct tui_data_item_window)
8973 <tui_data_item_window>: Default the constructor.
8974 (struct tui_data_window) <tui_data_window>: Likewise.
8975 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
8976 Default the constructor.
8977 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
8978 Default the constructor.
8979 <type>: Remove.
8980 (struct tui_win_info) <tui_win_info>: Default the constructor.
8981 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
8982 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
8983 Default the constructor.
8984
865a5aec
TT
89852020-02-22 Tom Tromey <tom@tromey.com>
8986
8987 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
8988 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
8989 * tui/tui-win.c (tui_resize_all): Don't call
8990 tui_delete_invisible_windows.
8991 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
8992 done.
8993 (tui_set_layout): Update.
8994 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
8995 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
8996 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
8997
e098d18c
TT
89982020-02-22 Tom Tromey <tom@tromey.com>
8999
9000 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
9001 correctly.
9002
eb9c8874
TT
90032020-02-22 Tom Tromey <tom@tromey.com>
9004
9005 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
9006
7eed1a8e
TT
90072020-02-22 Tom Tromey <tom@tromey.com>
9008
9009 * tui/tui-winsource.h (struct tui_source_window_iterator)
9010 <inner_iterator>: New etytypedef.
9011 <tui_source_window_iterator>: Take "end" parameter.
9012 <tui_source_window_iterator>: Take iterator.
9013 <operator*, advance>: Update.
9014 <m_iter>: Change type.
9015 <m_end>: New field.
9016 (struct tui_source_windows) <begin, end>: Update.
9017 * tui/tui-layout.c (tui_windows): New global.
9018 (tui_apply_current_layout): Clear tui_windows.
9019 (tui_layout_window::apply): Update tui_windows.
9020 * tui/tui-data.h (tui_windows): Declare.
9021 (all_tui_windows): Now inline function.
9022 (class tui_window_iterator, struct all_tui_windows): Remove.
9023
7c043ba6
TT
90242020-02-22 Tom Tromey <tom@tromey.com>
9025
9026 PR tui/17850:
9027 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
9028 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
9029 "height" argument.
9030 (class tui_layout_window) <get_sizes>: Likewise.
9031 (class tui_layout_split) <tui_layout_split>: Add "vertical"
9032 argument.
9033 <get_sizes>: Add "height" argument.
9034 <m_vertical>: New field.
9035 * tui/tui-layout.c (tui_layout_split::clone): Update.
9036 (tui_layout_split::get_sizes): Add "height" argument.
9037 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
9038 (tui_new_layout_command): Parse "-horizontal".
9039 (_initialize_tui_layout): Update help string.
9040 (tui_layout_split::specification): Add "-horizontal" when needed.
9041 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
9042 argument.
9043 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
9044 New methods.
9045
6bc56648
TT
90462020-02-22 Tom Tromey <tom@tromey.com>
9047
9048 * tui/tui-layout.h (enum tui_adjust_result): New.
9049 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
9050 (class tui_layout_window) <adjust_size>: Return
9051 tui_adjust_result. Rewrite.
9052 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
9053 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
9054
c22fef7e
TT
90552020-02-22 Tom Tromey <tom@tromey.com>
9056
9057 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
9058 parameter and return types.
9059 (class tui_layout_base) <specification>: Add "depth".
9060 (class tui_layout_window) <specification>: Add "depth".
9061 (class tui_layout_split) <specification>: Add "depth".
9062 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
9063 and return types.
9064 (tui_new_layout_command): Parse sub-layouts.
9065 (_initialize_tui_layout): Update help string.
9066 (tui_layout_window::specification): Add "depth".
9067 (add_layout_command): Update.
9068
ee325b61
TT
90692020-02-22 Tom Tromey <tom@tromey.com>
9070
9071 * NEWS: Add "tui new-layout" item.
9072 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
9073 Add new-layout command to help text.
9074 (validate_window_name): New function.
9075 (tui_new_layout_command): New function.
9076 (_initialize_tui_layout): Register "new-layout".
9077 (tui_layout_window::specification): New method.
9078 (tui_layout_window::specification): New method.
9079 * tui/tui-layout.h (class tui_layout_base) <specification>: New
9080 method.
9081 (class tui_layout_window) <specification>: New method.
9082 (class tui_layout_split) <specification>: New method.
9083
416eb92d
TT
90842020-02-22 Tom Tromey <tom@tromey.com>
9085
9086 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
9087 * tui/tui-win.c (window_name_completer): Update comment.
9088 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
9089 Declare method.
9090 (class tui_layout_window) <replace_window>: Likewise.
9091 (class tui_layout_split) <replace_window>: Likewise.
9092 (tui_set_layout): Don't declare.
9093 (tui_set_initial_layout): Declare function.
9094 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
9095 (asm_regs_layout): New globals.
9096 (tui_current_layout, show_layout): Remove.
9097 (tui_set_layout, tui_add_win_to_layout): Rewrite.
9098 (find_layout, tui_apply_layout): New function.
9099 (layout_completer): Remove.
9100 (tui_next_layout): Reimplement.
9101 (tui_next_layout_command): New function.
9102 (tui_set_initial_layout, tui_prev_layout_command): New functions.
9103 (tui_regs_layout): Reimplement.
9104 (tui_regs_layout_command): New function.
9105 (extract_display_start_addr): Rewrite.
9106 (next_layout, prev_layout): Remove.
9107 (tui_layout_window::replace_window): New method.
9108 (tui_layout_split::replace_window): New method.
9109 (destroy_layout): New function.
9110 (layout_list): New global.
9111 (add_layout_command): New function.
9112 (initialize_layouts): Update.
9113 (tui_layout_command): New function.
9114 (_initialize_tui_layout): Install "layout" commands.
9115 * tui/tui-data.h (enum tui_layout_type): Remove.
9116 (tui_current_layout): Don't declare.
9117
0dbc2fc7
TT
91182020-02-22 Tom Tromey <tom@tromey.com>
9119
9120 * tui/tui-regs.c (tui_reg_layout): Remove.
9121 (tui_reg_command): Use tui_regs_layout.
9122 * tui/tui-layout.h (tui_reg_command): Declare.
9123 * tui/tui-layout.c (tui_reg_command): New function.
9124
5afe342e
TT
91252020-02-22 Tom Tromey <tom@tromey.com>
9126
9127 * tui/tui.c (tui_rl_delete_other_windows): Call
9128 tui_remove_some_windows.
9129 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
9130 Declare method.
9131 (class tui_layout_window) <remove_windows>: New method.
9132 (class tui_layout_split) <remove_windows>: Declare.
9133 (tui_remove_some_windows): Declare.
9134 * tui/tui-layout.c (tui_remove_some_windows): New function.
9135 (tui_layout_split::remove_windows): New method.
9136
427326a8
TT
91372020-02-22 Tom Tromey <tom@tromey.com>
9138
9139 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
9140 * tui/tui-layout.h (tui_next_layout): Declare.
9141 * tui/tui-layout.c (tui_next_layout): New function.
9142
3fe12b6d
TT
91432020-02-22 Tom Tromey <tom@tromey.com>
9144
9145 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
9146 correct coordinates.
9147
59b8b5d2
TT
91482020-02-22 Tom Tromey <tom@tromey.com>
9149
9150 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
9151 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
9152 DATA_WIN case.
9153
2a3d458b
TT
91542020-02-22 Tom Tromey <tom@tromey.com>
9155
9156 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
9157 TUI_DISASM_WIN, not tui_win_list.
9158
3f0cbb04
TT
91592020-02-22 Tom Tromey <tom@tromey.com>
9160
9161 * valprint.c (generic_val_print_enum_1)
9162 (val_print_type_code_flags): Style member names.
9163 * rust-lang.c (val_print_struct, rust_print_enum)
9164 (rust_print_struct_def, rust_internal_print_type): Style member
9165 names.
9166 * p-valprint.c (pascal_object_print_value_fields): Style member
9167 names. Only call fprintf_symbol_filtered for static members.
9168 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
9169 * f-valprint.c (f_val_print): Style member names.
9170 * f-typeprint.c (f_type_print_base): Style member names.
9171 * cp-valprint.c (cp_print_value_fields): Style member names. Only
9172 call fprintf_symbol_filtered for static members.
9173 (cp_print_class_member): Style member names.
9174 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
9175 member names.
9176 * ada-valprint.c (ada_print_scalar): Style enum names.
9177 (ada_val_print_enum): Likewise.
9178 * ada-typeprint.c (print_enum_type): Style enum names.
9179
d4d947ae
TT
91802020-02-21 Tom Tromey <tom@tromey.com>
9181
9182 * psympriv.h (struct partial_symtab): Update comment.
9183
e94e944b
TT
91842020-02-21 Tom Tromey <tromey@adacore.com>
9185
9186 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
9187 type is CORE_ADDR.
9188
1eb73179
TV
91892020-02-21 Tom de Vries <tdevries@suse.de>
9190
9191 PR gdb/25534
9192 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
9193 if dependencies[i]->user != NULL.
9194
4f180d53
AT
91952020-02-21 Ali Tamur <tamur@google.com>
9196
9197 * dwarf2/read.c (dwarf2_name): Add null check.
9198
22b6cd70
TT
91992020-02-20 Tom Tromey <tom@tromey.com>
9200
9201 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
9202 ">=", in binary search.
9203 (dwarf2_find_containing_comp_unit): New overload.
9204 (run_test): New self-test.
9205 (_initialize_dwarf2_read): Register new test.
9206
bd0cf5a6
NC
92072020-02-20 Nelson Chu <nelson.chu@sifive.com>
9208
9209 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
9210 * riscv-tdep.h: Likewise.
9211 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
9212 rv32-only CSR.
9213 * features/riscv/64bit-csr.xml: Regenerated.
9214
3f702acd
SDJ
92152020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
9216 Tom Tromey <tom@tromey.com>
9217
9218 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
9219 of 'fputc_unfiltered'.
9220 (putchar_unfiltered): Call 'fputc_unfiltered'.
9221 (fputc_unfiltered): Call 'fputs_unfiltered'.
9222
d13c7322
AB
92232020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
9224
9225 * config.in: Regenerate.
9226 * configure: Regenerate.
9227 * configure.ac: Add --with-python-libdir option.
9228 * main.c: Use WITH_PYTHON_LIBDIR.
9229
869d8950
TT
92302020-02-19 Tom Tromey <tom@tromey.com>
9231
9232 * symtab.c (general_symbol_info::compute_and_set_names): Use
9233 obstack_strndup. Simplify call to symbol_set_demangled_name.
9234
298e9637
SM
92352020-02-19 Simon Marchi <simon.marchi@efficios.com>
9236
9237 * dwarf2/read.c (allocate_signatured_type_table,
9238 allocate_dwo_unit_table, allocate_type_unit_groups_table,
9239 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
9240 Remove objfile parameter, update all callers.
9241
08410482
DE
92422020-02-19 Doug Evans <dje@google.com>
9243
9244 PR rust/25535
9245 * rust-lang.c (rust_print_enum): Apply embedded_offset to
9246 rust_enum_variant calculation.
9247
dfdeeca1
TT
92482020-02-19 Tom Tromey <tromey@adacore.com>
9249
9250 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
9251
2ef5453b
TT
92522020-02-19 Tom Tromey <tromey@adacore.com>
9253
9254 * ada-lang.c (cache_symbol): Use obstack_strdup.
9255
9f1528a1
AB
92562020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
9257
9258 * configure: Regenerate.
9259
d3c22fa8
TT
92602020-02-19 Tom Tromey <tromey@adacore.com>
9261
9262 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
9263 NULL check.
9264
bf84f706
MR
92652020-02-19 Maciej W. Rozycki <macro@wdc.com>
9266
9267 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
9268
d1c9b20f
AB
92692020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
9270
9271 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
9272 if GDBSERVER is not defined.
9273 (riscv_tdesc_cache): Likewise, also store const target_desc.
9274 (STATIC_IN_GDB): Define.
9275 (riscv_create_target_description): Update declaration with
9276 STATIC_IN_GDB.
9277 (riscv_lookup_target_description): New function, only define if
9278 GDBSERVER is not defined.
9279 * arch/riscv.h (riscv_create_target_description): Declare only
9280 when GDBSERVER is defined.
9281 (riscv_lookup_target_description): New declaration when GDBSERVER
9282 is not defined.
9283 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
9284 (riscv_linux_read_features): ...this, and return
9285 riscv_gdbarch_features instead of target_desc.
9286 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
9287 (riscv_linux_read_description): Rename to...
9288 (riscv_linux_read_features): ...this.
9289 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
9290 Update to use riscv_gdbarch_features and
9291 riscv_lookup_target_description.
9292 * riscv-tdep.c (riscv_find_default_target_description): Use
9293 riscv_lookup_target_description instead of
9294 riscv_create_target_description.
9295
373d7ac0
SM
92962020-02-18 Simon Marchi <simon.marchi@efficios.com>
9297
9298 * valprint.c (generic_val_print_enum_1): When printing a flag
9299 enum with value 0 and there is no enumerator with value 0, print
9300 just "0" instead of "(unknown: 0x0)".
9301
b29a2df0
SM
93022020-02-18 Simon Marchi <simon.marchi@efficios.com>
9303
9304 * valprint.c (generic_val_print_enum_1): Print unknown part of
9305 flag enum in hex.
9306
6740f0cc
SM
93072020-02-18 Simon Marchi <simon.marchi@efficios.com>
9308
9309 * dwarf2/read.c (update_enumeration_type_from_children): Allow
9310 flag enums to contain duplicate enumerators.
9311 * valprint.c (generic_val_print_enum_1): Update comment.
9312
edd45eb0
SM
93132020-02-18 Simon Marchi <simon.marchi@efficios.com>
9314
9315 * dwarf2/read.c: Include "count-one-bits.h".
9316 (update_enumeration_type_from_children): If an enumerator has
9317 multiple bits set, don't treat the enumeration as a "flag enum".
9318 * valprint.c (generic_val_print_enum_1): Assert that enumerators
9319 of flag enums have 0 or 1 bit set.
9320
6d0cf446
BE
93212020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
9322
9323 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
9324 conversion.
9325 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
9326 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
9327 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
9328 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
9329 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
9330
7001c1b7
SM
93312020-02-18 Simon Marchi <simon.marchi@efficios.com>
9332
9333 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
9334
fdb61c6c
SM
93352020-02-14 Simon Marchi <simon.marchi@efficios.com>
9336
9337 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
9338 displaced_step_closure_up.
9339 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
9340 (struct displaced_step_closure_up):
9341 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
9342 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
9343 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
9344 Likewise.
9345 * gdbarch.sh (displaced_step_copy_insn): Likewise.
9346 * gdbarch.c, gdbarch.h: Re-generate.
9347 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
9348 displaced_step_closure_up.
9349 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
9350 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
9351 * infrun.h (displaced_step_closure_up): New type alias.
9352 (struct displaced_step_inferior_state) <step_closure>: Change
9353 type to displaced_step_closure_up.
9354 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
9355 displaced_step_closure_up.
9356 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
9357
a4a38eb4
TT
93582020-02-14 Tom Tromey <tom@tromey.com>
9359
9360 * minidebug.c (gnu_debug_key): New global.
9361 (find_separate_debug_file_in_section): Use it.
9362
e8217e61
SM
93632020-02-14 Simon Marchi <simon.marchi@efficios.com>
9364
9365 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
9366 std::unique_ptr.
9367 * gdbarch.c: Re-generate.
9368 * gdbarch.h: Re-generate.
9369 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
9370 change.
9371 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
9372 type to std::unique_ptr.
9373 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
9374 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
9375 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
9376 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
9377 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
9378 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
9379 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
9380 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
9381 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
9382
d8d83535
SM
93832020-02-14 Simon Marchi <simon.marchi@efficios.com>
9384
9385 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
9386 std::unique_ptr.
9387 (displaced_step_clear): Rename to...
9388 (displaced_step_reset): ... this. Just call displaced->reset ().
9389 (displaced_step_clear_cleanup): Rename to...
9390 (displaced_step_reset_cleanup): ... this.
9391 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
9392 (displaced_step_fixup): Likewise.
9393 (resume_1): Likewise.
9394 (handle_inferior_event): Restore child's memory before calling
9395 displaced_step_fixup on the parent.
9396 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
9397 to std::unique_ptr.
9398 <step_closure>: Change type to std::unique_ptr.
9399
5f661e03
SM
94002020-02-14 Simon Marchi <simon.marchi@efficios.com>
9401
9402 * arm-tdep.c: Include count-one-bits.h.
9403 (cleanup_block_store_pc): Use count_one_bits.
9404 (cleanup_block_load_pc): Use count_one_bits.
9405 (arm_copy_block_xfer): Use count_one_bits.
9406 (thumb2_copy_block_xfer): Use count_one_bits.
9407 (thumb_copy_pop_pc_16bit): Use count_one_bits.
9408 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
9409 (thumb_get_next_pcs_raw): Use count_one_bits.
9410 (arm_get_next_pcs_raw): Use count_one_bits_l.
9411 * arch/arm.c (bitcount): Remove.
9412 * arch/arm.h (bitcount): Remove.
9413
8084e579
TT
94142020-02-14 Tom Tromey <tromey@adacore.com>
9415
9416 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
9417 Update.
9418 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
9419 * dwarf2/loc.c (call_site_find_chain_1): Return
9420 unique_xmalloc_ptr.
9421 (call_site_find_chain): Likewise.
9422
258bf0ee
RB
94232020-02-14 Richard Biener <rguenther@suse.de>
9424
9425 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
9426 on expression with division operators.
9427
f98a8458
AKS
94282020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
9429
9430 * MAINTAINERS (Write After Approval): Adding myself.
9431
d1437c0e
TT
94322020-02-12 Tom Tromey <tom@tromey.com>
9433
9434 * event-loop.c (event_data, gdb_event, event_handler_func):
9435 Remove.
9436
3d4560f7
TT
94372020-02-12 Tom Tromey <tom@tromey.com>
9438
9439 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
9440 (dwarf2_frame_objfile_data): Add comment.
9441 (find_comp_unit, set_comp_unit): New functions.
9442 (dwarf2_frame_find_fde): Use find_comp_unit.
9443 (dwarf2_build_frame_info): Use set_comp_unit.
9444
21982304
TT
94452020-02-12 Tom Tromey <tom@tromey.com>
9446
9447 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
9448 (comp_unit): Don't initialize objfile.
9449 (execute_cfa_program): Add text_offset parameter.
9450 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
9451 (dwarf2_frame_cache): Update.
9452 (dwarf2_build_frame_info): Don't set "objfile" member.
9453
4debb237
TT
94542020-02-12 Tom Tromey <tom@tromey.com>
9455
9456 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
9457 (decode_frame_entry): Likewise.
9458 (dwarf2_build_frame_info): Update.
9459
0d404d44
TT
94602020-02-12 Tom Tromey <tom@tromey.com>
9461
9462 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
9463 (decode_frame_entry_1): Use the comp_unit obstack.
9464
a7a3ae5c
TT
94652020-02-12 Tom Tromey <tom@tromey.com>
9466
9467 * dwarf2/frame.c (struct comp_unit): Add initializers and
9468 constructor.
9469 (dwarf2_frame_objfile_data): Store a comp_unit.
9470 (dwarf2_frame_find_fde): Update.
9471 (dwarf2_build_frame_info): Use "new".
9472
a9d65418
TT
94732020-02-12 Tom Tromey <tom@tromey.com>
9474
9475 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
9476 (dwarf2_fde_table): Typedef for std::vector.
9477 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
9478 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
9479 (decode_frame_entry): Update.
9480 (dwarf2_build_frame_info): Use "new".
9481
7559c217
CB
94822020-02-12 Christian Biesinger <cbiesinger@google.com>
9483
9484 * arm-tdep.c (arm_gdbarch_init): Update.
9485 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
9486 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
9487 have_neon, is_m>: Change to bool.
9488
aeefc73c
CB
94892020-02-12 Christian Biesinger <cbiesinger@google.com>
9490
9491 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
9492
d27b8e5f
TT
94932020-02-12 Tom Tromey <tom@tromey.com>
9494
9495 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
9496
cd5900f3
HD
94972020-02-12 Hannes Domani <ssbssa@yahoo.de>
9498
9499 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
9500 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
9501
f056b22b
TT
95022020-02-11 Tom Tromey <tom@tromey.com>
9503
9504 * psymtab.h: Update comment.
9505
f92ff6b5
TT
95062020-02-11 Tom Tromey <tom@tromey.com>
9507
9508 * gdb_obstack.h (struct auto_obstack): Use
9509 DISABLE_COPY_AND_ASSIGN.
9510
3fd6912b
TT
95112020-02-11 Tom Tromey <tom@tromey.com>
9512
9513 * dwarf2/frame.h (struct objfile): Don't forward declare.
9514
69ed9b74
CB
95152020-02-11 Christian Biesinger <cbiesinger@google.com>
9516
9517 * cris-tdep.c (cris_supply_gregset): Change signature to match
9518 what struct regset expects.
9519 (cris_regset): New struct.
9520 (fetch_core_registers): Remove.
9521 (cris_iterate_over_regset_sections): New function.
9522 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
9523 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
9524
bda874f6
CB
95252020-02-11 Christian Biesinger <cbiesinger@google.com>
9526
9527 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
9528 registers.
9529
754e1564
CB
95302020-02-11 Christian Biesinger <cbiesinger@google.com>
9531
9532 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
9533
8ddd8e0e
SM
95342020-02-11 Simon Marchi <simon.marchi@efficios.com>
9535
9536 * configure: Re-generate.
9537
898e7f60
SM
95382020-02-11 Simon Marchi <simon.marchi@efficios.com>
9539
9540 * configure: Re-generate.
9541
58df732b
SM
95422020-02-11 Simon Marchi <simon.marchi@efficios.com>
9543
9544 * acinclude: Update warning.m4 path.
9545 * warning.m4: Move to gdbsupport.
9546
da5bd37e
TT
95472020-02-11 Tom Tromey <tromey@adacore.com>
9548
9549 * remote.c (remote_console_output): Update.
9550 * printcmd.c (printf_command): Update.
9551 * event-loop.c (gdb_wait_for_event): Update.
9552 * linux-nat.c (sigchld_handler): Update.
9553 * remote-sim.c (gdb_os_write_stdout): Update.
9554 (gdb_os_flush_stdout): Update.
9555 (gdb_os_flush_stderr): Update.
9556 (gdb_os_write_stderr): Update.
9557 * exceptions.c (print_exception): Update.
9558 * remote-fileio.c (remote_fileio_func_read): Update.
9559 (remote_fileio_func_write): Update.
9560 * tui/tui.c (tui_enable): Update.
9561 * tui/tui-interp.c (tui_interp::init): Update.
9562 * utils.c (init_page_info): Update.
9563 (putchar_unfiltered, fputc_unfiltered): Update.
9564 (gdb_flush): Update.
9565 (emit_style_escape): Update.
9566 (flush_wrap_buffer, fputs_maybe_filtered): Update.
9567 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
9568 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
9569 (stderr_file::write): Update.
9570 (stderr_file::puts): Update.
9571 * ui-file.h (ui_file_isatty, ui_file_write)
9572 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
9573 (ui_file_puts): Don't declare.
9574
85f0dd3c
TV
95752020-02-10 Tom de Vries <tdevries@suse.de>
9576
9577 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
9578 sentinel to char *.
9579
2e927613
TV
95802020-02-09 Tom de Vries <tdevries@suse.de>
9581
9582 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
9583 filename if it matches "<artificial>".
9584
6bafc845
HD
95852020-02-09 Hannes Domani <ssbssa@yahoo.de>
9586
9587 * windows-tdep.c (struct enum_value_name): New struct.
9588 (create_enum): New function.
9589 (windows_get_siginfo_type): Create and use enum types.
9590
7928d571
HD
95912020-02-09 Hannes Domani <ssbssa@yahoo.de>
9592
9593 * NEWS: Mention $_siginfo support for Windows.
9594 * windows-nat.c (handle_exception): Set siginfo_er.
9595 (windows_nat_target::mourn_inferior): Reset siginfo_er.
9596 (windows_xfer_siginfo): New function.
9597 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
9598 * windows-tdep.c (struct windows_gdbarch_data): New struct.
9599 (init_windows_gdbarch_data): New function.
9600 (get_windows_gdbarch_data): New function.
9601 (windows_get_siginfo_type): New function.
9602 (windows_init_abi): Register windows_get_siginfo_type.
9603 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
9604
6751ebae
TT
96052020-02-08 Tom Tromey <tom@tromey.com>
9606
9607 * dwarf2/read.c (class cutu_reader) <cutu_reader,
9608 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
9609 <keep>: Declare method.
9610 <m_keep>: Remove member.
9611 <~cutu_reader>: Remove.
9612 (cutu_reader::init_tu_and_read_dwo_dies): Update.
9613 (cutu_reader::cutu_reader): Update.
9614 (cutu_reader::keep): Rename from ~cutu_reader.
9615 (process_psymtab_comp_unit, build_type_psymtabs_1)
9616 (process_skeletonless_type_unit, load_partial_comp_unit)
9617 (load_full_comp_unit, dwarf2_read_addr_index)
9618 (read_signatured_type): Update.
9619
135f5437
TT
96202020-02-08 Tom Tromey <tom@tromey.com>
9621
9622 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
9623 "want_partial_unit" parameter.
9624 (process_psymtab_comp_unit): Change want_partial_unit to bool.
9625 Inline check for DW_TAG_partial_unit.
9626 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
9627
9f66ff1c
TT
96282020-02-08 Tom Tromey <tom@tromey.com>
9629
9630 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
9631 read.c.
9632 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
9633 read.c.
9634
c8a7a66f
TT
96352020-02-08 Tom Tromey <tom@tromey.com>
9636
9637 * dwarf2/read.c (read_address): Move to comp-unit.c.
9638 (dwarf2_rnglists_process, dwarf2_ranges_process)
9639 (read_attribute_value, dwarf_decode_lines_1)
9640 (var_decode_location, decode_locdesc): Update.
9641 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
9642 read.c. Remove "cu" parameter.
9643 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
9644 method.
9645
8266302d
TT
96462020-02-08 Tom Tromey <tom@tromey.com>
9647
9648 * dwarf2/read.c (read_attribute_value, read_indirect_string)
9649 (read_indirect_line_string): Update.
9650 * dwarf2/comp-unit.c (read_offset): Remove.
9651 (read_comp_unit_head): Update.
9652 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
9653 method.
9654 (read_offset): Don't declare.
9655
4057dfde
TT
96562020-02-08 Tom Tromey <tom@tromey.com>
9657
9658 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
9659 * dwarf2/read.c (struct comp_unit_head): Move to
9660 dwarf2/comp-unit.h.
9661 (enum class rcuh_kind): Move to comp-unit.h.
9662 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
9663 (read_comp_unit_head, error_check_comp_unit_head)
9664 (read_and_check_comp_unit_head): Move to comp-unit.c.
9665 (read_offset, dwarf_unit_type_name): Likewise.
9666 (create_debug_type_hash_table, read_cutu_die_from_dwo)
9667 (cutu_reader::cutu_reader, read_call_site_scope)
9668 (find_partial_die, follow_die_offset): Update.
9669 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
9670
24aa364d
TT
96712020-02-08 Tom Tromey <tom@tromey.com>
9672
9673 * dwarf2/read.c (read_offset_1): Move to leb.c.
9674 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
9675 (dwarf_decode_macro_bytes): Update.
9676 * dwarf2/leb.c (read_offset): Rename; move from read.c.
9677 * dwarf2/leb.h (read_offset): Declare.
9678
2c7d5afc
TT
96792020-02-08 Tom Tromey <tom@tromey.com>
9680
9681 * dwarf2/read.c (dwarf2_section_size): Remove.
9682 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
9683 Update.
9684 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
9685
4075cb26
TT
96862020-02-08 Tom Tromey <tom@tromey.com>
9687
9688 * dwarf2/read.c (read_initial_length): Move to leb.c.
9689 * dwarf2/leb.h (read_initial_length): Declare.
9690 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
9691 handle_nonstd parameter.
9692 * dwarf2/frame.c (read_initial_length): Remove.
9693 (decode_frame_entry_1): Update.
9694
09ba997f
TT
96952020-02-08 Tom Tromey <tom@tromey.com>
9696
9697 * dwarf2/loc.c (dwarf2_find_location_expression)
9698 (dwarf_evaluate_loc_desc::get_tls_address)
9699 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
9700 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
9701 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
9702 (dwarf2_compile_property_to_c)
9703 (dwarf2_loc_desc_get_symbol_read_needs)
9704 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
9705 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
9706 (loclist_describe_location, loclist_tracepoint_var_ref)
9707 (loclist_generate_c_location): Update.
9708 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
9709 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
9710 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
9711 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
9712 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
9713 (dwarf2_per_cu_data::addr_size)
9714 (dwarf2_per_cu_data::ref_addr_size)
9715 (dwarf2_per_cu_data::text_offset)
9716 (dwarf2_per_cu_data::addr_type): Now methods.
9717 (per_cu_header_read_in): Make per_cu "const".
9718 (dwarf2_version): Remove.
9719 (dwarf2_per_cu_data::int_type): Now a method.
9720 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
9721 (set_die_type, read_array_type, read_subrange_index_type)
9722 (read_tag_string_type, read_subrange_type): Update.
9723 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
9724 offset_size, ref_addr_size, text_offset, addr_type, version,
9725 objfile, int_type, addr_sized_int_type>: Declare methods.
9726
96c738c0
TT
97272020-02-08 Tom Tromey <tom@tromey.com>
9728
9729 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
9730 Move earlier.
9731
8fdd972c
TT
97322020-02-08 Tom Tromey <tom@tromey.com>
9733
9734 * dwarf2/read.h (dwarf_line_debug): Declare.
9735 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
9736 * dwarf2/read.c: Move line_header code to new files.
9737 (dwarf_line_debug): No longer static.
9738 * dwarf2/line-header.c: New file.
9739 * dwarf2/line-header.h: New file.
9740
03075812
TT
97412020-02-08 Tom Tromey <tom@tromey.com>
9742
9743 * dwarf2/read.c (struct line_header) <file_full_name,
9744 file_file_name>: Return unique_xmalloc_ptr.
9745 (line_header::file_file_name): Update.
9746 (line_header::file_full_name): Update.
9747 (dw2_get_file_names_reader): Update.
9748 (macro_start_file): Update.
9749
bb822404
TT
97502020-02-08 Tom Tromey <tom@tromey.com>
9751
9752 * dwarf2/read.c (struct line_header) <file_full_name,
9753 file_file_name>: Declare methods.
9754 (dw2_get_file_names_reader): Update.
9755 (file_file_name): Now a method.
9756 (file_full_name): Likewise.
9757 (macro_start_file): Update.
9758
009b64fc
TT
97592020-02-08 Tom Tromey <tom@tromey.com>
9760
9761 * dwarf2/read.c (dwarf_always_disassemble)
9762 (show_dwarf_always_disassemble): Move to loc.c.
9763 (_initialize_dwarf2_read): Move "always-disassemble" registration
9764 to loc.c.
9765 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
9766 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
9767 static.
9768 (show_dwarf_always_disassemble): Move from read.c.
9769 (_initialize_dwarf2loc): Move always-disassemble from read.c.
9770
5895093f
TT
97712020-02-08 Tom Tromey <tom@tromey.com>
9772
9773 * dwarf2/read.c (~dwarf2_per_objfile): Update.
9774 (create_quick_file_names_table): Return htab_up.
9775 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
9776 Update.
9777 * dwarf2/read.h (struct dwarf2_per_objfile)
9778 <quick_file_names_table>: Now htab_up.
9779
b3b32279
TT
97802020-02-08 Tom Tromey <tom@tromey.com>
9781
9782 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
9783
1d33d811
TT
97842020-02-08 Tom Tromey <tom@tromey.com>
9785
9786 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
9787 Rewrite.
9788 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
9789 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
9790 (abbrev_table::abbrev_table): No longer inline.
9791 (ABBREV_HASH_SIZE): Remove.
9792 (abbrev_table::m_abbrevs): Now an htab_up.
9793
86de1d91
TT
97942020-02-08 Tom Tromey <tom@tromey.com>
9795
9796 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
9797 (cutu_reader): Update.
9798 (build_type_psymtabs_1): Update.
9799 * dwarf2/abbrev.c (abbrev_table::read): Rename.
9800 (abbrev_table::alloc_abbrev): Update.
9801 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
9802 (abbrev_table::read): New static method, renamed from
9803 abbrev_table_read_table.
9804 (abbrev_table::alloc_abbrev)
9805 (abbrev_table::add_abbrev): Now private.
9806 (abbrev_table::abbrev_table): Now private.
9807 (abbrev_table::m_abbrev_obstack): Now private. Rename.
9808
0335378b
TT
98092020-02-08 Tom Tromey <tom@tromey.com>
9810
9811 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
9812 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
9813 htab_up.
9814
48b490f2
TT
98152020-02-08 Tom Tromey <tom@tromey.com>
9816
9817 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
9818 htab_up.
9819 (lookup_dwo_unit_in_dwp): Update.
9820 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
9821 on obstack.
9822
bc68fb19
TT
98232020-02-08 Tom Tromey <tom@tromey.com>
9824
9825 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
9826 obstack.
9827
d15acc42
TT
98282020-02-08 Tom Tromey <tom@tromey.com>
9829
9830 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
9831 line_header_hash.
9832 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
9833 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
9834 Change type to htab_up.
9835
eaa5fa8b
TT
98362020-02-08 Tom Tromey <tom@tromey.com>
9837
9838 * dwarf2/read.c (allocate_type_unit_groups_table): Return
9839 htab_up. Don't allocate on obstack.
9840 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
9841 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
9842 Change type to htab_up.
9843
b0b6a987
TT
98442020-02-08 Tom Tromey <tom@tromey.com>
9845
9846 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
9847 Change type to htab_up.
9848 * dwarf2/read.c (create_signatured_type_table_from_index)
9849 (create_signatured_type_table_from_debug_names)
9850 (create_all_type_units, add_type_unit)
9851 (lookup_dwo_signatured_type, lookup_signatured_type)
9852 (process_skeletonless_type_unit): Update.
9853 (create_debug_type_hash_table, create_debug_types_hash_table):
9854 Change type of types_htab.
9855 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
9856 htab_up. Don't allocate on obstack.
9857 (create_cus_hash_table): Change type of cus_htab parameter.
9858 (struct dwo_file) <cus, tus>: Now htab_up.
9859 (lookup_dwo_signatured_type, lookup_dwo_cutu)
9860 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
9861 (queue_and_load_all_dwo_tus): Update.
9862 * dwarf2/index-write.c (write_gdbindex): Update.
9863 (write_debug_names): Update.
9864
39856def
TT
98652020-02-08 Tom Tromey <tom@tromey.com>
9866
9867 * dwarf2/read.h (struct dwarf2_queue_item): Move from
9868 dwarf2/read.c. Remove "next" member. Add constructor ntad
9869 destructor.
9870 (struct dwarf2_per_objfile) <queue>: New member.
9871 * dwarf2/read.c (struct dwarf2_queue_item): Move to
9872 dwarf2/read.h.
9873 (dwarf2_queue, dwarf2_queue_tail): Remove.
9874 (class dwarf2_queue_guard): Add parameter to constructor. Use
9875 DISABLE_COPY_AND_ASSIGN.
9876 <m_per_objfile>: New member.
9877 <~dwarf2_queue_guard>: Rewrite.
9878 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
9879 Update.
9880 (~dwarf2_queue_item): New.
9881
3e225074
TT
98822020-02-08 Tom Tromey <tom@tromey.com>
9883
9884 * dwarf2/read.c (struct die_info) <has_children>: New member.
9885 (dw2_get_file_names_reader): Remove has_children.
9886 (dw2_get_file_names): Update.
9887 (read_cutu_die_from_dwo): Remove has_children.
9888 (cutu_reader::init_tu_and_read_dwo_dies)
9889 (cutu_reader::cutu_reader): Update.
9890 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
9891 Remove has_children.
9892 (build_type_psymtabs_1, process_skeletonless_type_unit)
9893 (load_partial_comp_unit, load_full_comp_unit): Update.
9894 (create_dwo_cu_reader): Remove has_children.
9895 (create_cus_hash_table, read_die_and_children): Update.
9896 (read_full_die_1,read_full_die): Remove has_children.
9897 (read_signatured_type): Update.
9898 (class cutu_reader) <has_children>: Remove.
9899
82ca8957
TT
99002020-02-08 Tom Tromey <tom@tromey.com>
9901
9902 * dwarf2/expr.c: Rename from dwarf2expr.c.
9903 * dwarf2/expr.h: Rename from dwarf2expr.h.
9904 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
9905 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
9906 * dwarf2/frame.c: Rename from dwarf2-frame.c.
9907 * dwarf2/frame.h: Rename from dwarf2-frame.h.
9908 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
9909 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
9910 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
9911 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
9912 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
9913 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
9914 * dwarf2/loc.c: Rename from dwarf2loc.c.
9915 * dwarf2/loc.h: Rename from dwarf2loc.h.
9916 * dwarf2/read.c: Rename from dwarf2read.c.
9917 * dwarf2/read.h: Rename from dwarf2read.h.
9918 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
9919 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
9920 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
9921 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
9922 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
9923 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
9924 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
9925 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
9926 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
9927 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
9928 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
9929 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
9930 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
9931 Update.
9932 * Makefile.in (COMMON_SFILES): Update.
9933 (HFILES_NO_SRCDIR): Update.
9934
9e35d499
TT
99352020-02-08 Tom Tromey <tom@tromey.com>
9936
9937 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
9938 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
9939
1eba2311
TT
99402020-02-08 Tom Tromey <tom@tromey.com>
9941
9942 * dwarf2read.h (struct die_info): Don't declare.
9943
e41c2da2
TT
99442020-02-08 Tom Tromey <tom@tromey.com>
9945
9946 * dwarf2read.h (die_info_ptr): Remove typedef.
9947
4fc6c0d5
TT
99482020-02-08 Tom Tromey <tom@tromey.com>
9949
9950 * dwarf2read.c (read_call_site_scope)
9951 (handle_data_member_location, dwarf2_add_member_fn)
9952 (mark_common_block_symbol_computed, read_common_block)
9953 (attr_to_dynamic_prop, partial_die_info::read)
9954 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
9955 (dwarf2_symbol_mark_computed, set_die_type): Update.
9956 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
9957 method.
9958 (attr_form_is_block): Don't declare.
9959 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
9960
cd6c91b4
TT
99612020-02-08 Tom Tromey <tom@tromey.com>
9962
9963 * dwarf2read.c (dwarf2_find_base_address, )
9964 (read_call_site_scope, rust_containing_type)
9965 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
9966 (handle_data_member_location, dwarf2_add_member_fn)
9967 (get_alignment, read_structure_type, process_structure_scope)
9968 (mark_common_block_symbol_computed, read_common_block)
9969 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
9970 (partial_die_info::read, read_attribute_value, new_symbol)
9971 (lookup_die_type, dwarf2_get_ref_die_offset)
9972 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
9973 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
9974 (dwarf2_symbol_mark_computed): Update.
9975 * dwarf2/attribute.h (struct attribute) <value_as_address,
9976 form_is_section_offset, form_is_constant, form_is_ref>: Declare
9977 methods.
9978 (value_as_address, attr_form_is_section_offset)
9979 (attr_form_is_constant, attr_form_is_ref): Don't declare.
9980 * dwarf2/attribute.c (attribute::value_as_address)
9981 (attribute::form_is_section_offset, attribute::form_is_constant)
9982 (attribute::form_is_ref): Now methods.
9983
162dce55
TT
99842020-02-08 Tom Tromey <tom@tromey.com>
9985
9986 * dwarf2read.c (struct attribute, DW_STRING)
9987 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
9988 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
9989 (attr_form_is_block, attr_form_is_section_offset)
9990 (attr_form_is_constant, attr_form_is_ref): Move.
9991 * dwarf2/attribute.h: New file.
9992 * dwarf2/attribute.c: New file, from dwarf2read.c.
9993 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
9994
3054dd54
TT
99952020-02-08 Tom Tromey <tom@tromey.com>
9996
9997 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
9998 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
9999 Move.
10000 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
10001 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
10002 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
10003 abbrev.c.
10004 * dwarf2/abbrev.h: New file.
10005 * dwarf2/abbrev.c: New file, from dwarf2read.c.
10006 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
10007
96b79293
TT
100082020-02-08 Tom Tromey <tom@tromey.com>
10009
10010 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
10011 (dwarf2_section_size, dwarf2_get_section_info)
10012 (create_signatured_type_table_from_debug_names)
10013 (create_addrmap_from_aranges, read_debug_names_from_section)
10014 (get_gdb_index_contents_from_section, read_comp_unit_head)
10015 (error_check_comp_unit_head, read_abbrev_offset)
10016 (create_debug_type_hash_table, init_cu_die_reader)
10017 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
10018 (read_comp_units_from_section, create_cus_hash_table)
10019 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
10020 (create_dwp_v2_section, dwarf2_rnglists_process)
10021 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
10022 (abbrev_table_read_table, read_indirect_string_at_offset_from)
10023 (read_indirect_string_from_dwz, read_addr_index_1)
10024 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
10025 (dwarf_decode_macro_bytes, dwarf_decode_macros)
10026 (fill_in_loclist_baton): Update.
10027 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
10028 get_containing_section, get_bfd_owner, get_bfd_section,
10029 get_file_name, get_id, get_flags, empty, read>: Declare methods.
10030 (dwarf2_read_section, get_section_name, get_section_file_name)
10031 (get_containing_section, get_section_bfd_owner)
10032 (get_section_bfd_section, get_section_name, get_section_file_name)
10033 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
10034 declare.
10035 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
10036 (dwarf2_section_info::get_bfd_owner)
10037 (dwarf2_section_info::get_bfd_section)
10038 (dwarf2_section_info::get_name)
10039 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
10040 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
10041 (dwarf2_section_info::read): Now methods.
10042 * dwarf-index-write.c (class debug_names): Update.
10043
2c86cff9
TT
100442020-02-08 Tom Tromey <tom@tromey.com>
10045
10046 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
10047 Move to dwarf2/section.h.
10048 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
10049 (get_section_bfd_section, get_section_name)
10050 (get_section_file_name, get_section_id, get_section_flags)
10051 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
10052 dwarf2/section.c.
10053 * dwarf2/section.h: New file.
10054 * dwarf2/section.c: New file, from dwarf2read.c.
10055 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
10056
f4382c45
TT
100572020-02-08 Tom Tromey <tom@tromey.com>
10058
10059 * dwarf2read.h (read_unsigned_leb128): Don't declare.
10060 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
10061 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
10062 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
10063 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
10064 * dwarf2/leb.h: New file, from dwarf2read.c.
10065 * dwarf2/leb.c: New file, from dwarf2read.c.
10066 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
10067 Remove.
10068 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
10069 (COMMON_SFILES): Add dwarf2/leb.c.
10070
01840b7a
JB
100712020-02-08 Joel Brobecker <brobecker@adacore.com>
10072
10073 GDB 9.1 released.
10074
dfcb27e4
IB
100752020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
10076
10077 PR gdb/25190:
aac66a4c
SM
10078 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
10079 * gdb/remote.c (remote_console_output): Update.
10080 * gdb/ui-file.c (fputs_unfiltered): Rename to...
10081 (ui_file_puts): ...this.
10082 * gdb/ui-file.h (ui_file_puts): Add declaration.
10083 * gdb/utils.c (emit_style_escape): Update.
10084 (flush_wrap_buffer): Update.
10085 (fputs_maybe_filtered): Update.
10086 (fputs_unfiltered): Add function.
dfcb27e4 10087
faa17681
IB
100882020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
10089
aac66a4c
SM
10090 * gdb/event-loop.c (gdb_wait_for_event): Update.
10091 * gdb/printcmd.c (printf_command): Update.
10092 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
10093 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
10094 (gdb_os_flush_stderr): Update.
10095 * gdb/remote.c (remote_console_output): Update.
10096 * gdb/ui-file.c (gdb_flush): Rename to...
10097 (ui_file_flush): ...this.
10098 (stderr_file::write): Update.
10099 (stderr_file::puts): Update.
10100 * gdb/ui-file.h (gdb_flush): Rename to...
10101 (ui_file_flush): ...this.
10102 * gdb/utils.c (gdb_flush): Add function.
10103 * gdb/utils.h (gdb_flush): Add declaration.
faa17681 10104
5abbbe1d
TT
101052020-02-07 Tom Tromey <tromey@adacore.com>
10106
10107 PR breakpoints/24915:
10108 * source.c (find_and_open_source): Do not check basenames_may_differ.
10109
919adfe8
TT
101102020-02-07 Tom Tromey <tom@tromey.com>
10111
10112 * README: Update gdbserver documentation.
10113 * gdbserver: Move to top level.
10114 * configure.tgt (build_gdbserver): Remove.
10115 * configure.ac: Remove --enable-gdbserver.
10116 * configure: Rebuild.
10117 * Makefile.in (distclean): Don't mention gdbserver.
10118
1d5d29e7
SV
101192020-02-06 Shahab Vahedi <shahab@synopsys.com>
10120
10121 * source-cache.c (source_cache::ensure): Surround
10122 get_plain_source_lines with a try/catch.
10123 (source_cache::get_line_charpos): Get rid of try/catch
10124 and only check for the return value of "ensure".
10125 * tui/tui-source.c (tui_source_window::set_contents):
10126 Simplify "nlines" calculation.
10127
6eb1129c
SV
101282020-02-06 Shahab Vahedi <shahab@synopsys.com>
10129
10130 * MAINTAINERS (Write After Approval): Add myself.
10131
c6a42d11
CB
101322020-02-05 Christian Biesinger <cbiesinger@google.com>
10133
10134 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
10135 function call.
10136
c8ecdda6
CB
101372020-02-05 Christian Biesinger <cbiesinger@google.com>
10138
10139 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
10140
f6480e70
MR
101412020-02-05 Maciej W. Rozycki <macro@wdc.com>
10142
10143 * nat/riscv-linux-tdesc.h: New file.
10144 * nat/riscv-linux-tdesc.c: New file, taking code from...
10145 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
10146 ... here.
10147 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
10148 NATDEPFILES.
10149
dcc9fbc6
AB
101502020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
10151
10152 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
10153 we don't set the fake simulator ptid to the null_ptid.
10154
719546c4
SM
101552020-02-03 Simon Marchi <simon.marchi@efficios.com>
10156
10157 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
10158 * gdbthread.h (class thread_info) <resumed>: Likewise.
10159 * infrun.c (resume_1): Likewise.
10160 (proceed): Likewise.
10161 (infrun_thread_stop_requested): Likewise.
10162 (stop_all_threads): Likewise.
10163 (handle_inferior_event): Likewise.
10164 (restart_threads): Likewise.
10165 (finish_step_over): Likewise.
10166 (keep_going_stepped_thread): Likewise.
10167 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
10168 (linux_handle_extended_wait): Likewise.
10169 * record-btrace.c (get_thread_current_frame_id): Likewise.
10170 * record-full.c (record_full_wait_1): Likewise.
10171 * remote.c (remote_target::process_initial_stop_replies): Likewise.
10172 * target.c (target_resume): Likewise.
10173 * thread.c (set_running_thread): Likewise.
10174
e409c542
AKS
101752020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
10176
10177 * f-valprint.c (f77_print_array_1): Changed datatype of index
10178 variable to LONGEST from int to enable it to contain bound
10179 values correctly.
10180
ee98c0da
MR
101812020-02-03 Maciej W. Rozycki <macro@wdc.com>
10182
10183 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
10184 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
10185 offsets according to FLEN determined.
10186 (riscv_linux_nat_target::read_description): Determine FLEN
10187 dynamically.
10188 (riscv_linux_nat_target::fetch_registers): Size regset buffer
10189 according to FLEN determined.
10190 (riscv_linux_nat_target::store_registers): Likewise.
10191
aa66aac4
SV
101922020-02-01 Shahab Vahedi <shahab@synopsys.com>
10193
10194 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
10195 when reg->group is empty and reggroup is not.
10196
fd9faca8
TT
101972020-01-31 Tom Tromey <tromey@adacore.com>
10198
10199 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
10200 Call beneath target's mourn_inferior after unpushing.
10201
42330a68
AB
102022020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
10203
10204 PR tui/9765
10205 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
10206 have enough lines to fill the screen, still return the lowest
10207 address we found.
10208
7a27a45b
AB
102092020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
10210
10211 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
10212 '-', '<', and '>' commands.
10213
c47f70e2
PA
102142020-01-29 Pedro Alves <palves@redhat.com>
10215 Sergio Durigan Junior <sergiodj@redhat.com>
10216
10217 * infcmd.c (construct_inferior_arguments): Assert that
10218 'argc' is greater than 0.
10219
5133a315
LM
102202020-01-29 Luis Machado <luis.machado@linaro.org>
10221
10222 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
10223 (BRK_INSN_MASK): Define to 0xd4200000.
10224 (aarch64_program_breakpoint_here_p): New function.
10225 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
10226 * arch-utils.c (default_program_breakpoint_here_p): Moved from
10227 breakpoint.c.
10228 * arch-utils.h (default_program_breakpoint_here_p): Moved from
10229 breakpoint.h
10230 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
10231 call gdbarch_program_breakpoint_here_p.
10232 (program_breakpoint_here): Moved to arch-utils.c, renamed to
10233 default_program_breakpoint_here_p, changed return type to bool and
10234 simplified.
10235 * breakpoint.h (program_breakpoint_here): Moved prototype to
10236 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
10237 return type to bool.
10238 * gdbarch.c: Regenerate.
10239 * gdbarch.h: Regenerate.
10240 * gdbarch.sh (program_breakpoint_here_p): New method.
10241 * infrun.c (handle_signal_stop): Call
10242 gdbarch_program_breakpoint_here_p.
10243
168f8c6b
TT
102442020-01-26 Tom Tromey <tom@tromey.com>
10245
10246 * ctfread.c (struct ctf_fp_info): Reindent.
10247 (_initialize_ctfread): Remove.
10248
128a391f
TT
102492020-01-26 Tom Tromey <tom@tromey.com>
10250
10251 * psymtab.c (partial_map_expand_apply)
10252 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
10253 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
10254 (psym_print_stats, psym_expand_symtabs_for_function)
10255 (psym_map_symbol_filenames, psym_map_matching_symbols)
10256 (psym_expand_symtabs_matching)
10257 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
10258 (maintenance_check_psymtabs): Use new methods.
10259 * psympriv.h (struct partial_symtab) <readin_p,
10260 get_compunit_symtab>: New methods.
10261 <readin, compunit_symtab>: Remove members.
10262 (struct standard_psymtab): New.
10263 (struct legacy_psymtab): Derive from standard_psymtab.
10264 * dwarf2read.h (struct dwarf2_psymtab): Derive from
10265 standard_psymtab.
10266 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
10267
0494dbec
TT
102682020-01-26 Tom Tromey <tom@tromey.com>
10269
10270 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
10271 read_dependencies. Add assert.
10272 * psymtab.c (partial_symtab::read_dependencies): New method.
10273 * psympriv.h (struct partial_symtab) <read_dependencies>: New
10274 method.
10275 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
10276 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
10277 read_dependencies.
10278 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
10279 Add assert.
10280
8566b89b
TT
102812020-01-26 Tom Tromey <tom@tromey.com>
10282
10283 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
10284 Call expand_psymtab.
10285 (xcoff_read_symtab): Call expand_psymtab.
10286 (xcoff_start_psymtab, xcoff_end_psymtab): Set
10287 legacy_expand_psymtab.
10288 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
10289 method.
10290 (struct legacy_psymtab) <expand_psymtab>: Implement.
10291 <legacy_expand_psymtab>: New member.
10292 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
10293 (parse_partial_symbols): Set legacy_expand_psymtab.
10294 (psymtab_to_symtab_1): Change argument order. Call
10295 expand_psymtab.
10296 (new_psymtab): Set legacy_expand_psymtab.
10297 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
10298 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
10299 expand_psymtab.
10300 (dwarf2_psymtab::expand_psymtab): Rename from
10301 psymtab_to_symtab_1. Call expand_psymtab.
10302 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
10303 (dbx_end_psymtab): Likewise.
10304 (dbx_psymtab_to_symtab_1): Change argument order. Call
10305 expand_psymtab.
10306 (dbx_read_symtab): Call expand_psymtab.
10307 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
10308 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
10309 (ctf_psymtab::read_symtab): Call expand_psymtab.
10310
077cbab2
TT
103112020-01-26 Tom Tromey <tom@tromey.com>
10312
10313 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
10314 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
10315 messages.
10316 * mdebugread.c (mdebug_read_symtab): Remove prints.
10317 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
10318 assert.
10319 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
10320
891813be
TT
103212020-01-26 Tom Tromey <tom@tromey.com>
10322
10323 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
10324 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
10325 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
10326 legacy_symtab.
10327 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
10328 * psymtab.c (psymtab_to_symtab): Call method.
10329 (dump_psymtab): Update.
10330 * psympriv.h (struct partial_symtab): Add virtual destructor.
10331 <read_symtab>: New method.
10332 (struct legacy_symtab): New.
10333 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
10334 (struct pst_map) <pst>: Now a legacy_psymtab.
10335 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
10336 (new_psymtab): Use legacy_psymtab.
10337 * dwarf2read.h (struct dwarf2_psymtab): New.
10338 (struct dwarf2_per_cu_data) <psymtab>: Use it.
10339 * dwarf2read.c (dwarf2_create_include_psymtab)
10340 (dwarf2_build_include_psymtabs, create_type_unit_group)
10341 (create_partial_symtab, process_psymtab_comp_unit_reader)
10342 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
10343 (set_partial_user): Use dwarf2_psymtab.
10344 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
10345 (psymtab_to_symtab_1, process_full_comp_unit)
10346 (process_full_type_unit, dwarf2_ranges_read)
10347 (dwarf2_get_pc_bounds, psymtab_include_file_name)
10348 (dwarf_decode_lines): Use dwarf2_psymtab.
10349 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
10350 (add_address_entry_worker, write_one_signatured_type)
10351 (recursively_count_psymbols, recursively_write_psymbols)
10352 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
10353 (write_debug_names): Likewise.
10354 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
10355 <pst>: Now a legacy_psymtab.
10356 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
10357 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
10358 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
10359 * ctfread.c (struct ctf_psymtab): New.
10360 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
10361 ctf_psymtab.
10362 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
10363 (create_partial_symtab): Return a ctf_psymtab.
10364 (scan_partial_symbols): Update.
10365
c3693a1d
TT
103662020-01-26 Tom Tromey <tom@tromey.com>
10367
10368 * xcoffread.c (xcoff_start_psymtab): Use new.
10369 * psymtab.c (partial_symtab::partial_symtab): New constructor,
10370 renamed from start_psymtab_common.
10371 * psympriv.h (struct partial_symtab): Add new constructor.
10372 (start_psymtab_common): Don't declare.
10373 * mdebugread.c (parse_partial_symbols): Use new.
10374 * dwarf2read.c (create_partial_symtab): Use new.
10375 * dbxread.c (start_psymtab): Use new.
10376 * ctfread.c (create_partial_symtab): Use new.
10377
32caafd0
TT
103782020-01-26 Tom Tromey <tom@tromey.com>
10379
10380 * xcoffread.c (xcoff_end_psymtab): Use new.
10381 * psymtab.c (start_psymtab_common): Use new.
10382 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
10383 Update.
10384 * psympriv.h (struct partial_symtab): Add parameters to
10385 constructor. Don't inline.
10386 (allocate_psymtab): Don't declare.
10387 * mdebugread.c (new_psymtab): Use new.
10388 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
10389 * dbxread.c (dbx_end_psymtab): Use new.
10390
abaa2f23
TT
103912020-01-26 Tom Tromey <tom@tromey.com>
10392
10393 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
10394 allocate_psymtab. Update documentation.
10395 * psymtab.c (psymtab_storage::install_psymtab): Rename from
10396 allocate_psymtab. Do not use new.
10397 (allocate_psymtab): Use new. Update.
10398
6d94535f
TT
103992020-01-26 Tom Tromey <tom@tromey.com>
10400
10401 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
10402 * psymtab.c (psym_print_stats): Update.
10403 * psympriv.h (struct partial_symtab) <readin,
10404 psymtabs_addrmap_supported, anonymous>: Now bool.
10405 * mdebugread.c (psymtab_to_symtab_1): Update.
10406 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
10407 (build_type_psymtabs_reader, psymtab_to_symtab_1)
10408 (process_full_comp_unit, process_full_type_unit): Update.
10409 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
10410 * ctfread.c (psymtab_to_symtab): Update.
10411
6f17252b
TT
104122020-01-26 Tom Tromey <tom@tromey.com>
10413
10414 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
10415 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
10416 * psymtab.c (psymtab_storage): Delete psymtabs.
10417 (psymtab_storage::allocate_psymtab): Use new.
10418 (psymtab_storage::discard_psymtab): Use delete.
10419 * psympriv.h (struct partial_symtab): Add constructor and
10420 initializers.
10421
f6f1cebc
TT
104222020-01-26 Tom Tromey <tom@tromey.com>
10423
10424 * machoread.c: Do not include psympriv.h.
10425
e47e48f6
PW
104262020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10427
10428 * NEWS: Mention the new option and the set/show commands.
10429
a2fedca9
PW
104302020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10431
10432 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
10433 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
10434 (validate_exec_file): New variables, enums, functions.
10435 (exec_file_locate_attach, print_section_info): Style the filenames.
10436 (_initialize_exec): Install show_exec_file_mismatch_command and
10437 set_exec_file_mismatch_command.
10438 * gdbcore.h (validate_exec_file): Declare.
10439 * infcmd.c (attach_command): Call validate_exec_file.
10440 * remote.c ( remote_target::remote_add_inferior): Likewise.
10441
7ffa82e1
AB
104422020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10443
10444 * frame.c (find_frame_sal): Move call to get_next_frame into more
10445 inner scope.
10446 * inline-frame.c (inilne_state) <inline_state>: Update argument
10447 types.
10448 (inilne_state) <skipped_symbol>: Rename to...
10449 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
10450 (skip_inline_frames): Build vector of skipped symbols and use this
10451 to reate the inline_state.
10452 (inline_skipped_symbol): Add a comment and some assertions, fetch
10453 skipped symbol from the list.
10454
3d92a3e3
AB
104552020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10456
10457 * buildsym.c (lte_is_less_than): Delete.
10458 (buildsym_compunit::end_symtab_with_blockvector): Create local
10459 lambda function to sort line table entries, and use
10460 std::stable_sort instead of std::sort.
10461 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
10462 markers when looking for a previous line.
10463
94a72be7
AB
104642020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10465
10466 * dwarf2read.c (lnp_state_machine::record_line): Include
10467 end_sequence parameter in debug print out. Record the line if we
10468 are at an end_sequence marker even if it's not the start of a
10469 statement.
10470 * symmisc.c (maintenance_print_one_line_table): Print end of
10471 sequence markers with 'END' not '0'.
10472
53af73bf
PA
104732020-01-24 Pedro Alves <palves@redhat.com>
10474
10475 PR gdb/25410
10476 * thread.c (scoped_restore_current_thread::restore): Use
10477 switch_to_inferior_no_thread.
10478 * exec.c: Include "progspace-and-thread.h".
10479 (add_target_sections, remove_target_sections):
10480 scoped_restore_current_pspace_and_thread instead of
10481 scoped_restore_current_thread.
10482 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
10483 and aspace to the inferior before calling clone_program_space.
10484 Remove stale comment.
10485
3050c6f4
CB
104862020-01-24 Christian Biesinger <cbiesinger@google.com>
10487
10488 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
10489 (arm_netbsd_nat_target::fetch_registers): ...this.
10490 (arm_nbsd_nat_target::store_registers): Rename to...
10491 (arm_netbsd_nat_target::store_registers): ...this.
10492
73685c7e
CB
104932020-01-24 Christian Biesinger <cbiesinger@google.com>
10494
10495 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
10496 register_t.
10497
89203d40
CB
104982020-01-24 Christian Biesinger <cbiesinger@google.com>
10499
10500 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
10501 Update comment.
10502 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
10503 Likewise.
10504 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
10505 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
10506 the correct replacement (iterate_over_regset_sections).
10507 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
10508 Update comment.
10509
1ba1ac88
AB
105102020-01-24 Graham Markall <graham.markall@embecosm.com>
10511
10512 PR gdb/23718
10513 * gdb/python/python.c (execute_gdb_command): Call
10514 async_enable_stdin in catch block.
10515
f3364a6d
AB
105162020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10517
10518 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
10519 SWITCH_THRU_ALL_UIS.
10520
733d0a67
AB
105212020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10522
10523 PR tui/9765
10524 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
10525 comment, add extra parameter, and update to store previous symbol
10526 when appropriate.
10527 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
10528 add extra parameter.
10529 * tui/tui-disasm.c (tui_disassemble): Update header comment,
10530 remove unneeded parameter, add try/catch around gdb_print_insn,
10531 rewrite to add items to asm_lines vector.
10532 (tui_find_backward_disassembly_start_address): New function.
10533 (tui_find_disassembly_address): Updated throughout.
10534 (tui_disasm_window::set_contents): Update for changes to
10535 tui_disassemble.
10536 (tui_disasm_window::do_scroll_vertical): No need to adjust the
10537 number of lines to scroll.
10538
b3b3bada
SM
105392020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
10540
10541 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
10542 (SECT_OFF_DATA): Likewise.
10543 (SECT_OFF_RODATA): Likewise.
10544 (SECT_OFF_TEXT): Likewise.
10545 (SECT_OFF_BSS): Likewise.
10546 (struct objfile) <text_section_offset, data_section_offset>: New
10547 methods.
10548 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
10549 objfile::text_section_offset.
10550 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
10551 * coffread.c (coff_symtab_read): Likewise.
10552 (enter_linenos): Likewise.
10553 (process_coff_symbol): Likewise.
10554 * ctfread.c (get_objfile_text_range): Likewise.
10555 * dtrace-probe.c (dtrace_probe::get_relocated_address):
10556 Use objfile::data_section_offset.
10557 * dwarf2-frame.c (execute_cfa_program): Use
10558 objfile::text_section_offset.
10559 (dwarf2_frame_find_fde): Likewise.
10560 * dwarf2read.c (create_addrmap_from_index): Likewise.
10561 (create_addrmap_from_aranges): Likewise.
10562 (dw2_find_pc_sect_compunit_symtab): Likewise.
10563 (process_psymtab_comp_unit_reader): Likewise.
10564 (add_partial_symbol): Likewise.
10565 (add_partial_subprogram): Likewise.
10566 (process_full_comp_unit): Likewise.
10567 (read_file_scope): Likewise.
10568 (read_func_scope): Likewise.
10569 (read_lexical_block_scope): Likewise.
10570 (read_call_site_scope): Likewise.
10571 (dwarf2_rnglists_process): Likewise.
10572 (dwarf2_ranges_process): Likewise.
10573 (dwarf2_ranges_read): Likewise.
10574 (dwarf_decode_lines_1): Likewise.
10575 (new_symbol): Likewise.
10576 (dwarf2_fetch_die_loc_sect_off): Likewise.
10577 (dwarf2_per_cu_text_offset): Likewise.
10578 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
10579 * hppa-tdep.c (read_unwind_info): Likewise.
10580 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
10581 * psympriv.h (struct partial_symtab): Likewise.
10582 * psymtab.c (find_pc_sect_psymtab): Likewise.
10583 * solib-svr4.c (enable_break): Likewise.
10584 * stap-probe.c (relocate_address): Use
10585 objfile::data_section_offset.
10586 * xcoffread.c (enter_line_range): Use
10587 objfile::text_section_offset.
10588 (read_xcoff_symtab): Likewise.
10589
ab53f382
SM
105902020-01-23 Simon Marchi <simon.marchi@efficios.com>
10591
10592 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
10593 declaration to narrower scopes.
10594
e7eee665
SM
105952020-01-23 Simon Marchi <simon.marchi@efficios.com>
10596
10597 * darwin-nat.h (struct darwin_exception_msg, enum
10598 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
10599 Move up.
10600 (class darwin_nat_target) <wait_1, check_new_threads,
10601 decode_exception_message, decode_message, stop_inferior,
10602 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
10603 * darwin-nat.c (darwin_check_new_threads): Rename to...
10604 (darwin_nat_target::check_new_threads): ... this.
10605 (darwin_suspend_inferior_it): Remove.
10606 (darwin_decode_exception_message): Rename to...
10607 (darwin_nat_target::decode_exception_message): ... this.
10608 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
10609 (darwin_decode_message): Rename to...
10610 (darwin_nat_target::decode_message): ... this.
10611 (cancel_breakpoint): Rename to...
10612 (darwin_nat_target::cancel_breakpoint): ... this.
10613 (darwin_wait): Rename to...
10614 (darwin_nat_target::wait_1): ... this. Use range-based for loop
10615 instead of iterate_over_inferiors.
10616 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
10617 (darwin_stop_inferior): Rename to...
10618 (darwin_nat_target::stop_inferior): ... this.
10619 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
10620 (darwin_init_thread_list): Rename to...
10621 (darwin_nat_target::init_thread_list): ... this.
10622 (darwin_ptrace_him): Rename to...
10623 (darwin_nat_target::ptrace_him): ... this.
10624 (darwin_nat_target::create_inferior): Pass lambda function to
10625 fork_inferior.
10626 (darwin_nat_target::detach): Call stop_inferior instead of
10627 darwin_stop_inferior.
10628 * fork-inferior.h (fork_inferior): Change init_trace_fun
10629 parameter to gdb::function_view.
10630 * fork-inferior.c (fork_inferior): Likewise.
10631
c162ed3e
HD
106322020-01-23 Hannes Domani <ssbssa@yahoo.de>
10633
10634 * i386-cygwin-tdep.c (core_process_module_section): Update.
10635 * windows-nat.c (struct lm_info_windows): Add text_offset.
10636 (windows_xfer_shared_libraries): Update.
10637 * windows-tdep.c (windows_xfer_shared_library):
10638 Add text_offset_cached argument.
10639 * windows-tdep.h (windows_xfer_shared_library): Update.
10640
a1237872
SM
106412020-01-21 Simon Marchi <simon.marchi@efficios.com>
10642
10643 * gdbarch.sh: Add declaration for _initialize_gdbarch.
10644
b3ee6dd9
SM
106452020-01-21 Simon Marchi <simon.marchi@efficios.com>
10646
10647 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
10648 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
10649 replace with range-based for.
10650 (gdbsim_interrupt_inferior): Remove.
10651 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
10652 with a range-based for. Inline code from
10653 gdbsim_interrupt_inferior.
10654
f9fac3c8
SM
106552020-01-21 Simon Marchi <simon.marchi@efficios.com>
10656
10657 * infrun.c (proceed): Fix indentation.
10658
f6474de9
TT
106592020-01-21 Tom Tromey <tromey@adacore.com>
10660
10661 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
10662 * python/python.c (python_extension_ops): Update.
10663 (gdbpy_colorize): New function.
10664 * python/lib/gdb/__init__.py (colorize): New function.
10665 * extension.h (ext_lang_colorize): Declare.
10666 * extension.c (ext_lang_colorize): New function.
10667 * extension-priv.h (struct extension_language_ops) <colorize>: New
10668 member.
10669 * cli/cli-style.c (_initialize_cli_style): Update help text.
10670
f0c702d4
LM
106712020-01-21 Luis Machado <luis.machado@linaro.org>
10672
10673 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
10674 <cond>: Change type to bool.
10675 (aarch64_displaced_step_b_cond): Update cond to use bool type.
10676 (aarch64_displaced_step_cb): Likewise.
10677 (aarch64_displaced_step_tb): Likewise.
10678
1ab139e5
LM
106792020-01-21 Luis Machado <luis.machado@linaro.org>
10680
10681 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
10682 output.
10683
0c271889
LM
106842020-01-21 Luis Machado <luis.machado@linaro.org>
10685
10686 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
10687 <pc_adjust>: Adjust the documentation.
10688 (aarch64_displaced_step_fixup): Check if PC really moved before
10689 adjusting it.
10690
4d89c1c7
TT
106912020-01-19 Tom Tromey <tom@tromey.com>
10692
10693 * disasm.c (~gdb_disassembler): New destructor.
10694 (gdb_buffered_insn_length): Call disassemble_free_target.
10695 * disasm.h (class gdb_disassembler): Declare destructor. Use
10696 DISABLE_COPY_AND_ASSIGN.
10697
c0ab21c2
TT
106982020-01-19 Tom Tromey <tom@tromey.com>
10699
10700 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
10701 (die_reader_func_ftype): Remove.
10702 (cutu_reader): New class.
10703 (dw2_get_file_names_reader): Remove "data" parameter.
10704 (dw2_get_file_names): Use cutu_reader.
10705 (create_debug_type_hash_table): Update.
10706 (read_cutu_die_from_dwo): Update comment.
10707 (lookup_dwo_unit): Add dwo_name parameter.
10708 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
10709 die_reader_func_ftype and data parameters.
10710 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
10711 Remove die_reader_func_ftype and data parameters.
10712 (~cutu_reader): New; from init_cutu_and_read_dies.
10713 (cutu_reader::cutu_reader): Rename from
10714 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
10715 and data parameters.
10716 (init_cutu_and_read_dies_simple): Remove.
10717 (struct process_psymtab_comp_unit_data): Remove.
10718 (process_psymtab_comp_unit_reader): Remove data parameter; add
10719 want_partial_unit and pretend_language parameters.
10720 (process_psymtab_comp_unit): Use cutu_reader.
10721 (build_type_psymtabs_reader): Remove data parameter.
10722 (build_type_psymtabs_1): Use cutu_reader.
10723 (process_skeletonless_type_unit): Likewise.
10724 (load_partial_comp_unit_reader): Remove.
10725 (load_partial_comp_unit): Use cutu_reader.
10726 (load_full_comp_unit_reader): Remove.
10727 (load_full_comp_unit): Use cutu_reader.
10728 (struct create_dwo_cu_data): Remove.
10729 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
10730 dwo_unit parameters.
10731 (create_cus_hash_table): Use cutu_reader.
10732 (struct dwarf2_read_addr_index_data): Remove.
10733 (dwarf2_read_addr_index_reader): Remove.
10734 (dwarf2_read_addr_index): Use cutu_reader.
10735 (read_signatured_type_reader): Remove.
10736 (read_signatured_type): Use cutu_reader.
10737
45bbae5c
TT
107382020-01-19 Tom Tromey <tom@tromey.com>
10739
10740 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
10741 * tui/tui-wingeneral.h (class tui_suppress_output): New.
10742 (tui_wrefresh): Declare.
10743 * tui/tui-wingeneral.c (suppress_output): New global.
10744 (tui_suppress_output, ~tui_suppress_output): New constructor and
10745 destructor.
10746 (tui_wrefresh): New function.
10747 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
10748 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
10749 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
10750 method.
10751 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
10752 tui_wrefresh.
10753 (tui_data_window::no_refresh): New method.
10754 (tui_data_item_window::refresh_window): Call tui_wrefresh.
10755 (tui_reg_command): Use tui_suppress_output
10756 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
10757 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
10758 method.
10759 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
10760
4f13c1c0
TT
107612020-01-19 Tom Tromey <tom@tromey.com>
10762
10763 * tui/tui-winsource.c (tui_update_source_windows_with_line):
10764 Handle case where symtab is null.
10765
fa47e446
SM
107662020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
10767
10768 * linux-fork.c (one_fork_p): Simplify.
10769
26f42329
SM
107702020-01-17 Simon Marchi <simon.marchi@efficios.com>
10771
10772 * top.c (struct qt_args): Remove.
10773 (kill_or_detach): Change return type to void, replace `void *`
10774 parameter with a proper one.
10775 (print_inferior_quit_action): Likewise.
10776 (quit_confirm): Use range-based for loop to iterate over inferiors.
10777 (quit_force): Likewise.
10778
a9ac81b1
SM
107792020-01-17 Simon Marchi <simon.marchi@efficios.com>
10780
10781 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
10782 `void *` parameter with proper parameters.
10783 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
10784 (print_one_inferior): Change return type to void, replace `void *`
10785 parameter with proper parameters.
10786 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
10787 inferiors.
10788 (get_other_inferior): Remove.
10789 (mi_cmd_remove_inferior): Use range-based loop to iterate over
10790 inferiors.
10791
788eca49
SM
107922020-01-17 Simon Marchi <simon.marchi@efficios.com>
10793
10794 * mi/mi-interp.c (report_initial_inferior): Remove.
10795 (mi_interp::init): Use range-based for to iterate over inferiors.
10796
d9bc85b6
SM
107972020-01-17 Simon Marchi <simon.marchi@efficios.com>
10798
10799 * python/py-inferior.c (build_inferior_list): Remove.
10800 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
10801
40c94099
CB
108022020-01-16 Christian Biesinger <cbiesinger@google.com>
10803
10804 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
10805 (btrace_stitch_trace): Likewise.
10806 * charset.c (intermediate_encoding): Likewise (vaild).
10807 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
10808 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
10809 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
10810
e0cdfe3c
HD
108112020-01-16 Hannes Domani <ssbssa@yahoo.de>
10812
10813 * windows-tdep.c (windows_get_tlb_type):
10814 Add rtl_user_process_parameters type.
10815
790f1718 108162020-01-16 Pedro Alves <palves@redhat.com>
aac66a4c 10817 Norbert Lange <nolange79@gmail.com>
790f1718
PA
10818
10819 PR build/24805
10820 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
10821 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
10822 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
10823 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
10824 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
10825 (ps_plog): Redeclare exported functions with default visibility.
10826
3112ed97
NA
108272020-01-16 Nitika Achra <Nitika.Achra@amd.com>
10828
10829 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
10830 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
10831
8dc3273e
SM
108322020-01-15 Simon Marchi <simon.marchi@efficios.com>
10833
10834 * infcmd.c (post_create_inferior): Use get_thread_regcache
10835 instead of get_current_regcache.
10836
ff47f4f0
TT
108372020-01-14 Tom Tromey <tom@tromey.com>
10838
10839 PR symtab/12535:
10840 * python/python.c (gdbpy_decode_line): Treat empty string the same
10841 as no argument.
10842
975f45b7
TT
108432020-01-14 Tom Tromey <tom@tromey.com>
10844
10845 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
10846
25e57356
TT
108472020-01-14 Tom Tromey <tom@tromey.com>
10848
10849 * nat/linux-btrace.c: Don't include <config.h>.
10850 * nat/linux-ptrace.c: Don't include <config.h>.
10851 * nat/x86-linux-dregs.c: Don't include <config.h>.
10852
05ea2a05
TT
108532020-01-14 Tom Tromey <tom@tromey.com>
10854
10855 * configure: Rebuild.
10856 * configure.ac: Move many checks to ../gdbsupport/common.m4.
10857
01027315
TT
108582020-01-14 Tom Tromey <tom@tromey.com>
10859
10860 * nat/x86-linux-dregs.c: Include configh.h.
10861 * nat/linux-ptrace.c: Include configh.h.
10862 * nat/linux-btrace.c: Include configh.h.
10863 * defs.h: Include config.h, bfd.h.
10864 * configure.ac: Don't source common.host.
10865 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
10866 * configure: Rebuild.
10867 * acinclude.m4: Update path.
10868 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
10869 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
10870 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
10871 (CLIBS): Add LIBSUPPORT.
10872 (CDEPS): Likewise.
10873 (COMMON_SFILES): Remove gdbsupport files.
10874 (HFILES_NO_SRCDIR): Likewise.
10875 (stamp-version): Update path to create-version.sh.
10876 (ALLDEPFILES): Remove gdbsupport files.
10877
b2ceabe8
TT
108782020-01-14 Tom Tromey <tom@tromey.com>
10879
10880 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
10881 USE_WIN32API when needed.
10882 * configure.ac (USE_WIN32API): Don't define.
10883 (WIN32LIBS): Use WIN32APILIBS.
10884 * configure: Rebuild.
10885
25c51f71
TT
108862020-01-14 Tom Tromey <tom@tromey.com>
10887
10888 * configure: Rebuild.
10889 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
10890
717c684d
BE
108912020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
10892
10893 * skip.c (skip_function_command): Make skip w/o arguments use the
10894 name of the inlined function if pc is inside any inlined function.
10895
7da6a5b9
LM
108962020-01-14 Luis Machado <luis.machado@linaro.org>
10897
10898 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
10899 * infrun.c (resume_1): Likewise.
10900 (handle_inferior_event): Remove stale comment.
10901 * linux-nat.c (linux_nat_target::resume): Update comments.
10902 (save_stop_reason): Likewise.
10903 (linux_nat_filter_event): Likewise.
10904 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
10905
44e4c775
AB
109062020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
10907
10908 * elfread.c (record_minimal_symbol): Set section index to 0 for
10909 non-allocatable sections.
10910
18a8505e
AT
10911
109122020-01-13 Ali Tamur <tamur@google.com>
10913
10914 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
10915 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
10916 to gdb::optional. Update comments.
10917 (dwo_file): Update comments.
10918 (read_attribute): Update API to take an additional out parameter,
10919 need_reprocess. This is used to mark attributes that need other
10920 attributes (e.g. str_offsets_base) for correct computation which may not
10921 have been read yet.
10922 (read_attribute_reprocess): New function declaration.
10923 (read_addr_index): Likewise.
10924 (read_dwo_str_index): Likewise.
10925 (read_stub_str_index): Likewise.
10926 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
10927 (lookup_addr_base): New function definition.
10928 (lookup_ranges_base): Likewise.
10929 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
10930 lookup_ranges_base.
10931 (init_cutu_and_read_dies): Update comments.
10932 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
10933 unit. This is used to inherit parent's str_offsets_base and addr_base.
10934 Update comments.
10935 (init_cutu_and_read_dies_simple): Reflect API changes.
10936 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
10937 (create_cus_hash_table): Change API to take parent compile unit.
10938 Reflect API changes.
10939 (open_and_init_dwo_file): Reflect API changes.
10940 (dwarf2_get_pc_bounds): Update comments.
10941 (dwarf2_record_block_ranges): Likewise.
10942 (read_full_die_1): Change implementation to reprocess attributes that
10943 need str_offsets_base and addr_base.
10944 (partial_die_info::read): Likewise.
10945 (read_attribute_reprocess): New function definition.
10946 (read_attribute_value): Change API to take an additional out parameter,
10947 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
10948 when a non-dwo compile unit has index based attributes.
10949 (read_attribute): Reflect API changes.
10950 (read_addr_index_1): Reflect API changes. Update comments.
10951 (dwarf2_read_addr_index_data): Reflect API changes.
10952 (dwarf2_read_addr_index): Likewise.
10953 (read_str_index): Change API and implementation. This becomes a helper
10954 to be used by the new string index related methods. Update error
10955 message and comments.
10956 (read_dwo_str_index): New function definition.
10957 (read_stub_str_index): Likewise.
10958 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
10959 * symfile.h (dwarf2_debug_sections): Likewise.
10960 * xcoffread.c (dwarf2_debug_sections): Likewise.
10961
0cac9354
SM
109622020-01-13 Simon Marchi <simon.marchi@efficios.com>
10963
10964 * gdbcore.h (struct core_fns) <core_read_registers>: Change
10965 core_reg_sect type to gdb_byte *.
10966 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
10967 * cris-tdep.c (fetch_core_registers): Likewise.
10968 * corelow.c (core_target::get_core_register_section): Change
10969 type of `contents` to gdb::byte_vector.
10970
9a6d629c
AB
109712020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
10972
10973 * tui/tui-wingeneral.c (box_win): Position the title in the center
10974 of the border.
10975
d8b2f9e3
SM
109762020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
10977
10978 * corelow.c (core_target::get_core_register_section): Use
10979 std::vector instead of alloca.
10980
bb564c58
SM
109812020-01-13 Simon Marchi <simon.marchi@efficios.com>
10982
10983 * warning.m4: Add -Wmissing-declarations to build_warnings.
10984 * configure: Re-generate.
10985
6b366111
SM
109862020-01-13 Simon Marchi <simon.marchi@efficios.com>
10987
10988 * python/python.c (init__gdb_module): Add declaration.
10989
6c265988
SM
109902020-01-13 Simon Marchi <simon.marchi@efficios.com>
10991
10992 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
10993 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
10994 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
10995 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
10996 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
10997 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
10998 * ada-exp.y (_initialize_ada_exp): Add declaration.
10999 * ada-lang.c (_initialize_ada_language): Add declaration.
11000 * ada-tasks.c (_initialize_tasks): Add declaration.
11001 * agent.c (_initialize_agent): Add declaration.
11002 * aix-thread.c (_initialize_aix_thread): Add declaration.
11003 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
11004 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
11005 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
11006 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
11007 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
11008 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
11009 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
11010 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
11011 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
11012 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
11013 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
11014 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
11015 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
11016 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
11017 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
11018 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
11019 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
11020 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
11021 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
11022 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
11023 * annotate.c (_initialize_annotate): Add declaration.
11024 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
11025 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
11026 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
11027 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
11028 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
11029 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
11030 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
11031 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
11032 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
11033 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
11034 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
11035 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
11036 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
11037 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
11038 * auto-load.c (_initialize_auto_load): Add declaration.
11039 * auxv.c (_initialize_auxv): Add declaration.
11040 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
11041 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
11042 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
11043 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
11044 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
11045 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
11046 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
11047 * breakpoint.c (_initialize_breakpoint): Add declaration.
11048 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
11049 * btrace.c (_initialize_btrace): Add declaration.
11050 * charset.c (_initialize_charset): Add declaration.
11051 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
11052 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
11053 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
11054 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
11055 * cli/cli-script.c (_initialize_cli_script): Add declaration.
11056 * cli/cli-style.c (_initialize_cli_style): Add declaration.
11057 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
11058 * coffread.c (_initialize_coffread): Add declaration.
11059 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
11060 * compile/compile.c (_initialize_compile): Add declaration.
11061 * complaints.c (_initialize_complaints): Add declaration.
11062 * completer.c (_initialize_completer): Add declaration.
11063 * copying.c (_initialize_copying): Add declaration.
11064 * corefile.c (_initialize_core): Add declaration.
11065 * corelow.c (_initialize_corelow): Add declaration.
11066 * cp-abi.c (_initialize_cp_abi): Add declaration.
11067 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
11068 * cp-support.c (_initialize_cp_support): Add declaration.
11069 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
11070 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
11071 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
11072 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
11073 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
11074 * ctfread.c (_initialize_ctfread): Add declaration.
11075 * d-lang.c (_initialize_d_language): Add declaration.
11076 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
11077 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
11078 * dbxread.c (_initialize_dbxread): Add declaration.
11079 * dcache.c (_initialize_dcache): Add declaration.
11080 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
11081 * disasm.c (_initialize_disasm): Add declaration.
11082 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
11083 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
11084 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
11085 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
11086 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
11087 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
11088 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
11089 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
11090 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
11091 * elfread.c (_initialize_elfread): Add declaration.
11092 * exec.c (_initialize_exec): Add declaration.
11093 * extension.c (_initialize_extension): Add declaration.
11094 * f-lang.c (_initialize_f_language): Add declaration.
11095 * f-valprint.c (_initialize_f_valprint): Add declaration.
11096 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
11097 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
11098 * filesystem.c (_initialize_filesystem): Add declaration.
11099 * findcmd.c (_initialize_mem_search): Add declaration.
11100 * findvar.c (_initialize_findvar): Add declaration.
11101 * fork-child.c (_initialize_fork_child): Add declaration.
11102 * frame-base.c (_initialize_frame_base): Add declaration.
11103 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
11104 * frame.c (_initialize_frame): Add declaration.
11105 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
11106 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
11107 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
11108 * gcore.c (_initialize_gcore): Add declaration.
11109 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
11110 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
11111 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
11112 * gdbarch.c (_initialize_gdbarch): Add declaration.
11113 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
11114 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
11115 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
11116 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
11117 * go-lang.c (_initialize_go_language): Add declaration.
11118 * go32-nat.c (_initialize_go32_nat): Add declaration.
11119 * guile/guile.c (_initialize_guile): Add declaration.
11120 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
11121 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
11122 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
11123 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
11124 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
11125 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
11126 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
11127 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
11128 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
11129 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
11130 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
11131 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
11132 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
11133 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
11134 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
11135 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
11136 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
11137 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
11138 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
11139 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
11140 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
11141 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
11142 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
11143 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
11144 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
11145 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
11146 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
11147 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
11148 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
11149 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
11150 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
11151 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
11152 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
11153 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
11154 * infcall.c (_initialize_infcall): Add declaration.
11155 * infcmd.c (_initialize_infcmd): Add declaration.
11156 * inflow.c (_initialize_inflow): Add declaration.
11157 * infrun.c (_initialize_infrun): Add declaration.
11158 * interps.c (_initialize_interpreter): Add declaration.
11159 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
11160 * jit.c (_initialize_jit): Add declaration.
11161 * language.c (_initialize_language): Add declaration.
11162 * linux-fork.c (_initialize_linux_fork): Add declaration.
11163 * linux-nat.c (_initialize_linux_nat): Add declaration.
11164 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
11165 * linux-thread-db.c (_initialize_thread_db): Add declaration.
11166 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
11167 * m2-lang.c (_initialize_m2_language): Add declaration.
11168 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
11169 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
11170 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
11171 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
11172 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
11173 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
11174 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
11175 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
11176 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
11177 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
11178 * machoread.c (_initialize_machoread): Add declaration.
11179 * macrocmd.c (_initialize_macrocmd): Add declaration.
11180 * macroscope.c (_initialize_macroscope): Add declaration.
11181 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
11182 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
11183 * maint.c (_initialize_maint_cmds): Add declaration.
11184 * mdebugread.c (_initialize_mdebugread): Add declaration.
11185 * memattr.c (_initialize_mem): Add declaration.
11186 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
11187 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
11188 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
11189 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
11190 * mi/mi-main.c (_initialize_mi_main): Add declaration.
11191 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
11192 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
11193 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
11194 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
11195 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
11196 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
11197 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
11198 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
11199 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
11200 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
11201 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
11202 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
11203 * mipsread.c (_initialize_mipsread): Add declaration.
11204 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
11205 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
11206 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
11207 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
11208 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
11209 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
11210 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
11211 * nto-procfs.c (_initialize_procfs): Add declaration.
11212 * objc-lang.c (_initialize_objc_language): Add declaration.
11213 * observable.c (_initialize_observer): Add declaration.
11214 * opencl-lang.c (_initialize_opencl_language): Add declaration.
11215 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
11216 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
11217 * osabi.c (_initialize_gdb_osabi): Add declaration.
11218 * osdata.c (_initialize_osdata): Add declaration.
11219 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
11220 * parse.c (_initialize_parse): Add declaration.
11221 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
11222 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
11223 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
11224 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
11225 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
11226 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
11227 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
11228 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
11229 * printcmd.c (_initialize_printcmd): Add declaration.
11230 * probe.c (_initialize_probe): Add declaration.
11231 * proc-api.c (_initialize_proc_api): Add declaration.
11232 * proc-events.c (_initialize_proc_events): Add declaration.
11233 * proc-service.c (_initialize_proc_service): Add declaration.
11234 * procfs.c (_initialize_procfs): Add declaration.
11235 * producer.c (_initialize_producer): Add declaration.
11236 * psymtab.c (_initialize_psymtab): Add declaration.
11237 * python/python.c (_initialize_python): Add declaration.
11238 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
11239 * record-btrace.c (_initialize_record_btrace): Add declaration.
11240 * record-full.c (_initialize_record_full): Add declaration.
11241 * record.c (_initialize_record): Add declaration.
11242 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
11243 * regcache.c (_initialize_regcache): Add declaration.
11244 * reggroups.c (_initialize_reggroup): Add declaration.
11245 * remote-notif.c (_initialize_notif): Add declaration.
11246 * remote-sim.c (_initialize_remote_sim): Add declaration.
11247 * remote.c (_initialize_remote): Add declaration.
11248 * reverse.c (_initialize_reverse): Add declaration.
11249 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
11250 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
11251 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
11252 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
11253 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
11254 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
11255 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
11256 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
11257 Add declaration.
11258 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
11259 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
11260 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
11261 * rust-exp.y (_initialize_rust_exp): Add declaration.
11262 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
11263 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
11264 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
11265 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
11266 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
11267 * score-tdep.c (_initialize_score_tdep): Add declaration.
11268 * ser-go32.c (_initialize_ser_dos): Add declaration.
11269 * ser-mingw.c (_initialize_ser_windows): Add declaration.
11270 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
11271 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
11272 * ser-uds.c (_initialize_ser_socket): Add declaration.
11273 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
11274 * serial.c (_initialize_serial): Add declaration.
11275 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
11276 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
11277 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
11278 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
11279 * skip.c (_initialize_step_skip): Add declaration.
11280 * sol-thread.c (_initialize_sol_thread): Add declaration.
11281 * solib-aix.c (_initialize_solib_aix): Add declaration.
11282 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
11283 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
11284 * solib-frv.c (_initialize_frv_solib): Add declaration.
11285 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
11286 * solib-target.c (_initialize_solib_target): Add declaration.
11287 * solib.c (_initialize_solib): Add declaration.
11288 * source-cache.c (_initialize_source_cache): Add declaration.
11289 * source.c (_initialize_source): Add declaration.
11290 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
11291 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
11292 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
11293 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
11294 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
11295 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
11296 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
11297 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
11298 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
11299 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
11300 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
11301 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
11302 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
11303 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
11304 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
11305 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
11306 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
11307 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
11308 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
11309 * stabsread.c (_initialize_stabsread): Add declaration.
11310 * stack.c (_initialize_stack): Add declaration.
11311 * stap-probe.c (_initialize_stap_probe): Add declaration.
11312 * std-regs.c (_initialize_frame_reg): Add declaration.
11313 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
11314 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
11315 * symfile.c (_initialize_symfile): Add declaration.
11316 * symmisc.c (_initialize_symmisc): Add declaration.
11317 * symtab.c (_initialize_symtab): Add declaration.
11318 * target.c (_initialize_target): Add declaration.
11319 * target-connection.c (_initialize_target_connection): Add
11320 declaration.
11321 * target-dcache.c (_initialize_target_dcache): Add declaration.
11322 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
11323 * thread.c (_initialize_thread): Add declaration.
11324 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
11325 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
11326 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
11327 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
11328 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
11329 * tracectf.c (_initialize_ctf): Add declaration.
11330 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
11331 * tracefile.c (_initialize_tracefile): Add declaration.
11332 * tracepoint.c (_initialize_tracepoint): Add declaration.
11333 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
11334 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
11335 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
11336 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
11337 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
11338 * tui/tui-win.c (_initialize_tui_win): Add declaration.
11339 * tui/tui.c (_initialize_tui): Add declaration.
11340 * typeprint.c (_initialize_typeprint): Add declaration.
11341 * ui-style.c (_initialize_ui_style): Add declaration.
11342 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
11343 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
11344 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
11345 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
11346 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
11347 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
11348 * unittests/filtered_iterator-selftests.c
11349 (_initialize_filtered_iterator_selftests): Add declaration.
11350 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
11351 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
11352 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
11353 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
11354 * unittests/main-thread-selftests.c
11355 (_initialize_main_thread_selftests): Add declaration.
11356 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
11357 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
11358 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
11359 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
11360 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
11361 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
11362 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
11363 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
11364 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
11365 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
11366 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
11367 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
11368 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
11369 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
11370 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
11371 declaration.
11372 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
11373 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
11374 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
11375 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
11376 * user-regs.c (_initialize_user_regs): Add declaration.
11377 * utils.c (_initialize_utils): Add declaration.
11378 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
11379 * valops.c (_initialize_valops): Add declaration.
11380 * valprint.c (_initialize_valprint): Add declaration.
11381 * value.c (_initialize_values): Add declaration.
11382 * varobj.c (_initialize_varobj): Add declaration.
11383 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
11384 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
11385 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
11386 * windows-nat.c (_initialize_windows_nat): Add declaration.
11387 (_initialize_check_for_gdb_ini): Add declaration.
11388 (_initialize_loadable): Add declaration.
11389 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
11390 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
11391 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
11392 * xcoffread.c (_initialize_xcoffread): Add declaration.
11393 * xml-support.c (_initialize_xml_support): Add declaration.
11394 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
11395 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
11396 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
11397 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
11398
e2de1eec
SM
113992020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
11400
11401 * regformats/regdat.sh: Generate declaration for init function.
11402
e0037b4c
SM
114032020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
11404
11405 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
11406 up.
11407 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
11408 close_one_inferior>: New methods.
11409 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
11410 pass down target to find_inferior_pid.
11411 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
11412 Pass down target to find_inferior_ptid.
11413 (gdbsim_target::create_inferior): Pass down target to
11414 add_thread_silent.
11415 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
11416 target down to find_inferior_ptid and switch_to_thread.
11417 (gdbsim_target::close): Update to call close_one_inferior.
11418 (struct resume_data): Remove.
11419 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
11420 directly, rather than through a void pointer.
11421 (gdbsim_target::resume): Update to call resume_one_inferior.
11422
58920b5b
SM
114232020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
11424
11425 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
11426
4ec89149
PA
114272020-01-12 Pedro Alves <palves@redhat.com>
11428
11429 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
11430 directly for the current inferior instead of
11431 discard_all_inferiors.
11432 (discard_all_inferiors): Delete.
11433
7c392d1d
TT
114342020-01-11 Tom Tromey <tom@tromey.com>
11435
11436 * tui/tui-wingeneral.c (box_win): Check cli_styling.
11437 * tui/tui-winsource.c (tui_source_window_base::refill): Use
11438 deprecated_safe_get_selected_frame.
11439
d9ebdab7
TBA
114402020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11441
11442 * inferior.c (print_inferior): Switch inferior before printing it.
11443
f3c469b9
PA
114442020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
11445 Pedro Alves <palves@redhat.com>
11446
11447 * progspace-and-thread.c (switch_to_program_space_and_thread):
11448 Assert there's an inferior for PSPACE. Use
11449 switch_to_inferior_no_thread to switch the inferior too.
11450 * progspace.c (program_space::~program_space): Call
11451 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
11452 (program_space::free_all_objfiles): Don't call clear_symtab_users
11453 here.
11454 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
11455
65c574f6
PA
114562020-01-10 Pedro Alves <palves@redhat.com>
11457
11458 * NEWS: Mention multi-target debugging, "info connections", and
11459 "add-inferior -no-connection".
11460
2f4fcf00
PA
114612020-01-10 Pedro Alves <palves@redhat.com>
11462
11463 * infrun.c: Include "target-connection.h".
11464 (check_multi_target_resumption): New.
11465 (proceed): Call it.
11466 * target-connection.c (make_target_connection_string): Make
11467 extern.
11468 * target-connection.h (make_target_connection_string): Declare.
11469
121b3efd
PA
114702020-01-10 Pedro Alves <palves@redhat.com>
11471
11472 * Makefile.in (COMMON_SFILES): Add target-connection.c.
11473 * inferior.c (uiout_field_connection): New function.
11474 (print_inferior): Add new "connection-id" column.
11475 (add_inferior_command): Show connection number/string of added
11476 inferior.
11477 * process-stratum-target.h
11478 (process_stratum_target::connection_string): New virtual method.
11479 (process_stratum_target::connection_number): New field.
11480 * remote.c (remote_target::connection_string): New override.
11481 * target-connection.c: New file.
11482 * target-connection.h: New file.
11483 * target.c (decref_target): Remove process_stratum targets from
11484 the connection list.
11485 (target_stack::push): Add process_stratum targets to the
11486 connection list.
11487
4f837581
PA
114882020-01-10 Pedro Alves <palves@redhat.com>
11489
11490 Revert:
11491 2016-04-12 Pedro Alves <palves@redhat.com>
11492 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
11493 Remove references to name.
11494 * serial.h (struct serial) <name>: Delete.
11495
f4ec508e
PA
114962020-01-10 Pedro Alves <palves@redhat.com>
11497
11498 * gdbarch-selftests.c (register_to_value_test): Remove "target
11499 already pushed" check.
11500
5b6d1e4f
PA
115012020-01-10 Pedro Alves <palves@redhat.com>
11502 John Baldwin <jhb@FreeBSD.org>
11503
11504 * aarch64-linux-nat.c
11505 (aarch64_linux_nat_target::thread_architecture): Adjust.
11506 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
11507 (task_command_1): Likewise.
11508 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
11509 (aix_thread_target::wait, aix_thread_target::fetch_registers)
11510 (aix_thread_target::store_registers)
11511 (aix_thread_target::thread_alive): Adjust.
11512 * amd64-fbsd-tdep.c: Include "inferior.h".
11513 (amd64fbsd_get_thread_local_address): Pass down target.
11514 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
11515 thread's gdbarch instead of target_gdbarch.
11516 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
11517 get_last_target_status.
11518 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
11519 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
11520 inferiors.
11521 (update_inserted_breakpoint_locations): Skip if inferiors with no
11522 execution.
11523 (update_global_location_list): When handling moribund locations,
11524 find representative inferior for location's pspace, and use thread
11525 count of its process_stratum target.
11526 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
11527 * bsd-uthread.c (bsd_uthread_target::wait): Use
11528 as_process_stratum_target and adjust thread_change_ptid and
11529 add_thread calls.
11530 (bsd_uthread_target::update_thread_list): Use
11531 as_process_stratum_target and adjust find_thread_ptid,
11532 thread_change_ptid and add_thread calls.
11533 * btrace.c (maint_btrace_packet_history_cmd): Adjust
11534 find_thread_ptid call.
11535 * corelow.c (add_to_thread_list): Adjust add_thread call.
11536 (core_target_open): Adjust add_thread_silent and thread_count
11537 calls.
11538 (core_target::pid_to_str): Adjust find_inferior_ptid call.
11539 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
11540 * event-top.c (async_disconnect): Pop targets from all inferiors.
11541 * exec.c (add_target_sections): Push exec target on all inferiors
11542 sharing the program space.
11543 (remove_target_sections): Remove the exec target from all
11544 inferiors sharing the program space.
11545 (exec_on_vfork): New.
11546 * exec.h (exec_on_vfork): Declare.
11547 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
11548 Pass it down.
11549 (fbsd_nat_target::update_thread_list): Adjust.
11550 (fbsd_nat_target::resume): Adjust.
11551 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
11552 down.
11553 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
11554 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
11555 get_thread_arch_regcache call.
11556 * fork-child.c (gdb_startup_inferior): Pass target down to
11557 startup_inferior and set_executing.
11558 * gdbthread.h (struct process_stratum_target): Forward declare.
11559 (add_thread, add_thread_silent, add_thread_with_info)
11560 (in_thread_list): Add process_stratum_target parameter.
11561 (find_thread_ptid(inferior*, ptid_t)): New overload.
11562 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
11563 parameter.
11564 (all_threads()): Delete overload.
11565 (all_threads, all_non_exited_threads): Add process_stratum_target
11566 parameter.
11567 (all_threads_safe): Use brace initialization.
11568 (thread_count): Add process_stratum_target parameter.
11569 (set_resumed, set_running, set_stop_requested, set_executing)
11570 (threads_are_executing, finish_thread_state): Add
11571 process_stratum_target parameter.
11572 (switch_to_thread): Use is_current_thread.
11573 * i386-fbsd-tdep.c: Include "inferior.h".
11574 (i386fbsd_get_thread_local_address): Pass down target.
11575 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
11576 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
11577 have_inferiors check.
11578 * inf-ptrace.c (inf_ptrace_target::create_inferior)
11579 (inf_ptrace_target::attach): Adjust.
11580 * infcall.c (run_inferior_call): Adjust.
11581 * infcmd.c (run_command_1): Pass target to
11582 scoped_finish_thread_state.
11583 (proceed_thread_callback): Skip inferiors with no execution.
11584 (continue_command): Rename 'all_threads' local to avoid hiding
11585 'all_threads' function. Adjust get_last_target_status call.
11586 (prepare_one_step): Adjust set_running call.
11587 (signal_command): Use user_visible_resume_target. Compare thread
11588 pointers instead of inferior_ptid.
11589 (info_program_command): Adjust to pass down target.
11590 (attach_command): Mark target's 'thread_executing' flag.
11591 (stop_current_target_threads_ns): New, factored out from ...
11592 (interrupt_target_1): ... this. Switch inferior before making
11593 target calls.
11594 * inferior-iter.h
11595 (struct all_inferiors_iterator, struct all_inferiors_range)
11596 (struct all_inferiors_safe_range)
11597 (struct all_non_exited_inferiors_range): Filter on
11598 process_stratum_target too. Remove explicit.
11599 * inferior.c (inferior::inferior): Push dummy target on target
11600 stack.
11601 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
11602 Add process_stratum_target parameter, and pass it down.
11603 (have_live_inferiors): Adjust.
11604 (switch_to_inferior_and_push_target): New.
11605 (add_inferior_command, clone_inferior_command): Handle
11606 "-no-connection" parameter. Use
11607 switch_to_inferior_and_push_target.
11608 (_initialize_inferior): Mention "-no-connection" option in
11609 the help of "add-inferior" and "clone-inferior" commands.
11610 * inferior.h: Include "process-stratum-target.h".
11611 (interrupt_target_1): Use bool.
11612 (struct inferior) <push_target, unpush_target, target_is_pushed,
11613 find_target_beneath, top_target, process_target, target_at,
11614 m_stack>: New.
11615 (discard_all_inferiors): Delete.
11616 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
11617 (all_inferiors, all_non_exited_inferiors): Add
11618 process_stratum_target parameter.
11619 * infrun.c: Include "gdb_select.h" and <unordered_map>.
11620 (target_last_proc_target): New global.
11621 (follow_fork_inferior): Push target on new inferior. Pass target
11622 to add_thread_silent. Call exec_on_vfork. Handle target's
11623 reference count.
11624 (follow_fork): Adjust get_last_target_status call. Also consider
11625 target.
11626 (follow_exec): Push target on new inferior.
11627 (struct execution_control_state) <target>: New field.
11628 (user_visible_resume_target): New.
11629 (do_target_resume): Call target_async.
11630 (resume_1): Set target's threads_executing flag. Consider resume
11631 target.
11632 (commit_resume_all_targets): New.
11633 (proceed): Also consider resume target. Skip threads of inferiors
11634 with no execution. Commit resumtion in all targets.
11635 (start_remote): Pass current inferior to wait_for_inferior.
11636 (infrun_thread_stop_requested): Consider target as well. Pass
11637 thread_info pointer to clear_inline_frame_state instead of ptid.
11638 (infrun_thread_thread_exit): Consider target as well.
11639 (random_pending_event_thread): New inferior parameter. Use it.
11640 (do_target_wait): Rename to ...
11641 (do_target_wait_1): ... this. Add inferior parameter, and pass it
11642 down.
11643 (threads_are_resumed_pending_p, do_target_wait): New.
11644 (prepare_for_detach): Adjust calls.
11645 (wait_for_inferior): New inferior parameter. Handle it. Use
11646 do_target_wait_1 instead of do_target_wait.
11647 (fetch_inferior_event): Adjust. Switch to representative
11648 inferior. Pass target down.
11649 (set_last_target_status): Add process_stratum_target parameter.
11650 Save target in global.
11651 (get_last_target_status): Add process_stratum_target parameter and
11652 handle it.
11653 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
11654 (context_switch): Check inferior_ptid == null_ptid before calling
11655 inferior_thread().
11656 (get_inferior_stop_soon): Pass down target.
11657 (wait_one): Rename to ...
11658 (poll_one_curr_target): ... this.
11659 (struct wait_one_event): New.
11660 (wait_one): New.
11661 (stop_all_threads): Adjust.
11662 (handle_no_resumed, handle_inferior_event): Adjust to consider the
11663 event's target.
11664 (switch_back_to_stepped_thread): Also consider target.
11665 (print_stop_event): Update.
11666 (normal_stop): Update. Also consider the resume target.
11667 * infrun.h (wait_for_inferior): Remove declaration.
11668 (user_visible_resume_target): New declaration.
11669 (get_last_target_status, set_last_target_status): New
11670 process_stratum_target parameter.
11671 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
11672 process_stratum_target parameter, and use it.
11673 (clear_inline_frame_state (thread_info*)): New.
11674 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
11675 process_stratum_target parameter.
11676 (clear_inline_frame_state (thread_info*)): Declare.
11677 * linux-fork.c (delete_checkpoint_command): Pass target down to
11678 find_thread_ptid.
11679 (checkpoint_command): Adjust.
11680 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
11681 instead of just tweaking inferior_ptid.
11682 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
11683 (exit_lwp): Pass target down to find_thread_ptid.
11684 (attach_proc_task_lwp_callback): Pass target down to
11685 add_thread/set_running/set_executing.
11686 (linux_nat_target::attach): Pass target down to
11687 thread_change_ptid.
11688 (get_detach_signal): Pass target down to find_thread_ptid.
11689 Consider last target status's target.
11690 (linux_resume_one_lwp_throw, resume_lwp)
11691 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
11692 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
11693 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
11694 (linux_nat_target::async_wait_fd): New.
11695 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
11696 target down.
11697 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
11698 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
11699 * linux-thread-db.c (struct thread_db_info::process_target): New
11700 field.
11701 (add_thread_db_info): Save target.
11702 (get_thread_db_info): New process_stratum_target parameter. Also
11703 match target.
11704 (delete_thread_db_info): New process_stratum_target parameter.
11705 Also match target.
11706 (thread_from_lwp): Adjust to pass down target.
11707 (thread_db_notice_clone): Pass down target.
11708 (check_thread_db_callback): Pass down target.
11709 (try_thread_db_load_1): Always push the thread_db target.
11710 (try_thread_db_load, record_thread): Pass target down.
11711 (thread_db_target::detach): Pass target down. Always unpush the
11712 thread_db target.
11713 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
11714 target down. Always unpush the thread_db target.
11715 (find_new_threads_callback, thread_db_find_new_threads_2)
11716 (thread_db_target::update_thread_list): Pass target down.
11717 (thread_db_target::pid_to_str): Pass current inferior down.
11718 (thread_db_target::get_thread_local_address): Pass target down.
11719 (thread_db_target::resume, maintenance_check_libthread_db): Pass
11720 target down.
11721 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
11722 * procfs.c (procfs_target::procfs_init_inferior): Declare.
11723 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
11724 (procfs_init_inferior): Rename to ...
11725 (procfs_target::procfs_init_inferior): ... this and adjust.
11726 (procfs_target::create_inferior, procfs_notice_thread)
11727 (procfs_do_thread_registers): Adjust.
11728 * ppc-fbsd-tdep.c: Include "inferior.h".
11729 (ppcfbsd_get_thread_local_address): Pass down target.
11730 * proc-service.c (ps_xfer_memory): Switch current inferior and
11731 program space as well.
11732 (get_ps_regcache): Pass target down.
11733 * process-stratum-target.c
11734 (process_stratum_target::thread_address_space)
11735 (process_stratum_target::thread_architecture): Pass target down.
11736 * process-stratum-target.h
11737 (process_stratum_target::threads_executing): New field.
11738 (as_process_stratum_target): New.
11739 * ravenscar-thread.c
11740 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
11741 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
11742 down.
11743 * record-btrace.c (record_btrace_target::info_record): Adjust.
11744 (record_btrace_target::record_method)
11745 (record_btrace_target::record_is_replaying)
11746 (record_btrace_target::fetch_registers)
11747 (get_thread_current_frame_id, record_btrace_target::resume)
11748 (record_btrace_target::wait, record_btrace_target::stop): Pass
11749 target down.
11750 * record-full.c (record_full_wait_1): Switch to event thread.
11751 Pass target down.
11752 * regcache.c (regcache::regcache)
11753 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
11754 process_stratum_target parameter and handle it.
11755 (current_thread_target): New global.
11756 (get_thread_regcache): Add process_stratum_target parameter and
11757 handle it. Switch inferior before calling target method.
11758 (get_thread_regcache): Pass target down.
11759 (get_thread_regcache_for_ptid): Pass target down.
11760 (registers_changed_ptid): Add process_stratum_target parameter and
11761 handle it.
11762 (registers_changed_thread, registers_changed): Pass target down.
11763 (test_get_thread_arch_aspace_regcache): New.
11764 (current_regcache_test): Define a couple local test_target_ops
11765 instances and use them for testing.
11766 (readwrite_regcache): Pass process_stratum_target parameter.
11767 (cooked_read_test, cooked_write_test): Pass mock_target down.
11768 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
11769 (get_thread_arch_aspace_regcache): Add process_stratum_target
11770 parameter.
11771 (regcache::target): New method.
11772 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
11773 (regcache::registers_changed_ptid): Add process_stratum_target
11774 parameter.
11775 (regcache::m_target): New field.
11776 (registers_changed_ptid): Add process_stratum_target parameter.
11777 * remote.c (remote_state::supports_vCont_probed): New field.
11778 (remote_target::async_wait_fd): New method.
11779 (remote_unpush_and_throw): Add remote_target parameter.
11780 (get_current_remote_target): Adjust.
11781 (remote_target::remote_add_inferior): Push target.
11782 (remote_target::remote_add_thread)
11783 (remote_target::remote_notice_new_inferior)
11784 (get_remote_thread_info): Pass target down.
11785 (remote_target::update_thread_list): Skip threads of inferiors
11786 bound to other targets. (remote_target::close): Don't discard
11787 inferiors. (remote_target::add_current_inferior_and_thread)
11788 (remote_target::process_initial_stop_replies)
11789 (remote_target::start_remote)
11790 (remote_target::remote_serial_quit_handler): Pass down target.
11791 (remote_target::remote_unpush_target): New remote_target
11792 parameter. Unpush the target from all inferiors.
11793 (remote_target::remote_unpush_and_throw): New remote_target
11794 parameter. Pass it down.
11795 (remote_target::open_1): Check whether the current inferior has
11796 execution instead of checking whether any inferior is live. Pass
11797 target down.
11798 (remote_target::remote_detach_1): Pass down target. Use
11799 remote_unpush_target.
11800 (extended_remote_target::attach): Pass down target.
11801 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
11802 (remote_target::append_resumption): Pass down target.
11803 (remote_target::append_pending_thread_resumptions)
11804 (remote_target::remote_resume_with_hc, remote_target::resume)
11805 (remote_target::commit_resume): Pass down target.
11806 (remote_target::remote_stop_ns): Check supports_vCont_probed.
11807 (remote_target::interrupt_query)
11808 (remote_target::remove_new_fork_children)
11809 (remote_target::check_pending_events_prevent_wildcard_vcont)
11810 (remote_target::remote_parse_stop_reply)
11811 (remote_target::process_stop_reply): Pass down target.
11812 (first_remote_resumed_thread): New remote_target parameter. Pass
11813 it down.
11814 (remote_target::wait_as): Pass down target.
11815 (unpush_and_perror): New remote_target parameter. Pass it down.
11816 (remote_target::readchar, remote_target::remote_serial_write)
11817 (remote_target::getpkt_or_notif_sane_1)
11818 (remote_target::kill_new_fork_children, remote_target::kill): Pass
11819 down target.
11820 (remote_target::mourn_inferior): Pass down target. Use
11821 remote_unpush_target.
11822 (remote_target::core_of_thread)
11823 (remote_target::remote_btrace_maybe_reopen): Pass down target.
11824 (remote_target::pid_to_exec_file)
11825 (remote_target::thread_handle_to_thread_info): Pass down target.
11826 (remote_target::async_wait_fd): New.
11827 * riscv-fbsd-tdep.c: Include "inferior.h".
11828 (riscv_fbsd_get_thread_local_address): Pass down target.
11829 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
11830 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
11831 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
11832 Adjust.
11833 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
11834 * solib-svr4.c (enable_break): Pass down target.
11835 * spu-multiarch.c (parse_spufs_run): Pass down target.
11836 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
11837 * target-delegates.c: Regenerate.
11838 * target.c (g_target_stack): Delete.
11839 (current_top_target): Return the current inferior's top target.
11840 (target_has_execution_1): Refer to the passed-in inferior's top
11841 target.
11842 (target_supports_terminal_ours): Check whether the initial
11843 inferior was already created.
11844 (decref_target): New.
11845 (target_stack::push): Incref/decref the target.
11846 (push_target, push_target, unpush_target): Adjust.
11847 (target_stack::unpush): Defref target.
11848 (target_is_pushed): Return bool. Adjust to refer to the current
11849 inferior's target stack.
11850 (dispose_inferior): Delete, and inline parts ...
11851 (target_preopen): ... here. Only dispose of the current inferior.
11852 (target_detach): Hold strong target reference while detaching.
11853 Pass target down.
11854 (target_thread_name): Add assertion.
11855 (target_resume): Pass down target.
11856 (target_ops::beneath, find_target_at): Adjust to refer to the
11857 current inferior's target stack.
11858 (get_dummy_target): New.
11859 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
11860 has a thread running.
11861 (initialize_targets): Rename to ...
11862 (_initialize_target): ... this.
11863 * target.h: Include "gdbsupport/refcounted-object.h".
11864 (struct target_ops): Inherit refcounted_object.
11865 (target_ops::shortname, target_ops::longname): Make const.
11866 (target_ops::async_wait_fd): New method.
11867 (decref_target): Declare.
11868 (struct target_ops_ref_policy): New.
11869 (target_ops_ref): New typedef.
11870 (get_dummy_target): Declare function.
11871 (target_is_pushed): Return bool.
11872 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
11873 (all_matching_threads_iterator::all_matching_threads_iterator):
11874 Handle filter target.
11875 * thread-iter.h (struct all_matching_threads_iterator, struct
11876 all_matching_threads_range, class all_non_exited_threads_range):
11877 Filter by target too. Remove explicit.
11878 * thread.c (threads_executing): Delete.
11879 (inferior_thread): Pass down current inferior.
11880 (clear_thread_inferior_resources): Pass down thread pointer
11881 instead of ptid_t.
11882 (add_thread_silent, add_thread_with_info, add_thread): Add
11883 process_stratum_target parameter. Use it for thread and inferior
11884 searches.
11885 (is_current_thread): New.
11886 (thread_info::deletable): Use it.
11887 (find_thread_ptid, thread_count, in_thread_list)
11888 (thread_change_ptid, set_resumed, set_running): New
11889 process_stratum_target parameter. Pass it down.
11890 (set_executing): New process_stratum_target parameter. Pass it
11891 down. Adjust reference to 'threads_executing'.
11892 (threads_are_executing): New process_stratum_target parameter.
11893 Adjust reference to 'threads_executing'.
11894 (set_stop_requested, finish_thread_state): New
11895 process_stratum_target parameter. Pass it down.
11896 (switch_to_thread): Also match inferior.
11897 (switch_to_thread): New process_stratum_target parameter. Pass it
11898 down.
11899 (update_threads_executing): Reimplement.
11900 * top.c (quit_force): Pop targets from all inferior.
11901 (gdb_init): Don't call initialize_targets.
11902 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
11903 Declare.
11904 (windows_add_thread, windows_delete_thread): Adjust.
11905 (get_windows_debug_event): Rename to ...
11906 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
11907 * tracefile-tfile.c (tfile_target_open): Pass down target.
11908 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
11909 Forward declare.
11910 (switch_to_thread): Add process_stratum_target parameter.
11911 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
11912 parameter. Use it.
11913 (mi_on_resume): Pass target down.
11914 * nat/fork-inferior.c (startup_inferior): Add
11915 process_stratum_target parameter. Pass it down.
11916 * nat/fork-inferior.h (startup_inferior): Add
11917 process_stratum_target parameter.
11918 * python/py-threadevent.c (py_get_event_thread): Pass target down.
11919
75c6c844
PA
119202020-01-10 Pedro Alves <palves@redhat.com>
11921
11922 * remote.c (remote_target::start_remote): Don't set inferior_ptid
11923 directly. Instead find the first thread in the thread list and
11924 use switch_to_thread.
11925
78f2c40a
PA
119262020-01-10 Pedro Alves <palves@redhat.com>
11927
11928 * remote.c (remote_target::remote_add_inferior): Don't bind a
11929 process to the current inferior if the current inferior is already
11930 bound to a process.
11931
e7af6c70
TBA
119322020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11933 Pedro Alves <palves@redhat.com>
11934
11935 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
11936 If no process is specified, return null_ptid instead of
11937 inferior_ptid.
11938 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
11939 TARGET_WAITKIND_SIGNALLED with no pid.
11940
31ba933e
PA
119412020-01-10 Pedro Alves <palves@redhat.com>
11942
11943 * remote.c (first_remote_resumed_thread): New.
11944 (remote_target::wait_as): Use it as default event_ptid instead of
11945 inferior_ptid.
11946
735fc2ca
PA
119472020-01-10 Pedro Alves <palves@redhat.com>
11948
11949 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
11950
c17e02e1
PA
119512020-01-10 Pedro Alves <palves@redhat.com>
11952
11953 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
11954 not -1.
11955
ab1ddbcf
PA
119562020-01-10 Pedro Alves <palves@redhat.com>
11957
11958 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
11959 ptid to get_last_target_status.
11960 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
11961 ptid to get_last_target_status.
11962 * infcmd.c (continue_command): Don't pass a target_waitstatus to
11963 get_last_target_status.
11964 (info_program_command): Don't pass a target_waitstatus to
11965 get_last_target_status.
11966 * infrun.c (init_wait_for_inferior): Use
11967 nullify_last_target_wait_ptid.
11968 (get_last_target_status): Handle nullptr arguments.
11969 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
11970 (print_stop_event): Don't pass a ptid to get_last_target_status.
11971 (normal_stop): Don't pass a ptid to get_last_target_status.
11972 * infrun.h (get_last_target_status, set_last_target_status): Move
11973 comments here and update.
11974 (nullify_last_target_wait_ptid): Declare.
11975 * linux-fork.c (fork_load_infrun_state): Remove local extern
11976 declaration of nullify_last_target_wait_ptid.
11977 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
11978 to get_last_target_status.
11979
f3f8ece4
PA
119802020-01-10 Pedro Alves <palves@redhat.com>
11981
11982 * gdbthread.h (scoped_restore_current_thread)
11983 <dont_restore, restore, m_dont_restore>: Declare.
11984 * thread.c (thread_alive): Add assertion. Return bool.
11985 (switch_to_thread_if_alive): New.
11986 (prune_threads): Switch inferior/thread.
11987 (print_thread_info_1): Switch thread before calling target methods.
11988 (scoped_restore_current_thread::restore): New, factored out from
11989 ...
11990 (scoped_restore_current_thread::~scoped_restore_current_thread):
11991 ... this.
11992 (scoped_restore_current_thread::scoped_restore_current_thread):
11993 Add assertion.
11994 (thread_apply_all_command, thread_select): Use
11995 switch_to_thread_if_alive.
11996 * infrun.c (proceed, restart_threads, handle_signal_stop)
11997 (switch_back_to_stepped_thread): Switch current thread before
11998 calling target methods.
11999
db2d40f7
PA
120002020-01-10 Pedro Alves <palves@redhat.com>
12001
12002 * inferior.c (switch_to_inferior_no_thread): New function,
12003 factored out from ...
12004 (inferior_command): ... here.
12005 * inferior.h (switch_to_inferior_no_thread): Declare.
12006 * mi/mi-main.c (run_one_inferior): Use
12007 switch_to_inferior_no_thread.
12008
bd420a2d
PA
120092020-01-10 Pedro Alves <palves@redhat.com>
12010
12011 * infcmd.c (kill_command): Remove dead code.
12012
ddf5db90
PA
120132020-01-10 Pedro Alves <palves@redhat.com>
12014
12015 * remote.c (remote_target::mourn_inferior): No longer check
12016 whether the target is running.
12017
5018ce90
PA
120182020-01-10 Pedro Alves <palves@redhat.com>
12019
12020 * corelow.c (core_target::has_execution): Change parameter type to
12021 inferior pointer.
12022 * inferior.c (number_of_live_inferiors): Use
12023 inferior::has_execution instead of target_has_execution_1.
12024 * inferior.h (inferior::has_execution): New.
12025 * linux-thread-db.c (thread_db_target::update_thread_list): Use
12026 inferior::has_execution instead of target_has_execution_1.
12027 * process-stratum-target.c
12028 (process_stratum_target::has_execution): Change parameter type to
12029 inferior pointer. Check the inferior's PID instead of
12030 inferior_ptid.
12031 * process-stratum-target.h
12032 (process_stratum_target::has_execution): Change parameter type to
12033 inferior pointer.
12034 * record-full.c (record_full_core_target::has_execution): Change
12035 parameter type to inferior pointer.
12036 * target.c (target_has_execution_1): Change parameter type to
12037 inferior pointer.
12038 (target_has_execution_current): Adjust.
12039 * target.h (target_ops::has_execution): Change parameter type to
12040 inferior pointer.
12041 (target_has_execution_1): Change parameter type to inferior
12042 pointer. Change return type to bool.
12043 * tracefile.h (tracefile_target::has_execution): Change parameter
12044 type to inferior pointer.
12045
74375d18
PA
120462020-01-10 Pedro Alves <palves@redhat.com>
12047
12048 * exceptions.c (print_flush): Remove current_top_target() check.
12049
acdf84a6
PA
120502020-01-10 Pedro Alves <palves@redhat.com>
12051
12052 * remote.c (show_remote_exec_file): Show the current inferior's
12053 exec-file instead of the command variable's value.
12054
ec506636
PA
120552020-01-10 Pedro Alves <palves@redhat.com>
12056
12057 * record-full.c (record_full_resume_ptid): New global.
12058 (record_full_target::resume): Set it.
12059 (record_full_wait_1): Use record_full_resume_ptid instead of
12060 inferior_ptid.
12061
873657b9
PA
120622020-01-10 Pedro Alves <palves@redhat.com>
12063
12064 * gdbthread.h (scoped_restore_current_thread)
12065 <dont_restore, restore, m_dont_restore>: Declare.
12066 * thread.c (thread_alive): Add assertion. Return bool.
12067 (switch_to_thread_if_alive): New.
12068 (prune_threads): Switch inferior/thread.
12069 (print_thread_info_1): Switch thread before calling target methods.
12070 (scoped_restore_current_thread::restore): New, factored out from
12071 ...
12072 (scoped_restore_current_thread::~scoped_restore_current_thread):
12073 ... this.
12074 (scoped_restore_current_thread::scoped_restore_current_thread):
12075 Add assertion.
12076 (thread_apply_all_command, thread_select): Use
12077 switch_to_thread_if_alive.
12078
7f0ae84c
GB
120792020-01-10 George Barrett <bob@bob131.so>
12080
12081 * stap-probe.c (stap_modify_semaphore): Don't check for null
12082 semaphores.
12083 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
12084 for null semaphores.
12085
f5a7c406
AB
120862020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
12087
12088 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
12089 all source windows, and maintain horizontal scroll status while
12090 doing so.
12091
9ae6bf64
TT
120922020-01-09 Tom Tromey <tom@tromey.com>
12093
12094 PR tui/18932:
12095 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
12096 update_source_window, not print_source_lines.
12097
b2efe70c
AB
120982020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
12099
12100 * tui/tui.c (tui_enable): Register tui hooks after calling
12101 tui_display_main.
12102
5f23a082
CB
121032020-01-09 Christian Biesinger <cbiesinger@google.com>
12104
12105 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
12106
3061113b
SM
121072020-01-08 Simon Marchi <simon.marchi@efficios.com>
12108
12109 * thread.c (print_thread_info_1): Fix indentation.
12110
57d75002
CB
121112020-01-09 Christian Biesinger <cbiesinger@google.com>
12112
12113 * symtab.c (general_symbol_info::compute_and_set_names): Move the
12114 unique_xmalloc_ptr outside the if to always free the demangled name.
12115
6a053cb1
TT
121162020-01-08 Tom Tromey <tromey@adacore.com>
12117
12118 * xcoffread.c (enter_line_range, read_xcoff_symtab)
12119 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
12120 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
12121 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
12122 Remove.
12123 (section_offsets): New typedef.
12124 * symtab.c (fixup_section, get_msymbol_address): Update.
12125 * symmisc.c (dump_msymbols): Update.
12126 * symfile.h (relative_addr_info_to_section_offsets)
12127 (symfile_map_offsets_to_segments): Update.
12128 * symfile.c (build_section_addr_info_from_objfile)
12129 (init_objfile_sect_indices): Update.
12130 (struct place_section_arg): Change type of "offsets".
12131 (place_section): Update.
12132 (relative_addr_info_to_section_offsets): Change type of
12133 "section_offsets". Remove "num_sections" parameter.
12134 (default_symfile_offsets, syms_from_objfile_1)
12135 (set_objfile_default_section_offset): Update.
12136 (reread_symbols): No need to preserve section offsets by hand.
12137 (symfile_map_offsets_to_segments): Change type of "offsets".
12138 * stap-probe.c (relocate_address): Update.
12139 * stabsread.h (process_one_symbol): Update.
12140 * solib-target.c (struct lm_info_target) <offsets>: Change type.
12141 (solib_target_relocate_section_addresses): Update.
12142 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
12143 Update.
12144 * solib-frv.c (frv_relocate_main_executable): Update.
12145 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
12146 * solib-aix.c (solib_aix_get_section_offsets): Change return
12147 type.
12148 (solib_aix_solib_create_inferior_hook): Update.
12149 * remote.c (remote_target::get_offsets): Update.
12150 * psymtab.c (find_pc_sect_psymtab): Update.
12151 * psympriv.h (struct partial_symbol) <address, text_low,
12152 text_high>: Update.
12153 * objfiles.h (obj_section_offset): Update.
12154 (struct objfile) <section_offsets>: Change type.
12155 <num_sections>: Remove.
12156 (objfile_relocate): Update.
12157 * objfiles.c (entry_point_address_query): Update
12158 (relocate_one_symbol): Change type of "section_offsets".
12159 (objfile_relocate1, objfile_relocate1): Change type of
12160 "new_offsets".
12161 (objfile_rebase1): Update.
12162 * mipsread.c (mipscoff_symfile_read): Update.
12163 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
12164 parameter.
12165 * mdebugread.c (parse_symbol): Change type of "section_offsets".
12166 (parse_external, psymtab_to_symtab_1): Update.
12167 * machoread.c (macho_symfile_offsets): Update.
12168 * ia64-tdep.c (ia64_find_unwind_table): Update.
12169 * hppa-tdep.c (read_unwind_info): Update.
12170 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
12171 * dwarf2read.c (create_addrmap_from_index)
12172 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
12173 (process_psymtab_comp_unit_reader, add_partial_symbol)
12174 (add_partial_subprogram, process_full_comp_unit)
12175 (read_file_scope, read_func_scope, read_lexical_block_scope)
12176 (read_call_site_scope, dwarf2_rnglists_process)
12177 (dwarf2_ranges_process, dwarf2_ranges_read)
12178 (dwarf_decode_lines_1, var_decode_location, new_symbol)
12179 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
12180 Update.
12181 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
12182 Update.
12183 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
12184 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
12185 (process_one_symbol): Change type of "section_offsets".
12186 * ctfread.c (get_objfile_text_range): Update.
12187 * coffread.c (coff_symtab_read, enter_linenos)
12188 (process_coff_symbol): Update.
12189 * coff-pe-read.c (add_pe_forwarded_sym): Update.
12190 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
12191
456e800a
TT
121922020-01-08 Tom Tromey <tromey@adacore.com>
12193
12194 * dwarf2read.c (parse_macro_definition): Use std::string.
12195 (parse_macro_definition): Likewise.
12196
6dfa2fc2
TT
121972020-01-08 Tom Tromey <tromey@adacore.com>
12198
12199 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
12200 (ATTR_ALLOC_CHUNK): Remove.
12201
421d1616
TT
122022020-01-08 Tom Tromey <tromey@adacore.com>
12203
12204 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
12205
43816ebc
TT
122062020-01-08 Tom Tromey <tromey@adacore.com>
12207
12208 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
12209 (dwarf2_compute_name, open_dwo_file): Likewise.
12210 (process_enumeration_scope): Use std::vector.
12211 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
12212 (partial_die_info::fixup, dwarf2_start_subfile)
12213 (guess_full_die_structure_name, dwarf2_name): Likewise.
12214 (determine_prefix): Update.
12215 (guess_full_die_structure_name): Make return type const.
12216 (partial_die_full_name): Return unique_xmalloc_ptr.
12217 (DW_FIELD_ALLOC_CHUNK): Remove.
12218
4212d509
TT
122192020-01-07 Tom Tromey <tromey@adacore.com>
12220
12221 PR build/24937:
12222 * stap-probe.c (class stap_static_probe_ops): Add constructor.
12223
06a6207a
JT
122242020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
12225
12226 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
12227
153d79c4
AB
122282020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
12229
12230 * stack.c (print_frame_info): Move disassemble_next_line code
12231 inside source_print block.
12232
66182876
EZ
122332020-01-06 Eli Zaretskii <eliz@gnu.org>
12234
12235 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
12236 gdb/signals.h, as we are now using native signal symbols.
12237
cbfa8581
SV
122382020-01-06 Shahab Vahedi <shahab@synopsys.com>
12239
12240 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
12241 overflow by an early check of content vs threshold.
aac66a4c 12242 * tui/tui-source.c (tui_source_window::line_is_displayed):
cbfa8581
SV
12243 Likewise.
12244
3f602821
EZ
122452020-01-06 Eli Zaretskii <eliz@gnu.org>
12246
12247 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
12248
a08c904d
JT
122492020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
12250
12251 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
12252 export table if no section contains it's RVA.
12253
89a65580
EZ
122542020-01-06 Eli Zaretskii <eliz@gnu.org>
12255
12256 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
12257
8b7fcda2
HD
122582020-01-06 Hannes Domani <ssbssa@yahoo.de>
12259
12260 * source.c (print_source_lines_base): Set last_line_listed.
12261
a61b4f69
SV
122622020-01-06 Shahab Vahedi <shahab@synopsys.com>
12263
12264 * tui/tui-disasm.c: Remove trailing spaces.
12265
559e7e50
EZ
122662020-01-06 Eli Zaretskii <eliz@gnu.org>
12267 Pedro Alves <palves@redhat.com>
12268
12269 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
12270 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
12271 (windows_gdb_signal_to_target): New function, uses the above
12272 enumeration to convert GDB internal signal codes to equivalent
12273 Windows codes.
12274 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
12275 * windows-nat.c: Include "gdb_wait.h".
12276 (get_windows_debug_event): Extract the fatal exception from the
12277 exit status and convert to the equivalent Posix signal number.
12278 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
12279 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
12280 * gdbsupport/gdb_wait.c: New file, implements
12281 windows_status_to_termsig.
12282 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
12283 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
12284
f2302a34
AB
122852020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
12286
12287 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
12288 show_layout.
12289
6a5206eb
LM
122902020-01-05 Luis Machado <luis.machado@linaro.org>
12291
12292 * aarch64-linux-nat.c
12293 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
12294 and bfd_mach_aarch64.
12295
6ec1d75e
PW
122962020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12297
12298 * ui-file.c (stdio_file::can_emit_style_escape)
12299 (tee_file::can_emit_style_escape): Ensure style is used also on
12300 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
12301 to gdb_stdout.
12302 * main.c (set_gdb_data_directory): Use file style to output the
12303 warning that the given pathname is not a directory.
12304 * top.c (show_history_filename, gdb_safe_append_history)
12305 (show_gdb_datadir): Use file style.
12306
44f81a76
HD
123072020-01-03 Hannes Domani <ssbssa@yahoo.de>
12308
12309 * solib-target.c (struct lm_info_target):
12310 Change offsets to be a unique_xmalloc_ptr.
12311 (solib_target_relocate_section_addresses): Update.
12312
25057eb0
HD
123132020-01-03 Hannes Domani <ssbssa@yahoo.de>
12314
12315 * windows-nat.c (windows_clear_solib): Free so_list linked list.
12316
6e2118f5
BE
123172020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
12318
12319 * MAINTAINERS (Write After Approval): Add myself.
12320
8133c7dc
LM
123212020-01-02 Luis Machado <luis.machado@linaro.org>
12322
12323 * proc-service.c (get_ps_regcache): Remove reference to obsolete
12324 Cell BE architecture.
12325 * target.h (struct target_ops) <thread_architecture>: Likewise.
12326
48189bec
HD
123272020-01-01 Hannes Domani <ssbssa@yahoo.de>
12328
12329 * Makefile.in: Use INSTALL_PROGRAM_ENV.
12330
ead1063b
HD
123312020-01-01 Hannes Domani <ssbssa@yahoo.de>
12332
12333 * MAINTAINERS (Write After Approval): Add myself.
12334
e5d78223
JB
123352020-01-01 Joel Brobecker <brobecker@adacore.com>
12336
12337 * gdbarch.sh: Update copyright year range of generated files.
12338
b811d2c2
JB
123392020-01-01 Joel Brobecker <brobecker@adacore.com>
12340
12341 Update copyright year range in all GDB files.
12342
5f4def5c
JB
123432020-01-01 Joel Brobecker <brobecker@adacore.com>
12344
12345 * copyright.py: Convert to Python 3.
12346
51fd4002
JB
123472020-01-01 Joel Brobecker <brobecker@adacore.com>
12348
12349 * copyright.py: Adapt after move of gnulib directory from gdb
12350 directory to toplevel directory.
12351
5fb651f2
JB
123522020-01-01 Joel Brobecker <brobecker@adacore.com>
12353
12354 * copyright.py (main): Exit if run from the wrong directory.
12355
5dd8bf88
JB
123562020-01-01 Joel Brobecker <brobecker@adacore.com>
12357
12358 * top.c (print_gdb_version): Change copyright year to 2020.
12359
9f71dacb 123602020-01-01 Joel Brobecker <brobecker@adacore.com>
3d34df0a 12361
9f71dacb 12362 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
3d34df0a 12363
9f71dacb 12364For older changes see ChangeLog-2019.
c906108c
SS
12365\f
12366Local Variables:
12367mode: change-log
12368left-margin: 8
12369fill-column: 74
12370version-control: never
57da7796 12371coding: utf-8
c906108c 12372End: