]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/ChangeLog
arc: Add hardware loop detection
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
fdd8731b
SV
12020-08-25 Shahab Vahedi <shahab@synopsys.com>
2
3 * arc-tdep.c (arc_check_for_hardware_loop): New.
4 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
5
22459524
SV
62020-08-25 Shahab Vahedi <shahab@synopsys.com>
7
8 * arc-tdep.h: Include "gdbarch.h".
9
995d3a19
SV
102020-08-25 Shahab Vahedi <shahab@synopsys.com>
11
12 * arch/arc.h
13 (arc_gdbarch_features): New class to stir the selection of target XML.
14 (arc_create_target_description): Use FEATURES to choose XML target.
15 (arc_lookup_target_description): Use arc_create_target_description
16 to create _new_ target descriptions or return the already created
17 ones if the FEATURES is the same.
18 * arch/arc.c: Implementation of prototypes described above.
19 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
20 (arc_gdbarch_features_init): Initialize the FEATURES struct.
21 * arc-tdep.c (*_feature_name): Make feature names consistent.
22 (arc_register_feature): A new struct to hold information about
23 registers of a particular target/feature.
24 (arc_check_tdesc_feature): Check if XML provides registers in
25 compliance with ARC_REGISTER_FEATURE structs.
26 (arc_update_acc_reg_names): Add aliases for r58 and r59.
27 (determine_*_reg_feature_set): Which feature name to look for.
28 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
29 (mach_type_to_arc_isa): Convert from a set of binutils machine types
30 to expected ISA enums to be used in arc_gdbarch_features structs.
31 * features/Makefile (FEATURE_XMLFILES): Add new files.
32 * gdb/features/arc/v1-aux.c: New file.
33 * gdb/features/arc/v1-aux.xml: Likewise.
34 * gdb/features/arc/v1-core.c: Likewise.
35 * gdb/features/arc/v1-core.xml: Likewise.
36 * gdb/features/arc/v2-aux.c: Likewise.
37 * gdb/features/arc/v2-aux.xml: Likewise.
38 * gdb/features/arc/v2-core.c: Likewise.
39 * gdb/features/arc/v2-core.xml: Likewise.
40 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
41
3945d2d7
GM
422020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
43 Andrew Burgess <andrew.burgess@embecosm.com>
44
45 PR m2/26372
46 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
47 an assert. Remove single element array indexing pattern as the
48 MULTI_SUBSCRIPT support will handle this case too.
49
2677f2d3
SM
502020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
51
52 * value.h (valprint_check_validity): Move declaration from
53 here...
54 * valprint.h (valprint_check_validity): ... to here.
55
c426fddb
SM
562020-08-24 Simon Marchi <simon.marchi@efficios.com>
57
58 * debug.h: New file.
59 * debug.c (debug_prefixed_vprintf): New function.
60 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
61 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
62
1eb8556f
SM
632020-08-24 Simon Marchi <simon.marchi@efficios.com>
64
65 * infrun.h (infrun_debug_printf_1): New function declaration.
66 (infrun_debug_printf): New macro.
67 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
68 throughout.
69 (infrun_debug_printf): New function.
70 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
71 (handle_jit_event): Likewise.
72
b8fff44e
MW
732020-08-21 Mark Wielaard <mark@klomp.org>
74
75 * ada-lex.l: Extend register warnings diagnostics comment for g++.
76
d19c3068
SM
772020-08-22 Simon Marchi <simon.marchi@efficios.com>
78
79 * frame.c (enum class frame_id_status): New.
80 (struct frame_info) <this_id::p>: Change type to frame_id_status.
81 (fprintf_frame): Update.
82 (compute_frame_id): Set frame id status to "computing" on entry.
83 Set it back to "not_computed" on failure and to "computed" on
84 success.
85 (get_frame_id): Assert the frame id is not being computed.
86 (create_sentinel_frame): Use frame_id_status::COMPUTED.
87 (create_new_frame): Likewise.
88 (frame_cleanup_after_sniffer): Update assert.
89
b70e516e
SM
902020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
91
92 * regcache.c (pid_ptid_regcache_map): New type.
93 (target_ptid_regcache_map): Remove.
94 (target_pid_ptid_regcache_map): New type.
95 (regcaches): Change type to target_pid_ptid_regcache_map.
96 (get_thread_arch_aspace_regcache): Update.
97 (regcache_thread_ptid_changed): Update, handle pid-like ptid
98 case.
99 (regcaches_size): Update.
100 (regcache_count): Update.
101 (registers_changed_ptid_target_pid_test): New.
102 (_initialize_regcache): Register new test.
103
cdd9148a
SM
1042020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
105
106 * regcache.c (regcache_count): New.
107 (struct regcache_test_data): New.
108 (regcache_test_data_up): New.
109 (populate_regcaches_for_test): New.
110 (regcaches_test): Remove.
111 (get_thread_arch_aspace_regcache_test): New.
112 (registers_changed_ptid_all_test): New.
113 (registers_changed_ptid_target_test): New.
114 (registers_changed_ptid_target_ptid_test): New.
115 (regcache_thread_ptid_changed): Remove regcache_count lambda.
116 (_initialize_regcache): Register new tests.
117
dd125343
SM
1182020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
119
120 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
121 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
122 gdbarch and aspace parameter. Use current inferior's aspace.
123 Validate regcache's arch value.
124 (regcaches_test): Update.
125
3ee93972
SM
1262020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
127
128 * regcache.c (regcaches_test): Call registers_changed.
129
33bf4c5c
TBA
1302020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
131
132 * infrun.c (process_event_stop_test): Fix typo "breapoint".
133
c2fd7fae
AKS
1342020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
135
136 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
137 to find the end of prologue for flang compiled binaries.
138 * arm-tdep.c (arm_skip_prologue): Likewise.
139 * i386-tdep.c (i386_skip_prologue): Likewise.
140 * producer.c (producer_is_llvm): New function.
141 (producer_parsing_tests): Added new tests for clang/flang.
142 * producer.h (producer_is_llvm): New declaration.
143
9327494e
SM
1442020-08-18 Simon Marchi <simon.marchi@efficios.com>
145
146 * linux-nat.c (linux_nat_debug_printf): New function.
147 (linux_nat_debug_printf_1): New macro. Use throughout the file.
148
d138725a
AM
1492020-08-18 Aaron Merey <amerey@redhat.com>
150
151 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
152 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
153 (CLIBS): Add DEBUGINFOD_LIBS.
154
f9b11e6b
ST
1552020-08-17 Sergei Trofimovich <siarheit@google.com>
156
157 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
158 'gdbarch_num_regs'.
159
3ae7ab99
TT
1602020-08-17 Tom Tromey <tromey@adacore.com>
161
162 * ada-varobj.c (ada_varobj_decode_var): Handle case where
163 ada_get_decoded_value returns NULL.
164
b017825f
TT
1652020-08-17 Tom Tromey <tromey@adacore.com>
166
167 * python/py-inferior.c (infpy_search_memory): Use
168 gdb_py_object_from_ulongest.
169 * python/py-infevents.c (create_inferior_call_event_object)
170 (create_memory_changed_event_object): Use
171 gdb_py_object_from_ulongest.
172 * python/py-linetable.c (ltpy_entry_get_pc): Use
173 gdb_py_object_from_ulongest.
174
7635cf79
SM
1752020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
176
177 * loc.c (class symbol_needs_eval_context): Fix indentation.
178
f54be24b
SM
1792020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
180
181 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
182 bool.
183
53d5a2a5
TV
1842020-08-17 Tom de Vries <tdevries@suse.de>
185
186 PR gdb/26393
187 * gdbtypes.c (dump_dynamic_prop): New function.
188 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
189
547ce8f0
TV
1902020-08-15 Tom de Vries <tdevries@suse.de>
191
192 PR backtrace/26390
193 * stack.c (print_frame_args): Temporarily set the selected
194 frame to FRAME while printing the frame's arguments.
195
6ea815e7
PFC
1962020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
197
198 PR breakpoints/26385
199 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
200 Always clear watchpoint with PTRACE_SET_DEBUGREG.
201
6e562fa3
PFC
2022020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
203
204 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
205 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
206 and >= to check return value instead of == -1 and != -1.
207
d369b608
SM
2082020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
209
210 * utils.h (class gdb_argv) <as_array_view>: New method.
211 * utils.c (gdb_argv_as_array_view_test): New.
212 (_initialize_utils): Register selftest.
213 * maint.c (maintenance_selftest): Use the new method.
214
b31488a3
KR
2152020-08-13 Kamil Rytarowski <n54@gmx.com>
216
217 * target.h (supports_dumpcore, dumpcore): New
218 function declarations.
219 * target.c (supports_dumpcore, dumpcore): New
220 functions.
221 * target-delegates.c: Rebuild.
222 * gcore.c (gcore_command): Use target_supports_dumpcore ()
223 and target_dumpcore ().
224
002a3166
AM
2252020-08-13 Aaron Merey <amerey@redhat.com>
226
227 * debuginfod-support.c: Replace global variables with user_data.
228
ece5bc8a
SM
2292020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
230
231 * maint.c (maintenance_selftest): Split args and pass array_view
232 to run_tests.
233
6d8a0a5e
LM
2342020-08-12 Luis Machado <luis.machado@linaro.org>
235
236 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
237 type's length.
238 Use %s and pulongest to print the length.
239
7cf663a9
PA
2402020-08-12 Pedro Alves <palves@redhat.com>
241
242 * NEWS: Move "Multi-target debugging support" item to the
243 "Changes since GDB 9" section.
244
27c7b875
PA
2452020-08-12 Pedro Alves <palves@redhat.com>
246
247 PR gdb/26336
248 * progspace.c (program_space::remove_objfile): Invalidate the
249 frame cache.
250
1796a2a1
TV
2512020-08-11 Tom de Vries <tdevries@suse.de>
252
253 * MAINTAINERS: Mark ms1 as deleted.
254
f8e3fe0d
LM
2552020-08-10 Luis Machado <luis.machado@linaro.org>
256
257 PR gdb/26310
258
259 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
260 act accordingly.
261 (aarch64_analyze_prologue_test): Add more unit tests to exercise
262 movz/str/stur/stp skipping behavior.
263
cc308722
LM
2642020-08-10 Luis Machado <luis.machado@linaro.org>
265
266 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
267 struct user_sve_header instead of struct sve_context.
268
041d9819
SM
2692020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
270
271 * read.h (dwarf2_fetch_die_loc_sect_off,
272 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
273 `void *` parameter with function_view.
274 * read.c (dwarf2_fetch_die_loc_sect_off,
275 dwarf2_fetch_die_loc_cu_off): Likewise.
276 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
277 (per_cu_dwarf_call): Adjust.
278 (get_frame_address_in_block_wrapper): Remove.
279 (indirect_synthetic_pointer): Adjust.
280 (get_ax_pc): Remove.
281 (dwarf2_compile_expr_to_ax): Adjust.
282
38f8aa06
TV
2832020-08-08 Tom de Vries <tdevries@suse.de>
284
285 PR build/26344
286 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
287 constructor.
288 * regcache.c (get_thread_arch_aspace_regcache): Same.
289
a52b3ae2
TT
2902020-08-07 Tom Tromey <tromey@adacore.com>
291
292 * ravenscar-thread.c
293 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
294 New method.
295 (ravenscar_thread_target::wait): Check
296 runtime_initialized.
297 (ravenscar_thread_target::prepare_to_store)
298 (ravenscar_thread_target::stopped_by_sw_breakpoint)
299 (ravenscar_thread_target::stopped_by_hw_breakpoint)
300 (ravenscar_thread_target::stopped_by_watchpoint)
301 (ravenscar_thread_target::stopped_data_address)
302 (ravenscar_thread_target::core_of_thread): Use
303 scoped_restore_current_thread and
304 set_base_thread_from_ravenscar_task.
305
0e29517d
TT
3062020-08-07 Tom Tromey <tromey@adacore.com>
307
308 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
309
592f9bd7
TT
3102020-08-07 Tom Tromey <tromey@adacore.com>
311
312 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
313 update_inferior_ptid before update_thread_list.
314 (temporarily_change_regcache_ptid): New class.
315 (ravenscar_thread_target::fetch_registers)
316 (ravenscar_thread_target::store_registers)
317 (ravenscar_thread_target::prepare_to_store): Use base thread when
318 forwarding operation.
319
39e2018a
TT
3202020-08-07 Tom Tromey <tromey@adacore.com>
321
322 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
323 "is_pid" case.
324
2080266b
TT
3252020-08-07 Tom Tromey <tromey@adacore.com>
326
327 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
328 New methods.
329 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
330 first.
331 (ravenscar_thread_target::add_thread): Rename from
332 ravenscar_add_thread.
333 (ravenscar_thread_target::update_thread_list): Use a lambda.
334 (ravenscar_thread_target::xfer_partial): New method.
335
78c02f21
TT
3362020-08-07 Tom Tromey <tromey@adacore.com>
337
338 * ada-lang.h (ada_task_list_iterator_ftype): Now a
339 gdb::function_view.
340 (iterate_over_live_ada_tasks): Change type of argument.
341 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
342 of argument.
343
d5d833af
TT
3442020-08-07 Tom Tromey <tromey@adacore.com>
345
346 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
347 Remove.
348 (ravenscar_thread_target::extra_thread_info): Remove.
349 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
350 defer to target beneath for non-Ravenscar threads.
351
a8ac85bb
TT
3522020-08-07 Tom Tromey <tromey@adacore.com>
353
354 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
355 get_base_thread_from_ravenscar_task>: Now methods.
356 <m_cpu_map>: New member.
357 (ravenscar_thread_target::get_thread_base_cpu): Rename from
358 ravenscar_get_thread_base_cpu. Check m_cpu_map.
359 (ravenscar_thread_target::task_is_currently_active): Update.
360 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
361 Now a method.
362 (ravenscar_thread_target::add_active_thread): Put initial thread
363 into the m_cpu_map.
364
550ab58d
TT
3652020-08-07 Tom Tromey <tromey@adacore.com>
366
367 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
368 event_ptid.
369
e9546579
TT
3702020-08-07 Tom Tromey <tromey@adacore.com>
371
372 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
373 runtime_initialized.
374
3d4470e5
TT
3752020-08-07 Tom Tromey <tromey@adacore.com>
376
377 * ravenscar-thread.c (ravenscar_thread_target): Don't call
378 add_active_thread.
379 (ravenscar_thread_target::add_active_thread): Now public.
380 (ravenscar_inferior_created): Call add_active_thread after pushing
381 the target.
382
888bdb2b
SM
3832020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
384
385 * regcache.c (ptid_regcache_map): New type.
386 (target_ptid_regcache_map): New type.
387 (regcaches): Change type to target_ptid_regcache_map.
388 (get_thread_arch_aspace_regcache): Update to regcaches' new
389 type.
390 (regcache_thread_ptid_changed): Likewise.
391 (registers_changed_ptid): Likewise.
392 (regcaches_size): Likewise.
393 (regcaches_test): Update.
394 (regcache_thread_ptid_changed): Update.
395 * regcache.h (regcache_up): New type.
396 * gdbsupport/ptid.h (hash_ptid): New struct.
397
b161a60d
SM
3982020-08-07 Simon Marchi <simon.marchi@efficios.com>
399
400 * observable.h (thread_ptid_changed): Add parameter
401 `process_stratum_target *`.
402 * infrun.c (infrun_thread_ptid_changed): Add parameter
403 `process_stratum_target *` and use it.
404 (selftests): New namespace.
405 (infrun_thread_ptid_changed): New function.
406 (_initialize_infrun): Register selftest.
407 * regcache.c (regcache_thread_ptid_changed): Add parameter
408 `process_stratum_target *` and use it.
409 (regcache_thread_ptid_changed): New function.
410 (_initialize_regcache): Register selftest.
411 * thread.c (thread_change_ptid): Pass target to
412 thread_ptid_changed observable.
413
d2854d8d
CT
4142020-08-06 Caroline Tice <cmtice@google.com>
415
fe4c3d43
SM
416 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
417 (struct dwp_sections): Update field comments. Add loclists and
418 rnglists fields.
419 (struct virtual_v2_dwo_sections): Rename struct to
420 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
421 size & offset fields for loclists and rnglists.
422 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
423 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
424 skipping dummy type units.
425 (create_dwp_hash_table): Update the large comment above the function to
426 discuss Version 5 DWP files as well, with references. Update all the
427 version checks in the function to check for version 5 as well. Add new
428 section at the end to create dwp hash table for version 5.
429 (create_dwp_v2_section): Rename function to
430 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
431 Add V5 to error message text.
432 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
433 into calls to create_dwp_v2_or_v5_section.
434 (create_dwo_unit_in_dwp_v5): New function.
435 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
436 check for version2; add else clause to handle version 5.
437 (open_and_init_dwo_file): Add code to check dwarf version & only call
438 create_debug_types_hash_table (with sections.types) if version is not 5;
439 else call create_debug_type_hash_table, with sections.info.
440 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
441 version 5.
442 (dwarf2_locate_v5_dwp_sections): New function.
443 (open_and_init_dwp_file): Add else-if clause for version 5 to call
444 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
d2854d8d 445
159ed7d9
SM
4462020-08-06 Simon Marchi <simon.marchi@efficios.com>
447
448 * regcache.h (class regcache): Remove friend
449 registers_changed_ptid.
450 <regcache_thread_ptid_changed>: Remove.
451 <regcaches>: Remove.
452 * regcache.c (regcache::regcaches): Rename to...
453 (regcaches): ... this. Make static.
454 (get_thread_arch_aspace_regcache): Update.
455 (regcache::regcache_thread_ptid_changed): Rename to...
456 (regcache_thread_ptid_changed): ... this. Update.
457 (class regcache_access): Remove.
458 (regcaches_test): Update.
459 (_initialize_regcache): Update.
460 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
461 <forward_list>.
462
174981ae
SM
4632020-08-06 Simon Marchi <simon.marchi@efficios.com>
464
465 * regcache.h (class regcache) <current_regcache>: Rename to...
466 <regcaches>: ... this. Move doc here.
467 * regcache.c (regcache::current_regcache) Rename to...
468 (regcache::regcaches): ... this. Move doc to header.
469 (get_thread_arch_aspace_regcache): Update.
470 (regcache::regcache_thread_ptid_changed): Update.
471 (registers_changed_ptid): Update.
472 (class regcache_access) <current_regcache_size>: Rename to...
473 <regcaches_size>: ... this.
474 (current_regcache_test): Rename to...
475 (regcaches_test): ... this.
476 (_initialize_regcache): Update.
477
ed908db6
VC
4782020-08-06 Victor Collod <vcollod@nvidia.com>
479
480 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
481
b5582ab7
KB
4822020-08-05 Kevin Buettner <kevinb@redhat.com>
483
484 * corelow.c (core_target::build_file_mappings): Don't output
485 null pathname in warning.
486
ea946b86
SM
4872020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
488
489 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
490 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
491 gdb.dwarf2/dw2-single-line-discriminators.exp,
492 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
493
57d02173
TT
4942020-08-05 Tom Tromey <tromey@adacore.com>
495
496 PR rust/26197:
497 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
498 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
499 Fix off-by-one and type size errors in ordinary case.
500
5555c86d
TV
5012020-08-05 Tom de Vries <tdevries@suse.de>
502
503 * gdbtypes.c (type_not_allocated, type_not_associated): Use
504 "prop->const_val () == 0" instead of "prop->const_val () != 0".
505
97916bfe
SM
5062020-08-04 Simon Marchi <simon.marchi@efficios.com>
507
508 * frame.h (frame_id_p): Return bool.
509 (frame_id_artificial_p): Return bool.
510 (frame_id_eq): Return bool.
511 (has_stack_frames): Return bool.
512 (get_selected_frame): Fix typo in comment.
513 (get_frame_pc_if_available): Return bool.
514 (get_frame_address_in_block_if_available): Return bool.
515 (get_frame_func_if_available): Return bool.
516 (read_frame_register_unsigned): Return bool.
517 (get_frame_register_bytes): Return bool.
518 (safe_frame_unwind_memory): Return bool.
519 (deprecated_frame_register_read): Return bool.
520 (frame_unwinder_is): Return bool.
521 * frame.c (struct frame_info) <prev_arch::p>: Change type to
522 bool.
523 <this_id::p>: Likewise.
524 <prev_p>: Likewise.
525 (frame_stash_add): Return bool.
526 (get_frame_id): Use bool.
527 (frame_id_build_special) Use bool.
528 (frame_id_build_unavailable_stack): Use bool.
529 (frame_id_build): Use bool.
530 (frame_id_p): Return bool, use true/false instead of 1/0.
531 (frame_id_artificial_p): Likewise.
532 (frame_id_eq): Likewise.
533 (frame_id_inner): Likewise.
534 (get_frame_func_if_available): Likewise.
535 (read_frame_register_unsigned): Likewise.
536 (deprecated_frame_register_read): Likewise.
537 (get_frame_register_bytes): Likewise.
538 (has_stack_frames): Likewise.
539 (inside_main_func): Likewise.
540 (inside_entry_func): Likewise.
541 (get_frame_pc_if_available): Likewise.
542 (get_frame_address_in_block_if_available): Likewise.
543 (frame_unwinder_is): Likewise.
544 (safe_frame_unwind_memory): Likewise.
545 (frame_unwind_arch): Likewise.
546
fedfee88
SM
5472020-08-04 Simon Marchi <simon.marchi@efficios.com>
548
549 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
550 type to cached_copy_status.
551 (fprintf_frame): Adjust.
552 (get_frame_func_if_available): Adjust.
553 (frame_cleanup_after_sniffer): Adjust.
554
6cfa9b59
MW
5552020-08-04 Mark Wielaard <mark@klomp.org>
556
557 * MAINTAINERS (Write After Approval): Update email address.
558
66d6346b
SM
5592020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
560
561 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
562 dynamic_prop::const_val.
563
8a6d5e35
SM
5642020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
565
566 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
567 dynamic_prop::kind.
568
51d6067d
SM
5692020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
570
571 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
572
b26e2ae7
JM
5732020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
574
575 * configure.tgt: Set gdb_sim for bpf-*-* targets.
576
39791af2
JM
5772020-08-04 Weimin Pan <weimin.pan@oracle.com>
578 Jose E. Marchesi <jose.marchesi@oracle.com>
579
580 * configure.tgt: Add entry for bpf-*-*.
581 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
582 (ALLDEPFILES): Add bpf-tdep.c.
583 * bpf-tdep.c: New file.
584 * MAINTAINERS: Add bpf target and maintainer.
585 * NEWS: Mention the support for the new target.
586
521894aa
TV
5872020-08-04 Tom de Vries <tdevries@suse.de>
588
589 PR symtab/23270
590 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
591 Error.
592
5d6356e9
JB
5932020-08-03 John Baldwin <jhb@FreeBSD.org>
594
595 * syscalls/freebsd.xml: Regenerate.
596
0cf82b81
JB
5972020-08-03 John Baldwin <jhb@FreeBSD.org>
598
599 * syscalls/update-freebsd.sh: Fix usage and year range.
600
8f34b746
TV
6012020-08-03 Tom de Vries <tdevries@suse.de>
602
603 PR symtab/26333
604 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
605 DW_LNE_lo_user/DW_LNE_hi_user range.
606
5e500d33
SM
6072020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
608
609 PR ada/26318
610 * ada-lang.c (ada_modulus): Return 0 if property is not of const
611 kind.
612
78319c15
TBA
6132020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
614
615 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
616
4c55e970
TBA
6172020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
618
619 * breakpoint.c (set_breakpoint_condition): Update the condition
620 expressions after checking that the input condition string parses
621 successfully and does not contain junk at the end.
622
1e620590
TBA
6232020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
624
625 * breakpoint.c (set_breakpoint_condition): Update the
626 condition string after parsing the new condition successfully.
627
c8693053
RO
6282020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
629
630 * proc-api.c (_STRUCTURED_PROC): Don't define.
631 * proc-events.c: Likewise.
632 * proc-flags.c: Likewise.
633 * proc-why.c: Likewise.
634 * procfs.c: Likewise.
635
636 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
637 * configure, config.in: Regenerate.
638
5a99adb8
TV
6392020-07-30 Tom de Vries <tdevries@suse.de>
640
641 PR build/26320
642 * ui-style.h (struct ui_file_style::color): Wrap m_value and
643 m_red/m_green/m_blue in a union.
644
8ba83e91
TV
6452020-07-29 Tom de Vries <tdevries@suse.de>
646
647 PR tdep/26280
648 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
649
f75a0693
AB
6502020-07-28 Tom Tromey <tromey@adacore.com>
651
652 PR symtab/26270:
653 * symtab.h (find_pc_partial_function_sym): Declare.
654 * cli/cli-cmds.c (disassemble_command): Use
655 find_pc_partial_function_sym. Check asm_demangle.
656 * blockframe.c (cache_pc_function_sym): New global.
657 (cache_pc_function_name): Remove.
658 (clear_pc_function_cache): Update.
659 (find_pc_partial_function_sym): New function, from
660 find_pc_partial_function.
661 (find_pc_partial_function): Rewrite using
662 find_pc_partial_function_sym.
663
16f3242c
TT
6642020-07-28 Tom Tromey <tromey@adacore.com>
665
666 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
667 help. Add usage.
668
4888741a
TT
6692020-07-28 Tom Tromey <tromey@adacore.com>
670
671 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
672 <DW_OP_GNU_variable_value>: Cast to address type.
673
4d46f402
KR
6742020-07-28 Kamil Rytarowski <n54@gmx.com>
675
676 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
677 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
678 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
679 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
680 (nbsd_get_siginfo_type): New.
681 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
682 (_initialize_nbsd_tdep): New.
683
d70f978b
L
6842020-07-28 H.J. Lu <hongjiu.lu@intel.com>
685
686 PR binutils/26301
687 * configure: Regenerated.
688
377170fa
L
6892020-07-28 H.J. Lu <hongjiu.lu@intel.com>
690
691 PR binutils/26301
692 * configure: Regenerated.
693
43d5901d
AB
6942020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
695
696 * python/py-frame.c: Remove 'user-regs.h' include.
697 (frapy_read_register): Rewrite to make use of
698 gdbpy_parse_register_id.
699 * python/py-registers.c (gdbpy_parse_register_id): New function,
700 moved here from python/py-unwind.c. Updated the return type, and
701 also accepts register descriptor objects.
702 * python/py-unwind.c: Remove 'user-regs.h' include.
703 (pyuw_parse_register_id): Moved to python/py-registers.c.
704 (unwind_infopy_add_saved_register): Update to use
705 gdbpy_parse_register_id.
706 (pending_framepy_read_register): Likewise.
707 * python/python-internal.h (gdbpy_parse_register_id): Declare.
708
14fa8fb3
AB
7092020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
710
711 * python/py-registers.c: Add 'user-regs.h' include.
712 (register_descriptor_iter_find): New function.
713 (register_descriptor_iterator_object_methods): New static global
714 methods array.
715 (register_descriptor_iterator_object_type): Add pointer to methods
716 array.
717
ddce1758
JB
7182020-07-27 John Baldwin <jhb@FreeBSD.org>
719
720 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
721 for all architectures on FreeBSD 11.3 and later.
722
a4089f52
TT
7232020-07-27 Tom Tromey <tromey@adacore.com>
724
725 * gcore.h (load_corefile): Don't declare.
726
95420d30
TV
7272020-07-27 Tom de Vries <tdevries@suse.de>
728
729 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
730 * config.in: Regenerate.
731 * configure: Regenerate.
732
05a6b8c2
EZ
7332020-07-26 Eli Zaretskii <eliz@gnu.org>
734
735 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
736 ws2tcpip.h. When checking whether socklen_t type is defined, use
737 ws2tcpip.h if it is available and sys/socket.h isn't.
738 * configure: Regenerate.
739 * config.in: Regenerate.
740
e79eb02f
AB
7412020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
742
743 PR fortran/23051
744 PR fortran/26139
745 * valops.c (value_ind): Pass address to
746 readjust_indirect_value_type.
747 * value.c (readjust_indirect_value_type): Make parameter
748 non-const, and add extra address parameter. Resolve original type
749 before using it.
750 * value.h (readjust_indirect_value_type): Update function
751 signature and comment.
752
876518dd
TV
7532020-07-25 Tom de Vries <tdevries@suse.de>
754
755 PR symtab/26243
756 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
757 entries.
758
f6720b1c
AM
7592020-07-24 Aaron Merey <amerey@redhat.com>
760
761 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
762 * configure: Rebuild.
763
513487e1
KB
7642020-07-23 Kevin Buettner <kevinb@redhat.com>
765
766 PR corefiles/26294
767 * corelow.c (_initialize_corelow): Add period to help text
768 for "maintenance print core-file-backed-mappings".
769
e7bc9db8
PA
7702020-07-23 Pedro Alves <pedro@palves.net>
771
772 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
773 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
774 meanwhile.
775 * frame.c (frame_cache_generation, get_frame_cache_generation):
776 New.
777 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
778 (get_prev_frame_if_no_cycle): On exception, don't touch
779 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
780 * frame.h (get_frame_cache_generation): Declare.
781
90fcc466
TV
7822020-07-23 Tom de Vries <tdevries@suse.de>
783
784 PR tui/26282
785 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
786 New default constructor.
787
78344df7
AB
7882020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
789
790 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
791 exclude non-statement entries.
792
b089853a
KB
7932020-07-22 Kevin Buettner <kevinb@redhat.com>
794
795 * NEWS (New commands): Mention new command
796 "maintenance print core-file-backed-mappings".
797
09c2f5d4
KB
7982020-07-22 Kevin Buettner <kevinb@redhat.com>
799
800 * corelow.c (gdbcmd.h): Include.
801 (core_target::info_proc_mappings): New method.
802 (get_current_core_target): New function.
803 (maintenance_print_core_file_backed_mappings): New function.
804 (_initialize_corelow): Add core-file-backed-mappings to
805 "maint print" commands.
806
9c5ec5c2 8072020-07-22 Kevin Buettner <kevinb@redhat.com>
fe4c3d43 808
9c5ec5c2
KB
809 * linux-tdep.c (dump_note_entry_p): New function.
810 (linux_dump_mapping_p_ftype): New typedef.
811 (linux_find_memory_regions_full): Add new parameter,
812 should_dump_mapping_p.
813 (linux_find_memory_regions): Adjust call to
814 linux_find_memory_regions_full.
815 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
816 call to linux_find_memory_regions_full.
817
db082f59
KB
8182020-07-22 Kevin Buettner <kevinb@redhat.com>
819
820 * corelow.c (solist.h, unordered_map): Include.
821 (class core_target): Add field m_core_file_mappings and
822 method build_file_mappings.
823 (core_target::core_target): Call build_file_mappings.
824 (core_target::~core_target): Free memory associated with
825 m_core_file_mappings.
826 (core_target::build_file_mappings): New method.
827 (core_target::xfer_partial): Use m_core_file_mappings
828 for memory transfers.
829 * linux-tdep.c (linux_read_core_file_mappings): New
830 function.
831 (linux_core_info_proc_mappings): Rewrite to use
832 linux_read_core_file_mappings.
833 (linux_init_abi): Register linux_read_core_file_mappings.
834
7e183d27
KB
8352020-07-22 Kevin Buettner <kevinb@redhat.com>
836
837 * arch-utils.c (default_read_core_file_mappings): New function.
838 * arch-utils.c (default_read_core_file_mappings): Declare.
839 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
840 * gdbarch.h, gdbarch.c: Regenerate.
841
2735d421
KB
8422020-07-22 Kevin Buettner <kevinb@redhat.com>
843
844 PR corefiles/25631
845 * corelow.c (core_target:xfer_partial): Revise
846 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
847 case after first checking the stratum beneath the core
848 target.
849 (has_all_memory): Return true.
850 * target.c (raw_memory_xfer_partial): Revise comment
851 regarding use of has_all_memory.
852
e56cb451
KB
8532020-07-22 Kevin Buettner <kevinb@redhat.com>
854
855 * exec.h (section_table_xfer_memory): Revise declaration,
856 replacing section name parameter with an optional callback
857 predicate.
858 * exec.c (section_table_xfer_memory): Likewise.
859 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
860 of section_table_xfer_memory.
861
32fa152e
TT
8622020-07-22 Tom Tromey <tromey@adacore.com>
863
864 * mi/mi-cmd-stack.c (list_args_or_locals): Use
865 lookup_symbol_search_name.
866
a67a1c41
AB
8672020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
868
869 * python/py-registers.c (gdbpy_register_object_data_init): Remove
870 redundant local variable.
871 (gdbpy_get_register_descriptor): Extract descriptor vector as a
872 reference, not pointer, update code accordingly.
873
a7b4ff4f
SM
8742020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
875 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
876
877 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
878 * jit.c (jit_breakpoint_re_set_internal): Use the
879 `skip_jit_symbol_lookup` field.
880
2340e834
SM
8812020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
882 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
883
884 * jit.c (jit_read_descriptor): Define the descriptor address once,
885 use twice.
886 (jit_breakpoint_deleted): Move the declaration of the loop variable
887 `iter` into the loop header.
888 (jit_breakpoint_re_set_internal): Move the declaration of the local
889 variable `objf_data` to the first point of definition.
890 (jit_event_handler): Move the declaration of local variables
891 `code_entry`, `entry_addr`, and `objf` to their first point of use.
892 Rename `objf` to `jited`.
893
c1072906
SM
8942020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
895
896 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
897 Remove.
898 * jit.c (get_jiter_objfile_data): Update.
899
c8474dc3
TBA
9002020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
901 Simon Marchi <simon.marchi@polymtl.ca>
902
903 * jit.c (struct jit_program_space_data): Remove.
904 (jit_program_space_key): Remove.
905 (jiter_objfile_data::~jiter_objfile_data): Remove program space
906 stuff.
907 (get_jit_program_space_data): Remove.
908 (jit_breakpoint_deleted): Iterate on all of the program space's
909 objfiles.
910 (jit_inferior_init): Likewise.
911 (jit_breakpoint_re_set_internal): Likewise. Also change return
912 type to void.
913 (jit_breakpoint_re_set): Pass current_program_space to
914 jit_breakpoint_re_set_internal.
915
77208eb7
SM
9162020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
917
918 * jit.h (struct jiter_objfile_data) <cached_code_address,
919 jit_breakpoint>: Move to here from ...
920 * jit.c (jit_program_space_data): ... here.
921 (jiter_objfile_data::~jiter_objfile_data): Update.
922 (jit_breakpoint_deleted): Update.
923 (jit_breakpoint_re_set_internal): Update.
924
8c1c720f
SM
9252020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
926
927 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
928 checks.
929 (jit_read_descriptor): Remove NULL check.
930 (jit_event_handler): Add an assertion.
931
0e74a041
SM
9322020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
933
934 * jit.h (struct jit_objfile_data): Split into...
935 (struct jiter_objfile_data): ... this ...
936 (struct jited_objfile_data): ... and this.
937 * objfiles.h (struct objfile) <jit_data>: Remove.
938 <jiter_data, jited_data>: New fields.
939 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
940 (jiter_objfile_data::~jiter_objfile_data): ... this.
941 (get_jit_objfile_data): Rename to ...
942 (get_jiter_objfile_data): ... this.
943 (add_objfile_entry): Update.
944 (jit_read_descriptor): Use get_jiter_objfile_data.
945 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
946 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
947 (jit_inferior_exit_hook): Use objfile's jited_data field.
948
238b5c9f
SM
9492020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
950
951 * jit.h: Forward-declare `struct minimal_symbol`.
952 (struct jit_objfile_data): Migrate to here from jit.c; also add a
953 constructor, destructor, and an objfile* field.
954 * jit.c (jit_objfile_data): Remove.
955 (struct jit_objfile_data): Migrate from here to jit.h.
956 (jit_objfile_data::~jit_objfile_data): New destructor
957 implementation with code moved from free_objfile_data.
958 (free_objfile_data): Delete.
959 (get_jit_objfile_data): Update to use the jit_data field of objfile.
960 (jit_find_objf_with_entry_addr): Ditto.
961 (jit_inferior_exit_hook): Ditto.
962 (_initialize_jit): Remove the call to
963 register_objfile_data_with_cleanup.
964 * objfiles.h (struct objfile) <jit_data>: New field.
965
fe053b9e
TBA
9662020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
967
968 * jit.h: Forward-declare `struct objfile`.
969 (jit_event_handler): Add a second parameter, the JITer objfile.
970 * jit.c (jit_read_descriptor): Change the signature to take the
971 JITer objfile as an argument instead of the jit_program_space_data.
972 (jit_inferior_init): Update the call to jit_read_descriptor.
973 (jit_event_handler): Use the new JITer objfile argument when calling
974 jit_read_descriptor.
975 * breakpoint.c (handle_jit_event): Update the call to
976 jit_event_handler to pass the JITer objfile.
977
4cec0c66
JB
9782020-07-21 John Baldwin <jhb@FreeBSD.org>
979
980 * gdbarch.c: Regenerate.
981 * gdbarch.h: Regenerate.
982 * gdbarch.sh (handle_segmentation_fault): Remove method.
983 * infrun.c (handle_segmentation_fault): Remove.
984 (print_signal_received_reason): Remove call to
985 handle_segmentation_fault.
986
0e42f66a
JB
9872020-07-21 John Baldwin <jhb@FreeBSD.org>
988
989 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
990 Rename to sparc64_linux_report_signal_info and add siggnal
991 argument.
992 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
993 instead of sparc64_linux_handle_segmentation_fault.
994
77bdfeb2
JB
9952020-07-21 John Baldwin <jhb@FreeBSD.org>
996
997 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
998 i386_linux_report_signal_info instead of
999 i386_linux_handle_segmentation_fault.
1000 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
1001 to i386_linux_report_signal_info and add siggnal argument.
1002 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
1003 of i386_linux_handle_segmentation_fault.
1004 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
1005 to i386_linux_report_signal_info and add siggnal argument.
1006
ad97bfc5
JB
10072020-07-21 John Baldwin <jhb@FreeBSD.org>
1008
1009 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
1010 hook if present.
1011
272bb05c
JB
10122020-07-21 John Baldwin <jhb@FreeBSD.org>
1013
1014 * gdbarch.c: Regenerate.
1015 * gdbarch.h: Regenerate.
1016 * gdbarch.sh (report_signal_info): New method.
1017 * infrun.c (print_signal_received_reason): Invoke gdbarch
1018 report_signal_info hook if present.
1019
baf8791e
AB
10202020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
1021
1022 * python/py-registers.c : Add 'unordered_map' include.
1023 (gdbpy_new_reggroup): Renamed to...
1024 (gdbpy_get_reggroup): ...this. Update to only create register
1025 group descriptors when needed.
1026 (gdbpy_reggroup_iter_next): Update.
1027
f7306dac
AB
10282020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
1029
1030 * python/py-registers.c (gdbpy_register_object_data): New static
1031 global.
1032 (gdbpy_register_object_data_init): New function.
1033 (gdbpy_new_register_descriptor): Renamed to...
1034 (gdbpy_get_register_descriptor): ...this, and update to reuse
1035 existing register descriptors where possible.
1036 (gdbpy_register_descriptor_iter_next): Update.
1037 (gdbpy_initialize_registers): Register new gdbarch data.
1038
05c309a8
SM
10392020-07-21 Simon Marchi <simon.marchi@efficios.com>
1040
1041 * linux-nat.c (stopped_pids): Make static.
1042
d1fd641e
SM
10432020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
1044
1045 PR ada/26235
1046 * gdbtypes.c (ada_discrete_type_low_bound,
1047 ada_discrete_type_high_bound): Handle undefined bounds.
1048
1de14d77
KR
10492020-07-21 Kamil Rytarowski <n54@gmx.com>
1050
1051 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
1052 declaration.
1053 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
1054 function.
1055
ed810cc7
JB
10562020-07-20 John Baldwin <jhb@FreeBSD.org>
1057
1058 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
1059 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
1060 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
1061 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
1062 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
1063 method.
1064
ae5369e7
LC
10652020-07-20 Ludovic Courtès <ludo@gnu.org>
1066
1067 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
1068 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
1069 which are deprecated in Guile 3.0.
1070 * configure.ac (try_guile_versions): Add "guile-3.0".
1071 * configure (try_guile_versions): Regenerate.
1072 * NEWS: Update entry.
1073
68cf161c
LC
10742020-07-20 Ludovic Courtès <ludo@gnu.org>
1075 Doug Evans <dje@google.com>
1076
1077 PR gdb/21104
1078 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
1079 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
1080 USING_GUILE_BEFORE_2_2.
1081 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
1082 Change type to 'scm_t_port_type *'.
1083 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
1084 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
1085 parameter and honor it. Update callers.
1086 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
1087 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
1088 functions.
1089 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
1090 USING_GUILE_BEFORE_2_2.
1091 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
1092 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
1093 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
1094 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
1095 and 'SCM_PORT_TYPE'.
1096 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
1097 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
1098 (gdbscm_memory_port_read, gdbscm_memory_port_write)
1099 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
1100 [!USING_GUILE_BEFORE_2_2]: New functions.
1101 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
1102 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
1103 'gdbscm_memory_port_read'.
1104 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
1105 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
1106 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
1107 function.
1108 (ioscm_init_memory_port): Remove.
1109 (ioscm_init_memory_port_stream): New function
1110 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
1111 function.
1112 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
1113 Return scm_from_uint (0).
1114 (gdbscm_set_memory_port_read_buffer_size_x)
1115 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
1116 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
1117 Return scm_from_uint (0).
1118 (gdbscm_set_memory_port_write_buffer_size_x)
1119 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
1120 * configure.ac (try_guile_versions): Add "guile-2.2".
1121 * configure: Regenerate.
1122 * NEWS: Add entry.
1123
aee91db3
TT
11242020-07-18 Tom Tromey <tom@tromey.com>
1125
1126 * linux-nat.c (linux_multi_process): Remove.
1127 (linux_nat_target::supports_multi_process): Return true.
1128
0e267416
AB
11292020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
1130
1131 * arch/riscv.c (riscv_tdesc_cache): Change map type.
1132 (riscv_lookup_target_description): Return pointer out of
1133 unique_ptr.
1134 * target-descriptions.c (allocate_target_description): Add
1135 comment.
1136 (target_desc_deleter::operator()): Likewise.
1137 * target-descriptions.h (struct target_desc_deleter): Moved to
1138 gdbsupport/tdesc.h.
1139 (target_desc_up): Likewise.
1140
f80c8ec4
TT
11412020-07-17 Tom Tromey <tromey@adacore.com>
1142
1143 * linux-nat.c (linux_nat_target::supports_non_stop)
1144 (linux_nat_target::always_non_stop_p): Use "true".
1145 (linux_nat_target::supports_disable_randomization): Use "true" and
1146 "false".
1147
d0ce17d8
CT
11482020-07-16 Caroline Tice <cmtice@google.com>
1149
1150 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
1151 (RNGLIST_HEADER_SIZE64): New constant definition.
1152 (struct dwop_section_names): Add rnglists_dwo.
1153 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
1154 (struct loclist_header): Rename to 'loclists_rnglists_header'.
1155 (struct dwo_sections): Add rnglists field.
1156 (read_attribut_reprocess): Add tag parameter.
1157 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
1158 (cu_debug_rnglists_section): New function (decl & definition).
1159 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
1160 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
1161 die whose range is being checked; get rnglist section from
1162 cu_debug_rnglists_section, to get from either objfile or dwo file as
1163 appropriate. Add cases for DW_RLE_base_addressx,
1164 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
1165 the base address to DW_RLE_offset_pairs (not to all ranges), moving
1166 test inside if-condition and updating complaint message.
1167 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
1168 dwarf2_rnglists_process.
1169 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
1170 dwarf2_ranges_process.
1171 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
1172 need_ranges_base and update comment appropriately. Also pass die tag
1173 to dwarf2_ranges_read.
1174 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
1175 need_ranges_base and update comment appropriately. Also pass die tag
1176 to dwarf2_ranges_process.
1177 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
1178 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
1179 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
1180 need_ranges_base and update comment appropriately. Also pass die tag
1181 to read_attribute_reprocess and dwarf2_ranges_read.
1182 (read_loclist_header): Rename function to read_loclists_rnglists_header,
1183 and update function comment appropriately.
1184 (read_loclist_index): Call read_loclists_rnglists_header instead of
1185 read_loclist_header.
1186 (read_rnglist_index): New function.
1187 (read_attribute_reprocess): Add tag parameter. Add code for
1188 DW_FORM_rnglistx, passing tag to read_rnglist_index.
1189 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
1190
3dcc261c
AB
11912020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
1192
1193 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
1194 being resolved.
1195
ccb9eba6
AB
11962020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
1197
1198 * arch-utils.c (show_architecture): Update formatting of messages.
1199
cf88be68
SM
12002020-07-12 Simon Marchi <simon.marchi@efficios.com>
1201
1202 * gdbtypes.h (struct type) <bounds>: Handle array and string
1203 types.
1204 * ada-lang.c (assign_aggregate): Use type::bounds on
1205 array/string type.
1206 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
1207 * c-varobj.c (c_number_of_children): Likewise.
1208 (c_describe_child): Likewise.
1209 * eval.c (evaluate_subexp_for_sizeof): Likewise.
1210 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
1211 (f_type_print_base): Likewise.
1212 * f-valprint.c (f77_array_offset_tbl): Likewise.
1213 (f77_get_upperbound): Likewise.
1214 (f77_print_array_1): Likewise.
1215 * guile/scm-type.c (gdbscm_type_range): Likewise.
1216 * m2-typeprint.c (m2_array): Likewise.
1217 (m2_is_long_set_of_type): Likewise.
1218 * m2-valprint.c (get_long_set_bounds): Likewise.
1219 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
1220 * python/py-type.c (typy_range): Likewise.
1221 * rust-lang.c (rust_internal_print_type): Likewise.
1222 * type-stack.c (type_stack::follow_types): Likewise.
1223 * valarith.c (value_subscripted_rvalue): Likewise.
1224 * valops.c (value_cast): Likewise.
1225
509971ae
SM
12262020-07-12 Simon Marchi <simon.marchi@efficios.com>
1227
1228 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
1229 callers to use the equivalent accessor methods.
1230
107406b7
SM
12312020-07-12 Simon Marchi <simon.marchi@efficios.com>
1232
1233 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
1234 (struct type) <bit_stride>: New method.
1235 (TYPE_BIT_STRIDE): Remove.
1236 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
1237
bb789949
SM
12382020-07-12 Simon Marchi <simon.marchi@efficios.com>
1239
1240 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
1241 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
1242 callers to use the equivalent accessor methods instead.
1243
39498edb
SM
12442020-07-12 Simon Marchi <simon.marchi@efficios.com>
1245
1246 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
1247 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
1248 callers to use the equivalent accessor methods instead.
1249
3b606f38
SM
12502020-07-12 Simon Marchi <simon.marchi@efficios.com>
1251
1252 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
1253 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
1254 to use dynamic_prop::kind.
1255
064d9cb9
SM
12562020-07-12 Simon Marchi <simon.marchi@efficios.com>
1257
1258 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
1259 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
1260 to get the bound property's kind and check against
1261 PROP_UNDEFINED.
1262
5537ddd0
SM
12632020-07-12 Simon Marchi <simon.marchi@efficios.com>
1264
1265 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
1266 all callers to use type::range_bounds followed by
1267 dynamic_prop::{low,high}.
1268
8c2e4e06
SM
12692020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
1270
1271 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
1272 const_val, set_const_val, baton, set_locexpr, set_loclist,
1273 set_addr_offset, variant_parts, set_variant_parts,
1274 original_type, set_original_type>: New methods.
1275 <kind>: Rename to...
1276 <m_kind>: ... this. Update all users to use the new methods
1277 instead.
1278 <data>: Rename to...
1279 <m_data>: ... this. Update all users to use the new methods
1280 instead.
1281
7c6f2712
SM
12822020-07-12 Simon Marchi <simon.marchi@efficios.com>
1283
1284 * gdbtypes.c (get_discrete_bounds): Return failure if
1285 the range type's bounds are not both defined and constant
1286 values.
1287 (get_array_bounds): Update comment. Remove undefined bound check.
1288
599088e3
SM
12892020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
1290
1291 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
1292 the type::bounds method directly.
1293
c4dfcb36
SM
12942020-07-12 Simon Marchi <simon.marchi@efficios.com>
1295
1296 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
1297 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
1298 are used to set the range type's bounds to use set_bounds.
1299
0a278aa7
PW
13002020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1301
1302 * exec.c (_initialize_exec): Update exec-file-mismatch help.
1303
cce20f10
PA
13042020-07-10 Pedro Alves <pedro@palves.net>
1305
1306 * gdbthread.h (inferior_ref): Define.
1307 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
1308 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
1309 * thread.c
1310 (scoped_restore_current_thread::restore):
1311 Adjust to gdb::ref_ptr.
1312 (scoped_restore_current_thread::~scoped_restore_current_thread):
1313 Remove manual decref handling.
1314 (scoped_restore_current_thread::scoped_restore_current_thread):
1315 Adjust to use
1316 inferior_ref::new_reference/thread_info_ref::new_reference.
1317 Incref the thread before calling get_frame_id instead of after.
1318 Let TARGET_CLOSE_ERROR propagate.
1319
6d7aa592
PA
13202020-07-10 Pedro Alves <pedro@palves.net>
1321
1322 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
1323 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
1324 NOT_AVAILABLE_ERROR.
1325 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
1326 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
1327
b3e3a4c1
SM
13282020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
1329 Pedro Alves <pedro@palves.net>
1330
1331 PR gdb/26199
1332 * infrun.c (threads_are_resumed_pending_p): Delete.
1333 (do_target_wait): Remove threads_are_executing and
1334 threads_are_resumed_pending_p checks from the inferior_matches
1335 lambda. Update comments.
1336
d6cc5d98
PA
13372020-07-10 Pedro Alves <pedro@palves.net>
1338
1339 PR gdb/26199
1340 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
1341 executing threads.
1342
7d3badc6
PA
13432020-07-10 Pedro Alves <pedro@palves.net>
1344
1345 PR gdb/26199
1346 * infrun.c (handle_no_resumed): Handle multiple targets.
1347
42bd97a6
PA
13482020-07-10 Pedro Alves <pedro@palves.net>
1349
1350 PR gdb/26199
1351 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
1352 target_is_async_p.
1353
43667cc6
PA
13542020-07-10 Pedro Alves <pedro@palves.net>
1355
1356 PR gdb/26199
1357 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
1358 threads, not all threads.
1359
96118d11
PA
13602020-07-10 Pedro Alves <pedro@palves.net>
1361
1362 PR gdb/26199
1363 * remote.c (remote_target::open_1): Pass remote target pointer as
1364 data to create_async_event_handler.
1365 (remote_async_inferior_event_handler): Mark async event handler
1366 before returning if the remote target still has either pending
1367 events or unacknowledged notifications.
1368
54904d81
JB
13692020-07-10 John Baldwin <jhb@FreeBSD.org>
1370
1371 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
1372 declaration.
1373 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
1374 function.
1375
f37e5866
JB
13762020-07-09 John Baldwin <jhb@FreeBSD.org>
1377
1378 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
1379 inferior_ptid.
1380
fc238d4a
JB
13812020-07-09 John Baldwin <jhb@FreeBSD.org>
1382
1383 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
1384 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
1385 AT_FREEBSD_PS_STRINGS.
1386
6e2469ff
HD
13872020-07-08 Hannes Domani <ssbssa@yahoo.de>
1388
1389 * auto-load.c (auto_load_objfile_script_1): Convert drive part
1390 of debugfile path on Windows.
1391
d1076c41
JB
13922020-07-08 John Baldwin <jhb@FreeBSD.org>
1393
1394 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
1395 argument to 'data'.
1396
15f3b077
TT
13972020-07-08 Tom Tromey <tromey@adacore.com>
1398
1399 * ada-lang.c (ada_exception_message_1): Use read_memory.
1400
9fc501fd
AB
14012020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1402
1403 PR python/22748
1404 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
1405 special handling for inline frames.
1406 * findvar.c (value_of_register_lazy): Skip inline frames when
1407 creating lazy register values.
1408 * frame.c (frame_id_computed_p): Delete definition.
1409 * frame.h (frame_id_computed_p): Delete declaration.
1410
64cb3757
AB
14112020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1412
1413 * NEWS: Mention additions to Python API.
1414 * python/py-arch.c (archpy_register_groups): New function.
1415 (arch_object_methods): Add 'register_groups' method.
1416 * python/py-registers.c (reggroup_iterator_object): New struct.
1417 (reggroup_object): New struct.
1418 (gdbpy_new_reggroup): New function.
1419 (gdbpy_reggroup_to_string): New function.
1420 (gdbpy_reggroup_name): New function.
1421 (gdbpy_reggroup_iter): New function.
1422 (gdbpy_reggroup_iter_next): New function.
1423 (gdbpy_new_reggroup_iterator): New function
1424 (gdbpy_initialize_registers): Register new types.
1425 (reggroup_iterator_object_type): Define new Python type.
1426 (gdbpy_reggroup_getset): New static global.
1427 (reggroup_object_type): Define new Python type.
1428 * python/python-internal.h
1429
0f767f94
AB
14302020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1431
1432 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
1433 * python/py-arch.c (archpy_registers): New function.
1434 (arch_object_methods): Add 'registers' method.
1435 * python/py-registers.c: New file.
1436 * python/python-internal.h
1437 (gdbpy_new_register_descriptor_iterator): Declare.
1438 (gdbpy_initialize_registers): Declare.
1439 * python/python.c (do_start_initialization): Call
1440 gdbpy_initialize_registers.
1441 * NEWS: Mention additions to the Python API.
1442
87dbc774
AB
14432020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1444
1445 * NEWS: Mention new Python API method.
1446 * python/py-unwind.c (pending_framepy_architecture): New function.
1447 (pending_frame_object_methods): Add architecture method.
1448
3bc98c0c
AB
14492020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1450
1451 * gdbarch.c: Regenerate.
1452 * gdbarch.h: Regenerate.
1453 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
1454 (gdbarch_data): Use internal_error for the case where
1455 deprecated_set_gdbarch_data was originally needed.
1456 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
1457 and use passed in obstack.
1458 (libunwind_frame_set_descr): Should no longer get back NULL from
1459 gdbarch_data.
1460 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
1461 type.
1462 * user-regs.c (user_regs_init): Update parameters, and use passed
1463 in obstack.
1464 (user_reg_add): Should no longer get back NULL from gdbarch_data.
1465 (_initialize_user_regs): Register as a pre-init gdbarch data type.
1466
d8cc8af6
TV
14672020-07-06 Tom de Vries <tdevries@suse.de>
1468
1469 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
1470 End-Of-Sequence in lte_is_less_than.
1471 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
1472 "gdb: Don't reorder line table entries too much when sorting".
1473
947f7597
TV
14742020-07-06 Tom de Vries <tdevries@suse.de>
1475
1476 PR tui/26205
1477 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
1478
1e7c1b22
TV
14792020-07-05 Tom de Vries <tdevries@suse.de>
1480
1481 PR build/26187
1482 * inferior.h (struct infcall_suspend_state_deleter): If available, use
1483 std::uncaught_exceptions instead of deprecated
1484 std::uncaught_exception.
1485
a36158ec
SM
14862020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
1487
1488 * macroexp.h (macro_stringify): Return
1489 gdb::unique_xmalloc_ptr<char>.
1490 * macroexp.c (macro_stringify): Likewise.
1491 * macrotab.c (fixup_definition): Update.
1492
14d960c8
SM
14932020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
1494
1495 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
1496 (lex_one_token): Update.
1497 * macroexp.c (struct macro_buffer) <release>: Return
1498 gdb::unique_xmalloc_ptr<char>.
1499 (macro_stringify): Update.
1500 (macro_expand): Update.
1501 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
1502 * macroexp.h (macro_expand_next): Likewise.
1503
211d5b1c
SM
15042020-07-02 Simon Marchi <simon.marchi@efficios.com>
1505
1506 * macroexp.h (macro_lookup_ftype): Remove.
1507 (macro_expand, macro_expand_once, macro_expand_next): Remove
1508 lookup function parameters, add scope parameter.
1509 * macroexp.c (scan, substitute_args, expand, maybe_expand,
1510 macro_expand, macro_expand_once, macro_expand_next): Likewise.
1511 * macroscope.h (standard_macro_lookup): Change parameter type
1512 to macro_scope.
1513 * macroscope.c (standard_macro_lookup): Likewise.
1514 * c-exp.y (lex_one_token): Update.
1515 * macrocmd.c (macro_expand_command): Likewise.
1516 (macro_expand_once_command): Likewise.
1517
b1a35af2
SM
15182020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
1519
1520 * inf-loop.c (inferior_event_handler): Remove client_data param.
1521 * inf-loop.h (inferior_event_handler): Likewise.
1522 * infcmd.c (step_1): Adjust.
1523 * infrun.c (proceed): Adjust.
1524 (fetch_inferior_event): Remove client_data param.
1525 (infrun_async_inferior_event_handler): Adjust.
1526 * infrun.h (fetch_inferior_event): Remove `void *` param.
1527 * linux-nat.c (handle_target_event): Adjust.
1528 * record-btrace.c (record_btrace_handle_async_inferior_event):
1529 Adjust.
1530 * record-full.c (record_full_async_inferior_event_handler):
1531 Adjust.
1532 * remote.c (remote_async_inferior_event_handler): Adjust.
1533
1cdf9e33
TT
15342020-07-01 Tom Tromey <tom@tromey.com>
1535
1536 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
1537 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
1538
32c1e210
TT
15392020-07-01 Tom Tromey <tom@tromey.com>
1540
1541 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
1542 tui_gen_win_info.
1543 (tui_win_info::make_window): Merge with
1544 tui_gen_win_info::make_window.
1545 (tui_win_info::make_visible): Move from tui_gen_win_info.
1546 * tui/tui-win.c (tui_win_info::max_width): Move from
1547 tui_gen_win_info.
1548 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
1549 type.
1550 <window_factory>: Likewise.
1551 * tui/tui-layout.c (tui_win_info::resize): Move from
1552 tui_gen_win_info.
1553 (make_standard_window): Change return type.
1554 (get_locator_window, tui_get_window_by_name): Likewise.
1555 (tui_layout_window::apply): Remove a cast.
1556 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
1557 (struct tui_win_info): Merge with tui_gen_win_info.
1558 (struct tui_gen_win_info): Remove.
1559
a30cb6da
TT
15602020-07-01 Tom Tromey <tom@tromey.com>
1561
1562 * tui/tui-stack.h (struct tui_locator_window): Derive from
1563 tui_win_info.
1564 <do_scroll_horizontal, do_scroll_vertical>: New methods.
1565 <can_box>: New method.
1566
1eb2161f
TT
15672020-07-01 Tom Tromey <tom@tromey.com>
1568
1569 * tui/tui-stack.h (struct tui_locator_window): Remove body.
1570
7134f2eb
TT
15712020-07-01 Tom Tromey <tom@tromey.com>
1572
1573 * tui/tui-regs.c (tui_data_window::display_registers_from)
1574 (tui_data_window::display_registers_from)
1575 (tui_data_window::first_data_item_displayed)
1576 (tui_data_window::delete_data_content_windows): Update.
1577 (tui_data_window::refresh_window, tui_data_window::no_refresh):
1578 Remove.
1579 (tui_data_window::check_register_values): Update.
1580 (tui_data_item_window::rerender): Add parameters. Update.
1581 (tui_data_item_window::refresh_window): Remove.
1582 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
1583 virtual.
1584 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
1585 tui_gen_win_info.
1586 <refresh_window, max_height, min_height>: Remove.
1587 <rerender>: Add parameters.
1588 <x, y, visible>: New members.
1589 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
1590 <m_item_width>: New member.
1591
22b7b041
TT
15922020-07-01 Tom Tromey <tom@tromey.com>
1593
1594 * tui/tui-regs.c (tui_data_window::show_register_group)
1595 (tui_data_window::check_register_values): Update.
1596 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
1597 from item_no.
1598
c9753adb
TT
15992020-07-01 Tom Tromey <tom@tromey.com>
1600
1601 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
1602 useless "if".
1603
9ab26b4a
TT
16042020-07-01 Tom Tromey <tom@tromey.com>
1605
1606 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
1607 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
1608
e555083f
TT
16092020-07-01 Tom Tromey <tom@tromey.com>
1610
1611 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
1612 * tui/tui-winsource.h (enum tui_line_or_address_kind)
1613 (struct tui_line_or_address): Move from tui-data.h.
1614 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
1615 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
1616 (tui_cmd_window, tui_source_window_base, tui_source_window)
1617 (tui_disasm_window): Don't declare.
1618 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
1619 to tui-winsource.h.
1620 (SINGLE_KEY): Move to tui-stack.c.
1621
7a02bab7
TT
16222020-07-01 Tom Tromey <tom@tromey.com>
1623
1624 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
1625 std::string.
1626 * tui/tui-regs.c (class tab_expansion_file): New.
1627 (tab_expansion_file::write): New method.
1628 (tui_register_format): Change return type. Use
1629 tab_expansion_file.
1630 (tui_get_register, tui_data_window::display_registers_from)
1631 (tui_data_item_window::rerender): Update.
1632 * tui/tui-io.h (tui_expand_tabs): Don't declare.
1633 * tui/tui-io.c (tui_expand_tabs): Remove.
1634
ea68593b
TT
16352020-07-01 Tom Tromey <tom@tromey.com>
1636
1637 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
1638
a8caed5d
FS
16392020-07-01 Fangrui Song <maskray@google.com>
1640
1641 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
1642
9cdf9820
AKS
16432020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
1644
1645 * dwarf2/read.c (set_die_type): Removed conditions to restrict
1646 forms for DW_AT_associated and DW_AT_allocated attributes,
1647 which is already checked in function attr_to_dynamic_prop.
1648
a1520ad8
TT
16492020-06-30 Tom Tromey <tromey@adacore.com>
1650
1651 * dwarf2/read.c (quirk_rust_enum): Correctly call
1652 alloc_rust_variant for default-less enum.
1653
5ac58899
TT
16542020-06-30 Tom Tromey <tromey@adacore.com>
1655
1656 PR build/26183:
1657 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
1658 gdb::to_string.
1659
19b187a9
SM
16602020-06-29 Simon Marchi <simon.marchi@efficios.com>
1661
1662 * gdbarch.sh (displaced_step_copy_insn): Update doc.
1663 * gdbarch.h: Re-generate.
1664
cd4c4c07
TT
16652020-06-28 Tom Tromey <tom@tromey.com>
1666
1667 * command.h (cmd_types): Remove.
1668 (cmd_type): Don't declare.
1669 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
1670 typedef.
1671 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
1672 * cli/cli-decode.c (cmd_type): Remove.
1673
05779d57
PA
16742020-06-27 Pedro Alves <palves@redhat.com>
1675
1676 * fork-child.c (prefork_hook): Adjust.
1677 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
1678 Delete.
1679 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
1680 * inferior.c (inferior::set_tty, inferior::tty): New methods.
1681 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
1682 Remove declarations.
1683 (struct inferior) <set_tty, tty>: New methods.
1684 (struct inferior) <terminal>: Rename to ...
1685 (struct inferior) <m_terminal>: ... this and make private.
1686 * main.c (captured_main_1): Adjust.
1687 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
1688 (mi_cmd_inferior_tty_show): Adjust.
1689 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
1690 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
1691
1776e3e5
NA
16922020-06-26 Nick Alcock <nick.alcock@oracle.com>
1693
1694 * configure.ac: Add --enable-libctf: handle --disable-static
1695 properly.
1696 * acinclude.m4: sinclude ../config/enable.m4.
1697 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
1698 (LIBCTF): Substitute in.
1699 (CTF_DEPS): New, likewise.
1700 (CLIBS): libctf needs symbols from libbfd: move earlier.
1701 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
1702 flags.
1703 * ctfread.c: Surround in ENABLE_LIBCTF.
1704 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
1705 * configure: Regenerate.
1706 * config.in: Likewise.
1707
58373b80
SM
17082020-06-25 Simon Marchi <simon.marchi@efficios.com>
1709
1710 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
1711
277474ee
SM
17122020-06-25 Simon Marchi <simon.marchi@efficios.com>
1713
1714 * inferior.h (struct inferior) <terminal>: Change type to
1715 gdb::unique_xmalloc_ptr<char>.
1716 * inferior.c (inferior::~inferior): Don't free inf->terminal.
1717 * infcmd.c (set_inferior_io_terminal): Don't free terminal
1718 field, adjust to unique pointer.
1719 (get_inferior_io_terminal): Adjust to unique pointer.
1720
6d74da72
AB
17212020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1722
1723 * riscv-tdep.c (riscv_print_registers_info): Loop over all
1724 registers, not just the known core set of registers.
1725
2e52d038
AB
17262020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1727
1728 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
1729 fflags, frm, and fcsr registers.
1730 (riscv_register_reggroup_p): Remove unknown CSRs from save and
1731 restore groups.
1732 (riscv_tdesc_unknown_reg): New function.
1733 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
1734 tdesc_use_registers.
1735 * riscv-tdep.h (struct gdbarch_tdep): Add
1736 unknown_csrs_first_regnum, unknown_csrs_count,
1737 duplicate_fflags_regnum, duplicate_frm_regnum, and
1738 duplicate_fcsr_regnum fields.
1739
be64fd07
AB
17402020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1741
1742 * target-descriptions.c (tdesc_use_registers): Add new parameter a
1743 callback, use the callback (when not null) to help number unknown
1744 registers.
1745 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
1746 (tdesc_use_registers): Add extra parameter to declaration.
1747
3b9fce96
AB
17482020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1749
1750 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
1751 in the file.
1752 (class riscv_pending_register_alias): Likewise.
1753 (riscv_register_feature::register_info): Change 'required_p' field
1754 to 'required', and change its type. Add 'check' member function.
1755 (riscv_register_feature::register_info::check): Define new member
1756 function.
1757 (riscv_xreg_feature): Change initialisation of 'required' field.
1758 (riscv_freg_feature): Likewise.
1759 (riscv_virtual_feature): Likewise.
1760 (riscv_csr_feature): Likewise.
1761 (riscv_check_tdesc_feature): Take extra parameter, the csr
1762 tdesc_feature, rewrite the function to use the new
1763 riscv_register_feature::register_info::check function.
1764 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
1765
865bad26
AB
17662020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1767
1768 * features/Makefile: Remove all references to the deleted files
1769 below.
1770 * features/riscv/32bit-csr.c: Deleted.
1771 * features/riscv/32bit-csr.xml: Deleted.
1772 * features/riscv/64bit-csr.c: Deleted.
1773 * features/riscv/64bit-csr.xml: Deleted.
1774 * features/riscv/rebuild-csr-xml.sh: Deleted.
1775
ed69cbc8
AB
17762020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1777
1778 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
1779 whitespace error for declaration of names member variable.
1780 (struct riscv_register_feature): Add new prefer_first_name member
1781 variable, and fix whitespace error in declaration of registers.
1782 (riscv_xreg_feature): Initialize prefer_first_name field.
1783 (riscv_freg_feature): Likewise.
1784 (riscv_virtual_feature): Likewise.
1785 (riscv_csr_feature): Likewise.
1786 (riscv_register_name): Expand on comments. Remove register name
1787 modifications for CSR and virtual registers.
1788
4445e8f5
AB
17892020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1790
1791 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
1792 errors.
1793
767a879e
AB
17942020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1795
1796 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
1797 riscv-opc.h.
1798 (class riscv_pending_register_alias): New class.
1799 (riscv_check_tdesc_feature): Take vector of pending aliases and
1800 populate it as appropriate.
1801 (riscv_setup_register_aliases): Delete.
1802 (riscv_gdbarch_init): Create vector of pending aliases and pass it
1803 to riscv_check_tdesc_feature in all cases. Use the vector to
1804 create the register aliases.
1805
bb6e55f3
RO
18062020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1807
1808 * sol2-tdep.c (sol2_static_transform_name): Remove.
1809 (sol2_init_abi): Don't register it.
1810 * gdbarch.sh (static_transform_name): Remove.
1811 * gdbarch.c, gdbarch.h: Regenerate.
1812
1813 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
1814 gdbarch_static_transform_name.
1815 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
1816 * stabsread.c (define_symbol) <'X'>: Remove.
1817 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
1818 handling.
1819 <'V'>: Likewise.
1820 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
1821 <'S'>: Remove call to gdbarch_static_transform_name.
1822
c6d36836
RO
18232020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1824
1825 * procfs.c (procfs_pre_trace): New function.
1826 (procfs_target::create_inferior): Pass it to fork_inferior.
1827
a7e6196b
RO
18282020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1829
1830 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
1831 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
1832 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
1833 sol2-tdep.o, sparc-sol2-tdep.o.
1834 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
1835 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
1836 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
1837 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
1838
d412e696
RO
18392020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1840
1841 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
1842 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
1843 Call sol2_init_abi.
1844 Remove calls to set_gdbarch_skip_solib_resolver,
1845 set_gdbarch_core_pid_to_str.
1846 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
1847 (i386_sol2_static_transform_name): Remove.
1848 (i386_sol2_init_abi): Call sol2_init_abi.
1849 Remove calls to set_gdbarch_sofun_address_maybe_missing,
1850 set_gdbarch_static_transform_name,
1851 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
1852 Use sol2_sigtramp_p.
1853 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
1854 (sol2_sigtramp_p): New function.
1855 (sol2_static_transform_name): New function.
1856 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
1857 (sol2_init_abi): New function.
1858 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
1859 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
1860 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
1861 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
1862 (sparc_sol2_static_transform_name): Remove.
1863 (sparc32_sol2_init_abi): Call sol2_init_abi.
1864 Remove calls to set_gdbarch_sofun_address_maybe_missing,
1865 set_gdbarch_static_transform_name,
1866 set_gdbarch_skip_solib_resolver,
1867 set_gdbarch_core_pid_to_str.
1868 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
1869 (sparc_sol2_static_transform_name): Remove
1870 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
1871 call sol2_sigtramp_p.
1872 (sparc64_sol2_init_abi): Call sol2_init_abi.
1873 Remove calls to set_gdbarch_sofun_address_maybe_missing,
1874 set_gdbarch_static_transform_name,
1875 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
1876
a8654e7d
PW
18772020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1878
1879 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
1880 * exec.c (validate_exec_file): If from_tty, set both
1881 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
1882 * symfile.c (symbol_file_add_with_addrs): if always_confirm
1883 and from_tty, unconditionally ask a confirmation.
1884
caa7fd04
AB
18852020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1886
1887 * target-descriptions.c (tdesc_architecture_name): Protect against
1888 NULL pointer dereference.
1889 (maint_print_xml_tdesc_cmd): New function.
1890 (_initialize_target_descriptions): Register new 'maint print
1891 xml-tdesc' command and give it the filename completer.
1892 * NEWS: Mention new 'maint print xml-tdesc' command.
1893
fbf42f4e
AB
18942020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1895
1896 * target-descriptions.c (class tdesc_compatible_info): New class.
1897 (struct target_desc): Change type of compatible vector.
1898 (tdesc_compatible_p): Update for change in type of
1899 target_desc::compatible.
1900 (tdesc_compatible_info_list): New function.
1901 (tdesc_compatible_info_arch_name): New function.
1902 (tdesc_add_compatible): Update for change in type of
1903 target_desc::compatible.
1904 (print_c_tdesc::visit_pre): Likewise.
1905
20821f4e
AB
19062020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1907
1908 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
1909 whitespace to underscore.
1910 (maint_print_c_tdesc_cmd): Use fake filename for target
1911 descriptions that came from the target.
1912 (_initialize_target_descriptions): Add filename command completion
1913 for 'maint print c-tdesc'.
1914
1fb5ee62
SM
19152020-06-23 Simon Marchi <simon.marchi@efficios.com>
1916
1917 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
1918 lines.
1919
fc3ecb3e
SM
19202020-06-23 Simon Marchi <simon.marchi@efficios.com>
1921
1922 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
1923 lines.
1924 (dwarf2_find_location_expression): Likewise.
1925 (call_site_parameter_matches): Likewise.
1926 (dwarf2_compile_expr_to_ax): Likewise.
1927 (disassemble_dwarf_expression): Likewise.
1928 (loclist_describe_location): Likewise.
1929
236ef034
PA
19302020-06-23 Pedro Alves <palves@redhat.com>
1931
1932 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
1933 progspace-and-thread.h. Include scoped-mock-context.h instead.
1934 (register_to_value_test): Use scoped_mock_context.
1935 * regcache.c: Include "scoped-mock-context.h".
1936 (cooked_read_test): Don't error out if a target is already pushed.
1937 Use scoped_mock_context. Adjust.
1938 * scoped-mock-context.h: New file.
1939
39e7ecca
AB
19402020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1941
1942 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
1943 initializer.
1944 (ada_language::is_string_type_p): New member function.
1945 * c-lang.c (c_language_data): Delete la_is_string_type_p
1946 initializer.
1947 (cplus_language_data): Likewise.
1948 (asm_language_data): Likewise.
1949 (minimal_language_data): Likewise.
1950 * d-lang.c (d_language_data): Likewise.
1951 * f-lang.c (f_is_string_type_p): Delete function, implementation
1952 moved to f_language::is_string_type_p.
1953 (f_language_data): Delete la_is_string_type_p initializer.
1954 (f_language::is_string_type_p): New member function,
1955 implementation from f_is_string_type_p.
1956 * go-lang.c (go_is_string_type_p): Delete function, implementation
1957 moved to go_language::is_string_type_p.
1958 (go_language_data): Delete la_is_string_type_p initializer.
1959 (go_language::is_string_type_p): New member function,
1960 implementation from go_is_string_type_p.
1961 * language.c (language_defn::is_string_type_p): Define new member
1962 function.
1963 (default_is_string_type_p): Make static, add comment copied from
1964 header file.
1965 (unknown_language_data): Delete la_is_string_type_p initializer.
1966 (unknown_language::is_string_type_p): New member function.
1967 (auto_language_data): Delete la_is_string_type_p initializer.
1968 (auto_language::is_string_type_p): New member function.
1969 * language.h (language_data): Delete la_is_string_type_p field.
1970 (language_defn::is_string_type_p): Declare new function.
1971 (default_is_string_type_p): Delete desclaration, move comment to
1972 definition.
1973 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
1974 moved to m2_language::is_string_type_p.
1975 (m2_language_data): Delete la_is_string_type_p initializer.
1976 (m2_language::is_string_type_p): New member function,
1977 implementation from m2_is_string_type_p.
1978 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
1979 initializer.
1980 * opencl-lang.c (opencl_language_data): Likewise.
1981 * p-lang.c (pascal_is_string_type_p): Delete function,
1982 implementation moved to pascal_language::is_string_type_p.
1983 (pascal_language_data): Delete la_is_string_type_p initializer.
1984 (pascal_language::is_string_type_p): New member function,
1985 implementation from pascal_is_string_type_p.
1986 * rust-lang.c (rust_is_string_type_p): Delete function,
1987 implementation moved to rust_language::is_string_type_p.
1988 (rust_language_data): Delete la_is_string_type_p initializer.
1989 (rust_language::is_string_type_p): New member function,
1990 implementation from rust_is_string_type_p.
1991 * valprint.c (val_print_scalar_or_string_type_p): Update call to
1992 is_string_type_p.
1993
4ffc13fb
AB
19942020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1995
1996 * ada-lang.c (ada_language_data): Delete la_print_typedef
1997 initializer.
1998 (ada_language::print_typedef): New member function.
1999 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
2000 (cplus_language_data): Likewise.
2001 (asm_language_data): Likewise.
2002 (minimal_language_data): Likewise.
2003 * d-lang.c (d_language_data): Likewise.
2004 * f-lang.c (f_language_data): Likewise.
2005 (f_language::print_typedef): New member function.
2006 * go-lang.c (go_language_data): Delete la_print_typedef
2007 initializer.
2008 * language.c (language_defn::print_typedef): Define member
2009 function.
2010 (unknown_language_data): Delete la_print_typedef initializer.
2011 (unknown_language::print_typedef): New member function.
2012 (auto_language_data): Delete la_print_typedef initializer.
2013 (auto_language::print_typedef): New member function.
2014 * language.h (language_data): Delete la_print_typedef field.
2015 (language_defn::print_typedef): Declare new member function.
2016 (LA_PRINT_TYPEDEF): Update call to print_typedef.
2017 (default_print_typedef): Delete declaration.
2018 * m2-lang.c (m2_language_data): Delete la_print_typedef
2019 initializer.
2020 (m2_language::print_typedef): New member function.
2021 * objc-lang.c (objc_language_data): Delete la_print_typedef
2022 initializer.
2023 * opencl-lang.c (opencl_language_data): Likewise.
2024 * p-lang.c (pascal_language_data): Likewise.
2025 (pascal_language::print_typedef): New member function.
2026 * rust-lang.c (rust_print_typedef): Delete function,
2027 implementation moved to rust_language::print_typedef.
2028 (rust_language): Delete la_print_typedef initializer.
2029 (rust_language::print_typedef): New member function,
2030 implementation from rust_print_typedef.
2031 * typeprint.c (default_print_typedef): Delete.
2032
d711ee67
AB
20332020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2034
2035 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
2036 (ada_language::printstr): New member function.
2037 * c-lang.c (c_language_data): Delete la_printstr initializer.
2038 (cplus_language_data): Likewise.
2039 (asm_language_data): Likewise.
2040 (minimal_language_data): Likewise.
2041 * d-lang.c (d_language_data): Likewise.
2042 * f-lang.c (f_printstr): Rename to f_language::printstr.
2043 (f_language_data): Delete la_printstr initializer.
2044 (f_language::printstr): New member function, implementation from
2045 f_printstr.
2046 * go-lang.c (go_language_data): Delete la_printstr initializer.
2047 * language.c (language_defn::printstr): Define new member
2048 function.
2049 (unk_lang_printstr): Delete.
2050 (unknown_language_data): Delete la_printstr initializer.
2051 (unknown_language::printstr): New member function.
2052 (auto_language_data): Delete la_printstr initializer.
2053 (auto_language::printstr): New member function.
2054 * language.h (language_data): Delete la_printstr field.
2055 (language_defn::printstr): Declare new member function.
2056 (LA_PRINT_STRING): Update call to printstr.
2057 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
2058 (m2_language_data): Delete la_printstr initializer.
2059 (m2_language::printstr): New member function, implementation from
2060 m2_printstr.
2061 * objc-lang.c (objc_language_data): Delete la_printstr
2062 initializer.
2063 * opencl-lang.c (opencl_language_data): Likewise.
2064 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
2065 (pascal_language_data): Delete la_printstr initializer.
2066 (pascal_language::printstr): New member function, implementation
2067 from pascal_printstr.
2068 * p-lang.h (pascal_printstr): Delete declaration.
2069 * rust-lang.c (rust_printstr): Update header comment.
2070 (rust_language_data): Delete la_printstr initializer.
2071 (rust_language::printstr): New member function.
2072
52b50f2c
AB
20732020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2074
2075 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
2076 (ada_language::printchar): New member function.
2077 * c-lang.c (c_language_data): Delete la_printchar initializer.
2078 (cplus_language_data): Likewise.
2079 (asm_language_data): Likewise.
2080 (minimal_language_data): Likewise.
2081 * d-lang.c (d_language_data): Likewise.
2082 * f-lang.c (f_printchar): Rename to f_language::printchar.
2083 (f_language_data): Delete la_printchar initializer.
2084 (f_language::printchar): New member function, implementation from
2085 f_printchar.
2086 * go-lang.c (go_language_data): Delete la_printchar initializer.
2087 * language.c (unk_lang_printchar): Delete.
2088 (language_defn::printchar): Define new member function.
2089 (unknown_language_data): Delete la_printchar initializer.
2090 (unknown_language::printchar): New member function.
2091 (auto_language_data): Delete la_printchar initializer.
2092 (auto_language::printchar): New member function.
2093 * language.h (language_data): Delete la_printchar field.
2094 (language_defn::printchar): Declare new member function.
2095 (LA_PRINT_CHAR): Update call to printchar.
2096 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
2097 (m2_language::printchar): New member function.
2098 * objc-lang.c (objc_language_data): Delete la_printchar
2099 initializer.
2100 * opencl-lang.c (opencl_language_data): Likewise.
2101 * p-lang.c (pascal_language_data): Delete la_printchar
2102 initializer.
2103 (pascal_language::printchar): New member function.
2104 * rust-lang.c (rust_printchar): Rename to
2105 rust_language::printchar.
2106 (rust_language_data): Delete la_printchar initializer.
2107 (rust_language::printchar): New member function, implementation
2108 from rust_printchar.
2109
ec8cec5b
AB
21102020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2111
2112 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
2113 (ada_language_data): Delete la_emitchar initializer.
2114 (ada_language::emitchar): New member function, implementation from
2115 emit_char.
2116 * c-lang.c (c_language_data): Delete la_emitchar initializer.
2117 (cplus_language_data): Likewise.
2118 (asm_language_data): Likewise.
2119 (minimal_language_data): Likewise.
2120 * d-lang.c (d_language_data): Likewise.
2121 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
2122 (f_language_data): Delete la_emitchar initializer.
2123 (f_language::emitchar): New member function, implementation from
2124 f_emit_char.
2125 * go-lang.c (go_language_data): Delete la_emitchar initializer.
2126 * language.c (unk_lang_emit_char): Delete.
2127 (language_defn::emitchar): New member function definition.
2128 (unknown_language_data): Delete la_emitchar initializer.
2129 (unknown_language::emitchar): New member function.
2130 (auto_language_data): Delete la_emitchar initializer.
2131 (auto_language::emitchar): New member function.
2132 * language.h (language_data): Delete la_emitchar field.
2133 (language_defn::emitchar): New member field declaration.
2134 (LA_EMIT_CHAR): Update call to emitchar.
2135 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
2136 (m2_language_data): Delete la_emitchar initializer.
2137 (m2_language::emitchar): New member function, implementation from
2138 m2_emit_char.
2139 * objc-lang.c (objc_language_data): Delete la_emitchar
2140 initializer.
2141 * opencl-lang.c (opencl_language_data): Likewise.
2142 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
2143 (pascal_language_data): Delete la_emitchar initializer.
2144 (pascal_language::emitchar): New member function, implementation
2145 from pascal_emit_char.
2146 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
2147 (rust_language_data): Delete la_emitchar initializer.
2148 (rust_language::emitchar): New member function, implementation
2149 from rust_emitchar.
2150
1bf9c363
AB
21512020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2152
2153 * ada-lang.c (resolve): Rename to ada_language::post_parser.
2154 (ada_language_data): Delete la_post_parser initializer.
2155 (ada_language::post_parser): New member function.
2156 * c-lang.c (c_language_data): Delete la_post_parser initializer.
2157 (cplus_language_data): Likewise.
2158 (asm_language_data): Likewise.
2159 (minimal_language_data): Likewise.
2160 * d-lang.c (d_language_data): Likewise.
2161 * f-lang.c (f_language_data): Likewise.
2162 * go-lang.c (go_language_data): Likewise.
2163 * language.c (unknown_language_data): Likewise.
2164 (auto_language_data): Likewise.
2165 * language.h (language_data): Delete la_post_parser field.
2166 (language_defn::post_parser): New member function.
2167 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
2168 * objc-lang.c (objc_language_data): Likewise.
2169 * opencl-lang.c (opencl_language_data): Likewise.
2170 * p-lang.c (pascal_language_data): Likewise.
2171 * parse.c (parse_exp_in_context): Update call to post_parser.
2172 (null_post_parser): Delete definition.
2173 * parser-defs.h (null_post_parser): Delete declaration.
2174 * rust-lang.c (rust_language_data): Delete la_post_parser
2175 initializer.
2176
87afa652
AB
21772020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2178
2179 * ada-lang.c (parse): Rename to ada_language::parser.
2180 (ada_language_data): Delete la_parser initializer.
2181 (ada_language::parser): New member function, implementation from
2182 parse.
2183 * c-lang.c (c_language_data): Delete la_parser initializer.
2184 (cplus_language_data): Likewise.
2185 (asm_language_data): Likewise.
2186 (minimal_language_data): Likewise.
2187 * d-lang.c (d_language_data): Likewise.
2188 (d_language::parser): New member function.
2189 * f-lang.c (f_language_data): Delete la_parser initializer.
2190 (f_language::parser): New member function.
2191 * go-lang.c (go_language_data): Delete la_parser initializer.
2192 (go_language::parser): New member function.
2193 * language.c (unk_lang_parser): Delete.
2194 (language_defn::parser): Define new member function.
2195 (unknown_language_data): Delete la_parser initializer.
2196 (unknown_language::parser): New member function.
2197 (auto_language_data): Delete la_parser initializer.
2198 (auto_language::parser): New member function.
2199 * language.h (language_data): Delete la_parser field.
2200 (language_defn::parser): Declare new member function.
2201 * m2-lang.c (m2_language_data): Delete la_parser initializer.
2202 (m2_language::parser): New member function.
2203 * objc-lang.c (objc_language_data): Delete la_parser initializer.
2204 * opencl-lang.c (opencl_language_data): Likewise.
2205 * p-lang.c (pascal_language_data): Likewise.
2206 (pascal_language::parser): New member function.
2207 * parse.c (parse_exp_in_context): Update call to parser.
2208 * rust-lang.c (rust_language_data): Delete la_parser initializer.
2209 (rust_language::parser): New member function.
2210
37825800
AB
22112020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2212
2213 * top.c (print_gdb_configuration): Print --with-python-libdir
2214 configuration value.
2215
5b860c93
PW
22162020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2217
2218 * NEWS: Mention change to the alias command.
2219
cf00cd6f
PW
22202020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2221
2222 * cli/cli-cmds.c (lookup_cmd_for_default_args)
2223 (alias_command_completer)
2224 (make_alias_options_def_group): New functions.
2225 (alias_opts, alias_option_defs): New struct and array.
2226 (alias_usage_error): Update usage.
2227 (alias_command): Handles optional DEFAULT-ARGS... arguments.
2228 Use option framework.
2229 (_initialize_cli_cmds): Update alias command help.
2230 Update aliases command help.
2231 (show_user):
2232 Add NULL for new default_args lookup_cmd argument.
2233 (valid_command_p): Rename to validate_aliased_command.
2234 Add NULL for new default_args lookup_cmd argument. Verify that the
2235 aliased_command has no default args.
2236 * cli/cli-decode.c (help_cmd): Show aliases definitions.
2237 (lookup_cmd_1, lookup_cmd): New argument default_args.
2238 (add_alias_cmd):
2239 Add NULL for new default_args lookup_cmd argument.
2240 (print_help_for_command): Show default args under the layout
2241 alias some_alias = some_aliased_cmd some_alias_default_arg.
2242 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
2243 xfree default_args in destructor.
2244 * cli/cli-script.c (process_next_line, do_define_command):
2245 Add NULL for new default_args lookup_cmd argument.
2246 * command.h: Declare new default_args argument in lookup_cmd
2247 and lookup_cmd_1.
2248 * completer.c (complete_line_internal_1):
2249 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
2250 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
2251 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
2252 Likewise.
2253 * infcmd.c (_initialize_infcmd): Likewise.
2254 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
2255 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
2256 * python/py-param.c (add_setshow_generic): Likewise.
2257 * remote.c (_initialize_remote): Likewise.
2258 * top.c (execute_command): Prepend default_args if command has some.
2259 (set_verbose):
2260 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
2261 * tracepoint.c (validate_actionline, encode_actions_1):
2262 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
2263
bd920864
TBA
22642020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2265
2266 * jit.c (jit_read_descriptor): Use bool as the return type.
2267 (jit_breakpoint_re_set_internal): Use bool as the return type.
2268 Invert the return value logic; return true if the jit breakpoint
2269 has been successfully initialized.
2270 (jit_inferior_init): Update the call to
2271 jit_breakpoint_re_set_internal.
2272
f8098322
PA
22732020-06-22 Pedro Alves <palves@redhat.com>
2274
2275 PR gdb/25939
2276 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
2277 Use the current inferior instead. Don't return
2278 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
2279 wait again.
2280 * sol-thread.c (sol_thread_target::wait): Don't reference
2281 inferior_ptid.
2282 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
2283 (sol_update_thread_list_callback): Use the current inferior's pid
2284 instead of inferior_ptid.
2285
196535a6
RO
22862020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2287
2288 * procfs.c: Cleanup many comments.
2289
2290 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
2291 (AFTER_WATCHFLAG): Replace by value.
2292
2293 (MAIN_PROC_NAME_FORMAT): Inline ...
2294 (create_procinfo): ... here.
2295
2296 (procfs_debug_inferior): Remove SYS_exec handling.
2297 (syscall_is_exec): Likewise.
2298 (procfs_set_exec_trap): Likewise.
2299
2300 (syscall_is_lwp_exit): Inline in callers.
2301 (syscall_is_exit): Likewise.
2302 (syscall_is_exec): Likewise.
2303 (syscall_is_lwp_create): Likewise.
2304
2305 (invalidate_cache): Remove #if 0 code.
2306
2307 (make_signal_thread_runnable): Remove.
2308 (procfs_target::resume): Remove #if 0 code.
2309
cf6f3e86
RO
23102020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2311
2312 PR gdb/25939
2313 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
2314 call ...
2315 (procfs_target::create_inferior): ... here.
2316
48e9cc84
PW
23172020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2318
2319 * exec.c (validate_exec_file): Ensure the build-id is up to
2320 date by calling reopen_exec_file (that checks file timestamp
2321 to decide to re-read the file).
2322
3922b302
PA
23232020-06-18 Pedro Alves <palves@redhat.com>
2324
2325 PR gdb/25412
2326 * gdbthread.h (delete_thread, delete_thread_silent)
2327 (find_thread_ptid): Update comments.
2328 * thread.c (current_thread_): New global.
2329 (is_current_thread): Move higher, and reimplement.
2330 (inferior_thread): Reimplement.
2331 (set_thread_exited): Use bool. Add assertions.
2332 (add_thread_silent): Simplify thread-reuse handling by always
2333 calling delete_thread.
2334 (delete_thread): Remove intro comment.
2335 (find_thread_ptid): Skip exited threads.
2336 (switch_to_thread_no_regs): Write to current_thread_.
2337 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
2338 INFERIOR_PTID. Clear current_thread_.
2339
6dbdab44
PA
23402020-06-18 Pedro Alves <palves@redhat.com>
2341
2342 * aix-thread.c (pd_update): Use switch_to_thread.
2343
2da4b788
PA
23442020-06-18 Pedro Alves <palves@redhat.com>
2345
2346 * ravenscar-thread.c (ravenscar_thread_target): Update.
2347 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
2348 (ravenscar_thread_target::add_active_thread): ... this. Don't
2349 set m_base_ptid here. Update to avoid referencing inferior_ptid.
2350 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
2351
50838d1b
PA
23522020-06-18 Pedro Alves <palves@redhat.com>
2353
2354 * nat/windows-nat.c (current_windows_thread): Remove.
2355 * nat/windows-nat.h (current_windows_thread): Remove.
2356 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
2357 Adjust.
2358 (display_selectors): Adjust to fetch the current
2359 windows_thread_info based on inferior_ptid.
2360 (fake_create_process): No longer write to current_windows_thread.
2361 (windows_nat_target::get_windows_debug_event):
2362 Don't set inferior_ptid or current_windows_thread.
2363 (windows_nat_target::wait): Adjust to not rely on
2364 current_windows_thread.
2365 (do_initial_windows_stuff): Now a method of windows_nat_target.
2366 Switch to the last_ptid thread.
2367 (windows_nat_target::attach): Adjust.
2368 (windows_nat_target::detach): Use switch_to_no_thread instead of
2369 writing to inferior_ptid directly.
2370 (windows_nat_target::create_inferior): Adjust.
2371
31ce04e9
PA
23722020-06-18 Pedro Alves <palves@redhat.com>
2373
2374 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
2375
1ee1a363
PA
23762020-06-18 Pedro Alves <palves@redhat.com>
2377
2378 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
2379 after creating it, instead of writing to inferior_ptid. Don't
2380 write to inferior_ptid.
2381
6d350754
PA
23822020-06-18 Pedro Alves <palves@redhat.com>
2383
2384 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
2385
5d971d48
PA
23862020-06-18 Pedro Alves <palves@redhat.com>
2387
2388 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
2389 it, instead of writing to inferior_ptid.
2390
86e57d1b
PA
23912020-06-18 Pedro Alves <palves@redhat.com>
2392
2393 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
2394 to inferior_ptid.
2395
f2e1c129
PA
23962020-06-18 Pedro Alves <palves@redhat.com>
2397
2398 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
2399 instead of writing to inferior_ptid directly.
2400
60db1b85
PA
24012020-06-18 Pedro Alves <palves@redhat.com>
2402
2403 * corelow.c (core_target::close): Use switch_to_no_thread instead
2404 of writing to inferior_ptid directly.
2405 (add_to_thread_list, core_target_open): Use switch_to_thread
2406 instead of writing to inferior_ptid directly.
2407
fe7d6a8d
PA
24082020-06-18 Pedro Alves <palves@redhat.com>
2409
2410 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
2411 inferior_ptid.
2412 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
2413 inferior_ptid.
2414 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
2415 inferior_ptid directly.
2416 (darwin_nat_target::init_thread_list): Switch to thread, instead
2417 of writing to inferior_ptid.
2418 (darwin_nat_target::attach): Don't write to inferior_ptid.
2419 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
2420
975f8708
PA
24212020-06-18 Pedro Alves <palves@redhat.com>
2422
2423 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
2424 thread.
2425 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
2426 Instead use switch_to_thread.
2427 (gnu_nat_target::detach): Use switch_to_no_thread
2428 instead of writing to inferior_ptid directly. Used passed-in
2429 inferior instead of looking up the inferior by pid.
2430
1a204730
PA
24312020-06-18 Pedro Alves <palves@redhat.com>
2432
2433 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
2434 inferior_ptid.
2435
ebe84f23
PA
24362020-06-18 Pedro Alves <palves@redhat.com>
2437
2438 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
2439 inferior_ptid.
2440 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
2441 thread.
2442 (nto_procfs_target::detach): Avoid referencing
2443 inferior_ptid. Use switch_to_no_thread instead of writing to
2444 inferior_ptid directly.
2445 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
2446 instead of writing to inferior_ptid directly.
2447 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
2448 to thread.
2449
191f02e5
PA
24502020-06-18 Pedro Alves <palves@redhat.com>
2451
2452 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
2453 after creating it, instead of writing to inferior_ptid.
2454 (gdbsim_target_open): Use switch_to_no_thread instead of writing
2455 to inferior_ptid directly.
2456 (gdbsim_target::wait): Don't write to inferior_ptid.
2457
0ac55310
PA
24582020-06-18 Pedro Alves <palves@redhat.com>
2459
2460 * remote.c (remote_target::remote_notice_new_inferior): Use
2461 switch_to_thread instead of writing to inferior_ptid directly.
2462 (remote_target::add_current_inferior_and_thread): Use
2463 switch_to_no_thread instead of writing to inferior_ptid directly.
2464 (extended_remote_target::attach): Use switch_to_inferior_no_thread
2465 and switch_to_thread instead of using set_current_inferior or
2466 writing to inferior_ptid directly.
2467
5233f39b
PA
24682020-06-18 Pedro Alves <palves@redhat.com>
2469
2470 * tracectf.c (ctf_target_open): Switch to added thread instead of
2471 writing to inferior_ptid directly.
2472 (ctf_target::close): Use switch_to_no_thread instead of writing to
2473 inferior_ptid directly.
2474
087e161b
PA
24752020-06-18 Pedro Alves <palves@redhat.com>
2476
2477 * tracefile-tfile.c (tfile_target_open): Don't write to
2478 inferior_ptid directly, instead switch to added thread.
2479 (tfile_target::close): Use switch_to_no_thread instead of writing
2480 to inferior_ptid directly.
2481
7fb43e53
PA
24822020-06-18 Pedro Alves <palves@redhat.com>
2483
2484 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
2485 (procfs_target::detach): Use switch_to_no_thread
2486 instead of writing to inferior_ptid directly.
2487 (do_attach): Change return type to void. Switch to the added
2488 thread.
2489 (procfs_target::create_inferior): Switch to the added thread.
2490 (procfs_do_thread_registers): Don't write to inferior_ptid.
2491
18493a00
PA
24922020-06-18 Pedro Alves <palves@redhat.com>
2493
2494 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
2495 of writing to inferior_ptid.
2496 (scoped_restore_exited_inferior): Delete.
2497 (handle_vfork_child_exec_or_exit): Simplify using
2498 scoped_restore_current_pspace_and_thread. Use switch_to_thread
2499 instead of writing to inferior_ptid.
2500 (THREAD_STOPPED_BY): Delete.
2501 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
2502 (thread_stopped_by_hw_breakpoint): Delete.
2503 (save_waitstatus): Use
2504 scoped_restore_current_thread+switch_to_thread, and call
2505 target_stopped_by_watchpoint instead of
2506 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
2507 instead of thread_stopped_by_sw_breakpoint, and
2508 target_stopped_by_hw_breakpoint instead of
2509 thread_stopped_by_hw_breakpoint.
2510 (handle_inferior_event)
2511 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
2512 inferior_ptid directly, nor
2513 set_current_inferior/set_current_program_space. Use
2514 switch_to_thread / switch_to_inferior_no_thread instead.
2515
a0776b13
PA
25162020-06-18 Pedro Alves <palves@redhat.com>
2517
2518 * target.c (generic_mourn_inferior): Use switch_to_no_thread
2519 instead of writing to inferior_ptid.
2520
6155c136
PA
25212020-06-18 Pedro Alves <palves@redhat.com>
2522
2523 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
2524 added thread.
2525 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
2526 to the added thread.
2527 (inf_ptrace_target::detach_success): Use switch_to_no_thread
2528 instead of writing to inferior_ptid.
2529
c5316fc6
PA
25302020-06-18 Pedro Alves <palves@redhat.com>
2531
2532 * gdbarch-selftests.c: Include "progspace-and-thread.h".
2533 (register_to_value_test): Mock a program_space too. Heap-allocate
2534 the address space. Don't write to inferior_ptid. Use
2535 switch_to_thread instead.
2536
8df01799
PA
25372020-06-18 Pedro Alves <palves@redhat.com>
2538
2539 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
2540 Delete.
2541 (find_signalled_thread()): New, factored out from
2542 linux_make_corefile_notes and adjusted to handle exited threads.
2543 (linux_make_corefile_notes): Adjust to use the new
2544 find_signalled_thread.
2545
41792d68
PA
25462020-06-18 Pedro Alves <palves@redhat.com>
2547
2548 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
2549 of saving/restoring inferior_ptid.
2550
612f258a
TT
25512020-06-17 Tom Tromey <tom@tromey.com>
2552
2553 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
2554 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
2555 declare.
2556 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
2557
efb763a5
SM
25582020-06-15 Simon Marchi <simon.marchi@efficios.com>
2559
2560 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
2561 of partial symtabs.
2562
2951f6c0
SM
25632020-06-17 Simon Marchi <simon.marchi@efficios.com>
2564
2565 * regformats/reg-arm.dat: Remove.
2566 * regformats/reg-bfin.dat: Remove.
2567 * regformats/reg-cris.dat: Remove.
2568 * regformats/reg-crisv32.dat: Remove.
2569 * regformats/reg-m32r.dat: Remove.
2570 * regformats/reg-tilegx.dat: Remove.
2571 * regformats/reg-tilegx32.dat: Remove.
2572
7d458ea5
SM
25732020-06-17 Simon Marchi <simon.marchi@efficios.com>
2574
2575 * features/Makefile (WHICH): Remove arm files.
2576 * regformats/arm/arm-with-iwmmxt.dat: Remove.
2577 * regformats/arm/arm-with-neon.dat: Remove.
2578 * regformats/arm/arm-with-vfpv2.dat: Remove.
2579 * regformats/arm/arm-with-vfpv3.dat: Remove.
2580
3af96c0d
SM
25812020-06-17 Simon Marchi <simon.marchi@efficios.com>
2582
2583 * features/Makefile (XMLTOC): Remove rx.xml.
2584
b25e22fd
PA
25852020-06-17 Pedro Alves <palves@redhat.com>
2586
2587 * gdbthread.h (thread_control_state) <trap_expected> Update
2588 comments.
2589
a78a19b1
AB
25902020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2591
2592 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
2593 ada_language::lookup_symbol_nonlocal.
2594 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
2595 (ada_language::lookup_symbol_nonlocal): New member function,
2596 implementation from ada_lookup_symbol_nonlocal.
2597 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
2598 initializer.
2599 (cplus_language_data): Delete la_lookup_symbol_nonlocal
2600 initializer.
2601 (cplus_language::lookup_symbol_nonlocal): New member function.
2602 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
2603 (minimal_language_data) Likewise.
2604 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
2605 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
2606 initializer.
2607 (d_language::lookup_symbol_nonlocal): New member function.
2608 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
2609 initializer.
2610 (f_language::lookup_symbol_nonlocal): New member function.
2611 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
2612 initializer.
2613 * language.c (unknown_language_data): Likewise.
2614 (auto_language_data): Likewise.
2615 * language.h (language_data): Delete la_lookup_symbol_nonlocal
2616 field.
2617 (language_defn::lookup_symbol_nonlocal): New member function.
2618 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
2619 initializer.
2620 * objc-lang.c (objc_language_data): Likewise.
2621 * opencl-lang.c (opencl_language_data): Likewise.
2622 * p-lang.c (pascal_language_data): Likewise.
2623 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
2624 rust_language::lookup_symbol_nonlocal.
2625 (rust_language_data): Delete la_lookup_symbol_nonlocal
2626 initializer.
2627 (rust_language::lookup_symbol_nonlocal): New member function,
2628 implementation from rust_lookup_symbol_nonlocal.
2629 * symtab.c (lookup_symbol_aux): Update call to
2630 lookup_symbol_nonlocal.
2631 (basic_lookup_symbol_nonlocal): Rename to...
2632 (language_defn::lookup_symbol_nonlocal): ...this, and update
2633 header comment. Remove language_defn parameter, and replace with
2634 uses of `this'.
2635 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
2636
ebe2334e
AB
26372020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2638
2639 * ada-lang.c (ada_language_data): Delete la_value_print_inner
2640 initializer.
2641 (ada_language::value_print_inner): New member function.
2642 * c-lang.c (c_language_data): Delete la_value_print_inner
2643 initializer.
2644 (cplus_language_data): Likewise.
2645 (asm_language_data): Likewise.
2646 (minimal_language_data): Likewise.
2647 * d-lang.c (d_language_data): Likewise.
2648 (d_language::value_print_inner): New member function.
2649 * f-lang.c (f_language_data): Delete la_value_print_inner
2650 initializer.
2651 (f_language::value_print_inner): New member function.
2652 * f-lang.h (f_value_print_innner): Rename to...
2653 (f_value_print_inner): ...this (note spelling of 'inner').
2654 * f-valprint.c (f_value_print_innner): Rename to...
2655 (f_value_print_inner): ...this (note spelling of 'inner').
2656 * go-lang.c (go_language_data): Delete la_value_print_inner
2657 initializer.
2658 (go_language::value_print_inner): New member function.
2659 * language.c (language_defn::value_print_inner): Define new member
2660 function.
2661 (unk_lang_value_print_inner): Delete.
2662 (unknown_language_data): Delete la_value_print_inner initializer.
2663 (unknown_language::value_print_inner): New member function.
2664 (auto_language_data): Delete la_value_print_inner initializer.
2665 (auto_language::value_print_inner): New member function.
2666 * language.h (language_data): Delete la_value_print_inner field.
2667 (language_defn::value_print_inner): Delcare new member function.
2668 * m2-lang.c (m2_language_data): Delete la_value_print_inner
2669 initializer.
2670 (m2_language::value_print_inner): New member function.
2671 * objc-lang.c (objc_language_data): Delete la_value_print_inner
2672 initializer.
2673 * opencl-lang.c (opencl_language_data): Likewise.
2674 * p-lang.c (pascal_language_data): Likewise.
2675 (pascal_language::value_print_inner): New member function.
2676 * rust-lang.c (rust_language_data): Delete la_value_print_inner
2677 initializer.
2678 (rust_language::value_print_inner): New member function.
2679 * valprint.c (do_val_print): Update call to value_print_inner.
2680
a1d1fa3e
AB
26812020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2682
2683 * ada-lang.c (ada_language_data): Delete la_value_print
2684 initializer.
2685 (ada_language::value_print): New member function.
2686 * c-lang.c (c_language_data): Delete la_value_print initializer.
2687 (cplus_language_data): Likewise.
2688 (asm_language_data): Likewise.
2689 (minimal_language_data): Likewise.
2690 * d-lang.c (d_language_data): Likewise.
2691 * f-lang.c (f_language_data): Likewise.
2692 * go-lang.c (go_language_data): Likewise.
2693 * language.c (unk_lang_value_print): Delete.
2694 (language_defn::value_print): Define new member function.
2695 (unknown_language_data): Delete la_value_print initializer.
2696 (unknown_language::value_print): New member function.
2697 (auto_language_data): Delete la_value_print initializer.
2698 (auto_language::value_print): New member function.
2699 * language.h (language_data): Delete la_value_print field.
2700 (language_defn::value_print): Declare new member function.
2701 (LA_VALUE_PRINT): Update call to value_print.
2702 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
2703 * objc-lang.c (objc_language_data): Likewise.
2704 * opencl-lang.c (opencl_language_data): Likewise.
2705 * p-lang.c (pascal_language_data): Likewise.
2706 (pascal_language::value_print): New member function.
2707 * rust-lang.c (rust_language_data): Delete la_value_print
2708 initializer.
2709
f16a9f57
AB
27102020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2711
2712 * ada-lang.c (ada_watch_location_expression): Rename to
2713 ada_language::watch_location_expression.
2714 (ada_language_data): Delete la_watch_location_expression
2715 initializer.
2716 (ada_language::watch_location_expression): New member function,
2717 implementation from ada_watch_location_expression.
2718 * breakpoint.c (watch_command_1): Update call to
2719 watch_location_expression.
2720 * c-lang.c (c_watch_location_expression): Rename to
2721 language_defn::watch_location_expression.
2722 (c_language_data): Delete la_watch_location_expression
2723 initializer.
2724 (cplus_language_data): Likewise.
2725 (asm_language_data): Likewise.
2726 (minimal_language_data): Likewise.
2727 * c-lang.h (c_watch_location_expression): Delete declaration.
2728 * d-lang.c (d_language_data): Delete la_watch_location_expression
2729 initializer.
2730 * f-lang.c (f_language_data): Likewise.
2731 * go-lang.c (go_language_data): Likewise.
2732 * language.c (language_defn::watch_location_expression): Member
2733 function implementation from c_watch_location_expression.
2734 (unknown_language_data): Delete la_watch_location_expression
2735 initializer.
2736 (auto_language_data): Likewise.
2737 * language.h (language_data): Delete la_watch_location_expression
2738 field.
2739 (language_defn::watch_location_expression): Declare new member
2740 function.
2741 * m2-lang.c (m2_language_data): Delete
2742 la_watch_location_expression initializer.
2743 * objc-lang.c (objc_language_data): Likewise.
2744 * opencl-lang.c (opencl_language_data): Likewise.
2745 * p-lang.c (pascal_language_data): Likewise.
2746 * rust-lang.c (rust_watch_location_expression): Rename to
2747 rust_language::watch_location_expression.
2748 (rust_language_data): Delete la_watch_location_expression
2749 initializer.
2750 (rust_language::watch_location_expression): New member function,
2751 implementation from rust_watch_location_expression.
2752
7e56227d
AB
27532020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2754
2755 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
2756 ada_language::collect_symbol_completion_matches.
2757 (ada_language_data): Delete la_collect_symbol_completion_matches
2758 initializer.
2759 (ada_language::collect_symbol_completion_matches): New member
2760 function, implementation from
2761 ada_collect_symbol_completion_matches.
2762 * c-lang.c (c_language_data): Delete
2763 la_collect_symbol_completion_matches initializer.
2764 (cplus_language_data): Likewise.
2765 (asm_language_data): Likewise.
2766 (minimal_language_data): Likewise.
2767 * d-lang.c (d_language_data): Likewise.
2768 * f-lang.c (f_collect_symbol_completion_matches): Rename to
2769 f_language::collect_symbol_completion_matches.
2770 (f_language_data): Delete la_collect_symbol_completion_matches
2771 initializer.
2772 (f_language::collect_symbol_completion_matches) New member
2773 function, implementation from f_collect_symbol_completion_matches.
2774 * go-lang.c (go_language_data): Delete
2775 la_collect_symbol_completion_matches initializer.
2776 * language.c (unknown_language_data): Likewise.
2777 (auto_language_data): Likewise.
2778 * language.h (language_data): Delete
2779 la_collect_symbol_completion_matches field.
2780 (language_defn::collect_symbol_completion_matches): New member
2781 function.
2782 * m2-lang.c (m2_language_data): Delete
2783 la_collect_symbol_completion_matches initializer.
2784 * objc-lang.c (objc_language_data): Likewise.
2785 * opencl-lang.c (opencl_language_data): Likewise.
2786 * p-lang.c (pascal_language_data): Likewise.
2787 * rust-lang.c (rust_language_data): Likewise.
2788 * symtab.c (default_collect_symbol_completion_matches): Delete.
2789 (collect_symbol_completion_matches): Update call to
2790 collect_symbol_completion_matches.
2791 (collect_symbol_completion_matches_type): Likewise.
2792 * symtab.h (default_collect_symbol_completion_matches): Delete
2793 declaration.
2794
53fc67f8
AB
27952020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2796
2797 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
2798 (ada_language_data): Delete la_word_break_characters initializer.
2799 (ada_language::word_break_characters): New member function.
2800 * c-lang.c (c_language_data): Delete la_word_break_characters
2801 initializer.
2802 (cplus_language_data): Likewise.
2803 (asm_language_data): Likewise.
2804 (minimal_language_data): Likewise.
2805 * completer.c: Update global comment.
2806 (advance_to_expression_complete_word_point): Update call to
2807 word_break_characters.
2808 (complete_files_symbols): Likewise.
2809 (complete_line_internal_1): Likewise.
2810 (default_completer_handle_brkchars): Likewise.
2811 (skip_quoted_chars): Likewise.
2812 * d-lang.c (d_language_data): Delete la_word_break_characters
2813 initializer.
2814 * f-lang.c (f_word_break_characters): Delete.
2815 (f_language_data): Delete la_word_break_characters initializer.
2816 (f_language::word_break_characters): New member function.
2817 * go-lang.c (go_language_data): Delete la_word_break_characters
2818 initializer.
2819 * language.c (unknown_language_data): Likewise.
2820 (auto_language_data): Likewise.
2821 * language.h (default_word_break_characters): Move declaration to
2822 earlier in the file.
2823 (language_data): Delete la_word_break_characters field.
2824 (language_defn::word_break_characters): New member function.
2825 * m2-lang.c (m2_language_data): Delete la_word_break_characters
2826 initializer.
2827 * objc-lang.c (objc_language_data): Likewise.
2828 * opencl-lang.c (opencl_language_data): Likewise.
2829 * p-lang.c (pascal_language_data): Likewise.
2830 * rust-lang.c (rust_language_data): Likewise.
2831
c9debfb9
AB
28322020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2833
2834 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
2835 (ada_language_data): Delete la_get_symbol_name_matcher
2836 initializer.
2837 (language_defn::get_symbol_name_matcher_inner): New member
2838 function.
2839 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
2840 initializer.
2841 (cplus_language_data): Likewise.
2842 (cplus_language::get_symbol_name_matcher_inner): New member
2843 function.
2844 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
2845 (minimal_language_data): Likewise.
2846 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
2847 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
2848 initializer.
2849 * dictionary.c (iter_match_first_hashed): Update call to
2850 get_symbol_name_matcher.
2851 (iter_match_next_hashed): Likewise.
2852 (iter_match_next_linear): Likewise.
2853 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
2854 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
2855 initializer.
2856 (f_language::get_symbol_name_matcher_inner): New member function.
2857 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
2858 initializer.
2859 * language.c (default_symbol_name_matcher): Update header comment,
2860 make static.
2861 (language_defn::get_symbol_name_matcher): New definition.
2862 (language_defn::get_symbol_name_matcher_inner): Likewise.
2863 (get_symbol_name_matcher): Delete.
2864 (unknown_language_data): Delete la_get_symbol_name_matcher
2865 initializer.
2866 (auto_language_data): Likewise.
2867 * language.h (language_data): Delete la_get_symbol_name_matcher
2868 field.
2869 (language_defn::get_symbol_name_matcher): New member function.
2870 (language_defn::get_symbol_name_matcher_inner): Likewise.
2871 (default_symbol_name_matcher): Delete declaration.
2872 * linespec.c (find_methods): Update call to
2873 get_symbol_name_matcher.
2874 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
2875 initializer.
2876 * minsyms.c (lookup_minimal_symbol): Update call to
2877 get_symbol_name_matcher.
2878 (iterate_over_minimal_symbols): Likewise.
2879 * objc-lang.c (objc_language_data): Delete
2880 la_get_symbol_name_matcher initializer.
2881 * opencl-lang.c (opencl_language_data): Likewise.
2882 * p-lang.c (pascal_language_data): Likewise.
2883 * psymtab.c (psymbol_name_matches): Update call to
2884 get_symbol_name_matcher.
2885 * rust-lang.c (rust_language_data): Delete
2886 la_get_symbol_name_matcher initializer.
2887 * symtab.c (symbol_matches_search_name): Update call to
2888 get_symbol_name_matcher.
2889 (compare_symbol_name): Likewise.
2890
9a49ad8c
AB
28912020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2892
2893 * ada-lang.c (ada_language_data): Delete la_compute_program
2894 initializer.
2895 * c-lang.c (c_language_data): Likewise.
2896 (c_language::compute_program): New member function.
2897 (cplus_language_data): Delete la_compute_program initializer.
2898 (cplus_language::compute_program): New member function.
2899 (asm_language_data): Delete la_compute_program initializer.
2900 (minimal_language_data): Likewise.
2901 * c-lang.h (c_compute_program): Update comment.
2902 (cplus_compute_program): Likewise.
2903 * compile/compile-c-support.c (c_compute_program): Likewise.
2904 (cplus_compute_program): Likewise.
2905 * compile/compile.c (compile_to_object): Update call to
2906 la_compute_program.
2907 * d-lang.c (d_language_data): Delete la_compute_program
2908 initializer.
2909 * f-lang.c (f_language_data): Likewise.
2910 * go-lang.c (go_language_data): Likewise.
2911 * language.c (unknown_language_data): Likewise.
2912 (auto_language_data): Likewise.
2913 * language.h (language_data): Delete la_compute_program field.
2914 (language_defn::compute_program): New member function.
2915 * m2-lang.c (m2_language_data): Delete la_compute_program
2916 initializer.
2917 * objc-lang.c (objc_language_data): Likewise.
2918 * opencl-lang.c (opencl_language_data): Likewise.
2919 * p-lang.c (pascal_language_data): Likewise.
2920 * rust-lang.c (rust_language_data): Likewise.
2921
eff93b4d
AB
29222020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2923
2924 * ada-lang.c (ada_language_data) Delete
2925 la_class_name_from_physname initializer.
2926 * c-lang.c (c_language_data): Likewise.
2927 (cplus_language_data): Likewise.
2928 (cplus_language::class_name_from_physname): New member function.
2929 (asm_language_data): Delete la_class_name_from_physname
2930 initializer.
2931 (minimal_language_data): Likewise.
2932 * d-lang.c (d_language_data): Likewise.
2933 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
2934 method on language_defn class.
2935 (guess_full_die_structure_name): Likewise.
2936 * f-lang.c (f_language_data): Delete la_class_name_from_physname
2937 initializer.
2938 * go-lang.c (go_language_data): Likewise.
2939 * language.c (language_class_name_from_physname): Delete.
2940 (unk_lang_class_name): Delete.
2941 (unknown_language_data): Delete la_class_name_from_physname
2942 initializer.
2943 (auto_language_data): Likewise.
2944 * language.h (language_data): Delete la_class_name_from_physname
2945 field.
2946 (language_defn::class_name_from_physname): New function.
2947 (language_class_name_from_physname): Delete declaration.
2948 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
2949 initializer.
2950 * objc-lang.c (objc_language_data): Likewise.
2951 * opencl-lang.c (opencl_language_data): Likewise.
2952 * p-lang.c (pascal_language_data): Likewise.
2953 * rust-lang.c (rust_language_data): Likewise.
2954
de543742
TT
29552020-06-16 Tom Tromey <tom@tromey.com>
2956
2957 * tui/tui-data.h (STATUS_NAME): New macro.
2958 * tui/tui-layout.c (tui_remove_some_windows)
2959 (initialize_known_windows, tui_register_window)
2960 (tui_layout_split::remove_windows, initialize_layouts)
2961 (tui_new_layout_command): Don't use hard-coded window names.
2962
a350efd4
TT
29632020-06-16 Tom Tromey <tom@tromey.com>
2964
2965 PR tui/25348:
2966 * tui/tui.c (tui_ensure_readline_initialized): Rename from
2967 tui_initialize_readline. Only run once. Call rl_initialize.
2968 * tui/tui.h (tui_ensure_readline_initialized): Rename from
2969 tui_initialize_readline.
2970 * tui/tui-io.c (tui_setup_io): Call
2971 tui_ensure_readline_initialized.
2972 * tui/tui-interp.c (tui_interp::init): Update.
2973
39ec0490
TT
29742020-06-16 Tom Tromey <tom@tromey.com>
2975
2976 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
2977 Also preserve the status window.
2978
d2d1ea20
TT
29792020-06-16 Tom Tromey <tom@tromey.com>
2980
2981 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
2982 where m_window==nullptr.
2983
66920317
TT
29842020-06-15 Tom Tromey <tromey@adacore.com>
2985
2986 * windows-nat.c (windows_nat::handle_output_debug_string):
2987 Update.
2988 (windows_nat::handle_ms_vc_exception): Update.
2989 * target.h (target_read_string): Change API.
2990 * target.c (target_read_string): Change API.
2991 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
2992 Update.
2993 * solib-frv.c (frv_current_sos): Update.
2994 * solib-dsbt.c (dsbt_current_sos): Update.
2995 * solib-darwin.c (darwin_current_sos): Update.
2996 * linux-thread-db.c (inferior_has_bug): Update.
2997 * expprint.c (print_subexp_standard): Update.
2998 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
2999 (ada_exception_message_1): Update.
3000
a5d871dd
TT
30012020-06-15 Tom Tromey <tromey@adacore.com>
3002
3003 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
3004
670e35fa
TT
30052020-06-15 Tom Tromey <tromey@adacore.com>
3006
3007 * valprint.c (read_string): Update comment.
3008 * target.c (MIN): Remove.
3009 (target_read_string): Rewrite.
3010
f5272a3b
TT
30112020-06-15 Tom Tromey <tromey@adacore.com>
3012
3013 * corefile.c (read_memory_string): Remove.
3014 * ada-valprint.c (ada_value_print_ptr): Update.
3015 * ada-lang.h (ada_tag_name): Change return type.
3016 * ada-lang.c (type_from_tag): Update.
3017 (ada_tag_name_from_tsd): Change return type. Use
3018 target_read_string.
3019 (ada_tag_name): Likewise.
3020 * gdbcore.h (read_memory_string): Don't declare.
3021
2c074f49
HD
30222020-06-14 Hannes Domani <ssbssa@yahoo.de>
3023
3024 * symtab.c (rbreak_command): Ignore Windows drive colon.
3025
6a17d503
SM
30262020-06-12 Simon Marchi <simon.marchi@efficios.com>
3027
3028 * NEWS: Mention removed GDBserver host support.
3029
453c733f
NC
30302020-06-12 Nelson Chu <nelson.chu@sifive.com>
3031
3032 * features/riscv/rebuild-csr-xml.sh: Updated.
3033
2b4e6a3f
TT
30342020-06-11 Tom Tromey <tom@tromey.com>
3035
3036 PR gdb/18318:
3037 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
3038
4412332f
JG
30392020-06-09 Jonny Grant <jg@jguk.org>
30402020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
3041
3042 * main.c (captured_main_1): Don't print new line after help.
3043 (print_gdb_help): add mailing list and IRC channel information
3044 to --help. Add new lines between items in the footer. Remove
3045 quotes around bug url.
3046
2f33032a
KS
30472020-06-11 Keith Seitz <keiths@redhat.com>
3048
3049 PR gdb/21356
3050 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
3051 Resolve typedefs for type length calculations.
3052
7ab96794
TV
30532020-06-10 Tom de Vries <tdevries@suse.de>
3054
3055 PR ada/24713
3056 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
3057 (write_psymbols): Enable .gdb_index for ada.
3058 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
3059 ada.
3060
e5f3ece2
TV
30612020-06-10 Tom de Vries <tdevries@suse.de>
3062
3063 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
3064 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
3065 namei" instead of "const char *name" argument.
3066 (dw2_map_matching_symbols): Use "offset_type namei" variant of
3067 dw2_symtab_iter_init.
3068
940da03e
SM
30692020-06-08 Simon Marchi <simon.marchi@efficios.com>
3070
3071 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
3072 to use type::field and field::type instead.
3073
b6cdac4b
SM
30742020-06-08 Simon Marchi <simon.marchi@efficios.com>
3075
3076 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
3077 to use field::type instead.
3078
5d14b6e5
SM
30792020-06-08 Simon Marchi <simon.marchi@efficios.com>
3080
3081 * gdbtypes.h (struct field) <type, set_type>: New methods.
3082 Rename `type` field to...
3083 <m_type>: ... this. Change references throughout to use type or
3084 set_type methods.
3085 (FIELD_TYPE): Use field::type. Change call sites that modify
3086 the field's type to use field::set_type instead.
3087
3d967001
SM
30882020-06-08 Simon Marchi <simon.marchi@efficios.com>
3089
3090 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
3091 to use type::index_type instead.
3092
262abc0d
SM
30932020-06-08 Simon Marchi <simon.marchi@efficios.com>
3094
3095 * gdbtypes.h (struct type) <index_type, set_index_type>: New
3096 methods.
3097 (TYPE_INDEX_TYPE): Use type::index_type.
3098 * gdbtypes.c (create_array_type_with_stride): Likewise.
3099
82836c92
TT
31002020-06-07 Tom Tromey <tom@tromey.com>
3101
3102 * valprint.c (generic_val_print_float): Remove "embedded_offset"
3103 parameter.
3104 (generic_value_print): Update.
3105
940dace9
AB
31062020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
3107
3108 Revert commit 982a38f60b0.
3109 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
3110
982a38f6
AB
31112020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
3112
3113 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
3114 avoid use after free.
3115
82f06518
TV
31162020-06-05 Tom de Vries <tdevries@suse.de>
3117
3118 * NEWS: Fix typos.
3119
f8c41851
SM
31202020-06-04 Simon Marchi <simon.marchi@efficios.com>
3121
3122 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
3123 the per_bfd object.
3124 (dwarf2_read_debug_names): Likewise.
3125 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
3126 object when re-using a per_bfd object with an index.
3127
f9b5d5ea
TV
31282020-06-03 Tom de Vries <tdevries@suse.de>
3129
3130 PR symtab/26046
3131 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
3132 children for C++.
3133 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
3134 DW_TAG_subprogram.
3135
f6eee2d0
AB
31362020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3137
3138 * ada-lang.c (ada_language_data): Delete skip_trampoline
3139 initializer.
3140 * c-lang.c (c_language_data): Likewise.
3141 (cplus_language_data): Likewise.
3142 (cplus_language::skip_trampoline): New member function.
3143 (asm_language_data): Delete skip_trampoline initializer.
3144 (minimal_language_data): Likewise.
3145 * d-lang.c (d_language_data): Likewise.
3146 * f-lang.c (f_language_data): Likewise.
3147 * go-lang.c (go_language_data): Likewise.
3148 * language.c (unk_lang_trampoline): Delete function.
3149 (skip_language_trampoline): Update.
3150 (unknown_language_data): Delete skip_trampoline initializer.
3151 (auto_language_data): Likewise.
3152 * language.h (language_data): Delete skip_trampoline field.
3153 (language_defn::skip_trampoline): New function.
3154 * m2-lang.c (m2_language_data): Delete skip_trampoline
3155 initializer.
3156 * objc-lang.c (objc_skip_trampoline): Delete function, move
3157 implementation to objc_language::skip_trampoline.
3158 (objc_language_data): Delete skip_trampoline initializer.
3159 (objc_language::skip_trampoline): New member function with
3160 implementation from objc_skip_trampoline.
3161 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
3162 initializer.
3163 * p-lang.c (pascal_language_data): Likewise.
3164 * rust-lang.c (rust_language_data): Likewise.
3165
0a50df5d
AB
31662020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3167
3168 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
3169 (ada_language::demangle): New member function.
3170 * c-lang.c (c_language_data): Delete la_demangle initializer.
3171 (cplus_language_data): Delete la_demangle initializer.
3172 (cplus_language::demangle): New member function.
3173 (asm_language_data): Delete la_demangle initializer.
3174 (minimal_language_data): Delete la_demangle initializer.
3175 * d-lang.c (d_language_data): Delete la_demangle initializer.
3176 (d_language::demangle): New member function.
3177 * f-lang.c (f_language_data): Delete la_demangle initializer.
3178 (f_language::demangle): New member function.
3179 * go-lang.c (go_language_data): Delete la_demangle initializer.
3180 (go_language::demangle): New member function.
3181 * language.c (language_demangle): Update.
3182 (unk_lang_demangle): Delete.
3183 (unknown_language_data): Delete la_demangle initializer.
3184 (unknown_language::demangle): New member function.
3185 (auto_language_data): Delete la_demangle initializer.
3186 (auto_language::demangle): New member function.
3187 * language.h (language_data): Delete la_demangle field.
3188 (language_defn::demangle): New function.
3189 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
3190 * objc-lang.c (objc_language_data): Delete la_demangle
3191 initializer.
3192 (objc_language::demangle): New member function.
3193 * opencl-lang.c (opencl_language_data): Delete la_demangle
3194 initializer.
3195 * p-lang.c (pascal_language_data): Likewise.
3196 * rust-lang.c (rust_language_data): Likewise.
3197 (rust_language::demangle): New member function.
3198
fbfb0a46
AB
31992020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3200
3201 * ada-lang.c (ada_language_data): Delete la_print_type
3202 initializer.
3203 (ada_language::print_type): New member function.
3204 * c-lang.c (c_language_data): Delete la_print_type initializer.
3205 (c_language::print_type): New member function.
3206 (cplus_language_data): Delete la_print_type initializer.
3207 (cplus_language::print_type): New member function.
3208 (asm_language_data): Delete la_print_type initializer.
3209 (asm_language::print_type): New member function.
3210 (minimal_language_data): Delete la_print_type initializer.
3211 (minimal_language::print_type): New member function.
3212 * d-lang.c (d_language_data): Delete la_print_type initializer.
3213 (d_language::print_type): New member function.
3214 * f-lang.c (f_language_data): Delete la_print_type initializer.
3215 (f_language::print_type): New member function.
3216 * go-lang.c (go_language_data): Delete la_print_type initializer.
3217 (go_language::print_type): New member function.
3218 * language.c (unk_lang_print_type): Delete.
3219 (unknown_language_data): Delete la_print_type initializer.
3220 (unknown_language::print_type): New member function.
3221 (auto_language_data): Delete la_print_type initializer.
3222 (auto_language::print_type): New member function.
3223 * language.h (language_data): Delete la_print_type field.
3224 (language_defn::print_type): New function.
3225 (LA_PRINT_TYPE): Update.
3226 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
3227 (m2_language::print_type): New member function.
3228 * objc-lang.c (objc_language_data): Delete la_print_type
3229 initializer.
3230 (objc_language::print_type): New member function.
3231 * opencl-lang.c (opencl_print_type): Delete, implementation moved
3232 to opencl_language::print_type.
3233 (opencl_language_data): Delete la_print_type initializer.
3234 (opencl_language::print_type): New member function, implementation
3235 from opencl_print_type.
3236 * p-lang.c (pascal_language_data): Delete la_print_type
3237 initializer.
3238 (pascal_language::print_type): New member function.
3239 * rust-lang.c (rust_print_type): Delete, implementation moved to
3240 rust_language::print_type.
3241 (rust_language_data): Delete la_print_type initializer.
3242 (rust_language::print_type): New member function, implementation
3243 from rust_print_type.
3244
6f827019
AB
32452020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3246
3247 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
3248 implementation moves to...
3249 (ada_language::sniff_from_mangled_name): ...here. Update return
3250 type.
3251 (ada_language_data): Delete la_sniff_from_mangled_name
3252 initializer.
3253 * c-lang.c (c_language_data): Likewise.
3254 (cplus_language_data): Likewise.
3255 (cplus_language::sniff_from_mangled_name): New member function,
3256 implementation taken from gdb_sniff_from_mangled_name.
3257 (asm_language_data): Delete la_sniff_from_mangled_name
3258 initializer.
3259 (minimal_language_data): Likewise.
3260 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
3261 implementation moves to cplus_language::sniff_from_mangled_name.
3262 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
3263 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
3264 moves to...
3265 (d_language::sniff_from_mangled_name): ...here.
3266 (d_language_data): Delete la_sniff_from_mangled_name initializer.
3267 * f-lang.c (f_language_data): Likewise.
3268 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
3269 moves to...
3270 (go_language::sniff_from_mangled_name): ...here.
3271 (go_language_data): Delete la_sniff_from_mangled_name initializer.
3272 * language.c (language_sniff_from_mangled_name): Delete.
3273 (unknown_language_data): Delete la_sniff_from_mangled_name
3274 initializer.
3275 (auto_language_data): Likewise.
3276 * language.h (language_data): Delete la_sniff_from_mangled_name
3277 field.
3278 (language_defn::sniff_from_mangled_name): New function.
3279 (language_sniff_from_mangled_name): Delete declaration.
3280 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
3281 field.
3282 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
3283 implementation moves to...
3284 (objc_language::sniff_from_mangled_name): ...here.
3285 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
3286 * opencl-lang.c (opencl_language_data): Likewise.
3287 * p-lang.c (pascal_language_data): Likewise.
3288 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
3289 implementation moves to...
3290 (rust_language::sniff_from_mangled_name): ...here.
3291 (rust_language_data): Delete la_sniff_from_mangled_name
3292 initializer.
3293 * symtab.c (symbol_find_demangled_name): Call
3294 sniff_from_mangled_name member function.
3295
fb8006fd
AB
32962020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3297
3298 * ada-lang.c (ada_language_data): Delete la_search_name_hash
3299 initializer.
3300 * c-lang.c (c_language_data): Likewise.
3301 (cplus_language_data): Likewise.
3302 (cplus_language::search_name_hash): New member function.
3303 (asm_language_data): Delete la_search_name_hash initializer.
3304 (minimal_language_data): Likewise.
3305 * d-lang.c (d_language_data): Likewise.
3306 * dictionary.c (default_search_name_hash): Rename to...
3307 (language_defn::search_name_hash): ...this.
3308 * f-lang.c (f_language_data): Likewise.
3309 (f_language::search_name_hash): New member function.
3310 * go-lang.c (go_language_data): Delete la_search_name_hash
3311 initializer.
3312 * language.c (unknown_language_data): Likewise.
3313 (auto_language_data): Likewise.
3314 * language.h (struct language_data): Delete la_search_name_hash
3315 field.
3316 (language_defn::search_name_hash): Declare new member function.
3317 (default_search_name_hash): Delete declaration.
3318 * m2-lang.c (m2_language_data): Delete la_search_name_hash
3319 initializer.
3320 * objc-lang.c (objc_language_data): Likewise.
3321 * opencl-lang.c (opencl_language_data): Likewise.
3322 * p-lang.c (pascal_language_data): Likewise.
3323 * rust-lang.c (rust_language_data): Likewise.
3324 * symtab.c (search_name_hash): Update call.
3325
8e25bafe
AB
33262020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3327
3328 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
3329 initializer.
3330 * c-lang.c (class compile_instance): Declare.
3331 (c_language_data): Delete la_get_compile_instance initializer.
3332 (c_language::get_compile_instance): New member function.
3333 (cplus_language_data): Delete la_get_compile_instance initializer.
3334 (cplus_language::get_compile_instance): New member function.
3335 (asm_language_data): Delete la_get_compile_instance initializer.
3336 (minimal_language_data): Likewise.
3337 * c-lang.h (c_get_compile_context): Update comment.
3338 (cplus_get_compile_context): Update comment.
3339 * compile/compile.c (compile_to_object): Update calls, don't rely
3340 on function pointer being NULL.
3341 * d-lang.c (d_language_data): Delete la_get_compile_instance
3342 initializer.
3343 * f-lang.c (f_language_data): Likewise.
3344 * go-lang.c (go_language_data): Likewise.
3345 * language.c (unknown_language_data): Likewise.
3346 (auto_language_data): Likewise.
3347 * language.h (language_data): Delete la_get_compile_instance field.
3348 (language_defn::get_compile_instance): New member function.
3349 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
3350 initializer.
3351 * objc-lang.c (objc_language_data): Likewise.
3352 * opencl-lang.c (opencl_language_data): Likewise.
3353 * p-lang.c (pascal_language_data): Likewise.
3354 * rust-lang.c (rust_language_data): Likewise.
3355
4009ee92
AB
33562020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3357
3358 * ada-lang.c (ada_add_all_symbols): Update comment.
3359 (ada_iterate_over_symbols): Delete, move implementation to...
3360 (ada_language::iterate_over_symbols): ...here, a new member
3361 function, rewrite to use range based for loop.
3362 (ada_language_data): Delete la_iterate_over_symbols initializer.
3363 * c-lang.c (c_language_data): Likewise.
3364 (cplus_language_data): Likewise.
3365 (asm_language_data): Likewise.
3366 (minimal_language_data): Likewise.
3367 * d-lang.c (d_language_data): Likewise.
3368 * f-lang.c (f_language_data): Likewise.
3369 * go-lang.c (go_language_data): Likewise.
3370 * language.c (unknown_language_data): Likewise.
3371 (auto_language_data): Likewise.
3372 * language.h (language_data): Delete la_iterate_over_symbols field.
3373 (language_defn::iterate_over_symbols): New member function.
3374 (LA_ITERATE_OVER_SYMBOLS): Update.
3375 * linespec.c (iterate_over_all_matching_symtabs): Update.
3376 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
3377 initializer.
3378 * objc-lang.c (objc_language_data): Likewise.
3379 * opencl-lang.c (opencl_language_data): Likewise.
3380 * p-lang.c (pascal_language_data): Likewise.
3381 * rust-lang.c (rust_language_data): Likewise.
3382
54f4ca46
AB
33832020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3384
3385 * ada-lang.c (ada_language_data): Delete
3386 la_lookup_transparent_type initializer.
3387 * c-lang.c (c_language_data): Likewise.
3388 (cplus_language_data): Likewise.
3389 (cplus_language::lookup_transparent_type): New member function.
3390 (asm_language_data): Delete la_lookup_transparent_type
3391 initializer.
3392 (minimal_language_data): Likewise.
3393 * d-lang.c (d_language_data): Likewise.
3394 * f-lang.c (f_language_data): Likewise.
3395 * go-lang.c (go_language_data): Likewise.
3396 * language.c (unknown_language_data): Likewise.
3397 (auto_language_data): Likewise.
3398 * language.h (struct language_data): Delete
3399 la_lookup_transparent_type field.
3400 (language_defn::lookup_transparent_type): New member function.
3401 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
3402 initializer.
3403 * objc-lang.c (objc_language_data): Likewise.
3404 * opencl-lang.c (opencl_language_data): Likewise.
3405 * p-lang.c (pascal_language_data): Likewise.
3406 * rust-lang.c (rust_language_data): Likewise.
3407 * symtab.c (symbol_matches_domain): Update call.
3408
1fb314aa
AB
34092020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3410
3411 * ada-lang.c (ada_language_arch_info): Delete function, move
3412 implementation to...
3413 (ada_language::language_arch_info): ...here, a new member
3414 function.
3415 (ada_language_data): Delete la_language_arch_info.
3416 * c-lang.c (c_language_data): Likewise.
3417 (c_language::language_arch_info): New member function.
3418 (cplus_language_arch_info): Delete function, move
3419 implementation to...
3420 (cplus_language::language_arch_info): ...here, a new member
3421 function.
3422 (cplus_language_data): Delete la_language_arch_info.
3423 (asm_language_data): Likewise.
3424 (asm_language::language_arch_info): New member function.
3425 (minimal_language_data): Delete la_language_arch_info.
3426 (minimal_language::language_arch_info): New member function.
3427 * d-lang.c (d_language_arch_info): Delete function, move
3428 implementation to...
3429 (d_language::language_arch_info): ...here, a new member
3430 function.
3431 (d_language_data): Delete la_language_arch_info.
3432 * f-lang.c (f_language_arch_info): Delete function, move
3433 implementation to...
3434 (f_language::language_arch_info): ...here, a new member
3435 function.
3436 (f_language_data): Delete la_language_arch_info.
3437 * go-lang.c (go_language_arch_info): Delete function, move
3438 implementation to...
3439 (go_language::language_arch_info): ...here, a new member
3440 function.
3441 (go_language_data): Delete la_language_arch_info.
3442 * language.c (unknown_language_data): Likewise.
3443 (unknown_language::language_arch_info): New member function.
3444 (auto_language_data): Delete la_language_arch_info.
3445 (auto_language::language_arch_info): New member function.
3446 (language_gdbarch_post_init): Update call to
3447 la_language_arch_info.
3448 * language.h (language_data): Delete la_language_arch_info
3449 function pointer.
3450 (language_defn::language_arch_info): New function.
3451 * m2-lang.c (m2_language_arch_info): Delete function, move
3452 implementation to...
3453 (m2_language::language_arch_info): ...here, a new member
3454 function.
3455 (m2_language_data): Delete la_language_arch_info.
3456 * objc-lang.c (objc_language_arch_info): Delete function, move
3457 implementation to...
3458 (objc_language::language_arch_info): ...here, a new member
3459 function.
3460 (objc_language_data): Delete la_language_arch_info.
3461 * opencl-lang.c (opencl_language_arch_info): Delete function, move
3462 implementation to...
3463 (opencl_language::language_arch_info): ...here, a new member
3464 function.
3465 (opencl_language_data): Delete la_language_arch_info.
3466 * p-lang.c (pascal_language_arch_info): Delete function, move
3467 implementation to...
3468 (pascal_language::language_arch_info): ...here, a new member
3469 function.
3470 (pascal_language_data): Delete la_language_arch_info.
3471 * rust-lang.c (rust_language_arch_info): Delete function, move
3472 implementation to...
3473 (rust_language::language_arch_info): ...here, a new member
3474 function.
3475 (rust_language_data): Delete la_language_arch_info.
3476
48448202
AB
34772020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3478
3479 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
3480 initializer.
3481 * c-lang.c (c_language_data): Likewise.
3482 (cplus_language_data): Likewise.
3483 (cplus_language::pass_by_reference_info): New method.
3484 (asm_language_data): Delete la_pass_by_reference initializer.
3485 (minimal_language_data): Likewise.
3486 * cp-abi.c (cp_pass_by_reference): Remove use of
3487 default_pass_by_reference.
3488 * d-lang.c (d_language_data): Likewise.
3489 * f-lang.c (f_language_data): Likewise.
3490 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
3491 default_pass_by_reference.
3492 * go-lang.c (go_language_data): Likewise.
3493 * language.c (language_pass_by_reference): Update.
3494 (default_pass_by_reference): Delete.
3495 (unknown_language_data): Delete la_pass_by_reference
3496 initializer.
3497 (auto_language_data): Likewise.
3498 * language.h (struct language_data): Delete la_pass_by_reference
3499 field.
3500 (language_defn::pass_by_reference_info): New member function.
3501 (default_pass_by_reference): Delete declaration.
3502 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
3503 initializer.
3504 * objc-lang.c (objc_language_data): Likewise.
3505 * opencl-lang.c (opencl_language_data): Likewise.
3506 * p-lang.c (pascal_language_data): Likewise.
3507 * rust-lang.c (rust_language_data): Likewise.
3508
15e5fd35
AB
35092020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3510
3511 * ada-lang.c (ada_read_var_value): Delete function, move
3512 implementation to...
3513 (ada_language::read_var_value): ...here.
3514 (ada_language_data): Delete la_read_var_value initializer.
3515 * c-lang.c (c_language_data): Likewise.
3516 (cplus_language_data): Likewise.
3517 (minimal_language_data): Likewise.
3518 * d-lang.c (d_language_data): Likewise.
3519 * f-lang.c (f_language_data): Likewise.
3520 * findvar.c (default_read_var_value): Rename to...
3521 (language_defn::read_var_value): ...this.
3522 * findvar.c (read_var_value): Update header comment, and change to
3523 call member function instead of function pointer.
3524 * go-lang.c (go_language_data): Likewise.
3525 * language.c (unknown_language_data): Delete la_read_var_value
3526 initializer.
3527 (auto_language_data): Likewise.
3528 * language.h (struct language_data): Delete la_read_var_value
3529 field.
3530 (language_defn::read_var_value): New member function.
3531 (default_read_var_value): Delete declaration.
3532 * m2-lang.c (m2_language_data): Delete la_read_var_value
3533 initializer.
3534 * objc-lang.c (objc_language_data): Likewise.
3535 * opencl-lang.c (opencl_language_data): Likewise.
3536 * p-lang.c (pascal_language_data): Likewise.
3537 * rust-lang.c (rust_language_data): Likewise.
3538 * value.h (default_read_var_value): Delete declaration.
3539
5bd40f2a
AB
35402020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3541
3542 * ada-lang.c (ada_print_array_index): Delete function, move
3543 implementation to...
3544 (ada_language::print_array_index): ...here.
3545 (ada_language_data): Delete la_print_array_index initializer.
3546 * c-lang.c (c_language_data): Likewise.
3547 (cplus_language_data): Likewise.
3548 (minimal_language_data): Likewise.
3549 * d-lang.c (d_language_data): Likewise.
3550 * f-lang.c (f_language_data): Likewise.
3551 * go-lang.c (go_language_data): Likewise.
3552 * language.c (default_print_array_index): Delete function, move
3553 implementation to...
3554 (language_defn::print_array_index): ...here.
3555 (unknown_language_data): Delete la_print_array_index initializer.
3556 (auto_language_data): Likewise.
3557 * language.h (struct language_data): Delete la_print_array_index
3558 field.
3559 (language_defn::print_array_index): New member function.
3560 (LA_PRINT_ARRAY_INDEX): Update.
3561 (default_print_array_index): Delete declaration.
3562 * m2-lang.c (m2_language_data): Delete la_print_array_index
3563 initializer.
3564 * objc-lang.c (objc_language_data): Likewise.
3565 * opencl-lang.c (opencl_language_data): Likewise.
3566 * p-lang.c (pascal_language_data): Likewise.
3567 * rust-lang.c (rust_language_data): Likewise.
3568
0874fd07
AB
35692020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3570
3571 * gdb/ada-lang.c (ada_language_defn): Convert to...
3572 (ada_language_data): ...this.
3573 (class ada_language): New class.
3574 (ada_language_defn): New static global.
3575 * gdb/c-lang.c (c_language_defn): Convert to...
3576 (c_language_data): ...this.
3577 (class c_language): New class.
3578 (c_language_defn): New static global.
3579 (cplus_language_defn): Convert to...
3580 (cplus_language_data): ...this.
3581 (class cplus_language): New class.
3582 (cplus_language_defn): New static global.
3583 (asm_language_defn): Convert to...
3584 (asm_language_data): ...this.
3585 (class asm_language): New class.
3586 (asm_language_defn): New static global.
3587 (minimal_language_defn): Convert to...
3588 (minimal_language_data): ...this.
3589 (class minimal_language): New class.
3590 (minimal_language_defn): New static global.
3591 * gdb/d-lang.c (d_language_defn): Convert to...
3592 (d_language_data): ...this.
3593 (class d_language): New class.
3594 (d_language_defn): New static global.
3595 * gdb/f-lang.c (f_language_defn): Convert to...
3596 (f_language_data): ...this.
3597 (class f_language): New class.
3598 (f_language_defn): New static global.
3599 * gdb/go-lang.c (go_language_defn): Convert to...
3600 (go_language_data): ...this.
3601 (class go_language): New class.
3602 (go_language_defn): New static global.
3603 * gdb/language.c (unknown_language_defn): Remove declaration.
3604 (current_language): Initialize to nullptr, real initialization is
3605 moved to _initialize_language.
3606 (languages): Delete global.
3607 (language_defn::languages): Define.
3608 (set_language_command): Use language_defn::languages.
3609 (set_language): Likewise.
3610 (range_error): Likewise.
3611 (language_enum): Likewise.
3612 (language_def): Likewise.
3613 (add_set_language_command): Use language_def::languages for the
3614 language list, and language_def to lookup language pointers.
3615 (skip_language_trampoline): Use language_defn::languages.
3616 (unknown_language_defn): Convert to...
3617 (unknown_language_data): ...this.
3618 (class unknown_language): New class.
3619 (unknown_language_defn): New static global.
3620 (auto_language_defn): Convert to...
3621 (auto_language_data): ...this.
3622 (class auto_language): New class.
3623 (auto_language_defn): New static global.
3624 (language_gdbarch_post_init): Use language_defn::languages.
3625 (_initialize_language): Initialize current_language.
3626 * gdb/language.h (struct language_defn): Rename to...
3627 (struct language_data): ...this.
3628 (struct language_defn): New.
3629 (auto_language_defn): Delete.
3630 (unknown_language_defn): Delete.
3631 (minimal_language_defn): Delete.
3632 (ada_language_defn): Delete.
3633 (asm_language_defn): Delete.
3634 (c_language_defn): Delete.
3635 (cplus_language_defn): Delete.
3636 (d_language_defn): Delete.
3637 (f_language_defn): Delete.
3638 (go_language_defn): Delete.
3639 (m2_language_defn): Delete.
3640 (objc_language_defn): Delete.
3641 (opencl_language_defn): Delete.
3642 (pascal_language_defn): Delete.
3643 (rust_language_defn): Delete.
3644 * gdb/m2-lang.c (m2_language_defn): Convert to...
3645 (m2_language_data): ...this.
3646 (class m2_language): New class.
3647 (m2_language_defn): New static global.
3648 * gdb/objc-lang.c (objc_language_defn): Convert to...
3649 (objc_language_data): ...this.
3650 (class objc_language): New class.
3651 (objc_language_defn): New static global.
3652 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
3653 (opencl_language_data): ...this.
3654 (class opencl_language): New class.
3655 (opencl_language_defn): New static global.
3656 * gdb/p-lang.c (pascal_language_defn): Convert to...
3657 (pascal_language_data): ...this.
3658 (class pascal_language): New class.
3659 (pascal_language_defn): New static global.
3660 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
3661 language pointer, update comment format.
3662 * gdb/rust-lang.c (rust_language_defn): Convert to...
3663 (rust_language_data): ...this.
3664 (class rust_language): New class.
3665 (rust_language_defn): New static global.
3666
1313c56e
AB
36672020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
3668
3669 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
3670 member variable.
3671 <m_stmt_at_address>: New member variable.
3672 (lnp_state_machine::record_line): Don't record some lines, update
3673 tracking of is_stmt at the same address.
3674 (lnp_state_machine::lnp_state_machine): Initialise new member
3675 variables.
3676
b7ed9f3d
ST
36772020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
3678
3679 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
3680 "-include gnu-nat-mig.h".
3681 * gnu-nat-mig.h: New file.
3682 * gnu-nat.c: Include "gnu-nat-mig.h".
3683 (exc_server, msg_reply_server, notify_server,
3684 process_reply_server): Remove declarations.
3685
14a8ad62
ST
36862020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3687
3688 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
3689 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
3690 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
3691 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
3692 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
3693 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
3694 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
3695 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
3696 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
3697 to gnu_nat_target class.
3698 * gnu-nat.c: Likewise.
3699 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
3700 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
3701 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
3702 object.
3703 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
3704 instead of `gnu_target'.
3705
0af5e106
ST
37062020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3707
3708 * i386-gnu-tdep.c: Include "gdbcore.h"
3709 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
3710 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
3711 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
3712 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
3713 i386_gnu_sigcontext_addr): New functions
3714 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
3715 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
3716 tdep.
3717
078f2fc9
ST
37182020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3719
3720 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
3721 before fork_inferior call. Avoid calling it if target_is_pushed returns
3722 true.
3723
53dff92c
ST
37242020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3725
3726 * gnu-nat.h (gnu_target): New variable declaration.
3727 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
3728 gnu_target.
3729 * gnu-nat.c (gnu_target): New variable.
3730 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
3731 add_thread_silent, and add_thread calls.
3732 (gnu_nat_target::create_inferior): Pass gnu_target to
3733 add_thread_silent, thread_change_ptid call.
3734 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
3735 call.
3736
5a8b8627
ST
37372020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3738
3739 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
3740 (gnu_nat_target::find_memory_regions): Remove unused
3741 `old_address' variable.
3742
366f550a
ST
37432020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3744
3745 * gnu-nat.c: Include "gdbarch.h".
3746
f14871bf
ST
37472020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3748
3749 * reply_mig_hack.awk (Error return): Cast function through
3750 void *, to bypass compiler function call check.
3751
c6887cfb
ST
37522020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3753
3754 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
3755 $(srcdir)/reply_mig_hack.awk.
3756
6930bffe
ST
37572020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3758
3759 * gnu-nat.h (gnu_debug_flag): Set type to bool.
3760
112c22ed
JG
37612020-05-30 Jonny Grant <jg@jguk.org>
3762
3763 * configure.ac (ACX_BUGURL): change bug URL to https.
3764
f68f85b5
PA
37652020-05-30 Pedro Alves <palves@redhat.com>
3766
3767 * cp-support.c (replace_typedefs_template): New.
3768 (replace_typedefs_qualified_name): Handle
3769 DEMANGLE_COMPONENT_TEMPLATE.
3770
976ca316
SM
37712020-05-29 Simon Marchi <simon.marchi@efficios.com>
3772
3773 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
3774 dwarf2/index-cache.h, dwarf2/index-write.c,
3775 dwarf2/index-write.h, dwarf2/line-header.c,
3776 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
3777 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
3778 variables and fields from `dwarf2_per_objfile` to just
3779 `per_objfile` throughout.
3780
989ade05
SM
37812020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
3782
3783 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
3784 <push_dwarf_reg_entry_value>: Add comment.
3785
c47bae85
KB
37862020-05-28 Kevin Buettner <kevinb@redhat.com>
3787 Keith Seitz <keiths@redhat.com>
3788
3789 * python/python.c (do_start_initialization): Call PyEval_SaveThread
3790 instead of PyEval_ReleaseLock.
3791 (class gdbpy_gil): Move to earlier in file.
3792 (finalize_python): Set gdb_python_initialized.
3793 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
3794 when not initialized.
3795
44486dcf
SM
37962020-05-28 Simon Marchi <simon.marchi@efficios.com>
3797
3798 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
3799 <push_dwarf_reg_entry_value>: Remove assert. Override
3800 per_objfile with caller_per_objfile.
3801
f030440d
TV
38022020-05-28 Tom de Vries <tdevries@suse.de>
3803
3804 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
3805 PR gold/15646 workaround to symbol kind "type".
3806
f0fbb768
TT
38072020-05-27 Tom Tromey <tromey@adacore.com>
3808
3809 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
3810
af0b2a3e
TT
38112020-05-27 Tom Tromey <tromey@adacore.com>
3812
3813 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
3814 Use htab_find_with_hash.
3815 <add_abbrev>: Remove "abbrev_number" parameter.
3816 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
3817 "abbrev_number" parameter. Use htab_find_slot_with_hash.
3818 (hash_abbrev): Add comment.
3819 (abbrev_table::lookup_abbrev): Move to header file.
3820 (abbrev_table::read): Update.
3821
7d00ffec
TT
38222020-05-27 Tom Tromey <tromey@adacore.com>
3823
3824 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
3825 method.
3826 <canonical_name>: New member.
3827 <raw_name>: Rename from "name".
3828 (partial_die_info): Initialize canonical_name.
3829 (scan_partial_symbols): Check raw_name.
3830 (partial_die_parent_scope, partial_die_full_name)
3831 (add_partial_symbol, add_partial_subprogram)
3832 (add_partial_enumeration, load_partial_dies): Use "name" method.
3833 (partial_die_info::name): New method.
3834 (partial_die_info::read, guess_partial_die_structure_name)
3835 (partial_die_info::fixup): Update.
3836
697bba18
TT
38372020-05-27 Tom Tromey <tromey@adacore.com>
3838
3839 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
3840 <get_ref_die_offset>: Inline.
3841 <get_ref_die_offset_complaint>: New method.
3842 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
3843 (attribute::get_ref_die_offset_complaint): Rename from
3844 get_ref_die_offset. Just issue complaint.
3845
c17ace43
HD
38462020-05-27 Hannes Domani <ssbssa@yahoo.de>
3847
3848 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
3849
96445f0b
HD
38502020-05-27 Hannes Domani <ssbssa@yahoo.de>
3851
3852 * exec.c (exec_file_attach): Use errno value of first openp failure.
3853
ac637ec3
HD
38542020-05-27 Hannes Domani <ssbssa@yahoo.de>
3855
3856 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
3857 Don't close thread handle.
3858
17ee85fc
TT
38592020-05-27 Tom Tromey <tom@tromey.com>
3860 Simon Marchi <simon.marchi@efficios.com>
3861
3862 * objfiles.h (struct objfile) <partial_symtabs>: Now a
3863 shared_ptr.
3864 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
3865 member.
3866 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
3867 dwarf2_per_bfd_objfile_data_key>: New globals.
3868 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
3869 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
3870 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
3871 shared.
3872 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
3873 short-circuit when sharing.
3874 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
3875 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
3876
39b16f87
SM
38772020-05-27 Simon Marchi <simon.marchi@efficios.com>
3878
3879 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
3880 to...
3881 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
3882 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
3883
fcf23d5b
SM
38842020-05-27 Simon Marchi <simon.marchi@efficios.com>
3885
3886 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
3887 build_name_components, find_name_components_bounds>:
3888 Add per_objfile parameter.
3889 (struct mapped_index) <symbol_name_at>: Likewise.
3890 (struct mapped_debug_names): Remove constructor.
3891 <dwarf2_per_objfile>: Remove field.
3892 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
3893 (mapped_index_base::find_name_components_bounds,
3894 mapped_index_base::build_name_components,
3895 dw2_expand_symtabs_matching_symbol): Likewise.
3896 (class mock_mapped_index) <symbol_name_at>: Likewise.
3897 (check_match): Likewise.
3898 (check_find_bounds_finds): Likewise.
3899 (test_mapped_index_find_name_component_bounds): Update.
3900 (CHECK_MATCH): Update.
3901 (dw2_expand_symtabs_matching): Update.
3902 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
3903 per_objfile parameter.
3904 <find_vec_in_debug_names>: Likewise.
3905 <m_per_objfile>: New field.
3906 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
3907 parameter.
3908 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
3909 (dw2_debug_names_iterator::next): Update.
3910 (dw2_debug_names_lookup_symbol): Update.
3911 (dw2_debug_names_expand_symtabs_for_function): Update.
3912 (dw2_debug_names_map_matching_symbols): Update.
3913 (dw2_debug_names_expand_symtabs_matching): Update.
3914 (dwarf2_read_debug_names): Update.
3915
7188ed02
SM
39162020-05-27 Simon Marchi <simon.marchi@efficios.com>
3917
3918 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
3919 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
3920 move to dwarf2_per_objfile.
3921 <read_in_chain>: Remove.
3922 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
3923 remove_all_cus, age_comp_units>: New methods.
3924 <m_dwarf2_cus>: New member.
3925 (struct dwarf2_per_cu_data) <cu>: Remove.
3926 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
3927 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
3928 moved to methods of dwarf2_per_objfile.
3929 (dwarf2_clear_marks): Remove.
3930 (dwarf2_queue_item::~dwarf2_queue_item): Update.
3931 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
3932 (dwarf2_per_bfd::free_cached_comp_units): Remove.
3933 (dwarf2_per_objfile::remove_all_cus): New.
3934 (class free_cached_comp_units) <~free_cached_comp_units>:
3935 Update.
3936 (load_cu): Update.
3937 (dw2_do_instantiate_symtab): Adjust.
3938 (fill_in_sig_entry_from_dwo_entry): Adjust.
3939 (cutu_reader::init_tu_and_read_dwo_dies): Update.
3940 (cutu_reader::cutu_reader): Likewise.
3941 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
3942 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
3943 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
3944 and dwarf2_per_objfile::age_comp_units.
3945 (load_partial_comp_unit): Update.
3946 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
3947 (process_queue): Likewise.
3948 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
3949 backlink.
3950 (dwarf2_read_addr_index): Likewise.
3951 (follow_die_offset): Likewise.
3952 (dwarf2_fetch_die_loc_sect_off): Likewise.
3953 (dwarf2_fetch_constant_bytes): Likewise.
3954 (dwarf2_fetch_die_type_sect_off): Likewise.
3955 (follow_die_sig_1): Likewise.
3956 (load_full_type_unit): Likewise.
3957 (read_signatured_type): Likewise.
3958 (dwarf2_cu::dwarf2_cu): Don't set cu field.
3959 (dwarf2_cu::~dwarf2_cu): Remove.
3960 (dwarf2_per_objfile::get_cu): New.
3961 (dwarf2_per_objfile::set_cu): New.
3962 (age_cached_comp_units): Rename to...
3963 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
3964 to std::unordered_map.
3965 (free_one_cached_comp_unit): Rename to...
3966 (dwarf2_per_objfile::remove_cu): ... this. Adjust
3967 to std::unordered_map.
3968 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
3969 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
3970 a dwarf2_per_objfile in data.
3971 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
3972 (dwarf2_clear_marks): Remove.
3973
2e671100
SM
39742020-05-27 Simon Marchi <simon.marchi@efficios.com>
3975
3976 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
3977 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
3978 (init_tu_and_read_dwo_dies): Likewise.
3979 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
3980 (cutu_reader::cutu_reader): Likewise.
3981 (load_partial_comp_unit): Likewise.
3982 (process_psymtab_comp_unit): Update.
3983 (build_type_psymtabs_1): Update.
3984 (process_skeletonless_type_unit): Update.
3985 (load_full_comp_unit): Update.
3986 (find_partial_die): Update.
3987 (dwarf2_read_addr_index): Update.
3988 (read_signatured_type): Update.
3989
2e6a9f79
SM
39902020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3991
3992 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
3993 m_header_read_in>: New fields.
3994 <get_header>: New method.
3995 * dwarf2/read.c (per_cu_header_read_in): Remove.
3996 (dwarf2_per_cu_data::get_header): New.
3997 (dwarf2_per_cu_data::addr_size): Update.
3998 (dwarf2_per_cu_data::offset_size): Update.
3999 (dwarf2_per_cu_data::ref_addr_size): Update.
4000
1b555f17
SM
40012020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4002
4003 * dwarf2/read.c (load_cu): Return dwarf2_cu.
4004 (dw2_do_instantiate_symtab): Update.
4005 (queue_and_load_all_dwo_tus): Change parameter from
4006 dwarf2_per_cu_data to dwarf2_cu.
4007 (dwarf2_fetch_die_loc_sect_off): Update.
4008 (dwarf2_fetch_constant_bytes): Update.
4009 (dwarf2_fetch_die_type_sect_off): Update.
4010
8fc0b21d
SM
40112020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4012
4013 * dwarf2/read.c (process_full_comp_unit,
4014 process_full_type_unit): Remove per_cu, per_objfile paramters.
4015 Add dwarf2_cu parameter.
4016 (process_queue): Update.
4017
168c9250
SM
40182020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4019
4020 * dwarf2/read.c (create_cu_from_index_list): Replace
4021 dwarf2_per_objfile parameter with dwarf2_per_bfd.
4022 (create_cus_from_index_list): Likewise.
4023 (create_cus_from_index): Likewise.
4024 (create_signatured_type_table_from_index): Likewise.
4025 (create_cus_from_debug_names_list): Likewise.
4026 (create_cus_from_debug_names): Likewise.
4027 (dwarf2_read_gdb_index): Update.
4028 (dwarf2_read_debug_names): Update.
4029
e286671b
TT
40302020-05-27 Tom Tromey <tom@tromey.com>
4031 Simon Marchi <simon.marchi@efficios.com>
4032
4033 * dwarf2/read.h (struct dwarf2_per_objfile)
4034 <get_type_for_signatured_type, set_type_for_signatured_type>:
4035 New methods.
4036 <m_type_map>: New member.
4037 (struct signatured_type) <type>: Remove.
4038 * dwarf2/read.c
4039 (dwarf2_per_objfile::get_type_for_signatured_type,
4040 dwarf2_per_objfile::set_type_for_signatured_type): New.
4041 (get_signatured_type): Use new methods.
4042
8adb8487
TT
40432020-05-27 Tom Tromey <tom@tromey.com>
4044 Simon Marchi <simon.marchi@efficios.com>
4045
4046 * dwarf2/read.h (struct type_unit_group_unshareable): New.
4047 (struct dwarf2_per_objfile) <type_units>: New member.
4048 <get_type_unit_group_unshareable>: New method.
4049 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
4050 num_symtabs, symtabs>: Remove; move to
4051 type_unit_group_unshareable.
4052 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
4053 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
4054 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
4055
127bbf4b
SM
40562020-05-27 Simon Marchi <simon.marchi@efficios.com>
4057
4058 * dwarf2/read.h (struct dwarf2_per_cu_data):
4059 <dwarf2_per_objfile>: Remove.
4060 * dwarf2/read.c (create_cu_from_index_list): Don't assign
4061 dwarf2_per_objfile.
4062 (create_signatured_type_table_from_index): Likewise.
4063 (create_signatured_type_table_from_debug_names): Likewise.
4064 (create_debug_type_hash_table): Likewise.
4065 (fill_in_sig_entry_from_dwo_entry): Likewise.
4066 (create_type_unit_group): Likewise.
4067 (read_comp_units_from_section): Likewise.
4068 (create_cus_hash_table): Likewise.
4069
f6e649dd
SM
40702020-05-27 Simon Marchi <simon.marchi@efficios.com>
4071
4072 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
4073 dwarf2_per_cu_data::dwarf2_per_objfile.
4074 (compute_compunit_symtab_includes): Likewise.
4075 (dwarf2_cu::start_symtab): Likewise.
4076
aa66c379
SM
40772020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4078
4079 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
4080 parameter.
4081 * dwarf2/read.c (get_die_type_at_offset): Likewise.
4082 (read_namespace_alias): Update.
4083 (lookup_die_type): Update.
4084 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
4085 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
4086 Update.
4087 (disassemble_dwarf_expression): Update.
4088
120ce1b5
SM
40892020-05-27 Simon Marchi <simon.marchi@efficios.com>
4090
4091 * dwarf2/read.h (struct dwarf2_queue_item): Add
4092 dwarf2_per_objfile parameter, assign new parameter.
4093 <per_objfile>: New field.
4094 * dwarf2/read.c (free_one_cached_comp_unit): Add
4095 dwarf2_per_objfile parameter.
4096 (queue_comp_unit): Likewise.
4097 (dw2_do_instantiate_symtab): Update.
4098 (process_psymtab_comp_unit): Update.
4099 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
4100 (process_imported_unit_die): Update.
4101 (queue_and_load_dwo_tu): Update.
4102 (follow_die_offset): Update.
4103 (follow_die_sig_1): Update.
4104
9f47c707
SM
41052020-05-27 Simon Marchi <simon.marchi@efficios.com>
4106
4107 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
4108 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
4109 (read_call_site_scope): Assign per_objfile.
4110 (dwarf2_per_cu_data::objfile): Remove.
4111 * gdbtypes.h (struct call_site) <per_objfile>: New member.
4112 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
4113 dwarf2_per_objfile parameter.
4114 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
4115 dwarf2_per_objfile parameter.
4116 (dwarf_expr_reg_to_entry_parameter): Add output
4117 dwarf2_per_objfile parameter.
4118 (locexpr_get_frame_base): Update.
4119 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
4120 <push_dwarf_reg_entry_value>: Update.
4121 <call_site_to_target_addr>: Update.
4122 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
4123 parameter.
4124 (value_of_dwarf_reg_entry): Update.
4125 (rw_pieced_value): Update.
4126 (indirect_synthetic_pointer): Update.
4127 (dwarf2_evaluate_property): Update.
4128 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
4129 parameter.
4130 (locexpr_read_variable): Update.
4131 (locexpr_get_symbol_read_needs): Update.
4132 (loclist_read_variable): Update.
4133
14095eb3
SM
41342020-05-27 Simon Marchi <simon.marchi@efficios.com>
4135
4136 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
4137 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
4138 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
4139 parameter.
4140 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
4141 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
4142 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
4143 parameter.
4144 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
4145 sect_variable_value): Add dwarf2_per_objfile parameter.
4146 (class dwarf_evaluate_loc_desc) <dwarf_call,
4147 dwarf_variable_value>: Update.
4148 (fetch_const_value_from_synthetic_pointer): Add
4149 dwarf2_per_objfile parameter.
4150 (fetch_const_value_from_synthetic_pointer): Update.
4151 (coerced_pieced_ref): Update.
4152 (class symbol_needs_eval_context) <dwarf_call,
4153 dwarf_variable_value>: Update.
4154 (dwarf2_compile_expr_to_ax): Update.
4155
3c3cd3d4
SM
41562020-05-27 Simon Marchi <simon.marchi@efficios.com>
4157
4158 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
4159 parameter.
4160 (dwarf2_evaluate_loc_desc_full): Update.
4161
82ca3f51
SM
41622020-05-27 Simon Marchi <simon.marchi@efficios.com>
4163
4164 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
4165 parameter.
4166 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
4167 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
4168 dwarf2_per_objfile parameter.
4169 (decode_debug_loc_dwo_addresses): Likewise.
4170 (dwarf2_find_location_expression): Update.
4171 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
4172 (locexpr_describe_location_piece): Add dwarf2_per_objfile
4173 parameter.
4174 (disassemble_dwarf_expression): Add dwarf2_per_objfile
4175 parameter.
4176 (locexpr_describe_location_1): Likewise.
4177 (locexpr_describe_location): Update.
4178
4b167ea1
SM
41792020-05-27 Simon Marchi <simon.marchi@efficios.com>
4180
4181 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
4182 Remove.
4183 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
4184 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
4185 (dwarf2_compile_property_to_c): Update.
4186 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
4187 use text offset from objfile.
4188 (locexpr_tracepoint_var_ref): Update.
4189 (locexpr_generate_c_location): Update.
4190 (loclist_describe_location): Update.
4191 (loclist_tracepoint_var_ref): Update.
4192 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
4193 dwarf2_per_objfile parameter.
4194 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
4195 use text offset from objfile.
4196 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
4197
89b07335
SM
41982020-05-27 Simon Marchi <simon.marchi@efficios.com>
4199
4200 * dwarf2/expr.h (struct dwarf_expr_context)
4201 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
4202 <offset>: Remove.
4203 <per_objfile>: New member.
4204 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
4205 dwarf2_per_objfile parameter. Don't set offset, set
4206 per_objfile.
4207 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
4208 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
4209 a dwarf2_per_objfile object instead of an offset.
4210 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
4211 constructor.
4212 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
4213 to dwarf2_expr_executor constructor. Don't set offset.
4214 (dwarf2_fetch_cfa_info): Update.
4215 (struct dwarf2_frame_cache) <text_offset>: Remove.
4216 <per_objfile>: New field.
4217 (dwarf2_frame_cache): Update.
4218 (dwarf2_frame_prev_register): Update.
4219 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
4220 <dwarf_evaluate_loc_desc>: Add constructor.
4221 (dwarf2_evaluate_loc_desc_full): Update.
4222 (dwarf2_locexpr_baton_eval): Update.
4223 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
4224 Add constructor.
4225 (dwarf2_loc_desc_get_symbol_read_needs): Update.
4226
293e7e51
SM
42272020-05-27 Simon Marchi <simon.marchi@efficios.com>
4228
4229 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
4230 addr_sized_int_type>: Move to dwarf2_cu.
4231 <int_type>: Move to dwarf2_per_objfile.
4232 (struct dwarf2_per_objfile) <int_type>: Move here.
4233 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
4234 addr_sized_int_type>: Move here.
4235 (read_func_scope): Update.
4236 (read_array_type): Update.
4237 (read_tag_string_type): Update.
4238 (attr_to_dynamic_prop): Update.
4239 (dwarf2_per_cu_data::int_type): Rename to...
4240 (dwarf2_per_objfile::int_type): ... this.
4241 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
4242 (dwarf2_cu::addr_sized_int_type): ... this.
4243 (read_subrange_type): Update.
4244 (dwarf2_per_cu_data::addr_type): Rename to...
4245 (dwarf2_cu::addr_type): ... this.
4246 (set_die_type): Update.
4247
64874a40
SM
42482020-05-27 Simon Marchi <simon.marchi@efficios.com>
4249
4250 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
4251 data through per_cu->cu.
4252
4ab09049
SM
42532020-05-27 Simon Marchi <simon.marchi@efficios.com>
4254
4255 * dwarf2/read.c (lookup_dwo_comp_unit): Change
4256 dwarf2_per_cu_data parameter fo dwarf2_cu.
4257 (lookup_dwo_type_unit): Likewise.
4258 (read_cutu_die_from_dwo): Likewise.
4259 (lookup_dwo_unit): Likewise.
4260 (open_and_init_dwo_file): Likewise.
4261 (lookup_dwo_cutu): Likewise.
4262 (lookup_dwo_comp_unit): Likewise.
4263 (lookup_dwo_type_unit): Likewise.
4264 (cutu_reader::init_tu_and_read_dwo_dies): Update.
4265 (cutu_reader::cutu_reader): Update.
4266
47b14e86
SM
42672020-05-27 Simon Marchi <simon.marchi@efficios.com>
4268
4269 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
4270 parameter.
4271 (process_full_type_unit): Likewise.
4272 (process_queue): Update.
4273
43182c09
SM
42742020-05-27 Simon Marchi <simon.marchi@efficios.com>
4275
4276 * dwarf2/read.c (recursively_compute_inclusions): Add
4277 dwarf2_per_objfile parameter.
4278 (compute_compunit_symtab_includes): Likewise.
4279 (process_cu_includes): Update.
4280
7aa104c4
SM
42812020-05-27 Simon Marchi <simon.marchi@efficios.com>
4282
4283 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
4284 parameter.
4285 (create_type_unit_group): Update.
4286 (process_psymtab_comp_unit_reader): Update.
4287 (build_type_psymtabs_reader): Update.
4288
e3beb21d
SM
42892020-05-27 Simon Marchi <simon.marchi@efficios.com>
4290
4291 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
4292 object through m_this_cu->cu.
4293
d460f660
SM
42942020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4295
4296 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
4297 the info parameter.
4298 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
4299
ab432490
SM
43002020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4301
4302 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
4303 per_objfile parameter.
4304 (load_full_type_unit): Add per_objfile parameter.
4305 (read_signatured_type): Likewise.
4306 (load_full_comp_unit): Likewise.
4307 (load_cu): Likewise.
4308 (dw2_do_instantiate_symtab): Likewise.
4309 (dw2_get_file_names): Likewise.
4310 (dw2_map_symtabs_matching_filename): Update.
4311 (dw_expand_symtabs_matching_file_matcher): Update.
4312 (dw2_map_symbol_filenames): Update.
4313 (process_psymtab_comp_unit): Add per_objfile parameter.
4314 (build_type_psymtabs_1): Update.
4315 (process_skeletonless_type_unit): Update.
4316 (dwarf2_build_psymtabs_hard): Update.
4317 (load_partial_comp_unit): Add per_objfile parameter.
4318 (scan_partial_symbols): Update.
4319 (load_full_comp_unit): Add per_objfile parameter.
4320 (process_imported_unit_die): Update.
4321 (create_cus_hash_table): Update.
4322 (find_partial_die): Update.
4323 (dwarf2_read_addr_index): Update.
4324 (follow_die_offset): Update.
4325 (dwarf2_fetch_die_loc_sect_off): Update.
4326 (dwarf2_fetch_constant_bytes): Update.
4327 (dwarf2_fetch_die_type_sect_off): Update.
4328 (follow_die_sig_1): Update.
4329 (load_full_type_unit): Add per_objfile parameter.
4330 (read_signatured_type): Likewise.
4331
313bad1b
SM
43322020-05-27 Simon Marchi <simon.marchi@efficios.com>
4333
4334 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
4335 of objfile_name.
4336
c3699833
SM
43372020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4338
4339 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
4340 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
4341 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
4342 field.
4343 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
4344 (create_cus_from_index): Update.
4345 (dwarf2_read_gdb_index): Update.
4346 (create_cus_from_debug_names): Update.
4347 (dwarf2_read_debug_names): Update.
4348 (get_abbrev_section_for_cu): Update.
4349 (create_all_comp_units): Update.
4350 (read_attribute_value): Update.
4351 (get_debug_line_section): Update.
4352 * dwarf2/index-cache.c (index_cache::store): Update.
4353 * dwarf2/index-write.c (save_gdb_index_command): Update.
4354 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
4355
1859c670
SM
43562020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4357
4358 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
4359 member.
4360 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
4361 dwarf2_per_cu_data::per_bfd.
4362 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
4363 (create_type_unit_group): Likewise.
4364 (queue_comp_unit): Remove reference to
4365 per_cu->dwarf2_per_objfile.
4366 (maybe_queue_comp_unit): Likewise.
4367 (fill_in_sig_entry_from_dwo_entry): Assign new field.
4368 (create_cus_hash_table): Assign new field.
4369
5e22e966
SM
43702020-05-27 Simon Marchi <simon.marchi@efficios.com>
4371
4372 * dwarf2/read.c: Replace
4373 dwarf2_cu->per_cu->dwarf2_per_objfile references with
4374 dwarf2_cu->per_objfile throughout.
4375
97a1449a
SM
43762020-05-27 Simon Marchi <simon.marchi@efficios.com>
4377
4378 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
4379 parameter, don't use per_cu->dwarf2_per_objfile.
4380 (dw2_instantiate_symtab): Likewise.
4381 (dw2_find_last_source_symtab): Update.
4382 (dw2_map_expand_apply): Update.
4383 (dw2_lookup_symbol): Update.
4384 (dw2_expand_symtabs_for_function): Update.
4385 (dw2_expand_all_symtabs): Update.
4386 (dw2_expand_symtabs_with_fullname): Update.
4387 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
4388 don't use per_cu->dwarf2_per_objfile.
4389 (dw2_expand_marked_cus): Update.
4390 (dw2_find_pc_sect_compunit_symtab): Update.
4391 (dw2_debug_names_lookup_symbol): Update.
4392 (dw2_debug_names_expand_symtabs_for_function): Update.
4393 (dw2_debug_names_map_matching_symbols): Update.
4394 (dwarf2_psymtab::expand_psymtab): Update.
4395
9e021579
SM
43962020-05-27 Simon Marchi <simon.marchi@efficios.com>
4397
4398 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
4399 <per_objfile>: New member.
4400 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
4401 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
4402 call to dwarf2_cu.
4403 (cutu_reader::cutu_reader): Update.
4404 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
4405
ae090bdb
SM
44062020-05-27 Simon Marchi <simon.marchi@efficios.com>
4407
4408 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
4409 struct dwarf2_per_objfile.
4410 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
4411 dwarf2_per_bfd.
4412 * dwarf2/read.c (set_die_type): Update.
4413 (get_die_type_at_offset): Update.
4414
af758d11
SM
44152020-05-27 Tom Tromey <tom@tromey.com>
4416 Simon Marchi <simon.marchi@efficios.com>
4417
4418 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
4419 method.
4420 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
4421 get_symtab, set_symtab>: New methods.
4422 <m_symtabs>: New field.
4423 (struct dwarf2_psymtab): Derive from partial_symtab.
4424 <readin_p, get_compunit_symtab>: Declare methods.
4425 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
4426 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
4427 New methods.
4428 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
4429 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
4430 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
4431 (dw2_symtab_iter_next, dw2_print_stats)
4432 (dw2_expand_symtabs_with_fullname)
4433 (dw2_expand_symtabs_matching_one)
4434 (dw_expand_symtabs_matching_file_matcher)
4435 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
4436 (dw2_debug_names_iterator::next)
4437 (dw2_debug_names_map_matching_symbols)
4438 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
4439 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
4440 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
4441 New methods.
4442 (get_compunit_symtab, process_full_comp_unit)
4443 (process_full_type_unit): Update.
4444 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
4445
5989a64e
SM
44462020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4447
4448 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
4449 then introduce a new dwarf2_per_objfile type.
4450 <read_line_string>: Move to the new dwarf2_per_objfile type.
4451 <objfile>: Likewise.
4452 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
4453 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
4454 dwarf2_per_objfile->per_bfd.
4455 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
4456 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
4457 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
4458 (dwarf2_per_bfd::free_cached_comp_units): ... this.
4459 (dwarf2_has_info): Allocate dwarf2_per_bfd.
4460 (dwarf2_per_objfile::locate_sections): Rename to...
4461 (dwarf2_per_bfd::locate_sections): ... this.
4462 (dwarf2_per_objfile::get_cutu): Rename to...
4463 (dwarf2_per_bfd::get_cutu): ... this.
4464 (dwarf2_per_objfile::get_cu): Rename to...
4465 (dwarf2_per_bfd::get_cu): ... this.
4466 (dwarf2_per_objfile::get_tu): Rename to...
4467 (dwarf2_per_bfd::get_tu): ... this.
4468 (dwarf2_per_objfile::allocate_per_cu): Rename to...
4469 (dwarf2_per_bfd::allocate_per_cu): ... this.
4470 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
4471 (dwarf2_per_bfd::allocate_signatured_type): ... this.
4472 (get_gdb_index_contents_ftype): Change parameter from
4473 dwarf2_per_objfile to dwarf2_per_bfd.
4474 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
4475 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
4476
a50264ba
TT
44772020-05-27 Tom Tromey <tom@tromey.com>
4478 Simon Marchi <simon.marchi@efficios.com>
4479
4480 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
4481 (allocate_piece_closure): Set "per_objfile" member.
4482 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
4483 (locexpr_describe_location, loclist_describe_location): Use new
4484 member.
4485 * dwarf2/read.c (read_call_site_scope)
4486 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
4487 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
4488 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
4489 handle_data_member_location): Set per_objfile member.
4490 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
4491 member.
4492 (struct dwarf2_loclist_baton) <per_objfile>: New member.
4493
d3473f0c
TT
44942020-05-27 Tom Tromey <tom@tromey.com>
4495
4496 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
4497 allocate_signatured_type>: Declare new methods.
4498 <m_num_psymtabs>: New member.
4499 (struct dwarf2_per_cu_data) <index>: New member.
4500 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
4501 (dwarf2_per_objfile::allocate_signatured_type): New methods.
4502 (create_cu_from_index_list): Use allocate_per_cu.
4503 (create_signatured_type_table_from_index)
4504 (create_signatured_type_table_from_debug_names)
4505 (create_debug_type_hash_table, add_type_unit)
4506 (read_comp_units_from_section): Use allocate_signatured_type.
4507
5717c425
TT
45082020-05-27 Tom Tromey <tom@tromey.com>
4509
4510 * psymtab.c (partial_map_expand_apply)
4511 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
4512 (psym_lookup_global_symbol_language)
4513 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
4514 (psym_print_stats, psym_expand_symtabs_for_function)
4515 (psym_map_symbol_filenames, psym_map_matching_symbols)
4516 (psym_expand_symtabs_matching)
4517 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
4518 (maintenance_check_psymtabs): Update.
4519 * psympriv.h (struct partial_symtab) <readin_p,
4520 get_compunit_symtab>: Add objfile parameter.
4521 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
4522 Likewise.
4523 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
4524 get_compunit_symtab>: Likewise.
4525 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
4526
45940949
TT
45272020-05-27 Tom Tromey <tom@tromey.com>
4528
4529 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
4530 member.
4531 * dwarf2/read.c (delete_file_name_entry): Fix comment.
4532 (create_cu_from_index_list)
4533 (create_signatured_type_table_from_index)
4534 (create_signatured_type_table_from_debug_names)
4535 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
4536 (dwarf2_create_include_psymtab)
4537 (create_debug_type_hash_table, add_type_unit)
4538 (create_type_unit_group, read_comp_units_from_section)
4539 (dwarf2_compute_name, create_cus_hash_table)
4540 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
4541 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
4542 obstack.
4543 (dw2_get_real_path): Likewise. Change argument to
4544 dwarf2_per_objfile.
4545
f8c6d152
LM
45462020-05-27 Luis Machado <luis.machado@linaro.org>
4547
4548 PR tdep/26000
4549 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
4550 for ldrd (immediate).
4551
e98d2e6d
PW
45522020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4553
4554 * command.h: Add comment giving the name of class_tui.
4555 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
4556 create the fake command for the help for class_tui.
4557
53a47a3e
TT
45582020-05-26 Tom Tromey <tromey@adacore.com>
4559
4560 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
4561 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
4562 (val_atr): New function.
4563 (value_val_atr): Use it.
4564 * ada-valprint.c (print_optional_low_bound): Change low bound
4565 handling for enums.
4566 (val_print_packed_array_elements): Don't call discrete_position.
4567 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
4568 discrete_position for enum types.
4569 * language.c (default_print_array_index): Change type.
4570 * language.h (struct language_defn) <la_print_array_index>: Add
4571 index_type parameter, change type of index_value.
4572 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
4573 (default_print_array_index): Update.
4574 * valprint.c (maybe_print_array_index): Don't call
4575 value_from_longest. Update.
4576 (value_print_array_elements): Don't call discrete_position.
4577
0bc2354b
TT
45782020-05-26 Tom Tromey <tromey@adacore.com>
4579
4580 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
4581 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
4582
1218a4bf
CDA
45832020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
4584
4585 PR gdb/13519
4586 * avr-tdep.c (avr_integer_to_address): Return data or code
4587 address accordingly to the second 'type' argument of the
4588 function.
4589
92651b1d
MW
45902020-05-25 Michael Weghorn <m.weghorn@posteo.de>
4591
4592 * infcmd.c, inferior.h: (construct_inferior_arguments):
4593 Moved function from here to gdbsupport/common-inferior.{h,cc}
4594
0a4f5f8c
TT
45952020-05-23 Tom Tromey <tom@tromey.com>
4596
4597 Revert commit eca1f90c:
4598 * NEWS: Remove entry for completion styling.
4599 * completer.c (_rl_completion_prefix_display_length): Move
4600 declaration later.
4601 (gdb_fnprint): Revert.
4602 (gdb_display_match_list_1): Likewise.
4603 * cli/cli-style.c (completion_prefix_style)
4604 (completion_difference_style, completion_suffix_style): Remove.
4605 (_initialize_cli_style): Revert.
4606 * cli/cli-style.h (completion_prefix_style)
4607 (completion_difference_style, completion_suffix_style): Don't
4608 declare.
4609
e08bd6c5
PA
46102020-05-24 Pedro Alves <palves@redhat.com>
4611
4612 * symtab.c (completion_list_add_name): Return boolean indication
4613 of whether the symbol matched.
4614 (completion_list_add_symbol): Don't try to remove C++ aliases if
4615 the symbol didn't match in the first place.
4616 * symtab.h (completion_list_add_name): Return bool.
4617
ceacbf6e
SM
46182020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
4619
4620 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
4621 type::field.
4622
26f16254
JB
46232020-05-23 Joel Brobecker <brobecker@adacore.com>
4624
4625 GDB 9.2 released.
4626
eca1f90c
TT
46272020-05-23 Tom Tromey <tom@tromey.com>
4628
4629 * NEWS: Add entry for completion styling.
4630 * completer.c (_rl_completion_prefix_display_length): Move
4631 declaration earlier.
4632 (gdb_fnprint): Use completion_style.
4633 (gdb_display_match_list_1): Likewise.
4634 * cli/cli-style.c (completion_prefix_style)
4635 (completion_difference_style, completion_suffix_style): New
4636 globals.
4637 (_initialize_cli_style): Register new globals.
4638 * cli/cli-style.h (completion_prefix_style)
4639 (completion_difference_style, completion_suffix_style): Declare.
4640
51e2cfa2
PA
46412020-05-23 Pedro Alves <palves@redhat.com>
4642
4643 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
4644 (parse_escape): Use ISDIGIT instead of isdigit.
4645 (puts_debug): Use gdb_isprint instead of isprint.
4646 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
4647 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
4648 ISSPACE instead of isspace.
4649 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
4650 instead of isspace.
4651 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
4652 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
4653 instead of isxdigit and ISDIGIT instead of isdigit.
4654
80fc5e77
SM
46552020-05-22 Simon Marchi <simon.marchi@efficios.com>
4656
4657 * gdbtypes.h (struct type) <field>: New method.
4658 (TYPE_FIELDS): Remove, replace all uses with either type::fields
4659 or type::field.
4660
3cabb6b0
SM
46612020-05-22 Simon Marchi <simon.marchi@efficios.com>
4662
4663 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
4664 (TYPE_FIELDS): Use type::fields. Change all call sites that
4665 modify the propery to use type::set_fields instead.
4666
1f704f76
SM
46672020-05-22 Simon Marchi <simon.marchi@efficios.com>
4668
4669 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
4670 type::num_fields instead.
4671
5e33d5f4
SM
46722020-05-22 Simon Marchi <simon.marchi@efficios.com>
4673
4674 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
4675 methods.
4676 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
4677 that modify the number of fields to use type::set_num_fields
4678 instead.
4679
9392ebb3
TT
46802020-05-22 Tom Tromey <tromey@adacore.com>
4681
4682 * compile/compile-object-load.h (munmap_list_free): Don't
4683 declare.
4684
7c13f4e8
AB
46852020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
4686
4687 * annotate.c (annotate_source_line): Update return type, add call
4688 to update current symtab and line.
4689 * annotate.h (annotate_source_line): Update return type, and
4690 extend header comment.
4691 * source.c (info_line_command): Check annotation_level before
4692 calling annotate_source_line.
4693 * stack.c (print_frame_info): If calling annotate_source_line
4694 returns true, then don't print any other source line information.
4695
aa370940
SM
46962020-05-21 Simon Marchi <simon.marchi@efficios.com>
4697
4698 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
4699
84d53fa9
SM
47002020-05-21 Simon Marchi <simon.marchi@efficios.com>
4701
4702 * coffread.c (patch_type): Remove NULL check before xfree.
4703 * corefile.c (set_gnutarget): Likewise.
4704 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
4705 * exec.c (build_section_table): Likewise.
4706 * remote.c (remote_target::pass_signals): Likewise.
4707 * utils.c (n_spaces): Likewise.
4708 * cli/cli-script.c (document_command): Likewise.
4709 * i386-windows-tdep.c (core_process_module_section): Likewise.
4710 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
4711
9d428aae
SM
47122020-05-20 Simon Marchi <simon.marchi@efficios.com>
4713
4714 * symfile.c (reread_symbols): Clear objfile's section_offsets
4715 vector and section indices, re-compute them by calling
4716 sym_offsets.
4717
250106a7
TT
47182020-05-20 Tom Tromey <tromey@adacore.com>
4719
4720 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
ec16513e 4721 (desc_one_bound, desc_index_type): Compute field name.
250106a7 4722
9a0bacfb
TV
47232020-05-20 Tom de Vries <tdevries@suse.de>
4724
4725 PR symtab/25833
4726 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
4727
7b958a48
AM
47282020-05-20 Alan Modra <amodra@gmail.com>
4729
4730 PR 25993
4731 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
4732 bfd_set_filename.
4733 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
4734 passed to bfd_set_filename.
4735 * symfile-mem.c (add_vsyscall_page): Likewise for string
4736 passed to symbol_file_add_from_memory.
4737 (symbol_file_add_from_memory): Make name param a const char* and
4738 don't strdup.
4739
c7e97679
AM
47402020-05-20 Alan Modra <amodra@gmail.com>
4741
4742 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
4743 rather than accessing bfd->filename directly.
4744 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
4745 and use bfd_section_name.
4746 * dwarf2/frame.c (decode_frame_entry): Likewise.
4747 * exec.c (exec_set_section_address): Likewise.
4748 * solib-aix.c (solib_aix_bfd_open): Likewise.
4749 * stap-probe.c (get_stap_base_address): Likewise.
4750 * symfile.c (reread_symbols): Likewise.
4751
563c591b
TT
47522020-05-19 Tom Tromey <tromey@adacore.com>
4753
4754 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
4755
f408d82c
SM
47562020-05-19 Simon Marchi <simon.marchi@efficios.com>
4757
4758 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
4759
98c59b52
PA
47602020-05-19 Pedro Alves <palves@redhat.com>
4761
4762 * NEWS (set exec-file-mismatch): Adjust entry.
4763 * exec.c: Include "build-id.h".
4764 (validate_exec_file): Try to match build IDs instead of filenames.
4765 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
4766 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
4767 and pass down 'warn_if_slow'.
4768 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
4769 gdb_bfd_open_closure to pass it down.
4770 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
4771
4111f652
PA
47722020-05-19 Pedro Alves <palves@redhat.com>
4773
4774 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
4775 * target.c (target_fileio_open_1): Rename to target_fileio_open
4776 and make extern. Use bool.
4777 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
4778 (target_fileio_read_alloc_1): Adjust.
4779 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
4780 (target_fileio_open_warn_if_slow): Delete declaration.
4781
ad80db5b
PA
47822020-05-19 Pedro Alves <palves@redhat.com>
4783
4784 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
4785 Adjust all callers.
4786
1d6ce4d3
YS
47872020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
4788
4789 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
4790 whether disp is negative.
4791
9005fbbb
SM
47922020-05-19 Simon Marchi <simon.marchi@efficios.com>
4793
4794 * symfile.h (struct symfile_segment_data)
4795 <~symfile_segment_data>: Remove.
4796 <segment_info>: Change to std::vector.
4797 * symfile.c (default_symfile_segments): Update.
4798 * elfread.c (elf_symfile_segments): Update.
4799
68b888ff
SM
48002020-05-19 Simon Marchi <simon.marchi@efficios.com>
4801
4802 * symfile.h (struct symfile_segment_data) <struct segment>: New.
4803 <segments>: New.
4804 <segment_bases, segment_sizes>: Remove.
4805 * symfile.c (default_symfile_segments): Update.
4806 * elfread.c (elf_symfile_segments): Update.
4807 * remote.c (remote_target::get_offsets): Update.
4808 * solib-target.c (solib_target_relocate_section_addresses):
4809 Update.
4810
62982abd
SM
48112020-05-19 Simon Marchi <simon.marchi@efficios.com>
4812
4813 * symfile.h (struct symfile_segment_data): Initialize fields.
4814 <~symfile_segment_data>: Add.
4815 (symfile_segment_data_up): New.
4816 (struct sym_fns) <sym_segments>: Return a
4817 symfile_segment_data_up.
4818 (default_symfile_segments): Return a symfile_segment_data_up.
4819 (free_symfile_segment_data): Remove.
4820 (get_symfile_segment_data): Return a symfile_segment_data_up.
4821 * symfile.c (default_symfile_segments): Likewise.
4822 (get_symfile_segment_data): Likewise.
4823 (free_symfile_segment_data): Remove.
4824 (symfile_find_segment_sections): Update.
4825 * elfread.c (elf_symfile_segments): Return a
4826 symfile_segment_data_up.
4827 * remote.c (remote_target::get_offsets): Update.
4828 * solib-target.c (solib_target_relocate_section_addresses):
4829 Update.
4830 * symfile-debug.c (debug_sym_segments): Return a
4831 symfile_segment_data_up.
4832
7f204339
RO
48332020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4834
e52a0f1b
RO
4835 PR build/25981
4836 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
4837 Hardcode register numbers.
4838
7f204339
RO
4839 PR build/25981
4840 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
4841 procfs_find_LDT_entry): Remove.
4842 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
4843 procfs_find_LDT_entry): Remove.
4844 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
4845 Remove.
4846
7f32a4d5
PA
48472020-05-17 Pedro Alves <palves@redhat.com>
4848 Andrew Burgess <andrew.burgess@embecosm.com>
4849 Keno Fischer <keno@juliacomputing.com>
4850
4851 PR gdb/25741
4852 * breakpoint.c (build_target_condition_list): Update comments.
4853 (build_target_command_list): Update comments and skip matching
4854 locations.
4855 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
4856 a separate function. Simplify "set breakpoint auto-hw off"
4857 handling.
4858 (insert_breakpoints): Update comment.
4859 (tracepoint_locations_match): New parameter. For breakpoints,
4860 compare location types too, if the caller wants to.
4861 (handle_automatic_hardware_breakpoints): New functions.
4862 (bp_location_is_less_than): Also sort by location type and
4863 hardware breakpoint length.
4864 (update_global_location_list): Handle "set breakpoint auto-hw on"
4865 here.
4866 (update_breakpoint_locations): Ask breakpoint_locations_match to
4867 ignore location types.
4868
7d93a1e0
SM
48692020-05-16 Simon Marchi <simon.marchi@efficios.com>
4870
4871 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
4872 type::name instead.
4873
d0e39ea2
SM
48742020-05-16 Simon Marchi <simon.marchi@efficios.com>
4875
4876 * gdbtypes.h (struct type) <name, set_name>: New methods.
4877 (TYPE_CODE): Use type::name. Change all call sites used to set
4878 the name to use type::set_name instead.
4879
2dab0c7b
TT
48802020-05-16 Tom Tromey <tom@tromey.com>
4881
4882 * top.c (quit_force): Update.
4883 * infrun.c (handle_no_resumed): Update.
4884 * top.h (all_uis): New function.
4885 (ALL_UIS): Remove.
4886
59f7bd8d
SM
48872020-05-16 Simon Marchi <simon.marchi@efficios.com>
4888
4889 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
4890
9bf058f0
PA
48912020-05-16 Pedro Alves <palves@redhat.com>
4892
4893 * ia64-linux-nat.c
4894 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
4895 Declare method.
4896 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
4897
8f86ae1a
SM
48982020-05-15 Simon Marchi <simon.marchi@efficios.com>
4899
4900 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
4901 (sparc64_adi_info): Likewise.
4902
d6bc0792
TT
49032020-05-15 Tom Tromey <tom@tromey.com>
4904
4905 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
4906 block_objfile.
4907 (lookup_objfile_from_block): Remove.
4908 (lookup_symbol_in_block, lookup_symbol_in_static_block)
4909 (lookup_global_symbol): Use block_objfile.
4910 * symtab.h (lookup_objfile_from_block): Don't declare.
4911 * printcmd.c (clear_dangling_display_expressions): Use
4912 block_objfile.
4913 * parse.c (operator_check_standard): Use block_objfile.
4914
8c14c3a3
TT
49152020-05-15 Tom Tromey <tom@tromey.com>
4916
4917 * language.c (language_alloc_type_symbol): Set
4918 SYMBOL_SECTION.
4919 * symtab.c (initialize_objfile_symbol): Remove.
4920 (allocate_symbol): Remove.
4921 (allocate_template_symbol): Remove.
4922 * dwarf2/read.c (fixup_go_packaging): Use "new".
4923 (new_symbol): Use "new".
4924 (read_variable): Don't call initialize_objfile_symbol. Use
4925 "new".
4926 (read_func_scope): Use "new".
4927 * xcoffread.c (process_xcoff_symbol): Don't call
4928 initialize_objfile_symbol.
4929 (SYMBOL_DUP): Remove.
4930 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
4931 "new".
4932 * symtab.h (allocate_symbol, initialize_objfile_symbol)
4933 (allocate_template_symbol): Don't declare.
4934 (struct symbol): Add copy constructor. Change defaults.
4935 * jit.c (finalize_symtab): Use "new".
4936 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
4937 Use "new".
4938 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
4939 (common_block_end): Use "new".
4940 * mdebugread.c (parse_symbol): Use "new".
4941 (new_symbol): Likewise.
4942
5b4a1a8d
PW
49432020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4944
4945 * NEWS: Mention changes to help and apropos.
4946
57b4f16e
PW
49472020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4948
4949 * command.h (enum command_class): Improve comments, document
4950 that class_alias is for user-defined aliases, give the class
4951 name for each class, remove unused class_xdb.
4952 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
4953 * breakpoint.c (_initialize_breakpoint): Replace class_alias
4954 by a precise class.
4955 * infcmd.c (_initialize_infcmd): Likewise.
4956 * reverse.c (_initialize_reverse): Likewise.
4957 * stack.c (_initialize_stack): Likewise.
4958 * symfile.c (_initialize_symfile): Likewise.
4959 * tracepoint.c (_initialize_tracepoint): Likewise.
4960
7c05caf7
PW
49612020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4962
4963 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
4964 when their aliased command is traversed.
4965 (help_cmd): Add fput_command_names_styled call to
4966 output command name and aliases when command has an alias.
4967
3b3aaacb
PW
49682020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4969
4970 * cli/cli-decode.h (help_cmd_list): Remove declaration.
4971 * cli/cli-decode.c (help_cmd_list): Declare as static,
4972 remove prefix argument, use bool for recurse arg, rework to show the aliases of
4973 a command together with the command.
4974 (fput_command_name_styled, fput_command_names_styled): New functions.
4975 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
4976 fput_command_name_styled.
4977 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
4978 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
4979
7aa1b46f
PW
49802020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4981
4982 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
4983 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
4984 * command.h (cmd_show_list): Likewise.
4985 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
4986 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
4987
89bcba74
PW
49882020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4989
4990 * unittests/command-def-selftests.c (traverse_command_structure):
4991 Verify all commands of a list have the same prefix command and
4992 that only the top cmdlist commands have a null prefix.
4993
3f4d92eb
PW
49942020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4995
4996 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
4997 as prefix, not one of its aliases.
4998 (set_cmd_prefix): Remove.
4999 (do_add_cmd): Centralize the setting of the prefix of a command, when
5000 command is defined after its full chain of prefix commands.
5001 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
5002 (add_setshow_cmd_full): Likewise.
5003 (update_prefix_field_of_prefixed_commands): New function.
5004 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
5005 update_prefix_field_of_prefixed_commands.
5006 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
5007 addresses of remote_set_cmdlist and remote_show_cmdlist given
5008 as argument, not the address of an argument.
5009 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
5010 * gdb/remote.c (_initialize_remote): Likewise.
5011
0605465f
PW
50122020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5013
5014 * cli/cli-cmds.c (alias_command): Check for an existing alias
5015 using lookup_cmd_composition, as valid_command_p is too strict
5016 and forbids aliases that are the prefix of an existing alias
5017 or command.
5018 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
5019 command is properly recognised as a valid command.
5020
58e6ac70
PW
50212020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5022
5023 * unittests/help-doc-selftests.c: Rename to
5024 unittests/command-def-selftests.c
5025 * unittests/command-def-selftests.c (help_doc_tests): Update some
5026 comments.
5027 (command_structure_tests, traverse_command_structure): New namespace
5028 and function.
5029 (command_structure_invariants_tests): New function.
5030 (_initialize_command_def_selftests) Renamed from
5031 _initialize_help_doc_selftests, register command_structure_invariants
5032 selftest.
5033
a7b9ceb8
PW
50342020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5035
5036 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
5037 an alias of 'show'.
5038
b2188a06
JB
50392020-05-15 Joel Brobecker <brobecker@adacore.com>
5040
5041 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
5042 ada_is_fixed_point_type. Update all callers.
5043 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
5044 all callers.
5045 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
5046 Update all callers.
5047 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
5048 print_fixed_point_type. Update all callers.
5049 * ada-valprint.c (ada_value_print_num): Replace call to
5050 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
5051
a51951c2
KB
50522020-05-14 Kevin Buettner <kevinb@redhat.com>
5053
5054 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
5055 processors.
5056 (cpu_supports_bts): Add CV_AMD case.
5057
29d6859f
LM
50582020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
5059 Simon Marchi <simon.marchi@efficios.com>
5060
5061 * infrun.c (stop_all_threads): Collect multiple wait events at
5062 each pass.
5063
78134374
SM
50642020-05-14 Simon Marchi <simon.marchi@efficios.com>
5065
5066 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
5067 type::code instead.
5068
67607e24
SM
50692020-05-14 Simon Marchi <simon.marchi@efficios.com>
5070
5071 * gdbtypes.h (struct type) <code, set_code>: New methods.
5072 (TYPE_CODE): Use type::code. Change all call sites used to set
5073 the code to use type::set_code instead.
5074
a05575d3
TBA
50752020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5076 Tom de Vries <tdevries@suse.de>
5077 Pedro Alves <palves@redhat.com>
5078
5079 PR threads/25478
5080 * infrun.c (stop_all_threads): Do NOT ignore
5081 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
5082 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
5083 received.
5084 (handle_no_resumed): Remove code handling a live inferior with no
5085 threads.
5086 * remote.c (has_single_non_exited_thread): New.
5087 (remote_target::update_thread_list): Do not delete a thread if is
5088 the last thread of the process.
5089 * thread.c (thread_select): Call delete_exited_threads instead of
5090 prune_threads.
5091
6ad82919
TBA
50922020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5093
5094 * infrun.c (stop_all_threads): Enable/disable thread events of all
5095 targets. Move a debug message denoting the end of the function
5096 into the SCOPED_EXIT block.
5097
d890404b
TBA
50982020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5099
5100 * process-stratum-target.h: Include <set>.
5101 (all_non_exited_process_targets, switch_to_target_no_thread): New
5102 function declarations.
5103 * process-stratum-target.c (all_non_exited_process_targets)
5104 (switch_to_target_no_thread): New function implementations.
5105
293b3ebc
TBA
51062020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5107
5108 * infrun.c (handle_inferior_event): Extract out a piece of code
5109 into...
5110 (mark_non_executing_threads): ...this new function.
5111
7ca9b62a
TBA
51122020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5113
5114 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
5115 use.
5116
fc75c28b
TBA
51172020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5118
5119 * regcache.c (regcache_read_pc_protected): New function
5120 implementation that returns 0 if the PC cannot read via
5121 'regcache_read_pc'.
5122 * infrun.c (proceed): Call 'regcache_read_pc_protected'
5123 instead of 'regcache_read_pc'.
5124 (keep_going_pass_signal): Ditto.
5125
a89febbd
TT
51262020-05-13 Tom Tromey <tromey@adacore.com>
5127
5128 * ada-lang.c (align_value): Remove.
5129 (ada_template_to_fixed_record_type_1): Use align_up.
5130
f7e23710
TBA
51312020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5132
5133 * async-event.c: Update the copyright year.
5134 * async-event.h: Update the copyright year.
5135
02ff80c2
SM
51362020-05-12 Simon Marchi <simon.marchi@efficios.com>
5137
5138 * objfiles.h (is_addr_in_objfile,
5139 shared_objfile_contains_address_p): Return bool.
5140 * objfile.c (is_addr_in_objfile,
5141 shared_objfile_contains_address_p): Return bool.
5142
4fd6c7e8
TT
51432020-05-11 Tom Tromey <tromey@adacore.com>
5144
5145 * cli/cli-cmds.c (info_command): Restore.
5146 (_initialize_cli_cmds): Use add_prefix_command for "info".
5147 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
5148
5eb68a39
TT
51492020-05-11 Tom Tromey <tromey@adacore.com>
5150
5151 * ada-lang.c (ada_value_primitive_field): Now public.
5152 * ada-lang.h (ada_value_primitive_field): Declare.
5153 * ada-valprint.c (print_field_values): Use
5154 ada_value_primitive_field for wrapper fields.
5155
7666722f
TV
51562020-05-11 Tom de Vries <tdevries@suse.de>
5157
5158 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
5159 MODULE_DOMAIN.
5160
3ee6bb11
TV
51612020-05-11 Tom de Vries <tdevries@suse.de>
5162
5163 PR symtab/25941
5164 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
5165 with length 0, if not gdb-produced.
5166 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
5167
43434996
TV
51682020-05-09 Tom de Vries <tdevries@suse.de>
5169
5170 PR gdb/25955
5171 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
5172 calculation.
5173
2f78cffc
TT
51742020-05-09 Tom Tromey <tom@tromey.com>
5175
5176 * top.c (server_command): Now bool.
5177 * top.h (server_command): Now bool.
5178
4f7bc5ed
TT
51792020-05-08 Tom Tromey <tromey@adacore.com>
5180
5181 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
5182 already being processed.
5183
8be4b118
TT
51842020-05-08 Tom Tromey <tom@tromey.com>
5185
5186 * printcmd.c (struct display) <next>: Remove.
5187 <display>: New constructor.
5188 <exp_string>: Now a std::string.
5189 <enabled_p>: Now a bool.
5190 (display_number): Move definition earlier.
5191 (displays): Rename from display_chain. Now a std::vector.
5192 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
5193 (display_command): Update.
5194 (do_one_display, disable_display)
5195 (enable_disable_display_command, do_enable_disable_display):
5196 Update.
5197 (free_display): Remove.
5198 (clear_displays): Rewrite.
5199 (delete_display): Update.
5200 (map_display_numbers): Use function_view. Remove "data"
5201 parameter. Update.
5202 (do_delete_display): Remove.
5203 (undisplay_command): Update.
5204 (do_one_display, do_displays, disable_display)
5205 (info_display_command): Update.
5206 (do_enable_disable_display): Remove.
5207 (enable_disable_display_command)
5208 (clear_dangling_display_expressions): Update.
5209
94c93c35
TT
52102020-05-08 Tom Tromey <tom@tromey.com>
5211
5212 * symtab.c (set_symbol_cache_size)
5213 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
5214 (maintenance_print_symbol_cache_statistics): Update.
5215 * symmisc.c (print_symbol_bcache_statistics)
5216 (print_objfile_statistics, maintenance_print_objfiles)
5217 (maintenance_info_symtabs, maintenance_check_symtabs)
5218 (maintenance_expand_symtabs, maintenance_info_line_tables):
5219 Update.
5220 * symfile-debug.c (set_debug_symfile): Update.
5221 * source.c (forget_cached_source_info): Update.
5222 * python/python.c (gdbpy_progspaces): Update.
5223 * psymtab.c (maintenance_info_psymtabs): Update.
5224 * probe.c (parse_probes): Update.
5225 * linespec.c (iterate_over_all_matching_symtabs)
5226 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
5227 * guile/scm-progspace.c (gdbscm_progspaces): Update.
5228 * exec.c (exec_target::close): Update.
5229 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
5230 * breakpoint.c (print_one_breakpoint_location)
5231 (create_longjmp_master_breakpoint)
5232 (create_std_terminate_master_breakpoint): Update.
5233 * progspace.c (program_spaces): Now a std::vector.
5234 (maybe_new_address_space): Update.
5235 (add_program_space): Remove.
5236 (program_space::program_space): Update.
5237 (remove_program_space): Update.
5238 (number_of_program_spaces): Remove.
5239 (print_program_space, update_address_spaces): Update.
5240 * progspace.h (program_spaces): Change type.
5241 (ALL_PSPACES): Remove.
5242 (number_of_program_spaces): Don't declare.
5243 (struct program_space) <next>: Remove.
5244
a1fd1ac9
TT
52452020-05-08 Tom Tromey <tom@tromey.com>
5246
5247 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
5248 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
5249 (enable_break): Update.
5250 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
5251 (frv_fdpic_find_canonical_descriptor): Update.
5252 (frv_fetch_objfile_link_map): Update.
5253 * progspace.c (program_space::free_all_objfiles): Update.
5254 (program_space::solibs): New method.
5255 * progspace.h (struct program_space) <solibs>: New method.
5256 * solist.h (master_so_list): Don't declare.
5257 (ALL_SO_LIBS): Remove.
5258 * solib.h (so_list_head): Remove.
5259 (update_solib_list): Update comment.
5260 * solib.c (master_so_list): Remove.
5261 (solib_used, update_solib_list, solib_add)
5262 (info_sharedlibrary_command, clear_solib)
5263 (reload_shared_libraries_1, remove_user_added_objfile): Update.
5264
38eae084
TT
52652020-05-08 Tom Tromey <tom@tromey.com>
5266
5267 * extension.c (extension_languages): Now a std::array.
5268 (ALL_EXTENSION_LANGUAGES): Remove.
5269 (get_ext_lang_defn, get_ext_lang_of_file)
5270 (eval_ext_lang_from_control_command): Update.
5271 (finish_ext_lang_initialization)
5272 (auto_load_ext_lang_scripts_for_objfile)
5273 (ext_lang_type_printers::ext_lang_type_printers)
5274 (apply_ext_lang_type_printers)
5275 (ext_lang_type_printers::~ext_lang_type_printers)
5276 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
5277 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
5278 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
5279 (get_matching_xmethod_workers, ext_lang_colorize)
5280 (ext_lang_before_prompt): Update.
5281 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
5282
596dc4ad
TT
52832020-05-08 Tom Tromey <tom@tromey.com>
5284
5285 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
5286 overload.
5287 <swap_string, m_string>: Remove.
5288 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
5289 Update.
5290 * stabsread.c (define_symbol, read_type): Update.
5291 * linespec.c (find_linespec_symbols): Update.
5292 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
5293 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
5294 * dbxread.c (read_dbx_symtab): Update.
5295 * cp-support.h (cp_canonicalize_string_full)
5296 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
5297 Return unique_xmalloc_ptr.
5298 * cp-support.c (inspect_type): Update.
5299 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
5300 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
5301 Likewise.
5302 * c-typeprint.c (print_name_maybe_canonical): Update.
5303 * break-catch-throw.c (check_status_exception_catchpoint):
5304 Update.
5305
bf4cb9be
TV
53062020-05-08 Tom de Vries <tdevries@suse.de>
5307
5308 * infrun.c (follow_fork): Copy current_line and current_symtab to
5309 child thread.
5310
a1b68f28
SM
53112020-05-07 Simon Marchi <simon.marchi@efficios.com>
5312
5313 * async-event.c (struct async_signal_handler, struct
5314 async_event_handler): Reformat, remove typedef.
5315
98d48915
SM
53162020-05-07 Simon Marchi <simon.marchi@efficios.com>
5317
5318 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
5319 access thistype->main_type->dyn_prop_list directly.
5320
7aa91313
SM
53212020-05-07 Simon Marchi <simon.marchi@efficios.com>
5322
5323 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
5324 (remove_dyn_prop): Remove. Update all users to use
5325 type::remove_dyn_prop.
5326 * gdbtypes.c (remove_dyn_prop): Rename to...
5327 (type::remove_dyn_prop): ... this.
5328
5c54719c
SM
53292020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
5330
5331 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
5332 (add_dyn_prop): Remove. Update all users to use
5333 type::add_dyn_prop.
5334 * gdbtypes.c (add_dyn_prop): Rename to...
5335 (type::add_dyn_prop): ... this.
5336
24e99c6c
SM
53372020-05-07 Simon Marchi <simon.marchi@efficios.com>
5338
5339 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
5340 (get_dyn_prop): Remove. Update all users to use
5341 type::dyn_prop.
5342 * gdbtypes.c (get_dyn_prop): Rename to...
5343 (type::dyn_prop): ... this.
5344
0d4bf016
SM
53452020-05-06 Simon Marchi <simon.marchi@efficios.com>
5346
5347 * gdbtypes.h (struct main_type) <flag_static>: Remove.
5348
ac4a4f1c
SM
53492020-05-06 Simon Marchi <simon.marchi@efficios.com>
5350
5351 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
5352 instruction, skip it if it's there.
5353
a3bbacc1
SM
53542020-05-05 Simon Marchi <simon.marchi@efficios.com>
5355
5356 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
5357
c3236f84
SM
53582020-05-04 Simon Marchi <simon.marchi@efficios.com>
5359
5360 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
5361 * gdbtypes.c (recursive_dump_type): Remove use of
5362 TYPE_INCOMPLETE.
5363
3b6acaee
TT
53642020-05-03 Tom Tromey <tom@tromey.com>
5365
5366 * breakpoint.c (catch_command, tcatch_command): Remove.
5367 (_initialize_breakpoint): Use add_basic_prefix_cmd,
5368 add_show_prefix_cmd.
5369 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
5370 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
5371 Remove.
5372 (add_internal_problem_command): Use add_basic_prefix_cmd,
5373 add_show_prefix_cmd.
5374 * mips-tdep.c (set_mipsfpu_command): Remove.
5375 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
5376 * dwarf2/index-cache.c (set_index_cache_command): Remove.
5377 (_initialize_index_cache): Use add_basic_prefix_cmd.
5378 * memattr.c (dummy_cmd): Remove.
5379 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
5380 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
5381 (_initialize_tui_win): Use add_basic_prefix_cmd,
5382 add_show_prefix_cmd.
5383 * cli/cli-logging.c (set_logging_command): Remove.
5384 (_initialize_cli_logging): Use add_basic_prefix_cmd,
5385 add_show_prefix_cmd.
5386 (show_logging_command): Remove.
5387 * target.c (target_command): Remove.
5388 (add_target): Use add_basic_prefix_cmd.
5389
a51119cd
HD
53902020-05-02 Hannes Domani <ssbssa@yahoo.de>
5391
5392 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
5393
652fc23a 53942020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 5395
652fc23a
PW
5396 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
5397 info_command.
5398
117539e6
KR
53992020-04-30 Kamil Rytarowski <n54@gmx.com>
5400
5401 * nbsd-nat.c (nbsd_enable_proc_events)
5402 (nbsd_nat_target::post_startup_inferior): Add.
5403 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
5404 (nbsd_nat_target::update_thread_list): Rewrite.
5405 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
5406 "PTRACE_LWP_CREATE".
5407 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
5408
102e38eb 54092020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 5410
102e38eb
PW
5411 * stack.c (_initialize_stack): Remove duplicated creation
5412 of "frame" command and "f" alias.
5413
ee9d1e5f
HD
54142020-04-30 Hannes Domani <ssbssa@yahoo.de>
5415
5416 PR gdb/18706
5417 * gdbtypes.c (check_typedef): Calculate size of array of
5418 stubbed type.
5419
627c7fb8
HD
54202020-04-30 Hannes Domani <ssbssa@yahoo.de>
5421
5422 PR gdb/15559
5423 * i386-tdep.c (i386_push_dummy_call): Call
5424 i386_thiscall_push_dummy_call.
5425 (i386_thiscall_push_dummy_call): New function.
5426 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
5427 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
5428 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
5429
ffc2844e
SM
54302020-04-29 Simon Marchi <simon.marchi@efficios.com>
5431
5432 * gdbarch.sh (do_read): Add shellcheck disable directive for
5433 warning SC2162.
5434
1207375d
SM
54352020-04-29 Simon Marchi <simon.marchi@efficios.com>
5436
5437 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
5438 "referenced but not assigned" warning.
5439
9fdb2916
SM
54402020-04-29 Simon Marchi <simon.marchi@efficios.com>
5441
5442 * gdbarch.sh: Remove code that sets fallbackdefault.
5443
759cea5e
SM
54442020-04-29 Simon Marchi <simon.marchi@efficios.com>
5445
5446 * gdbarch.sh: Use shell operators && and || instead of
5447 -a and -o.
5448
cb02ab24
SM
54492020-04-29 Simon Marchi <simon.marchi@efficios.com>
5450
5451 * gdbarch.sh: Use $(...) instead of `...`.
5452
a6fc5ffc
SM
54532020-04-29 Simon Marchi <simon.marchi@efficios.com>
5454
5455 * gdbarch.sh: Use double quotes around variables.
5456
8d113d13
SM
54572020-04-29 Simon Marchi <simon.marchi@efficios.com>
5458
5459 * gdbarch.sh: Use %s with printf, instead of variables in the
5460 format string.
5461
ed6acedd
TT
54622020-04-29 Tom Tromey <tromey@adacore.com>
5463
5464 PR ada/25875:
5465 * dwarf2/read.c (update_enumeration_type_from_children): Compute
5466 type fields here.
5467 (read_enumeration_type): Call
5468 update_enumeration_type_from_children later. Update comments.
5469 (process_enumeration_scope): Don't create type fields.
5470
b68b1b58
KR
54712020-04-29 Kamil Rytarowski <n54@gmx.com>
5472
5473 * nbsd-tdep.c: Include "xml-syscall.h".
5474 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
5475
f94b2e03
KR
54762020-04-29 Kamil Rytarowski <n54@gmx.com>
5477
5478 * nbsd-nat.c: Include "sys/wait.h".
5479 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
5480 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
5481 (nbsd_nat_target::remove_exec_catchpoint)
5482 (nbsd_nat_target::set_syscall_catchpoint): Add.
5483 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
5484 (nbsd_nat_target::insert_exec_catchpoint)
5485 (nbsd_nat_target::remove_exec_catchpoint)
5486 (nbsd_nat_target::set_syscall_catchpoint): Add.
5487 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
5488 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
5489 `nbsd_get_syscall_number'.
5490
fc49bc72
TT
54912020-04-29 Tom Tromey <tom@tromey.com>
5492
5493 * stack.c (print_block_frame_labels): Remove.
5494
d642b692
HD
54952020-04-29 Hannes Domani <ssbssa@yahoo.de>
5496
5497 PR gdb/17320
5498 * ada-valprint.c (val_print_packed_array_elements): Move array
5499 end bracket to new line.
5500 (ada_val_print_string): Remove extra spaces before first array
5501 element.
5502 * c-valprint.c (c_value_print_array): Likewise.
5503 * m2-valprint.c (m2_print_array_contents): Likewise.
5504 (m2_value_print_inner): Likewise.
5505 * p-valprint.c (pascal_value_print_inner): Likewise.
5506 * valprint.c (generic_val_print_array): Likewise.
5507 (value_print_array_elements): Move first array element and array
5508 end bracket to new line.
5509
ea90f227
TV
55102020-04-29 Tom de Vries <tdevries@suse.de>
5511
5512 PR symtab/25889
5513 * linespec.c (find_method): Fix ix calculation.
5514
4498ef4f
KR
55152020-04-28 Kamil Rytarowski <n54@gmx.com>
5516
5517 * syscalls/update-netbsd.sh: New file.
5518 * syscalls/netbsd.xml: Regenerate.
5519 * data-directory/Makefile.in: Register `netbsd.xml' in
5520 `SYSCALLS_FILES'.
5521
a55e30b5
SM
55222020-04-28 Simon Marchi <simon.marchi@efficios.com>
5523
5524 * syscalls/update-freebsd.sh: Add double quotes.
5525
2b2fbab8
TT
55262020-04-28 Tom Tromey <tom@tromey.com>
5527
5528 * NEWS: Update.
5529 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
5530 (cmdpy_init): Allow class_tui.
5531
a65189c9
TV
55322020-04-28 Mark Williams <mark@myosotissp.com>
5533
5534 PR gdb/24480
5535 * dwarf2read.c: Add missing assingments to list_in_scope when
5536 start_symtab was already called.
5537
1b95cdb7
SM
55382020-04-28 Simon Marchi <simon.marchi@efficios.com>
5539
5540 PR gdb/25881
5541 * dwarf2/read.c (offset_map_type): Use
5542 gdb:hash_enum<sect_offset> as hash function.
5543
15cd93d0
TV
55442020-04-28 Tom de Vries <tdevries@suse.de>
5545
5546 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
5547 with DW_AT_signature.
5548
1eb39914
SM
55492020-04-27 Simon Marchi <simon.marchi@efficios.com>
5550
5551 * configure.ac: Remove check for fs_base/gs_base in
5552 user_regs_struct.
5553 * configure: Re-generate.
5554 * config.in: Re-generate.
5555 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
5556 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
5557 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
5558
991a3e2e
LM
55592020-04-27 Luis Machado <luis.machado@linaro.org>
5560
5561 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
5562 problematic inline frame unwinding situation.
5563 * frame.c (frame_id_computed_p): New function.
5564 * frame.h (frame_id_computed_p): New prototype.
5565
361ba0e8
TT
55662020-04-26 Tom Tromey <tom@tromey.com>
5567
5568 * command.h (enum command_class) <class_pseudo>: Remove.
5569
bc3609fd
PW
55702020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5571
5572 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
5573 and whitespace.
5574
b9771db7
KR
55752020-04-25 Kamil Rytarowski <n54@gmx.com>
5576
ec16513e
SM
5577 * inf-ptrace.c (inf_ptrace_target::wait): Remove
5578 `PT_GET_PROCESS_STATE' block.
b9771db7 5579
7151c1af
TT
55802020-04-24 Tom Tromey <tom@tromey.com>
5581
5582 * symtab.h (symbol_get_demangled_name): Don't declare.
5583 * symtab.c (symbol_get_demangled_name): Remove.
5584 (general_symbol_info::natural_name)
5585 (general_symbol_info::demangled_name): Update.
5586
906bb4c5
TT
55872020-04-24 Tom Tromey <tom@tromey.com>
5588
5589 PR rust/25025:
5590 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
5591
bcfe6157
TT
55922020-04-24 Tom Tromey <tom@tromey.com>
5593
5594 PR symtab/12707:
5595 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
5596 exists.
5597 (new_symbol): Likewise.
5598 * compile/compile-object-load.c (get_out_value_type): Use
5599 symbol_matches_search_name.
5600
f049a313
TT
56012020-04-24 Tom Tromey <tom@tromey.com>
5602
5603 * dwarf2/read.c (add_partial_symbol): Do not call
5604 compute_and_set_names.
5605
76e288d1
TT
56062020-04-24 Tom Tromey <tom@tromey.com>
5607
5608 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
5609 overload.
5610
2467f4f6
TT
56112020-04-24 Tom Tromey <tom@tromey.com>
5612
5613 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
5614 (add_psymbol_to_list): New overload. Make old overload call new
5615 one.
5616 * psympriv.h (add_psymbol_to_list): New overload.
5617
e61108c9
TT
56182020-04-24 Tom Tromey <tom@tromey.com>
5619
5620 * dwarf2/read.c (partial_die_info::read) <case
5621 DW_AT_linkage_name>: Use value_as_string.
5622 (dwarf2_string_attr): Use value_as_string.
5623 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
5624 method.
5625 * dwarf2/attribute.c (attribute::value_as_string): New method.
5626
8c87a452
TT
56272020-04-24 Tom Tromey <tom@tromey.com>
5628
5629 * symtab.c (general_symbol_info::natural_name)
5630 (general_symbol_info::demangled_name): Check for language_rust.
5631
787de330
TT
56322020-04-24 Tom Tromey <tom@tromey.com>
5633
5634 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
5635 (dwarf2_physname): ... from here.
5636 (partial_die_info::read): Add Rust "{" hack.
5637
ff985671
TT
56382020-04-24 Tom Tromey <tom@tromey.com>
5639
5640 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
5641 method.
5642 (symbol_set_demangled_name): Don't declare.
5643 * symtab.c (general_symbol_info::set_demangled_name): Rename from
5644 symbol_set_demangled_name.
5645 (general_symbol_info::set_language)
5646 (general_symbol_info::compute_and_set_names): Update.
5647 * minsyms.c (minimal_symbol_reader::install): Update.
5648 * dwarf2/read.c (new_symbol): Update.
5649
1acda803
TT
56502020-04-24 Tom Tromey <tromey@adacore.com>
5651
5652 PR python/23662:
5653 * python/py-type.c (convert_field): Handle
5654 FIELD_LOC_KIND_DWARF_BLOCK.
5655 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
5656 (typy_get_dynamic): Nw function.
5657 (type_object_getset): Add "dynamic".
5658 * NEWS: Add entry.
5659
d656f129
TT
56602020-04-24 Tom Tromey <tromey@adacore.com>
5661
5662 * ada-typeprint.c (print_choices, print_variant_part)
5663 (print_record_field_types_dynamic): New functions.
5664 (print_record_field_types): Use print_record_field_types_dynamic.
5665
7d79de9a
TT
56662020-04-24 Tom Tromey <tromey@adacore.com>
5667
5668 * dwarf2/read.c (handle_data_member_location): New overload.
5669 (dwarf2_add_field): Use it.
5670 (decode_locdesc): Add "computed" parameter. Update comment.
5671 * gdbtypes.c (is_dynamic_type_internal): Also look for
5672 FIELD_LOC_KIND_DWARF_BLOCK.
5673 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
5674 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
5675 virtual base classes.
5676 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
5677 FIELD_LOC_KIND_DWARF_BLOCK.
5678
f8e89861
TT
56792020-04-24 Tom Tromey <tromey@adacore.com>
5680
5681 * dwarf2/read.c (read_structure_type): Handle dynamic length.
5682 * gdbtypes.c (is_dynamic_type_internal): Check
5683 TYPE_HAS_DYNAMIC_LENGTH.
5684 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
5685 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
5686 New macros.
5687 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
5688 constant.
5689
9c6a1327
TT
56902020-04-24 Tom Tromey <tromey@adacore.com>
5691
5692 * dwarf2/read.c (struct variant_field): Rewrite.
5693 (struct variant_part_builder): New.
5694 (struct nextfield): Remove "variant" field. Add "offset".
5695 (struct field_info): Add "current_variant_part" and
5696 "variant_parts".
5697 (alloc_discriminant_info): Remove.
5698 (alloc_rust_variant): New function.
5699 (quirk_rust_enum): Update.
5700 (dwarf2_add_field): Set "offset" member. Don't handle
5701 DW_TAG_variant_part.
5702 (offset_map_type): New typedef.
5703 (convert_variant_range, create_one_variant)
5704 (create_one_variant_part, create_variant_parts)
5705 (add_variant_property): New functions.
5706 (dwarf2_attach_fields_to_type): Call add_variant_property.
5707 (read_structure_type): Don't handle DW_TAG_variant_part.
5708 (handle_variant_part, handle_variant): New functions.
5709 (handle_struct_member_die): Use them.
5710 (process_structure_scope): Don't handle variant parts.
5711 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
5712 (struct discriminant_info): Remove.
5713 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
5714 (struct main_type) <flag_discriminated_union>: Remove.
5715 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
5716 (rust_enum_variant): Return int. Remove "contents". Rewrite.
5717 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
5718 Update.
5719 * valops.c (value_union_variant): Remove.
5720 * value.h (value_union_variant): Don't declare.
5721
b249d2c2
TT
57222020-04-24 Tom Tromey <tromey@adacore.com>
5723
5724 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
5725 (ada_value_primitive_packed_val): Update.
5726 * ada-valprint.c (ada_value_print_1): Update.
5727 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
5728 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
5729 just an address. Use evaluate_for_locexpr_baton.
5730 (dwarf2_evaluate_property): Update.
5731 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
5732 array_view.
5733 * findvar.c (default_read_var_value): Update.
5734 * gdbtypes.c (compute_variant_fields_inner)
5735 (resolve_dynamic_type_internal): Update.
5736 (resolve_dynamic_type): Change type of valaddr parameter.
5737 * gdbtypes.h (resolve_dynamic_type): Update.
5738 * valarith.c (value_subscripted_rvalue): Update.
5739 * value.c (value_from_contents_and_address): Update.
5740
61122aa9
TT
57412020-04-24 Tom Tromey <tromey@adacore.com>
5742
5743 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
5744 "push_initial_value" parameter.
5745 (dwarf2_evaluate_property): Likewise.
5746 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
5747
ef83a141
TT
57482020-04-24 Tom Tromey <tromey@adacore.com>
5749
5750 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
5751 (variant::matches, compute_variant_fields_recurse)
5752 (compute_variant_fields_inner, compute_variant_fields): New
5753 functions.
5754 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
5755 Use resolved_type after type is made.
5756 (operator==): Add new cases.
5757 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
5758 (struct discriminant_range, struct variant, struct variant_part):
5759 New.
5760 (union dynamic_prop_data) <variant_parts, original_type>: New
5761 members.
5762 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
5763 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
5764 constants.
5765 * value.c (unpack_bits_as_long): Now public.
5766 * value.h (unpack_bits_as_long): Declare.
5767
675127ec
TT
57682020-04-24 Tom Tromey <tromey@adacore.com>
5769
5770 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
5771 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
5772
9852ceef
HD
57732020-04-24 Hannes Domani <ssbssa@yahoo.de>
5774
5775 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
5776
7632c6ce
KR
57772020-04-24 Kamil Rytarowski <n54@gmx.com>
5778
5779 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
5780 (remove_fork_catchpoint, post_startup_inferior)
5781 (post_attach): Move...
5782 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
5783 (remove_fork_catchpoint, post_startup_inferior)
5784 (post_attach): ...here.
5785 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
5786 (remove_fork_catchpoint, post_startup_inferior)
5787 (post_attach): Move...
5788 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
5789 (remove_fork_catchpoint, post_startup_inferior)
5790 (post_attach): ...here.
5791
7be2bb4f
TT
57922020-04-24 Tom Tromey <tromey@adacore.com>
5793
5794 * nat/windows-nat.h (struct windows_thread_info)
5795 <pc_adjusted>: New member.
5796 * windows-nat.c (windows_fetch_one_register): Check
5797 pc_adjusted.
5798 (windows_nat_target::get_windows_debug_event)
5799 (windows_nat_target::wait): Set pc_adjusted.
5800
f80cb3b4
TV
58012020-04-24 Tom de Vries <tdevries@suse.de>
5802
5803 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
5804 Run gdb-add-index inside temp dir.
5805
29514b87
TT
58062020-04-23 Tom Tromey <tromey@adacore.com>
5807
5808 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
5809 in loop.
5810
5939967b
LM
58112020-04-23 Luis Machado <luis.machado@linaro.org>
5812
5813 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
5814 get_frame_register instead of gdbarch_unwind_pc.
5815
70bc38f5
TV
58162020-04-23 Tom de Vries <tdevries@suse.de>
5817
5818 * symtab.c (lookup_global_symbol): Prefer def over decl.
5819
de82891c
TV
58202020-04-23 Tom de Vries <tdevries@suse.de>
5821
5822 PR symtab/25807
5823 * block.c (best_symbol, better_symbol): Promote to external.
5824 * block.h (best_symbol, better_symbol): Declare.
5825 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
5826 decl.
5827
ecc6c606
TT
58282020-04-23 Tom Tromey <tromey@adacore.com>
5829
5830 PR ada/25837:
5831 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
5832 "const char *", not a "const std::string &".
5833 <name_and_matcher::operator==>: Update.
5834 * unittests/lookup_name_info-selftests.c: Change type of
5835 "result".
5836
740480b8
TT
58372020-04-23 Tom Tromey <tom@tromey.com>
5838
5839 * inferior.h (iterate_over_inferiors): Don't declare.
5840 * inferior.c (iterate_over_inferiors): Remove.
5841 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
5842 Remove.
5843 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
5844 use iterate_over_inferiors.
5845 (darwin_resume_inferior_it)
5846 (struct resume_inferior_threads_param)
5847 (darwin_resume_inferior_threads_it): Remove.
5848 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
5849
ae3ab1f0
TV
58502020-04-23 Tom de Vries <tdevries@suse.de>
5851
5852 * blockframe.c (find_pc_partial_function): Use
5853 find_pc_sect_compunit_symtab rather than
5854 objfile->sf->qf->find_pc_sect_compunit_symtab.
5855
317d2668
TV
58562020-04-22 Tom de Vries <tdevries@suse.de>
5857
5858 PR symtab/25764
5859 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
5860 in psymtabs.
5861
eea9e357
TV
58622020-04-22 Tom de Vries <tdevries@suse.de>
5863
5864 PR symtab/25801
5865 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
5866 symtabs.
5867
3d5afab3
TV
58682020-04-22 Tom de Vries <tdevries@suse.de>
5869
5870 PR symtab/25700
5871 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
5872 CU if already created.
5873
d43b7a2d
TBA
58742020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5875
5876 * infrun.c (displaced_step_fixup): Switch to the event_thread
5877 before calling displaced_step_restore, not after.
5878
d89edf9b
MM
58792020-04-21 Markus Metzger <markus.t.metzger@intel.com>
5880
5881 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
5882 its inferior is not recorded by us.
5883 (record_btrace_target_open): Replace call to
5884 all_non_exited_threads () with call to current_inferior
5885 ()->non_exited_threads ().
5886 (record_btrace_target::stop_recording): Likewise.
5887 (record_btrace_target::close): Likewise.
5888 (record_btrace_target::wait): Likewise.
5889 (record_btrace_target::record_stop_replaying): Likewise.
5890
5897fd49
MM
58912020-04-21 Markus Metzger <markus.t.metzger@intel.com>
5892
5893 * btrace.c (btrace_enable): Throw an error on double enables and
5894 when enabling recording fails.
5895 (btrace_disable): Throw an error if the thread is not recorded.
5896
1a476b6d
MM
58972020-04-21 Markus Metzger <markus.t.metzger@intel.com>
5898
5899 * record-btrace.c (record_btrace_target::fetch_registers): Forward
5900 request if we do not have a thread_info.
5901
4778a5f8
TV
59022020-04-21 Tom de Vries <tdevries@suse.de>
5903
5904 PR gdb/25471
5905 * thread.c
5906 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
5907 exception in get_frame_id.
5908
0fa7617d
TT
59092020-04-20 Tom Tromey <tromey@adacore.com>
5910
5911 * python/python.c (struct gdbpy_event): Mark move constructor as
5912 noexcept.
5913 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
5914 constructor as noexcept.
5915 * completer.h (struct completion_result): Mark move constructor as
5916 noexcept.
5917 * completer.c (completion_result::completion_result): Use
5918 initialization style. Don't call reset_match_list.
5919
ad23bda0
MS
59202020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
5921
5922 * MAINTAINERS (Write After Approval): Add myself.
5923
45e1f031
TT
59242020-04-18 Tom Tromey <tom@tromey.com>
5925
5926 * windows-tdep.c (init_w32_command_list)
5927 (w32_prefix_command_valid): Restore.
5928 (_initialize_windows_tdep): Call init_w32_command_list.
5929
08feed99
TT
59302020-04-18 Tom Tromey <tom@tromey.com>
5931
5932 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
5933 * value.c (value_fn_field): Update.
5934 * valops.c (find_function_in_inferior)
5935 (value_allocate_space_in_inferior): Update.
5936 * tui/tui-winsource.c (tui_update_source_windows_with_line):
5937 Update.
5938 * tui/tui-source.c (tui_source_window::set_contents): Update.
5939 * symtab.c (lookup_global_or_static_symbol)
5940 (find_function_start_sal_1, skip_prologue_sal)
5941 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
5942 * symmisc.c (dump_msymbols, dump_symtab_1)
5943 (maintenance_print_one_line_table): Update.
5944 * symfile.c (init_entry_point_info, section_is_mapped)
5945 (list_overlays_command, simple_read_overlay_table)
5946 (simple_overlay_update_1): Update.
5947 * stap-probe.c (handle_stap_probe): Update.
5948 * stabsread.c (dbx_init_float_type, define_symbol)
5949 (read_one_struct_field, read_enum_type, read_range_type): Update.
5950 * source.c (info_line_command): Update.
5951 * python/python.c (gdbpy_source_objfile_script)
5952 (gdbpy_execute_objfile_script): Update.
5953 * python/py-type.c (save_objfile_types): Update.
5954 * python/py-objfile.c (py_free_objfile): Update.
5955 * python/py-inferior.c (python_new_objfile): Update.
5956 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
5957 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
5958 (maintenance_check_psymtabs): Update.
5959 * printcmd.c (info_address_command): Update.
5960 * objfiles.h (struct objfile) <arch>: New method, from
5961 get_objfile_arch.
5962 (get_objfile_arch): Don't declare.
5963 * objfiles.c (get_objfile_arch): Remove.
5964 (filter_overlapping_sections): Update.
5965 * minsyms.c (msymbol_is_function): Update.
5966 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
5967 (output_nondebug_symbol): Update.
5968 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
5969 (mdebug_expand_psymtab): Update.
5970 * machoread.c (macho_add_oso_symfile): Update.
5971 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
5972 Update.
5973 * linux-fork.c (checkpoint_command): Update.
5974 * linespec.c (convert_linespec_to_sals): Update.
5975 * jit.c (finalize_symtab): Update.
5976 * infrun.c (insert_exception_resume_from_probe): Update.
5977 * ia64-tdep.c (ia64_find_unwind_table): Update.
5978 * hppa-tdep.c (internalize_unwinds): Update.
5979 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
5980 Update.
5981 * gcore.c (call_target_sbrk): Update.
5982 * elfread.c (record_minimal_symbol, elf_symtab_read)
5983 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
5984 (elf_gnu_ifunc_resolve_by_got): Update.
5985 * dwarf2/read.c (create_addrmap_from_index)
5986 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
5987 (read_debug_names_from_section)
5988 (process_psymtab_comp_unit_reader, add_partial_symbol)
5989 (add_partial_subprogram, process_full_comp_unit)
5990 (read_file_scope, read_func_scope, read_lexical_block_scope)
5991 (read_call_site_scope, dwarf2_ranges_read)
5992 (dwarf2_record_block_ranges, dwarf2_add_field)
5993 (mark_common_block_symbol_computed, read_tag_pointer_type)
5994 (read_tag_string_type, dwarf2_init_float_type)
5995 (dwarf2_init_complex_target_type, read_base_type)
5996 (partial_die_info::read, partial_die_info::read)
5997 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
5998 (dwarf2_fetch_die_loc_sect_off): Update.
5999 * dwarf2/loc.c (dwarf2_find_location_expression)
6000 (class dwarf_evaluate_loc_desc, rw_pieced_value)
6001 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
6002 (dwarf2_loc_desc_get_symbol_read_needs)
6003 (locexpr_describe_location_piece, locexpr_describe_location_1)
6004 (loclist_describe_location): Update.
6005 * dwarf2/index-write.c (write_debug_names): Update.
6006 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
6007 * dtrace-probe.c (dtrace_process_dof): Update.
6008 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
6009 (process_one_symbol): Update.
6010 * ctfread.c (ctf_init_float_type, read_base_type): Update.
6011 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
6012 (coff_read_enum_type): Update.
6013 * cli/cli-cmds.c (edit_command, list_command): Update.
6014 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
6015 * breakpoint.c (create_overlay_event_breakpoint)
6016 (create_longjmp_master_breakpoint)
6017 (create_std_terminate_master_breakpoint)
6018 (create_exception_master_breakpoint, get_sal_arch): Update.
6019 * block.c (block_gdbarch): Update.
6020 * annotate.c (annotate_source_line): Update.
6021
0743fc83
TT
60222020-04-17 Tom Tromey <tromey@adacore.com>
6023
6024 * auto-load.c (show_auto_load_cmd): Remove.
6025 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
6026 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
6027 (maintenance_print_arc_command): Remove.
6028 * tui/tui-win.c (tui_command): Remove.
6029 (tui_get_cmd_list): Use add_basic_prefix_cmd.
6030 * tui/tui-layout.c (tui_layout_command): Remove.
6031 (_initialize_tui_layout): Use add_basic_prefix_cmd.
6032 * python/python.c (user_set_python, user_show_python): Remove.
6033 (_initialize_python): Use add_basic_prefix_cmd,
6034 add_show_prefix_cmd.
6035 * guile/guile.c (set_guile_command, show_guile_command): Remove.
6036 (install_gdb_commands): Use add_basic_prefix_cmd,
6037 add_show_prefix_cmd.
6038 (info_guile_command): Remove.
6039 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
6040 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
6041 add_show_prefix_cmd.
6042 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
6043 Remove do_set and do_show parameters.
6044 * cli/cli-style.c (set_style, show_style): Remove.
6045 (_initialize_cli_style): Use add_basic_prefix_cmd,
6046 add_show_prefix_cmd.
6047 (cli_style_option::add_setshow_commands): Remove do_set and
6048 do_show parameters.
6049 (cli_style_option::add_setshow_commands): Use
6050 add_basic_prefix_cmd, add_show_prefix_cmd.
6051 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
6052 (set_style_name): Remove.
6053 * cli/cli-dump.c (dump_command, append_command): Remove.
6054 (srec_dump_command, ihex_dump_command, verilog_dump_command)
6055 (tekhex_dump_command, binary_dump_command)
6056 (binary_append_command): Remove.
6057 (_initialize_cli_dump): Use add_basic_prefix_cmd.
6058 * windows-tdep.c (w32_prefix_command_valid): Remove global.
6059 (init_w32_command_list): Remove; move into ...
6060 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
6061 * valprint.c (set_print, show_print, set_print_raw)
6062 (show_print_raw): Remove.
6063 (_initialize_valprint): Use add_basic_prefix_cmd,
6064 add_show_prefix_cmd.
6065 * typeprint.c (set_print_type, show_print_type): Remove.
6066 (_initialize_typeprint): Use add_basic_prefix_cmd,
6067 add_show_prefix_cmd.
6068 * record.c (set_record_command, show_record_command): Remove.
6069 (_initialize_record): Use add_basic_prefix_cmd,
6070 add_show_prefix_cmd.
6071 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
6072 add_show_prefix_cmd.
6073 (info_command, show_command, set_debug, show_debug): Remove.
6074 * top.h (set_history, show_history): Don't declare.
6075 * top.c (set_history, show_history): Remove.
6076 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
6077 (unset_tdesc_cmd): Remove.
6078 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
6079 add_show_prefix_cmd.
6080 * symtab.c (info_module_command): Remove.
6081 (_initialize_symtab): Use add_basic_prefix_cmd.
6082 * symfile.c (overlay_command): Remove.
6083 (_initialize_symfile): Use add_basic_prefix_cmd.
6084 * sparc64-tdep.c (info_adi_command): Remove.
6085 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
6086 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
6087 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
6088 add_show_prefix_cmd.
6089 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
6090 (_initialize_serial): Use add_basic_prefix_cmd,
6091 add_show_prefix_cmd.
6092 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
6093 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
6094 add_show_prefix_cmd.
6095 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
6096 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
6097 add_show_prefix_cmd.
6098 * riscv-tdep.c (show_riscv_command, set_riscv_command)
6099 (show_debug_riscv_command, set_debug_riscv_command): Remove.
6100 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
6101 add_show_prefix_cmd.
6102 * remote.c (remote_command, set_remote_cmd): Remove.
6103 (_initialize_remote): Use add_basic_prefix_cmd.
6104 * record-full.c (set_record_full_command)
6105 (show_record_full_command): Remove.
6106 (_initialize_record_full): Use add_basic_prefix_cmd,
6107 add_show_prefix_cmd.
6108 * record-btrace.c (cmd_set_record_btrace)
6109 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
6110 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
6111 (cmd_show_record_btrace_pt): Remove.
6112 (_initialize_record_btrace): Use add_basic_prefix_cmd,
6113 add_show_prefix_cmd.
6114 * ravenscar-thread.c (set_ravenscar_command)
6115 (show_ravenscar_command): Remove.
6116 (_initialize_ravenscar): Use add_basic_prefix_cmd,
6117 add_show_prefix_cmd.
6118 * mips-tdep.c (show_mips_command, set_mips_command)
6119 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
6120 add_show_prefix_cmd.
6121 * maint.c (maintenance_command, maintenance_info_command)
6122 (maintenance_check_command, maintenance_print_command)
6123 (maintenance_set_cmd, maintenance_show_cmd): Remove.
6124 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
6125 add_show_prefix_cmd.
6126 (show_per_command_cmd): Remove.
6127 * maint-test-settings.c (maintenance_set_test_settings_cmd):
6128 Remove.
6129 (maintenance_show_test_settings_cmd): Remove.
6130 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
6131 add_show_prefix_cmd.
6132 * maint-test-options.c (maintenance_test_options_command):
6133 Remove.
6134 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
6135 * macrocmd.c (macro_command): Remove
6136 (_initialize_macrocmd): Use add_basic_prefix_cmd.
6137 * language.c (set_check, show_check): Remove.
6138 (_initialize_language): Use add_basic_prefix_cmd,
6139 add_show_prefix_cmd.
6140 * infcmd.c (unset_command): Remove.
6141 (_initialize_infcmd): Use add_basic_prefix_cmd.
6142 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
6143 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
6144 add_show_prefix_cmd.
6145 * go32-nat.c (go32_info_dos_command): Remove.
6146 (_initialize_go32_nat): Use add_basic_prefix_cmd.
6147 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
6148 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
6149 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
6150 (_initialize_frame): Use add_basic_prefix_cmd,
6151 add_show_prefix_cmd.
6152 * dcache.c (set_dcache_command, show_dcache_command): Remove.
6153 (_initialize_dcache): Use add_basic_prefix_cmd,
6154 add_show_prefix_cmd.
6155 * cp-support.c (maint_cplus_command): Remove.
6156 (_initialize_cp_support): Use add_basic_prefix_cmd.
6157 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
6158 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
6159 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
6160 add_basic_prefix_cmd, add_show_prefix_cmd.
6161 * breakpoint.c (save_command): Remove.
6162 (_initialize_breakpoint): Use add_basic_prefix_cmd.
6163 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
6164 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
6165 add_show_prefix_cmd.
6166 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
6167 (set_ada_command, show_ada_command): Remove.
6168 (_initialize_ada_language): Use add_basic_prefix_cmd,
6169 add_show_prefix_cmd.
6170 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
6171
3557f442
KR
61722020-04-16 Kamil Rytarowski <n54@gmx.com>
6173
6174 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
6175 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
6176
16197208
SM
61772020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
6178
6179 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
6180 warning messages.
6181
00ac85d3
SM
61822020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
6183
6184 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
6185 import table is not at beginning of .idata section.
6186
381ce63f
PA
61872020-04-16 Pedro Alves <palves@redhat.com>
6188
6189 * inferior.c (delete_inferior): Use delete operator directly
6190 instead of delete_program_space.
6191 * progspace.c (add_program_space): New, factored out from
6192 program_space::program_space.
6193 (remove_program_space): New, factored out from
6194 delete_program_space.
6195 (program_space::program_space): Remove intro comment. Rewrite.
6196 (program_space::~program_space): Remove intro comment. Call
6197 remove_program_space.
6198 (delete_program_space): Delete.
6199 * progspace.h (program_space::program_space): Make explicit. Move
6200 intro comment here, adjusted.
6201 (program_space::~program_space): Move intro comment here,
6202 adjusted.
6203 (delete_program_space): Remove.
6204
a010605f
TT
62052020-04-16 Tom Tromey <tromey@adacore.com>
6206
6207 * windows-nat.c (windows_nat::handle_access_violation): New
6208 function.
6209 * nat/windows-nat.h (handle_access_violation): Declare.
6210 * nat/windows-nat.c (handle_exception): Move Cygwin code to
6211 windows-nat.c. Call handle_access_violation.
6212
efba5c23
TV
62132020-04-16 Tom de Vries <tdevries@suse.de>
6214
6215 PR symtab/25791
6216 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
6217 CUs without psymtab.
6218
97ed802d
KB
62192020-04-16 Kevin Buettner <kevinb@redhat.com>
6220
6221 * python/python.c (do_start_initialization): Don't call
6222 PyEval_InitThreads for Python 3.9 and beyond.
6223
c7d64809
KR
62242020-04-15 Kamil Rytarowski <n54@gmx.com>
6225
6226 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
6227 thread functions.
6228 (obsd_nat_target::wait): Likewise.
6229
ce127a96
TT
62302020-04-15 Tom Tromey <tromey@adacore.com>
6231
6232 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
6233 (DEBUG_EXCEPT): Use debug_printf.
6234
99f1bc6a
AB
62352020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
6236
6237 * completer.c (class completion_tracker::completion_hash_entry)
6238 <hash_name>: New member function.
6239 (completion_tracker::discard_completions): New callback to hash a
6240 completion_hash_entry, pass this to htab_create_alloc.
6241
a0e9b532
JT
62422016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
6243
6244 * windows-nat.c (windows_make_so): Warn rather than stopping with
6245 an error if realpath() fails.
6246
06ca5dd4
KR
62472020-04-14 Kamil Rytarowski <n54@gmx.com>
6248
6249 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
6250 (nbsd_nat_target::info_proc): Add do_status.
6251
194d088f
TV
62522020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
6253 Tom de Vries <tdevries@suse.de>
6254
6255 PR symtab/25718
6256 * psympriv.h (struct partial_symtab::read_symtab)
6257 (struct partial_symtab::expand_psymtab)
6258 (struct partial_symtab::read_dependencies): Update comments.
6259 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
6260 read_symtab for includer.
6261 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
6262 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
6263 (struct dwarf2_include_psymtab::m_readin): Remove.
6264 (struct dwarf2_include_psymtab::includer): New member function.
6265 (dwarf2_psymtab::expand_psymtab): Assert !readin.
6266
c1a66c06
TV
62672020-04-14 Tom de Vries <tdevries@suse.de>
6268
6269 PR symtab/25720
6270 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
6271 with NULL symbol_matcher and lookup_name.
6272 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
6273 and lookup_name.
6274 * dwarf2/read.c (dw2_expand_symtabs_matching)
6275 (dw2_debug_names_expand_symtabs_matching): Same.
6276 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
6277 Make lookup_name a pointer. Update comment.
6278 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
6279 lookup_name being a pointer.
6280 * symfile.c (expand_symtabs_matching): Same.
6281 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
6282 * linespec.c (iterate_over_all_matching_symtabs): Same.
6283
400b5eca
TT
62842020-04-13 Tom Tromey <tom@tromey.com>
6285
6286 * run-on-main-thread.c: Update include.
6287 * unittests/main-thread-selftests.c: Update include.
6288 * tui/tui-win.c: Update include.
6289 * tui/tui-io.c: Update include.
6290 * tui/tui-interp.c: Update include.
6291 * tui/tui-hooks.c: Update include.
6292 * top.h: Update include.
6293 * top.c: Update include.
6294 * ser-base.c: Update include.
6295 * remote.c: Update include.
6296 * remote-notif.c: Update include.
6297 * remote-fileio.c: Update include.
6298 * record-full.c: Update include.
6299 * record-btrace.c: Update include.
6300 * python/python.c: Update include.
6301 * posix-hdep.c: Update include.
6302 * mingw-hdep.c: Update include.
6303 * mi/mi-main.c: Update include.
6304 * mi/mi-interp.c: Update include.
6305 * main.c: Update include.
6306 * linux-nat.c: Update include.
6307 * interps.c: Update include.
6308 * infrun.c: Update include.
6309 * inf-loop.c: Update include.
6310 * event-top.c: Update include.
6311 * event-loop.c: Move to ../gdbsupport/.
6312 * event-loop.h: Move to ../gdbsupport/.
6313 * async-event.h: Update include.
6314 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
6315
93b54c8e
TT
63162020-04-13 Tom Tromey <tom@tromey.com>
6317
6318 * tui/tui-win.c: Include async-event.h.
6319 * remote.c: Include async-event.h.
6320 * remote-notif.c: Include async-event.h.
6321 * record-full.c: Include async-event.h.
6322 * record-btrace.c: Include async-event.h.
6323 * infrun.c: Include async-event.h.
6324 * event-top.c: Include async-event.h.
6325 * event-loop.h: Move some declarations to async-event.h.
6326 * event-loop.c: Don't include ser-event.h or top.h. Move some
6327 code to async-event.c.
6328 * async-event.h: New file.
6329 * async-event.c: New file.
6330 * Makefile.in (COMMON_SFILES): Add async-event.c.
6331 (HFILES_NO_SRCDIR): Add async-event.h.
6332
c1cd3163
TT
63332020-04-13 Tom Tromey <tom@tromey.com>
6334
6335 * utils.c (flush_streams): New function.
6336 * event-loop.c (gdb_wait_for_event): Call flush_streams.
6337
29f2bf4f
TT
63382020-04-13 Tom Tromey <tom@tromey.com>
6339
6340 * event-loop.c (handle_file_event): Use warning, not
6341 printf_unfiltered.
6342
98029d02
TT
63432020-04-13 Tom Tromey <tom@tromey.com>
6344
6345 * event-loop.c: Include <chrono>.
6346
06cc9596
TT
63472020-04-13 Tom Tromey <tom@tromey.com>
6348
6349 * gdb_select.h: Move to ../gdbsupport/.
6350 * event-loop.c: Update include path.
6351 * top.c: Update include path.
6352 * ser-base.c: Update include path.
6353 * ui-file.c: Update include path.
6354 * ser-tcp.c: Update include path.
6355 * guile/scm-ports.c: Update include path.
6356 * posix-hdep.c: Update include path.
6357 * ser-unix.c: Update include path.
6358 * gdb_usleep.c: Update include path.
6359 * mingw-hdep.c: Update include path.
6360 * inflow.c: Update include path.
6361 * infrun.c: Update include path.
6362 * event-top.c: Update include path.
6363
8ae8e197
TT
63642020-04-13 Tom Tromey <tom@tromey.com>
6365
6366 * configure: Rebuild.
6367 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
6368
58cf28e8
TT
63692020-04-13 Tom Tromey <tom@tromey.com>
6370
6371 * event-loop.h (start_event_loop): Don't declare.
6372 * event-loop.c (start_event_loop): Move...
6373 * main.c (start_event_loop): ...here. Now static.
6374
b7f999ae
SDJ
63752020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
6376
6377 * MAINTAINERS: Update my email address.
6378
1085dfd4
KR
63792020-04-12 Kamil Rytarowski <n54@gmx.com>
6380
6381 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
6382 IP_ALL.
6383
49d1d1f5
KR
63842020-04-12 Kamil Rytarowski <n54@gmx.com>
6385
6386 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
aac66a4c 6387 (nbsd_nat_target::info_proc): Add do_cmdline.
49d1d1f5 6388
b4848d2a
KR
63892020-04-12 Kamil Rytarowski <n54@gmx.com>
6390
6391 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
aac66a4c 6392 (nbsd_nat_target::info_proc): Add do_cwd.
b4848d2a 6393
51c133d5
KR
63942020-04-12 Kamil Rytarowski <n54@gmx.com>
6395
6396 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
6397
54b8cbd0
KR
63982020-04-11 Kamil Rytarowski <n54@gmx.com>
6399
6400 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
6401 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
6402 (nbsd_nat_target::info_proc): New functions.
6403 * nbsd-nat.c (kinfo_get_vmmap): New function.
6404 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
6405 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
6406 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
6407 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
6408 functions.
6409 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
6410 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
6411 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
6412 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
6413 (KINFO_VME_FLAG_GROWS_DOWN): New.
6414
cf83625d
AS
64152020-04-10 Artur Shepilko <nomadbyte@gmail.com>
6416
6417 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
6418 bit shift.
6419
0c4311ab
TT
64202020-04-10 Tom Tromey <tromey@adacore.com>
6421
6422 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
6423
3e65b3e9
TT
64242020-04-10 Tom Tromey <tromey@adacore.com>
6425
6426 * symtab.c (get_symbol_address, get_msymbol_address): Skip
6427 separate debug files.
6428
13302e95
HD
64292020-04-10 Hannes Domani <ssbssa@yahoo.de>
6430
6431 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
6432 Move to...
6433 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
6434 ... here.
6435 * windows-nat.c (windows_nat_target::get_windows_debug_event):
6436 Check for STATUS_WX86_BREAKPOINT.
6437 (windows_nat_target::wait): Same.
6438
bdfc1e8a
TV
64392020-04-10 Tom de Vries <tdevries@suse.de>
6440
6441 PR cli/25808
6442 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
6443
f4460aec
SM
64442020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
6445
6446 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
6447 (Write After Approval): Remove Tom de Vries.
6448
a25198bb
BE
64492020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
6450
6451 revert partially:
6452 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
6453
aac66a4c
SM
6454 * buildsym.c (record_line): Fix undefined behavior and preserve
6455 lines at eof.
a25198bb 6456
206c98a6
KR
64572020-04-09 Kamil Rytarowski <n54@gmx.com>
6458
6459 * auxv.h (svr4_auxv_parse): New.
6460 * auxv.c (default_auxv_parse): Split into default_auxv_parse
6461 and generic_auxv_parse.
6462 (svr4_auxv_parse): Add.
6463 * obsd-tdep.c: Include "auxv.h".
6464 (obsd_auxv_parse): Remove.
6465 (obsd_init_abi): Remove comment.
6466 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
6467 from `obsd_auxv_parse' to `svr4_auxv_parse'.
6468 * nbsd-tdep.c: Include "auxv.h".
6469 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
6470
71fbdbaf
TT
64712020-04-08 Tom Tromey <tromey@adacore.com>
6472
6473 * nat/windows-nat.h (last_wait_event): Don't declare.
6474 (wait_for_debug_event): Update comment.
6475 * nat/windows-nat.c (last_wait_event): Now static.
6476
2c1d95e8
TT
64772020-04-08 Tom Tromey <tromey@adacore.com>
6478
6479 * windows-nat.c (wait_for_debug_event): Move to
6480 nat/windows-nat.c.
6481 * nat/windows-nat.h (wait_for_debug_event): Declare.
6482 * nat/windows-nat.c (wait_for_debug_event): Move from
6483 windows-nat.c. No longer static.
6484
d2977bc4
TT
64852020-04-08 Tom Tromey <tromey@adacore.com>
6486
6487 * windows-nat.c (get_windows_debug_event): Use
6488 fetch_pending_stop.
6489 * nat/windows-nat.h (fetch_pending_stop): Declare.
6490 * nat/windows-nat.c (fetch_pending_stop): New function.
6491
e758e19c
TT
64922020-04-08 Tom Tromey <tromey@adacore.com>
6493
6494 * windows-nat.c (windows_continue): Use matching_pending_stop and
6495 continue_last_debug_event.
6496 * nat/windows-nat.h (matching_pending_stop)
6497 (continue_last_debug_event): Declare.
6498 * nat/windows-nat.c (DEBUG_EVENTS): New define.
6499 (matching_pending_stop, continue_last_debug_event): New
6500 functions.
6501
8d30e395
TT
65022020-04-08 Tom Tromey <tromey@adacore.com>
6503
6504 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
6505 (handle_exception_result): Move to nat/windows-nat.h.
6506 (DEBUG_EXCEPTION_SIMPLE): Remove.
6507 (windows_nat::handle_ms_vc_exception): New function.
6508 (handle_exception): Move to nat/windows-nat.c.
6509 (get_windows_debug_event): Update.
6510 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
6511 nat/windows-nat.c.
6512 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
6513 (handle_exception_result): Move from windows-nat.c.
6514 (handle_exception): Declare.
6515 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
6516 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
6517 windows-nat.c.
6518
29de418d
TT
65192020-04-08 Tom Tromey <tromey@adacore.com>
6520
6521 * windows-nat.c (exception_count, event_count): Remove.
6522 (handle_exception, get_windows_debug_event)
6523 (do_initial_windows_stuff): Update.
6524
a816ba18
TT
65252020-04-08 Tom Tromey <tromey@adacore.com>
6526
6527 * windows-nat.c (windows_nat::handle_load_dll)
6528 (windows_nat::handle_unload_dll): Rename. No longer static.
6529 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
6530 Declare.
6531
a00caa12
TT
65322020-04-08 Tom Tromey <tromey@adacore.com>
6533
6534 * complaints.h (stop_whining): Declare at top-level.
6535 (complaint): Don't declare stop_whining.
6536
d41b524f
TT
65372020-04-08 Tom Tromey <tromey@adacore.com>
6538
6539 * windows-nat.c (windows_nat::handle_output_debug_string):
6540 Rename. No longer static.
6541 * nat/windows-nat.h (handle_output_debug_string): Declare.
6542
3c76026d
TT
65432020-04-08 Tom Tromey <tromey@adacore.com>
6544
6545 * windows-nat.c (current_process_handle, current_process_id)
6546 (main_thread_id, last_sig, current_event, last_wait_event)
6547 (current_windows_thread, desired_stop_thread_id, pending_stops)
6548 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
6549 (display_selectors, fake_create_process)
6550 (get_windows_debug_event): Update.
6551 * nat/windows-nat.h (current_process_handle, current_process_id)
6552 (main_thread_id, last_sig, current_event, last_wait_event)
6553 (current_windows_thread, desired_stop_thread_id, pending_stops)
6554 (struct pending_stop, siginfo_er): Move from windows-nat.c.
6555 * nat/windows-nat.c (current_process_handle, current_process_id)
6556 (main_thread_id, last_sig, current_event, last_wait_event)
6557 (current_windows_thread, desired_stop_thread_id, pending_stops)
6558 (siginfo_er): New globals. Move from windows-nat.c.
6559
9d8679cc
TT
65602020-04-08 Tom Tromey <tromey@adacore.com>
6561
6562 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
6563 (handle_load_dll): Update.
6564 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
6565
28688adf
TT
65662020-04-08 Tom Tromey <tromey@adacore.com>
6567
6568 * windows-nat.c (enum thread_disposition_type): Move to
6569 nat/windows-nat.h.
6570 (windows_nat::thread_rec): Rename from thread_rec. No longer
6571 static.
6572 (windows_add_thread, windows_nat_target::fetch_registers)
6573 (windows_nat_target::store_registers, handle_exception)
6574 (windows_nat_target::resume, get_windows_debug_event)
6575 (windows_nat_target::get_tib_address)
6576 (windows_nat_target::thread_name)
6577 (windows_nat_target::thread_alive): Update.
6578 * nat/windows-nat.h (enum thread_disposition_type): Move from
6579 windows-nat.c.
6580 (thread_rec): Declare.
6581
4834dad0
TT
65822020-04-08 Tom Tromey <tromey@adacore.com>
6583
6584 * windows-nat.c: Add "using namespace".
6585 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
6586 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
6587
65bafd5b
TT
65882020-04-08 Tom Tromey <tromey@adacore.com>
6589
6590 * nat/windows-nat.h (struct windows_thread_info): Declare
6591 destructor.
6592 * nat/windows-nat.c (~windows_thread_info): New.
6593
0a4afda3
TT
65942020-04-08 Tom Tromey <tromey@adacore.com>
6595
6596 PR gdb/22992
6597 * windows-nat.c (current_event): Update comment.
6598 (last_wait_event, desired_stop_thread_id): New globals.
6599 (struct pending_stop): New.
6600 (pending_stops): New global.
6601 (windows_nat_target) <stopped_by_sw_breakpoint>
6602 <supports_stopped_by_sw_breakpoint>: New methods.
6603 (windows_fetch_one_register): Add assertions. Adjust PC.
6604 (windows_continue): Handle pending stops. Suspend other threads
6605 when stepping. Use last_wait_event
6606 (wait_for_debug_event): New function.
6607 (get_windows_debug_event): Use wait_for_debug_event. Handle
6608 pending stops. Queue spurious stops.
6609 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
6610 (windows_nat_target::kill): Use wait_for_debug_event.
6611 * nat/windows-nat.h (struct windows_thread_info)
6612 <stopped_at_software_breakpoint>: New field.
6613 * nat/windows-nat.c (windows_thread_info::resume): Clear
6614 stopped_at_software_breakpoint.
6615
8e61ebec
TT
66162020-04-08 Tom Tromey <tromey@adacore.com>
6617
6618 * windows-nat.c (enum thread_disposition_type): New.
6619 (thread_rec): Replace "get_context" parameter with "disposition";
6620 change type.
6621 (windows_add_thread, windows_nat_target::fetch_registers)
6622 (windows_nat_target::store_registers, handle_exception)
6623 (windows_nat_target::resume, get_windows_debug_event)
6624 (windows_nat_target::get_tib_address)
6625 (windows_nat_target::thread_name)
6626 (windows_nat_target::thread_alive): Update.
6627
98a03287
TT
66282020-04-08 Tom Tromey <tromey@adacore.com>
6629
6630 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
6631 (windows_continue): Use windows_continue::resume.
6632 * nat/windows-nat.h (struct windows_thread_info) <suspend,
6633 resume>: Declare new methods.
6634 * nat/windows-nat.c: New file.
6635 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
6636
7c7411bc
TT
66372020-04-08 Tom Tromey <tromey@adacore.com>
6638
6639 * windows-nat.c (windows_add_thread, windows_delete_thread)
6640 (windows_nat_target::fetch_registers)
6641 (windows_nat_target::store_registers, fake_create_process)
6642 (windows_nat_target::resume, windows_nat_target::resume)
6643 (get_windows_debug_event, windows_nat_target::wait)
6644 (windows_nat_target::pid_to_str)
6645 (windows_nat_target::get_tib_address)
6646 (windows_nat_target::get_ada_task_ptid)
6647 (windows_nat_target::thread_name)
6648 (windows_nat_target::thread_alive): Use lwp, not tid.
6649
2950fdf7
TT
66502020-04-08 Tom Tromey <tromey@adacore.com>
6651
6652 * windows-nat.c (handle_exception)
6653 (windows_nat_target::thread_name): Update.
6654 * nat/windows-nat.h (windows_thread_info): Remove destructor.
6655 <name>: Now unique_xmalloc_ptr.
6656
62fe396b
TT
66572020-04-08 Tom Tromey <tromey@adacore.com>
6658
6659 * windows-nat.c (thread_rec)
6660 (windows_nat_target::fetch_registers): Update.
6661 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
6662 Update comment.
6663 <debug_registers_changed, reload_context>: Now bool.
6664
e9534bd2
TT
66652020-04-08 Tom Tromey <tromey@adacore.com>
6666
6667 * windows-nat.c (windows_add_thread): Use new.
6668 (windows_init_thread_list, windows_delete_thread): Use delete.
6669 (get_windows_debug_event): Update.
6670 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
6671 destructor, and initializers.
6672
ae1f8880
TT
66732020-04-08 Tom Tromey <tromey@adacore.com>
6674
6675 * windows-nat.c (struct windows_thread_info): Remove.
6676 * nat/windows-nat.h: New file.
6677
55a1e039
TT
66782020-04-08 Tom Tromey <tromey@adacore.com>
6679
6680 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
6681 (thread_rec, windows_add_thread, windows_delete_thread)
6682 (windows_continue): Update.
6683
93366324
TT
66842020-04-08 Tom Tromey <tromey@adacore.com>
6685
6686 * windows-nat.c (struct windows_thread_info): Remove typedef.
6687 (thread_head): Remove.
6688 (thread_list): New global.
6689 (thread_rec, windows_add_thread, windows_init_thread_list)
6690 (windows_delete_thread, windows_continue): Update.
6691
0f2265e2
SM
66922020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
6693
6694 * windows-tdep.h (windows_init_abi): Add comment.
6695 (cygwin_init_abi): New declaration.
6696 * windows-tdep.c: Split signal enumeration in two, one for
6697 Windows and one for Cygwin.
6698 (windows_gdb_signal_to_target): Only deal with signal of the
6699 Windows OS ABI.
6700 (cygwin_gdb_signal_to_target): New function.
6701 (windows_init_abi): Rename to windows_init_abi_common, don't set
6702 gdb_signal_to_target gdbarch method. Add new new function with
6703 this name.
6704 (cygwin_init_abi): New function.
6705 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
6706 comment. Don't call windows_init_abi.
6707 (amd64_windows_init_abi): Add comment, call windows_init_abi.
6708 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
6709 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
6710 i386_windows_init_abi_common, don't call windows_init_abi. Add
6711 a new function of this name.
6712 (i386_cygwin_init_abi): New function.
6713 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
6714 OS ABI Cygwin.
6715
3810f182
SM
67162020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
6717
6718 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
6719 parameter.c.
6720 (dwarf2_read_gdb_index): Update.
6721
063f8e80
KR
67222020-04-07 Kamil Rytarowski <n54@gmx.com>
6723
6724 * nbsd-tdep.c: Include "objfiles.h".
6725 (nbsd_skip_solib_resolver): New.
6726 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
6727
85a9510c 67282020-04-07 Nitika Achra <Nitika.Achra@amd.com>
6729
6730 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
6731 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
6732 with DW_LLE_base_addressx are being emitted in DWARFv5.
6733 Add the newly added kind DW_LOC_OFFSET_PAIR also.
6734 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
6735 unsigned integer.
6736
9fc3eaae 67372020-04-07 Nitika Achra <Nitika.Achra@amd.com>
6738
6739 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
6740 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
6741 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
6742 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
6743 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
6744 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
6745 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
6746
6747
41144253 67482020-04-07 Nitika Achra <Nitika.Achra@amd.com>
6749
6750 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
6751 (read_loclist_index): New function definition.
6752 (lookup_loclist_base): New function definition.
6753 (read_loclist_header): New function definition.
6754 (dwarf2_cu): Add loclist_base and loclist_header field.
6755 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
6756 (read_full_die_1): Read the value of DW_AT_loclists_base.
6757 (read_attribute_reprocess): Handle DW_FORM_loclistx.
6758 (read_attribute_value): Handle DW_FORM_loclistx.
6759 (skip_one_die): Handle DW_FORM_loclistx.
6760 (loclist_header): New structure declaration.
6761 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
6762
9f4e76a4
SM
67632020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
6764
6765 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
6766 constructor. Remove `addr` parameter from other constructor and
6767 add `per_cu` parameter.
6768 * dwarf2/read.c (create_partial_symtab): Update.
6769
25c11aca
TV
67702020-04-07 Tom de Vries <tdevries@suse.de>
6771
6772 PR symtab/25796
6773 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
6774 (partial_die_info::fixup): Inherit has_const_value.
6775
5707e24b
TV
67762020-04-07 Tom de Vries <tdevries@suse.de>
6777
6778 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
6779 symbols without address.
6780
05f00e22
KR
67812020-04-06 Kamil Rytarowski <n54@gmx.com>
6782
6783 * nbsd-nat.h (struct thread_info): Add forward declaration.
6784 (nbsd_nat_target::thread_alive): Add.
6785 (nbsd_nat_target::thread_name): Likewise.
6786 (nbsd_nat_target::update_thread_list): Likewise.
6787 (update_thread_list::post_attach): Likewise.
6788 (post_attach::pid_to_str): Likewise.
6789 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
6790 (nbsd_thread_lister): Add.
6791 (nbsd_nat_target::thread_alive): Likewise.
6792 (nbsd_nat_target::thread_name): Likewise.
6793 (nbsd_add_threads): Likewise.
6794 (update_thread_list::post_attach): Likewise.
6795 (nbsd_nat_target::update_thread_list): Likewise.
6796 (post_attach::pid_to_str): Likewise.
6797
6ee448cc
TT
67982020-04-06 Tom Tromey <tromey@adacore.com>
6799
6800 * ada-valprint.c (print_variant_part): Extract the variant field.
6801 (print_field_values): Use the field as the outer value when
6802 recursing.
6803
dea34e8c
TT
68042020-04-06 Tom Tromey <tromey@adacore.com>
6805
6806 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
6807 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
6808 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
6809 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
6810 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
6811
93689ce9
TT
68122020-04-06 Tom Tromey <tromey@adacore.com>
6813
6814 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
6815 TYPE_CODE_ERROR.
6816
79743962
KR
68172020-04-06 Kamil Rytarowski <n54@gmx.com>
6818
6819 * nbsd-tdep.c: Include "gdbarch.h".
6820 Define enum with NetBSD signal numbers.
6821 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
6822 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
6823 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
6824 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
6825 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
6826 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
6827 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
6828 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
6829 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
6830 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
6831 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
6832 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
6833
9e7c9a03
HD
68342020-04-03 Hannes Domani <ssbssa@yahoo.de>
6835
6836 PR gdb/25325
6837 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
6838
d9e49b61
TT
68392020-04-03 Tom Tromey <tromey@adacore.com>
6840
6841 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
6842 Read constant block.
6843
e0fc5c3f
SM
68442020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
6845
6846 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
6847 (gdb_bfd_get_full_section_contents): New declaration.
6848 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
6849 * windows-tdep.c (is_linked_with_cygwin_dll): Use
6850 gdb_bfd_get_full_section_contents.
6851
e2ff18a0
SM
68522020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
6853
6854 * exec.c (build_section_table): Replace internal_error with
6855 gdb_assert.
6856 (section_table_xfer_memory_partial): Likewise.
6857 * mdebugread.c (parse_partial_symbols): Likewise.
6858 * psymtab.c (lookup_partial_symbol): Likewise.
6859 * utils.c (wrap_here): Likewise.
6860
0830d301
TT
68612020-04-02 Tom Tromey <tromey@adacore.com>
6862
6863 * f-lang.c (build_fortran_types): Use arch_type to initialize
6864 builtin_complex_s32 in the TYPE_CODE_ERROR case.
6865
e7da7f8f
TT
68662020-04-02 Tom Tromey <tromey@adacore.com>
6867
6868 * dwarf2/read.c (partial_die_info::read): Do not create a vector
6869 of attributes.
6870
c90d28ac
AB
68712020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
6872 Bernd Edlinger <bernd.edlinger@hotmail.de>
6873 Tom Tromey <tromey@adacore.com>
6874
6875 * buildsym.c (buildsym_compunit::record_line): Remove
6876 deduplication code.
6877
1aa98955
TV
68782020-04-02 Tom de Vries <tdevries@suse.de>
6879
6880 PR ada/24671
6881 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
6882
d3214198
TV
68832020-04-02 Tom de Vries <tdevries@suse.de>
6884
6885 * dwarf2/read.c (dwarf2_gdb_index_functions,
6886 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
6887 NULL.
6888 * psymtab.c (psym_lookup_global_symbol_language): New function.
6889 (psym_functions): Init psym_lookup_global_symbol_language with
6890 psym_lookup_global_symbol_language.
6891 * symfile-debug.c (debug_sym_quick_functions): Init
6892 lookup_global_symbol_language with NULL.
6893 * symfile.c (set_initial_language): Remove fixme comment.
6894 * symfile.h (struct quick_symbol_functions): Add
6895 lookup_global_symbol_language.
6896 * symtab.c (find_quick_global_symbol_language): New function.
6897 (find_main_name): Use find_quick_global_symbol_language.
6898
2836752f
SM
68992020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
6900
6901 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
6902
64dc2d4b
BE
69032020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
6904
6905 * buildsym.c (record_line): Fix undefined behavior and preserve
6906 lines at eof.
6907
bbe3dc41
BE
69082020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
6909
6910 * buildsym.c (record_line): Fix the resizing condition.
6911
6b4a335b
TT
69122020-04-01 Tom Tromey <tom@tromey.com>
6913
6914 * value.h (value_literal_complex): Add comment.
6915 * valops.c (value_literal_complex): Refer to value.h.
6916
3638a098
TT
69172020-04-01 Tom Tromey <tom@tromey.com>
6918
6919 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
6920 (scalar_type): New rule, from typebase.
6921 (typebase): Use scalar_type. Recognize complex types.
6922 (field_name): Handle FLOAT_KEYWORD.
6923 (ident_tokens): Add _Complex and __complex__.
6924
c34e8714
TT
69252020-04-01 Tom Tromey <tom@tromey.com>
6926
6927 PR exp/25299:
6928 * valarith.c (promotion_type, complex_binop): New functions.
6929 (scalar_binop): Handle complex numbers. Use promotion_type.
6930 (value_pos, value_neg, value_complement): Handle complex numbers.
6931
fa649bb7
TT
69322020-04-01 Tom Tromey <tom@tromey.com>
6933
6934 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
6935 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
6936 (parse_number): Handle complex numbers.
6937
981c08ce
TT
69382020-04-01 Tom Tromey <tom@tromey.com>
6939
6940 * c-valprint.c (c_decorations): Change complex suffix to "i".
6941
4c99290d
TT
69422020-04-01 Tom Tromey <tom@tromey.com>
6943
6944 * valprint.c (generic_value_print_complex): Use accessors.
6945 * value.h (value_real_part, value_imaginary_part): Declare.
6946 * valops.c (value_real_part, value_imaginary_part): New
6947 functions.
6948 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
6949
5b930b45
TT
69502020-04-01 Tom Tromey <tom@tromey.com>
6951
6952 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
6953 (read_range_type): Update.
6954 * mdebugread.c (basic_type): Update.
6955 * go-lang.c (build_go_types): Use init_complex_type.
6956 * gdbtypes.h (struct main_type) <complex_type>: New member.
6957 (init_complex_type): Update.
6958 (arch_complex_type): Don't declare.
6959 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
6960 Make name if none given. Use alloc_type_copy. Look for cached
6961 complex type.
6962 (arch_complex_type): Remove.
6963 (gdbtypes_post_init): Use init_complex_type.
6964 * f-lang.c (build_fortran_types): Use init_complex_type.
6965 * dwarf2/read.c (read_base_type): Update.
6966 * d-lang.c (build_d_types): Use init_complex_type.
6967 * ctfread.c (read_base_type): Update.
6968
53cccef1
TBA
69692020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6970
6971 * infrun.c (stop_all_threads): Update assertion, plus when
6972 stopping threads, take into account that we might be trying
6973 to stop an all-stop target.
6974 (stop_waiting): Call 'stop_all_threads' if there exists a
6975 non-stop target.
6976
a0714d30
TBA
69772020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6978
6979 * target.h (exists_non_stop_target): New function declaration.
6980 * target.c (exists_non_stop_target): New function.
6981
60e22c1e
HD
69822020-04-01 Hannes Domani <ssbssa@yahoo.de>
6983
6984 PR gdb/24789
6985 * eval.c (is_integral_or_integral_reference): New function.
6986 (evaluate_subexp_standard): Allow integer references in
6987 pointer arithmetic.
6988
e139a727
TBA
69892020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6990
6991 * remote.c (remote_target::remote_parse_stop_reply): Remove the
6992 check for no ptid in the stop reply when the target is non-stop.
6993
e0802d59
TT
69942020-04-01 Tom Tromey <tromey@adacore.com>
6995
6996 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
6997 "name" parameter to rvalue reference. Initialize m_name_holder.
6998 <lookup_name_info>: New overloads.
6999 <name>: Return gdb::string_view.
7000 <c_str>: New method.
7001 <make_ignore_params>: Update.
7002 <search_name_hash>: Update.
7003 <language_lookup_name>: Return const char *.
7004 <m_name>: Change type.
7005 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
7006 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
7007 (lookup_name_info::match_any): Update.
7008 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
7009 Update.
7010 * minsyms.c (linkage_name_str): Update.
7011 * language.c (default_symbol_name_matcher): Update.
7012 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
7013 Update.
7014 * ada-lang.c (ada_fold_name): Change parameter to string_view.
7015 (ada_lookup_name_info::ada_lookup_name_info): Update.
7016 (literal_symbol_name_matcher): Update.
7017
8c072cb6
TT
70182020-04-01 Tom Tromey <tromey@adacore.com>
7019
7020 * psymtab.c (psymtab_search_name): Remove function.
7021 (psym_lookup_symbol): Create search name and lookup name here.
7022 (lookup_partial_symbol): Remove "name" parameter; add
7023 lookup_name.
7024 (psym_expand_symtabs_for_function): Update.
7025
6f29a534
TT
70262020-03-31 Joel Jones <joelkevinjones@gmail.com>
7027
7028 PR tui/25597:
7029 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
7030
af62665e
TT
70312020-03-31 Tom Tromey <tromey@adacore.com>
7032
7033 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
7034 memcpy.
7035
d1a89da5
NC
70362020-03-30 Nelson Chu <nelson.chu@sifive.com>
7037
7038 * features/riscv/32bit-csr.xml: Regenerated.
7039 * features/riscv/64bit-csr.xml: Regenerated.
7040
d8af9068
TT
70412020-03-30 Tom Tromey <tromey@adacore.com>
7042
7043 * ada-valprint.c (print_variant_part): Update.
7044 * ada-lang.h (ada_which_variant_applies): Update.
7045 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
7046 outer_valaddr parameters; replace with "outer" value parameter.
7047 (to_fixed_variant_branch_type): Update.
7048
227c0bf4
PFC
70492020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
7050
7051 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
7052 <list>. Remove inclusion of observable.h.
7053 (PPC_DEBUG_CURRENT_VERSION): Move up define.
7054 (struct arch_lwp_info): New struct.
7055 (class ppc_linux_dreg_interface): New class.
7056 (struct ppc_linux_process_info): New struct.
7057 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
7058 <low_new_clone, low_forget_process, low_prepare_to_resume>
7059 <copy_thread_dreg_state, mark_thread_stale>
7060 <mark_debug_registers_changed, register_hw_breakpoint>
7061 <clear_hw_breakpoint, register_wp, clear_wp>
7062 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
7063 <num_memory_accesses, get_trigger_type>
7064 <create_watchpoint_request, hwdebug_point_cmp>
7065 <init_arch_lwp_info, get_arch_lwp_info>
7066 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
7067 methods.
7068 <struct ptid_hash>: New inner struct.
7069 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
7070 members.
7071 (saved_dabr_value, hwdebug_info, max_slots_number)
7072 (struct hw_break_tuple, struct thread_points, ppc_threads)
7073 (have_ptrace_hwdebug_interface)
7074 (hwdebug_find_thread_points_by_tid)
7075 (hwdebug_insert_point, hwdebug_remove_point): Remove.
7076 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
7077 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
7078 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
7079 use m_dreg_interface.
7080 (hwdebug_point_cmp): Change to...
7081 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
7082 reference arguments instead of pointers.
7083 (ppc_linux_nat_target::ranged_break_num_registers): Use
7084 m_dreg_interface.
7085 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
7086 m_dreg_interface. Call register_hw_breakpoint.
7087 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
7088 m_dreg_interface. Call clear_hw_breakpoint.
7089 (get_trigger_type): Change to...
7090 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
7091 comment.
7092 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
7093 use m_dreg_interface. Call register_hw_breakpoint.
7094 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
7095 use m_dreg_interface. Call clear_hw_breakpoint.
7096 (can_use_watchpoint_cond_accel): Change to...
7097 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
7098 method. Update comment, use m_dreg_interface and
7099 m_process_info.
7100 (calculate_dvc): Change to...
7101 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
7102 m_dreg_interface.
7103 (num_memory_accesses): Change to...
7104 (ppc_linux_nat_target::num_memory_accesses): ...this method.
7105 (check_condition): Change to...
7106 (ppc_linux_nat_target::check_condition): ...this method.
7107 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
7108 comment, use m_dreg_interface.
7109 (create_watchpoint_request): Change to...
7110 (ppc_linux_nat_target::create_watchpoint_request): ...this
7111 method. Use m_dreg_interface.
7112 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
7113 m_dreg_interface. Call register_hw_breakpoint or register_wp.
7114 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
7115 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
7116 (ppc_linux_nat_target::low_forget_process)
7117 (ppc_linux_nat_target::low_new_fork)
7118 (ppc_linux_nat_target::low_new_clone)
7119 (ppc_linux_nat_target::low_delete_thread)
7120 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
7121 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
7122 only call mark_thread_stale.
7123 (ppc_linux_thread_exit): Remove.
7124 (ppc_linux_nat_target::stopped_data_address): Change to...
7125 (ppc_linux_nat_target::low_stopped_data_address): This. Add
7126 comment, use m_dreg_interface and m_thread_hw_breakpoints.
7127 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
7128 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
7129 comment. Call low_stopped_data_address.
7130 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
7131 m_dreg_interface.
7132 (ppc_linux_nat_target::masked_watch_num_registers): Use
7133 m_dreg_interface.
7134 (ppc_linux_nat_target::copy_thread_dreg_state)
7135 (ppc_linux_nat_target::mark_thread_stale)
7136 (ppc_linux_nat_target::mark_debug_registers_changed)
7137 (ppc_linux_nat_target::register_hw_breakpoint)
7138 (ppc_linux_nat_target::clear_hw_breakpoint)
7139 (ppc_linux_nat_target::register_wp)
7140 (ppc_linux_nat_target::clear_wp)
7141 (ppc_linux_nat_target::init_arch_lwp_info)
7142 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
7143 (_initialize_ppc_linux_nat): Remove observer callback.
7144
4db10d8f
PFC
71452020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
7146
7147 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
7148 (ppc_linux_nat_target::auxv_parse)
7149 (ppc_linux_nat_target::read_description)
7150 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
7151 Move up.
7152
1310c1b0
PFC
71532020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
7154
7155 * linux-nat.h (low_new_clone): New method.
7156 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
7157
69b037c3
SM
71582020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
7159
7160 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
7161 (dbx_expand_psymtab): ... this.
7162 (start_psymtab): Update.
7163 * mdebugread.c (psymtab_to_symtab_1): Rename to...
7164 (mdebug_expand_psymtab): ... this.
7165 (parse_partial_symbols): Update.
7166 (new_psymtab): Update.
7167 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
7168 (xcoff_expand_psymtab): ... this.
7169 (xcoff_start_psymtab): Update.
7170
48993951
SM
71712020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
7172
7173 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
7174 <expand_dependencies>: ... this.
7175 * psymtab.c (partial_symtab::read_dependencies): Rename to...
7176 (partial_symtab::expand_dependencies): ... this.
7177 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
7178 Update.
7179 (dwarf2_psymtab::expand_psymtab): Update.
7180 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
7181 * mdebugread.c (psymtab_to_symtab_1): Update.
7182 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
7183
3ad83046
SM
71842020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
7185
7186 * psympriv.h (discard_psymtab): Remove.
7187 * dbxread.c (dbx_end_psymtab): Update.
7188 * xcoffread.c (xcoff_end_psymtab): Update.
7189
4d1b9ab6
TT
71902020-03-28 Tom Tromey <tom@tromey.com>
7191
7192 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
7193 comment.
7194
f1749218
TT
71952020-03-28 Tom Tromey <tom@tromey.com>
7196
7197 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
7198
ebea7626
HD
71992020-03-27 Hannes Domani <ssbssa@yahoo.de>
7200
7201 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
7202
a879b4d5
JB
72032020-03-26 John Baldwin <jhb@FreeBSD.org>
7204
7205 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
7206
0826b30a
TT
72072020-03-26 Tom Tromey <tom@tromey.com>
7208
7209 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
7210 (mark_common_block_symbol_computed, read_tag_string_type)
7211 (attr_to_dynamic_prop, read_subrange_type): Update.
7212 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
7213 to be methods on struct attribute.
7214 (skip_one_die, process_imported_unit_die, read_namespace_alias)
7215 (read_call_site_scope, partial_die_info::read)
7216 (partial_die_info::read, lookup_die_type, follow_die_ref):
7217 Update.
7218 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
7219 from dwarf2_get_ref_die_offset.
7220 (attribute::constant_value): New method, from
7221 dwarf2_get_attr_constant_value.
7222 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
7223 Declare method.
7224 <constant_value>: New method.
7225
2b2558bf
TT
72262020-03-26 Tom Tromey <tom@tromey.com>
7227
7228 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
7229 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
7230 (dwarf_type_encoding_name): Move to stringify.c.
7231 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
7232 * dwarf2/stringify.c: New file.
7233 * dwarf2/stringify.h: New file.
7234
eeb64781
TT
72352020-03-26 Tom Tromey <tom@tromey.com>
7236
7237 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
7238 Rewrite.
7239
a39fdb41
TT
72402020-03-26 Tom Tromey <tom@tromey.com>
7241
7242 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
7243 methods.
7244 * dwarf2/read.c (lookup_addr_base): Move to die.h.
7245 (lookup_ranges_base): Likewise.
7246 (read_cutu_die_from_dwo, read_full_die_1): Update.
7247
436c571c
TT
72482020-03-26 Tom Tromey <tom@tromey.com>
7249
7250 * dwarf2/read.c (read_import_statement, read_file_scope)
7251 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
7252 (read_lexical_block_scope, read_call_site_scope)
7253 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
7254 (handle_struct_member_die, process_structure_scope)
7255 (update_enumeration_type_from_children)
7256 (process_enumeration_scope, read_array_type, read_common_block)
7257 (read_namespace, read_module, read_subroutine_type): Update.
7258 (sibling_die): Remove.
7259
052c8bb8
TT
72602020-03-26 Tom Tromey <tom@tromey.com>
7261
7262 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
7263 (build_type_psymtabs_reader, read_structure_type)
7264 (read_enumeration_type, read_full_die_1): Update.
7265 (dwarf2_attr_no_follow): Move to die.h.
7266 * dwarf2/die.h (struct die_info) <attr>: New method.
7267
2b24b6e4
TT
72682020-03-26 Tom Tromey <tom@tromey.com>
7269
7270 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
7271 <base_address>: Now an optional.
7272 (dwarf2_find_base_address, dwarf2_rnglists_process)
7273 (dwarf2_ranges_process, fill_in_loclist_baton)
7274 (dwarf2_symbol_mark_computed): Update.
7275
c2d50fd0
TT
72762020-03-26 Tom Tromey <tom@tromey.com>
7277
7278 * dwarf2/read.c (struct die_info): Move to die.h.
7279 * dwarf2/die.h: New file.
7280
0df7ad3a
TT
72812020-03-26 Tom Tromey <tom@tromey.com>
7282
7283 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
7284 * dwarf2/read.c
7285 (dwarf2_statement_list_fits_in_line_number_section_complaint):
7286 Move to line-header.c.
7287 (read_checked_initial_length_and_offset, read_formatted_entries):
7288 Likewise.
7289 (dwarf_decode_line_header): Split into two.
7290 * dwarf2/line-header.c
7291 (dwarf2_statement_list_fits_in_line_number_section_complaint):
7292 Move from read.c.
7293 (read_checked_initial_length_and_offset, read_formatted_entries):
7294 Likewise.
7295 (dwarf_decode_line_header): New function, split from read.c.
7296
86c0bb4c
TT
72972020-03-26 Tom Tromey <tom@tromey.com>
7298
7299 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
7300 Declare method.
7301 * dwarf2/read.c (read_attribute_value): Update.
7302 (dwarf2_per_objfile::read_line_string): Rename from
7303 read_indirect_line_string.
7304 (read_formatted_entries): Update.
7305
2ef46c2f
TT
73062020-03-26 Tom Tromey <tom@tromey.com>
7307
7308 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
7309 variable.
7310
4f9c1eda
TT
73112020-03-26 Tom Tromey <tom@tromey.com>
7312
7313 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
7314 const.
7315 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
7316 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
7317 parameter const.
7318
5a0e026f
TT
73192020-03-26 Tom Tromey <tom@tromey.com>
7320
7321 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
7322 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
7323 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
7324 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
7325
8844c11b
TT
73262020-03-26 Tom Tromey <tom@tromey.com>
7327
7328 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
7329 file_names_size, file_full_name, file_file_name>: Use const.
7330 <file_name_at, file_names>: Add const overload.
7331 * dwarf2/line-header.c (line_header::file_file_name)
7332 (line_header::file_full_name): Update.
7333
c90ec28a
TT
73342020-03-26 Tom Tromey <tom@tromey.com>
7335
7336 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
7337 (macro_start_file, consume_improper_spaces)
7338 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
7339 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
7340 (dwarf_decode_macros): Move to macro.c.
7341 * dwarf2/macro.c: New file.
7342 * dwarf2/macro.h: New file.
7343 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
7344
4f44ae6c
TT
73452020-03-26 Tom Tromey <tom@tromey.com>
7346
7347 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
7348 method.
7349 * dwarf2/section.c: New method. From
7350 read_indirect_string_at_offset_from.
7351 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
7352 (read_indirect_string_at_offset_from): Move to section.c.
7353 (read_indirect_string_at_offset): Rewrite.
7354 (read_indirect_line_string_at_offset): Remove.
7355 (read_indirect_string, read_indirect_line_string)
7356 (dwarf_decode_macro_bytes): Update.
7357
a0194fa8
TT
73582020-03-26 Tom Tromey <tom@tromey.com>
7359
7360 * dwarf2/section.h (struct dwarf2_section_info)
7361 <overload_complaint>: Declare.
7362 (dwarf2_section_buffer_overflow_complaint): Don't declare.
7363 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
7364 Rename from dwarf2_section_buffer_overflow_complaint.
7365 * dwarf2/read.c (skip_one_die, partial_die_info::read)
7366 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
7367
3d27bbdb
TT
73682020-03-26 Tom Tromey <tom@tromey.com>
7369
7370 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
7371 Declare.
7372 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
7373 Move from read.c.
7374 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
7375 to section.c.
7376
9eac9650
TT
73772020-03-26 Tom Tromey <tom@tromey.com>
7378
7379 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
7380
bf80d710
TT
73812020-03-26 Tom Tromey <tom@tromey.com>
7382
7383 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
7384 "builder".
7385 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
7386 parameter.
7387 (dwarf_decode_macros): Update.
7388
0314b390
TT
73892020-03-26 Tom Tromey <tom@tromey.com>
7390
7391 * dwarf2/read.c (read_attribute_value): Update.
7392 (read_indirect_string_from_dwz): Move to dwz.c; change into
7393 method.
7394 (dwarf_decode_macro_bytes): Update.
7395 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
7396 * dwarf2/dwz.c: New file.
7397 * Makefile.in (COMMON_SFILES): Add dwz.c.
7398
9fda78b6
TT
73992020-03-26 Tom Tromey <tom@tromey.com>
7400
7401 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
7402 * dwarf2/read.c: Add include.
7403 * dwarf2/index-write.c: Add include.
7404 * dwarf2/index-cache.c: Add include.
7405 * dwarf2/dwz.h: New file.
7406
33aa3c10
TT
74072020-03-25 Tom Tromey <tom@tromey.com>
7408
7409 * compile/compile-object-load.c (get_out_value_type): Mention
7410 correct symbol name in error message.
7411
d503b685
HD
74122020-03-25 Hannes Domani <ssbssa@yahoo.de>
7413
7414 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
7415
7b1eff95
TV
74162020-03-25 Tom de Vries <tdevries@suse.de>
7417
7418 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
7419 * symmisc.c (dump_symtab_1): Print user and includes fields.
7420 (maintenance_info_symtabs): Same.
7421
dd895392
AB
74222020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
7423
7424 PR gdb/25534
7425 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
7426 (riscv_regcache_cooked_write): New function.
7427 (riscv_push_dummy_call): Use new function.
7428 (riscv_return_value): Likewise.
7429
5ab2fbf1
SM
74302020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
7431
7432 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
7433 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
7434 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
7435 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
7436 * infrun.c (follow_fork): Likewise.
7437 (follow_fork_inferior): Likewise.
7438 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
7439 * linux-nat.h (class linux_nat_target): Likewise.
7440 * remote.c (class remote_target) <follow_fork>: Likewise.
7441 (remote_target::follow_fork): Likewise.
7442 * target-delegates.c: Re-generate.
7443 * target.c (default_follow_fork): Likewise.
7444 (target_follow_fork): Likewise.
7445 * target.h (struct target_ops) <follow_fork>: Likewise.
7446 (target_follow_fork): Likewise.
7447
a64fafb5
TV
74482020-03-24 Tom de Vries <tdevries@suse.de>
7449
7450 * psymtab.c (maintenance_info_psymtabs): Print user field.
7451
fe26d3a3
TT
74522020-03-20 Tom Tromey <tromey@adacore.com>
7453
7454 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
7455 const.
7456 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
7457 const.
7458
c884cc46
SM
74592020-03-20 Simon Marchi <simon.marchi@efficios.com>
7460
7461 * ptrace.m4: Don't check for ptrace declaration.
7462 * config.in: Re-generate.
7463 * configure: Re-generate.
7464 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
7465 not defined.
7466
1ff700c2
KR
74672020-03-20 Kamil Rytarowski <n54@gmx.com>
7468
7469 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
7470 `PTRACE_TYPE_RET'.
7471 * i386-bsd-nat.c (gdb_ptrace): Likewise.
7472 * sparc-nat.c (gdb_ptrace): Likewise.
7473 * x86-bsd-nat.c (gdb_ptrace): Likewise.
7474
f7d4f0b1
TT
74752020-03-20 Tom Tromey <tromey@adacore.com>
7476
7477 * c-exp.y (lex_one_token): Fix assert.
7478
f67210ff
TT
74792020-03-20 Tom Tromey <tromey@adacore.com>
7480
7481 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
7482 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
7483 strncpy call.
7484
1773be9e
TT
74852020-03-20 Tom Tromey <tromey@adacore.com>
7486
7487 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
7488
70304be9
TT
74892020-03-20 Tom Tromey <tromey@adacore.com>
7490
7491 * ada-valprint.c (print_variant_part): Remove parameters; switch
7492 to value-based API.
7493 (print_field_values): Likewise.
7494 (ada_val_print_struct_union): Likewise.
7495 (ada_value_print_1): Update.
7496
9faa006d
KR
74972020-03-20 Kamil Rytarowski <n54@gmx.com>
7498
7499 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
7500 nbsd_nat_target instead of inf_ptrace_target.
7501 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
7502 nbsd_nat_target.
7503
4a90f062
KR
75042020-03-20 Kamil Rytarowski <n54@gmx.com>
7505
7506 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
7507 it to the ptrace call.
7508 * (store_registers): Likewise.
7509
75102020-03-20 Kamil Rytarowski <n54@gmx.com>
c7da12c7
KR
7511
7512 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
7513 it to the ptrace call.
7514 * (store_registers): Likewise.
7515
2d07da27
LM
75162020-03-19 Luis Machado <luis.machado@linaro.org>
7517
7518 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
7519 valid, fetch vg value from ptrace.
7520
f09db380
KR
75212020-03-19 Kamil Rytarowski <n54@gmx.com>
7522 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
7523 * inf-ptrace.c: Likewise.
7524 * (gdb_ptrace): Add.
7525 * (inf_ptrace_target::resume): Update.
7526 * (inf_ptrace_target::xfer_partial): Likewise.
7527 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
7528 * (inf_ptrace_peek_poke): Update.
7529
fcc7376e
KR
75302020-03-19 Kamil Rytarowski <n54@gmx.com>
7531
7532 * x86-bsd-nat.c (gdb_ptrace): New.
7533 * (x86bsd_dr_set): Add new argument `ptid'.
7534 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
7535 x86bsd_dr_set_addr): Update.
7536
cada5fc9
AB
75372020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
7538
7539 * remote.c (remote_target::process_stop_reply): Handle events for
7540 all threads differently.
7541
19a2740f
AB
75422020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
7543
7544 * completer.c (completion_tracker::remove_completion): Define new
7545 function.
7546 * completer.h (completion_tracker::remove_completion): Declare new
7547 function.
7548 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
7549 when adding a C++ function symbol.
7550
724fd9ba
AB
75512020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
7552
7553 * completer.c (completion_tracker::completion_hash_entry): Define
7554 new class.
7555 (advance_to_filename_complete_word_point): Call
7556 recompute_lowest_common_denominator.
7557 (completion_tracker::completion_tracker): Call discard_completions
7558 to setup the hash table.
7559 (completion_tracker::discard_completions): Allow for being called
7560 from the constructor, pass new equal function, and element deleter
7561 when constructing the hash table. Initialise new class member
7562 variables.
7563 (completion_tracker::maybe_add_completion): Remove use of
7564 m_entries_vec, and store more information into m_entries_hash.
7565 (completion_tracker::recompute_lcd_visitor): New function, most
7566 content taken from...
7567 (completion_tracker::recompute_lowest_common_denominator):
7568 ...here, this now just visits each item in the hash calling the
7569 above visitor.
7570 (completion_tracker::build_completion_result): Remove use of
7571 m_entries_vec, call recompute_lowest_common_denominator.
7572 * completer.h (completion_tracker::have_completions): Remove use
7573 of m_entries_vec.
7574 (completion_tracker::completion_hash_entry): Declare new class.
7575 (completion_tracker::recompute_lowest_common_denominator): Change
7576 function signature.
7577 (completion_tracker::recompute_lcd_visitor): Declare new function.
7578 (completion_tracker::m_entries_vec): Delete.
7579 (completion_tracker::m_entries_hash): Initialize to NULL.
7580 (completion_tracker::m_lowest_common_denominator_valid): New
7581 member variable.
7582 (completion_tracker::m_lowest_common_denominator_max_length): New
7583 member variable.
7584
5a82b8a1
KR
75852020-03-17 Kamil Rytarowski <n54@gmx.com>
7586
7587 * regformats/regdef.h: Put reg in gdb namespace.
7588
fb516a69
KR
75892020-03-17 Kamil Rytarowski <n54@gmx.com>
7590
7591 * i386-bsd-nat.c (gdb_ptrace): New.
7592 * (i386bsd_fetch_inferior_registers,
7593 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
7594 * (i386bsd_fetch_inferior_registers,
7595 i386bsd_store_inferior_registers) Use gdb_ptrace.
7596
1c0aa1fb
KR
75972020-03-17 Kamil Rytarowski <n54@gmx.com>
7598
7599 * amd64-bsd-nat.c (gdb_ptrace): New.
7600 * (amd64bsd_fetch_inferior_registers,
7601 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
7602 * (amd64bsd_fetch_inferior_registers,
7603 amd64bsd_store_inferior_registers) Use gdb_ptrace.
7604
5ccd2fb7
KR
76052020-03-17 Kamil Rytarowski <n54@gmx.com>
7606
7607 * user-regs.c (user_reg::read): Rename to...
7608 (user_reg::xread): ...this.
7609 * (append_user_reg): Rename argument `read' to `xread'.
7610 * (user_reg_add_builtin): Likewise.
7611 * (user_reg_add): Likewise.
7612 * (value_of_user_reg): Likewise.
7613
2108a63a
KR
76142020-03-17 Kamil Rytarowski <n54@gmx.com>
7615
7616 * sparc-nat.c (gdb_ptrace): New.
7617 * sparc-nat.c (sparc_fetch_inferior_registers)
7618 (sparc_store_inferior_registers) Remove obsolete comment.
7619 * sparc-nat.c (sparc_fetch_inferior_registers)
7620 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
7621 * sparc-nat.c (sparc_fetch_inferior_registers)
7622 (sparc_store_inferior_registers) Use gdb_ptrace.
7623
a225c9a8
KR
76242020-03-17 Kamil Rytarowski <n54@gmx.com>
7625
7626 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
7627 it to the ptrace call.
7628 * sh-nbsd-nat.c (store_registers): Likewise.
7629
98097623
KR
76302020-03-17 Kamil Rytarowski <n54@gmx.com>
7631
7632 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
7633 nbsd_nat_target instead of inf_ptrace_target.
7634 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
7635 nbsd_nat_target.
7636
9e38d619
KR
76372020-03-17 Kamil Rytarowski <n54@gmx.com>
7638
7639 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
7640
a2ecbe9f
KR
76412020-03-17 Kamil Rytarowski <n54@gmx.com>
7642
7643 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
7644 <sys/sysctl.h>.
7645 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
7646
58990295
TV
76472020-03-17 Tom de Vries <tdevries@suse.de>
7648
7649 PR gdb/23710
7650 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
7651 fields.
7652 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
7653 fields.
7654 (process_imported_unit_die): Skip import of c++ CUs.
7655
771dd3a8
TT
76562020-03-16 Tom Tromey <tom@tromey.com>
7657
7658 * p-valprint.c (pascal_object_print_value): Initialize
7659 base_value.
7660
817a7585
AK
76612020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
7662 Shahab Vahedi <shahab@synopsys.com>
7663
7664 * Makefile.in: Add arch/arc.o
7665 * configure.tgt: Likewise.
7666 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
7667 (_initialize_arc_tdep): Don't initialize old target descriptions.
aac66a4c 7668 (arc_read_description): New function to cache target descriptions.
817a7585
AK
7669 * arc-tdep.h (arc_read_description): Add proto type.
7670 * arch/arc.c: New file.
7671 * arch/arc.h: Likewise.
7672 * features/Makefile: Replace old target descriptions with new.
7673 * features/arc-arcompact.c: Remove.
7674 * features/arc-arcompact.xml: Likewise.
7675 * features/arc-v2.c: Likewise
7676 * features/arc-v2.xml: Likewise
7677 * features/arc/aux-arcompact.xml: New file.
7678 * features/arc/aux-v2.xml: Likewise.
7679 * features/arc/core-arcompact.xml: Likewise.
7680 * features/arc/core-v2.xml: Likewise.
7681 * features/arc/aux-arcompact.c: Generate.
7682 * features/arc/aux-v2.c: Likewise.
7683 * features/arc/core-arcompact.c: Likewise.
7684 * features/arc/core-v2.c: Likewise.
7685 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
7686
67430cd0
TT
76872020-03-16 Tom Tromey <tromey@adacore.com>
7688
7689 PR gdb/25663:
7690 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
7691 putting value into bcache.
7692
30efb6c7
SM
76932020-03-16 Simon Marchi <simon.marchi@efficios.com>
7694
7695 PR gdb/21500
7696 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
7697 to...
7698 (amd64_windows_init_abi_common): ... this. Don't set size of
7699 long type.
7700 (amd64_windows_init_abi): New function.
7701 (amd64_cygwin_init_abi): New function.
7702 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
7703 the Cygwin OS ABI.
7704 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
7705 comment.
7706
8db52437
SM
77072020-03-16 Simon Marchi <simon.marchi@efficios.com>
7708
7709 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
7710 * windows-tdep.c (CYGWIN_DLL_NAME): New.
7711 (pe_import_directory_entry): New struct type.
7712 (is_linked_with_cygwin_dll): New function.
7713 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
7714 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
7715 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
7716
5982a56a
SM
77172020-03-16 Simon Marchi <simon.marchi@efficios.com>
7718
7719 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
7720 i386_cygwin_core_osabi_sniffer.
7721
7a1998df
SM
77222020-03-16 Simon Marchi <simon.marchi@efficios.com>
7723
7724 * i386-cygwin-tdep.c: Rename to...
7725 * i386-windows-tdep.c: ... this.
7726 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
7727 i386-windows-tdep.c.
7728 * configure.tgt: Likewise.
7729
053205cc
SM
77302020-03-16 Simon Marchi <simon.marchi@efficios.com>
7731
7732 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
7733 * osabi.c (gdb_osabi_names): Add "Windows".
7734 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
7735 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
7736 (i386_cygwin_core_osabi_sniffer): New function, extracted from
7737 i386_cygwin_osabi_sniffer.
7738 (_initialize_i386_cygwin_tdep): Register OS ABI
7739 GDB_OSABI_WINDOWS for i386.
7740 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
7741 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
7742 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
7743 for x86-64.
7744 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
7745 when the target matches '*-*-mingw*'.
7746
fe4b2ee6
SM
77472020-03-16 Simon Marchi <simon.marchi@efficios.com>
7748
7749 * defs.h (enum gdb_osabi): Move to...
7750 * osabi.h (enum gdb_osabi): ... here.
7751 * gdbarch.sh: Include osabi.h in gdbarch.h.
7752 * gdbarch.h: Re-generate.
7753
cb9b645d
SM
77542020-03-16 Simon Marchi <simon.marchi@efficios.com>
7755
7756 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
7757 function.
7758 (_initialize_amd64_windows_tdep): Register osabi sniffer.
7759
3293bbaf
TT
77602020-03-14 Tom Tromey <tom@tromey.com>
7761
7762 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
7763 for C++.
7764 (c_type_print_modifier): Likewise. Add "language" parameter.
7765 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
7766 (c_type_print_base_1): Update.
7767 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
7768 constants.
7769 * type-stack.c (type_stack::insert): Handle tp_atomic and
7770 tp_restrict.
7771 (type_stack::follow_type_instance_flags): Likewise.
7772 (type_stack::follow_types): Likewise. Merge type-following code.
7773 * c-exp.y (RESTRICT, ATOMIC): New tokens.
7774 (space_identifier, cv_with_space_id)
7775 (const_or_volatile_or_space_identifier_noopt)
7776 (const_or_volatile_or_space_identifier): Remove.
7777 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
7778 rules.
7779 (ptr_operator, typebase): Update.
7780 (enum token_flag) <FLAG_C>: New constant.
7781 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
7782 "_Atomic".
7783 (lex_one_token): Handle FLAG_C.
7784
154151a6
KR
77852020-03-14 Kamil Rytarowski <n54@gmx.com>
7786
7787 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
7788 it to the ptrace call.
7789 * m68k-bsd-nat.c (store_registers): Likewise.
7790
bc107784
KR
77912020-03-14 Kamil Rytarowski <n54@gmx.com>
7792
7793 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
7794 gdb_byte *.
7795 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
7796 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
7797 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
7798
01a80117
KR
77992020-03-14 Kamil Rytarowski <n54@gmx.com>
7800
7801 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
7802 nbsd_nat_target instead of inf_ptrace_target.
7803 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
7804 nbsd_nat_target.
7805
f90280ca
KR
78062020-03-14 Kamil Rytarowski <n54@gmx.com>
7807
7808 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
7809 register_t.
7810
6def66f1
KR
78112020-03-14 Kamil Rytarowski <n54@gmx.com>
7812
7813 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
7814 it to the ptrace call.
7815 * alpha-bsd-nat.c (store_registers): Likewise.
7816
66eaca97
KR
78172020-03-14 Kamil Rytarowski <n54@gmx.com>
7818
7819 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
7820 includes.
7821 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
7822 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
7823 fill_fpregset): Likewise.
7824
4fed520b
KR
78252020-03-14 Kamil Rytarowski <n54@gmx.com>
7826
7827 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
7828 nbsd_nat_target instead of inf_ptrace_target.
7829 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
7830 nbsd_nat_target.
7831
2190cf06
KR
78322020-03-14 Kamil Rytarowski <n54@gmx.com>
7833
7834 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
7835 register_t.
7836
75c56d3d
KR
78372020-03-14 Kamil Rytarowski <n54@gmx.com>
7838
7839 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
7840 it to the ptrace call.
7841 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
7842 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
7843 * arm-nbsd-nat.c (store_register): Likewise.
7844 * arm-nbsd-nat.c (store_regs): Likewise.
7845 * arm-nbsd-nat.c (store_fp_register): Likewise.
7846 * arm-nbsd-nat.c (store_fp_regs): Likewise.
7847
6018d381
KR
78482020-03-14 Kamil Rytarowski <n54@gmx.com>
7849
7850 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
7851 nbsd_nat_target instead of inf_ptrace_target.
7852 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
7853 nbsd_nat_target.
7854
013f99f0
KR
78552020-03-14 Kamil Rytarowski <n54@gmx.com>
7856
7857 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
7858 it to the ptrace call.
7859 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
7860
12753073
KR
78612020-03-14 Kamil Rytarowski <n54@gmx.com>
7862
6227b330
KR
7863 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
7864 it to the ptrace call.
7865 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
7866
78672020-03-14 Kamil Rytarowski <n54@gmx.com>
7868
7869 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
7870 gdb_byte *.
12753073
KR
7871 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
7872
d5be5fa4
KR
78732020-03-14 Kamil Rytarowski <n54@gmx.com>
7874
7875 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
7876 instead of inf_ptrace_target.
7877 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
7878 nbsd_nat_target.
7879
8110f842
KR
78802020-03-14 Kamil Rytarowski <n54@gmx.com>
7881
7882 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
7883 register_t.
7884
52feded7
KR
78852020-03-14 Kamil Rytarowski <n54@gmx.com>
7886
7887 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
7888 register_t.
7889
25567eee
KR
78902020-03-14 Kamil Rytarowski <n54@gmx.com>
7891
7892 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
7893 register_t.
7894
426a9c18
TT
78952020-03-13 Tom Tromey <tom@tromey.com>
7896
7897 * value.h (val_print): Don't declare.
7898 * valprint.h (val_print_array_elements)
7899 (val_print_scalar_formatted, generic_val_print): Don't declare.
7900 * valprint.c (generic_val_print_array): Take a struct value.
7901 (generic_val_print_ptr, generic_val_print_memberptr)
7902 (generic_val_print_bool, generic_val_print_int)
7903 (generic_val_print_char, generic_val_print_complex)
7904 (generic_val_print): Remove.
7905 (generic_value_print): Update.
7906 (do_val_print): Remove unused parameters. Don't call
7907 la_val_print.
7908 (val_print): Remove.
7909 (common_val_print): Update. Don't call value_check_printable.
7910 (val_print_scalar_formatted, val_print_array_elements): Remove.
7911 * rust-lang.c (rust_val_print): Remove.
7912 (rust_language_defn): Update.
7913 * p-valprint.c (pascal_val_print): Remove.
7914 (pascal_value_print_inner): Update.
7915 (pascal_object_print_val_fields, pascal_object_print_val):
7916 Remove.
7917 (pascal_object_print_static_field): Update.
7918 * p-lang.h (pascal_val_print): Don't declare.
7919 * p-lang.c (pascal_language_defn): Update.
7920 * opencl-lang.c (opencl_language_defn): Update.
7921 * objc-lang.c (objc_language_defn): Update.
7922 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
7923 * m2-lang.h (m2_val_print): Don't declare.
7924 * m2-lang.c (m2_language_defn): Update.
7925 * language.h (struct language_defn) <la_val_print>: Remove.
7926 * language.c (unk_lang_value_print_inner): Rename. Change
7927 argument types.
7928 (unknown_language_defn, auto_language_defn): Update.
7929 * go-valprint.c (go_val_print): Remove.
7930 * go-lang.h (go_val_print): Don't declare.
7931 * go-lang.c (go_language_defn): Update.
7932 * f-valprint.c (f_val_print): Remove.
7933 * f-lang.h (f_value_print): Don't declare.
7934 * f-lang.c (f_language_defn): Update.
7935 * d-valprint.c (d_val_print): Remove.
7936 * d-lang.h (d_value_print): Don't declare.
7937 * d-lang.c (d_language_defn): Update.
7938 * cp-valprint.c (cp_print_value_fields)
7939 (cp_print_value_fields_rtti, cp_print_value): Remove.
7940 (cp_print_static_field): Update.
7941 * c-valprint.c (c_val_print_array, c_val_print_ptr)
7942 (c_val_print_struct, c_val_print_union, c_val_print_int)
7943 (c_val_print_memberptr, c_val_print): Remove.
7944 * c-lang.h (c_val_print_array, cp_print_value_fields)
7945 (cp_print_value_fields_rtti): Don't declare.
7946 * c-lang.c (c_language_defn, cplus_language_defn)
7947 (asm_language_defn, minimal_language_defn): Update.
7948 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
7949 (ada_val_print_enum): Take a struct value.
7950 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
7951 (ada_val_print): Remove.
7952 (ada_value_print_1): Update.
7953 (printable_val_type): Remove.
7954 * ada-lang.h (ada_val_print): Don't declare.
7955 * ada-lang.c (ada_language_defn): Update.
7956
42331a1e
TT
79572020-03-13 Tom Tromey <tom@tromey.com>
7958
7959 * valprint.c (do_val_print): Update.
7960 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
7961 a struct value.
7962 (value_to_value_object_no_release): Declare.
7963 * python/py-value.c (value_to_value_object_no_release): New
7964 function.
7965 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
7966 struct value.
7967 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
7968 function.
7969 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
7970 a struct value.
7971 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
7972 Declare.
7973 (gdbscm_apply_val_pretty_printer): Take a struct value.
7974 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
7975 value.
7976 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
7977 value.
7978 * extension-priv.h (struct extension_language_ops)
7979 <apply_val_pretty_printer>: Take a struct value.
7980 * cp-valprint.c (cp_print_value): Create a struct value.
7981 (cp_print_value): Update.
7982
3a916a97
TT
79832020-03-13 Tom Tromey <tom@tromey.com>
7984
7985 * ada-valprint.c (print_field_values): Call common_val_print.
7986
b59eac37
TT
79872020-03-13 Tom Tromey <tom@tromey.com>
7988
7989 * ada-valprint.c (val_print_packed_array_elements): Remove
7990 bitoffset and val parameters. Call common_val_print.
7991 (ada_val_print_string): Remove offset, address, and original_value
7992 parameters.
7993 (ada_val_print_array): Update.
7994 (ada_value_print_array): New function.
7995 (ada_value_print_1): Call it.
7996
03371129
TT
79972020-03-13 Tom Tromey <tom@tromey.com>
7998
7999 * ada-valprint.c (ada_value_print): Use common_val_print.
8000
2e088f8b
TT
80012020-03-13 Tom Tromey <tom@tromey.com>
8002
8003 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
8004
39ef85a8
TT
80052020-03-13 Tom Tromey <tom@tromey.com>
8006
8007 * ada-valprint.c (ada_value_print_num): New function.
8008 (ada_value_print_1): Use it.
8009
b9fa6e07
TT
80102020-03-13 Tom Tromey <tom@tromey.com>
8011
8012 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
8013
416595d6
TT
80142020-03-13 Tom Tromey <tom@tromey.com>
8015
8016 * ada-valprint.c (ada_value_print_ptr): New function.
8017 (ada_value_print_1): Use it.
8018
5b5e15ec
TT
80192020-03-13 Tom Tromey <tom@tromey.com>
8020
8021 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
8022 call common_val_print.
8023 (ada_val_print_1): Update.
8024 (ada_value_print_1): New function.
8025 (ada_value_print_inner): Rewrite.
8026
fbf54e75
TT
80272020-03-13 Tom Tromey <tom@tromey.com>
8028
8029 * cp-valprint.c (cp_print_value_fields): Update.
8030 (cp_print_value): New function.
8031
64b653ca
TT
80322020-03-13 Tom Tromey <tom@tromey.com>
8033
8034 * m2-valprint.c (m2_value_print_inner): Use
8035 cp_print_value_fields.
8036 * cp-valprint.c (cp_print_value_fields): New function.
8037 * c-valprint.c (c_value_print_struct): New function.
8038 (c_value_print_inner): Use c_value_print_struct.
8039 * c-lang.h (cp_print_value_fields): Declare.
8040
6999f067
TT
80412020-03-13 Tom Tromey <tom@tromey.com>
8042
8043 * c-valprint.c (c_value_print_array): New function.
8044 (c_value_print_inner): Use it.
8045
ce80b8bd
TT
80462020-03-13 Tom Tromey <tom@tromey.com>
8047
8048 * c-valprint.c (c_value_print_memberptr): New function.
8049 (c_value_print_inner): Use it.
8050
2faac269
TT
80512020-03-13 Tom Tromey <tom@tromey.com>
8052
8053 * c-valprint.c (c_value_print_int): New function.
8054 (c_value_print_inner): Use it.
8055
da3e2c29
TT
80562020-03-13 Tom Tromey <tom@tromey.com>
8057
8058 * c-valprint.c (c_value_print_ptr): New function.
8059 (c_value_print_inner): Use it.
8060
50836231
TT
80612020-03-13 Tom Tromey <tom@tromey.com>
8062
8063 * c-valprint.c (c_value_print_inner): Rewrite.
8064
4f412b6e
TT
80652020-03-13 Tom Tromey <tom@tromey.com>
8066
8067 * valprint.c (generic_value_print_complex): New function.
8068 (generic_value_print): Use it.
8069
f5354008
TT
80702020-03-13 Tom Tromey <tom@tromey.com>
8071
8072 * valprint.c (generic_val_print_float): Don't call
8073 val_print_scalar_formatted.
8074 (generic_val_print, generic_value_print): Update.
8075
3eec3b05
TT
80762020-03-13 Tom Tromey <tom@tromey.com>
8077
8078 * valprint.c (generic_value_print_char): New function
8079 (generic_value_print): Use it.
8080
fdddfccb
TT
80812020-03-13 Tom Tromey <tom@tromey.com>
8082
8083 * valprint.c (generic_value_print_int): New function.
8084 (generic_value_print): Use it.
8085
6dde7521
TT
80862020-03-13 Tom Tromey <tom@tromey.com>
8087
8088 * valprint.c (generic_value_print_bool): New function.
8089 (generic_value_print): Use it.
8090
4112d2e6
TT
80912020-03-13 Tom Tromey <tom@tromey.com>
8092
8093 * valprint.c (generic_val_print_func): Simplify.
8094 (generic_val_print, generic_value_print): Update.
8095
65786af6
TT
80962020-03-13 Tom Tromey <tom@tromey.com>
8097
8098 * valprint.c (generic_val_print_flags): Remove.
8099 (generic_val_print, generic_value_print): Update.
8100 (val_print_type_code_flags): Add original_value parameter.
8101
40f3ce18
TT
81022020-03-13 Tom Tromey <tom@tromey.com>
8103
8104 * valprint.c (generic_val_print): Update.
8105 (generic_value_print): Update.
8106 * valprint.c (generic_val_print_enum): Don't call
8107 val_print_scalar_formatted.
8108
2a5b130b
TT
81092020-03-13 Tom Tromey <tom@tromey.com>
8110
8111 * valprint.c (generic_value_print): Call generic_value_print_ptr.
8112 * valprint.c (generic_value_print_ptr): New function.
8113
abc66ce9
TT
81142020-03-13 Tom Tromey <tom@tromey.com>
8115
8116 * valprint.c (generic_value_print): Rewrite.
8117
07a32858
TT
81182020-03-13 Tom Tromey <tom@tromey.com>
8119
8120 * p-valprint.c (pascal_object_print_value_fields)
8121 (pascal_object_print_value): New functions.
8122
64d64d3a
TT
81232020-03-13 Tom Tromey <tom@tromey.com>
8124
8125 * p-valprint.c (pascal_value_print_inner): Rewrite.
8126
6a95a1f5
TT
81272020-03-13 Tom Tromey <tom@tromey.com>
8128
8129 * f-valprint.c (f_value_print_innner): Rewrite.
8130
59fcdac6
TT
81312020-03-13 Tom Tromey <tom@tromey.com>
8132
8133 * m2-valprint.c (m2_print_unbounded_array): New overload.
8134 (m2_print_unbounded_array): Update.
8135 (m2_print_array_contents): Take a struct value.
8136 (m2_value_print_inner): Rewrite.
8137
d133c3e1
TT
81382020-03-13 Tom Tromey <tom@tromey.com>
8139
8140 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
8141 (d_value_print_inner): New function.
8142 * d-lang.h (d_value_print_inner): Declare.
8143 * d-lang.c (d_language_defn): Use d_value_print_inner.
8144
23b0f06b
TT
81452020-03-13 Tom Tromey <tom@tromey.com>
8146
8147 * go-valprint.c (go_value_print_inner): New function.
8148 * go-lang.h (go_value_print_inner): Declare.
8149 * go-lang.c (go_language_defn): Use go_value_print_inner.
8150
5f56f7cb
TT
81512020-03-13 Tom Tromey <tom@tromey.com>
8152
8153 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
8154 API.
8155 (rust_val_print): Rewrite.
8156 (rust_value_print_inner): New function, from rust_val_print.
8157 (rust_language_defn): Use rust_value_print_inner.
8158
26792ee0
TT
81592020-03-13 Tom Tromey <tom@tromey.com>
8160
8161 * ada-valprint.c (ada_value_print_inner): New function.
8162 * ada-lang.h (ada_value_print_inner): Declare.
8163 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
8164
24051bbe
TT
81652020-03-13 Tom Tromey <tom@tromey.com>
8166
8167 * f-valprint.c (f_value_print_innner): New function.
8168 * f-lang.h (f_value_print_innner): Declare.
8169 * f-lang.c (f_language_defn): Use f_value_print_innner.
8170
c0941be6
TT
81712020-03-13 Tom Tromey <tom@tromey.com>
8172
8173 * p-valprint.c (pascal_value_print_inner): New function.
8174 * p-lang.h (pascal_value_print_inner): Declare.
8175 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
8176
62c4663d
TT
81772020-03-13 Tom Tromey <tom@tromey.com>
8178
8179 * m2-valprint.c (m2_value_print_inner): New function.
8180 * m2-lang.h (m2_value_print_inner): Declare.
8181 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
8182
62182190
TT
81832020-03-13 Tom Tromey <tom@tromey.com>
8184
8185 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
8186 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
8187 * c-valprint.c (c_value_print_inner): New function.
8188 * c-lang.h (c_value_print_inner): Declare.
8189 * c-lang.c (c_language_defn, cplus_language_defn)
8190 (asm_language_defn, minimal_language_defn): Use
8191 c_value_print_inner.
8192
1e592a8a
TT
81932020-03-13 Tom Tromey <tom@tromey.com>
8194
8195 * p-valprint.c (pascal_object_print_value_fields): Now static.
8196 * p-lang.h (pascal_object_print_value_fields): Don't declare.
8197
7fe471e9
TT
81982020-03-13 Tom Tromey <tom@tromey.com>
8199
8200 * c-valprint.c (c_val_print_array): Simplify.
8201
d121c6ce
TT
82022020-03-13 Tom Tromey <tom@tromey.com>
8203
8204 * valprint.c (value_print_array_elements): New function.
8205 * valprint.h (value_print_array_elements): Declare.
8206
4dba70ee
TT
82072020-03-13 Tom Tromey <tom@tromey.com>
8208
8209 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
8210 * mips-tdep.c (mips_print_register): Use
8211 value_print_scalar_formatted.
8212
4f9ae810
TT
82132020-03-13 Tom Tromey <tom@tromey.com>
8214
8215 * valprint.h (value_print_scalar_formatted): Declare.
8216 * valprint.c (value_print_scalar_formatted): New function.
8217
156bfec9
TT
82182020-03-13 Tom Tromey <tom@tromey.com>
8219
8220 * valprint.h (generic_value_print): Declare.
8221 * valprint.c (generic_value_print): New function.
8222
2b4e573d
TT
82232020-03-13 Tom Tromey <tom@tromey.com>
8224
8225 * valprint.c (do_val_print): Call la_value_print_inner, if
8226 available.
8227 * rust-lang.c (rust_language_defn): Update.
8228 * p-lang.c (pascal_language_defn): Update.
8229 * opencl-lang.c (opencl_language_defn): Update.
8230 * objc-lang.c (objc_language_defn): Update.
8231 * m2-lang.c (m2_language_defn): Update.
8232 * language.h (struct language_defn) <la_value_print_inner>: New
8233 member.
8234 * language.c (unknown_language_defn, auto_language_defn): Update.
8235 * go-lang.c (go_language_defn): Update.
8236 * f-lang.c (f_language_defn): Update.
8237 * d-lang.c (d_language_defn): Update.
8238 * c-lang.c (c_language_defn, cplus_language_defn)
8239 (asm_language_defn, minimal_language_defn): Update.
8240 * ada-lang.c (ada_language_defn): Update.
8241
a1f6a07c
TT
82422020-03-13 Tom Tromey <tom@tromey.com>
8243
8244 * c-valprint.c (c_value_print): Use common_val_print.
8245
410cf315
TT
82462020-03-13 Tom Tromey <tom@tromey.com>
8247
8248 * cp-valprint.c (cp_print_static_field): Use common_val_print.
8249
72a45c93
TT
82502020-03-13 Tom Tromey <tom@tromey.com>
8251
8252 * f-valprint.c (f77_print_array_1, f_val_print): Use
8253 common_val_print.
8254
040f66bd
TT
82552020-03-13 Tom Tromey <tom@tromey.com>
8256
8257 * riscv-tdep.c (riscv_print_one_register_info): Use
8258 common_val_print.
8259
a6e05a6c
TT
82602020-03-13 Tom Tromey <tom@tromey.com>
8261
8262 * mi/mi-main.c (output_register): Use common_val_print.
8263
3444c526
TT
82642020-03-13 Tom Tromey <tom@tromey.com>
8265
8266 * infcmd.c (default_print_one_register_info): Use
8267 common_val_print.
8268
c2a44efe
TT
82692020-03-13 Tom Tromey <tom@tromey.com>
8270
8271 * valprint.h (common_val_print_checked): Declare.
8272 * valprint.c (common_val_print_checked): New function.
8273 * stack.c (print_frame_arg): Use common_val_print_checked.
8274
b0c26e99
TT
82752020-03-13 Tom Tromey <tom@tromey.com>
8276
8277 * valprint.c (do_val_print): New function, from val_print.
8278 (val_print): Use do_val_print.
8279 (common_val_print): Use do_val_print.
8280
ce3acbe9
TT
82812020-03-13 Tom Tromey <tom@tromey.com>
8282
8283 * valprint.c (value_print): Use scoped_value_mark.
8284
96c7f873
TV
82852020-03-13 Tom de Vries <tdevries@suse.de>
8286
8287 PR symtab/25646
8288 * psymtab.c (partial_symtab::partial_symtab): Don't set
8289 globals_offset and statics_offset. Push element onto
8290 current_global_psymbols and current_static_psymbols stacks.
8291 (concat): New function.
8292 (end_psymtab_common): Set globals_offset and statics_offset. Pop
8293 element from current_global_psymbols and current_static_psymbols
8294 stacks. Concat popped elements to global_psymbols and
8295 static_symbols.
8296 (add_psymbol_to_list): Use current_global_psymbols and
8297 current_static_psymbols stacks.
8298 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
8299 current_static_psymbols fields.
8300
6ba0a321
CB
83012020-03-12 Christian Biesinger <cbiesinger@google.com>
8302
8303 * corelow.c (sniff_core_bfd): Remove.
8304 (class core_target) <m_core_vec>: Remove.
8305 (core_target::core_target): Update.
8306 (core_file_fns): Remove.
8307 (deprecated_add_core_fns): Remove.
8308 (default_core_sniffer): Remove.
8309 (sniff_core_bfd): Remove.
8310 (default_check_format): Remove.
8311 (gdb_check_format): Remove.
8312 (core_target_open): Update.
8313 (core_target::get_core_register_section): Update.
8314 (get_core_registers_cb): Update.
8315 (core_target::fetch_registers): Update.
8316 * gdbcore.h (struct core_fns): Remove.
8317 (deprecated_add_core_fns): Remove.
8318 (default_core_sniffer): Remove.
8319 (default_check_format): Remove.
8320
227031b2
TT
83212020-03-12 Tom Tromey <tom@tromey.com>
8322
8323 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
8324 CORE_ADDR.
8325 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
8326
53807e9f
TT
83272020-03-12 Tom Tromey <tom@tromey.com>
8328
8329 * remote.c (remote_target::download_tracepoint)
8330 (remote_target::enable_tracepoint)
8331 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
8332 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
8333 sprintf_vma.
8334
64f25102
TT
83352020-03-12 Tom Tromey <tom@tromey.com>
8336
8337 * symfile-mem.c: Update CORE_ADDR size assert.
8338
272cd5a3
SM
83392020-03-12 Simon Marchi <simon.marchi@efficios.com>
8340
8341 * selftest.m4: Move to gdbsupport/.
8342 * acinclude.m4: Update path to selftest.m4.
8343
74cd3f9d
SM
83442020-03-12 Simon Marchi <simon.marchi@efficios.com>
8345
8346 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
8347 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
8348 gdbarch-selfselftests.c and selftest-arch.c.
8349 (SUBDIR_UNITTESTS_OBS): Rename to...
8350 (SELFTESTS_OBS): ... this.
8351 (COMMON_SFILES): Remove disasm-selftests.c and
8352 gdbarch-selftests.c.
8353 * configure.ac: Don't add selftest-arch.{c,o} to
8354 CONFIG_{SRCS,OBS}.
8355 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
8356 preprocessor conditions.
8357
db6878ac
SM
83582020-03-12 Simon Marchi <simon.marchi@efficios.com>
8359
8360 * configure.ac: Don't source bfd/development.sh.
8361 * selftest.m4: Modify comment.
8362 * configure: Re-generate.
8363
4d696a5c
SM
83642020-03-12 Simon Marchi <simon.marchi@efficios.com>
8365
8366 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
8367 not "true" or "false".
8368 * configure: Re-generate.
8369
8dd8e1c7
CB
83702020-03-12 Christian Biesinger <cbiesinger@google.com>
8371
8372 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
8373 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
8374 renamed to arm_nbsd_supply_gregset.
8375 (fetch_register): Update to call arm_nbsd_supply_gregset.
8376 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
8377 (arm_netbsd_nat_target::fetch_registers): Update.
8378 (fetch_elfcore_registers): Removed.
8379 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
8380 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
8381 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
8382 not require NetBSD system headers.
8383 (arm_nbsd_regset): New struct.
8384 (arm_nbsd_iterate_over_regset_sections): New function.
8385 (arm_netbsd_init_abi_common): Updated to call
8386 set_gdbarch_iterate_over_regset_sections.
8387 * arm-nbsd-tdep.h: New file.
8388
dd69bf7a
KB
83892020-03-11 Kevin Buettner <kevinb@redhat.com>
8390
8391 * symtab.c (find_pc_sect_line): Add check which prevents infinite
8392 recursion.
8393
a0761e34
SM
83942020-03-11 Simon Marchi <simon.marchi@efficios.com>
8395
8396 * configure: Re-generate.
8397
e7a82140
TT
83982020-03-11 Tom Tromey <tromey@adacore.com>
8399
8400 * ada-typeprint.c (print_choices): Fix comment.
8401
dcc050c8
AB
84022020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
8403
8404 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
8405 previous item in the list, when the list has no items.
8406
1c33af77
TV
84072020-03-11 Tom de Vries <tdevries@suse.de>
8408
8409 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
8410 PROP_LOCLIST handling code.
8411
8c95582d
AB
84122020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
8413
8414 * buildsym-legacy.c (record_line): Pass extra parameter to
8415 record_line.
8416 * buildsym.c (buildsym_compunit::record_line): Take an extra
8417 parameter, reduce duplication in the line table, and record the
8418 is_stmt flag in the line table.
8419 * buildsym.h (buildsym_compunit::record_line): Add extra
8420 parameter.
8421 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
8422 non-statement lines.
8423 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
8424 this to the symtab builder.
8425 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
8426 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
8427 through to dwarf_record_line_1.
8428 * infrun.c (process_event_stop_test): When stepping, don't stop at
8429 a non-statement instruction, and only refresh the step info when
8430 we land in the middle of a line's range. Also add an extra
8431 comment.
8432 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
8433 field.
8434 * record-btrace.c (btrace_find_line_range): Only record lines
8435 marked as is-statement.
8436 * stack.c (frame_show_address): Show the frame address if we are
8437 in a non-statement sal.
8438 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
8439 (maintenance_print_one_line_table): Print a header for the is_stmt
8440 column, and include is_stmt information in the output.
8441 * symtab.c (find_pc_sect_line): Find lines marked as statements in
8442 preference to non-statements.
8443 (find_pcs_for_symtab_line): Prefer is-statement entries.
8444 (find_line_common): Likewise.
8445 * symtab.h (struct linetable_entry): Add is_stmt field.
8446 (struct symtab_and_line): Likewise.
8447 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
8448 arranging the line table.
8449
e4003a34
TV
84502020-03-07 Tom de Vries <tdevries@suse.de>
8451
8452 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
8453 DIE.
8454
e8932576
TT
84552020-03-07 Tom Tromey <tom@tromey.com>
8456
8457 * valops.c (value_literal_complex): Remove obsolete comment.
8458 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
8459 comment.
8460
29734269
SM
84612020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
8462
8463 * infrun.h: Forward-declare thread_info.
8464 (set_step_info): Add thread_info parameter, add doc.
8465 * infrun.c (set_step_info): Add thread_info parameter, move doc
8466 to header.
8467 * infrun.c (process_event_stop_test): Pass thread to
8468 set_step_info call.
8469 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
8470 set_step_info.
8471 (prepare_one_step): Add thread_info parameter, pass it to
8472 set_step_frame and prepare_one_step (recursive) call.
8473 (step_1): Pass thread to prepare_one_step call.
8474 (step_command_fsm::should_stop): Pass thread to
8475 prepare_one_step.
8476 (until_next_fsm): Pass thread to set_step_frame call.
8477 (finish_command): Pass thread to set_step_info call.
8478
b7d64b29
HD
84792020-03-06 Hannes Domani <ssbssa@yahoo.de>
8480
8481 * windows-tdep.c (windows_solib_create_inferior_hook):
8482 Check if inferior is running.
8483
09f2921c
TV
84842020-03-06 Tom de Vries <tdevries@suse.de>
8485
8486 * NEWS: Fix "the the".
8487 * ctfread.c: Same.
8488
fd760e79
TV
84892020-03-06 Tom de Vries <tdevries@suse.de>
8490
8491 * psymtab.c (psymtab_to_symtab): Don't print "done.".
8492
20ea4a60
AB
84932020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
8494
8495 * .dir-locals.el: Add a comment referencing the other copies of
8496 this file.
8497
0afbabf0
JB
84982020-03-05 John Baldwin <jhb@FreeBSD.org>
8499
8500 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
8501 psargs.
8502
842806cb
TBA
85032020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8504
8505 * .gitattributes: New file.
8506
be1e3d3e
TT
85072020-03-04 Tom Tromey <tom@tromey.com>
8508
8509 * symmisc.c (print_symbol_bcache_statistics)
8510 (print_objfile_statistics): Update.
8511 * symfile.c (allocate_symtab): Use intern.
8512 * psymtab.c (partial_symtab::partial_symtab): Use intern.
8513 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
8514 macro_cache>: Remove.
8515 <string_cache>: New member.
8516 (struct objfile) <intern>: New methods.
8517 * elfread.c (elf_symtab_read): Use intern.
8518 * dwarf2/read.c (fixup_go_packaging): Intern package name.
8519 (dwarf2_compute_name, dwarf2_physname)
8520 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
8521 names.
8522 (guess_partial_die_structure_name): Update.
8523 (partial_die_info::fixup): Intern name.
8524 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
8525 name.
8526 (dwarf2_name): Intern name. Update.
8527 * buildsym.c (buildsym_compunit::get_macro_table): Use
8528 string_cache.
8529
4e7625fd
TT
85302020-03-04 Tom Tromey <tom@tromey.com>
8531
8532 * jit.c (bfd_open_from_target_memory): Make "target" const.
8533 * corefile.c (gnutarget): Now const.
8534 * gdbcore.h (gnutarget): Now const.
8535
46f9f931
HD
85362020-03-04 Hannes Domani <ssbssa@yahoo.de>
8537
8538 * NEWS: Mention support for WOW64 processes.
8539 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
8540 (amd64_windows_segment_register_p): Remove static.
8541 (_initialize_amd64_windows_nat): Update.
8542 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
8543 * i386-windows-nat.c (context_offset): Update.
8544 (i386_mappings): Rename and remove static.
8545 (i386_windows_segment_register_p): Remove static.
8546 (_initialize_i386_windows_nat): Update.
8547 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
8548 (STATUS_WX86_SINGLE_STEP): New macro.
8549 (EnumProcessModulesEx): New macro.
8550 (Wow64SuspendThread): New macro.
8551 (Wow64GetThreadContext): New macro.
8552 (Wow64SetThreadContext): New macro.
8553 (Wow64GetThreadSelectorEntry): New macro.
8554 (windows_set_context_register_offsets): Add static.
8555 (windows_set_segment_register_p): Likewise.
8556 (windows_add_thread): Adapt for WOW64 processes.
8557 (windows_fetch_one_register): Likewise.
8558 (windows_nat_target::fetch_registers): Likewise.
8559 (windows_store_one_register): Likewise.
8560 (display_selector): Likewise.
8561 (display_selectors): Likewise.
8562 (handle_exception): Likewise.
8563 (windows_continue): Likewise.
8564 (windows_nat_target::resume): Likewise.
8565 (windows_add_all_dlls): Likewise.
8566 (do_initial_windows_stuff): Likewise.
8567 (windows_nat_target::attach): Likewise.
8568 (windows_get_exec_module_filename): Likewise.
8569 (windows_nat_target::create_inferior): Likewise.
8570 (windows_xfer_siginfo): Likewise.
8571 (_initialize_loadable): Initialize Wow64SuspendThread,
8572 Wow64GetThreadContext, Wow64SetThreadContext,
8573 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
8574 * windows-nat.h (windows_set_context_register_offsets):
8575 Remove declaration.
8576 (windows_set_segment_register_p): Likewise.
8577 (i386_windows_segment_register_p): Add declaration.
8578 (amd64_windows_segment_register_p): Likewise.
8579
440cf44e
LM
85802020-03-04 Luis Machado <luis.machado@linaro.org>
8581
8582 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
8583 in "info registers" for AArch64/ARM.
8584
8585 The change caused "info registers" to not print GPR's.
8586
8587 gdb/ChangeLog:
8588
8589 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
8590
8591 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
8592 when reg->group is empty and reggroup is not.
8593
1009d92f
TT
85942020-03-03 Tom Tromey <tromey@adacore.com>
8595
8596 * dwarf2/frame.c (struct dwarf2_frame_cache)
8597 <checked_tailcall_bottom, entry_cfa_sp_offset,
8598 entry_cfa_sp_offset_p>: Remove members.
8599 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
8600 (dwarf2_frame_prev_register): Don't call
8601 dwarf2_tailcall_sniffer_first.
8602 (dwarf2_append_unwinders): Don't append tailcall unwinder.
8603 * frame-unwind.c (add_unwinder): New fuction.
8604 (frame_unwind_init): Use it. Add tailcall unwinder.
8605
5e5d66b6
AB
86062020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
8607 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
8608
8609 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
8610 value should be printed as true.
8611
584cf46d
HD
86122020-03-03 Hannes Domani <ssbssa@yahoo.de>
8613
8614 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
8615 (windows_init_abi): Set and use windows_so_ops.
8616
7b973adc
SDJ
86172020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
8618
8619 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
8620 when verifying if dealing with a convenience variable.
8621
bb7b70ab
LM
86222020-03-03 Luis Machado <luis.machado@linaro.org>
8623
8624 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
8625
9822cb57
SM
86262020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
8627
8628 * infrun.c (gdbarch_supports_displaced_stepping): New.
8629 (use_displaced_stepping): Break up conditions in smaller pieces.
8630 Use gdbarch_supports_displaced_stepping.
8631 (displaced_step_prepare_throw): Use
8632 gdbarch_supports_displaced_stepping.
8633
63e163f2
AB
86342020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
8635
8636 * NEWS: Mention new behaviour of the history filename.
8637 * top.c (write_history_p): Add comment.
8638 (show_write_history_p): Add header comment, give a different
8639 message when history writing is on, but the history filename is
8640 empty.
8641 (history_filename): Add comment.
8642 (history_filename_empty): New function.
8643 (show_history_filename): Add header comment, give a different
8644 message when the filename is empty.
8645 (init_history): Compare history_filename against nullptr, and only
8646 read history if the filename is not empty.
8647 (set_history_filename): Add header comment, and only make
8648 non-empty filenames absolute.
8649 (init_main): Make the filename argument to 'set history filename'
8650 optional.
8651
81b86b97
CB
86522020-03-02 Christian Biesinger <cbiesinger@google.com>
8653
8654 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
8655 (arm_supply_vfpregset): ...this, and update to use VFP registers.
8656 (fetch_fp_register): Update.
8657 (fetch_fp_regs): Update.
8658 (store_fp_register): Update.
8659 (store_fp_regs): Update.
8660 (arm_netbsd_nat_target::read_description): New function.
8661 (fetch_elfcore_registers): Update.
8662
24ed6739
AB
86632020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
8664
8665 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
8666 general_thread if the stop reply is missing a thread-id.
8667 (remote_target::process_stop_reply): Use the first non-exited
8668 thread if the target didn't pass a thread-id.
8669 * infrun.c (do_target_wait): Move call to
8670 switch_to_inferior_no_thread to ....
8671 (do_target_wait_1): ... here.
8672
a84bb2a0
JT
86732020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
8674
8675 * debuginfod-support.c: Include defs.h first.
8676
658dadf0
TV
86772020-02-28 Tom de Vries <tdevries@suse.de>
8678
8679 * symfile.c (set_initial_language): Use default language for lookup.
8680
4ebe4877
SM
86812020-02-28 Simon Marchi <simon.marchi@efficios.com>
8682
8683 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
8684 reader variable, pass `this` to read_cutu_die_from_dwo.
8685
e5da1139
AM
86862020-02-27 Aaron Merey <amerey@redhat.com>
8687
8688 * source.c (open_source_file): Check for nullptr when computing
8689 srcpath.
8690
317f7127
TT
86912020-02-27 Tom Tromey <tromey@adacore.com>
8692
8693 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
8694 member.
8695 (dwarf2_add_field): Don't update nfields.
8696 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
8697
3104d9ee
AB
86982020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8699
8700 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
8701 abs.
8702
b83470bf
TT
87032020-02-26 Tom Tromey <tom@tromey.com>
8704
8705 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
8706 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
8707 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
8708 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
8709 per_cu_data.
8710
edfe0a0c
TT
87112020-02-26 Tom Tromey <tom@tromey.com>
8712
8713 * dwarf2/index-write.c (psym_index_map): Change type.
8714 (add_address_entry_worker, write_one_signatured_type)
8715 (recursively_count_psymbols, recursively_write_psymbols)
8716 (class debug_names, psyms_seen_size, write_gdbindex)
8717 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
8718
0d79cdc4
AM
87192020-02-26 Aaron Merey <amerey@redhat.com>
8720
8721 * Makefile.in: Handle optional debuginfod support.
8722 * NEWS: Update.
8723 * README: Add --with-debuginfod summary.
8724 * config.in: Regenerate.
8725 * configure: Regenerate.
8726 * configure.ac: Handle optional debuginfod support.
8727 * debuginfod-support.c: debuginfod helper functions.
8728 * debuginfod-support.h: Ditto.
8729 * doc/gdb.texinfo: Add --with-debuginfod to configure options
8730 summary.
8731 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
8732 when a dwz file cannot be found.
8733 * elfread.c (elf_symfile_read): Query debuginfod servers when a
8734 debuginfo file cannot be found.
8735 * source.c (open_source_file): Query debuginfod servers when a
8736 source file cannot be found.
8737 * top.c (print_gdb_configuration): Include
8738 --{with,without}-debuginfod in the output.
8739
b65ce565
JG
87402020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
8741
8742 * thread.c (thr_try_catch_cmd): Print thread name.
8743
d4c9a4f8
SM
87442020-02-26 Simon Marchi <simon.marchi@efficios.com>
8745
8746 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
8747 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
8748 dwarf2_fetch_die_type_sect_off): Move to...
8749 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
8750 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
8751 dwarf2_fetch_die_type_sect_off): ... here.
8752 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
8753 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
8754 dwarf2_fetch_die_type_sect_off): Move doc to header file.
8755
0dce4280
TV
87562020-02-26 Tom de Vries <tdevries@suse.de>
8757
8758 PR gdb/25603
8759 * symfile.c (set_initial_language): Exit-early if
8760 language_mode == language_mode_manual.
8761
450a1bfc
SM
87622020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
8763
8764 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
8765 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
8766 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
8767
9e80cfa1
AB
87682020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
8769
8770 * gdbtypes.c (create_array_type_with_stride): Handle negative
8771 array strides.
8772 * valarith.c (value_subscripted_rvalue): Likewise.
8773
09624f1f
LM
87742020-02-25 Luis Machado <luis.machado@linaro.org>
8775
8776 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
8777
8cb5117c
SM
87782020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
8779
8780 * loc.h (dwarf2_get_die_type): Move to...
8781 * read.h (dwarf2_get_die_type): ... here.
8782 * read.c (dwarf2_get_die_type): Move doc to header.
8783
c325c44e
JB
87842020-02-25 Joel Brobecker <brobecker@adacore.com>
8785
8786 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
8787 'gnulib/Makefile.in' to the list.
8788
4ac93832
TT
87892020-02-24 Tom Tromey <tom@tromey.com>
8790
8791 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
8792 Remove.
8793 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
8794 XOBNEWVEC.
8795
197400e8
TT
87962020-02-24 Tom Tromey <tom@tromey.com>
8797
8798 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
8799 New method.
8800 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
8801 (dw2_do_instantiate_symtab, dw2_get_file_names)
8802 (build_type_psymtab_dependencies, load_full_type_unit): Update.
8803
76935768
TT
88042020-02-24 Tom Tromey <tom@tromey.com>
8805
8806 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
8807 make_scoped_restore.
8808 (dwarf2_psymtab::read_symtab): Don't clear
8809 reading_partial_symbols.
8810
a88ef40d
TV
88112020-02-24 Tom de Vries <tdevries@suse.de>
8812
8813 PR gdb/25592
8814 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
8815
c9af6521
TV
88162020-02-24 Tom de Vries <tdevries@suse.de>
8817
8818 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
8819 commands layout next/prev/regs.
8820
5707a07a
TT
88212020-02-22 Tom Tromey <tom@tromey.com>
8822
8823 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
8824 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
8825
3b0fb49e
TT
88262020-02-22 Tom Tromey <tom@tromey.com>
8827
8828 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
8829
283be8bf
TT
88302020-02-22 Tom Tromey <tom@tromey.com>
8831
8832 * tui/tui-win.c (_initialize_tui_win): Add usage text.
8833 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
8834 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
8835 * tui/tui.c (_initialize_tui): Add usage text.
8836
ca793b96
TT
88372020-02-22 Tom Tromey <tom@tromey.com>
8838
8839 * tui/tui-win.c (tui_set_focus_command)
8840 (tui_set_win_height_command): Use error_no_arg.
8841 (_initialize_tui_win): Update help text.
8842 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
8843
432b5c40
TT
88442020-02-22 Tom Tromey <tom@tromey.com>
8845
8846 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
8847 * tui/tui-disasm.h (struct tui_disasm_window)
8848 <display_start_addr>: Declare.
8849 * tui/tui-source.h (struct tui_source_window)
8850 <display_start_addr>: Declare.
8851 * tui/tui-winsource.h (struct tui_source_window_base)
8852 <show_source_line, display_start_addr>: New methods.
8853 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
8854 Rename and move to protected section.
8855 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
8856 (tui_source_window_base::do_erase_source_content): Update.
8857 (tui_source_window_base::show_source_line): Now a method.
8858 (tui_source_window_base::show_source_content)
8859 (tui_source_window_base::tui_source_window_base)
8860 (tui_source_window_base::rerender)
8861 (tui_source_window_base::refill)
8862 (tui_source_window_base::do_scroll_horizontal)
8863 (tui_source_window_base::set_is_exec_point_at)
8864 (tui_source_window_base::update_breakpoint_info)
8865 (tui_source_window_base::update_exec_info): Update.
8866 * tui/tui-source.c (tui_source_window::set_contents)
8867 (tui_source_window::showing_source_p)
8868 (tui_source_window::do_scroll_vertical)
8869 (tui_source_window::location_matches_p)
8870 (tui_source_window::line_is_displayed): Update.
8871 (tui_source_window::display_start_addr): New method.
8872 * tui/tui-disasm.c (tui_disasm_window::set_contents)
8873 (tui_disasm_window::do_scroll_vertical)
8874 (tui_disasm_window::location_matches_p): Update.
8875 (tui_disasm_window::display_start_addr): New method.
8876
01b1af32
TT
88772020-02-22 Tom Tromey <tom@tromey.com>
8878
8879 * NEWS: Add entry for gdb.register_window_type.
8880 * tui/tui-layout.h (window_factory): New typedef.
8881 (tui_register_window): Declare.
8882 * tui/tui-layout.c (saved_tui_windows): New global.
8883 (tui_apply_current_layout): Use it.
8884 (tui_register_window): New function.
8885 * python/python.c (do_start_initialization): Call
8886 gdbpy_initialize_tui.
8887 (python_GdbMethods): Add "register_window_type" function.
8888 * python/python-internal.h (gdbpy_register_tui_window)
8889 (gdbpy_initialize_tui): Declare.
8890 * python/py-tui.c: New file.
8891 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
8892
fc96d20b
TT
88932020-02-22 Tom Tromey <tom@tromey.com>
8894
8895 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
8896
935c78c0
TT
88972020-02-22 Tom Tromey <tom@tromey.com>
8898
8899 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
8900 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
8901 * tui/tui-data.c (tui_set_win_with_focus): Remove.
8902 (tui_set_win_focus_to): Move from tui-win.c.
8903
0240c8f1
TT
89042020-02-22 Tom Tromey <tom@tromey.com>
8905
8906 * tui/tui-layout.c (make_standard_window, get_locator_window): New
8907 functions.
8908 (known_window_types): New global.
8909 (tui_get_window_by_name): Reimplement.
8910 (initialize_known_windows): New function.
8911 (validate_window_name): Rewrite.
8912 (_initialize_tui_layout): Call initialize_known_windows.
8913
fdb01f0c
TT
89142020-02-22 Tom Tromey <tom@tromey.com>
8915
8916 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
8917 Remove constants.
8918 * tui/tui-winsource.h (struct tui_source_window_base)
8919 <tui_source_window_base>: Remove parameter.
8920 * tui/tui-winsource.c
8921 (tui_source_window_base::tui_source_window_base): Remove
8922 parameter.
8923 (tui_source_window_base::refill): Update.
8924 * tui/tui-stack.h (struct tui_locator_window)
8925 <tui_locator_window>: Update.
8926 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
8927 Default the constructor.
8928 * tui/tui-regs.h (struct tui_data_item_window)
8929 <tui_data_item_window>: Default the constructor.
8930 (struct tui_data_window) <tui_data_window>: Likewise.
8931 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
8932 Default the constructor.
8933 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
8934 Default the constructor.
8935 <type>: Remove.
8936 (struct tui_win_info) <tui_win_info>: Default the constructor.
8937 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
8938 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
8939 Default the constructor.
8940
865a5aec
TT
89412020-02-22 Tom Tromey <tom@tromey.com>
8942
8943 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
8944 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
8945 * tui/tui-win.c (tui_resize_all): Don't call
8946 tui_delete_invisible_windows.
8947 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
8948 done.
8949 (tui_set_layout): Update.
8950 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
8951 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
8952 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
8953
e098d18c
TT
89542020-02-22 Tom Tromey <tom@tromey.com>
8955
8956 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
8957 correctly.
8958
eb9c8874
TT
89592020-02-22 Tom Tromey <tom@tromey.com>
8960
8961 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
8962
7eed1a8e
TT
89632020-02-22 Tom Tromey <tom@tromey.com>
8964
8965 * tui/tui-winsource.h (struct tui_source_window_iterator)
8966 <inner_iterator>: New etytypedef.
8967 <tui_source_window_iterator>: Take "end" parameter.
8968 <tui_source_window_iterator>: Take iterator.
8969 <operator*, advance>: Update.
8970 <m_iter>: Change type.
8971 <m_end>: New field.
8972 (struct tui_source_windows) <begin, end>: Update.
8973 * tui/tui-layout.c (tui_windows): New global.
8974 (tui_apply_current_layout): Clear tui_windows.
8975 (tui_layout_window::apply): Update tui_windows.
8976 * tui/tui-data.h (tui_windows): Declare.
8977 (all_tui_windows): Now inline function.
8978 (class tui_window_iterator, struct all_tui_windows): Remove.
8979
7c043ba6
TT
89802020-02-22 Tom Tromey <tom@tromey.com>
8981
8982 PR tui/17850:
8983 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
8984 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
8985 "height" argument.
8986 (class tui_layout_window) <get_sizes>: Likewise.
8987 (class tui_layout_split) <tui_layout_split>: Add "vertical"
8988 argument.
8989 <get_sizes>: Add "height" argument.
8990 <m_vertical>: New field.
8991 * tui/tui-layout.c (tui_layout_split::clone): Update.
8992 (tui_layout_split::get_sizes): Add "height" argument.
8993 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
8994 (tui_new_layout_command): Parse "-horizontal".
8995 (_initialize_tui_layout): Update help string.
8996 (tui_layout_split::specification): Add "-horizontal" when needed.
8997 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
8998 argument.
8999 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
9000 New methods.
9001
6bc56648
TT
90022020-02-22 Tom Tromey <tom@tromey.com>
9003
9004 * tui/tui-layout.h (enum tui_adjust_result): New.
9005 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
9006 (class tui_layout_window) <adjust_size>: Return
9007 tui_adjust_result. Rewrite.
9008 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
9009 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
9010
c22fef7e
TT
90112020-02-22 Tom Tromey <tom@tromey.com>
9012
9013 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
9014 parameter and return types.
9015 (class tui_layout_base) <specification>: Add "depth".
9016 (class tui_layout_window) <specification>: Add "depth".
9017 (class tui_layout_split) <specification>: Add "depth".
9018 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
9019 and return types.
9020 (tui_new_layout_command): Parse sub-layouts.
9021 (_initialize_tui_layout): Update help string.
9022 (tui_layout_window::specification): Add "depth".
9023 (add_layout_command): Update.
9024
ee325b61
TT
90252020-02-22 Tom Tromey <tom@tromey.com>
9026
9027 * NEWS: Add "tui new-layout" item.
9028 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
9029 Add new-layout command to help text.
9030 (validate_window_name): New function.
9031 (tui_new_layout_command): New function.
9032 (_initialize_tui_layout): Register "new-layout".
9033 (tui_layout_window::specification): New method.
9034 (tui_layout_window::specification): New method.
9035 * tui/tui-layout.h (class tui_layout_base) <specification>: New
9036 method.
9037 (class tui_layout_window) <specification>: New method.
9038 (class tui_layout_split) <specification>: New method.
9039
416eb92d
TT
90402020-02-22 Tom Tromey <tom@tromey.com>
9041
9042 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
9043 * tui/tui-win.c (window_name_completer): Update comment.
9044 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
9045 Declare method.
9046 (class tui_layout_window) <replace_window>: Likewise.
9047 (class tui_layout_split) <replace_window>: Likewise.
9048 (tui_set_layout): Don't declare.
9049 (tui_set_initial_layout): Declare function.
9050 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
9051 (asm_regs_layout): New globals.
9052 (tui_current_layout, show_layout): Remove.
9053 (tui_set_layout, tui_add_win_to_layout): Rewrite.
9054 (find_layout, tui_apply_layout): New function.
9055 (layout_completer): Remove.
9056 (tui_next_layout): Reimplement.
9057 (tui_next_layout_command): New function.
9058 (tui_set_initial_layout, tui_prev_layout_command): New functions.
9059 (tui_regs_layout): Reimplement.
9060 (tui_regs_layout_command): New function.
9061 (extract_display_start_addr): Rewrite.
9062 (next_layout, prev_layout): Remove.
9063 (tui_layout_window::replace_window): New method.
9064 (tui_layout_split::replace_window): New method.
9065 (destroy_layout): New function.
9066 (layout_list): New global.
9067 (add_layout_command): New function.
9068 (initialize_layouts): Update.
9069 (tui_layout_command): New function.
9070 (_initialize_tui_layout): Install "layout" commands.
9071 * tui/tui-data.h (enum tui_layout_type): Remove.
9072 (tui_current_layout): Don't declare.
9073
0dbc2fc7
TT
90742020-02-22 Tom Tromey <tom@tromey.com>
9075
9076 * tui/tui-regs.c (tui_reg_layout): Remove.
9077 (tui_reg_command): Use tui_regs_layout.
9078 * tui/tui-layout.h (tui_reg_command): Declare.
9079 * tui/tui-layout.c (tui_reg_command): New function.
9080
5afe342e
TT
90812020-02-22 Tom Tromey <tom@tromey.com>
9082
9083 * tui/tui.c (tui_rl_delete_other_windows): Call
9084 tui_remove_some_windows.
9085 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
9086 Declare method.
9087 (class tui_layout_window) <remove_windows>: New method.
9088 (class tui_layout_split) <remove_windows>: Declare.
9089 (tui_remove_some_windows): Declare.
9090 * tui/tui-layout.c (tui_remove_some_windows): New function.
9091 (tui_layout_split::remove_windows): New method.
9092
427326a8
TT
90932020-02-22 Tom Tromey <tom@tromey.com>
9094
9095 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
9096 * tui/tui-layout.h (tui_next_layout): Declare.
9097 * tui/tui-layout.c (tui_next_layout): New function.
9098
3fe12b6d
TT
90992020-02-22 Tom Tromey <tom@tromey.com>
9100
9101 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
9102 correct coordinates.
9103
59b8b5d2
TT
91042020-02-22 Tom Tromey <tom@tromey.com>
9105
9106 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
9107 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
9108 DATA_WIN case.
9109
2a3d458b
TT
91102020-02-22 Tom Tromey <tom@tromey.com>
9111
9112 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
9113 TUI_DISASM_WIN, not tui_win_list.
9114
3f0cbb04
TT
91152020-02-22 Tom Tromey <tom@tromey.com>
9116
9117 * valprint.c (generic_val_print_enum_1)
9118 (val_print_type_code_flags): Style member names.
9119 * rust-lang.c (val_print_struct, rust_print_enum)
9120 (rust_print_struct_def, rust_internal_print_type): Style member
9121 names.
9122 * p-valprint.c (pascal_object_print_value_fields): Style member
9123 names. Only call fprintf_symbol_filtered for static members.
9124 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
9125 * f-valprint.c (f_val_print): Style member names.
9126 * f-typeprint.c (f_type_print_base): Style member names.
9127 * cp-valprint.c (cp_print_value_fields): Style member names. Only
9128 call fprintf_symbol_filtered for static members.
9129 (cp_print_class_member): Style member names.
9130 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
9131 member names.
9132 * ada-valprint.c (ada_print_scalar): Style enum names.
9133 (ada_val_print_enum): Likewise.
9134 * ada-typeprint.c (print_enum_type): Style enum names.
9135
d4d947ae
TT
91362020-02-21 Tom Tromey <tom@tromey.com>
9137
9138 * psympriv.h (struct partial_symtab): Update comment.
9139
e94e944b
TT
91402020-02-21 Tom Tromey <tromey@adacore.com>
9141
9142 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
9143 type is CORE_ADDR.
9144
1eb73179
TV
91452020-02-21 Tom de Vries <tdevries@suse.de>
9146
9147 PR gdb/25534
9148 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
9149 if dependencies[i]->user != NULL.
9150
4f180d53
AT
91512020-02-21 Ali Tamur <tamur@google.com>
9152
9153 * dwarf2/read.c (dwarf2_name): Add null check.
9154
22b6cd70
TT
91552020-02-20 Tom Tromey <tom@tromey.com>
9156
9157 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
9158 ">=", in binary search.
9159 (dwarf2_find_containing_comp_unit): New overload.
9160 (run_test): New self-test.
9161 (_initialize_dwarf2_read): Register new test.
9162
bd0cf5a6
NC
91632020-02-20 Nelson Chu <nelson.chu@sifive.com>
9164
9165 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
9166 * riscv-tdep.h: Likewise.
9167 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
9168 rv32-only CSR.
9169 * features/riscv/64bit-csr.xml: Regenerated.
9170
3f702acd
SDJ
91712020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
9172 Tom Tromey <tom@tromey.com>
9173
9174 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
9175 of 'fputc_unfiltered'.
9176 (putchar_unfiltered): Call 'fputc_unfiltered'.
9177 (fputc_unfiltered): Call 'fputs_unfiltered'.
9178
d13c7322
AB
91792020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
9180
9181 * config.in: Regenerate.
9182 * configure: Regenerate.
9183 * configure.ac: Add --with-python-libdir option.
9184 * main.c: Use WITH_PYTHON_LIBDIR.
9185
869d8950
TT
91862020-02-19 Tom Tromey <tom@tromey.com>
9187
9188 * symtab.c (general_symbol_info::compute_and_set_names): Use
9189 obstack_strndup. Simplify call to symbol_set_demangled_name.
9190
298e9637
SM
91912020-02-19 Simon Marchi <simon.marchi@efficios.com>
9192
9193 * dwarf2/read.c (allocate_signatured_type_table,
9194 allocate_dwo_unit_table, allocate_type_unit_groups_table,
9195 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
9196 Remove objfile parameter, update all callers.
9197
08410482
DE
91982020-02-19 Doug Evans <dje@google.com>
9199
9200 PR rust/25535
9201 * rust-lang.c (rust_print_enum): Apply embedded_offset to
9202 rust_enum_variant calculation.
9203
dfdeeca1
TT
92042020-02-19 Tom Tromey <tromey@adacore.com>
9205
9206 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
9207
2ef5453b
TT
92082020-02-19 Tom Tromey <tromey@adacore.com>
9209
9210 * ada-lang.c (cache_symbol): Use obstack_strdup.
9211
9f1528a1
AB
92122020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
9213
9214 * configure: Regenerate.
9215
d3c22fa8
TT
92162020-02-19 Tom Tromey <tromey@adacore.com>
9217
9218 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
9219 NULL check.
9220
bf84f706
MR
92212020-02-19 Maciej W. Rozycki <macro@wdc.com>
9222
9223 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
9224
d1c9b20f
AB
92252020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
9226
9227 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
9228 if GDBSERVER is not defined.
9229 (riscv_tdesc_cache): Likewise, also store const target_desc.
9230 (STATIC_IN_GDB): Define.
9231 (riscv_create_target_description): Update declaration with
9232 STATIC_IN_GDB.
9233 (riscv_lookup_target_description): New function, only define if
9234 GDBSERVER is not defined.
9235 * arch/riscv.h (riscv_create_target_description): Declare only
9236 when GDBSERVER is defined.
9237 (riscv_lookup_target_description): New declaration when GDBSERVER
9238 is not defined.
9239 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
9240 (riscv_linux_read_features): ...this, and return
9241 riscv_gdbarch_features instead of target_desc.
9242 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
9243 (riscv_linux_read_description): Rename to...
9244 (riscv_linux_read_features): ...this.
9245 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
9246 Update to use riscv_gdbarch_features and
9247 riscv_lookup_target_description.
9248 * riscv-tdep.c (riscv_find_default_target_description): Use
9249 riscv_lookup_target_description instead of
9250 riscv_create_target_description.
9251
373d7ac0
SM
92522020-02-18 Simon Marchi <simon.marchi@efficios.com>
9253
9254 * valprint.c (generic_val_print_enum_1): When printing a flag
9255 enum with value 0 and there is no enumerator with value 0, print
9256 just "0" instead of "(unknown: 0x0)".
9257
b29a2df0
SM
92582020-02-18 Simon Marchi <simon.marchi@efficios.com>
9259
9260 * valprint.c (generic_val_print_enum_1): Print unknown part of
9261 flag enum in hex.
9262
6740f0cc
SM
92632020-02-18 Simon Marchi <simon.marchi@efficios.com>
9264
9265 * dwarf2/read.c (update_enumeration_type_from_children): Allow
9266 flag enums to contain duplicate enumerators.
9267 * valprint.c (generic_val_print_enum_1): Update comment.
9268
edd45eb0
SM
92692020-02-18 Simon Marchi <simon.marchi@efficios.com>
9270
9271 * dwarf2/read.c: Include "count-one-bits.h".
9272 (update_enumeration_type_from_children): If an enumerator has
9273 multiple bits set, don't treat the enumeration as a "flag enum".
9274 * valprint.c (generic_val_print_enum_1): Assert that enumerators
9275 of flag enums have 0 or 1 bit set.
9276
6d0cf446
BE
92772020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
9278
9279 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
9280 conversion.
9281 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
9282 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
9283 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
9284 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
9285 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
9286
7001c1b7
SM
92872020-02-18 Simon Marchi <simon.marchi@efficios.com>
9288
9289 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
9290
fdb61c6c
SM
92912020-02-14 Simon Marchi <simon.marchi@efficios.com>
9292
9293 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
9294 displaced_step_closure_up.
9295 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
9296 (struct displaced_step_closure_up):
9297 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
9298 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
9299 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
9300 Likewise.
9301 * gdbarch.sh (displaced_step_copy_insn): Likewise.
9302 * gdbarch.c, gdbarch.h: Re-generate.
9303 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
9304 displaced_step_closure_up.
9305 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
9306 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
9307 * infrun.h (displaced_step_closure_up): New type alias.
9308 (struct displaced_step_inferior_state) <step_closure>: Change
9309 type to displaced_step_closure_up.
9310 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
9311 displaced_step_closure_up.
9312 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
9313
a4a38eb4
TT
93142020-02-14 Tom Tromey <tom@tromey.com>
9315
9316 * minidebug.c (gnu_debug_key): New global.
9317 (find_separate_debug_file_in_section): Use it.
9318
e8217e61
SM
93192020-02-14 Simon Marchi <simon.marchi@efficios.com>
9320
9321 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
9322 std::unique_ptr.
9323 * gdbarch.c: Re-generate.
9324 * gdbarch.h: Re-generate.
9325 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
9326 change.
9327 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
9328 type to std::unique_ptr.
9329 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
9330 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
9331 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
9332 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
9333 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
9334 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
9335 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
9336 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
9337 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
9338
d8d83535
SM
93392020-02-14 Simon Marchi <simon.marchi@efficios.com>
9340
9341 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
9342 std::unique_ptr.
9343 (displaced_step_clear): Rename to...
9344 (displaced_step_reset): ... this. Just call displaced->reset ().
9345 (displaced_step_clear_cleanup): Rename to...
9346 (displaced_step_reset_cleanup): ... this.
9347 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
9348 (displaced_step_fixup): Likewise.
9349 (resume_1): Likewise.
9350 (handle_inferior_event): Restore child's memory before calling
9351 displaced_step_fixup on the parent.
9352 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
9353 to std::unique_ptr.
9354 <step_closure>: Change type to std::unique_ptr.
9355
5f661e03
SM
93562020-02-14 Simon Marchi <simon.marchi@efficios.com>
9357
9358 * arm-tdep.c: Include count-one-bits.h.
9359 (cleanup_block_store_pc): Use count_one_bits.
9360 (cleanup_block_load_pc): Use count_one_bits.
9361 (arm_copy_block_xfer): Use count_one_bits.
9362 (thumb2_copy_block_xfer): Use count_one_bits.
9363 (thumb_copy_pop_pc_16bit): Use count_one_bits.
9364 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
9365 (thumb_get_next_pcs_raw): Use count_one_bits.
9366 (arm_get_next_pcs_raw): Use count_one_bits_l.
9367 * arch/arm.c (bitcount): Remove.
9368 * arch/arm.h (bitcount): Remove.
9369
8084e579
TT
93702020-02-14 Tom Tromey <tromey@adacore.com>
9371
9372 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
9373 Update.
9374 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
9375 * dwarf2/loc.c (call_site_find_chain_1): Return
9376 unique_xmalloc_ptr.
9377 (call_site_find_chain): Likewise.
9378
258bf0ee
RB
93792020-02-14 Richard Biener <rguenther@suse.de>
9380
9381 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
9382 on expression with division operators.
9383
f98a8458
AKS
93842020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
9385
9386 * MAINTAINERS (Write After Approval): Adding myself.
9387
d1437c0e
TT
93882020-02-12 Tom Tromey <tom@tromey.com>
9389
9390 * event-loop.c (event_data, gdb_event, event_handler_func):
9391 Remove.
9392
3d4560f7
TT
93932020-02-12 Tom Tromey <tom@tromey.com>
9394
9395 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
9396 (dwarf2_frame_objfile_data): Add comment.
9397 (find_comp_unit, set_comp_unit): New functions.
9398 (dwarf2_frame_find_fde): Use find_comp_unit.
9399 (dwarf2_build_frame_info): Use set_comp_unit.
9400
21982304
TT
94012020-02-12 Tom Tromey <tom@tromey.com>
9402
9403 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
9404 (comp_unit): Don't initialize objfile.
9405 (execute_cfa_program): Add text_offset parameter.
9406 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
9407 (dwarf2_frame_cache): Update.
9408 (dwarf2_build_frame_info): Don't set "objfile" member.
9409
4debb237
TT
94102020-02-12 Tom Tromey <tom@tromey.com>
9411
9412 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
9413 (decode_frame_entry): Likewise.
9414 (dwarf2_build_frame_info): Update.
9415
0d404d44
TT
94162020-02-12 Tom Tromey <tom@tromey.com>
9417
9418 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
9419 (decode_frame_entry_1): Use the comp_unit obstack.
9420
a7a3ae5c
TT
94212020-02-12 Tom Tromey <tom@tromey.com>
9422
9423 * dwarf2/frame.c (struct comp_unit): Add initializers and
9424 constructor.
9425 (dwarf2_frame_objfile_data): Store a comp_unit.
9426 (dwarf2_frame_find_fde): Update.
9427 (dwarf2_build_frame_info): Use "new".
9428
a9d65418
TT
94292020-02-12 Tom Tromey <tom@tromey.com>
9430
9431 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
9432 (dwarf2_fde_table): Typedef for std::vector.
9433 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
9434 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
9435 (decode_frame_entry): Update.
9436 (dwarf2_build_frame_info): Use "new".
9437
7559c217
CB
94382020-02-12 Christian Biesinger <cbiesinger@google.com>
9439
9440 * arm-tdep.c (arm_gdbarch_init): Update.
9441 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
9442 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
9443 have_neon, is_m>: Change to bool.
9444
aeefc73c
CB
94452020-02-12 Christian Biesinger <cbiesinger@google.com>
9446
9447 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
9448
d27b8e5f
TT
94492020-02-12 Tom Tromey <tom@tromey.com>
9450
9451 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
9452
cd5900f3
HD
94532020-02-12 Hannes Domani <ssbssa@yahoo.de>
9454
9455 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
9456 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
9457
f056b22b
TT
94582020-02-11 Tom Tromey <tom@tromey.com>
9459
9460 * psymtab.h: Update comment.
9461
f92ff6b5
TT
94622020-02-11 Tom Tromey <tom@tromey.com>
9463
9464 * gdb_obstack.h (struct auto_obstack): Use
9465 DISABLE_COPY_AND_ASSIGN.
9466
3fd6912b
TT
94672020-02-11 Tom Tromey <tom@tromey.com>
9468
9469 * dwarf2/frame.h (struct objfile): Don't forward declare.
9470
69ed9b74
CB
94712020-02-11 Christian Biesinger <cbiesinger@google.com>
9472
9473 * cris-tdep.c (cris_supply_gregset): Change signature to match
9474 what struct regset expects.
9475 (cris_regset): New struct.
9476 (fetch_core_registers): Remove.
9477 (cris_iterate_over_regset_sections): New function.
9478 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
9479 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
9480
bda874f6
CB
94812020-02-11 Christian Biesinger <cbiesinger@google.com>
9482
9483 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
9484 registers.
9485
754e1564
CB
94862020-02-11 Christian Biesinger <cbiesinger@google.com>
9487
9488 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
9489
8ddd8e0e
SM
94902020-02-11 Simon Marchi <simon.marchi@efficios.com>
9491
9492 * configure: Re-generate.
9493
898e7f60
SM
94942020-02-11 Simon Marchi <simon.marchi@efficios.com>
9495
9496 * configure: Re-generate.
9497
58df732b
SM
94982020-02-11 Simon Marchi <simon.marchi@efficios.com>
9499
9500 * acinclude: Update warning.m4 path.
9501 * warning.m4: Move to gdbsupport.
9502
da5bd37e
TT
95032020-02-11 Tom Tromey <tromey@adacore.com>
9504
9505 * remote.c (remote_console_output): Update.
9506 * printcmd.c (printf_command): Update.
9507 * event-loop.c (gdb_wait_for_event): Update.
9508 * linux-nat.c (sigchld_handler): Update.
9509 * remote-sim.c (gdb_os_write_stdout): Update.
9510 (gdb_os_flush_stdout): Update.
9511 (gdb_os_flush_stderr): Update.
9512 (gdb_os_write_stderr): Update.
9513 * exceptions.c (print_exception): Update.
9514 * remote-fileio.c (remote_fileio_func_read): Update.
9515 (remote_fileio_func_write): Update.
9516 * tui/tui.c (tui_enable): Update.
9517 * tui/tui-interp.c (tui_interp::init): Update.
9518 * utils.c (init_page_info): Update.
9519 (putchar_unfiltered, fputc_unfiltered): Update.
9520 (gdb_flush): Update.
9521 (emit_style_escape): Update.
9522 (flush_wrap_buffer, fputs_maybe_filtered): Update.
9523 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
9524 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
9525 (stderr_file::write): Update.
9526 (stderr_file::puts): Update.
9527 * ui-file.h (ui_file_isatty, ui_file_write)
9528 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
9529 (ui_file_puts): Don't declare.
9530
85f0dd3c
TV
95312020-02-10 Tom de Vries <tdevries@suse.de>
9532
9533 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
9534 sentinel to char *.
9535
2e927613
TV
95362020-02-09 Tom de Vries <tdevries@suse.de>
9537
9538 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
9539 filename if it matches "<artificial>".
9540
6bafc845
HD
95412020-02-09 Hannes Domani <ssbssa@yahoo.de>
9542
9543 * windows-tdep.c (struct enum_value_name): New struct.
9544 (create_enum): New function.
9545 (windows_get_siginfo_type): Create and use enum types.
9546
7928d571
HD
95472020-02-09 Hannes Domani <ssbssa@yahoo.de>
9548
9549 * NEWS: Mention $_siginfo support for Windows.
9550 * windows-nat.c (handle_exception): Set siginfo_er.
9551 (windows_nat_target::mourn_inferior): Reset siginfo_er.
9552 (windows_xfer_siginfo): New function.
9553 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
9554 * windows-tdep.c (struct windows_gdbarch_data): New struct.
9555 (init_windows_gdbarch_data): New function.
9556 (get_windows_gdbarch_data): New function.
9557 (windows_get_siginfo_type): New function.
9558 (windows_init_abi): Register windows_get_siginfo_type.
9559 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
9560
6751ebae
TT
95612020-02-08 Tom Tromey <tom@tromey.com>
9562
9563 * dwarf2/read.c (class cutu_reader) <cutu_reader,
9564 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
9565 <keep>: Declare method.
9566 <m_keep>: Remove member.
9567 <~cutu_reader>: Remove.
9568 (cutu_reader::init_tu_and_read_dwo_dies): Update.
9569 (cutu_reader::cutu_reader): Update.
9570 (cutu_reader::keep): Rename from ~cutu_reader.
9571 (process_psymtab_comp_unit, build_type_psymtabs_1)
9572 (process_skeletonless_type_unit, load_partial_comp_unit)
9573 (load_full_comp_unit, dwarf2_read_addr_index)
9574 (read_signatured_type): Update.
9575
135f5437
TT
95762020-02-08 Tom Tromey <tom@tromey.com>
9577
9578 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
9579 "want_partial_unit" parameter.
9580 (process_psymtab_comp_unit): Change want_partial_unit to bool.
9581 Inline check for DW_TAG_partial_unit.
9582 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
9583
9f66ff1c
TT
95842020-02-08 Tom Tromey <tom@tromey.com>
9585
9586 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
9587 read.c.
9588 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
9589 read.c.
9590
c8a7a66f
TT
95912020-02-08 Tom Tromey <tom@tromey.com>
9592
9593 * dwarf2/read.c (read_address): Move to comp-unit.c.
9594 (dwarf2_rnglists_process, dwarf2_ranges_process)
9595 (read_attribute_value, dwarf_decode_lines_1)
9596 (var_decode_location, decode_locdesc): Update.
9597 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
9598 read.c. Remove "cu" parameter.
9599 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
9600 method.
9601
8266302d
TT
96022020-02-08 Tom Tromey <tom@tromey.com>
9603
9604 * dwarf2/read.c (read_attribute_value, read_indirect_string)
9605 (read_indirect_line_string): Update.
9606 * dwarf2/comp-unit.c (read_offset): Remove.
9607 (read_comp_unit_head): Update.
9608 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
9609 method.
9610 (read_offset): Don't declare.
9611
4057dfde
TT
96122020-02-08 Tom Tromey <tom@tromey.com>
9613
9614 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
9615 * dwarf2/read.c (struct comp_unit_head): Move to
9616 dwarf2/comp-unit.h.
9617 (enum class rcuh_kind): Move to comp-unit.h.
9618 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
9619 (read_comp_unit_head, error_check_comp_unit_head)
9620 (read_and_check_comp_unit_head): Move to comp-unit.c.
9621 (read_offset, dwarf_unit_type_name): Likewise.
9622 (create_debug_type_hash_table, read_cutu_die_from_dwo)
9623 (cutu_reader::cutu_reader, read_call_site_scope)
9624 (find_partial_die, follow_die_offset): Update.
9625 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
9626
24aa364d
TT
96272020-02-08 Tom Tromey <tom@tromey.com>
9628
9629 * dwarf2/read.c (read_offset_1): Move to leb.c.
9630 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
9631 (dwarf_decode_macro_bytes): Update.
9632 * dwarf2/leb.c (read_offset): Rename; move from read.c.
9633 * dwarf2/leb.h (read_offset): Declare.
9634
2c7d5afc
TT
96352020-02-08 Tom Tromey <tom@tromey.com>
9636
9637 * dwarf2/read.c (dwarf2_section_size): Remove.
9638 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
9639 Update.
9640 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
9641
4075cb26
TT
96422020-02-08 Tom Tromey <tom@tromey.com>
9643
9644 * dwarf2/read.c (read_initial_length): Move to leb.c.
9645 * dwarf2/leb.h (read_initial_length): Declare.
9646 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
9647 handle_nonstd parameter.
9648 * dwarf2/frame.c (read_initial_length): Remove.
9649 (decode_frame_entry_1): Update.
9650
09ba997f
TT
96512020-02-08 Tom Tromey <tom@tromey.com>
9652
9653 * dwarf2/loc.c (dwarf2_find_location_expression)
9654 (dwarf_evaluate_loc_desc::get_tls_address)
9655 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
9656 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
9657 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
9658 (dwarf2_compile_property_to_c)
9659 (dwarf2_loc_desc_get_symbol_read_needs)
9660 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
9661 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
9662 (loclist_describe_location, loclist_tracepoint_var_ref)
9663 (loclist_generate_c_location): Update.
9664 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
9665 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
9666 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
9667 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
9668 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
9669 (dwarf2_per_cu_data::addr_size)
9670 (dwarf2_per_cu_data::ref_addr_size)
9671 (dwarf2_per_cu_data::text_offset)
9672 (dwarf2_per_cu_data::addr_type): Now methods.
9673 (per_cu_header_read_in): Make per_cu "const".
9674 (dwarf2_version): Remove.
9675 (dwarf2_per_cu_data::int_type): Now a method.
9676 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
9677 (set_die_type, read_array_type, read_subrange_index_type)
9678 (read_tag_string_type, read_subrange_type): Update.
9679 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
9680 offset_size, ref_addr_size, text_offset, addr_type, version,
9681 objfile, int_type, addr_sized_int_type>: Declare methods.
9682
96c738c0
TT
96832020-02-08 Tom Tromey <tom@tromey.com>
9684
9685 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
9686 Move earlier.
9687
8fdd972c
TT
96882020-02-08 Tom Tromey <tom@tromey.com>
9689
9690 * dwarf2/read.h (dwarf_line_debug): Declare.
9691 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
9692 * dwarf2/read.c: Move line_header code to new files.
9693 (dwarf_line_debug): No longer static.
9694 * dwarf2/line-header.c: New file.
9695 * dwarf2/line-header.h: New file.
9696
03075812
TT
96972020-02-08 Tom Tromey <tom@tromey.com>
9698
9699 * dwarf2/read.c (struct line_header) <file_full_name,
9700 file_file_name>: Return unique_xmalloc_ptr.
9701 (line_header::file_file_name): Update.
9702 (line_header::file_full_name): Update.
9703 (dw2_get_file_names_reader): Update.
9704 (macro_start_file): Update.
9705
bb822404
TT
97062020-02-08 Tom Tromey <tom@tromey.com>
9707
9708 * dwarf2/read.c (struct line_header) <file_full_name,
9709 file_file_name>: Declare methods.
9710 (dw2_get_file_names_reader): Update.
9711 (file_file_name): Now a method.
9712 (file_full_name): Likewise.
9713 (macro_start_file): Update.
9714
009b64fc
TT
97152020-02-08 Tom Tromey <tom@tromey.com>
9716
9717 * dwarf2/read.c (dwarf_always_disassemble)
9718 (show_dwarf_always_disassemble): Move to loc.c.
9719 (_initialize_dwarf2_read): Move "always-disassemble" registration
9720 to loc.c.
9721 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
9722 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
9723 static.
9724 (show_dwarf_always_disassemble): Move from read.c.
9725 (_initialize_dwarf2loc): Move always-disassemble from read.c.
9726
5895093f
TT
97272020-02-08 Tom Tromey <tom@tromey.com>
9728
9729 * dwarf2/read.c (~dwarf2_per_objfile): Update.
9730 (create_quick_file_names_table): Return htab_up.
9731 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
9732 Update.
9733 * dwarf2/read.h (struct dwarf2_per_objfile)
9734 <quick_file_names_table>: Now htab_up.
9735
b3b32279
TT
97362020-02-08 Tom Tromey <tom@tromey.com>
9737
9738 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
9739
1d33d811
TT
97402020-02-08 Tom Tromey <tom@tromey.com>
9741
9742 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
9743 Rewrite.
9744 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
9745 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
9746 (abbrev_table::abbrev_table): No longer inline.
9747 (ABBREV_HASH_SIZE): Remove.
9748 (abbrev_table::m_abbrevs): Now an htab_up.
9749
86de1d91
TT
97502020-02-08 Tom Tromey <tom@tromey.com>
9751
9752 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
9753 (cutu_reader): Update.
9754 (build_type_psymtabs_1): Update.
9755 * dwarf2/abbrev.c (abbrev_table::read): Rename.
9756 (abbrev_table::alloc_abbrev): Update.
9757 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
9758 (abbrev_table::read): New static method, renamed from
9759 abbrev_table_read_table.
9760 (abbrev_table::alloc_abbrev)
9761 (abbrev_table::add_abbrev): Now private.
9762 (abbrev_table::abbrev_table): Now private.
9763 (abbrev_table::m_abbrev_obstack): Now private. Rename.
9764
0335378b
TT
97652020-02-08 Tom Tromey <tom@tromey.com>
9766
9767 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
9768 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
9769 htab_up.
9770
48b490f2
TT
97712020-02-08 Tom Tromey <tom@tromey.com>
9772
9773 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
9774 htab_up.
9775 (lookup_dwo_unit_in_dwp): Update.
9776 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
9777 on obstack.
9778
bc68fb19
TT
97792020-02-08 Tom Tromey <tom@tromey.com>
9780
9781 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
9782 obstack.
9783
d15acc42
TT
97842020-02-08 Tom Tromey <tom@tromey.com>
9785
9786 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
9787 line_header_hash.
9788 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
9789 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
9790 Change type to htab_up.
9791
eaa5fa8b
TT
97922020-02-08 Tom Tromey <tom@tromey.com>
9793
9794 * dwarf2/read.c (allocate_type_unit_groups_table): Return
9795 htab_up. Don't allocate on obstack.
9796 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
9797 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
9798 Change type to htab_up.
9799
b0b6a987
TT
98002020-02-08 Tom Tromey <tom@tromey.com>
9801
9802 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
9803 Change type to htab_up.
9804 * dwarf2/read.c (create_signatured_type_table_from_index)
9805 (create_signatured_type_table_from_debug_names)
9806 (create_all_type_units, add_type_unit)
9807 (lookup_dwo_signatured_type, lookup_signatured_type)
9808 (process_skeletonless_type_unit): Update.
9809 (create_debug_type_hash_table, create_debug_types_hash_table):
9810 Change type of types_htab.
9811 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
9812 htab_up. Don't allocate on obstack.
9813 (create_cus_hash_table): Change type of cus_htab parameter.
9814 (struct dwo_file) <cus, tus>: Now htab_up.
9815 (lookup_dwo_signatured_type, lookup_dwo_cutu)
9816 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
9817 (queue_and_load_all_dwo_tus): Update.
9818 * dwarf2/index-write.c (write_gdbindex): Update.
9819 (write_debug_names): Update.
9820
39856def
TT
98212020-02-08 Tom Tromey <tom@tromey.com>
9822
9823 * dwarf2/read.h (struct dwarf2_queue_item): Move from
9824 dwarf2/read.c. Remove "next" member. Add constructor ntad
9825 destructor.
9826 (struct dwarf2_per_objfile) <queue>: New member.
9827 * dwarf2/read.c (struct dwarf2_queue_item): Move to
9828 dwarf2/read.h.
9829 (dwarf2_queue, dwarf2_queue_tail): Remove.
9830 (class dwarf2_queue_guard): Add parameter to constructor. Use
9831 DISABLE_COPY_AND_ASSIGN.
9832 <m_per_objfile>: New member.
9833 <~dwarf2_queue_guard>: Rewrite.
9834 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
9835 Update.
9836 (~dwarf2_queue_item): New.
9837
3e225074
TT
98382020-02-08 Tom Tromey <tom@tromey.com>
9839
9840 * dwarf2/read.c (struct die_info) <has_children>: New member.
9841 (dw2_get_file_names_reader): Remove has_children.
9842 (dw2_get_file_names): Update.
9843 (read_cutu_die_from_dwo): Remove has_children.
9844 (cutu_reader::init_tu_and_read_dwo_dies)
9845 (cutu_reader::cutu_reader): Update.
9846 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
9847 Remove has_children.
9848 (build_type_psymtabs_1, process_skeletonless_type_unit)
9849 (load_partial_comp_unit, load_full_comp_unit): Update.
9850 (create_dwo_cu_reader): Remove has_children.
9851 (create_cus_hash_table, read_die_and_children): Update.
9852 (read_full_die_1,read_full_die): Remove has_children.
9853 (read_signatured_type): Update.
9854 (class cutu_reader) <has_children>: Remove.
9855
82ca8957
TT
98562020-02-08 Tom Tromey <tom@tromey.com>
9857
9858 * dwarf2/expr.c: Rename from dwarf2expr.c.
9859 * dwarf2/expr.h: Rename from dwarf2expr.h.
9860 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
9861 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
9862 * dwarf2/frame.c: Rename from dwarf2-frame.c.
9863 * dwarf2/frame.h: Rename from dwarf2-frame.h.
9864 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
9865 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
9866 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
9867 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
9868 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
9869 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
9870 * dwarf2/loc.c: Rename from dwarf2loc.c.
9871 * dwarf2/loc.h: Rename from dwarf2loc.h.
9872 * dwarf2/read.c: Rename from dwarf2read.c.
9873 * dwarf2/read.h: Rename from dwarf2read.h.
9874 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
9875 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
9876 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
9877 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
9878 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
9879 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
9880 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
9881 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
9882 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
9883 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
9884 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
9885 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
9886 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
9887 Update.
9888 * Makefile.in (COMMON_SFILES): Update.
9889 (HFILES_NO_SRCDIR): Update.
9890
9e35d499
TT
98912020-02-08 Tom Tromey <tom@tromey.com>
9892
9893 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
9894 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
9895
1eba2311
TT
98962020-02-08 Tom Tromey <tom@tromey.com>
9897
9898 * dwarf2read.h (struct die_info): Don't declare.
9899
e41c2da2
TT
99002020-02-08 Tom Tromey <tom@tromey.com>
9901
9902 * dwarf2read.h (die_info_ptr): Remove typedef.
9903
4fc6c0d5
TT
99042020-02-08 Tom Tromey <tom@tromey.com>
9905
9906 * dwarf2read.c (read_call_site_scope)
9907 (handle_data_member_location, dwarf2_add_member_fn)
9908 (mark_common_block_symbol_computed, read_common_block)
9909 (attr_to_dynamic_prop, partial_die_info::read)
9910 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
9911 (dwarf2_symbol_mark_computed, set_die_type): Update.
9912 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
9913 method.
9914 (attr_form_is_block): Don't declare.
9915 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
9916
cd6c91b4
TT
99172020-02-08 Tom Tromey <tom@tromey.com>
9918
9919 * dwarf2read.c (dwarf2_find_base_address, )
9920 (read_call_site_scope, rust_containing_type)
9921 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
9922 (handle_data_member_location, dwarf2_add_member_fn)
9923 (get_alignment, read_structure_type, process_structure_scope)
9924 (mark_common_block_symbol_computed, read_common_block)
9925 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
9926 (partial_die_info::read, read_attribute_value, new_symbol)
9927 (lookup_die_type, dwarf2_get_ref_die_offset)
9928 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
9929 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
9930 (dwarf2_symbol_mark_computed): Update.
9931 * dwarf2/attribute.h (struct attribute) <value_as_address,
9932 form_is_section_offset, form_is_constant, form_is_ref>: Declare
9933 methods.
9934 (value_as_address, attr_form_is_section_offset)
9935 (attr_form_is_constant, attr_form_is_ref): Don't declare.
9936 * dwarf2/attribute.c (attribute::value_as_address)
9937 (attribute::form_is_section_offset, attribute::form_is_constant)
9938 (attribute::form_is_ref): Now methods.
9939
162dce55
TT
99402020-02-08 Tom Tromey <tom@tromey.com>
9941
9942 * dwarf2read.c (struct attribute, DW_STRING)
9943 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
9944 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
9945 (attr_form_is_block, attr_form_is_section_offset)
9946 (attr_form_is_constant, attr_form_is_ref): Move.
9947 * dwarf2/attribute.h: New file.
9948 * dwarf2/attribute.c: New file, from dwarf2read.c.
9949 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
9950
3054dd54
TT
99512020-02-08 Tom Tromey <tom@tromey.com>
9952
9953 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
9954 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
9955 Move.
9956 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
9957 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
9958 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
9959 abbrev.c.
9960 * dwarf2/abbrev.h: New file.
9961 * dwarf2/abbrev.c: New file, from dwarf2read.c.
9962 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
9963
96b79293
TT
99642020-02-08 Tom Tromey <tom@tromey.com>
9965
9966 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
9967 (dwarf2_section_size, dwarf2_get_section_info)
9968 (create_signatured_type_table_from_debug_names)
9969 (create_addrmap_from_aranges, read_debug_names_from_section)
9970 (get_gdb_index_contents_from_section, read_comp_unit_head)
9971 (error_check_comp_unit_head, read_abbrev_offset)
9972 (create_debug_type_hash_table, init_cu_die_reader)
9973 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
9974 (read_comp_units_from_section, create_cus_hash_table)
9975 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
9976 (create_dwp_v2_section, dwarf2_rnglists_process)
9977 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
9978 (abbrev_table_read_table, read_indirect_string_at_offset_from)
9979 (read_indirect_string_from_dwz, read_addr_index_1)
9980 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
9981 (dwarf_decode_macro_bytes, dwarf_decode_macros)
9982 (fill_in_loclist_baton): Update.
9983 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
9984 get_containing_section, get_bfd_owner, get_bfd_section,
9985 get_file_name, get_id, get_flags, empty, read>: Declare methods.
9986 (dwarf2_read_section, get_section_name, get_section_file_name)
9987 (get_containing_section, get_section_bfd_owner)
9988 (get_section_bfd_section, get_section_name, get_section_file_name)
9989 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
9990 declare.
9991 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
9992 (dwarf2_section_info::get_bfd_owner)
9993 (dwarf2_section_info::get_bfd_section)
9994 (dwarf2_section_info::get_name)
9995 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
9996 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
9997 (dwarf2_section_info::read): Now methods.
9998 * dwarf-index-write.c (class debug_names): Update.
9999
2c86cff9
TT
100002020-02-08 Tom Tromey <tom@tromey.com>
10001
10002 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
10003 Move to dwarf2/section.h.
10004 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
10005 (get_section_bfd_section, get_section_name)
10006 (get_section_file_name, get_section_id, get_section_flags)
10007 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
10008 dwarf2/section.c.
10009 * dwarf2/section.h: New file.
10010 * dwarf2/section.c: New file, from dwarf2read.c.
10011 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
10012
f4382c45
TT
100132020-02-08 Tom Tromey <tom@tromey.com>
10014
10015 * dwarf2read.h (read_unsigned_leb128): Don't declare.
10016 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
10017 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
10018 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
10019 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
10020 * dwarf2/leb.h: New file, from dwarf2read.c.
10021 * dwarf2/leb.c: New file, from dwarf2read.c.
10022 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
10023 Remove.
10024 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
10025 (COMMON_SFILES): Add dwarf2/leb.c.
10026
01840b7a
JB
100272020-02-08 Joel Brobecker <brobecker@adacore.com>
10028
10029 GDB 9.1 released.
10030
dfcb27e4
IB
100312020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
10032
10033 PR gdb/25190:
aac66a4c
SM
10034 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
10035 * gdb/remote.c (remote_console_output): Update.
10036 * gdb/ui-file.c (fputs_unfiltered): Rename to...
10037 (ui_file_puts): ...this.
10038 * gdb/ui-file.h (ui_file_puts): Add declaration.
10039 * gdb/utils.c (emit_style_escape): Update.
10040 (flush_wrap_buffer): Update.
10041 (fputs_maybe_filtered): Update.
10042 (fputs_unfiltered): Add function.
dfcb27e4 10043
faa17681
IB
100442020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
10045
aac66a4c
SM
10046 * gdb/event-loop.c (gdb_wait_for_event): Update.
10047 * gdb/printcmd.c (printf_command): Update.
10048 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
10049 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
10050 (gdb_os_flush_stderr): Update.
10051 * gdb/remote.c (remote_console_output): Update.
10052 * gdb/ui-file.c (gdb_flush): Rename to...
10053 (ui_file_flush): ...this.
10054 (stderr_file::write): Update.
10055 (stderr_file::puts): Update.
10056 * gdb/ui-file.h (gdb_flush): Rename to...
10057 (ui_file_flush): ...this.
10058 * gdb/utils.c (gdb_flush): Add function.
10059 * gdb/utils.h (gdb_flush): Add declaration.
faa17681 10060
5abbbe1d
TT
100612020-02-07 Tom Tromey <tromey@adacore.com>
10062
10063 PR breakpoints/24915:
10064 * source.c (find_and_open_source): Do not check basenames_may_differ.
10065
919adfe8
TT
100662020-02-07 Tom Tromey <tom@tromey.com>
10067
10068 * README: Update gdbserver documentation.
10069 * gdbserver: Move to top level.
10070 * configure.tgt (build_gdbserver): Remove.
10071 * configure.ac: Remove --enable-gdbserver.
10072 * configure: Rebuild.
10073 * Makefile.in (distclean): Don't mention gdbserver.
10074
1d5d29e7
SV
100752020-02-06 Shahab Vahedi <shahab@synopsys.com>
10076
10077 * source-cache.c (source_cache::ensure): Surround
10078 get_plain_source_lines with a try/catch.
10079 (source_cache::get_line_charpos): Get rid of try/catch
10080 and only check for the return value of "ensure".
10081 * tui/tui-source.c (tui_source_window::set_contents):
10082 Simplify "nlines" calculation.
10083
6eb1129c
SV
100842020-02-06 Shahab Vahedi <shahab@synopsys.com>
10085
10086 * MAINTAINERS (Write After Approval): Add myself.
10087
c6a42d11
CB
100882020-02-05 Christian Biesinger <cbiesinger@google.com>
10089
10090 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
10091 function call.
10092
c8ecdda6
CB
100932020-02-05 Christian Biesinger <cbiesinger@google.com>
10094
10095 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
10096
f6480e70
MR
100972020-02-05 Maciej W. Rozycki <macro@wdc.com>
10098
10099 * nat/riscv-linux-tdesc.h: New file.
10100 * nat/riscv-linux-tdesc.c: New file, taking code from...
10101 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
10102 ... here.
10103 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
10104 NATDEPFILES.
10105
dcc9fbc6
AB
101062020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
10107
10108 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
10109 we don't set the fake simulator ptid to the null_ptid.
10110
719546c4
SM
101112020-02-03 Simon Marchi <simon.marchi@efficios.com>
10112
10113 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
10114 * gdbthread.h (class thread_info) <resumed>: Likewise.
10115 * infrun.c (resume_1): Likewise.
10116 (proceed): Likewise.
10117 (infrun_thread_stop_requested): Likewise.
10118 (stop_all_threads): Likewise.
10119 (handle_inferior_event): Likewise.
10120 (restart_threads): Likewise.
10121 (finish_step_over): Likewise.
10122 (keep_going_stepped_thread): Likewise.
10123 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
10124 (linux_handle_extended_wait): Likewise.
10125 * record-btrace.c (get_thread_current_frame_id): Likewise.
10126 * record-full.c (record_full_wait_1): Likewise.
10127 * remote.c (remote_target::process_initial_stop_replies): Likewise.
10128 * target.c (target_resume): Likewise.
10129 * thread.c (set_running_thread): Likewise.
10130
e409c542
AKS
101312020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
10132
10133 * f-valprint.c (f77_print_array_1): Changed datatype of index
10134 variable to LONGEST from int to enable it to contain bound
10135 values correctly.
10136
ee98c0da
MR
101372020-02-03 Maciej W. Rozycki <macro@wdc.com>
10138
10139 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
10140 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
10141 offsets according to FLEN determined.
10142 (riscv_linux_nat_target::read_description): Determine FLEN
10143 dynamically.
10144 (riscv_linux_nat_target::fetch_registers): Size regset buffer
10145 according to FLEN determined.
10146 (riscv_linux_nat_target::store_registers): Likewise.
10147
aa66aac4
SV
101482020-02-01 Shahab Vahedi <shahab@synopsys.com>
10149
10150 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
10151 when reg->group is empty and reggroup is not.
10152
fd9faca8
TT
101532020-01-31 Tom Tromey <tromey@adacore.com>
10154
10155 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
10156 Call beneath target's mourn_inferior after unpushing.
10157
42330a68
AB
101582020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
10159
10160 PR tui/9765
10161 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
10162 have enough lines to fill the screen, still return the lowest
10163 address we found.
10164
7a27a45b
AB
101652020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
10166
10167 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
10168 '-', '<', and '>' commands.
10169
c47f70e2
PA
101702020-01-29 Pedro Alves <palves@redhat.com>
10171 Sergio Durigan Junior <sergiodj@redhat.com>
10172
10173 * infcmd.c (construct_inferior_arguments): Assert that
10174 'argc' is greater than 0.
10175
5133a315
LM
101762020-01-29 Luis Machado <luis.machado@linaro.org>
10177
10178 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
10179 (BRK_INSN_MASK): Define to 0xd4200000.
10180 (aarch64_program_breakpoint_here_p): New function.
10181 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
10182 * arch-utils.c (default_program_breakpoint_here_p): Moved from
10183 breakpoint.c.
10184 * arch-utils.h (default_program_breakpoint_here_p): Moved from
10185 breakpoint.h
10186 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
10187 call gdbarch_program_breakpoint_here_p.
10188 (program_breakpoint_here): Moved to arch-utils.c, renamed to
10189 default_program_breakpoint_here_p, changed return type to bool and
10190 simplified.
10191 * breakpoint.h (program_breakpoint_here): Moved prototype to
10192 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
10193 return type to bool.
10194 * gdbarch.c: Regenerate.
10195 * gdbarch.h: Regenerate.
10196 * gdbarch.sh (program_breakpoint_here_p): New method.
10197 * infrun.c (handle_signal_stop): Call
10198 gdbarch_program_breakpoint_here_p.
10199
168f8c6b
TT
102002020-01-26 Tom Tromey <tom@tromey.com>
10201
10202 * ctfread.c (struct ctf_fp_info): Reindent.
10203 (_initialize_ctfread): Remove.
10204
128a391f
TT
102052020-01-26 Tom Tromey <tom@tromey.com>
10206
10207 * psymtab.c (partial_map_expand_apply)
10208 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
10209 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
10210 (psym_print_stats, psym_expand_symtabs_for_function)
10211 (psym_map_symbol_filenames, psym_map_matching_symbols)
10212 (psym_expand_symtabs_matching)
10213 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
10214 (maintenance_check_psymtabs): Use new methods.
10215 * psympriv.h (struct partial_symtab) <readin_p,
10216 get_compunit_symtab>: New methods.
10217 <readin, compunit_symtab>: Remove members.
10218 (struct standard_psymtab): New.
10219 (struct legacy_psymtab): Derive from standard_psymtab.
10220 * dwarf2read.h (struct dwarf2_psymtab): Derive from
10221 standard_psymtab.
10222 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
10223
0494dbec
TT
102242020-01-26 Tom Tromey <tom@tromey.com>
10225
10226 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
10227 read_dependencies. Add assert.
10228 * psymtab.c (partial_symtab::read_dependencies): New method.
10229 * psympriv.h (struct partial_symtab) <read_dependencies>: New
10230 method.
10231 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
10232 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
10233 read_dependencies.
10234 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
10235 Add assert.
10236
8566b89b
TT
102372020-01-26 Tom Tromey <tom@tromey.com>
10238
10239 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
10240 Call expand_psymtab.
10241 (xcoff_read_symtab): Call expand_psymtab.
10242 (xcoff_start_psymtab, xcoff_end_psymtab): Set
10243 legacy_expand_psymtab.
10244 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
10245 method.
10246 (struct legacy_psymtab) <expand_psymtab>: Implement.
10247 <legacy_expand_psymtab>: New member.
10248 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
10249 (parse_partial_symbols): Set legacy_expand_psymtab.
10250 (psymtab_to_symtab_1): Change argument order. Call
10251 expand_psymtab.
10252 (new_psymtab): Set legacy_expand_psymtab.
10253 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
10254 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
10255 expand_psymtab.
10256 (dwarf2_psymtab::expand_psymtab): Rename from
10257 psymtab_to_symtab_1. Call expand_psymtab.
10258 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
10259 (dbx_end_psymtab): Likewise.
10260 (dbx_psymtab_to_symtab_1): Change argument order. Call
10261 expand_psymtab.
10262 (dbx_read_symtab): Call expand_psymtab.
10263 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
10264 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
10265 (ctf_psymtab::read_symtab): Call expand_psymtab.
10266
077cbab2
TT
102672020-01-26 Tom Tromey <tom@tromey.com>
10268
10269 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
10270 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
10271 messages.
10272 * mdebugread.c (mdebug_read_symtab): Remove prints.
10273 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
10274 assert.
10275 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
10276
891813be
TT
102772020-01-26 Tom Tromey <tom@tromey.com>
10278
10279 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
10280 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
10281 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
10282 legacy_symtab.
10283 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
10284 * psymtab.c (psymtab_to_symtab): Call method.
10285 (dump_psymtab): Update.
10286 * psympriv.h (struct partial_symtab): Add virtual destructor.
10287 <read_symtab>: New method.
10288 (struct legacy_symtab): New.
10289 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
10290 (struct pst_map) <pst>: Now a legacy_psymtab.
10291 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
10292 (new_psymtab): Use legacy_psymtab.
10293 * dwarf2read.h (struct dwarf2_psymtab): New.
10294 (struct dwarf2_per_cu_data) <psymtab>: Use it.
10295 * dwarf2read.c (dwarf2_create_include_psymtab)
10296 (dwarf2_build_include_psymtabs, create_type_unit_group)
10297 (create_partial_symtab, process_psymtab_comp_unit_reader)
10298 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
10299 (set_partial_user): Use dwarf2_psymtab.
10300 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
10301 (psymtab_to_symtab_1, process_full_comp_unit)
10302 (process_full_type_unit, dwarf2_ranges_read)
10303 (dwarf2_get_pc_bounds, psymtab_include_file_name)
10304 (dwarf_decode_lines): Use dwarf2_psymtab.
10305 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
10306 (add_address_entry_worker, write_one_signatured_type)
10307 (recursively_count_psymbols, recursively_write_psymbols)
10308 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
10309 (write_debug_names): Likewise.
10310 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
10311 <pst>: Now a legacy_psymtab.
10312 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
10313 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
10314 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
10315 * ctfread.c (struct ctf_psymtab): New.
10316 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
10317 ctf_psymtab.
10318 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
10319 (create_partial_symtab): Return a ctf_psymtab.
10320 (scan_partial_symbols): Update.
10321
c3693a1d
TT
103222020-01-26 Tom Tromey <tom@tromey.com>
10323
10324 * xcoffread.c (xcoff_start_psymtab): Use new.
10325 * psymtab.c (partial_symtab::partial_symtab): New constructor,
10326 renamed from start_psymtab_common.
10327 * psympriv.h (struct partial_symtab): Add new constructor.
10328 (start_psymtab_common): Don't declare.
10329 * mdebugread.c (parse_partial_symbols): Use new.
10330 * dwarf2read.c (create_partial_symtab): Use new.
10331 * dbxread.c (start_psymtab): Use new.
10332 * ctfread.c (create_partial_symtab): Use new.
10333
32caafd0
TT
103342020-01-26 Tom Tromey <tom@tromey.com>
10335
10336 * xcoffread.c (xcoff_end_psymtab): Use new.
10337 * psymtab.c (start_psymtab_common): Use new.
10338 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
10339 Update.
10340 * psympriv.h (struct partial_symtab): Add parameters to
10341 constructor. Don't inline.
10342 (allocate_psymtab): Don't declare.
10343 * mdebugread.c (new_psymtab): Use new.
10344 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
10345 * dbxread.c (dbx_end_psymtab): Use new.
10346
abaa2f23
TT
103472020-01-26 Tom Tromey <tom@tromey.com>
10348
10349 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
10350 allocate_psymtab. Update documentation.
10351 * psymtab.c (psymtab_storage::install_psymtab): Rename from
10352 allocate_psymtab. Do not use new.
10353 (allocate_psymtab): Use new. Update.
10354
6d94535f
TT
103552020-01-26 Tom Tromey <tom@tromey.com>
10356
10357 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
10358 * psymtab.c (psym_print_stats): Update.
10359 * psympriv.h (struct partial_symtab) <readin,
10360 psymtabs_addrmap_supported, anonymous>: Now bool.
10361 * mdebugread.c (psymtab_to_symtab_1): Update.
10362 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
10363 (build_type_psymtabs_reader, psymtab_to_symtab_1)
10364 (process_full_comp_unit, process_full_type_unit): Update.
10365 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
10366 * ctfread.c (psymtab_to_symtab): Update.
10367
6f17252b
TT
103682020-01-26 Tom Tromey <tom@tromey.com>
10369
10370 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
10371 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
10372 * psymtab.c (psymtab_storage): Delete psymtabs.
10373 (psymtab_storage::allocate_psymtab): Use new.
10374 (psymtab_storage::discard_psymtab): Use delete.
10375 * psympriv.h (struct partial_symtab): Add constructor and
10376 initializers.
10377
f6f1cebc
TT
103782020-01-26 Tom Tromey <tom@tromey.com>
10379
10380 * machoread.c: Do not include psympriv.h.
10381
e47e48f6
PW
103822020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10383
10384 * NEWS: Mention the new option and the set/show commands.
10385
a2fedca9
PW
103862020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10387
10388 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
10389 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
10390 (validate_exec_file): New variables, enums, functions.
10391 (exec_file_locate_attach, print_section_info): Style the filenames.
10392 (_initialize_exec): Install show_exec_file_mismatch_command and
10393 set_exec_file_mismatch_command.
10394 * gdbcore.h (validate_exec_file): Declare.
10395 * infcmd.c (attach_command): Call validate_exec_file.
10396 * remote.c ( remote_target::remote_add_inferior): Likewise.
10397
7ffa82e1
AB
103982020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10399
10400 * frame.c (find_frame_sal): Move call to get_next_frame into more
10401 inner scope.
10402 * inline-frame.c (inilne_state) <inline_state>: Update argument
10403 types.
10404 (inilne_state) <skipped_symbol>: Rename to...
10405 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
10406 (skip_inline_frames): Build vector of skipped symbols and use this
10407 to reate the inline_state.
10408 (inline_skipped_symbol): Add a comment and some assertions, fetch
10409 skipped symbol from the list.
10410
3d92a3e3
AB
104112020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10412
10413 * buildsym.c (lte_is_less_than): Delete.
10414 (buildsym_compunit::end_symtab_with_blockvector): Create local
10415 lambda function to sort line table entries, and use
10416 std::stable_sort instead of std::sort.
10417 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
10418 markers when looking for a previous line.
10419
94a72be7
AB
104202020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10421
10422 * dwarf2read.c (lnp_state_machine::record_line): Include
10423 end_sequence parameter in debug print out. Record the line if we
10424 are at an end_sequence marker even if it's not the start of a
10425 statement.
10426 * symmisc.c (maintenance_print_one_line_table): Print end of
10427 sequence markers with 'END' not '0'.
10428
53af73bf
PA
104292020-01-24 Pedro Alves <palves@redhat.com>
10430
10431 PR gdb/25410
10432 * thread.c (scoped_restore_current_thread::restore): Use
10433 switch_to_inferior_no_thread.
10434 * exec.c: Include "progspace-and-thread.h".
10435 (add_target_sections, remove_target_sections):
10436 scoped_restore_current_pspace_and_thread instead of
10437 scoped_restore_current_thread.
10438 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
10439 and aspace to the inferior before calling clone_program_space.
10440 Remove stale comment.
10441
3050c6f4
CB
104422020-01-24 Christian Biesinger <cbiesinger@google.com>
10443
10444 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
10445 (arm_netbsd_nat_target::fetch_registers): ...this.
10446 (arm_nbsd_nat_target::store_registers): Rename to...
10447 (arm_netbsd_nat_target::store_registers): ...this.
10448
73685c7e
CB
104492020-01-24 Christian Biesinger <cbiesinger@google.com>
10450
10451 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
10452 register_t.
10453
89203d40
CB
104542020-01-24 Christian Biesinger <cbiesinger@google.com>
10455
10456 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
10457 Update comment.
10458 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
10459 Likewise.
10460 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
10461 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
10462 the correct replacement (iterate_over_regset_sections).
10463 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
10464 Update comment.
10465
1ba1ac88
AB
104662020-01-24 Graham Markall <graham.markall@embecosm.com>
10467
10468 PR gdb/23718
10469 * gdb/python/python.c (execute_gdb_command): Call
10470 async_enable_stdin in catch block.
10471
f3364a6d
AB
104722020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10473
10474 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
10475 SWITCH_THRU_ALL_UIS.
10476
733d0a67
AB
104772020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10478
10479 PR tui/9765
10480 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
10481 comment, add extra parameter, and update to store previous symbol
10482 when appropriate.
10483 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
10484 add extra parameter.
10485 * tui/tui-disasm.c (tui_disassemble): Update header comment,
10486 remove unneeded parameter, add try/catch around gdb_print_insn,
10487 rewrite to add items to asm_lines vector.
10488 (tui_find_backward_disassembly_start_address): New function.
10489 (tui_find_disassembly_address): Updated throughout.
10490 (tui_disasm_window::set_contents): Update for changes to
10491 tui_disassemble.
10492 (tui_disasm_window::do_scroll_vertical): No need to adjust the
10493 number of lines to scroll.
10494
b3b3bada
SM
104952020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
10496
10497 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
10498 (SECT_OFF_DATA): Likewise.
10499 (SECT_OFF_RODATA): Likewise.
10500 (SECT_OFF_TEXT): Likewise.
10501 (SECT_OFF_BSS): Likewise.
10502 (struct objfile) <text_section_offset, data_section_offset>: New
10503 methods.
10504 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
10505 objfile::text_section_offset.
10506 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
10507 * coffread.c (coff_symtab_read): Likewise.
10508 (enter_linenos): Likewise.
10509 (process_coff_symbol): Likewise.
10510 * ctfread.c (get_objfile_text_range): Likewise.
10511 * dtrace-probe.c (dtrace_probe::get_relocated_address):
10512 Use objfile::data_section_offset.
10513 * dwarf2-frame.c (execute_cfa_program): Use
10514 objfile::text_section_offset.
10515 (dwarf2_frame_find_fde): Likewise.
10516 * dwarf2read.c (create_addrmap_from_index): Likewise.
10517 (create_addrmap_from_aranges): Likewise.
10518 (dw2_find_pc_sect_compunit_symtab): Likewise.
10519 (process_psymtab_comp_unit_reader): Likewise.
10520 (add_partial_symbol): Likewise.
10521 (add_partial_subprogram): Likewise.
10522 (process_full_comp_unit): Likewise.
10523 (read_file_scope): Likewise.
10524 (read_func_scope): Likewise.
10525 (read_lexical_block_scope): Likewise.
10526 (read_call_site_scope): Likewise.
10527 (dwarf2_rnglists_process): Likewise.
10528 (dwarf2_ranges_process): Likewise.
10529 (dwarf2_ranges_read): Likewise.
10530 (dwarf_decode_lines_1): Likewise.
10531 (new_symbol): Likewise.
10532 (dwarf2_fetch_die_loc_sect_off): Likewise.
10533 (dwarf2_per_cu_text_offset): Likewise.
10534 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
10535 * hppa-tdep.c (read_unwind_info): Likewise.
10536 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
10537 * psympriv.h (struct partial_symtab): Likewise.
10538 * psymtab.c (find_pc_sect_psymtab): Likewise.
10539 * solib-svr4.c (enable_break): Likewise.
10540 * stap-probe.c (relocate_address): Use
10541 objfile::data_section_offset.
10542 * xcoffread.c (enter_line_range): Use
10543 objfile::text_section_offset.
10544 (read_xcoff_symtab): Likewise.
10545
ab53f382
SM
105462020-01-23 Simon Marchi <simon.marchi@efficios.com>
10547
10548 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
10549 declaration to narrower scopes.
10550
e7eee665
SM
105512020-01-23 Simon Marchi <simon.marchi@efficios.com>
10552
10553 * darwin-nat.h (struct darwin_exception_msg, enum
10554 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
10555 Move up.
10556 (class darwin_nat_target) <wait_1, check_new_threads,
10557 decode_exception_message, decode_message, stop_inferior,
10558 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
10559 * darwin-nat.c (darwin_check_new_threads): Rename to...
10560 (darwin_nat_target::check_new_threads): ... this.
10561 (darwin_suspend_inferior_it): Remove.
10562 (darwin_decode_exception_message): Rename to...
10563 (darwin_nat_target::decode_exception_message): ... this.
10564 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
10565 (darwin_decode_message): Rename to...
10566 (darwin_nat_target::decode_message): ... this.
10567 (cancel_breakpoint): Rename to...
10568 (darwin_nat_target::cancel_breakpoint): ... this.
10569 (darwin_wait): Rename to...
10570 (darwin_nat_target::wait_1): ... this. Use range-based for loop
10571 instead of iterate_over_inferiors.
10572 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
10573 (darwin_stop_inferior): Rename to...
10574 (darwin_nat_target::stop_inferior): ... this.
10575 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
10576 (darwin_init_thread_list): Rename to...
10577 (darwin_nat_target::init_thread_list): ... this.
10578 (darwin_ptrace_him): Rename to...
10579 (darwin_nat_target::ptrace_him): ... this.
10580 (darwin_nat_target::create_inferior): Pass lambda function to
10581 fork_inferior.
10582 (darwin_nat_target::detach): Call stop_inferior instead of
10583 darwin_stop_inferior.
10584 * fork-inferior.h (fork_inferior): Change init_trace_fun
10585 parameter to gdb::function_view.
10586 * fork-inferior.c (fork_inferior): Likewise.
10587
c162ed3e
HD
105882020-01-23 Hannes Domani <ssbssa@yahoo.de>
10589
10590 * i386-cygwin-tdep.c (core_process_module_section): Update.
10591 * windows-nat.c (struct lm_info_windows): Add text_offset.
10592 (windows_xfer_shared_libraries): Update.
10593 * windows-tdep.c (windows_xfer_shared_library):
10594 Add text_offset_cached argument.
10595 * windows-tdep.h (windows_xfer_shared_library): Update.
10596
a1237872
SM
105972020-01-21 Simon Marchi <simon.marchi@efficios.com>
10598
10599 * gdbarch.sh: Add declaration for _initialize_gdbarch.
10600
b3ee6dd9
SM
106012020-01-21 Simon Marchi <simon.marchi@efficios.com>
10602
10603 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
10604 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
10605 replace with range-based for.
10606 (gdbsim_interrupt_inferior): Remove.
10607 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
10608 with a range-based for. Inline code from
10609 gdbsim_interrupt_inferior.
10610
f9fac3c8
SM
106112020-01-21 Simon Marchi <simon.marchi@efficios.com>
10612
10613 * infrun.c (proceed): Fix indentation.
10614
f6474de9
TT
106152020-01-21 Tom Tromey <tromey@adacore.com>
10616
10617 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
10618 * python/python.c (python_extension_ops): Update.
10619 (gdbpy_colorize): New function.
10620 * python/lib/gdb/__init__.py (colorize): New function.
10621 * extension.h (ext_lang_colorize): Declare.
10622 * extension.c (ext_lang_colorize): New function.
10623 * extension-priv.h (struct extension_language_ops) <colorize>: New
10624 member.
10625 * cli/cli-style.c (_initialize_cli_style): Update help text.
10626
f0c702d4
LM
106272020-01-21 Luis Machado <luis.machado@linaro.org>
10628
10629 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
10630 <cond>: Change type to bool.
10631 (aarch64_displaced_step_b_cond): Update cond to use bool type.
10632 (aarch64_displaced_step_cb): Likewise.
10633 (aarch64_displaced_step_tb): Likewise.
10634
1ab139e5
LM
106352020-01-21 Luis Machado <luis.machado@linaro.org>
10636
10637 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
10638 output.
10639
0c271889
LM
106402020-01-21 Luis Machado <luis.machado@linaro.org>
10641
10642 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
10643 <pc_adjust>: Adjust the documentation.
10644 (aarch64_displaced_step_fixup): Check if PC really moved before
10645 adjusting it.
10646
4d89c1c7
TT
106472020-01-19 Tom Tromey <tom@tromey.com>
10648
10649 * disasm.c (~gdb_disassembler): New destructor.
10650 (gdb_buffered_insn_length): Call disassemble_free_target.
10651 * disasm.h (class gdb_disassembler): Declare destructor. Use
10652 DISABLE_COPY_AND_ASSIGN.
10653
c0ab21c2
TT
106542020-01-19 Tom Tromey <tom@tromey.com>
10655
10656 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
10657 (die_reader_func_ftype): Remove.
10658 (cutu_reader): New class.
10659 (dw2_get_file_names_reader): Remove "data" parameter.
10660 (dw2_get_file_names): Use cutu_reader.
10661 (create_debug_type_hash_table): Update.
10662 (read_cutu_die_from_dwo): Update comment.
10663 (lookup_dwo_unit): Add dwo_name parameter.
10664 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
10665 die_reader_func_ftype and data parameters.
10666 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
10667 Remove die_reader_func_ftype and data parameters.
10668 (~cutu_reader): New; from init_cutu_and_read_dies.
10669 (cutu_reader::cutu_reader): Rename from
10670 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
10671 and data parameters.
10672 (init_cutu_and_read_dies_simple): Remove.
10673 (struct process_psymtab_comp_unit_data): Remove.
10674 (process_psymtab_comp_unit_reader): Remove data parameter; add
10675 want_partial_unit and pretend_language parameters.
10676 (process_psymtab_comp_unit): Use cutu_reader.
10677 (build_type_psymtabs_reader): Remove data parameter.
10678 (build_type_psymtabs_1): Use cutu_reader.
10679 (process_skeletonless_type_unit): Likewise.
10680 (load_partial_comp_unit_reader): Remove.
10681 (load_partial_comp_unit): Use cutu_reader.
10682 (load_full_comp_unit_reader): Remove.
10683 (load_full_comp_unit): Use cutu_reader.
10684 (struct create_dwo_cu_data): Remove.
10685 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
10686 dwo_unit parameters.
10687 (create_cus_hash_table): Use cutu_reader.
10688 (struct dwarf2_read_addr_index_data): Remove.
10689 (dwarf2_read_addr_index_reader): Remove.
10690 (dwarf2_read_addr_index): Use cutu_reader.
10691 (read_signatured_type_reader): Remove.
10692 (read_signatured_type): Use cutu_reader.
10693
45bbae5c
TT
106942020-01-19 Tom Tromey <tom@tromey.com>
10695
10696 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
10697 * tui/tui-wingeneral.h (class tui_suppress_output): New.
10698 (tui_wrefresh): Declare.
10699 * tui/tui-wingeneral.c (suppress_output): New global.
10700 (tui_suppress_output, ~tui_suppress_output): New constructor and
10701 destructor.
10702 (tui_wrefresh): New function.
10703 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
10704 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
10705 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
10706 method.
10707 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
10708 tui_wrefresh.
10709 (tui_data_window::no_refresh): New method.
10710 (tui_data_item_window::refresh_window): Call tui_wrefresh.
10711 (tui_reg_command): Use tui_suppress_output
10712 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
10713 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
10714 method.
10715 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
10716
4f13c1c0
TT
107172020-01-19 Tom Tromey <tom@tromey.com>
10718
10719 * tui/tui-winsource.c (tui_update_source_windows_with_line):
10720 Handle case where symtab is null.
10721
fa47e446
SM
107222020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
10723
10724 * linux-fork.c (one_fork_p): Simplify.
10725
26f42329
SM
107262020-01-17 Simon Marchi <simon.marchi@efficios.com>
10727
10728 * top.c (struct qt_args): Remove.
10729 (kill_or_detach): Change return type to void, replace `void *`
10730 parameter with a proper one.
10731 (print_inferior_quit_action): Likewise.
10732 (quit_confirm): Use range-based for loop to iterate over inferiors.
10733 (quit_force): Likewise.
10734
a9ac81b1
SM
107352020-01-17 Simon Marchi <simon.marchi@efficios.com>
10736
10737 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
10738 `void *` parameter with proper parameters.
10739 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
10740 (print_one_inferior): Change return type to void, replace `void *`
10741 parameter with proper parameters.
10742 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
10743 inferiors.
10744 (get_other_inferior): Remove.
10745 (mi_cmd_remove_inferior): Use range-based loop to iterate over
10746 inferiors.
10747
788eca49
SM
107482020-01-17 Simon Marchi <simon.marchi@efficios.com>
10749
10750 * mi/mi-interp.c (report_initial_inferior): Remove.
10751 (mi_interp::init): Use range-based for to iterate over inferiors.
10752
d9bc85b6
SM
107532020-01-17 Simon Marchi <simon.marchi@efficios.com>
10754
10755 * python/py-inferior.c (build_inferior_list): Remove.
10756 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
10757
40c94099
CB
107582020-01-16 Christian Biesinger <cbiesinger@google.com>
10759
10760 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
10761 (btrace_stitch_trace): Likewise.
10762 * charset.c (intermediate_encoding): Likewise (vaild).
10763 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
10764 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
10765 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
10766
e0cdfe3c
HD
107672020-01-16 Hannes Domani <ssbssa@yahoo.de>
10768
10769 * windows-tdep.c (windows_get_tlb_type):
10770 Add rtl_user_process_parameters type.
10771
790f1718 107722020-01-16 Pedro Alves <palves@redhat.com>
aac66a4c 10773 Norbert Lange <nolange79@gmail.com>
790f1718
PA
10774
10775 PR build/24805
10776 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
10777 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
10778 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
10779 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
10780 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
10781 (ps_plog): Redeclare exported functions with default visibility.
10782
3112ed97
NA
107832020-01-16 Nitika Achra <Nitika.Achra@amd.com>
10784
10785 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
10786 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
10787
8dc3273e
SM
107882020-01-15 Simon Marchi <simon.marchi@efficios.com>
10789
10790 * infcmd.c (post_create_inferior): Use get_thread_regcache
10791 instead of get_current_regcache.
10792
ff47f4f0
TT
107932020-01-14 Tom Tromey <tom@tromey.com>
10794
10795 PR symtab/12535:
10796 * python/python.c (gdbpy_decode_line): Treat empty string the same
10797 as no argument.
10798
975f45b7
TT
107992020-01-14 Tom Tromey <tom@tromey.com>
10800
10801 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
10802
25e57356
TT
108032020-01-14 Tom Tromey <tom@tromey.com>
10804
10805 * nat/linux-btrace.c: Don't include <config.h>.
10806 * nat/linux-ptrace.c: Don't include <config.h>.
10807 * nat/x86-linux-dregs.c: Don't include <config.h>.
10808
05ea2a05
TT
108092020-01-14 Tom Tromey <tom@tromey.com>
10810
10811 * configure: Rebuild.
10812 * configure.ac: Move many checks to ../gdbsupport/common.m4.
10813
01027315
TT
108142020-01-14 Tom Tromey <tom@tromey.com>
10815
10816 * nat/x86-linux-dregs.c: Include configh.h.
10817 * nat/linux-ptrace.c: Include configh.h.
10818 * nat/linux-btrace.c: Include configh.h.
10819 * defs.h: Include config.h, bfd.h.
10820 * configure.ac: Don't source common.host.
10821 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
10822 * configure: Rebuild.
10823 * acinclude.m4: Update path.
10824 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
10825 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
10826 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
10827 (CLIBS): Add LIBSUPPORT.
10828 (CDEPS): Likewise.
10829 (COMMON_SFILES): Remove gdbsupport files.
10830 (HFILES_NO_SRCDIR): Likewise.
10831 (stamp-version): Update path to create-version.sh.
10832 (ALLDEPFILES): Remove gdbsupport files.
10833
b2ceabe8
TT
108342020-01-14 Tom Tromey <tom@tromey.com>
10835
10836 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
10837 USE_WIN32API when needed.
10838 * configure.ac (USE_WIN32API): Don't define.
10839 (WIN32LIBS): Use WIN32APILIBS.
10840 * configure: Rebuild.
10841
25c51f71
TT
108422020-01-14 Tom Tromey <tom@tromey.com>
10843
10844 * configure: Rebuild.
10845 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
10846
717c684d
BE
108472020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
10848
10849 * skip.c (skip_function_command): Make skip w/o arguments use the
10850 name of the inlined function if pc is inside any inlined function.
10851
7da6a5b9
LM
108522020-01-14 Luis Machado <luis.machado@linaro.org>
10853
10854 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
10855 * infrun.c (resume_1): Likewise.
10856 (handle_inferior_event): Remove stale comment.
10857 * linux-nat.c (linux_nat_target::resume): Update comments.
10858 (save_stop_reason): Likewise.
10859 (linux_nat_filter_event): Likewise.
10860 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
10861
44e4c775
AB
108622020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
10863
10864 * elfread.c (record_minimal_symbol): Set section index to 0 for
10865 non-allocatable sections.
10866
18a8505e
AT
10867
108682020-01-13 Ali Tamur <tamur@google.com>
10869
10870 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
10871 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
10872 to gdb::optional. Update comments.
10873 (dwo_file): Update comments.
10874 (read_attribute): Update API to take an additional out parameter,
10875 need_reprocess. This is used to mark attributes that need other
10876 attributes (e.g. str_offsets_base) for correct computation which may not
10877 have been read yet.
10878 (read_attribute_reprocess): New function declaration.
10879 (read_addr_index): Likewise.
10880 (read_dwo_str_index): Likewise.
10881 (read_stub_str_index): Likewise.
10882 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
10883 (lookup_addr_base): New function definition.
10884 (lookup_ranges_base): Likewise.
10885 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
10886 lookup_ranges_base.
10887 (init_cutu_and_read_dies): Update comments.
10888 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
10889 unit. This is used to inherit parent's str_offsets_base and addr_base.
10890 Update comments.
10891 (init_cutu_and_read_dies_simple): Reflect API changes.
10892 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
10893 (create_cus_hash_table): Change API to take parent compile unit.
10894 Reflect API changes.
10895 (open_and_init_dwo_file): Reflect API changes.
10896 (dwarf2_get_pc_bounds): Update comments.
10897 (dwarf2_record_block_ranges): Likewise.
10898 (read_full_die_1): Change implementation to reprocess attributes that
10899 need str_offsets_base and addr_base.
10900 (partial_die_info::read): Likewise.
10901 (read_attribute_reprocess): New function definition.
10902 (read_attribute_value): Change API to take an additional out parameter,
10903 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
10904 when a non-dwo compile unit has index based attributes.
10905 (read_attribute): Reflect API changes.
10906 (read_addr_index_1): Reflect API changes. Update comments.
10907 (dwarf2_read_addr_index_data): Reflect API changes.
10908 (dwarf2_read_addr_index): Likewise.
10909 (read_str_index): Change API and implementation. This becomes a helper
10910 to be used by the new string index related methods. Update error
10911 message and comments.
10912 (read_dwo_str_index): New function definition.
10913 (read_stub_str_index): Likewise.
10914 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
10915 * symfile.h (dwarf2_debug_sections): Likewise.
10916 * xcoffread.c (dwarf2_debug_sections): Likewise.
10917
0cac9354
SM
109182020-01-13 Simon Marchi <simon.marchi@efficios.com>
10919
10920 * gdbcore.h (struct core_fns) <core_read_registers>: Change
10921 core_reg_sect type to gdb_byte *.
10922 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
10923 * cris-tdep.c (fetch_core_registers): Likewise.
10924 * corelow.c (core_target::get_core_register_section): Change
10925 type of `contents` to gdb::byte_vector.
10926
9a6d629c
AB
109272020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
10928
10929 * tui/tui-wingeneral.c (box_win): Position the title in the center
10930 of the border.
10931
d8b2f9e3
SM
109322020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
10933
10934 * corelow.c (core_target::get_core_register_section): Use
10935 std::vector instead of alloca.
10936
bb564c58
SM
109372020-01-13 Simon Marchi <simon.marchi@efficios.com>
10938
10939 * warning.m4: Add -Wmissing-declarations to build_warnings.
10940 * configure: Re-generate.
10941
6b366111
SM
109422020-01-13 Simon Marchi <simon.marchi@efficios.com>
10943
10944 * python/python.c (init__gdb_module): Add declaration.
10945
6c265988
SM
109462020-01-13 Simon Marchi <simon.marchi@efficios.com>
10947
10948 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
10949 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
10950 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
10951 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
10952 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
10953 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
10954 * ada-exp.y (_initialize_ada_exp): Add declaration.
10955 * ada-lang.c (_initialize_ada_language): Add declaration.
10956 * ada-tasks.c (_initialize_tasks): Add declaration.
10957 * agent.c (_initialize_agent): Add declaration.
10958 * aix-thread.c (_initialize_aix_thread): Add declaration.
10959 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
10960 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
10961 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
10962 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
10963 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
10964 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
10965 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
10966 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
10967 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
10968 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
10969 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
10970 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
10971 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
10972 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
10973 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
10974 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
10975 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
10976 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
10977 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
10978 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
10979 * annotate.c (_initialize_annotate): Add declaration.
10980 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
10981 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
10982 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
10983 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
10984 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
10985 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
10986 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
10987 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
10988 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
10989 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
10990 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
10991 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
10992 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
10993 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
10994 * auto-load.c (_initialize_auto_load): Add declaration.
10995 * auxv.c (_initialize_auxv): Add declaration.
10996 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
10997 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
10998 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
10999 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
11000 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
11001 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
11002 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
11003 * breakpoint.c (_initialize_breakpoint): Add declaration.
11004 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
11005 * btrace.c (_initialize_btrace): Add declaration.
11006 * charset.c (_initialize_charset): Add declaration.
11007 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
11008 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
11009 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
11010 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
11011 * cli/cli-script.c (_initialize_cli_script): Add declaration.
11012 * cli/cli-style.c (_initialize_cli_style): Add declaration.
11013 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
11014 * coffread.c (_initialize_coffread): Add declaration.
11015 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
11016 * compile/compile.c (_initialize_compile): Add declaration.
11017 * complaints.c (_initialize_complaints): Add declaration.
11018 * completer.c (_initialize_completer): Add declaration.
11019 * copying.c (_initialize_copying): Add declaration.
11020 * corefile.c (_initialize_core): Add declaration.
11021 * corelow.c (_initialize_corelow): Add declaration.
11022 * cp-abi.c (_initialize_cp_abi): Add declaration.
11023 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
11024 * cp-support.c (_initialize_cp_support): Add declaration.
11025 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
11026 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
11027 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
11028 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
11029 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
11030 * ctfread.c (_initialize_ctfread): Add declaration.
11031 * d-lang.c (_initialize_d_language): Add declaration.
11032 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
11033 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
11034 * dbxread.c (_initialize_dbxread): Add declaration.
11035 * dcache.c (_initialize_dcache): Add declaration.
11036 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
11037 * disasm.c (_initialize_disasm): Add declaration.
11038 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
11039 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
11040 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
11041 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
11042 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
11043 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
11044 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
11045 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
11046 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
11047 * elfread.c (_initialize_elfread): Add declaration.
11048 * exec.c (_initialize_exec): Add declaration.
11049 * extension.c (_initialize_extension): Add declaration.
11050 * f-lang.c (_initialize_f_language): Add declaration.
11051 * f-valprint.c (_initialize_f_valprint): Add declaration.
11052 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
11053 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
11054 * filesystem.c (_initialize_filesystem): Add declaration.
11055 * findcmd.c (_initialize_mem_search): Add declaration.
11056 * findvar.c (_initialize_findvar): Add declaration.
11057 * fork-child.c (_initialize_fork_child): Add declaration.
11058 * frame-base.c (_initialize_frame_base): Add declaration.
11059 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
11060 * frame.c (_initialize_frame): Add declaration.
11061 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
11062 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
11063 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
11064 * gcore.c (_initialize_gcore): Add declaration.
11065 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
11066 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
11067 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
11068 * gdbarch.c (_initialize_gdbarch): Add declaration.
11069 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
11070 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
11071 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
11072 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
11073 * go-lang.c (_initialize_go_language): Add declaration.
11074 * go32-nat.c (_initialize_go32_nat): Add declaration.
11075 * guile/guile.c (_initialize_guile): Add declaration.
11076 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
11077 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
11078 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
11079 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
11080 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
11081 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
11082 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
11083 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
11084 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
11085 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
11086 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
11087 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
11088 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
11089 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
11090 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
11091 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
11092 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
11093 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
11094 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
11095 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
11096 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
11097 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
11098 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
11099 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
11100 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
11101 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
11102 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
11103 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
11104 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
11105 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
11106 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
11107 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
11108 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
11109 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
11110 * infcall.c (_initialize_infcall): Add declaration.
11111 * infcmd.c (_initialize_infcmd): Add declaration.
11112 * inflow.c (_initialize_inflow): Add declaration.
11113 * infrun.c (_initialize_infrun): Add declaration.
11114 * interps.c (_initialize_interpreter): Add declaration.
11115 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
11116 * jit.c (_initialize_jit): Add declaration.
11117 * language.c (_initialize_language): Add declaration.
11118 * linux-fork.c (_initialize_linux_fork): Add declaration.
11119 * linux-nat.c (_initialize_linux_nat): Add declaration.
11120 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
11121 * linux-thread-db.c (_initialize_thread_db): Add declaration.
11122 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
11123 * m2-lang.c (_initialize_m2_language): Add declaration.
11124 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
11125 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
11126 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
11127 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
11128 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
11129 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
11130 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
11131 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
11132 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
11133 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
11134 * machoread.c (_initialize_machoread): Add declaration.
11135 * macrocmd.c (_initialize_macrocmd): Add declaration.
11136 * macroscope.c (_initialize_macroscope): Add declaration.
11137 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
11138 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
11139 * maint.c (_initialize_maint_cmds): Add declaration.
11140 * mdebugread.c (_initialize_mdebugread): Add declaration.
11141 * memattr.c (_initialize_mem): Add declaration.
11142 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
11143 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
11144 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
11145 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
11146 * mi/mi-main.c (_initialize_mi_main): Add declaration.
11147 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
11148 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
11149 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
11150 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
11151 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
11152 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
11153 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
11154 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
11155 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
11156 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
11157 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
11158 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
11159 * mipsread.c (_initialize_mipsread): Add declaration.
11160 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
11161 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
11162 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
11163 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
11164 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
11165 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
11166 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
11167 * nto-procfs.c (_initialize_procfs): Add declaration.
11168 * objc-lang.c (_initialize_objc_language): Add declaration.
11169 * observable.c (_initialize_observer): Add declaration.
11170 * opencl-lang.c (_initialize_opencl_language): Add declaration.
11171 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
11172 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
11173 * osabi.c (_initialize_gdb_osabi): Add declaration.
11174 * osdata.c (_initialize_osdata): Add declaration.
11175 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
11176 * parse.c (_initialize_parse): Add declaration.
11177 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
11178 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
11179 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
11180 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
11181 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
11182 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
11183 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
11184 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
11185 * printcmd.c (_initialize_printcmd): Add declaration.
11186 * probe.c (_initialize_probe): Add declaration.
11187 * proc-api.c (_initialize_proc_api): Add declaration.
11188 * proc-events.c (_initialize_proc_events): Add declaration.
11189 * proc-service.c (_initialize_proc_service): Add declaration.
11190 * procfs.c (_initialize_procfs): Add declaration.
11191 * producer.c (_initialize_producer): Add declaration.
11192 * psymtab.c (_initialize_psymtab): Add declaration.
11193 * python/python.c (_initialize_python): Add declaration.
11194 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
11195 * record-btrace.c (_initialize_record_btrace): Add declaration.
11196 * record-full.c (_initialize_record_full): Add declaration.
11197 * record.c (_initialize_record): Add declaration.
11198 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
11199 * regcache.c (_initialize_regcache): Add declaration.
11200 * reggroups.c (_initialize_reggroup): Add declaration.
11201 * remote-notif.c (_initialize_notif): Add declaration.
11202 * remote-sim.c (_initialize_remote_sim): Add declaration.
11203 * remote.c (_initialize_remote): Add declaration.
11204 * reverse.c (_initialize_reverse): Add declaration.
11205 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
11206 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
11207 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
11208 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
11209 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
11210 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
11211 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
11212 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
11213 Add declaration.
11214 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
11215 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
11216 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
11217 * rust-exp.y (_initialize_rust_exp): Add declaration.
11218 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
11219 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
11220 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
11221 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
11222 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
11223 * score-tdep.c (_initialize_score_tdep): Add declaration.
11224 * ser-go32.c (_initialize_ser_dos): Add declaration.
11225 * ser-mingw.c (_initialize_ser_windows): Add declaration.
11226 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
11227 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
11228 * ser-uds.c (_initialize_ser_socket): Add declaration.
11229 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
11230 * serial.c (_initialize_serial): Add declaration.
11231 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
11232 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
11233 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
11234 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
11235 * skip.c (_initialize_step_skip): Add declaration.
11236 * sol-thread.c (_initialize_sol_thread): Add declaration.
11237 * solib-aix.c (_initialize_solib_aix): Add declaration.
11238 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
11239 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
11240 * solib-frv.c (_initialize_frv_solib): Add declaration.
11241 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
11242 * solib-target.c (_initialize_solib_target): Add declaration.
11243 * solib.c (_initialize_solib): Add declaration.
11244 * source-cache.c (_initialize_source_cache): Add declaration.
11245 * source.c (_initialize_source): Add declaration.
11246 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
11247 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
11248 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
11249 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
11250 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
11251 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
11252 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
11253 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
11254 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
11255 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
11256 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
11257 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
11258 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
11259 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
11260 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
11261 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
11262 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
11263 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
11264 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
11265 * stabsread.c (_initialize_stabsread): Add declaration.
11266 * stack.c (_initialize_stack): Add declaration.
11267 * stap-probe.c (_initialize_stap_probe): Add declaration.
11268 * std-regs.c (_initialize_frame_reg): Add declaration.
11269 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
11270 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
11271 * symfile.c (_initialize_symfile): Add declaration.
11272 * symmisc.c (_initialize_symmisc): Add declaration.
11273 * symtab.c (_initialize_symtab): Add declaration.
11274 * target.c (_initialize_target): Add declaration.
11275 * target-connection.c (_initialize_target_connection): Add
11276 declaration.
11277 * target-dcache.c (_initialize_target_dcache): Add declaration.
11278 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
11279 * thread.c (_initialize_thread): Add declaration.
11280 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
11281 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
11282 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
11283 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
11284 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
11285 * tracectf.c (_initialize_ctf): Add declaration.
11286 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
11287 * tracefile.c (_initialize_tracefile): Add declaration.
11288 * tracepoint.c (_initialize_tracepoint): Add declaration.
11289 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
11290 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
11291 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
11292 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
11293 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
11294 * tui/tui-win.c (_initialize_tui_win): Add declaration.
11295 * tui/tui.c (_initialize_tui): Add declaration.
11296 * typeprint.c (_initialize_typeprint): Add declaration.
11297 * ui-style.c (_initialize_ui_style): Add declaration.
11298 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
11299 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
11300 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
11301 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
11302 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
11303 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
11304 * unittests/filtered_iterator-selftests.c
11305 (_initialize_filtered_iterator_selftests): Add declaration.
11306 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
11307 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
11308 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
11309 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
11310 * unittests/main-thread-selftests.c
11311 (_initialize_main_thread_selftests): Add declaration.
11312 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
11313 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
11314 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
11315 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
11316 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
11317 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
11318 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
11319 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
11320 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
11321 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
11322 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
11323 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
11324 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
11325 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
11326 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
11327 declaration.
11328 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
11329 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
11330 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
11331 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
11332 * user-regs.c (_initialize_user_regs): Add declaration.
11333 * utils.c (_initialize_utils): Add declaration.
11334 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
11335 * valops.c (_initialize_valops): Add declaration.
11336 * valprint.c (_initialize_valprint): Add declaration.
11337 * value.c (_initialize_values): Add declaration.
11338 * varobj.c (_initialize_varobj): Add declaration.
11339 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
11340 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
11341 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
11342 * windows-nat.c (_initialize_windows_nat): Add declaration.
11343 (_initialize_check_for_gdb_ini): Add declaration.
11344 (_initialize_loadable): Add declaration.
11345 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
11346 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
11347 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
11348 * xcoffread.c (_initialize_xcoffread): Add declaration.
11349 * xml-support.c (_initialize_xml_support): Add declaration.
11350 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
11351 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
11352 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
11353 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
11354
e2de1eec
SM
113552020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
11356
11357 * regformats/regdat.sh: Generate declaration for init function.
11358
e0037b4c
SM
113592020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
11360
11361 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
11362 up.
11363 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
11364 close_one_inferior>: New methods.
11365 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
11366 pass down target to find_inferior_pid.
11367 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
11368 Pass down target to find_inferior_ptid.
11369 (gdbsim_target::create_inferior): Pass down target to
11370 add_thread_silent.
11371 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
11372 target down to find_inferior_ptid and switch_to_thread.
11373 (gdbsim_target::close): Update to call close_one_inferior.
11374 (struct resume_data): Remove.
11375 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
11376 directly, rather than through a void pointer.
11377 (gdbsim_target::resume): Update to call resume_one_inferior.
11378
58920b5b
SM
113792020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
11380
11381 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
11382
4ec89149
PA
113832020-01-12 Pedro Alves <palves@redhat.com>
11384
11385 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
11386 directly for the current inferior instead of
11387 discard_all_inferiors.
11388 (discard_all_inferiors): Delete.
11389
7c392d1d
TT
113902020-01-11 Tom Tromey <tom@tromey.com>
11391
11392 * tui/tui-wingeneral.c (box_win): Check cli_styling.
11393 * tui/tui-winsource.c (tui_source_window_base::refill): Use
11394 deprecated_safe_get_selected_frame.
11395
d9ebdab7
TBA
113962020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11397
11398 * inferior.c (print_inferior): Switch inferior before printing it.
11399
f3c469b9
PA
114002020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
11401 Pedro Alves <palves@redhat.com>
11402
11403 * progspace-and-thread.c (switch_to_program_space_and_thread):
11404 Assert there's an inferior for PSPACE. Use
11405 switch_to_inferior_no_thread to switch the inferior too.
11406 * progspace.c (program_space::~program_space): Call
11407 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
11408 (program_space::free_all_objfiles): Don't call clear_symtab_users
11409 here.
11410 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
11411
65c574f6
PA
114122020-01-10 Pedro Alves <palves@redhat.com>
11413
11414 * NEWS: Mention multi-target debugging, "info connections", and
11415 "add-inferior -no-connection".
11416
2f4fcf00
PA
114172020-01-10 Pedro Alves <palves@redhat.com>
11418
11419 * infrun.c: Include "target-connection.h".
11420 (check_multi_target_resumption): New.
11421 (proceed): Call it.
11422 * target-connection.c (make_target_connection_string): Make
11423 extern.
11424 * target-connection.h (make_target_connection_string): Declare.
11425
121b3efd
PA
114262020-01-10 Pedro Alves <palves@redhat.com>
11427
11428 * Makefile.in (COMMON_SFILES): Add target-connection.c.
11429 * inferior.c (uiout_field_connection): New function.
11430 (print_inferior): Add new "connection-id" column.
11431 (add_inferior_command): Show connection number/string of added
11432 inferior.
11433 * process-stratum-target.h
11434 (process_stratum_target::connection_string): New virtual method.
11435 (process_stratum_target::connection_number): New field.
11436 * remote.c (remote_target::connection_string): New override.
11437 * target-connection.c: New file.
11438 * target-connection.h: New file.
11439 * target.c (decref_target): Remove process_stratum targets from
11440 the connection list.
11441 (target_stack::push): Add process_stratum targets to the
11442 connection list.
11443
4f837581
PA
114442020-01-10 Pedro Alves <palves@redhat.com>
11445
11446 Revert:
11447 2016-04-12 Pedro Alves <palves@redhat.com>
11448 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
11449 Remove references to name.
11450 * serial.h (struct serial) <name>: Delete.
11451
f4ec508e
PA
114522020-01-10 Pedro Alves <palves@redhat.com>
11453
11454 * gdbarch-selftests.c (register_to_value_test): Remove "target
11455 already pushed" check.
11456
5b6d1e4f
PA
114572020-01-10 Pedro Alves <palves@redhat.com>
11458 John Baldwin <jhb@FreeBSD.org>
11459
11460 * aarch64-linux-nat.c
11461 (aarch64_linux_nat_target::thread_architecture): Adjust.
11462 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
11463 (task_command_1): Likewise.
11464 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
11465 (aix_thread_target::wait, aix_thread_target::fetch_registers)
11466 (aix_thread_target::store_registers)
11467 (aix_thread_target::thread_alive): Adjust.
11468 * amd64-fbsd-tdep.c: Include "inferior.h".
11469 (amd64fbsd_get_thread_local_address): Pass down target.
11470 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
11471 thread's gdbarch instead of target_gdbarch.
11472 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
11473 get_last_target_status.
11474 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
11475 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
11476 inferiors.
11477 (update_inserted_breakpoint_locations): Skip if inferiors with no
11478 execution.
11479 (update_global_location_list): When handling moribund locations,
11480 find representative inferior for location's pspace, and use thread
11481 count of its process_stratum target.
11482 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
11483 * bsd-uthread.c (bsd_uthread_target::wait): Use
11484 as_process_stratum_target and adjust thread_change_ptid and
11485 add_thread calls.
11486 (bsd_uthread_target::update_thread_list): Use
11487 as_process_stratum_target and adjust find_thread_ptid,
11488 thread_change_ptid and add_thread calls.
11489 * btrace.c (maint_btrace_packet_history_cmd): Adjust
11490 find_thread_ptid call.
11491 * corelow.c (add_to_thread_list): Adjust add_thread call.
11492 (core_target_open): Adjust add_thread_silent and thread_count
11493 calls.
11494 (core_target::pid_to_str): Adjust find_inferior_ptid call.
11495 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
11496 * event-top.c (async_disconnect): Pop targets from all inferiors.
11497 * exec.c (add_target_sections): Push exec target on all inferiors
11498 sharing the program space.
11499 (remove_target_sections): Remove the exec target from all
11500 inferiors sharing the program space.
11501 (exec_on_vfork): New.
11502 * exec.h (exec_on_vfork): Declare.
11503 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
11504 Pass it down.
11505 (fbsd_nat_target::update_thread_list): Adjust.
11506 (fbsd_nat_target::resume): Adjust.
11507 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
11508 down.
11509 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
11510 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
11511 get_thread_arch_regcache call.
11512 * fork-child.c (gdb_startup_inferior): Pass target down to
11513 startup_inferior and set_executing.
11514 * gdbthread.h (struct process_stratum_target): Forward declare.
11515 (add_thread, add_thread_silent, add_thread_with_info)
11516 (in_thread_list): Add process_stratum_target parameter.
11517 (find_thread_ptid(inferior*, ptid_t)): New overload.
11518 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
11519 parameter.
11520 (all_threads()): Delete overload.
11521 (all_threads, all_non_exited_threads): Add process_stratum_target
11522 parameter.
11523 (all_threads_safe): Use brace initialization.
11524 (thread_count): Add process_stratum_target parameter.
11525 (set_resumed, set_running, set_stop_requested, set_executing)
11526 (threads_are_executing, finish_thread_state): Add
11527 process_stratum_target parameter.
11528 (switch_to_thread): Use is_current_thread.
11529 * i386-fbsd-tdep.c: Include "inferior.h".
11530 (i386fbsd_get_thread_local_address): Pass down target.
11531 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
11532 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
11533 have_inferiors check.
11534 * inf-ptrace.c (inf_ptrace_target::create_inferior)
11535 (inf_ptrace_target::attach): Adjust.
11536 * infcall.c (run_inferior_call): Adjust.
11537 * infcmd.c (run_command_1): Pass target to
11538 scoped_finish_thread_state.
11539 (proceed_thread_callback): Skip inferiors with no execution.
11540 (continue_command): Rename 'all_threads' local to avoid hiding
11541 'all_threads' function. Adjust get_last_target_status call.
11542 (prepare_one_step): Adjust set_running call.
11543 (signal_command): Use user_visible_resume_target. Compare thread
11544 pointers instead of inferior_ptid.
11545 (info_program_command): Adjust to pass down target.
11546 (attach_command): Mark target's 'thread_executing' flag.
11547 (stop_current_target_threads_ns): New, factored out from ...
11548 (interrupt_target_1): ... this. Switch inferior before making
11549 target calls.
11550 * inferior-iter.h
11551 (struct all_inferiors_iterator, struct all_inferiors_range)
11552 (struct all_inferiors_safe_range)
11553 (struct all_non_exited_inferiors_range): Filter on
11554 process_stratum_target too. Remove explicit.
11555 * inferior.c (inferior::inferior): Push dummy target on target
11556 stack.
11557 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
11558 Add process_stratum_target parameter, and pass it down.
11559 (have_live_inferiors): Adjust.
11560 (switch_to_inferior_and_push_target): New.
11561 (add_inferior_command, clone_inferior_command): Handle
11562 "-no-connection" parameter. Use
11563 switch_to_inferior_and_push_target.
11564 (_initialize_inferior): Mention "-no-connection" option in
11565 the help of "add-inferior" and "clone-inferior" commands.
11566 * inferior.h: Include "process-stratum-target.h".
11567 (interrupt_target_1): Use bool.
11568 (struct inferior) <push_target, unpush_target, target_is_pushed,
11569 find_target_beneath, top_target, process_target, target_at,
11570 m_stack>: New.
11571 (discard_all_inferiors): Delete.
11572 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
11573 (all_inferiors, all_non_exited_inferiors): Add
11574 process_stratum_target parameter.
11575 * infrun.c: Include "gdb_select.h" and <unordered_map>.
11576 (target_last_proc_target): New global.
11577 (follow_fork_inferior): Push target on new inferior. Pass target
11578 to add_thread_silent. Call exec_on_vfork. Handle target's
11579 reference count.
11580 (follow_fork): Adjust get_last_target_status call. Also consider
11581 target.
11582 (follow_exec): Push target on new inferior.
11583 (struct execution_control_state) <target>: New field.
11584 (user_visible_resume_target): New.
11585 (do_target_resume): Call target_async.
11586 (resume_1): Set target's threads_executing flag. Consider resume
11587 target.
11588 (commit_resume_all_targets): New.
11589 (proceed): Also consider resume target. Skip threads of inferiors
11590 with no execution. Commit resumtion in all targets.
11591 (start_remote): Pass current inferior to wait_for_inferior.
11592 (infrun_thread_stop_requested): Consider target as well. Pass
11593 thread_info pointer to clear_inline_frame_state instead of ptid.
11594 (infrun_thread_thread_exit): Consider target as well.
11595 (random_pending_event_thread): New inferior parameter. Use it.
11596 (do_target_wait): Rename to ...
11597 (do_target_wait_1): ... this. Add inferior parameter, and pass it
11598 down.
11599 (threads_are_resumed_pending_p, do_target_wait): New.
11600 (prepare_for_detach): Adjust calls.
11601 (wait_for_inferior): New inferior parameter. Handle it. Use
11602 do_target_wait_1 instead of do_target_wait.
11603 (fetch_inferior_event): Adjust. Switch to representative
11604 inferior. Pass target down.
11605 (set_last_target_status): Add process_stratum_target parameter.
11606 Save target in global.
11607 (get_last_target_status): Add process_stratum_target parameter and
11608 handle it.
11609 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
11610 (context_switch): Check inferior_ptid == null_ptid before calling
11611 inferior_thread().
11612 (get_inferior_stop_soon): Pass down target.
11613 (wait_one): Rename to ...
11614 (poll_one_curr_target): ... this.
11615 (struct wait_one_event): New.
11616 (wait_one): New.
11617 (stop_all_threads): Adjust.
11618 (handle_no_resumed, handle_inferior_event): Adjust to consider the
11619 event's target.
11620 (switch_back_to_stepped_thread): Also consider target.
11621 (print_stop_event): Update.
11622 (normal_stop): Update. Also consider the resume target.
11623 * infrun.h (wait_for_inferior): Remove declaration.
11624 (user_visible_resume_target): New declaration.
11625 (get_last_target_status, set_last_target_status): New
11626 process_stratum_target parameter.
11627 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
11628 process_stratum_target parameter, and use it.
11629 (clear_inline_frame_state (thread_info*)): New.
11630 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
11631 process_stratum_target parameter.
11632 (clear_inline_frame_state (thread_info*)): Declare.
11633 * linux-fork.c (delete_checkpoint_command): Pass target down to
11634 find_thread_ptid.
11635 (checkpoint_command): Adjust.
11636 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
11637 instead of just tweaking inferior_ptid.
11638 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
11639 (exit_lwp): Pass target down to find_thread_ptid.
11640 (attach_proc_task_lwp_callback): Pass target down to
11641 add_thread/set_running/set_executing.
11642 (linux_nat_target::attach): Pass target down to
11643 thread_change_ptid.
11644 (get_detach_signal): Pass target down to find_thread_ptid.
11645 Consider last target status's target.
11646 (linux_resume_one_lwp_throw, resume_lwp)
11647 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
11648 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
11649 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
11650 (linux_nat_target::async_wait_fd): New.
11651 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
11652 target down.
11653 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
11654 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
11655 * linux-thread-db.c (struct thread_db_info::process_target): New
11656 field.
11657 (add_thread_db_info): Save target.
11658 (get_thread_db_info): New process_stratum_target parameter. Also
11659 match target.
11660 (delete_thread_db_info): New process_stratum_target parameter.
11661 Also match target.
11662 (thread_from_lwp): Adjust to pass down target.
11663 (thread_db_notice_clone): Pass down target.
11664 (check_thread_db_callback): Pass down target.
11665 (try_thread_db_load_1): Always push the thread_db target.
11666 (try_thread_db_load, record_thread): Pass target down.
11667 (thread_db_target::detach): Pass target down. Always unpush the
11668 thread_db target.
11669 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
11670 target down. Always unpush the thread_db target.
11671 (find_new_threads_callback, thread_db_find_new_threads_2)
11672 (thread_db_target::update_thread_list): Pass target down.
11673 (thread_db_target::pid_to_str): Pass current inferior down.
11674 (thread_db_target::get_thread_local_address): Pass target down.
11675 (thread_db_target::resume, maintenance_check_libthread_db): Pass
11676 target down.
11677 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
11678 * procfs.c (procfs_target::procfs_init_inferior): Declare.
11679 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
11680 (procfs_init_inferior): Rename to ...
11681 (procfs_target::procfs_init_inferior): ... this and adjust.
11682 (procfs_target::create_inferior, procfs_notice_thread)
11683 (procfs_do_thread_registers): Adjust.
11684 * ppc-fbsd-tdep.c: Include "inferior.h".
11685 (ppcfbsd_get_thread_local_address): Pass down target.
11686 * proc-service.c (ps_xfer_memory): Switch current inferior and
11687 program space as well.
11688 (get_ps_regcache): Pass target down.
11689 * process-stratum-target.c
11690 (process_stratum_target::thread_address_space)
11691 (process_stratum_target::thread_architecture): Pass target down.
11692 * process-stratum-target.h
11693 (process_stratum_target::threads_executing): New field.
11694 (as_process_stratum_target): New.
11695 * ravenscar-thread.c
11696 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
11697 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
11698 down.
11699 * record-btrace.c (record_btrace_target::info_record): Adjust.
11700 (record_btrace_target::record_method)
11701 (record_btrace_target::record_is_replaying)
11702 (record_btrace_target::fetch_registers)
11703 (get_thread_current_frame_id, record_btrace_target::resume)
11704 (record_btrace_target::wait, record_btrace_target::stop): Pass
11705 target down.
11706 * record-full.c (record_full_wait_1): Switch to event thread.
11707 Pass target down.
11708 * regcache.c (regcache::regcache)
11709 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
11710 process_stratum_target parameter and handle it.
11711 (current_thread_target): New global.
11712 (get_thread_regcache): Add process_stratum_target parameter and
11713 handle it. Switch inferior before calling target method.
11714 (get_thread_regcache): Pass target down.
11715 (get_thread_regcache_for_ptid): Pass target down.
11716 (registers_changed_ptid): Add process_stratum_target parameter and
11717 handle it.
11718 (registers_changed_thread, registers_changed): Pass target down.
11719 (test_get_thread_arch_aspace_regcache): New.
11720 (current_regcache_test): Define a couple local test_target_ops
11721 instances and use them for testing.
11722 (readwrite_regcache): Pass process_stratum_target parameter.
11723 (cooked_read_test, cooked_write_test): Pass mock_target down.
11724 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
11725 (get_thread_arch_aspace_regcache): Add process_stratum_target
11726 parameter.
11727 (regcache::target): New method.
11728 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
11729 (regcache::registers_changed_ptid): Add process_stratum_target
11730 parameter.
11731 (regcache::m_target): New field.
11732 (registers_changed_ptid): Add process_stratum_target parameter.
11733 * remote.c (remote_state::supports_vCont_probed): New field.
11734 (remote_target::async_wait_fd): New method.
11735 (remote_unpush_and_throw): Add remote_target parameter.
11736 (get_current_remote_target): Adjust.
11737 (remote_target::remote_add_inferior): Push target.
11738 (remote_target::remote_add_thread)
11739 (remote_target::remote_notice_new_inferior)
11740 (get_remote_thread_info): Pass target down.
11741 (remote_target::update_thread_list): Skip threads of inferiors
11742 bound to other targets. (remote_target::close): Don't discard
11743 inferiors. (remote_target::add_current_inferior_and_thread)
11744 (remote_target::process_initial_stop_replies)
11745 (remote_target::start_remote)
11746 (remote_target::remote_serial_quit_handler): Pass down target.
11747 (remote_target::remote_unpush_target): New remote_target
11748 parameter. Unpush the target from all inferiors.
11749 (remote_target::remote_unpush_and_throw): New remote_target
11750 parameter. Pass it down.
11751 (remote_target::open_1): Check whether the current inferior has
11752 execution instead of checking whether any inferior is live. Pass
11753 target down.
11754 (remote_target::remote_detach_1): Pass down target. Use
11755 remote_unpush_target.
11756 (extended_remote_target::attach): Pass down target.
11757 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
11758 (remote_target::append_resumption): Pass down target.
11759 (remote_target::append_pending_thread_resumptions)
11760 (remote_target::remote_resume_with_hc, remote_target::resume)
11761 (remote_target::commit_resume): Pass down target.
11762 (remote_target::remote_stop_ns): Check supports_vCont_probed.
11763 (remote_target::interrupt_query)
11764 (remote_target::remove_new_fork_children)
11765 (remote_target::check_pending_events_prevent_wildcard_vcont)
11766 (remote_target::remote_parse_stop_reply)
11767 (remote_target::process_stop_reply): Pass down target.
11768 (first_remote_resumed_thread): New remote_target parameter. Pass
11769 it down.
11770 (remote_target::wait_as): Pass down target.
11771 (unpush_and_perror): New remote_target parameter. Pass it down.
11772 (remote_target::readchar, remote_target::remote_serial_write)
11773 (remote_target::getpkt_or_notif_sane_1)
11774 (remote_target::kill_new_fork_children, remote_target::kill): Pass
11775 down target.
11776 (remote_target::mourn_inferior): Pass down target. Use
11777 remote_unpush_target.
11778 (remote_target::core_of_thread)
11779 (remote_target::remote_btrace_maybe_reopen): Pass down target.
11780 (remote_target::pid_to_exec_file)
11781 (remote_target::thread_handle_to_thread_info): Pass down target.
11782 (remote_target::async_wait_fd): New.
11783 * riscv-fbsd-tdep.c: Include "inferior.h".
11784 (riscv_fbsd_get_thread_local_address): Pass down target.
11785 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
11786 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
11787 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
11788 Adjust.
11789 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
11790 * solib-svr4.c (enable_break): Pass down target.
11791 * spu-multiarch.c (parse_spufs_run): Pass down target.
11792 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
11793 * target-delegates.c: Regenerate.
11794 * target.c (g_target_stack): Delete.
11795 (current_top_target): Return the current inferior's top target.
11796 (target_has_execution_1): Refer to the passed-in inferior's top
11797 target.
11798 (target_supports_terminal_ours): Check whether the initial
11799 inferior was already created.
11800 (decref_target): New.
11801 (target_stack::push): Incref/decref the target.
11802 (push_target, push_target, unpush_target): Adjust.
11803 (target_stack::unpush): Defref target.
11804 (target_is_pushed): Return bool. Adjust to refer to the current
11805 inferior's target stack.
11806 (dispose_inferior): Delete, and inline parts ...
11807 (target_preopen): ... here. Only dispose of the current inferior.
11808 (target_detach): Hold strong target reference while detaching.
11809 Pass target down.
11810 (target_thread_name): Add assertion.
11811 (target_resume): Pass down target.
11812 (target_ops::beneath, find_target_at): Adjust to refer to the
11813 current inferior's target stack.
11814 (get_dummy_target): New.
11815 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
11816 has a thread running.
11817 (initialize_targets): Rename to ...
11818 (_initialize_target): ... this.
11819 * target.h: Include "gdbsupport/refcounted-object.h".
11820 (struct target_ops): Inherit refcounted_object.
11821 (target_ops::shortname, target_ops::longname): Make const.
11822 (target_ops::async_wait_fd): New method.
11823 (decref_target): Declare.
11824 (struct target_ops_ref_policy): New.
11825 (target_ops_ref): New typedef.
11826 (get_dummy_target): Declare function.
11827 (target_is_pushed): Return bool.
11828 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
11829 (all_matching_threads_iterator::all_matching_threads_iterator):
11830 Handle filter target.
11831 * thread-iter.h (struct all_matching_threads_iterator, struct
11832 all_matching_threads_range, class all_non_exited_threads_range):
11833 Filter by target too. Remove explicit.
11834 * thread.c (threads_executing): Delete.
11835 (inferior_thread): Pass down current inferior.
11836 (clear_thread_inferior_resources): Pass down thread pointer
11837 instead of ptid_t.
11838 (add_thread_silent, add_thread_with_info, add_thread): Add
11839 process_stratum_target parameter. Use it for thread and inferior
11840 searches.
11841 (is_current_thread): New.
11842 (thread_info::deletable): Use it.
11843 (find_thread_ptid, thread_count, in_thread_list)
11844 (thread_change_ptid, set_resumed, set_running): New
11845 process_stratum_target parameter. Pass it down.
11846 (set_executing): New process_stratum_target parameter. Pass it
11847 down. Adjust reference to 'threads_executing'.
11848 (threads_are_executing): New process_stratum_target parameter.
11849 Adjust reference to 'threads_executing'.
11850 (set_stop_requested, finish_thread_state): New
11851 process_stratum_target parameter. Pass it down.
11852 (switch_to_thread): Also match inferior.
11853 (switch_to_thread): New process_stratum_target parameter. Pass it
11854 down.
11855 (update_threads_executing): Reimplement.
11856 * top.c (quit_force): Pop targets from all inferior.
11857 (gdb_init): Don't call initialize_targets.
11858 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
11859 Declare.
11860 (windows_add_thread, windows_delete_thread): Adjust.
11861 (get_windows_debug_event): Rename to ...
11862 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
11863 * tracefile-tfile.c (tfile_target_open): Pass down target.
11864 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
11865 Forward declare.
11866 (switch_to_thread): Add process_stratum_target parameter.
11867 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
11868 parameter. Use it.
11869 (mi_on_resume): Pass target down.
11870 * nat/fork-inferior.c (startup_inferior): Add
11871 process_stratum_target parameter. Pass it down.
11872 * nat/fork-inferior.h (startup_inferior): Add
11873 process_stratum_target parameter.
11874 * python/py-threadevent.c (py_get_event_thread): Pass target down.
11875
75c6c844
PA
118762020-01-10 Pedro Alves <palves@redhat.com>
11877
11878 * remote.c (remote_target::start_remote): Don't set inferior_ptid
11879 directly. Instead find the first thread in the thread list and
11880 use switch_to_thread.
11881
78f2c40a
PA
118822020-01-10 Pedro Alves <palves@redhat.com>
11883
11884 * remote.c (remote_target::remote_add_inferior): Don't bind a
11885 process to the current inferior if the current inferior is already
11886 bound to a process.
11887
e7af6c70
TBA
118882020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11889 Pedro Alves <palves@redhat.com>
11890
11891 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
11892 If no process is specified, return null_ptid instead of
11893 inferior_ptid.
11894 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
11895 TARGET_WAITKIND_SIGNALLED with no pid.
11896
31ba933e
PA
118972020-01-10 Pedro Alves <palves@redhat.com>
11898
11899 * remote.c (first_remote_resumed_thread): New.
11900 (remote_target::wait_as): Use it as default event_ptid instead of
11901 inferior_ptid.
11902
735fc2ca
PA
119032020-01-10 Pedro Alves <palves@redhat.com>
11904
11905 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
11906
c17e02e1
PA
119072020-01-10 Pedro Alves <palves@redhat.com>
11908
11909 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
11910 not -1.
11911
ab1ddbcf
PA
119122020-01-10 Pedro Alves <palves@redhat.com>
11913
11914 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
11915 ptid to get_last_target_status.
11916 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
11917 ptid to get_last_target_status.
11918 * infcmd.c (continue_command): Don't pass a target_waitstatus to
11919 get_last_target_status.
11920 (info_program_command): Don't pass a target_waitstatus to
11921 get_last_target_status.
11922 * infrun.c (init_wait_for_inferior): Use
11923 nullify_last_target_wait_ptid.
11924 (get_last_target_status): Handle nullptr arguments.
11925 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
11926 (print_stop_event): Don't pass a ptid to get_last_target_status.
11927 (normal_stop): Don't pass a ptid to get_last_target_status.
11928 * infrun.h (get_last_target_status, set_last_target_status): Move
11929 comments here and update.
11930 (nullify_last_target_wait_ptid): Declare.
11931 * linux-fork.c (fork_load_infrun_state): Remove local extern
11932 declaration of nullify_last_target_wait_ptid.
11933 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
11934 to get_last_target_status.
11935
f3f8ece4
PA
119362020-01-10 Pedro Alves <palves@redhat.com>
11937
11938 * gdbthread.h (scoped_restore_current_thread)
11939 <dont_restore, restore, m_dont_restore>: Declare.
11940 * thread.c (thread_alive): Add assertion. Return bool.
11941 (switch_to_thread_if_alive): New.
11942 (prune_threads): Switch inferior/thread.
11943 (print_thread_info_1): Switch thread before calling target methods.
11944 (scoped_restore_current_thread::restore): New, factored out from
11945 ...
11946 (scoped_restore_current_thread::~scoped_restore_current_thread):
11947 ... this.
11948 (scoped_restore_current_thread::scoped_restore_current_thread):
11949 Add assertion.
11950 (thread_apply_all_command, thread_select): Use
11951 switch_to_thread_if_alive.
11952 * infrun.c (proceed, restart_threads, handle_signal_stop)
11953 (switch_back_to_stepped_thread): Switch current thread before
11954 calling target methods.
11955
db2d40f7
PA
119562020-01-10 Pedro Alves <palves@redhat.com>
11957
11958 * inferior.c (switch_to_inferior_no_thread): New function,
11959 factored out from ...
11960 (inferior_command): ... here.
11961 * inferior.h (switch_to_inferior_no_thread): Declare.
11962 * mi/mi-main.c (run_one_inferior): Use
11963 switch_to_inferior_no_thread.
11964
bd420a2d
PA
119652020-01-10 Pedro Alves <palves@redhat.com>
11966
11967 * infcmd.c (kill_command): Remove dead code.
11968
ddf5db90
PA
119692020-01-10 Pedro Alves <palves@redhat.com>
11970
11971 * remote.c (remote_target::mourn_inferior): No longer check
11972 whether the target is running.
11973
5018ce90
PA
119742020-01-10 Pedro Alves <palves@redhat.com>
11975
11976 * corelow.c (core_target::has_execution): Change parameter type to
11977 inferior pointer.
11978 * inferior.c (number_of_live_inferiors): Use
11979 inferior::has_execution instead of target_has_execution_1.
11980 * inferior.h (inferior::has_execution): New.
11981 * linux-thread-db.c (thread_db_target::update_thread_list): Use
11982 inferior::has_execution instead of target_has_execution_1.
11983 * process-stratum-target.c
11984 (process_stratum_target::has_execution): Change parameter type to
11985 inferior pointer. Check the inferior's PID instead of
11986 inferior_ptid.
11987 * process-stratum-target.h
11988 (process_stratum_target::has_execution): Change parameter type to
11989 inferior pointer.
11990 * record-full.c (record_full_core_target::has_execution): Change
11991 parameter type to inferior pointer.
11992 * target.c (target_has_execution_1): Change parameter type to
11993 inferior pointer.
11994 (target_has_execution_current): Adjust.
11995 * target.h (target_ops::has_execution): Change parameter type to
11996 inferior pointer.
11997 (target_has_execution_1): Change parameter type to inferior
11998 pointer. Change return type to bool.
11999 * tracefile.h (tracefile_target::has_execution): Change parameter
12000 type to inferior pointer.
12001
74375d18
PA
120022020-01-10 Pedro Alves <palves@redhat.com>
12003
12004 * exceptions.c (print_flush): Remove current_top_target() check.
12005
acdf84a6
PA
120062020-01-10 Pedro Alves <palves@redhat.com>
12007
12008 * remote.c (show_remote_exec_file): Show the current inferior's
12009 exec-file instead of the command variable's value.
12010
ec506636
PA
120112020-01-10 Pedro Alves <palves@redhat.com>
12012
12013 * record-full.c (record_full_resume_ptid): New global.
12014 (record_full_target::resume): Set it.
12015 (record_full_wait_1): Use record_full_resume_ptid instead of
12016 inferior_ptid.
12017
873657b9
PA
120182020-01-10 Pedro Alves <palves@redhat.com>
12019
12020 * gdbthread.h (scoped_restore_current_thread)
12021 <dont_restore, restore, m_dont_restore>: Declare.
12022 * thread.c (thread_alive): Add assertion. Return bool.
12023 (switch_to_thread_if_alive): New.
12024 (prune_threads): Switch inferior/thread.
12025 (print_thread_info_1): Switch thread before calling target methods.
12026 (scoped_restore_current_thread::restore): New, factored out from
12027 ...
12028 (scoped_restore_current_thread::~scoped_restore_current_thread):
12029 ... this.
12030 (scoped_restore_current_thread::scoped_restore_current_thread):
12031 Add assertion.
12032 (thread_apply_all_command, thread_select): Use
12033 switch_to_thread_if_alive.
12034
7f0ae84c
GB
120352020-01-10 George Barrett <bob@bob131.so>
12036
12037 * stap-probe.c (stap_modify_semaphore): Don't check for null
12038 semaphores.
12039 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
12040 for null semaphores.
12041
f5a7c406
AB
120422020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
12043
12044 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
12045 all source windows, and maintain horizontal scroll status while
12046 doing so.
12047
9ae6bf64
TT
120482020-01-09 Tom Tromey <tom@tromey.com>
12049
12050 PR tui/18932:
12051 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
12052 update_source_window, not print_source_lines.
12053
b2efe70c
AB
120542020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
12055
12056 * tui/tui.c (tui_enable): Register tui hooks after calling
12057 tui_display_main.
12058
5f23a082
CB
120592020-01-09 Christian Biesinger <cbiesinger@google.com>
12060
12061 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
12062
3061113b
SM
120632020-01-08 Simon Marchi <simon.marchi@efficios.com>
12064
12065 * thread.c (print_thread_info_1): Fix indentation.
12066
57d75002
CB
120672020-01-09 Christian Biesinger <cbiesinger@google.com>
12068
12069 * symtab.c (general_symbol_info::compute_and_set_names): Move the
12070 unique_xmalloc_ptr outside the if to always free the demangled name.
12071
6a053cb1
TT
120722020-01-08 Tom Tromey <tromey@adacore.com>
12073
12074 * xcoffread.c (enter_line_range, read_xcoff_symtab)
12075 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
12076 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
12077 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
12078 Remove.
12079 (section_offsets): New typedef.
12080 * symtab.c (fixup_section, get_msymbol_address): Update.
12081 * symmisc.c (dump_msymbols): Update.
12082 * symfile.h (relative_addr_info_to_section_offsets)
12083 (symfile_map_offsets_to_segments): Update.
12084 * symfile.c (build_section_addr_info_from_objfile)
12085 (init_objfile_sect_indices): Update.
12086 (struct place_section_arg): Change type of "offsets".
12087 (place_section): Update.
12088 (relative_addr_info_to_section_offsets): Change type of
12089 "section_offsets". Remove "num_sections" parameter.
12090 (default_symfile_offsets, syms_from_objfile_1)
12091 (set_objfile_default_section_offset): Update.
12092 (reread_symbols): No need to preserve section offsets by hand.
12093 (symfile_map_offsets_to_segments): Change type of "offsets".
12094 * stap-probe.c (relocate_address): Update.
12095 * stabsread.h (process_one_symbol): Update.
12096 * solib-target.c (struct lm_info_target) <offsets>: Change type.
12097 (solib_target_relocate_section_addresses): Update.
12098 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
12099 Update.
12100 * solib-frv.c (frv_relocate_main_executable): Update.
12101 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
12102 * solib-aix.c (solib_aix_get_section_offsets): Change return
12103 type.
12104 (solib_aix_solib_create_inferior_hook): Update.
12105 * remote.c (remote_target::get_offsets): Update.
12106 * psymtab.c (find_pc_sect_psymtab): Update.
12107 * psympriv.h (struct partial_symbol) <address, text_low,
12108 text_high>: Update.
12109 * objfiles.h (obj_section_offset): Update.
12110 (struct objfile) <section_offsets>: Change type.
12111 <num_sections>: Remove.
12112 (objfile_relocate): Update.
12113 * objfiles.c (entry_point_address_query): Update
12114 (relocate_one_symbol): Change type of "section_offsets".
12115 (objfile_relocate1, objfile_relocate1): Change type of
12116 "new_offsets".
12117 (objfile_rebase1): Update.
12118 * mipsread.c (mipscoff_symfile_read): Update.
12119 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
12120 parameter.
12121 * mdebugread.c (parse_symbol): Change type of "section_offsets".
12122 (parse_external, psymtab_to_symtab_1): Update.
12123 * machoread.c (macho_symfile_offsets): Update.
12124 * ia64-tdep.c (ia64_find_unwind_table): Update.
12125 * hppa-tdep.c (read_unwind_info): Update.
12126 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
12127 * dwarf2read.c (create_addrmap_from_index)
12128 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
12129 (process_psymtab_comp_unit_reader, add_partial_symbol)
12130 (add_partial_subprogram, process_full_comp_unit)
12131 (read_file_scope, read_func_scope, read_lexical_block_scope)
12132 (read_call_site_scope, dwarf2_rnglists_process)
12133 (dwarf2_ranges_process, dwarf2_ranges_read)
12134 (dwarf_decode_lines_1, var_decode_location, new_symbol)
12135 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
12136 Update.
12137 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
12138 Update.
12139 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
12140 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
12141 (process_one_symbol): Change type of "section_offsets".
12142 * ctfread.c (get_objfile_text_range): Update.
12143 * coffread.c (coff_symtab_read, enter_linenos)
12144 (process_coff_symbol): Update.
12145 * coff-pe-read.c (add_pe_forwarded_sym): Update.
12146 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
12147
456e800a
TT
121482020-01-08 Tom Tromey <tromey@adacore.com>
12149
12150 * dwarf2read.c (parse_macro_definition): Use std::string.
12151 (parse_macro_definition): Likewise.
12152
6dfa2fc2
TT
121532020-01-08 Tom Tromey <tromey@adacore.com>
12154
12155 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
12156 (ATTR_ALLOC_CHUNK): Remove.
12157
421d1616
TT
121582020-01-08 Tom Tromey <tromey@adacore.com>
12159
12160 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
12161
43816ebc
TT
121622020-01-08 Tom Tromey <tromey@adacore.com>
12163
12164 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
12165 (dwarf2_compute_name, open_dwo_file): Likewise.
12166 (process_enumeration_scope): Use std::vector.
12167 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
12168 (partial_die_info::fixup, dwarf2_start_subfile)
12169 (guess_full_die_structure_name, dwarf2_name): Likewise.
12170 (determine_prefix): Update.
12171 (guess_full_die_structure_name): Make return type const.
12172 (partial_die_full_name): Return unique_xmalloc_ptr.
12173 (DW_FIELD_ALLOC_CHUNK): Remove.
12174
4212d509
TT
121752020-01-07 Tom Tromey <tromey@adacore.com>
12176
12177 PR build/24937:
12178 * stap-probe.c (class stap_static_probe_ops): Add constructor.
12179
06a6207a
JT
121802020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
12181
12182 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
12183
153d79c4
AB
121842020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
12185
12186 * stack.c (print_frame_info): Move disassemble_next_line code
12187 inside source_print block.
12188
66182876
EZ
121892020-01-06 Eli Zaretskii <eliz@gnu.org>
12190
12191 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
12192 gdb/signals.h, as we are now using native signal symbols.
12193
cbfa8581
SV
121942020-01-06 Shahab Vahedi <shahab@synopsys.com>
12195
12196 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
12197 overflow by an early check of content vs threshold.
aac66a4c 12198 * tui/tui-source.c (tui_source_window::line_is_displayed):
cbfa8581
SV
12199 Likewise.
12200
3f602821
EZ
122012020-01-06 Eli Zaretskii <eliz@gnu.org>
12202
12203 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
12204
a08c904d
JT
122052020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
12206
12207 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
12208 export table if no section contains it's RVA.
12209
89a65580
EZ
122102020-01-06 Eli Zaretskii <eliz@gnu.org>
12211
12212 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
12213
8b7fcda2
HD
122142020-01-06 Hannes Domani <ssbssa@yahoo.de>
12215
12216 * source.c (print_source_lines_base): Set last_line_listed.
12217
a61b4f69
SV
122182020-01-06 Shahab Vahedi <shahab@synopsys.com>
12219
12220 * tui/tui-disasm.c: Remove trailing spaces.
12221
559e7e50
EZ
122222020-01-06 Eli Zaretskii <eliz@gnu.org>
12223 Pedro Alves <palves@redhat.com>
12224
12225 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
12226 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
12227 (windows_gdb_signal_to_target): New function, uses the above
12228 enumeration to convert GDB internal signal codes to equivalent
12229 Windows codes.
12230 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
12231 * windows-nat.c: Include "gdb_wait.h".
12232 (get_windows_debug_event): Extract the fatal exception from the
12233 exit status and convert to the equivalent Posix signal number.
12234 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
12235 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
12236 * gdbsupport/gdb_wait.c: New file, implements
12237 windows_status_to_termsig.
12238 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
12239 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
12240
f2302a34
AB
122412020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
12242
12243 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
12244 show_layout.
12245
6a5206eb
LM
122462020-01-05 Luis Machado <luis.machado@linaro.org>
12247
12248 * aarch64-linux-nat.c
12249 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
12250 and bfd_mach_aarch64.
12251
6ec1d75e
PW
122522020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12253
12254 * ui-file.c (stdio_file::can_emit_style_escape)
12255 (tee_file::can_emit_style_escape): Ensure style is used also on
12256 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
12257 to gdb_stdout.
12258 * main.c (set_gdb_data_directory): Use file style to output the
12259 warning that the given pathname is not a directory.
12260 * top.c (show_history_filename, gdb_safe_append_history)
12261 (show_gdb_datadir): Use file style.
12262
44f81a76
HD
122632020-01-03 Hannes Domani <ssbssa@yahoo.de>
12264
12265 * solib-target.c (struct lm_info_target):
12266 Change offsets to be a unique_xmalloc_ptr.
12267 (solib_target_relocate_section_addresses): Update.
12268
25057eb0
HD
122692020-01-03 Hannes Domani <ssbssa@yahoo.de>
12270
12271 * windows-nat.c (windows_clear_solib): Free so_list linked list.
12272
6e2118f5
BE
122732020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
12274
12275 * MAINTAINERS (Write After Approval): Add myself.
12276
8133c7dc
LM
122772020-01-02 Luis Machado <luis.machado@linaro.org>
12278
12279 * proc-service.c (get_ps_regcache): Remove reference to obsolete
12280 Cell BE architecture.
12281 * target.h (struct target_ops) <thread_architecture>: Likewise.
12282
48189bec
HD
122832020-01-01 Hannes Domani <ssbssa@yahoo.de>
12284
12285 * Makefile.in: Use INSTALL_PROGRAM_ENV.
12286
ead1063b
HD
122872020-01-01 Hannes Domani <ssbssa@yahoo.de>
12288
12289 * MAINTAINERS (Write After Approval): Add myself.
12290
e5d78223
JB
122912020-01-01 Joel Brobecker <brobecker@adacore.com>
12292
12293 * gdbarch.sh: Update copyright year range of generated files.
12294
b811d2c2
JB
122952020-01-01 Joel Brobecker <brobecker@adacore.com>
12296
12297 Update copyright year range in all GDB files.
12298
5f4def5c
JB
122992020-01-01 Joel Brobecker <brobecker@adacore.com>
12300
12301 * copyright.py: Convert to Python 3.
12302
51fd4002
JB
123032020-01-01 Joel Brobecker <brobecker@adacore.com>
12304
12305 * copyright.py: Adapt after move of gnulib directory from gdb
12306 directory to toplevel directory.
12307
5fb651f2
JB
123082020-01-01 Joel Brobecker <brobecker@adacore.com>
12309
12310 * copyright.py (main): Exit if run from the wrong directory.
12311
5dd8bf88
JB
123122020-01-01 Joel Brobecker <brobecker@adacore.com>
12313
12314 * top.c (print_gdb_version): Change copyright year to 2020.
12315
9f71dacb 123162020-01-01 Joel Brobecker <brobecker@adacore.com>
3d34df0a 12317
9f71dacb 12318 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
3d34df0a 12319
9f71dacb 12320For older changes see ChangeLog-2019.
c906108c
SS
12321\f
12322Local Variables:
12323mode: change-log
12324left-margin: 8
12325fill-column: 74
12326version-control: never
57da7796 12327coding: utf-8
c906108c 12328End: