]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blob - gdb/ChangeLog
f26afc042da9b4a3cfa03b654fc05b9d0149ef69
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
1 2020-09-23 Hannes Domani <ssbssa@yahoo.de>
2
3 * nat/windows-nat.c (handle_exception): Handle 64bit breakpoints
4 in WOW64 processes as SIGINT.
5 * nat/windows-nat.h: Make wow64_process a shared variable.
6 * windows-nat.c: Remove static wow64_process variable.
7
8 2020-09-18 Victor Collod <vcollod@nvidia.com>
9
10 PR gdb/26635
11 * i386-tdep.c (i386_skip_endbr): Add a helper function to skip endbr.
12 (i386_analyze_prologue): Call i386_skip_endbr.
13
14 2020-09-18 Pedro Alves <pedro@palves.net>
15
16 PR gdb/26631
17 * thread.c (thread_find_command): Switch inferior before calling
18 target methods.
19
20 2020-09-16 Tom Tromey <tromey@adacore.com>
21
22 PR gdb/26598:
23 * infrun.c (fill_in_stop_func): Use find_pc_partial_function_sym.
24
25 2020-09-14 Fredrik Hederstierna <fredrik.hederstierna@verisure.com>
26 Adam Renquinha <arenquinha@cimeq.qc.ca>
27
28 * arm-tdep.c (arm_m_exception_cache): Try use correct stack
29 pointer and stack frame offset when unwinding.
30
31 2020-09-13 Joel Brobecker <brobecker@adacore.com>
32
33 * version.in: Set GDB version number to 10.0.90.DATE-git.
34
35 2020-09-13 Joel Brobecker <brobecker@adacore.com>
36
37 GDB 10.0.90 released.
38
39 2020-09-13 Joel Brobecker <brobecker@adacore.com>
40
41 * version.in: Set GDB version number to 10.0.90.
42
43 2020-09-13 Joel Brobecker <brobecker@adacore.com>
44
45 * NEWS: Change "Changes since GDB 9" to "Changes in GDB 10".
46
47 2020-09-13 Joel Brobecker <brobecker@adacore.com>
48
49 GDB 10 branch created (8087c3fa8b5d695e3e29e69d70d0b35ec902ac59):
50 * version.in: Bump version to 10.0.90.DATE-git.
51
52 2020-09-12 Joel Brobecker <brobecker@adacore.com>
53
54 * infrun.c (namespace selftests): Only define #if GDB_SELF_TEST.
55
56 2020-09-11 Moritz Riesterer <moritz.riesterer@intel.com>
57 Felix Willgerodt <Felix.Willgerodt@intel.com>
58
59 * gdbarch.sh: Added bfloat16 type.
60 * gdbarch.c: Regenerated.
61 * gdbarch.h: Regenerated.
62 * gdbtypes.c (floatformats_bfloat16): New struct.
63 (gdbtypes_post_init): Add builtin_bfloat16.
64 * gdbtypes.h (struct builtin_type) <builtin_bfloat16>: New member.
65 (floatformats_bfloat16): New struct.
66 * i386-tdep.c (i386_zmm_type): Add field "v32_bfloat16"
67 (i386_ymm_type): Add field "v16_bfloat16"
68 (i386_gdbarch_init): Add set_gdbarch_bfloat16_format.
69 * target-descriptions.c (make_gdb_type): Add case TDESC_TYPE_BFLOAT16.
70 * gdbsupport/tdesc.cc (tdesc_predefined_types): New member bfloat16.
71 * gdbsupport/tdesc.h (tdesc_type_kind): New member TDESC_TYPE_BFLOAT16.
72 * features/i386/64bit-avx512.xml: Add bfloat16 type.
73 * features/i386/64bit-avx512.c: Regenerated.
74 * features/i386/64bit-sse.xml: Add bfloat16 type.
75 * features/i386/64bit-sse.c: Regenerated.
76
77 2020-09-11 Felix Willgerodt <felix.willgerodt@intel.com>
78
79 * i386-tdep.c (i386_zmm_type): Fix field names.
80 (i386_ymm_type): Fix field names.
81
82 2020-09-11 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
83
84 * breakpoint.c: Fix typo in the help message of the
85 "set breakpoint condition-evaluation" command.
86
87 2020-09-10 Kamil Rytarowski <n54@gmx.com>
88
89 * nbsd-nat.c: Include "nat/netbsd-nat.h".
90 * (nbsd_nat_target::pid_to_exec_file)
91 (nbsd_nat_target::thread_alive, nbsd_nat_target::thread_name)
92 (nbsd_nat_target::post_startup_inferior)
93 (nbsd_nat_target::post_attach, nbsd_nat_target::xfer_partial)
94 (nbsd_add_threads): Switch local code to common gdb/nat functions.
95 * (nbsd_pid_to_cmdline): Call sysctl from the global namespace.
96 * (nbsd_thread_lister): Remove.
97
98 2020-09-10 Kamil Rytarowski <n54@gmx.com>
99
100 * fork-inferior.c (startup_inferior): Avoid double free.
101
102 2020-09-10 Kamil Rytarowski <n54@gmx.com>
103
104 * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add.
105 * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise.
106
107 2020-09-10 Kamil Rytarowski <n54@gmx.com>
108
109 * netbsd-nat.h (netbsd_nat::enable_proc_events): Add.
110 * netbsd-nat.c: Include <sys/ptrace.h>.
111 * (netbsd_nat::enable_proc_events): Add.
112
113 2020-09-10 Kamil Rytarowski <n54@gmx.com>
114
115 * netbsd-nat.h: Include "gdbsupport/function-view.h".
116 * (netbsd_nat::thread_alive, netbsd_nat::thread_name)
117 (netbsd_nat::for_each_thread): Add.
118 * netbsd-nat.c: Include "gdbsupport/common-defs.h" and
119 "gdbsupport/common-debug.h".
120 * (netbsd_nat::netbsd_thread_lister)
121 (netbsd_nat::thread_alive, netbsd_nat::thread_name)
122 (netbsd_nat::for_each_thread): Add.
123
124 2020-09-10 Kamil Rytarowski <n54@gmx.com>
125
126 * netbsd-nat.h: Include <unistd.h>.
127 * (netbsd_nat::pid_to_exec_file): Add.
128 * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>.
129 * (netbsd_nat::pid_to_exec_file) Add.
130
131 2020-09-10 Kamil Rytarowski <n54@gmx.com>
132
133 * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed.
134
135 2020-09-10 Kamil Rytarowski <n54@gmx.com>
136
137 * netbsd-nat.h: New file.
138 * netbsd-nat.c: Likewise.
139
140 2020-09-09 Tom Tromey <tromey@adacore.com>
141
142 * ada-lang.c (remove_extra_symbols): Do not increment when
143 removing an element
144
145 2020-09-08 Tom Tromey <tromey@adacore.com>
146
147 * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails.
148
149 2020-09-08 Tom Tromey <tromey@adacore.com>
150
151 PR win32/25302:
152 * gdb_bfd.c (gdb_bfd_data): Add "st" parameter.
153 (gdb_bfd_init_data): New function.
154 (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data.
155
156 2020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
157
158 * infrun.c (fetch_inferior_event): Use
159 `switch_to_target_no_thread` to switch the target.
160
161 2020-09-06 Tom Tromey <tom@tromey.com>
162
163 * symfile.h (dwarf2_free_objfile): Don't declare.
164
165 2020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
166
167 * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
168 to match 16 byte real/complex type generated by Flang compiler.
169
170 2020-09-03 Tom de Vries <tdevries@suse.de>
171
172 PR breakpoint/26546
173 * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
174 LOC_OPTIMIZED_OUT instead of LOC_LABEL.
175
176 2020-09-02 Simon Marchi <simon.marchi@polymtl.ca>
177
178 * maint.c (index_digits): New function.
179 (struct maint_print_section_data): Remove.
180 (print_bfd_section_info): Remove print_data parameter, add arg
181 and index_digits.
182 (print_objfile_section_info): Likewise.
183 (print_bfd_section_info_maybe_relocated): Likewise (plus
184 objfile).
185 (maintenance_info_sections): Adjust calls.
186
187 2020-09-02 Tom Tromey <tromey@adacore.com>
188
189 * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
190 for null pointers.
191 (ada_varobj_adjust_for_child_access): Special-case null pointers.
192
193 2020-09-01 Simon Marchi <simon.marchi@polymtl.ca>
194
195 * bcache.h (struct bcache) <insert>: Change type of `added` to
196 pointer to bool.
197 * bcache.c (bcache::insert): Likewise.
198 * gdbtypes.c (check_types_worklist): Adjust.
199 * psymtab.c (add_psymbol_to_bcache): Adjust.
200
201 2020-08-31 Kevin Buettner <kevinb@redhat.com>
202
203 * corelow.c (unordered_set): Include.
204 (class core_target): Add field 'm_core_unavailable_mappings'.
205 (core_target::build_file_mappings): Print only one warning
206 per inaccessible file. Add unavailable/broken mappings
207 to m_core_unavailable_mappings.
208 (core_target::xfer_partial): Call...
209 (core_target::xfer_memory_via_mappings): New method.
210
211 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
212
213 * dwarf2/read.c (struct field_info) <non_public_fields>: Change
214 type to bool.
215
216 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
217
218 * dwarf2/read.c (struct field_info): Fix indentation.
219
220 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
221
222 * frame-unwind.h (frame_prev_register_ftype): Fix adjective
223 ordering in comment.
224 * frame.c (frame_id_eq): Fix indentation.
225
226 2020-08-31 Scott Linder <scott@scottlinder.com>
227 Simon Marchi <simon.marchi@efficios.com>
228
229 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
230 inline frame ids in outer frame.
231
232 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
233
234 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
235 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
236 (outer_frame_id): Use FID_STACK_OUTER instead of
237 FID_STACK_INVALID.
238 (frame_id_p): Don't check for outer_frame_id.
239
240 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
241
242 * frame-unwind.c (frame_unwind_got_optimized): Don't set
243 regnum/frame in value. Call allocate_value_lazy.
244 * frame.c (frame_unwind_register_value): Use
245 val_print_not_saved.
246
247 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
248
249 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
250
251 2020-08-29 Pedro Alves <pedro@palves.net>
252
253 * progspace.c (print_program_space): Use all_inferiors. Switch to
254 the inferior before calling target_pid_to_str.
255
256 2020-08-28 Tom Tromey <tom@tromey.com>
257
258 * xcoffread.c (xcoff_end_psymtab): Update comment.
259 * dbxread.c (dbx_end_psymtab): Update comment.
260
261 2020-08-28 Tom de Vries <tdevries@suse.de>
262
263 PR breakpoint/26544
264 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
265 event_location.
266 (create_breakpoint): Same.
267 (base_breakpoint_decode_location): Same.
268 (bkpt_create_sals_from_location): Same.
269 (bkpt_decode_location): Same.
270 (bkpt_probe_create_sals_from_location): Same.
271 (bkpt_probe_decode_location): Same.
272 (tracepoint_create_sals_from_location): Same.
273 (tracepoint_decode_location): Same.
274 (tracepoint_probe_decode_location): Same.
275 (strace_marker_create_sals_from_location): Same.
276 (strace_marker_decode_location): Same.
277 (create_sals_from_location_default): Same.
278 (decode_location_default): Same.
279 * breakpoint.h (struct breakpoint_ops): Same.
280 (create_breakpoint): Same.
281 * linespec.h (decode_line_full): Same.
282 * linespec.c (decode_line_full): Same. Throw error if
283 result.size () == 0.
284
285 2020-08-27 Pedro Alves <pedro@palves.net>
286
287 PR gdb/26524
288 * breakpoint.c (until_break_fsm) <location_breakpoint,
289 caller_breakpoint>: Delete fields.
290 <breakpoints>: New field.
291 <until_break_fsm>: Adjust to save a breakpoint vector instead of
292 two individual breakpoints.
293 (until_break_fsm::should_stop): Loop over breakpoints in the
294 breakpoint vector.
295 (until_break_fsm::clean_up): Adjust to clear the breakpoints
296 vector.
297 (until_break_command): Handle location expanding into multiple
298 sals.
299
300 2020-08-27 Pedro Alves <pedro@palves.net>
301
302 PR gdb/26523
303 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
304 bp_until breakpoints user-specified locations. Update intro
305 comment.
306
307 2020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
308
309 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
310 gdb_bfd_sections): New.
311 * maint.c (print_bfd_section_info): Change param type to
312 maint_print_section_data.
313 (print_objfile_section_info): Likewise.
314 (print_bfd_section_info_maybe_relocated): Likewise.
315 (maintenance_info_sections): Use gdb_bfd_sections.
316
317 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
318
319 * MAINTAINERS: Add ARC target and maintainer.
320
321 2020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
322
323 * configure.tgt: ARC support for GNU/Linux.
324 * Makefile.in (ALL_TARGET_OBJS): Likewise.
325 * arc-linux-tdep.c: New file.
326 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
327 * arc-tdep.c (arc_write_pc): Use it.
328
329 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
330
331 * arc-tdep.c (arc_check_for_hardware_loop): New.
332 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
333
334 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
335
336 * arc-tdep.h: Include "gdbarch.h".
337
338 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
339
340 * arch/arc.h
341 (arc_gdbarch_features): New class to stir the selection of target XML.
342 (arc_create_target_description): Use FEATURES to choose XML target.
343 (arc_lookup_target_description): Use arc_create_target_description
344 to create _new_ target descriptions or return the already created
345 ones if the FEATURES is the same.
346 * arch/arc.c: Implementation of prototypes described above.
347 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
348 (arc_gdbarch_features_init): Initialize the FEATURES struct.
349 * arc-tdep.c (*_feature_name): Make feature names consistent.
350 (arc_register_feature): A new struct to hold information about
351 registers of a particular target/feature.
352 (arc_check_tdesc_feature): Check if XML provides registers in
353 compliance with ARC_REGISTER_FEATURE structs.
354 (arc_update_acc_reg_names): Add aliases for r58 and r59.
355 (determine_*_reg_feature_set): Which feature name to look for.
356 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
357 (mach_type_to_arc_isa): Convert from a set of binutils machine types
358 to expected ISA enums to be used in arc_gdbarch_features structs.
359 * features/Makefile (FEATURE_XMLFILES): Add new files.
360 * gdb/features/arc/v1-aux.c: New file.
361 * gdb/features/arc/v1-aux.xml: Likewise.
362 * gdb/features/arc/v1-core.c: Likewise.
363 * gdb/features/arc/v1-core.xml: Likewise.
364 * gdb/features/arc/v2-aux.c: Likewise.
365 * gdb/features/arc/v2-aux.xml: Likewise.
366 * gdb/features/arc/v2-core.c: Likewise.
367 * gdb/features/arc/v2-core.xml: Likewise.
368 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
369
370 2020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
371 Andrew Burgess <andrew.burgess@embecosm.com>
372
373 PR m2/26372
374 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
375 an assert. Remove single element array indexing pattern as the
376 MULTI_SUBSCRIPT support will handle this case too.
377
378 2020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
379
380 * value.h (valprint_check_validity): Move declaration from
381 here...
382 * valprint.h (valprint_check_validity): ... to here.
383
384 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
385
386 * debug.h: New file.
387 * debug.c (debug_prefixed_vprintf): New function.
388 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
389 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
390
391 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
392
393 * infrun.h (infrun_debug_printf_1): New function declaration.
394 (infrun_debug_printf): New macro.
395 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
396 throughout.
397 (infrun_debug_printf): New function.
398 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
399 (handle_jit_event): Likewise.
400
401 2020-08-21 Mark Wielaard <mark@klomp.org>
402
403 * ada-lex.l: Extend register warnings diagnostics comment for g++.
404
405 2020-08-22 Simon Marchi <simon.marchi@efficios.com>
406
407 * frame.c (enum class frame_id_status): New.
408 (struct frame_info) <this_id::p>: Change type to frame_id_status.
409 (fprintf_frame): Update.
410 (compute_frame_id): Set frame id status to "computing" on entry.
411 Set it back to "not_computed" on failure and to "computed" on
412 success.
413 (get_frame_id): Assert the frame id is not being computed.
414 (create_sentinel_frame): Use frame_id_status::COMPUTED.
415 (create_new_frame): Likewise.
416 (frame_cleanup_after_sniffer): Update assert.
417
418 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
419
420 * regcache.c (pid_ptid_regcache_map): New type.
421 (target_ptid_regcache_map): Remove.
422 (target_pid_ptid_regcache_map): New type.
423 (regcaches): Change type to target_pid_ptid_regcache_map.
424 (get_thread_arch_aspace_regcache): Update.
425 (regcache_thread_ptid_changed): Update, handle pid-like ptid
426 case.
427 (regcaches_size): Update.
428 (regcache_count): Update.
429 (registers_changed_ptid_target_pid_test): New.
430 (_initialize_regcache): Register new test.
431
432 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
433
434 * regcache.c (regcache_count): New.
435 (struct regcache_test_data): New.
436 (regcache_test_data_up): New.
437 (populate_regcaches_for_test): New.
438 (regcaches_test): Remove.
439 (get_thread_arch_aspace_regcache_test): New.
440 (registers_changed_ptid_all_test): New.
441 (registers_changed_ptid_target_test): New.
442 (registers_changed_ptid_target_ptid_test): New.
443 (regcache_thread_ptid_changed): Remove regcache_count lambda.
444 (_initialize_regcache): Register new tests.
445
446 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
447
448 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
449 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
450 gdbarch and aspace parameter. Use current inferior's aspace.
451 Validate regcache's arch value.
452 (regcaches_test): Update.
453
454 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
455
456 * regcache.c (regcaches_test): Call registers_changed.
457
458 2020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
459
460 * infrun.c (process_event_stop_test): Fix typo "breapoint".
461
462 2020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
463
464 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
465 to find the end of prologue for flang compiled binaries.
466 * arm-tdep.c (arm_skip_prologue): Likewise.
467 * i386-tdep.c (i386_skip_prologue): Likewise.
468 * producer.c (producer_is_llvm): New function.
469 (producer_parsing_tests): Added new tests for clang/flang.
470 * producer.h (producer_is_llvm): New declaration.
471
472 2020-08-18 Simon Marchi <simon.marchi@efficios.com>
473
474 * linux-nat.c (linux_nat_debug_printf): New function.
475 (linux_nat_debug_printf_1): New macro. Use throughout the file.
476
477 2020-08-18 Aaron Merey <amerey@redhat.com>
478
479 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
480 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
481 (CLIBS): Add DEBUGINFOD_LIBS.
482
483 2020-08-17 Sergei Trofimovich <siarheit@google.com>
484
485 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
486 'gdbarch_num_regs'.
487
488 2020-08-17 Tom Tromey <tromey@adacore.com>
489
490 * ada-varobj.c (ada_varobj_decode_var): Handle case where
491 ada_get_decoded_value returns NULL.
492
493 2020-08-17 Tom Tromey <tromey@adacore.com>
494
495 * python/py-inferior.c (infpy_search_memory): Use
496 gdb_py_object_from_ulongest.
497 * python/py-infevents.c (create_inferior_call_event_object)
498 (create_memory_changed_event_object): Use
499 gdb_py_object_from_ulongest.
500 * python/py-linetable.c (ltpy_entry_get_pc): Use
501 gdb_py_object_from_ulongest.
502
503 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
504
505 * loc.c (class symbol_needs_eval_context): Fix indentation.
506
507 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
508
509 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
510 bool.
511
512 2020-08-17 Tom de Vries <tdevries@suse.de>
513
514 PR gdb/26393
515 * gdbtypes.c (dump_dynamic_prop): New function.
516 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
517
518 2020-08-15 Tom de Vries <tdevries@suse.de>
519
520 PR backtrace/26390
521 * stack.c (print_frame_args): Temporarily set the selected
522 frame to FRAME while printing the frame's arguments.
523
524 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
525
526 PR breakpoints/26385
527 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
528 Always clear watchpoint with PTRACE_SET_DEBUGREG.
529
530 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
531
532 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
533 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
534 and >= to check return value instead of == -1 and != -1.
535
536 2020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
537
538 * utils.h (class gdb_argv) <as_array_view>: New method.
539 * utils.c (gdb_argv_as_array_view_test): New.
540 (_initialize_utils): Register selftest.
541 * maint.c (maintenance_selftest): Use the new method.
542
543 2020-08-13 Kamil Rytarowski <n54@gmx.com>
544
545 * target.h (supports_dumpcore, dumpcore): New
546 function declarations.
547 * target.c (supports_dumpcore, dumpcore): New
548 functions.
549 * target-delegates.c: Rebuild.
550 * gcore.c (gcore_command): Use target_supports_dumpcore ()
551 and target_dumpcore ().
552
553 2020-08-13 Aaron Merey <amerey@redhat.com>
554
555 * debuginfod-support.c: Replace global variables with user_data.
556
557 2020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
558
559 * maint.c (maintenance_selftest): Split args and pass array_view
560 to run_tests.
561
562 2020-08-12 Luis Machado <luis.machado@linaro.org>
563
564 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
565 type's length.
566 Use %s and pulongest to print the length.
567
568 2020-08-12 Pedro Alves <palves@redhat.com>
569
570 * NEWS: Move "Multi-target debugging support" item to the
571 "Changes since GDB 9" section.
572
573 2020-08-12 Pedro Alves <palves@redhat.com>
574
575 PR gdb/26336
576 * progspace.c (program_space::remove_objfile): Invalidate the
577 frame cache.
578
579 2020-08-11 Tom de Vries <tdevries@suse.de>
580
581 * MAINTAINERS: Mark ms1 as deleted.
582
583 2020-08-10 Luis Machado <luis.machado@linaro.org>
584
585 PR gdb/26310
586
587 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
588 act accordingly.
589 (aarch64_analyze_prologue_test): Add more unit tests to exercise
590 movz/str/stur/stp skipping behavior.
591
592 2020-08-10 Luis Machado <luis.machado@linaro.org>
593
594 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
595 struct user_sve_header instead of struct sve_context.
596
597 2020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
598
599 * read.h (dwarf2_fetch_die_loc_sect_off,
600 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
601 `void *` parameter with function_view.
602 * read.c (dwarf2_fetch_die_loc_sect_off,
603 dwarf2_fetch_die_loc_cu_off): Likewise.
604 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
605 (per_cu_dwarf_call): Adjust.
606 (get_frame_address_in_block_wrapper): Remove.
607 (indirect_synthetic_pointer): Adjust.
608 (get_ax_pc): Remove.
609 (dwarf2_compile_expr_to_ax): Adjust.
610
611 2020-08-08 Tom de Vries <tdevries@suse.de>
612
613 PR build/26344
614 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
615 constructor.
616 * regcache.c (get_thread_arch_aspace_regcache): Same.
617
618 2020-08-07 Tom Tromey <tromey@adacore.com>
619
620 * ravenscar-thread.c
621 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
622 New method.
623 (ravenscar_thread_target::wait): Check
624 runtime_initialized.
625 (ravenscar_thread_target::prepare_to_store)
626 (ravenscar_thread_target::stopped_by_sw_breakpoint)
627 (ravenscar_thread_target::stopped_by_hw_breakpoint)
628 (ravenscar_thread_target::stopped_by_watchpoint)
629 (ravenscar_thread_target::stopped_data_address)
630 (ravenscar_thread_target::core_of_thread): Use
631 scoped_restore_current_thread and
632 set_base_thread_from_ravenscar_task.
633
634 2020-08-07 Tom Tromey <tromey@adacore.com>
635
636 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
637
638 2020-08-07 Tom Tromey <tromey@adacore.com>
639
640 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
641 update_inferior_ptid before update_thread_list.
642 (temporarily_change_regcache_ptid): New class.
643 (ravenscar_thread_target::fetch_registers)
644 (ravenscar_thread_target::store_registers)
645 (ravenscar_thread_target::prepare_to_store): Use base thread when
646 forwarding operation.
647
648 2020-08-07 Tom Tromey <tromey@adacore.com>
649
650 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
651 "is_pid" case.
652
653 2020-08-07 Tom Tromey <tromey@adacore.com>
654
655 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
656 New methods.
657 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
658 first.
659 (ravenscar_thread_target::add_thread): Rename from
660 ravenscar_add_thread.
661 (ravenscar_thread_target::update_thread_list): Use a lambda.
662 (ravenscar_thread_target::xfer_partial): New method.
663
664 2020-08-07 Tom Tromey <tromey@adacore.com>
665
666 * ada-lang.h (ada_task_list_iterator_ftype): Now a
667 gdb::function_view.
668 (iterate_over_live_ada_tasks): Change type of argument.
669 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
670 of argument.
671
672 2020-08-07 Tom Tromey <tromey@adacore.com>
673
674 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
675 Remove.
676 (ravenscar_thread_target::extra_thread_info): Remove.
677 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
678 defer to target beneath for non-Ravenscar threads.
679
680 2020-08-07 Tom Tromey <tromey@adacore.com>
681
682 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
683 get_base_thread_from_ravenscar_task>: Now methods.
684 <m_cpu_map>: New member.
685 (ravenscar_thread_target::get_thread_base_cpu): Rename from
686 ravenscar_get_thread_base_cpu. Check m_cpu_map.
687 (ravenscar_thread_target::task_is_currently_active): Update.
688 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
689 Now a method.
690 (ravenscar_thread_target::add_active_thread): Put initial thread
691 into the m_cpu_map.
692
693 2020-08-07 Tom Tromey <tromey@adacore.com>
694
695 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
696 event_ptid.
697
698 2020-08-07 Tom Tromey <tromey@adacore.com>
699
700 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
701 runtime_initialized.
702
703 2020-08-07 Tom Tromey <tromey@adacore.com>
704
705 * ravenscar-thread.c (ravenscar_thread_target): Don't call
706 add_active_thread.
707 (ravenscar_thread_target::add_active_thread): Now public.
708 (ravenscar_inferior_created): Call add_active_thread after pushing
709 the target.
710
711 2020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
712
713 * regcache.c (ptid_regcache_map): New type.
714 (target_ptid_regcache_map): New type.
715 (regcaches): Change type to target_ptid_regcache_map.
716 (get_thread_arch_aspace_regcache): Update to regcaches' new
717 type.
718 (regcache_thread_ptid_changed): Likewise.
719 (registers_changed_ptid): Likewise.
720 (regcaches_size): Likewise.
721 (regcaches_test): Update.
722 (regcache_thread_ptid_changed): Update.
723 * regcache.h (regcache_up): New type.
724 * gdbsupport/ptid.h (hash_ptid): New struct.
725
726 2020-08-07 Simon Marchi <simon.marchi@efficios.com>
727
728 * observable.h (thread_ptid_changed): Add parameter
729 `process_stratum_target *`.
730 * infrun.c (infrun_thread_ptid_changed): Add parameter
731 `process_stratum_target *` and use it.
732 (selftests): New namespace.
733 (infrun_thread_ptid_changed): New function.
734 (_initialize_infrun): Register selftest.
735 * regcache.c (regcache_thread_ptid_changed): Add parameter
736 `process_stratum_target *` and use it.
737 (regcache_thread_ptid_changed): New function.
738 (_initialize_regcache): Register selftest.
739 * thread.c (thread_change_ptid): Pass target to
740 thread_ptid_changed observable.
741
742 2020-08-06 Caroline Tice <cmtice@google.com>
743
744 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
745 (struct dwp_sections): Update field comments. Add loclists and
746 rnglists fields.
747 (struct virtual_v2_dwo_sections): Rename struct to
748 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
749 size & offset fields for loclists and rnglists.
750 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
751 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
752 skipping dummy type units.
753 (create_dwp_hash_table): Update the large comment above the function to
754 discuss Version 5 DWP files as well, with references. Update all the
755 version checks in the function to check for version 5 as well. Add new
756 section at the end to create dwp hash table for version 5.
757 (create_dwp_v2_section): Rename function to
758 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
759 Add V5 to error message text.
760 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
761 into calls to create_dwp_v2_or_v5_section.
762 (create_dwo_unit_in_dwp_v5): New function.
763 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
764 check for version2; add else clause to handle version 5.
765 (open_and_init_dwo_file): Add code to check dwarf version & only call
766 create_debug_types_hash_table (with sections.types) if version is not 5;
767 else call create_debug_type_hash_table, with sections.info.
768 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
769 version 5.
770 (dwarf2_locate_v5_dwp_sections): New function.
771 (open_and_init_dwp_file): Add else-if clause for version 5 to call
772 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
773
774 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
775
776 * regcache.h (class regcache): Remove friend
777 registers_changed_ptid.
778 <regcache_thread_ptid_changed>: Remove.
779 <regcaches>: Remove.
780 * regcache.c (regcache::regcaches): Rename to...
781 (regcaches): ... this. Make static.
782 (get_thread_arch_aspace_regcache): Update.
783 (regcache::regcache_thread_ptid_changed): Rename to...
784 (regcache_thread_ptid_changed): ... this. Update.
785 (class regcache_access): Remove.
786 (regcaches_test): Update.
787 (_initialize_regcache): Update.
788 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
789 <forward_list>.
790
791 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
792
793 * regcache.h (class regcache) <current_regcache>: Rename to...
794 <regcaches>: ... this. Move doc here.
795 * regcache.c (regcache::current_regcache) Rename to...
796 (regcache::regcaches): ... this. Move doc to header.
797 (get_thread_arch_aspace_regcache): Update.
798 (regcache::regcache_thread_ptid_changed): Update.
799 (registers_changed_ptid): Update.
800 (class regcache_access) <current_regcache_size>: Rename to...
801 <regcaches_size>: ... this.
802 (current_regcache_test): Rename to...
803 (regcaches_test): ... this.
804 (_initialize_regcache): Update.
805
806 2020-08-06 Victor Collod <vcollod@nvidia.com>
807
808 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
809
810 2020-08-05 Kevin Buettner <kevinb@redhat.com>
811
812 * corelow.c (core_target::build_file_mappings): Don't output
813 null pathname in warning.
814
815 2020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
816
817 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
818 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
819 gdb.dwarf2/dw2-single-line-discriminators.exp,
820 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
821
822 2020-08-05 Tom Tromey <tromey@adacore.com>
823
824 PR rust/26197:
825 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
826 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
827 Fix off-by-one and type size errors in ordinary case.
828
829 2020-08-05 Tom de Vries <tdevries@suse.de>
830
831 * gdbtypes.c (type_not_allocated, type_not_associated): Use
832 "prop->const_val () == 0" instead of "prop->const_val () != 0".
833
834 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
835
836 * frame.h (frame_id_p): Return bool.
837 (frame_id_artificial_p): Return bool.
838 (frame_id_eq): Return bool.
839 (has_stack_frames): Return bool.
840 (get_selected_frame): Fix typo in comment.
841 (get_frame_pc_if_available): Return bool.
842 (get_frame_address_in_block_if_available): Return bool.
843 (get_frame_func_if_available): Return bool.
844 (read_frame_register_unsigned): Return bool.
845 (get_frame_register_bytes): Return bool.
846 (safe_frame_unwind_memory): Return bool.
847 (deprecated_frame_register_read): Return bool.
848 (frame_unwinder_is): Return bool.
849 * frame.c (struct frame_info) <prev_arch::p>: Change type to
850 bool.
851 <this_id::p>: Likewise.
852 <prev_p>: Likewise.
853 (frame_stash_add): Return bool.
854 (get_frame_id): Use bool.
855 (frame_id_build_special) Use bool.
856 (frame_id_build_unavailable_stack): Use bool.
857 (frame_id_build): Use bool.
858 (frame_id_p): Return bool, use true/false instead of 1/0.
859 (frame_id_artificial_p): Likewise.
860 (frame_id_eq): Likewise.
861 (frame_id_inner): Likewise.
862 (get_frame_func_if_available): Likewise.
863 (read_frame_register_unsigned): Likewise.
864 (deprecated_frame_register_read): Likewise.
865 (get_frame_register_bytes): Likewise.
866 (has_stack_frames): Likewise.
867 (inside_main_func): Likewise.
868 (inside_entry_func): Likewise.
869 (get_frame_pc_if_available): Likewise.
870 (get_frame_address_in_block_if_available): Likewise.
871 (frame_unwinder_is): Likewise.
872 (safe_frame_unwind_memory): Likewise.
873 (frame_unwind_arch): Likewise.
874
875 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
876
877 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
878 type to cached_copy_status.
879 (fprintf_frame): Adjust.
880 (get_frame_func_if_available): Adjust.
881 (frame_cleanup_after_sniffer): Adjust.
882
883 2020-08-04 Mark Wielaard <mark@klomp.org>
884
885 * MAINTAINERS (Write After Approval): Update email address.
886
887 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
888
889 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
890 dynamic_prop::const_val.
891
892 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
893
894 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
895 dynamic_prop::kind.
896
897 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
898
899 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
900
901 2020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
902
903 * configure.tgt: Set gdb_sim for bpf-*-* targets.
904
905 2020-08-04 Weimin Pan <weimin.pan@oracle.com>
906 Jose E. Marchesi <jose.marchesi@oracle.com>
907
908 * configure.tgt: Add entry for bpf-*-*.
909 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
910 (ALLDEPFILES): Add bpf-tdep.c.
911 * bpf-tdep.c: New file.
912 * MAINTAINERS: Add bpf target and maintainer.
913 * NEWS: Mention the support for the new target.
914
915 2020-08-04 Tom de Vries <tdevries@suse.de>
916
917 PR symtab/23270
918 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
919 Error.
920
921 2020-08-03 John Baldwin <jhb@FreeBSD.org>
922
923 * syscalls/freebsd.xml: Regenerate.
924
925 2020-08-03 John Baldwin <jhb@FreeBSD.org>
926
927 * syscalls/update-freebsd.sh: Fix usage and year range.
928
929 2020-08-03 Tom de Vries <tdevries@suse.de>
930
931 PR symtab/26333
932 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
933 DW_LNE_lo_user/DW_LNE_hi_user range.
934
935 2020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
936
937 PR ada/26318
938 * ada-lang.c (ada_modulus): Return 0 if property is not of const
939 kind.
940
941 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
942
943 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
944
945 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
946
947 * breakpoint.c (set_breakpoint_condition): Update the condition
948 expressions after checking that the input condition string parses
949 successfully and does not contain junk at the end.
950
951 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
952
953 * breakpoint.c (set_breakpoint_condition): Update the
954 condition string after parsing the new condition successfully.
955
956 2020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
957
958 * proc-api.c (_STRUCTURED_PROC): Don't define.
959 * proc-events.c: Likewise.
960 * proc-flags.c: Likewise.
961 * proc-why.c: Likewise.
962 * procfs.c: Likewise.
963
964 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
965 * configure, config.in: Regenerate.
966
967 2020-07-30 Tom de Vries <tdevries@suse.de>
968
969 PR build/26320
970 * ui-style.h (struct ui_file_style::color): Wrap m_value and
971 m_red/m_green/m_blue in a union.
972
973 2020-07-29 Tom de Vries <tdevries@suse.de>
974
975 PR tdep/26280
976 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
977
978 2020-07-28 Tom Tromey <tromey@adacore.com>
979
980 PR symtab/26270:
981 * symtab.h (find_pc_partial_function_sym): Declare.
982 * cli/cli-cmds.c (disassemble_command): Use
983 find_pc_partial_function_sym. Check asm_demangle.
984 * blockframe.c (cache_pc_function_sym): New global.
985 (cache_pc_function_name): Remove.
986 (clear_pc_function_cache): Update.
987 (find_pc_partial_function_sym): New function, from
988 find_pc_partial_function.
989 (find_pc_partial_function): Rewrite using
990 find_pc_partial_function_sym.
991
992 2020-07-28 Tom Tromey <tromey@adacore.com>
993
994 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
995 help. Add usage.
996
997 2020-07-28 Tom Tromey <tromey@adacore.com>
998
999 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
1000 <DW_OP_GNU_variable_value>: Cast to address type.
1001
1002 2020-07-28 Kamil Rytarowski <n54@gmx.com>
1003
1004 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
1005 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
1006 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
1007 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
1008 (nbsd_get_siginfo_type): New.
1009 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
1010 (_initialize_nbsd_tdep): New.
1011
1012 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
1013
1014 PR binutils/26301
1015 * configure: Regenerated.
1016
1017 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
1018
1019 PR binutils/26301
1020 * configure: Regenerated.
1021
1022 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
1023
1024 * python/py-frame.c: Remove 'user-regs.h' include.
1025 (frapy_read_register): Rewrite to make use of
1026 gdbpy_parse_register_id.
1027 * python/py-registers.c (gdbpy_parse_register_id): New function,
1028 moved here from python/py-unwind.c. Updated the return type, and
1029 also accepts register descriptor objects.
1030 * python/py-unwind.c: Remove 'user-regs.h' include.
1031 (pyuw_parse_register_id): Moved to python/py-registers.c.
1032 (unwind_infopy_add_saved_register): Update to use
1033 gdbpy_parse_register_id.
1034 (pending_framepy_read_register): Likewise.
1035 * python/python-internal.h (gdbpy_parse_register_id): Declare.
1036
1037 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
1038
1039 * python/py-registers.c: Add 'user-regs.h' include.
1040 (register_descriptor_iter_find): New function.
1041 (register_descriptor_iterator_object_methods): New static global
1042 methods array.
1043 (register_descriptor_iterator_object_type): Add pointer to methods
1044 array.
1045
1046 2020-07-27 John Baldwin <jhb@FreeBSD.org>
1047
1048 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
1049 for all architectures on FreeBSD 11.3 and later.
1050
1051 2020-07-27 Tom Tromey <tromey@adacore.com>
1052
1053 * gcore.h (load_corefile): Don't declare.
1054
1055 2020-07-27 Tom de Vries <tdevries@suse.de>
1056
1057 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
1058 * config.in: Regenerate.
1059 * configure: Regenerate.
1060
1061 2020-07-26 Eli Zaretskii <eliz@gnu.org>
1062
1063 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
1064 ws2tcpip.h. When checking whether socklen_t type is defined, use
1065 ws2tcpip.h if it is available and sys/socket.h isn't.
1066 * configure: Regenerate.
1067 * config.in: Regenerate.
1068
1069 2020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
1070
1071 PR fortran/23051
1072 PR fortran/26139
1073 * valops.c (value_ind): Pass address to
1074 readjust_indirect_value_type.
1075 * value.c (readjust_indirect_value_type): Make parameter
1076 non-const, and add extra address parameter. Resolve original type
1077 before using it.
1078 * value.h (readjust_indirect_value_type): Update function
1079 signature and comment.
1080
1081 2020-07-25 Tom de Vries <tdevries@suse.de>
1082
1083 PR symtab/26243
1084 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
1085 entries.
1086
1087 2020-07-24 Aaron Merey <amerey@redhat.com>
1088
1089 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
1090 * configure: Rebuild.
1091
1092 2020-07-23 Kevin Buettner <kevinb@redhat.com>
1093
1094 PR corefiles/26294
1095 * corelow.c (_initialize_corelow): Add period to help text
1096 for "maintenance print core-file-backed-mappings".
1097
1098 2020-07-23 Pedro Alves <pedro@palves.net>
1099
1100 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
1101 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
1102 meanwhile.
1103 * frame.c (frame_cache_generation, get_frame_cache_generation):
1104 New.
1105 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
1106 (get_prev_frame_if_no_cycle): On exception, don't touch
1107 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
1108 * frame.h (get_frame_cache_generation): Declare.
1109
1110 2020-07-23 Tom de Vries <tdevries@suse.de>
1111
1112 PR tui/26282
1113 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
1114 New default constructor.
1115
1116 2020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
1117
1118 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
1119 exclude non-statement entries.
1120
1121 2020-07-22 Kevin Buettner <kevinb@redhat.com>
1122
1123 * NEWS (New commands): Mention new command
1124 "maintenance print core-file-backed-mappings".
1125
1126 2020-07-22 Kevin Buettner <kevinb@redhat.com>
1127
1128 * corelow.c (gdbcmd.h): Include.
1129 (core_target::info_proc_mappings): New method.
1130 (get_current_core_target): New function.
1131 (maintenance_print_core_file_backed_mappings): New function.
1132 (_initialize_corelow): Add core-file-backed-mappings to
1133 "maint print" commands.
1134
1135 2020-07-22 Kevin Buettner <kevinb@redhat.com>
1136
1137 * linux-tdep.c (dump_note_entry_p): New function.
1138 (linux_dump_mapping_p_ftype): New typedef.
1139 (linux_find_memory_regions_full): Add new parameter,
1140 should_dump_mapping_p.
1141 (linux_find_memory_regions): Adjust call to
1142 linux_find_memory_regions_full.
1143 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
1144 call to linux_find_memory_regions_full.
1145
1146 2020-07-22 Kevin Buettner <kevinb@redhat.com>
1147
1148 * corelow.c (solist.h, unordered_map): Include.
1149 (class core_target): Add field m_core_file_mappings and
1150 method build_file_mappings.
1151 (core_target::core_target): Call build_file_mappings.
1152 (core_target::~core_target): Free memory associated with
1153 m_core_file_mappings.
1154 (core_target::build_file_mappings): New method.
1155 (core_target::xfer_partial): Use m_core_file_mappings
1156 for memory transfers.
1157 * linux-tdep.c (linux_read_core_file_mappings): New
1158 function.
1159 (linux_core_info_proc_mappings): Rewrite to use
1160 linux_read_core_file_mappings.
1161 (linux_init_abi): Register linux_read_core_file_mappings.
1162
1163 2020-07-22 Kevin Buettner <kevinb@redhat.com>
1164
1165 * arch-utils.c (default_read_core_file_mappings): New function.
1166 * arch-utils.c (default_read_core_file_mappings): Declare.
1167 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
1168 * gdbarch.h, gdbarch.c: Regenerate.
1169
1170 2020-07-22 Kevin Buettner <kevinb@redhat.com>
1171
1172 PR corefiles/25631
1173 * corelow.c (core_target:xfer_partial): Revise
1174 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
1175 case after first checking the stratum beneath the core
1176 target.
1177 (has_all_memory): Return true.
1178 * target.c (raw_memory_xfer_partial): Revise comment
1179 regarding use of has_all_memory.
1180
1181 2020-07-22 Kevin Buettner <kevinb@redhat.com>
1182
1183 * exec.h (section_table_xfer_memory): Revise declaration,
1184 replacing section name parameter with an optional callback
1185 predicate.
1186 * exec.c (section_table_xfer_memory): Likewise.
1187 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
1188 of section_table_xfer_memory.
1189
1190 2020-07-22 Tom Tromey <tromey@adacore.com>
1191
1192 * mi/mi-cmd-stack.c (list_args_or_locals): Use
1193 lookup_symbol_search_name.
1194
1195 2020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
1196
1197 * python/py-registers.c (gdbpy_register_object_data_init): Remove
1198 redundant local variable.
1199 (gdbpy_get_register_descriptor): Extract descriptor vector as a
1200 reference, not pointer, update code accordingly.
1201
1202 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1203 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1204
1205 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
1206 * jit.c (jit_breakpoint_re_set_internal): Use the
1207 `skip_jit_symbol_lookup` field.
1208
1209 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1210 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1211
1212 * jit.c (jit_read_descriptor): Define the descriptor address once,
1213 use twice.
1214 (jit_breakpoint_deleted): Move the declaration of the loop variable
1215 `iter` into the loop header.
1216 (jit_breakpoint_re_set_internal): Move the declaration of the local
1217 variable `objf_data` to the first point of definition.
1218 (jit_event_handler): Move the declaration of local variables
1219 `code_entry`, `entry_addr`, and `objf` to their first point of use.
1220 Rename `objf` to `jited`.
1221
1222 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1223
1224 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
1225 Remove.
1226 * jit.c (get_jiter_objfile_data): Update.
1227
1228 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1229 Simon Marchi <simon.marchi@polymtl.ca>
1230
1231 * jit.c (struct jit_program_space_data): Remove.
1232 (jit_program_space_key): Remove.
1233 (jiter_objfile_data::~jiter_objfile_data): Remove program space
1234 stuff.
1235 (get_jit_program_space_data): Remove.
1236 (jit_breakpoint_deleted): Iterate on all of the program space's
1237 objfiles.
1238 (jit_inferior_init): Likewise.
1239 (jit_breakpoint_re_set_internal): Likewise. Also change return
1240 type to void.
1241 (jit_breakpoint_re_set): Pass current_program_space to
1242 jit_breakpoint_re_set_internal.
1243
1244 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1245
1246 * jit.h (struct jiter_objfile_data) <cached_code_address,
1247 jit_breakpoint>: Move to here from ...
1248 * jit.c (jit_program_space_data): ... here.
1249 (jiter_objfile_data::~jiter_objfile_data): Update.
1250 (jit_breakpoint_deleted): Update.
1251 (jit_breakpoint_re_set_internal): Update.
1252
1253 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1254
1255 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
1256 checks.
1257 (jit_read_descriptor): Remove NULL check.
1258 (jit_event_handler): Add an assertion.
1259
1260 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1261
1262 * jit.h (struct jit_objfile_data): Split into...
1263 (struct jiter_objfile_data): ... this ...
1264 (struct jited_objfile_data): ... and this.
1265 * objfiles.h (struct objfile) <jit_data>: Remove.
1266 <jiter_data, jited_data>: New fields.
1267 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
1268 (jiter_objfile_data::~jiter_objfile_data): ... this.
1269 (get_jit_objfile_data): Rename to ...
1270 (get_jiter_objfile_data): ... this.
1271 (add_objfile_entry): Update.
1272 (jit_read_descriptor): Use get_jiter_objfile_data.
1273 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
1274 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
1275 (jit_inferior_exit_hook): Use objfile's jited_data field.
1276
1277 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1278
1279 * jit.h: Forward-declare `struct minimal_symbol`.
1280 (struct jit_objfile_data): Migrate to here from jit.c; also add a
1281 constructor, destructor, and an objfile* field.
1282 * jit.c (jit_objfile_data): Remove.
1283 (struct jit_objfile_data): Migrate from here to jit.h.
1284 (jit_objfile_data::~jit_objfile_data): New destructor
1285 implementation with code moved from free_objfile_data.
1286 (free_objfile_data): Delete.
1287 (get_jit_objfile_data): Update to use the jit_data field of objfile.
1288 (jit_find_objf_with_entry_addr): Ditto.
1289 (jit_inferior_exit_hook): Ditto.
1290 (_initialize_jit): Remove the call to
1291 register_objfile_data_with_cleanup.
1292 * objfiles.h (struct objfile) <jit_data>: New field.
1293
1294 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1295
1296 * jit.h: Forward-declare `struct objfile`.
1297 (jit_event_handler): Add a second parameter, the JITer objfile.
1298 * jit.c (jit_read_descriptor): Change the signature to take the
1299 JITer objfile as an argument instead of the jit_program_space_data.
1300 (jit_inferior_init): Update the call to jit_read_descriptor.
1301 (jit_event_handler): Use the new JITer objfile argument when calling
1302 jit_read_descriptor.
1303 * breakpoint.c (handle_jit_event): Update the call to
1304 jit_event_handler to pass the JITer objfile.
1305
1306 2020-07-21 John Baldwin <jhb@FreeBSD.org>
1307
1308 * gdbarch.c: Regenerate.
1309 * gdbarch.h: Regenerate.
1310 * gdbarch.sh (handle_segmentation_fault): Remove method.
1311 * infrun.c (handle_segmentation_fault): Remove.
1312 (print_signal_received_reason): Remove call to
1313 handle_segmentation_fault.
1314
1315 2020-07-21 John Baldwin <jhb@FreeBSD.org>
1316
1317 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
1318 Rename to sparc64_linux_report_signal_info and add siggnal
1319 argument.
1320 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
1321 instead of sparc64_linux_handle_segmentation_fault.
1322
1323 2020-07-21 John Baldwin <jhb@FreeBSD.org>
1324
1325 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
1326 i386_linux_report_signal_info instead of
1327 i386_linux_handle_segmentation_fault.
1328 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
1329 to i386_linux_report_signal_info and add siggnal argument.
1330 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
1331 of i386_linux_handle_segmentation_fault.
1332 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
1333 to i386_linux_report_signal_info and add siggnal argument.
1334
1335 2020-07-21 John Baldwin <jhb@FreeBSD.org>
1336
1337 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
1338 hook if present.
1339
1340 2020-07-21 John Baldwin <jhb@FreeBSD.org>
1341
1342 * gdbarch.c: Regenerate.
1343 * gdbarch.h: Regenerate.
1344 * gdbarch.sh (report_signal_info): New method.
1345 * infrun.c (print_signal_received_reason): Invoke gdbarch
1346 report_signal_info hook if present.
1347
1348 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
1349
1350 * python/py-registers.c : Add 'unordered_map' include.
1351 (gdbpy_new_reggroup): Renamed to...
1352 (gdbpy_get_reggroup): ...this. Update to only create register
1353 group descriptors when needed.
1354 (gdbpy_reggroup_iter_next): Update.
1355
1356 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
1357
1358 * python/py-registers.c (gdbpy_register_object_data): New static
1359 global.
1360 (gdbpy_register_object_data_init): New function.
1361 (gdbpy_new_register_descriptor): Renamed to...
1362 (gdbpy_get_register_descriptor): ...this, and update to reuse
1363 existing register descriptors where possible.
1364 (gdbpy_register_descriptor_iter_next): Update.
1365 (gdbpy_initialize_registers): Register new gdbarch data.
1366
1367 2020-07-21 Simon Marchi <simon.marchi@efficios.com>
1368
1369 * linux-nat.c (stopped_pids): Make static.
1370
1371 2020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
1372
1373 PR ada/26235
1374 * gdbtypes.c (ada_discrete_type_low_bound,
1375 ada_discrete_type_high_bound): Handle undefined bounds.
1376
1377 2020-07-21 Kamil Rytarowski <n54@gmx.com>
1378
1379 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
1380 declaration.
1381 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
1382 function.
1383
1384 2020-07-20 John Baldwin <jhb@FreeBSD.org>
1385
1386 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
1387 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
1388 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
1389 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
1390 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
1391 method.
1392
1393 2020-07-20 Ludovic Courtès <ludo@gnu.org>
1394
1395 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
1396 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
1397 which are deprecated in Guile 3.0.
1398 * configure.ac (try_guile_versions): Add "guile-3.0".
1399 * configure (try_guile_versions): Regenerate.
1400 * NEWS: Update entry.
1401
1402 2020-07-20 Ludovic Courtès <ludo@gnu.org>
1403 Doug Evans <dje@google.com>
1404
1405 PR gdb/21104
1406 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
1407 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
1408 USING_GUILE_BEFORE_2_2.
1409 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
1410 Change type to 'scm_t_port_type *'.
1411 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
1412 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
1413 parameter and honor it. Update callers.
1414 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
1415 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
1416 functions.
1417 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
1418 USING_GUILE_BEFORE_2_2.
1419 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
1420 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
1421 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
1422 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
1423 and 'SCM_PORT_TYPE'.
1424 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
1425 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
1426 (gdbscm_memory_port_read, gdbscm_memory_port_write)
1427 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
1428 [!USING_GUILE_BEFORE_2_2]: New functions.
1429 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
1430 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
1431 'gdbscm_memory_port_read'.
1432 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
1433 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
1434 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
1435 function.
1436 (ioscm_init_memory_port): Remove.
1437 (ioscm_init_memory_port_stream): New function
1438 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
1439 function.
1440 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
1441 Return scm_from_uint (0).
1442 (gdbscm_set_memory_port_read_buffer_size_x)
1443 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
1444 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
1445 Return scm_from_uint (0).
1446 (gdbscm_set_memory_port_write_buffer_size_x)
1447 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
1448 * configure.ac (try_guile_versions): Add "guile-2.2".
1449 * configure: Regenerate.
1450 * NEWS: Add entry.
1451
1452 2020-07-18 Tom Tromey <tom@tromey.com>
1453
1454 * linux-nat.c (linux_multi_process): Remove.
1455 (linux_nat_target::supports_multi_process): Return true.
1456
1457 2020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
1458
1459 * arch/riscv.c (riscv_tdesc_cache): Change map type.
1460 (riscv_lookup_target_description): Return pointer out of
1461 unique_ptr.
1462 * target-descriptions.c (allocate_target_description): Add
1463 comment.
1464 (target_desc_deleter::operator()): Likewise.
1465 * target-descriptions.h (struct target_desc_deleter): Moved to
1466 gdbsupport/tdesc.h.
1467 (target_desc_up): Likewise.
1468
1469 2020-07-17 Tom Tromey <tromey@adacore.com>
1470
1471 * linux-nat.c (linux_nat_target::supports_non_stop)
1472 (linux_nat_target::always_non_stop_p): Use "true".
1473 (linux_nat_target::supports_disable_randomization): Use "true" and
1474 "false".
1475
1476 2020-07-16 Caroline Tice <cmtice@google.com>
1477
1478 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
1479 (RNGLIST_HEADER_SIZE64): New constant definition.
1480 (struct dwop_section_names): Add rnglists_dwo.
1481 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
1482 (struct loclist_header): Rename to 'loclists_rnglists_header'.
1483 (struct dwo_sections): Add rnglists field.
1484 (read_attribut_reprocess): Add tag parameter.
1485 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
1486 (cu_debug_rnglists_section): New function (decl & definition).
1487 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
1488 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
1489 die whose range is being checked; get rnglist section from
1490 cu_debug_rnglists_section, to get from either objfile or dwo file as
1491 appropriate. Add cases for DW_RLE_base_addressx,
1492 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
1493 the base address to DW_RLE_offset_pairs (not to all ranges), moving
1494 test inside if-condition and updating complaint message.
1495 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
1496 dwarf2_rnglists_process.
1497 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
1498 dwarf2_ranges_process.
1499 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
1500 need_ranges_base and update comment appropriately. Also pass die tag
1501 to dwarf2_ranges_read.
1502 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
1503 need_ranges_base and update comment appropriately. Also pass die tag
1504 to dwarf2_ranges_process.
1505 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
1506 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
1507 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
1508 need_ranges_base and update comment appropriately. Also pass die tag
1509 to read_attribute_reprocess and dwarf2_ranges_read.
1510 (read_loclist_header): Rename function to read_loclists_rnglists_header,
1511 and update function comment appropriately.
1512 (read_loclist_index): Call read_loclists_rnglists_header instead of
1513 read_loclist_header.
1514 (read_rnglist_index): New function.
1515 (read_attribute_reprocess): Add tag parameter. Add code for
1516 DW_FORM_rnglistx, passing tag to read_rnglist_index.
1517 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
1518
1519 2020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
1520
1521 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
1522 being resolved.
1523
1524 2020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
1525
1526 * arch-utils.c (show_architecture): Update formatting of messages.
1527
1528 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1529
1530 * gdbtypes.h (struct type) <bounds>: Handle array and string
1531 types.
1532 * ada-lang.c (assign_aggregate): Use type::bounds on
1533 array/string type.
1534 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
1535 * c-varobj.c (c_number_of_children): Likewise.
1536 (c_describe_child): Likewise.
1537 * eval.c (evaluate_subexp_for_sizeof): Likewise.
1538 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
1539 (f_type_print_base): Likewise.
1540 * f-valprint.c (f77_array_offset_tbl): Likewise.
1541 (f77_get_upperbound): Likewise.
1542 (f77_print_array_1): Likewise.
1543 * guile/scm-type.c (gdbscm_type_range): Likewise.
1544 * m2-typeprint.c (m2_array): Likewise.
1545 (m2_is_long_set_of_type): Likewise.
1546 * m2-valprint.c (get_long_set_bounds): Likewise.
1547 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
1548 * python/py-type.c (typy_range): Likewise.
1549 * rust-lang.c (rust_internal_print_type): Likewise.
1550 * type-stack.c (type_stack::follow_types): Likewise.
1551 * valarith.c (value_subscripted_rvalue): Likewise.
1552 * valops.c (value_cast): Likewise.
1553
1554 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1555
1556 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
1557 callers to use the equivalent accessor methods.
1558
1559 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1560
1561 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
1562 (struct type) <bit_stride>: New method.
1563 (TYPE_BIT_STRIDE): Remove.
1564 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
1565
1566 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1567
1568 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
1569 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
1570 callers to use the equivalent accessor methods instead.
1571
1572 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1573
1574 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
1575 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
1576 callers to use the equivalent accessor methods instead.
1577
1578 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1579
1580 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
1581 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
1582 to use dynamic_prop::kind.
1583
1584 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1585
1586 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
1587 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
1588 to get the bound property's kind and check against
1589 PROP_UNDEFINED.
1590
1591 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1592
1593 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
1594 all callers to use type::range_bounds followed by
1595 dynamic_prop::{low,high}.
1596
1597 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
1598
1599 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
1600 const_val, set_const_val, baton, set_locexpr, set_loclist,
1601 set_addr_offset, variant_parts, set_variant_parts,
1602 original_type, set_original_type>: New methods.
1603 <kind>: Rename to...
1604 <m_kind>: ... this. Update all users to use the new methods
1605 instead.
1606 <data>: Rename to...
1607 <m_data>: ... this. Update all users to use the new methods
1608 instead.
1609
1610 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1611
1612 * gdbtypes.c (get_discrete_bounds): Return failure if
1613 the range type's bounds are not both defined and constant
1614 values.
1615 (get_array_bounds): Update comment. Remove undefined bound check.
1616
1617 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
1618
1619 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
1620 the type::bounds method directly.
1621
1622 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1623
1624 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
1625 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
1626 are used to set the range type's bounds to use set_bounds.
1627
1628 2020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1629
1630 * exec.c (_initialize_exec): Update exec-file-mismatch help.
1631
1632 2020-07-10 Pedro Alves <pedro@palves.net>
1633
1634 * gdbthread.h (inferior_ref): Define.
1635 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
1636 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
1637 * thread.c
1638 (scoped_restore_current_thread::restore):
1639 Adjust to gdb::ref_ptr.
1640 (scoped_restore_current_thread::~scoped_restore_current_thread):
1641 Remove manual decref handling.
1642 (scoped_restore_current_thread::scoped_restore_current_thread):
1643 Adjust to use
1644 inferior_ref::new_reference/thread_info_ref::new_reference.
1645 Incref the thread before calling get_frame_id instead of after.
1646 Let TARGET_CLOSE_ERROR propagate.
1647
1648 2020-07-10 Pedro Alves <pedro@palves.net>
1649
1650 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
1651 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
1652 NOT_AVAILABLE_ERROR.
1653 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
1654 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
1655
1656 2020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
1657 Pedro Alves <pedro@palves.net>
1658
1659 PR gdb/26199
1660 * infrun.c (threads_are_resumed_pending_p): Delete.
1661 (do_target_wait): Remove threads_are_executing and
1662 threads_are_resumed_pending_p checks from the inferior_matches
1663 lambda. Update comments.
1664
1665 2020-07-10 Pedro Alves <pedro@palves.net>
1666
1667 PR gdb/26199
1668 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
1669 executing threads.
1670
1671 2020-07-10 Pedro Alves <pedro@palves.net>
1672
1673 PR gdb/26199
1674 * infrun.c (handle_no_resumed): Handle multiple targets.
1675
1676 2020-07-10 Pedro Alves <pedro@palves.net>
1677
1678 PR gdb/26199
1679 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
1680 target_is_async_p.
1681
1682 2020-07-10 Pedro Alves <pedro@palves.net>
1683
1684 PR gdb/26199
1685 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
1686 threads, not all threads.
1687
1688 2020-07-10 Pedro Alves <pedro@palves.net>
1689
1690 PR gdb/26199
1691 * remote.c (remote_target::open_1): Pass remote target pointer as
1692 data to create_async_event_handler.
1693 (remote_async_inferior_event_handler): Mark async event handler
1694 before returning if the remote target still has either pending
1695 events or unacknowledged notifications.
1696
1697 2020-07-10 John Baldwin <jhb@FreeBSD.org>
1698
1699 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
1700 declaration.
1701 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
1702 function.
1703
1704 2020-07-09 John Baldwin <jhb@FreeBSD.org>
1705
1706 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
1707 inferior_ptid.
1708
1709 2020-07-09 John Baldwin <jhb@FreeBSD.org>
1710
1711 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
1712 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
1713 AT_FREEBSD_PS_STRINGS.
1714
1715 2020-07-08 Hannes Domani <ssbssa@yahoo.de>
1716
1717 * auto-load.c (auto_load_objfile_script_1): Convert drive part
1718 of debugfile path on Windows.
1719
1720 2020-07-08 John Baldwin <jhb@FreeBSD.org>
1721
1722 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
1723 argument to 'data'.
1724
1725 2020-07-08 Tom Tromey <tromey@adacore.com>
1726
1727 * ada-lang.c (ada_exception_message_1): Use read_memory.
1728
1729 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1730
1731 PR python/22748
1732 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
1733 special handling for inline frames.
1734 * findvar.c (value_of_register_lazy): Skip inline frames when
1735 creating lazy register values.
1736 * frame.c (frame_id_computed_p): Delete definition.
1737 * frame.h (frame_id_computed_p): Delete declaration.
1738
1739 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1740
1741 * NEWS: Mention additions to Python API.
1742 * python/py-arch.c (archpy_register_groups): New function.
1743 (arch_object_methods): Add 'register_groups' method.
1744 * python/py-registers.c (reggroup_iterator_object): New struct.
1745 (reggroup_object): New struct.
1746 (gdbpy_new_reggroup): New function.
1747 (gdbpy_reggroup_to_string): New function.
1748 (gdbpy_reggroup_name): New function.
1749 (gdbpy_reggroup_iter): New function.
1750 (gdbpy_reggroup_iter_next): New function.
1751 (gdbpy_new_reggroup_iterator): New function
1752 (gdbpy_initialize_registers): Register new types.
1753 (reggroup_iterator_object_type): Define new Python type.
1754 (gdbpy_reggroup_getset): New static global.
1755 (reggroup_object_type): Define new Python type.
1756 * python/python-internal.h
1757
1758 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1759
1760 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
1761 * python/py-arch.c (archpy_registers): New function.
1762 (arch_object_methods): Add 'registers' method.
1763 * python/py-registers.c: New file.
1764 * python/python-internal.h
1765 (gdbpy_new_register_descriptor_iterator): Declare.
1766 (gdbpy_initialize_registers): Declare.
1767 * python/python.c (do_start_initialization): Call
1768 gdbpy_initialize_registers.
1769 * NEWS: Mention additions to the Python API.
1770
1771 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1772
1773 * NEWS: Mention new Python API method.
1774 * python/py-unwind.c (pending_framepy_architecture): New function.
1775 (pending_frame_object_methods): Add architecture method.
1776
1777 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1778
1779 * gdbarch.c: Regenerate.
1780 * gdbarch.h: Regenerate.
1781 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
1782 (gdbarch_data): Use internal_error for the case where
1783 deprecated_set_gdbarch_data was originally needed.
1784 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
1785 and use passed in obstack.
1786 (libunwind_frame_set_descr): Should no longer get back NULL from
1787 gdbarch_data.
1788 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
1789 type.
1790 * user-regs.c (user_regs_init): Update parameters, and use passed
1791 in obstack.
1792 (user_reg_add): Should no longer get back NULL from gdbarch_data.
1793 (_initialize_user_regs): Register as a pre-init gdbarch data type.
1794
1795 2020-07-06 Tom de Vries <tdevries@suse.de>
1796
1797 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
1798 End-Of-Sequence in lte_is_less_than.
1799 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
1800 "gdb: Don't reorder line table entries too much when sorting".
1801
1802 2020-07-06 Tom de Vries <tdevries@suse.de>
1803
1804 PR tui/26205
1805 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
1806
1807 2020-07-05 Tom de Vries <tdevries@suse.de>
1808
1809 PR build/26187
1810 * inferior.h (struct infcall_suspend_state_deleter): If available, use
1811 std::uncaught_exceptions instead of deprecated
1812 std::uncaught_exception.
1813
1814 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
1815
1816 * macroexp.h (macro_stringify): Return
1817 gdb::unique_xmalloc_ptr<char>.
1818 * macroexp.c (macro_stringify): Likewise.
1819 * macrotab.c (fixup_definition): Update.
1820
1821 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
1822
1823 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
1824 (lex_one_token): Update.
1825 * macroexp.c (struct macro_buffer) <release>: Return
1826 gdb::unique_xmalloc_ptr<char>.
1827 (macro_stringify): Update.
1828 (macro_expand): Update.
1829 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
1830 * macroexp.h (macro_expand_next): Likewise.
1831
1832 2020-07-02 Simon Marchi <simon.marchi@efficios.com>
1833
1834 * macroexp.h (macro_lookup_ftype): Remove.
1835 (macro_expand, macro_expand_once, macro_expand_next): Remove
1836 lookup function parameters, add scope parameter.
1837 * macroexp.c (scan, substitute_args, expand, maybe_expand,
1838 macro_expand, macro_expand_once, macro_expand_next): Likewise.
1839 * macroscope.h (standard_macro_lookup): Change parameter type
1840 to macro_scope.
1841 * macroscope.c (standard_macro_lookup): Likewise.
1842 * c-exp.y (lex_one_token): Update.
1843 * macrocmd.c (macro_expand_command): Likewise.
1844 (macro_expand_once_command): Likewise.
1845
1846 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
1847
1848 * inf-loop.c (inferior_event_handler): Remove client_data param.
1849 * inf-loop.h (inferior_event_handler): Likewise.
1850 * infcmd.c (step_1): Adjust.
1851 * infrun.c (proceed): Adjust.
1852 (fetch_inferior_event): Remove client_data param.
1853 (infrun_async_inferior_event_handler): Adjust.
1854 * infrun.h (fetch_inferior_event): Remove `void *` param.
1855 * linux-nat.c (handle_target_event): Adjust.
1856 * record-btrace.c (record_btrace_handle_async_inferior_event):
1857 Adjust.
1858 * record-full.c (record_full_async_inferior_event_handler):
1859 Adjust.
1860 * remote.c (remote_async_inferior_event_handler): Adjust.
1861
1862 2020-07-01 Tom Tromey <tom@tromey.com>
1863
1864 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
1865 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
1866
1867 2020-07-01 Tom Tromey <tom@tromey.com>
1868
1869 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
1870 tui_gen_win_info.
1871 (tui_win_info::make_window): Merge with
1872 tui_gen_win_info::make_window.
1873 (tui_win_info::make_visible): Move from tui_gen_win_info.
1874 * tui/tui-win.c (tui_win_info::max_width): Move from
1875 tui_gen_win_info.
1876 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
1877 type.
1878 <window_factory>: Likewise.
1879 * tui/tui-layout.c (tui_win_info::resize): Move from
1880 tui_gen_win_info.
1881 (make_standard_window): Change return type.
1882 (get_locator_window, tui_get_window_by_name): Likewise.
1883 (tui_layout_window::apply): Remove a cast.
1884 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
1885 (struct tui_win_info): Merge with tui_gen_win_info.
1886 (struct tui_gen_win_info): Remove.
1887
1888 2020-07-01 Tom Tromey <tom@tromey.com>
1889
1890 * tui/tui-stack.h (struct tui_locator_window): Derive from
1891 tui_win_info.
1892 <do_scroll_horizontal, do_scroll_vertical>: New methods.
1893 <can_box>: New method.
1894
1895 2020-07-01 Tom Tromey <tom@tromey.com>
1896
1897 * tui/tui-stack.h (struct tui_locator_window): Remove body.
1898
1899 2020-07-01 Tom Tromey <tom@tromey.com>
1900
1901 * tui/tui-regs.c (tui_data_window::display_registers_from)
1902 (tui_data_window::display_registers_from)
1903 (tui_data_window::first_data_item_displayed)
1904 (tui_data_window::delete_data_content_windows): Update.
1905 (tui_data_window::refresh_window, tui_data_window::no_refresh):
1906 Remove.
1907 (tui_data_window::check_register_values): Update.
1908 (tui_data_item_window::rerender): Add parameters. Update.
1909 (tui_data_item_window::refresh_window): Remove.
1910 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
1911 virtual.
1912 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
1913 tui_gen_win_info.
1914 <refresh_window, max_height, min_height>: Remove.
1915 <rerender>: Add parameters.
1916 <x, y, visible>: New members.
1917 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
1918 <m_item_width>: New member.
1919
1920 2020-07-01 Tom Tromey <tom@tromey.com>
1921
1922 * tui/tui-regs.c (tui_data_window::show_register_group)
1923 (tui_data_window::check_register_values): Update.
1924 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
1925 from item_no.
1926
1927 2020-07-01 Tom Tromey <tom@tromey.com>
1928
1929 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
1930 useless "if".
1931
1932 2020-07-01 Tom Tromey <tom@tromey.com>
1933
1934 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
1935 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
1936
1937 2020-07-01 Tom Tromey <tom@tromey.com>
1938
1939 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
1940 * tui/tui-winsource.h (enum tui_line_or_address_kind)
1941 (struct tui_line_or_address): Move from tui-data.h.
1942 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
1943 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
1944 (tui_cmd_window, tui_source_window_base, tui_source_window)
1945 (tui_disasm_window): Don't declare.
1946 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
1947 to tui-winsource.h.
1948 (SINGLE_KEY): Move to tui-stack.c.
1949
1950 2020-07-01 Tom Tromey <tom@tromey.com>
1951
1952 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
1953 std::string.
1954 * tui/tui-regs.c (class tab_expansion_file): New.
1955 (tab_expansion_file::write): New method.
1956 (tui_register_format): Change return type. Use
1957 tab_expansion_file.
1958 (tui_get_register, tui_data_window::display_registers_from)
1959 (tui_data_item_window::rerender): Update.
1960 * tui/tui-io.h (tui_expand_tabs): Don't declare.
1961 * tui/tui-io.c (tui_expand_tabs): Remove.
1962
1963 2020-07-01 Tom Tromey <tom@tromey.com>
1964
1965 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
1966
1967 2020-07-01 Fangrui Song <maskray@google.com>
1968
1969 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
1970
1971 2020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
1972
1973 * dwarf2/read.c (set_die_type): Removed conditions to restrict
1974 forms for DW_AT_associated and DW_AT_allocated attributes,
1975 which is already checked in function attr_to_dynamic_prop.
1976
1977 2020-06-30 Tom Tromey <tromey@adacore.com>
1978
1979 * dwarf2/read.c (quirk_rust_enum): Correctly call
1980 alloc_rust_variant for default-less enum.
1981
1982 2020-06-30 Tom Tromey <tromey@adacore.com>
1983
1984 PR build/26183:
1985 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
1986 gdb::to_string.
1987
1988 2020-06-29 Simon Marchi <simon.marchi@efficios.com>
1989
1990 * gdbarch.sh (displaced_step_copy_insn): Update doc.
1991 * gdbarch.h: Re-generate.
1992
1993 2020-06-28 Tom Tromey <tom@tromey.com>
1994
1995 * command.h (cmd_types): Remove.
1996 (cmd_type): Don't declare.
1997 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
1998 typedef.
1999 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
2000 * cli/cli-decode.c (cmd_type): Remove.
2001
2002 2020-06-27 Pedro Alves <palves@redhat.com>
2003
2004 * fork-child.c (prefork_hook): Adjust.
2005 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
2006 Delete.
2007 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
2008 * inferior.c (inferior::set_tty, inferior::tty): New methods.
2009 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
2010 Remove declarations.
2011 (struct inferior) <set_tty, tty>: New methods.
2012 (struct inferior) <terminal>: Rename to ...
2013 (struct inferior) <m_terminal>: ... this and make private.
2014 * main.c (captured_main_1): Adjust.
2015 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
2016 (mi_cmd_inferior_tty_show): Adjust.
2017 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
2018 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
2019
2020 2020-06-26 Nick Alcock <nick.alcock@oracle.com>
2021
2022 * configure.ac: Add --enable-libctf: handle --disable-static
2023 properly.
2024 * acinclude.m4: sinclude ../config/enable.m4.
2025 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
2026 (LIBCTF): Substitute in.
2027 (CTF_DEPS): New, likewise.
2028 (CLIBS): libctf needs symbols from libbfd: move earlier.
2029 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
2030 flags.
2031 * ctfread.c: Surround in ENABLE_LIBCTF.
2032 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
2033 * configure: Regenerate.
2034 * config.in: Likewise.
2035
2036 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
2037
2038 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
2039
2040 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
2041
2042 * inferior.h (struct inferior) <terminal>: Change type to
2043 gdb::unique_xmalloc_ptr<char>.
2044 * inferior.c (inferior::~inferior): Don't free inf->terminal.
2045 * infcmd.c (set_inferior_io_terminal): Don't free terminal
2046 field, adjust to unique pointer.
2047 (get_inferior_io_terminal): Adjust to unique pointer.
2048
2049 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2050
2051 * riscv-tdep.c (riscv_print_registers_info): Loop over all
2052 registers, not just the known core set of registers.
2053
2054 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2055
2056 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
2057 fflags, frm, and fcsr registers.
2058 (riscv_register_reggroup_p): Remove unknown CSRs from save and
2059 restore groups.
2060 (riscv_tdesc_unknown_reg): New function.
2061 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
2062 tdesc_use_registers.
2063 * riscv-tdep.h (struct gdbarch_tdep): Add
2064 unknown_csrs_first_regnum, unknown_csrs_count,
2065 duplicate_fflags_regnum, duplicate_frm_regnum, and
2066 duplicate_fcsr_regnum fields.
2067
2068 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2069
2070 * target-descriptions.c (tdesc_use_registers): Add new parameter a
2071 callback, use the callback (when not null) to help number unknown
2072 registers.
2073 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
2074 (tdesc_use_registers): Add extra parameter to declaration.
2075
2076 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2077
2078 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
2079 in the file.
2080 (class riscv_pending_register_alias): Likewise.
2081 (riscv_register_feature::register_info): Change 'required_p' field
2082 to 'required', and change its type. Add 'check' member function.
2083 (riscv_register_feature::register_info::check): Define new member
2084 function.
2085 (riscv_xreg_feature): Change initialisation of 'required' field.
2086 (riscv_freg_feature): Likewise.
2087 (riscv_virtual_feature): Likewise.
2088 (riscv_csr_feature): Likewise.
2089 (riscv_check_tdesc_feature): Take extra parameter, the csr
2090 tdesc_feature, rewrite the function to use the new
2091 riscv_register_feature::register_info::check function.
2092 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
2093
2094 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2095
2096 * features/Makefile: Remove all references to the deleted files
2097 below.
2098 * features/riscv/32bit-csr.c: Deleted.
2099 * features/riscv/32bit-csr.xml: Deleted.
2100 * features/riscv/64bit-csr.c: Deleted.
2101 * features/riscv/64bit-csr.xml: Deleted.
2102 * features/riscv/rebuild-csr-xml.sh: Deleted.
2103
2104 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2105
2106 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
2107 whitespace error for declaration of names member variable.
2108 (struct riscv_register_feature): Add new prefer_first_name member
2109 variable, and fix whitespace error in declaration of registers.
2110 (riscv_xreg_feature): Initialize prefer_first_name field.
2111 (riscv_freg_feature): Likewise.
2112 (riscv_virtual_feature): Likewise.
2113 (riscv_csr_feature): Likewise.
2114 (riscv_register_name): Expand on comments. Remove register name
2115 modifications for CSR and virtual registers.
2116
2117 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2118
2119 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
2120 errors.
2121
2122 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2123
2124 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
2125 riscv-opc.h.
2126 (class riscv_pending_register_alias): New class.
2127 (riscv_check_tdesc_feature): Take vector of pending aliases and
2128 populate it as appropriate.
2129 (riscv_setup_register_aliases): Delete.
2130 (riscv_gdbarch_init): Create vector of pending aliases and pass it
2131 to riscv_check_tdesc_feature in all cases. Use the vector to
2132 create the register aliases.
2133
2134 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2135
2136 * sol2-tdep.c (sol2_static_transform_name): Remove.
2137 (sol2_init_abi): Don't register it.
2138 * gdbarch.sh (static_transform_name): Remove.
2139 * gdbarch.c, gdbarch.h: Regenerate.
2140
2141 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
2142 gdbarch_static_transform_name.
2143 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
2144 * stabsread.c (define_symbol) <'X'>: Remove.
2145 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
2146 handling.
2147 <'V'>: Likewise.
2148 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
2149 <'S'>: Remove call to gdbarch_static_transform_name.
2150
2151 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2152
2153 * procfs.c (procfs_pre_trace): New function.
2154 (procfs_target::create_inferior): Pass it to fork_inferior.
2155
2156 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2157
2158 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
2159 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
2160 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
2161 sol2-tdep.o, sparc-sol2-tdep.o.
2162 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
2163 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
2164 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
2165 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
2166
2167 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2168
2169 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
2170 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
2171 Call sol2_init_abi.
2172 Remove calls to set_gdbarch_skip_solib_resolver,
2173 set_gdbarch_core_pid_to_str.
2174 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
2175 (i386_sol2_static_transform_name): Remove.
2176 (i386_sol2_init_abi): Call sol2_init_abi.
2177 Remove calls to set_gdbarch_sofun_address_maybe_missing,
2178 set_gdbarch_static_transform_name,
2179 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
2180 Use sol2_sigtramp_p.
2181 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
2182 (sol2_sigtramp_p): New function.
2183 (sol2_static_transform_name): New function.
2184 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
2185 (sol2_init_abi): New function.
2186 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
2187 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
2188 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
2189 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
2190 (sparc_sol2_static_transform_name): Remove.
2191 (sparc32_sol2_init_abi): Call sol2_init_abi.
2192 Remove calls to set_gdbarch_sofun_address_maybe_missing,
2193 set_gdbarch_static_transform_name,
2194 set_gdbarch_skip_solib_resolver,
2195 set_gdbarch_core_pid_to_str.
2196 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
2197 (sparc_sol2_static_transform_name): Remove
2198 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
2199 call sol2_sigtramp_p.
2200 (sparc64_sol2_init_abi): Call sol2_init_abi.
2201 Remove calls to set_gdbarch_sofun_address_maybe_missing,
2202 set_gdbarch_static_transform_name,
2203 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
2204
2205 2020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2206
2207 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
2208 * exec.c (validate_exec_file): If from_tty, set both
2209 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
2210 * symfile.c (symbol_file_add_with_addrs): if always_confirm
2211 and from_tty, unconditionally ask a confirmation.
2212
2213 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2214
2215 * target-descriptions.c (tdesc_architecture_name): Protect against
2216 NULL pointer dereference.
2217 (maint_print_xml_tdesc_cmd): New function.
2218 (_initialize_target_descriptions): Register new 'maint print
2219 xml-tdesc' command and give it the filename completer.
2220 * NEWS: Mention new 'maint print xml-tdesc' command.
2221
2222 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2223
2224 * target-descriptions.c (class tdesc_compatible_info): New class.
2225 (struct target_desc): Change type of compatible vector.
2226 (tdesc_compatible_p): Update for change in type of
2227 target_desc::compatible.
2228 (tdesc_compatible_info_list): New function.
2229 (tdesc_compatible_info_arch_name): New function.
2230 (tdesc_add_compatible): Update for change in type of
2231 target_desc::compatible.
2232 (print_c_tdesc::visit_pre): Likewise.
2233
2234 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2235
2236 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
2237 whitespace to underscore.
2238 (maint_print_c_tdesc_cmd): Use fake filename for target
2239 descriptions that came from the target.
2240 (_initialize_target_descriptions): Add filename command completion
2241 for 'maint print c-tdesc'.
2242
2243 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
2244
2245 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
2246 lines.
2247
2248 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
2249
2250 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
2251 lines.
2252 (dwarf2_find_location_expression): Likewise.
2253 (call_site_parameter_matches): Likewise.
2254 (dwarf2_compile_expr_to_ax): Likewise.
2255 (disassemble_dwarf_expression): Likewise.
2256 (loclist_describe_location): Likewise.
2257
2258 2020-06-23 Pedro Alves <palves@redhat.com>
2259
2260 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
2261 progspace-and-thread.h. Include scoped-mock-context.h instead.
2262 (register_to_value_test): Use scoped_mock_context.
2263 * regcache.c: Include "scoped-mock-context.h".
2264 (cooked_read_test): Don't error out if a target is already pushed.
2265 Use scoped_mock_context. Adjust.
2266 * scoped-mock-context.h: New file.
2267
2268 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2269
2270 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
2271 initializer.
2272 (ada_language::is_string_type_p): New member function.
2273 * c-lang.c (c_language_data): Delete la_is_string_type_p
2274 initializer.
2275 (cplus_language_data): Likewise.
2276 (asm_language_data): Likewise.
2277 (minimal_language_data): Likewise.
2278 * d-lang.c (d_language_data): Likewise.
2279 * f-lang.c (f_is_string_type_p): Delete function, implementation
2280 moved to f_language::is_string_type_p.
2281 (f_language_data): Delete la_is_string_type_p initializer.
2282 (f_language::is_string_type_p): New member function,
2283 implementation from f_is_string_type_p.
2284 * go-lang.c (go_is_string_type_p): Delete function, implementation
2285 moved to go_language::is_string_type_p.
2286 (go_language_data): Delete la_is_string_type_p initializer.
2287 (go_language::is_string_type_p): New member function,
2288 implementation from go_is_string_type_p.
2289 * language.c (language_defn::is_string_type_p): Define new member
2290 function.
2291 (default_is_string_type_p): Make static, add comment copied from
2292 header file.
2293 (unknown_language_data): Delete la_is_string_type_p initializer.
2294 (unknown_language::is_string_type_p): New member function.
2295 (auto_language_data): Delete la_is_string_type_p initializer.
2296 (auto_language::is_string_type_p): New member function.
2297 * language.h (language_data): Delete la_is_string_type_p field.
2298 (language_defn::is_string_type_p): Declare new function.
2299 (default_is_string_type_p): Delete desclaration, move comment to
2300 definition.
2301 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
2302 moved to m2_language::is_string_type_p.
2303 (m2_language_data): Delete la_is_string_type_p initializer.
2304 (m2_language::is_string_type_p): New member function,
2305 implementation from m2_is_string_type_p.
2306 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
2307 initializer.
2308 * opencl-lang.c (opencl_language_data): Likewise.
2309 * p-lang.c (pascal_is_string_type_p): Delete function,
2310 implementation moved to pascal_language::is_string_type_p.
2311 (pascal_language_data): Delete la_is_string_type_p initializer.
2312 (pascal_language::is_string_type_p): New member function,
2313 implementation from pascal_is_string_type_p.
2314 * rust-lang.c (rust_is_string_type_p): Delete function,
2315 implementation moved to rust_language::is_string_type_p.
2316 (rust_language_data): Delete la_is_string_type_p initializer.
2317 (rust_language::is_string_type_p): New member function,
2318 implementation from rust_is_string_type_p.
2319 * valprint.c (val_print_scalar_or_string_type_p): Update call to
2320 is_string_type_p.
2321
2322 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2323
2324 * ada-lang.c (ada_language_data): Delete la_print_typedef
2325 initializer.
2326 (ada_language::print_typedef): New member function.
2327 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
2328 (cplus_language_data): Likewise.
2329 (asm_language_data): Likewise.
2330 (minimal_language_data): Likewise.
2331 * d-lang.c (d_language_data): Likewise.
2332 * f-lang.c (f_language_data): Likewise.
2333 (f_language::print_typedef): New member function.
2334 * go-lang.c (go_language_data): Delete la_print_typedef
2335 initializer.
2336 * language.c (language_defn::print_typedef): Define member
2337 function.
2338 (unknown_language_data): Delete la_print_typedef initializer.
2339 (unknown_language::print_typedef): New member function.
2340 (auto_language_data): Delete la_print_typedef initializer.
2341 (auto_language::print_typedef): New member function.
2342 * language.h (language_data): Delete la_print_typedef field.
2343 (language_defn::print_typedef): Declare new member function.
2344 (LA_PRINT_TYPEDEF): Update call to print_typedef.
2345 (default_print_typedef): Delete declaration.
2346 * m2-lang.c (m2_language_data): Delete la_print_typedef
2347 initializer.
2348 (m2_language::print_typedef): New member function.
2349 * objc-lang.c (objc_language_data): Delete la_print_typedef
2350 initializer.
2351 * opencl-lang.c (opencl_language_data): Likewise.
2352 * p-lang.c (pascal_language_data): Likewise.
2353 (pascal_language::print_typedef): New member function.
2354 * rust-lang.c (rust_print_typedef): Delete function,
2355 implementation moved to rust_language::print_typedef.
2356 (rust_language): Delete la_print_typedef initializer.
2357 (rust_language::print_typedef): New member function,
2358 implementation from rust_print_typedef.
2359 * typeprint.c (default_print_typedef): Delete.
2360
2361 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2362
2363 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
2364 (ada_language::printstr): New member function.
2365 * c-lang.c (c_language_data): Delete la_printstr initializer.
2366 (cplus_language_data): Likewise.
2367 (asm_language_data): Likewise.
2368 (minimal_language_data): Likewise.
2369 * d-lang.c (d_language_data): Likewise.
2370 * f-lang.c (f_printstr): Rename to f_language::printstr.
2371 (f_language_data): Delete la_printstr initializer.
2372 (f_language::printstr): New member function, implementation from
2373 f_printstr.
2374 * go-lang.c (go_language_data): Delete la_printstr initializer.
2375 * language.c (language_defn::printstr): Define new member
2376 function.
2377 (unk_lang_printstr): Delete.
2378 (unknown_language_data): Delete la_printstr initializer.
2379 (unknown_language::printstr): New member function.
2380 (auto_language_data): Delete la_printstr initializer.
2381 (auto_language::printstr): New member function.
2382 * language.h (language_data): Delete la_printstr field.
2383 (language_defn::printstr): Declare new member function.
2384 (LA_PRINT_STRING): Update call to printstr.
2385 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
2386 (m2_language_data): Delete la_printstr initializer.
2387 (m2_language::printstr): New member function, implementation from
2388 m2_printstr.
2389 * objc-lang.c (objc_language_data): Delete la_printstr
2390 initializer.
2391 * opencl-lang.c (opencl_language_data): Likewise.
2392 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
2393 (pascal_language_data): Delete la_printstr initializer.
2394 (pascal_language::printstr): New member function, implementation
2395 from pascal_printstr.
2396 * p-lang.h (pascal_printstr): Delete declaration.
2397 * rust-lang.c (rust_printstr): Update header comment.
2398 (rust_language_data): Delete la_printstr initializer.
2399 (rust_language::printstr): New member function.
2400
2401 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2402
2403 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
2404 (ada_language::printchar): New member function.
2405 * c-lang.c (c_language_data): Delete la_printchar initializer.
2406 (cplus_language_data): Likewise.
2407 (asm_language_data): Likewise.
2408 (minimal_language_data): Likewise.
2409 * d-lang.c (d_language_data): Likewise.
2410 * f-lang.c (f_printchar): Rename to f_language::printchar.
2411 (f_language_data): Delete la_printchar initializer.
2412 (f_language::printchar): New member function, implementation from
2413 f_printchar.
2414 * go-lang.c (go_language_data): Delete la_printchar initializer.
2415 * language.c (unk_lang_printchar): Delete.
2416 (language_defn::printchar): Define new member function.
2417 (unknown_language_data): Delete la_printchar initializer.
2418 (unknown_language::printchar): New member function.
2419 (auto_language_data): Delete la_printchar initializer.
2420 (auto_language::printchar): New member function.
2421 * language.h (language_data): Delete la_printchar field.
2422 (language_defn::printchar): Declare new member function.
2423 (LA_PRINT_CHAR): Update call to printchar.
2424 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
2425 (m2_language::printchar): New member function.
2426 * objc-lang.c (objc_language_data): Delete la_printchar
2427 initializer.
2428 * opencl-lang.c (opencl_language_data): Likewise.
2429 * p-lang.c (pascal_language_data): Delete la_printchar
2430 initializer.
2431 (pascal_language::printchar): New member function.
2432 * rust-lang.c (rust_printchar): Rename to
2433 rust_language::printchar.
2434 (rust_language_data): Delete la_printchar initializer.
2435 (rust_language::printchar): New member function, implementation
2436 from rust_printchar.
2437
2438 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2439
2440 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
2441 (ada_language_data): Delete la_emitchar initializer.
2442 (ada_language::emitchar): New member function, implementation from
2443 emit_char.
2444 * c-lang.c (c_language_data): Delete la_emitchar initializer.
2445 (cplus_language_data): Likewise.
2446 (asm_language_data): Likewise.
2447 (minimal_language_data): Likewise.
2448 * d-lang.c (d_language_data): Likewise.
2449 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
2450 (f_language_data): Delete la_emitchar initializer.
2451 (f_language::emitchar): New member function, implementation from
2452 f_emit_char.
2453 * go-lang.c (go_language_data): Delete la_emitchar initializer.
2454 * language.c (unk_lang_emit_char): Delete.
2455 (language_defn::emitchar): New member function definition.
2456 (unknown_language_data): Delete la_emitchar initializer.
2457 (unknown_language::emitchar): New member function.
2458 (auto_language_data): Delete la_emitchar initializer.
2459 (auto_language::emitchar): New member function.
2460 * language.h (language_data): Delete la_emitchar field.
2461 (language_defn::emitchar): New member field declaration.
2462 (LA_EMIT_CHAR): Update call to emitchar.
2463 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
2464 (m2_language_data): Delete la_emitchar initializer.
2465 (m2_language::emitchar): New member function, implementation from
2466 m2_emit_char.
2467 * objc-lang.c (objc_language_data): Delete la_emitchar
2468 initializer.
2469 * opencl-lang.c (opencl_language_data): Likewise.
2470 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
2471 (pascal_language_data): Delete la_emitchar initializer.
2472 (pascal_language::emitchar): New member function, implementation
2473 from pascal_emit_char.
2474 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
2475 (rust_language_data): Delete la_emitchar initializer.
2476 (rust_language::emitchar): New member function, implementation
2477 from rust_emitchar.
2478
2479 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2480
2481 * ada-lang.c (resolve): Rename to ada_language::post_parser.
2482 (ada_language_data): Delete la_post_parser initializer.
2483 (ada_language::post_parser): New member function.
2484 * c-lang.c (c_language_data): Delete la_post_parser initializer.
2485 (cplus_language_data): Likewise.
2486 (asm_language_data): Likewise.
2487 (minimal_language_data): Likewise.
2488 * d-lang.c (d_language_data): Likewise.
2489 * f-lang.c (f_language_data): Likewise.
2490 * go-lang.c (go_language_data): Likewise.
2491 * language.c (unknown_language_data): Likewise.
2492 (auto_language_data): Likewise.
2493 * language.h (language_data): Delete la_post_parser field.
2494 (language_defn::post_parser): New member function.
2495 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
2496 * objc-lang.c (objc_language_data): Likewise.
2497 * opencl-lang.c (opencl_language_data): Likewise.
2498 * p-lang.c (pascal_language_data): Likewise.
2499 * parse.c (parse_exp_in_context): Update call to post_parser.
2500 (null_post_parser): Delete definition.
2501 * parser-defs.h (null_post_parser): Delete declaration.
2502 * rust-lang.c (rust_language_data): Delete la_post_parser
2503 initializer.
2504
2505 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2506
2507 * ada-lang.c (parse): Rename to ada_language::parser.
2508 (ada_language_data): Delete la_parser initializer.
2509 (ada_language::parser): New member function, implementation from
2510 parse.
2511 * c-lang.c (c_language_data): Delete la_parser initializer.
2512 (cplus_language_data): Likewise.
2513 (asm_language_data): Likewise.
2514 (minimal_language_data): Likewise.
2515 * d-lang.c (d_language_data): Likewise.
2516 (d_language::parser): New member function.
2517 * f-lang.c (f_language_data): Delete la_parser initializer.
2518 (f_language::parser): New member function.
2519 * go-lang.c (go_language_data): Delete la_parser initializer.
2520 (go_language::parser): New member function.
2521 * language.c (unk_lang_parser): Delete.
2522 (language_defn::parser): Define new member function.
2523 (unknown_language_data): Delete la_parser initializer.
2524 (unknown_language::parser): New member function.
2525 (auto_language_data): Delete la_parser initializer.
2526 (auto_language::parser): New member function.
2527 * language.h (language_data): Delete la_parser field.
2528 (language_defn::parser): Declare new member function.
2529 * m2-lang.c (m2_language_data): Delete la_parser initializer.
2530 (m2_language::parser): New member function.
2531 * objc-lang.c (objc_language_data): Delete la_parser initializer.
2532 * opencl-lang.c (opencl_language_data): Likewise.
2533 * p-lang.c (pascal_language_data): Likewise.
2534 (pascal_language::parser): New member function.
2535 * parse.c (parse_exp_in_context): Update call to parser.
2536 * rust-lang.c (rust_language_data): Delete la_parser initializer.
2537 (rust_language::parser): New member function.
2538
2539 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2540
2541 * top.c (print_gdb_configuration): Print --with-python-libdir
2542 configuration value.
2543
2544 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2545
2546 * NEWS: Mention change to the alias command.
2547
2548 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2549
2550 * cli/cli-cmds.c (lookup_cmd_for_default_args)
2551 (alias_command_completer)
2552 (make_alias_options_def_group): New functions.
2553 (alias_opts, alias_option_defs): New struct and array.
2554 (alias_usage_error): Update usage.
2555 (alias_command): Handles optional DEFAULT-ARGS... arguments.
2556 Use option framework.
2557 (_initialize_cli_cmds): Update alias command help.
2558 Update aliases command help.
2559 (show_user):
2560 Add NULL for new default_args lookup_cmd argument.
2561 (valid_command_p): Rename to validate_aliased_command.
2562 Add NULL for new default_args lookup_cmd argument. Verify that the
2563 aliased_command has no default args.
2564 * cli/cli-decode.c (help_cmd): Show aliases definitions.
2565 (lookup_cmd_1, lookup_cmd): New argument default_args.
2566 (add_alias_cmd):
2567 Add NULL for new default_args lookup_cmd argument.
2568 (print_help_for_command): Show default args under the layout
2569 alias some_alias = some_aliased_cmd some_alias_default_arg.
2570 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
2571 xfree default_args in destructor.
2572 * cli/cli-script.c (process_next_line, do_define_command):
2573 Add NULL for new default_args lookup_cmd argument.
2574 * command.h: Declare new default_args argument in lookup_cmd
2575 and lookup_cmd_1.
2576 * completer.c (complete_line_internal_1):
2577 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
2578 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
2579 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
2580 Likewise.
2581 * infcmd.c (_initialize_infcmd): Likewise.
2582 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
2583 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
2584 * python/py-param.c (add_setshow_generic): Likewise.
2585 * remote.c (_initialize_remote): Likewise.
2586 * top.c (execute_command): Prepend default_args if command has some.
2587 (set_verbose):
2588 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
2589 * tracepoint.c (validate_actionline, encode_actions_1):
2590 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
2591
2592 2020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2593
2594 * jit.c (jit_read_descriptor): Use bool as the return type.
2595 (jit_breakpoint_re_set_internal): Use bool as the return type.
2596 Invert the return value logic; return true if the jit breakpoint
2597 has been successfully initialized.
2598 (jit_inferior_init): Update the call to
2599 jit_breakpoint_re_set_internal.
2600
2601 2020-06-22 Pedro Alves <palves@redhat.com>
2602
2603 PR gdb/25939
2604 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
2605 Use the current inferior instead. Don't return
2606 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
2607 wait again.
2608 * sol-thread.c (sol_thread_target::wait): Don't reference
2609 inferior_ptid.
2610 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
2611 (sol_update_thread_list_callback): Use the current inferior's pid
2612 instead of inferior_ptid.
2613
2614 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2615
2616 * procfs.c: Cleanup many comments.
2617
2618 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
2619 (AFTER_WATCHFLAG): Replace by value.
2620
2621 (MAIN_PROC_NAME_FORMAT): Inline ...
2622 (create_procinfo): ... here.
2623
2624 (procfs_debug_inferior): Remove SYS_exec handling.
2625 (syscall_is_exec): Likewise.
2626 (procfs_set_exec_trap): Likewise.
2627
2628 (syscall_is_lwp_exit): Inline in callers.
2629 (syscall_is_exit): Likewise.
2630 (syscall_is_exec): Likewise.
2631 (syscall_is_lwp_create): Likewise.
2632
2633 (invalidate_cache): Remove #if 0 code.
2634
2635 (make_signal_thread_runnable): Remove.
2636 (procfs_target::resume): Remove #if 0 code.
2637
2638 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2639
2640 PR gdb/25939
2641 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
2642 call ...
2643 (procfs_target::create_inferior): ... here.
2644
2645 2020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2646
2647 * exec.c (validate_exec_file): Ensure the build-id is up to
2648 date by calling reopen_exec_file (that checks file timestamp
2649 to decide to re-read the file).
2650
2651 2020-06-18 Pedro Alves <palves@redhat.com>
2652
2653 PR gdb/25412
2654 * gdbthread.h (delete_thread, delete_thread_silent)
2655 (find_thread_ptid): Update comments.
2656 * thread.c (current_thread_): New global.
2657 (is_current_thread): Move higher, and reimplement.
2658 (inferior_thread): Reimplement.
2659 (set_thread_exited): Use bool. Add assertions.
2660 (add_thread_silent): Simplify thread-reuse handling by always
2661 calling delete_thread.
2662 (delete_thread): Remove intro comment.
2663 (find_thread_ptid): Skip exited threads.
2664 (switch_to_thread_no_regs): Write to current_thread_.
2665 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
2666 INFERIOR_PTID. Clear current_thread_.
2667
2668 2020-06-18 Pedro Alves <palves@redhat.com>
2669
2670 * aix-thread.c (pd_update): Use switch_to_thread.
2671
2672 2020-06-18 Pedro Alves <palves@redhat.com>
2673
2674 * ravenscar-thread.c (ravenscar_thread_target): Update.
2675 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
2676 (ravenscar_thread_target::add_active_thread): ... this. Don't
2677 set m_base_ptid here. Update to avoid referencing inferior_ptid.
2678 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
2679
2680 2020-06-18 Pedro Alves <palves@redhat.com>
2681
2682 * nat/windows-nat.c (current_windows_thread): Remove.
2683 * nat/windows-nat.h (current_windows_thread): Remove.
2684 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
2685 Adjust.
2686 (display_selectors): Adjust to fetch the current
2687 windows_thread_info based on inferior_ptid.
2688 (fake_create_process): No longer write to current_windows_thread.
2689 (windows_nat_target::get_windows_debug_event):
2690 Don't set inferior_ptid or current_windows_thread.
2691 (windows_nat_target::wait): Adjust to not rely on
2692 current_windows_thread.
2693 (do_initial_windows_stuff): Now a method of windows_nat_target.
2694 Switch to the last_ptid thread.
2695 (windows_nat_target::attach): Adjust.
2696 (windows_nat_target::detach): Use switch_to_no_thread instead of
2697 writing to inferior_ptid directly.
2698 (windows_nat_target::create_inferior): Adjust.
2699
2700 2020-06-18 Pedro Alves <palves@redhat.com>
2701
2702 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
2703
2704 2020-06-18 Pedro Alves <palves@redhat.com>
2705
2706 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
2707 after creating it, instead of writing to inferior_ptid. Don't
2708 write to inferior_ptid.
2709
2710 2020-06-18 Pedro Alves <palves@redhat.com>
2711
2712 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
2713
2714 2020-06-18 Pedro Alves <palves@redhat.com>
2715
2716 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
2717 it, instead of writing to inferior_ptid.
2718
2719 2020-06-18 Pedro Alves <palves@redhat.com>
2720
2721 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
2722 to inferior_ptid.
2723
2724 2020-06-18 Pedro Alves <palves@redhat.com>
2725
2726 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
2727 instead of writing to inferior_ptid directly.
2728
2729 2020-06-18 Pedro Alves <palves@redhat.com>
2730
2731 * corelow.c (core_target::close): Use switch_to_no_thread instead
2732 of writing to inferior_ptid directly.
2733 (add_to_thread_list, core_target_open): Use switch_to_thread
2734 instead of writing to inferior_ptid directly.
2735
2736 2020-06-18 Pedro Alves <palves@redhat.com>
2737
2738 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
2739 inferior_ptid.
2740 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
2741 inferior_ptid.
2742 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
2743 inferior_ptid directly.
2744 (darwin_nat_target::init_thread_list): Switch to thread, instead
2745 of writing to inferior_ptid.
2746 (darwin_nat_target::attach): Don't write to inferior_ptid.
2747 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
2748
2749 2020-06-18 Pedro Alves <palves@redhat.com>
2750
2751 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
2752 thread.
2753 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
2754 Instead use switch_to_thread.
2755 (gnu_nat_target::detach): Use switch_to_no_thread
2756 instead of writing to inferior_ptid directly. Used passed-in
2757 inferior instead of looking up the inferior by pid.
2758
2759 2020-06-18 Pedro Alves <palves@redhat.com>
2760
2761 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
2762 inferior_ptid.
2763
2764 2020-06-18 Pedro Alves <palves@redhat.com>
2765
2766 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
2767 inferior_ptid.
2768 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
2769 thread.
2770 (nto_procfs_target::detach): Avoid referencing
2771 inferior_ptid. Use switch_to_no_thread instead of writing to
2772 inferior_ptid directly.
2773 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
2774 instead of writing to inferior_ptid directly.
2775 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
2776 to thread.
2777
2778 2020-06-18 Pedro Alves <palves@redhat.com>
2779
2780 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
2781 after creating it, instead of writing to inferior_ptid.
2782 (gdbsim_target_open): Use switch_to_no_thread instead of writing
2783 to inferior_ptid directly.
2784 (gdbsim_target::wait): Don't write to inferior_ptid.
2785
2786 2020-06-18 Pedro Alves <palves@redhat.com>
2787
2788 * remote.c (remote_target::remote_notice_new_inferior): Use
2789 switch_to_thread instead of writing to inferior_ptid directly.
2790 (remote_target::add_current_inferior_and_thread): Use
2791 switch_to_no_thread instead of writing to inferior_ptid directly.
2792 (extended_remote_target::attach): Use switch_to_inferior_no_thread
2793 and switch_to_thread instead of using set_current_inferior or
2794 writing to inferior_ptid directly.
2795
2796 2020-06-18 Pedro Alves <palves@redhat.com>
2797
2798 * tracectf.c (ctf_target_open): Switch to added thread instead of
2799 writing to inferior_ptid directly.
2800 (ctf_target::close): Use switch_to_no_thread instead of writing to
2801 inferior_ptid directly.
2802
2803 2020-06-18 Pedro Alves <palves@redhat.com>
2804
2805 * tracefile-tfile.c (tfile_target_open): Don't write to
2806 inferior_ptid directly, instead switch to added thread.
2807 (tfile_target::close): Use switch_to_no_thread instead of writing
2808 to inferior_ptid directly.
2809
2810 2020-06-18 Pedro Alves <palves@redhat.com>
2811
2812 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
2813 (procfs_target::detach): Use switch_to_no_thread
2814 instead of writing to inferior_ptid directly.
2815 (do_attach): Change return type to void. Switch to the added
2816 thread.
2817 (procfs_target::create_inferior): Switch to the added thread.
2818 (procfs_do_thread_registers): Don't write to inferior_ptid.
2819
2820 2020-06-18 Pedro Alves <palves@redhat.com>
2821
2822 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
2823 of writing to inferior_ptid.
2824 (scoped_restore_exited_inferior): Delete.
2825 (handle_vfork_child_exec_or_exit): Simplify using
2826 scoped_restore_current_pspace_and_thread. Use switch_to_thread
2827 instead of writing to inferior_ptid.
2828 (THREAD_STOPPED_BY): Delete.
2829 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
2830 (thread_stopped_by_hw_breakpoint): Delete.
2831 (save_waitstatus): Use
2832 scoped_restore_current_thread+switch_to_thread, and call
2833 target_stopped_by_watchpoint instead of
2834 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
2835 instead of thread_stopped_by_sw_breakpoint, and
2836 target_stopped_by_hw_breakpoint instead of
2837 thread_stopped_by_hw_breakpoint.
2838 (handle_inferior_event)
2839 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
2840 inferior_ptid directly, nor
2841 set_current_inferior/set_current_program_space. Use
2842 switch_to_thread / switch_to_inferior_no_thread instead.
2843
2844 2020-06-18 Pedro Alves <palves@redhat.com>
2845
2846 * target.c (generic_mourn_inferior): Use switch_to_no_thread
2847 instead of writing to inferior_ptid.
2848
2849 2020-06-18 Pedro Alves <palves@redhat.com>
2850
2851 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
2852 added thread.
2853 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
2854 to the added thread.
2855 (inf_ptrace_target::detach_success): Use switch_to_no_thread
2856 instead of writing to inferior_ptid.
2857
2858 2020-06-18 Pedro Alves <palves@redhat.com>
2859
2860 * gdbarch-selftests.c: Include "progspace-and-thread.h".
2861 (register_to_value_test): Mock a program_space too. Heap-allocate
2862 the address space. Don't write to inferior_ptid. Use
2863 switch_to_thread instead.
2864
2865 2020-06-18 Pedro Alves <palves@redhat.com>
2866
2867 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
2868 Delete.
2869 (find_signalled_thread()): New, factored out from
2870 linux_make_corefile_notes and adjusted to handle exited threads.
2871 (linux_make_corefile_notes): Adjust to use the new
2872 find_signalled_thread.
2873
2874 2020-06-18 Pedro Alves <palves@redhat.com>
2875
2876 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
2877 of saving/restoring inferior_ptid.
2878
2879 2020-06-17 Tom Tromey <tom@tromey.com>
2880
2881 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
2882 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
2883 declare.
2884 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
2885
2886 2020-06-15 Simon Marchi <simon.marchi@efficios.com>
2887
2888 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
2889 of partial symtabs.
2890
2891 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
2892
2893 * regformats/reg-arm.dat: Remove.
2894 * regformats/reg-bfin.dat: Remove.
2895 * regformats/reg-cris.dat: Remove.
2896 * regformats/reg-crisv32.dat: Remove.
2897 * regformats/reg-m32r.dat: Remove.
2898 * regformats/reg-tilegx.dat: Remove.
2899 * regformats/reg-tilegx32.dat: Remove.
2900
2901 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
2902
2903 * features/Makefile (WHICH): Remove arm files.
2904 * regformats/arm/arm-with-iwmmxt.dat: Remove.
2905 * regformats/arm/arm-with-neon.dat: Remove.
2906 * regformats/arm/arm-with-vfpv2.dat: Remove.
2907 * regformats/arm/arm-with-vfpv3.dat: Remove.
2908
2909 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
2910
2911 * features/Makefile (XMLTOC): Remove rx.xml.
2912
2913 2020-06-17 Pedro Alves <palves@redhat.com>
2914
2915 * gdbthread.h (thread_control_state) <trap_expected> Update
2916 comments.
2917
2918 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2919
2920 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
2921 ada_language::lookup_symbol_nonlocal.
2922 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
2923 (ada_language::lookup_symbol_nonlocal): New member function,
2924 implementation from ada_lookup_symbol_nonlocal.
2925 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
2926 initializer.
2927 (cplus_language_data): Delete la_lookup_symbol_nonlocal
2928 initializer.
2929 (cplus_language::lookup_symbol_nonlocal): New member function.
2930 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
2931 (minimal_language_data) Likewise.
2932 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
2933 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
2934 initializer.
2935 (d_language::lookup_symbol_nonlocal): New member function.
2936 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
2937 initializer.
2938 (f_language::lookup_symbol_nonlocal): New member function.
2939 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
2940 initializer.
2941 * language.c (unknown_language_data): Likewise.
2942 (auto_language_data): Likewise.
2943 * language.h (language_data): Delete la_lookup_symbol_nonlocal
2944 field.
2945 (language_defn::lookup_symbol_nonlocal): New member function.
2946 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
2947 initializer.
2948 * objc-lang.c (objc_language_data): Likewise.
2949 * opencl-lang.c (opencl_language_data): Likewise.
2950 * p-lang.c (pascal_language_data): Likewise.
2951 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
2952 rust_language::lookup_symbol_nonlocal.
2953 (rust_language_data): Delete la_lookup_symbol_nonlocal
2954 initializer.
2955 (rust_language::lookup_symbol_nonlocal): New member function,
2956 implementation from rust_lookup_symbol_nonlocal.
2957 * symtab.c (lookup_symbol_aux): Update call to
2958 lookup_symbol_nonlocal.
2959 (basic_lookup_symbol_nonlocal): Rename to...
2960 (language_defn::lookup_symbol_nonlocal): ...this, and update
2961 header comment. Remove language_defn parameter, and replace with
2962 uses of `this'.
2963 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
2964
2965 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2966
2967 * ada-lang.c (ada_language_data): Delete la_value_print_inner
2968 initializer.
2969 (ada_language::value_print_inner): New member function.
2970 * c-lang.c (c_language_data): Delete la_value_print_inner
2971 initializer.
2972 (cplus_language_data): Likewise.
2973 (asm_language_data): Likewise.
2974 (minimal_language_data): Likewise.
2975 * d-lang.c (d_language_data): Likewise.
2976 (d_language::value_print_inner): New member function.
2977 * f-lang.c (f_language_data): Delete la_value_print_inner
2978 initializer.
2979 (f_language::value_print_inner): New member function.
2980 * f-lang.h (f_value_print_innner): Rename to...
2981 (f_value_print_inner): ...this (note spelling of 'inner').
2982 * f-valprint.c (f_value_print_innner): Rename to...
2983 (f_value_print_inner): ...this (note spelling of 'inner').
2984 * go-lang.c (go_language_data): Delete la_value_print_inner
2985 initializer.
2986 (go_language::value_print_inner): New member function.
2987 * language.c (language_defn::value_print_inner): Define new member
2988 function.
2989 (unk_lang_value_print_inner): Delete.
2990 (unknown_language_data): Delete la_value_print_inner initializer.
2991 (unknown_language::value_print_inner): New member function.
2992 (auto_language_data): Delete la_value_print_inner initializer.
2993 (auto_language::value_print_inner): New member function.
2994 * language.h (language_data): Delete la_value_print_inner field.
2995 (language_defn::value_print_inner): Delcare new member function.
2996 * m2-lang.c (m2_language_data): Delete la_value_print_inner
2997 initializer.
2998 (m2_language::value_print_inner): New member function.
2999 * objc-lang.c (objc_language_data): Delete la_value_print_inner
3000 initializer.
3001 * opencl-lang.c (opencl_language_data): Likewise.
3002 * p-lang.c (pascal_language_data): Likewise.
3003 (pascal_language::value_print_inner): New member function.
3004 * rust-lang.c (rust_language_data): Delete la_value_print_inner
3005 initializer.
3006 (rust_language::value_print_inner): New member function.
3007 * valprint.c (do_val_print): Update call to value_print_inner.
3008
3009 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3010
3011 * ada-lang.c (ada_language_data): Delete la_value_print
3012 initializer.
3013 (ada_language::value_print): New member function.
3014 * c-lang.c (c_language_data): Delete la_value_print initializer.
3015 (cplus_language_data): Likewise.
3016 (asm_language_data): Likewise.
3017 (minimal_language_data): Likewise.
3018 * d-lang.c (d_language_data): Likewise.
3019 * f-lang.c (f_language_data): Likewise.
3020 * go-lang.c (go_language_data): Likewise.
3021 * language.c (unk_lang_value_print): Delete.
3022 (language_defn::value_print): Define new member function.
3023 (unknown_language_data): Delete la_value_print initializer.
3024 (unknown_language::value_print): New member function.
3025 (auto_language_data): Delete la_value_print initializer.
3026 (auto_language::value_print): New member function.
3027 * language.h (language_data): Delete la_value_print field.
3028 (language_defn::value_print): Declare new member function.
3029 (LA_VALUE_PRINT): Update call to value_print.
3030 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
3031 * objc-lang.c (objc_language_data): Likewise.
3032 * opencl-lang.c (opencl_language_data): Likewise.
3033 * p-lang.c (pascal_language_data): Likewise.
3034 (pascal_language::value_print): New member function.
3035 * rust-lang.c (rust_language_data): Delete la_value_print
3036 initializer.
3037
3038 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3039
3040 * ada-lang.c (ada_watch_location_expression): Rename to
3041 ada_language::watch_location_expression.
3042 (ada_language_data): Delete la_watch_location_expression
3043 initializer.
3044 (ada_language::watch_location_expression): New member function,
3045 implementation from ada_watch_location_expression.
3046 * breakpoint.c (watch_command_1): Update call to
3047 watch_location_expression.
3048 * c-lang.c (c_watch_location_expression): Rename to
3049 language_defn::watch_location_expression.
3050 (c_language_data): Delete la_watch_location_expression
3051 initializer.
3052 (cplus_language_data): Likewise.
3053 (asm_language_data): Likewise.
3054 (minimal_language_data): Likewise.
3055 * c-lang.h (c_watch_location_expression): Delete declaration.
3056 * d-lang.c (d_language_data): Delete la_watch_location_expression
3057 initializer.
3058 * f-lang.c (f_language_data): Likewise.
3059 * go-lang.c (go_language_data): Likewise.
3060 * language.c (language_defn::watch_location_expression): Member
3061 function implementation from c_watch_location_expression.
3062 (unknown_language_data): Delete la_watch_location_expression
3063 initializer.
3064 (auto_language_data): Likewise.
3065 * language.h (language_data): Delete la_watch_location_expression
3066 field.
3067 (language_defn::watch_location_expression): Declare new member
3068 function.
3069 * m2-lang.c (m2_language_data): Delete
3070 la_watch_location_expression initializer.
3071 * objc-lang.c (objc_language_data): Likewise.
3072 * opencl-lang.c (opencl_language_data): Likewise.
3073 * p-lang.c (pascal_language_data): Likewise.
3074 * rust-lang.c (rust_watch_location_expression): Rename to
3075 rust_language::watch_location_expression.
3076 (rust_language_data): Delete la_watch_location_expression
3077 initializer.
3078 (rust_language::watch_location_expression): New member function,
3079 implementation from rust_watch_location_expression.
3080
3081 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3082
3083 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
3084 ada_language::collect_symbol_completion_matches.
3085 (ada_language_data): Delete la_collect_symbol_completion_matches
3086 initializer.
3087 (ada_language::collect_symbol_completion_matches): New member
3088 function, implementation from
3089 ada_collect_symbol_completion_matches.
3090 * c-lang.c (c_language_data): Delete
3091 la_collect_symbol_completion_matches initializer.
3092 (cplus_language_data): Likewise.
3093 (asm_language_data): Likewise.
3094 (minimal_language_data): Likewise.
3095 * d-lang.c (d_language_data): Likewise.
3096 * f-lang.c (f_collect_symbol_completion_matches): Rename to
3097 f_language::collect_symbol_completion_matches.
3098 (f_language_data): Delete la_collect_symbol_completion_matches
3099 initializer.
3100 (f_language::collect_symbol_completion_matches) New member
3101 function, implementation from f_collect_symbol_completion_matches.
3102 * go-lang.c (go_language_data): Delete
3103 la_collect_symbol_completion_matches initializer.
3104 * language.c (unknown_language_data): Likewise.
3105 (auto_language_data): Likewise.
3106 * language.h (language_data): Delete
3107 la_collect_symbol_completion_matches field.
3108 (language_defn::collect_symbol_completion_matches): New member
3109 function.
3110 * m2-lang.c (m2_language_data): Delete
3111 la_collect_symbol_completion_matches initializer.
3112 * objc-lang.c (objc_language_data): Likewise.
3113 * opencl-lang.c (opencl_language_data): Likewise.
3114 * p-lang.c (pascal_language_data): Likewise.
3115 * rust-lang.c (rust_language_data): Likewise.
3116 * symtab.c (default_collect_symbol_completion_matches): Delete.
3117 (collect_symbol_completion_matches): Update call to
3118 collect_symbol_completion_matches.
3119 (collect_symbol_completion_matches_type): Likewise.
3120 * symtab.h (default_collect_symbol_completion_matches): Delete
3121 declaration.
3122
3123 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3124
3125 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
3126 (ada_language_data): Delete la_word_break_characters initializer.
3127 (ada_language::word_break_characters): New member function.
3128 * c-lang.c (c_language_data): Delete la_word_break_characters
3129 initializer.
3130 (cplus_language_data): Likewise.
3131 (asm_language_data): Likewise.
3132 (minimal_language_data): Likewise.
3133 * completer.c: Update global comment.
3134 (advance_to_expression_complete_word_point): Update call to
3135 word_break_characters.
3136 (complete_files_symbols): Likewise.
3137 (complete_line_internal_1): Likewise.
3138 (default_completer_handle_brkchars): Likewise.
3139 (skip_quoted_chars): Likewise.
3140 * d-lang.c (d_language_data): Delete la_word_break_characters
3141 initializer.
3142 * f-lang.c (f_word_break_characters): Delete.
3143 (f_language_data): Delete la_word_break_characters initializer.
3144 (f_language::word_break_characters): New member function.
3145 * go-lang.c (go_language_data): Delete la_word_break_characters
3146 initializer.
3147 * language.c (unknown_language_data): Likewise.
3148 (auto_language_data): Likewise.
3149 * language.h (default_word_break_characters): Move declaration to
3150 earlier in the file.
3151 (language_data): Delete la_word_break_characters field.
3152 (language_defn::word_break_characters): New member function.
3153 * m2-lang.c (m2_language_data): Delete la_word_break_characters
3154 initializer.
3155 * objc-lang.c (objc_language_data): Likewise.
3156 * opencl-lang.c (opencl_language_data): Likewise.
3157 * p-lang.c (pascal_language_data): Likewise.
3158 * rust-lang.c (rust_language_data): Likewise.
3159
3160 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3161
3162 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
3163 (ada_language_data): Delete la_get_symbol_name_matcher
3164 initializer.
3165 (language_defn::get_symbol_name_matcher_inner): New member
3166 function.
3167 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
3168 initializer.
3169 (cplus_language_data): Likewise.
3170 (cplus_language::get_symbol_name_matcher_inner): New member
3171 function.
3172 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
3173 (minimal_language_data): Likewise.
3174 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
3175 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
3176 initializer.
3177 * dictionary.c (iter_match_first_hashed): Update call to
3178 get_symbol_name_matcher.
3179 (iter_match_next_hashed): Likewise.
3180 (iter_match_next_linear): Likewise.
3181 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
3182 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
3183 initializer.
3184 (f_language::get_symbol_name_matcher_inner): New member function.
3185 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
3186 initializer.
3187 * language.c (default_symbol_name_matcher): Update header comment,
3188 make static.
3189 (language_defn::get_symbol_name_matcher): New definition.
3190 (language_defn::get_symbol_name_matcher_inner): Likewise.
3191 (get_symbol_name_matcher): Delete.
3192 (unknown_language_data): Delete la_get_symbol_name_matcher
3193 initializer.
3194 (auto_language_data): Likewise.
3195 * language.h (language_data): Delete la_get_symbol_name_matcher
3196 field.
3197 (language_defn::get_symbol_name_matcher): New member function.
3198 (language_defn::get_symbol_name_matcher_inner): Likewise.
3199 (default_symbol_name_matcher): Delete declaration.
3200 * linespec.c (find_methods): Update call to
3201 get_symbol_name_matcher.
3202 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
3203 initializer.
3204 * minsyms.c (lookup_minimal_symbol): Update call to
3205 get_symbol_name_matcher.
3206 (iterate_over_minimal_symbols): Likewise.
3207 * objc-lang.c (objc_language_data): Delete
3208 la_get_symbol_name_matcher initializer.
3209 * opencl-lang.c (opencl_language_data): Likewise.
3210 * p-lang.c (pascal_language_data): Likewise.
3211 * psymtab.c (psymbol_name_matches): Update call to
3212 get_symbol_name_matcher.
3213 * rust-lang.c (rust_language_data): Delete
3214 la_get_symbol_name_matcher initializer.
3215 * symtab.c (symbol_matches_search_name): Update call to
3216 get_symbol_name_matcher.
3217 (compare_symbol_name): Likewise.
3218
3219 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3220
3221 * ada-lang.c (ada_language_data): Delete la_compute_program
3222 initializer.
3223 * c-lang.c (c_language_data): Likewise.
3224 (c_language::compute_program): New member function.
3225 (cplus_language_data): Delete la_compute_program initializer.
3226 (cplus_language::compute_program): New member function.
3227 (asm_language_data): Delete la_compute_program initializer.
3228 (minimal_language_data): Likewise.
3229 * c-lang.h (c_compute_program): Update comment.
3230 (cplus_compute_program): Likewise.
3231 * compile/compile-c-support.c (c_compute_program): Likewise.
3232 (cplus_compute_program): Likewise.
3233 * compile/compile.c (compile_to_object): Update call to
3234 la_compute_program.
3235 * d-lang.c (d_language_data): Delete la_compute_program
3236 initializer.
3237 * f-lang.c (f_language_data): Likewise.
3238 * go-lang.c (go_language_data): Likewise.
3239 * language.c (unknown_language_data): Likewise.
3240 (auto_language_data): Likewise.
3241 * language.h (language_data): Delete la_compute_program field.
3242 (language_defn::compute_program): New member function.
3243 * m2-lang.c (m2_language_data): Delete la_compute_program
3244 initializer.
3245 * objc-lang.c (objc_language_data): Likewise.
3246 * opencl-lang.c (opencl_language_data): Likewise.
3247 * p-lang.c (pascal_language_data): Likewise.
3248 * rust-lang.c (rust_language_data): Likewise.
3249
3250 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3251
3252 * ada-lang.c (ada_language_data) Delete
3253 la_class_name_from_physname initializer.
3254 * c-lang.c (c_language_data): Likewise.
3255 (cplus_language_data): Likewise.
3256 (cplus_language::class_name_from_physname): New member function.
3257 (asm_language_data): Delete la_class_name_from_physname
3258 initializer.
3259 (minimal_language_data): Likewise.
3260 * d-lang.c (d_language_data): Likewise.
3261 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
3262 method on language_defn class.
3263 (guess_full_die_structure_name): Likewise.
3264 * f-lang.c (f_language_data): Delete la_class_name_from_physname
3265 initializer.
3266 * go-lang.c (go_language_data): Likewise.
3267 * language.c (language_class_name_from_physname): Delete.
3268 (unk_lang_class_name): Delete.
3269 (unknown_language_data): Delete la_class_name_from_physname
3270 initializer.
3271 (auto_language_data): Likewise.
3272 * language.h (language_data): Delete la_class_name_from_physname
3273 field.
3274 (language_defn::class_name_from_physname): New function.
3275 (language_class_name_from_physname): Delete declaration.
3276 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
3277 initializer.
3278 * objc-lang.c (objc_language_data): Likewise.
3279 * opencl-lang.c (opencl_language_data): Likewise.
3280 * p-lang.c (pascal_language_data): Likewise.
3281 * rust-lang.c (rust_language_data): Likewise.
3282
3283 2020-06-16 Tom Tromey <tom@tromey.com>
3284
3285 * tui/tui-data.h (STATUS_NAME): New macro.
3286 * tui/tui-layout.c (tui_remove_some_windows)
3287 (initialize_known_windows, tui_register_window)
3288 (tui_layout_split::remove_windows, initialize_layouts)
3289 (tui_new_layout_command): Don't use hard-coded window names.
3290
3291 2020-06-16 Tom Tromey <tom@tromey.com>
3292
3293 PR tui/25348:
3294 * tui/tui.c (tui_ensure_readline_initialized): Rename from
3295 tui_initialize_readline. Only run once. Call rl_initialize.
3296 * tui/tui.h (tui_ensure_readline_initialized): Rename from
3297 tui_initialize_readline.
3298 * tui/tui-io.c (tui_setup_io): Call
3299 tui_ensure_readline_initialized.
3300 * tui/tui-interp.c (tui_interp::init): Update.
3301
3302 2020-06-16 Tom Tromey <tom@tromey.com>
3303
3304 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
3305 Also preserve the status window.
3306
3307 2020-06-16 Tom Tromey <tom@tromey.com>
3308
3309 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
3310 where m_window==nullptr.
3311
3312 2020-06-15 Tom Tromey <tromey@adacore.com>
3313
3314 * windows-nat.c (windows_nat::handle_output_debug_string):
3315 Update.
3316 (windows_nat::handle_ms_vc_exception): Update.
3317 * target.h (target_read_string): Change API.
3318 * target.c (target_read_string): Change API.
3319 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
3320 Update.
3321 * solib-frv.c (frv_current_sos): Update.
3322 * solib-dsbt.c (dsbt_current_sos): Update.
3323 * solib-darwin.c (darwin_current_sos): Update.
3324 * linux-thread-db.c (inferior_has_bug): Update.
3325 * expprint.c (print_subexp_standard): Update.
3326 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
3327 (ada_exception_message_1): Update.
3328
3329 2020-06-15 Tom Tromey <tromey@adacore.com>
3330
3331 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
3332
3333 2020-06-15 Tom Tromey <tromey@adacore.com>
3334
3335 * valprint.c (read_string): Update comment.
3336 * target.c (MIN): Remove.
3337 (target_read_string): Rewrite.
3338
3339 2020-06-15 Tom Tromey <tromey@adacore.com>
3340
3341 * corefile.c (read_memory_string): Remove.
3342 * ada-valprint.c (ada_value_print_ptr): Update.
3343 * ada-lang.h (ada_tag_name): Change return type.
3344 * ada-lang.c (type_from_tag): Update.
3345 (ada_tag_name_from_tsd): Change return type. Use
3346 target_read_string.
3347 (ada_tag_name): Likewise.
3348 * gdbcore.h (read_memory_string): Don't declare.
3349
3350 2020-06-14 Hannes Domani <ssbssa@yahoo.de>
3351
3352 * symtab.c (rbreak_command): Ignore Windows drive colon.
3353
3354 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
3355
3356 * NEWS: Mention removed GDBserver host support.
3357
3358 2020-06-12 Nelson Chu <nelson.chu@sifive.com>
3359
3360 * features/riscv/rebuild-csr-xml.sh: Updated.
3361
3362 2020-06-11 Tom Tromey <tom@tromey.com>
3363
3364 PR gdb/18318:
3365 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
3366
3367 2020-06-09 Jonny Grant <jg@jguk.org>
3368 2020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
3369
3370 * main.c (captured_main_1): Don't print new line after help.
3371 (print_gdb_help): add mailing list and IRC channel information
3372 to --help. Add new lines between items in the footer. Remove
3373 quotes around bug url.
3374
3375 2020-06-11 Keith Seitz <keiths@redhat.com>
3376
3377 PR gdb/21356
3378 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
3379 Resolve typedefs for type length calculations.
3380
3381 2020-06-10 Tom de Vries <tdevries@suse.de>
3382
3383 PR ada/24713
3384 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
3385 (write_psymbols): Enable .gdb_index for ada.
3386 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
3387 ada.
3388
3389 2020-06-10 Tom de Vries <tdevries@suse.de>
3390
3391 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
3392 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
3393 namei" instead of "const char *name" argument.
3394 (dw2_map_matching_symbols): Use "offset_type namei" variant of
3395 dw2_symtab_iter_init.
3396
3397 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
3398
3399 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
3400 to use type::field and field::type instead.
3401
3402 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
3403
3404 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
3405 to use field::type instead.
3406
3407 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
3408
3409 * gdbtypes.h (struct field) <type, set_type>: New methods.
3410 Rename `type` field to...
3411 <m_type>: ... this. Change references throughout to use type or
3412 set_type methods.
3413 (FIELD_TYPE): Use field::type. Change call sites that modify
3414 the field's type to use field::set_type instead.
3415
3416 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
3417
3418 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
3419 to use type::index_type instead.
3420
3421 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
3422
3423 * gdbtypes.h (struct type) <index_type, set_index_type>: New
3424 methods.
3425 (TYPE_INDEX_TYPE): Use type::index_type.
3426 * gdbtypes.c (create_array_type_with_stride): Likewise.
3427
3428 2020-06-07 Tom Tromey <tom@tromey.com>
3429
3430 * valprint.c (generic_val_print_float): Remove "embedded_offset"
3431 parameter.
3432 (generic_value_print): Update.
3433
3434 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
3435
3436 Revert commit 982a38f60b0.
3437 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
3438
3439 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
3440
3441 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
3442 avoid use after free.
3443
3444 2020-06-05 Tom de Vries <tdevries@suse.de>
3445
3446 * NEWS: Fix typos.
3447
3448 2020-06-04 Simon Marchi <simon.marchi@efficios.com>
3449
3450 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
3451 the per_bfd object.
3452 (dwarf2_read_debug_names): Likewise.
3453 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
3454 object when re-using a per_bfd object with an index.
3455
3456 2020-06-03 Tom de Vries <tdevries@suse.de>
3457
3458 PR symtab/26046
3459 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
3460 children for C++.
3461 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
3462 DW_TAG_subprogram.
3463
3464 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3465
3466 * ada-lang.c (ada_language_data): Delete skip_trampoline
3467 initializer.
3468 * c-lang.c (c_language_data): Likewise.
3469 (cplus_language_data): Likewise.
3470 (cplus_language::skip_trampoline): New member function.
3471 (asm_language_data): Delete skip_trampoline initializer.
3472 (minimal_language_data): Likewise.
3473 * d-lang.c (d_language_data): Likewise.
3474 * f-lang.c (f_language_data): Likewise.
3475 * go-lang.c (go_language_data): Likewise.
3476 * language.c (unk_lang_trampoline): Delete function.
3477 (skip_language_trampoline): Update.
3478 (unknown_language_data): Delete skip_trampoline initializer.
3479 (auto_language_data): Likewise.
3480 * language.h (language_data): Delete skip_trampoline field.
3481 (language_defn::skip_trampoline): New function.
3482 * m2-lang.c (m2_language_data): Delete skip_trampoline
3483 initializer.
3484 * objc-lang.c (objc_skip_trampoline): Delete function, move
3485 implementation to objc_language::skip_trampoline.
3486 (objc_language_data): Delete skip_trampoline initializer.
3487 (objc_language::skip_trampoline): New member function with
3488 implementation from objc_skip_trampoline.
3489 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
3490 initializer.
3491 * p-lang.c (pascal_language_data): Likewise.
3492 * rust-lang.c (rust_language_data): Likewise.
3493
3494 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3495
3496 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
3497 (ada_language::demangle): New member function.
3498 * c-lang.c (c_language_data): Delete la_demangle initializer.
3499 (cplus_language_data): Delete la_demangle initializer.
3500 (cplus_language::demangle): New member function.
3501 (asm_language_data): Delete la_demangle initializer.
3502 (minimal_language_data): Delete la_demangle initializer.
3503 * d-lang.c (d_language_data): Delete la_demangle initializer.
3504 (d_language::demangle): New member function.
3505 * f-lang.c (f_language_data): Delete la_demangle initializer.
3506 (f_language::demangle): New member function.
3507 * go-lang.c (go_language_data): Delete la_demangle initializer.
3508 (go_language::demangle): New member function.
3509 * language.c (language_demangle): Update.
3510 (unk_lang_demangle): Delete.
3511 (unknown_language_data): Delete la_demangle initializer.
3512 (unknown_language::demangle): New member function.
3513 (auto_language_data): Delete la_demangle initializer.
3514 (auto_language::demangle): New member function.
3515 * language.h (language_data): Delete la_demangle field.
3516 (language_defn::demangle): New function.
3517 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
3518 * objc-lang.c (objc_language_data): Delete la_demangle
3519 initializer.
3520 (objc_language::demangle): New member function.
3521 * opencl-lang.c (opencl_language_data): Delete la_demangle
3522 initializer.
3523 * p-lang.c (pascal_language_data): Likewise.
3524 * rust-lang.c (rust_language_data): Likewise.
3525 (rust_language::demangle): New member function.
3526
3527 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3528
3529 * ada-lang.c (ada_language_data): Delete la_print_type
3530 initializer.
3531 (ada_language::print_type): New member function.
3532 * c-lang.c (c_language_data): Delete la_print_type initializer.
3533 (c_language::print_type): New member function.
3534 (cplus_language_data): Delete la_print_type initializer.
3535 (cplus_language::print_type): New member function.
3536 (asm_language_data): Delete la_print_type initializer.
3537 (asm_language::print_type): New member function.
3538 (minimal_language_data): Delete la_print_type initializer.
3539 (minimal_language::print_type): New member function.
3540 * d-lang.c (d_language_data): Delete la_print_type initializer.
3541 (d_language::print_type): New member function.
3542 * f-lang.c (f_language_data): Delete la_print_type initializer.
3543 (f_language::print_type): New member function.
3544 * go-lang.c (go_language_data): Delete la_print_type initializer.
3545 (go_language::print_type): New member function.
3546 * language.c (unk_lang_print_type): Delete.
3547 (unknown_language_data): Delete la_print_type initializer.
3548 (unknown_language::print_type): New member function.
3549 (auto_language_data): Delete la_print_type initializer.
3550 (auto_language::print_type): New member function.
3551 * language.h (language_data): Delete la_print_type field.
3552 (language_defn::print_type): New function.
3553 (LA_PRINT_TYPE): Update.
3554 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
3555 (m2_language::print_type): New member function.
3556 * objc-lang.c (objc_language_data): Delete la_print_type
3557 initializer.
3558 (objc_language::print_type): New member function.
3559 * opencl-lang.c (opencl_print_type): Delete, implementation moved
3560 to opencl_language::print_type.
3561 (opencl_language_data): Delete la_print_type initializer.
3562 (opencl_language::print_type): New member function, implementation
3563 from opencl_print_type.
3564 * p-lang.c (pascal_language_data): Delete la_print_type
3565 initializer.
3566 (pascal_language::print_type): New member function.
3567 * rust-lang.c (rust_print_type): Delete, implementation moved to
3568 rust_language::print_type.
3569 (rust_language_data): Delete la_print_type initializer.
3570 (rust_language::print_type): New member function, implementation
3571 from rust_print_type.
3572
3573 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3574
3575 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
3576 implementation moves to...
3577 (ada_language::sniff_from_mangled_name): ...here. Update return
3578 type.
3579 (ada_language_data): Delete la_sniff_from_mangled_name
3580 initializer.
3581 * c-lang.c (c_language_data): Likewise.
3582 (cplus_language_data): Likewise.
3583 (cplus_language::sniff_from_mangled_name): New member function,
3584 implementation taken from gdb_sniff_from_mangled_name.
3585 (asm_language_data): Delete la_sniff_from_mangled_name
3586 initializer.
3587 (minimal_language_data): Likewise.
3588 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
3589 implementation moves to cplus_language::sniff_from_mangled_name.
3590 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
3591 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
3592 moves to...
3593 (d_language::sniff_from_mangled_name): ...here.
3594 (d_language_data): Delete la_sniff_from_mangled_name initializer.
3595 * f-lang.c (f_language_data): Likewise.
3596 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
3597 moves to...
3598 (go_language::sniff_from_mangled_name): ...here.
3599 (go_language_data): Delete la_sniff_from_mangled_name initializer.
3600 * language.c (language_sniff_from_mangled_name): Delete.
3601 (unknown_language_data): Delete la_sniff_from_mangled_name
3602 initializer.
3603 (auto_language_data): Likewise.
3604 * language.h (language_data): Delete la_sniff_from_mangled_name
3605 field.
3606 (language_defn::sniff_from_mangled_name): New function.
3607 (language_sniff_from_mangled_name): Delete declaration.
3608 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
3609 field.
3610 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
3611 implementation moves to...
3612 (objc_language::sniff_from_mangled_name): ...here.
3613 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
3614 * opencl-lang.c (opencl_language_data): Likewise.
3615 * p-lang.c (pascal_language_data): Likewise.
3616 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
3617 implementation moves to...
3618 (rust_language::sniff_from_mangled_name): ...here.
3619 (rust_language_data): Delete la_sniff_from_mangled_name
3620 initializer.
3621 * symtab.c (symbol_find_demangled_name): Call
3622 sniff_from_mangled_name member function.
3623
3624 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3625
3626 * ada-lang.c (ada_language_data): Delete la_search_name_hash
3627 initializer.
3628 * c-lang.c (c_language_data): Likewise.
3629 (cplus_language_data): Likewise.
3630 (cplus_language::search_name_hash): New member function.
3631 (asm_language_data): Delete la_search_name_hash initializer.
3632 (minimal_language_data): Likewise.
3633 * d-lang.c (d_language_data): Likewise.
3634 * dictionary.c (default_search_name_hash): Rename to...
3635 (language_defn::search_name_hash): ...this.
3636 * f-lang.c (f_language_data): Likewise.
3637 (f_language::search_name_hash): New member function.
3638 * go-lang.c (go_language_data): Delete la_search_name_hash
3639 initializer.
3640 * language.c (unknown_language_data): Likewise.
3641 (auto_language_data): Likewise.
3642 * language.h (struct language_data): Delete la_search_name_hash
3643 field.
3644 (language_defn::search_name_hash): Declare new member function.
3645 (default_search_name_hash): Delete declaration.
3646 * m2-lang.c (m2_language_data): Delete la_search_name_hash
3647 initializer.
3648 * objc-lang.c (objc_language_data): Likewise.
3649 * opencl-lang.c (opencl_language_data): Likewise.
3650 * p-lang.c (pascal_language_data): Likewise.
3651 * rust-lang.c (rust_language_data): Likewise.
3652 * symtab.c (search_name_hash): Update call.
3653
3654 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3655
3656 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
3657 initializer.
3658 * c-lang.c (class compile_instance): Declare.
3659 (c_language_data): Delete la_get_compile_instance initializer.
3660 (c_language::get_compile_instance): New member function.
3661 (cplus_language_data): Delete la_get_compile_instance initializer.
3662 (cplus_language::get_compile_instance): New member function.
3663 (asm_language_data): Delete la_get_compile_instance initializer.
3664 (minimal_language_data): Likewise.
3665 * c-lang.h (c_get_compile_context): Update comment.
3666 (cplus_get_compile_context): Update comment.
3667 * compile/compile.c (compile_to_object): Update calls, don't rely
3668 on function pointer being NULL.
3669 * d-lang.c (d_language_data): Delete la_get_compile_instance
3670 initializer.
3671 * f-lang.c (f_language_data): Likewise.
3672 * go-lang.c (go_language_data): Likewise.
3673 * language.c (unknown_language_data): Likewise.
3674 (auto_language_data): Likewise.
3675 * language.h (language_data): Delete la_get_compile_instance field.
3676 (language_defn::get_compile_instance): New member function.
3677 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
3678 initializer.
3679 * objc-lang.c (objc_language_data): Likewise.
3680 * opencl-lang.c (opencl_language_data): Likewise.
3681 * p-lang.c (pascal_language_data): Likewise.
3682 * rust-lang.c (rust_language_data): Likewise.
3683
3684 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3685
3686 * ada-lang.c (ada_add_all_symbols): Update comment.
3687 (ada_iterate_over_symbols): Delete, move implementation to...
3688 (ada_language::iterate_over_symbols): ...here, a new member
3689 function, rewrite to use range based for loop.
3690 (ada_language_data): Delete la_iterate_over_symbols initializer.
3691 * c-lang.c (c_language_data): Likewise.
3692 (cplus_language_data): Likewise.
3693 (asm_language_data): Likewise.
3694 (minimal_language_data): Likewise.
3695 * d-lang.c (d_language_data): Likewise.
3696 * f-lang.c (f_language_data): Likewise.
3697 * go-lang.c (go_language_data): Likewise.
3698 * language.c (unknown_language_data): Likewise.
3699 (auto_language_data): Likewise.
3700 * language.h (language_data): Delete la_iterate_over_symbols field.
3701 (language_defn::iterate_over_symbols): New member function.
3702 (LA_ITERATE_OVER_SYMBOLS): Update.
3703 * linespec.c (iterate_over_all_matching_symtabs): Update.
3704 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
3705 initializer.
3706 * objc-lang.c (objc_language_data): Likewise.
3707 * opencl-lang.c (opencl_language_data): Likewise.
3708 * p-lang.c (pascal_language_data): Likewise.
3709 * rust-lang.c (rust_language_data): Likewise.
3710
3711 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3712
3713 * ada-lang.c (ada_language_data): Delete
3714 la_lookup_transparent_type initializer.
3715 * c-lang.c (c_language_data): Likewise.
3716 (cplus_language_data): Likewise.
3717 (cplus_language::lookup_transparent_type): New member function.
3718 (asm_language_data): Delete la_lookup_transparent_type
3719 initializer.
3720 (minimal_language_data): Likewise.
3721 * d-lang.c (d_language_data): Likewise.
3722 * f-lang.c (f_language_data): Likewise.
3723 * go-lang.c (go_language_data): Likewise.
3724 * language.c (unknown_language_data): Likewise.
3725 (auto_language_data): Likewise.
3726 * language.h (struct language_data): Delete
3727 la_lookup_transparent_type field.
3728 (language_defn::lookup_transparent_type): New member function.
3729 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
3730 initializer.
3731 * objc-lang.c (objc_language_data): Likewise.
3732 * opencl-lang.c (opencl_language_data): Likewise.
3733 * p-lang.c (pascal_language_data): Likewise.
3734 * rust-lang.c (rust_language_data): Likewise.
3735 * symtab.c (symbol_matches_domain): Update call.
3736
3737 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3738
3739 * ada-lang.c (ada_language_arch_info): Delete function, move
3740 implementation to...
3741 (ada_language::language_arch_info): ...here, a new member
3742 function.
3743 (ada_language_data): Delete la_language_arch_info.
3744 * c-lang.c (c_language_data): Likewise.
3745 (c_language::language_arch_info): New member function.
3746 (cplus_language_arch_info): Delete function, move
3747 implementation to...
3748 (cplus_language::language_arch_info): ...here, a new member
3749 function.
3750 (cplus_language_data): Delete la_language_arch_info.
3751 (asm_language_data): Likewise.
3752 (asm_language::language_arch_info): New member function.
3753 (minimal_language_data): Delete la_language_arch_info.
3754 (minimal_language::language_arch_info): New member function.
3755 * d-lang.c (d_language_arch_info): Delete function, move
3756 implementation to...
3757 (d_language::language_arch_info): ...here, a new member
3758 function.
3759 (d_language_data): Delete la_language_arch_info.
3760 * f-lang.c (f_language_arch_info): Delete function, move
3761 implementation to...
3762 (f_language::language_arch_info): ...here, a new member
3763 function.
3764 (f_language_data): Delete la_language_arch_info.
3765 * go-lang.c (go_language_arch_info): Delete function, move
3766 implementation to...
3767 (go_language::language_arch_info): ...here, a new member
3768 function.
3769 (go_language_data): Delete la_language_arch_info.
3770 * language.c (unknown_language_data): Likewise.
3771 (unknown_language::language_arch_info): New member function.
3772 (auto_language_data): Delete la_language_arch_info.
3773 (auto_language::language_arch_info): New member function.
3774 (language_gdbarch_post_init): Update call to
3775 la_language_arch_info.
3776 * language.h (language_data): Delete la_language_arch_info
3777 function pointer.
3778 (language_defn::language_arch_info): New function.
3779 * m2-lang.c (m2_language_arch_info): Delete function, move
3780 implementation to...
3781 (m2_language::language_arch_info): ...here, a new member
3782 function.
3783 (m2_language_data): Delete la_language_arch_info.
3784 * objc-lang.c (objc_language_arch_info): Delete function, move
3785 implementation to...
3786 (objc_language::language_arch_info): ...here, a new member
3787 function.
3788 (objc_language_data): Delete la_language_arch_info.
3789 * opencl-lang.c (opencl_language_arch_info): Delete function, move
3790 implementation to...
3791 (opencl_language::language_arch_info): ...here, a new member
3792 function.
3793 (opencl_language_data): Delete la_language_arch_info.
3794 * p-lang.c (pascal_language_arch_info): Delete function, move
3795 implementation to...
3796 (pascal_language::language_arch_info): ...here, a new member
3797 function.
3798 (pascal_language_data): Delete la_language_arch_info.
3799 * rust-lang.c (rust_language_arch_info): Delete function, move
3800 implementation to...
3801 (rust_language::language_arch_info): ...here, a new member
3802 function.
3803 (rust_language_data): Delete la_language_arch_info.
3804
3805 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3806
3807 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
3808 initializer.
3809 * c-lang.c (c_language_data): Likewise.
3810 (cplus_language_data): Likewise.
3811 (cplus_language::pass_by_reference_info): New method.
3812 (asm_language_data): Delete la_pass_by_reference initializer.
3813 (minimal_language_data): Likewise.
3814 * cp-abi.c (cp_pass_by_reference): Remove use of
3815 default_pass_by_reference.
3816 * d-lang.c (d_language_data): Likewise.
3817 * f-lang.c (f_language_data): Likewise.
3818 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
3819 default_pass_by_reference.
3820 * go-lang.c (go_language_data): Likewise.
3821 * language.c (language_pass_by_reference): Update.
3822 (default_pass_by_reference): Delete.
3823 (unknown_language_data): Delete la_pass_by_reference
3824 initializer.
3825 (auto_language_data): Likewise.
3826 * language.h (struct language_data): Delete la_pass_by_reference
3827 field.
3828 (language_defn::pass_by_reference_info): New member function.
3829 (default_pass_by_reference): Delete declaration.
3830 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
3831 initializer.
3832 * objc-lang.c (objc_language_data): Likewise.
3833 * opencl-lang.c (opencl_language_data): Likewise.
3834 * p-lang.c (pascal_language_data): Likewise.
3835 * rust-lang.c (rust_language_data): Likewise.
3836
3837 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3838
3839 * ada-lang.c (ada_read_var_value): Delete function, move
3840 implementation to...
3841 (ada_language::read_var_value): ...here.
3842 (ada_language_data): Delete la_read_var_value initializer.
3843 * c-lang.c (c_language_data): Likewise.
3844 (cplus_language_data): Likewise.
3845 (minimal_language_data): Likewise.
3846 * d-lang.c (d_language_data): Likewise.
3847 * f-lang.c (f_language_data): Likewise.
3848 * findvar.c (default_read_var_value): Rename to...
3849 (language_defn::read_var_value): ...this.
3850 * findvar.c (read_var_value): Update header comment, and change to
3851 call member function instead of function pointer.
3852 * go-lang.c (go_language_data): Likewise.
3853 * language.c (unknown_language_data): Delete la_read_var_value
3854 initializer.
3855 (auto_language_data): Likewise.
3856 * language.h (struct language_data): Delete la_read_var_value
3857 field.
3858 (language_defn::read_var_value): New member function.
3859 (default_read_var_value): Delete declaration.
3860 * m2-lang.c (m2_language_data): Delete la_read_var_value
3861 initializer.
3862 * objc-lang.c (objc_language_data): Likewise.
3863 * opencl-lang.c (opencl_language_data): Likewise.
3864 * p-lang.c (pascal_language_data): Likewise.
3865 * rust-lang.c (rust_language_data): Likewise.
3866 * value.h (default_read_var_value): Delete declaration.
3867
3868 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3869
3870 * ada-lang.c (ada_print_array_index): Delete function, move
3871 implementation to...
3872 (ada_language::print_array_index): ...here.
3873 (ada_language_data): Delete la_print_array_index initializer.
3874 * c-lang.c (c_language_data): Likewise.
3875 (cplus_language_data): Likewise.
3876 (minimal_language_data): Likewise.
3877 * d-lang.c (d_language_data): Likewise.
3878 * f-lang.c (f_language_data): Likewise.
3879 * go-lang.c (go_language_data): Likewise.
3880 * language.c (default_print_array_index): Delete function, move
3881 implementation to...
3882 (language_defn::print_array_index): ...here.
3883 (unknown_language_data): Delete la_print_array_index initializer.
3884 (auto_language_data): Likewise.
3885 * language.h (struct language_data): Delete la_print_array_index
3886 field.
3887 (language_defn::print_array_index): New member function.
3888 (LA_PRINT_ARRAY_INDEX): Update.
3889 (default_print_array_index): Delete declaration.
3890 * m2-lang.c (m2_language_data): Delete la_print_array_index
3891 initializer.
3892 * objc-lang.c (objc_language_data): Likewise.
3893 * opencl-lang.c (opencl_language_data): Likewise.
3894 * p-lang.c (pascal_language_data): Likewise.
3895 * rust-lang.c (rust_language_data): Likewise.
3896
3897 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3898
3899 * gdb/ada-lang.c (ada_language_defn): Convert to...
3900 (ada_language_data): ...this.
3901 (class ada_language): New class.
3902 (ada_language_defn): New static global.
3903 * gdb/c-lang.c (c_language_defn): Convert to...
3904 (c_language_data): ...this.
3905 (class c_language): New class.
3906 (c_language_defn): New static global.
3907 (cplus_language_defn): Convert to...
3908 (cplus_language_data): ...this.
3909 (class cplus_language): New class.
3910 (cplus_language_defn): New static global.
3911 (asm_language_defn): Convert to...
3912 (asm_language_data): ...this.
3913 (class asm_language): New class.
3914 (asm_language_defn): New static global.
3915 (minimal_language_defn): Convert to...
3916 (minimal_language_data): ...this.
3917 (class minimal_language): New class.
3918 (minimal_language_defn): New static global.
3919 * gdb/d-lang.c (d_language_defn): Convert to...
3920 (d_language_data): ...this.
3921 (class d_language): New class.
3922 (d_language_defn): New static global.
3923 * gdb/f-lang.c (f_language_defn): Convert to...
3924 (f_language_data): ...this.
3925 (class f_language): New class.
3926 (f_language_defn): New static global.
3927 * gdb/go-lang.c (go_language_defn): Convert to...
3928 (go_language_data): ...this.
3929 (class go_language): New class.
3930 (go_language_defn): New static global.
3931 * gdb/language.c (unknown_language_defn): Remove declaration.
3932 (current_language): Initialize to nullptr, real initialization is
3933 moved to _initialize_language.
3934 (languages): Delete global.
3935 (language_defn::languages): Define.
3936 (set_language_command): Use language_defn::languages.
3937 (set_language): Likewise.
3938 (range_error): Likewise.
3939 (language_enum): Likewise.
3940 (language_def): Likewise.
3941 (add_set_language_command): Use language_def::languages for the
3942 language list, and language_def to lookup language pointers.
3943 (skip_language_trampoline): Use language_defn::languages.
3944 (unknown_language_defn): Convert to...
3945 (unknown_language_data): ...this.
3946 (class unknown_language): New class.
3947 (unknown_language_defn): New static global.
3948 (auto_language_defn): Convert to...
3949 (auto_language_data): ...this.
3950 (class auto_language): New class.
3951 (auto_language_defn): New static global.
3952 (language_gdbarch_post_init): Use language_defn::languages.
3953 (_initialize_language): Initialize current_language.
3954 * gdb/language.h (struct language_defn): Rename to...
3955 (struct language_data): ...this.
3956 (struct language_defn): New.
3957 (auto_language_defn): Delete.
3958 (unknown_language_defn): Delete.
3959 (minimal_language_defn): Delete.
3960 (ada_language_defn): Delete.
3961 (asm_language_defn): Delete.
3962 (c_language_defn): Delete.
3963 (cplus_language_defn): Delete.
3964 (d_language_defn): Delete.
3965 (f_language_defn): Delete.
3966 (go_language_defn): Delete.
3967 (m2_language_defn): Delete.
3968 (objc_language_defn): Delete.
3969 (opencl_language_defn): Delete.
3970 (pascal_language_defn): Delete.
3971 (rust_language_defn): Delete.
3972 * gdb/m2-lang.c (m2_language_defn): Convert to...
3973 (m2_language_data): ...this.
3974 (class m2_language): New class.
3975 (m2_language_defn): New static global.
3976 * gdb/objc-lang.c (objc_language_defn): Convert to...
3977 (objc_language_data): ...this.
3978 (class objc_language): New class.
3979 (objc_language_defn): New static global.
3980 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
3981 (opencl_language_data): ...this.
3982 (class opencl_language): New class.
3983 (opencl_language_defn): New static global.
3984 * gdb/p-lang.c (pascal_language_defn): Convert to...
3985 (pascal_language_data): ...this.
3986 (class pascal_language): New class.
3987 (pascal_language_defn): New static global.
3988 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
3989 language pointer, update comment format.
3990 * gdb/rust-lang.c (rust_language_defn): Convert to...
3991 (rust_language_data): ...this.
3992 (class rust_language): New class.
3993 (rust_language_defn): New static global.
3994
3995 2020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
3996
3997 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
3998 member variable.
3999 <m_stmt_at_address>: New member variable.
4000 (lnp_state_machine::record_line): Don't record some lines, update
4001 tracking of is_stmt at the same address.
4002 (lnp_state_machine::lnp_state_machine): Initialise new member
4003 variables.
4004
4005 2020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
4006
4007 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
4008 "-include gnu-nat-mig.h".
4009 * gnu-nat-mig.h: New file.
4010 * gnu-nat.c: Include "gnu-nat-mig.h".
4011 (exc_server, msg_reply_server, notify_server,
4012 process_reply_server): Remove declarations.
4013
4014 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4015
4016 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
4017 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
4018 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
4019 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
4020 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
4021 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
4022 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
4023 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
4024 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
4025 to gnu_nat_target class.
4026 * gnu-nat.c: Likewise.
4027 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
4028 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
4029 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
4030 object.
4031 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
4032 instead of `gnu_target'.
4033
4034 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4035
4036 * i386-gnu-tdep.c: Include "gdbcore.h"
4037 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
4038 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
4039 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
4040 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
4041 i386_gnu_sigcontext_addr): New functions
4042 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
4043 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
4044 tdep.
4045
4046 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4047
4048 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
4049 before fork_inferior call. Avoid calling it if target_is_pushed returns
4050 true.
4051
4052 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4053
4054 * gnu-nat.h (gnu_target): New variable declaration.
4055 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
4056 gnu_target.
4057 * gnu-nat.c (gnu_target): New variable.
4058 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
4059 add_thread_silent, and add_thread calls.
4060 (gnu_nat_target::create_inferior): Pass gnu_target to
4061 add_thread_silent, thread_change_ptid call.
4062 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
4063 call.
4064
4065 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4066
4067 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
4068 (gnu_nat_target::find_memory_regions): Remove unused
4069 `old_address' variable.
4070
4071 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4072
4073 * gnu-nat.c: Include "gdbarch.h".
4074
4075 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4076
4077 * reply_mig_hack.awk (Error return): Cast function through
4078 void *, to bypass compiler function call check.
4079
4080 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4081
4082 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
4083 $(srcdir)/reply_mig_hack.awk.
4084
4085 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4086
4087 * gnu-nat.h (gnu_debug_flag): Set type to bool.
4088
4089 2020-05-30 Jonny Grant <jg@jguk.org>
4090
4091 * configure.ac (ACX_BUGURL): change bug URL to https.
4092
4093 2020-05-30 Pedro Alves <palves@redhat.com>
4094
4095 * cp-support.c (replace_typedefs_template): New.
4096 (replace_typedefs_qualified_name): Handle
4097 DEMANGLE_COMPONENT_TEMPLATE.
4098
4099 2020-05-29 Simon Marchi <simon.marchi@efficios.com>
4100
4101 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
4102 dwarf2/index-cache.h, dwarf2/index-write.c,
4103 dwarf2/index-write.h, dwarf2/line-header.c,
4104 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
4105 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
4106 variables and fields from `dwarf2_per_objfile` to just
4107 `per_objfile` throughout.
4108
4109 2020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
4110
4111 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
4112 <push_dwarf_reg_entry_value>: Add comment.
4113
4114 2020-05-28 Kevin Buettner <kevinb@redhat.com>
4115 Keith Seitz <keiths@redhat.com>
4116
4117 * python/python.c (do_start_initialization): Call PyEval_SaveThread
4118 instead of PyEval_ReleaseLock.
4119 (class gdbpy_gil): Move to earlier in file.
4120 (finalize_python): Set gdb_python_initialized.
4121 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
4122 when not initialized.
4123
4124 2020-05-28 Simon Marchi <simon.marchi@efficios.com>
4125
4126 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
4127 <push_dwarf_reg_entry_value>: Remove assert. Override
4128 per_objfile with caller_per_objfile.
4129
4130 2020-05-28 Tom de Vries <tdevries@suse.de>
4131
4132 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
4133 PR gold/15646 workaround to symbol kind "type".
4134
4135 2020-05-27 Tom Tromey <tromey@adacore.com>
4136
4137 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
4138
4139 2020-05-27 Tom Tromey <tromey@adacore.com>
4140
4141 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
4142 Use htab_find_with_hash.
4143 <add_abbrev>: Remove "abbrev_number" parameter.
4144 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
4145 "abbrev_number" parameter. Use htab_find_slot_with_hash.
4146 (hash_abbrev): Add comment.
4147 (abbrev_table::lookup_abbrev): Move to header file.
4148 (abbrev_table::read): Update.
4149
4150 2020-05-27 Tom Tromey <tromey@adacore.com>
4151
4152 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
4153 method.
4154 <canonical_name>: New member.
4155 <raw_name>: Rename from "name".
4156 (partial_die_info): Initialize canonical_name.
4157 (scan_partial_symbols): Check raw_name.
4158 (partial_die_parent_scope, partial_die_full_name)
4159 (add_partial_symbol, add_partial_subprogram)
4160 (add_partial_enumeration, load_partial_dies): Use "name" method.
4161 (partial_die_info::name): New method.
4162 (partial_die_info::read, guess_partial_die_structure_name)
4163 (partial_die_info::fixup): Update.
4164
4165 2020-05-27 Tom Tromey <tromey@adacore.com>
4166
4167 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
4168 <get_ref_die_offset>: Inline.
4169 <get_ref_die_offset_complaint>: New method.
4170 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
4171 (attribute::get_ref_die_offset_complaint): Rename from
4172 get_ref_die_offset. Just issue complaint.
4173
4174 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
4175
4176 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
4177
4178 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
4179
4180 * exec.c (exec_file_attach): Use errno value of first openp failure.
4181
4182 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
4183
4184 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
4185 Don't close thread handle.
4186
4187 2020-05-27 Tom Tromey <tom@tromey.com>
4188 Simon Marchi <simon.marchi@efficios.com>
4189
4190 * objfiles.h (struct objfile) <partial_symtabs>: Now a
4191 shared_ptr.
4192 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
4193 member.
4194 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
4195 dwarf2_per_bfd_objfile_data_key>: New globals.
4196 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
4197 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
4198 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
4199 shared.
4200 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
4201 short-circuit when sharing.
4202 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
4203 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
4204
4205 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4206
4207 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
4208 to...
4209 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
4210 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
4211
4212 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4213
4214 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
4215 build_name_components, find_name_components_bounds>:
4216 Add per_objfile parameter.
4217 (struct mapped_index) <symbol_name_at>: Likewise.
4218 (struct mapped_debug_names): Remove constructor.
4219 <dwarf2_per_objfile>: Remove field.
4220 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
4221 (mapped_index_base::find_name_components_bounds,
4222 mapped_index_base::build_name_components,
4223 dw2_expand_symtabs_matching_symbol): Likewise.
4224 (class mock_mapped_index) <symbol_name_at>: Likewise.
4225 (check_match): Likewise.
4226 (check_find_bounds_finds): Likewise.
4227 (test_mapped_index_find_name_component_bounds): Update.
4228 (CHECK_MATCH): Update.
4229 (dw2_expand_symtabs_matching): Update.
4230 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
4231 per_objfile parameter.
4232 <find_vec_in_debug_names>: Likewise.
4233 <m_per_objfile>: New field.
4234 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
4235 parameter.
4236 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
4237 (dw2_debug_names_iterator::next): Update.
4238 (dw2_debug_names_lookup_symbol): Update.
4239 (dw2_debug_names_expand_symtabs_for_function): Update.
4240 (dw2_debug_names_map_matching_symbols): Update.
4241 (dw2_debug_names_expand_symtabs_matching): Update.
4242 (dwarf2_read_debug_names): Update.
4243
4244 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4245
4246 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
4247 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
4248 move to dwarf2_per_objfile.
4249 <read_in_chain>: Remove.
4250 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
4251 remove_all_cus, age_comp_units>: New methods.
4252 <m_dwarf2_cus>: New member.
4253 (struct dwarf2_per_cu_data) <cu>: Remove.
4254 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
4255 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
4256 moved to methods of dwarf2_per_objfile.
4257 (dwarf2_clear_marks): Remove.
4258 (dwarf2_queue_item::~dwarf2_queue_item): Update.
4259 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
4260 (dwarf2_per_bfd::free_cached_comp_units): Remove.
4261 (dwarf2_per_objfile::remove_all_cus): New.
4262 (class free_cached_comp_units) <~free_cached_comp_units>:
4263 Update.
4264 (load_cu): Update.
4265 (dw2_do_instantiate_symtab): Adjust.
4266 (fill_in_sig_entry_from_dwo_entry): Adjust.
4267 (cutu_reader::init_tu_and_read_dwo_dies): Update.
4268 (cutu_reader::cutu_reader): Likewise.
4269 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
4270 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
4271 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
4272 and dwarf2_per_objfile::age_comp_units.
4273 (load_partial_comp_unit): Update.
4274 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
4275 (process_queue): Likewise.
4276 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
4277 backlink.
4278 (dwarf2_read_addr_index): Likewise.
4279 (follow_die_offset): Likewise.
4280 (dwarf2_fetch_die_loc_sect_off): Likewise.
4281 (dwarf2_fetch_constant_bytes): Likewise.
4282 (dwarf2_fetch_die_type_sect_off): Likewise.
4283 (follow_die_sig_1): Likewise.
4284 (load_full_type_unit): Likewise.
4285 (read_signatured_type): Likewise.
4286 (dwarf2_cu::dwarf2_cu): Don't set cu field.
4287 (dwarf2_cu::~dwarf2_cu): Remove.
4288 (dwarf2_per_objfile::get_cu): New.
4289 (dwarf2_per_objfile::set_cu): New.
4290 (age_cached_comp_units): Rename to...
4291 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
4292 to std::unordered_map.
4293 (free_one_cached_comp_unit): Rename to...
4294 (dwarf2_per_objfile::remove_cu): ... this. Adjust
4295 to std::unordered_map.
4296 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
4297 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
4298 a dwarf2_per_objfile in data.
4299 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
4300 (dwarf2_clear_marks): Remove.
4301
4302 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4303
4304 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
4305 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
4306 (init_tu_and_read_dwo_dies): Likewise.
4307 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
4308 (cutu_reader::cutu_reader): Likewise.
4309 (load_partial_comp_unit): Likewise.
4310 (process_psymtab_comp_unit): Update.
4311 (build_type_psymtabs_1): Update.
4312 (process_skeletonless_type_unit): Update.
4313 (load_full_comp_unit): Update.
4314 (find_partial_die): Update.
4315 (dwarf2_read_addr_index): Update.
4316 (read_signatured_type): Update.
4317
4318 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4319
4320 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
4321 m_header_read_in>: New fields.
4322 <get_header>: New method.
4323 * dwarf2/read.c (per_cu_header_read_in): Remove.
4324 (dwarf2_per_cu_data::get_header): New.
4325 (dwarf2_per_cu_data::addr_size): Update.
4326 (dwarf2_per_cu_data::offset_size): Update.
4327 (dwarf2_per_cu_data::ref_addr_size): Update.
4328
4329 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4330
4331 * dwarf2/read.c (load_cu): Return dwarf2_cu.
4332 (dw2_do_instantiate_symtab): Update.
4333 (queue_and_load_all_dwo_tus): Change parameter from
4334 dwarf2_per_cu_data to dwarf2_cu.
4335 (dwarf2_fetch_die_loc_sect_off): Update.
4336 (dwarf2_fetch_constant_bytes): Update.
4337 (dwarf2_fetch_die_type_sect_off): Update.
4338
4339 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4340
4341 * dwarf2/read.c (process_full_comp_unit,
4342 process_full_type_unit): Remove per_cu, per_objfile paramters.
4343 Add dwarf2_cu parameter.
4344 (process_queue): Update.
4345
4346 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4347
4348 * dwarf2/read.c (create_cu_from_index_list): Replace
4349 dwarf2_per_objfile parameter with dwarf2_per_bfd.
4350 (create_cus_from_index_list): Likewise.
4351 (create_cus_from_index): Likewise.
4352 (create_signatured_type_table_from_index): Likewise.
4353 (create_cus_from_debug_names_list): Likewise.
4354 (create_cus_from_debug_names): Likewise.
4355 (dwarf2_read_gdb_index): Update.
4356 (dwarf2_read_debug_names): Update.
4357
4358 2020-05-27 Tom Tromey <tom@tromey.com>
4359 Simon Marchi <simon.marchi@efficios.com>
4360
4361 * dwarf2/read.h (struct dwarf2_per_objfile)
4362 <get_type_for_signatured_type, set_type_for_signatured_type>:
4363 New methods.
4364 <m_type_map>: New member.
4365 (struct signatured_type) <type>: Remove.
4366 * dwarf2/read.c
4367 (dwarf2_per_objfile::get_type_for_signatured_type,
4368 dwarf2_per_objfile::set_type_for_signatured_type): New.
4369 (get_signatured_type): Use new methods.
4370
4371 2020-05-27 Tom Tromey <tom@tromey.com>
4372 Simon Marchi <simon.marchi@efficios.com>
4373
4374 * dwarf2/read.h (struct type_unit_group_unshareable): New.
4375 (struct dwarf2_per_objfile) <type_units>: New member.
4376 <get_type_unit_group_unshareable>: New method.
4377 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
4378 num_symtabs, symtabs>: Remove; move to
4379 type_unit_group_unshareable.
4380 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
4381 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
4382 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
4383
4384 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4385
4386 * dwarf2/read.h (struct dwarf2_per_cu_data):
4387 <dwarf2_per_objfile>: Remove.
4388 * dwarf2/read.c (create_cu_from_index_list): Don't assign
4389 dwarf2_per_objfile.
4390 (create_signatured_type_table_from_index): Likewise.
4391 (create_signatured_type_table_from_debug_names): Likewise.
4392 (create_debug_type_hash_table): Likewise.
4393 (fill_in_sig_entry_from_dwo_entry): Likewise.
4394 (create_type_unit_group): Likewise.
4395 (read_comp_units_from_section): Likewise.
4396 (create_cus_hash_table): Likewise.
4397
4398 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4399
4400 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
4401 dwarf2_per_cu_data::dwarf2_per_objfile.
4402 (compute_compunit_symtab_includes): Likewise.
4403 (dwarf2_cu::start_symtab): Likewise.
4404
4405 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4406
4407 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
4408 parameter.
4409 * dwarf2/read.c (get_die_type_at_offset): Likewise.
4410 (read_namespace_alias): Update.
4411 (lookup_die_type): Update.
4412 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
4413 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
4414 Update.
4415 (disassemble_dwarf_expression): Update.
4416
4417 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4418
4419 * dwarf2/read.h (struct dwarf2_queue_item): Add
4420 dwarf2_per_objfile parameter, assign new parameter.
4421 <per_objfile>: New field.
4422 * dwarf2/read.c (free_one_cached_comp_unit): Add
4423 dwarf2_per_objfile parameter.
4424 (queue_comp_unit): Likewise.
4425 (dw2_do_instantiate_symtab): Update.
4426 (process_psymtab_comp_unit): Update.
4427 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
4428 (process_imported_unit_die): Update.
4429 (queue_and_load_dwo_tu): Update.
4430 (follow_die_offset): Update.
4431 (follow_die_sig_1): Update.
4432
4433 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4434
4435 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
4436 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
4437 (read_call_site_scope): Assign per_objfile.
4438 (dwarf2_per_cu_data::objfile): Remove.
4439 * gdbtypes.h (struct call_site) <per_objfile>: New member.
4440 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
4441 dwarf2_per_objfile parameter.
4442 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
4443 dwarf2_per_objfile parameter.
4444 (dwarf_expr_reg_to_entry_parameter): Add output
4445 dwarf2_per_objfile parameter.
4446 (locexpr_get_frame_base): Update.
4447 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
4448 <push_dwarf_reg_entry_value>: Update.
4449 <call_site_to_target_addr>: Update.
4450 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
4451 parameter.
4452 (value_of_dwarf_reg_entry): Update.
4453 (rw_pieced_value): Update.
4454 (indirect_synthetic_pointer): Update.
4455 (dwarf2_evaluate_property): Update.
4456 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
4457 parameter.
4458 (locexpr_read_variable): Update.
4459 (locexpr_get_symbol_read_needs): Update.
4460 (loclist_read_variable): Update.
4461
4462 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4463
4464 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
4465 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
4466 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
4467 parameter.
4468 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
4469 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
4470 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
4471 parameter.
4472 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
4473 sect_variable_value): Add dwarf2_per_objfile parameter.
4474 (class dwarf_evaluate_loc_desc) <dwarf_call,
4475 dwarf_variable_value>: Update.
4476 (fetch_const_value_from_synthetic_pointer): Add
4477 dwarf2_per_objfile parameter.
4478 (fetch_const_value_from_synthetic_pointer): Update.
4479 (coerced_pieced_ref): Update.
4480 (class symbol_needs_eval_context) <dwarf_call,
4481 dwarf_variable_value>: Update.
4482 (dwarf2_compile_expr_to_ax): Update.
4483
4484 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4485
4486 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
4487 parameter.
4488 (dwarf2_evaluate_loc_desc_full): Update.
4489
4490 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4491
4492 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
4493 parameter.
4494 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
4495 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
4496 dwarf2_per_objfile parameter.
4497 (decode_debug_loc_dwo_addresses): Likewise.
4498 (dwarf2_find_location_expression): Update.
4499 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
4500 (locexpr_describe_location_piece): Add dwarf2_per_objfile
4501 parameter.
4502 (disassemble_dwarf_expression): Add dwarf2_per_objfile
4503 parameter.
4504 (locexpr_describe_location_1): Likewise.
4505 (locexpr_describe_location): Update.
4506
4507 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4508
4509 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
4510 Remove.
4511 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
4512 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
4513 (dwarf2_compile_property_to_c): Update.
4514 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
4515 use text offset from objfile.
4516 (locexpr_tracepoint_var_ref): Update.
4517 (locexpr_generate_c_location): Update.
4518 (loclist_describe_location): Update.
4519 (loclist_tracepoint_var_ref): Update.
4520 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
4521 dwarf2_per_objfile parameter.
4522 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
4523 use text offset from objfile.
4524 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
4525
4526 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4527
4528 * dwarf2/expr.h (struct dwarf_expr_context)
4529 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
4530 <offset>: Remove.
4531 <per_objfile>: New member.
4532 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
4533 dwarf2_per_objfile parameter. Don't set offset, set
4534 per_objfile.
4535 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
4536 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
4537 a dwarf2_per_objfile object instead of an offset.
4538 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
4539 constructor.
4540 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
4541 to dwarf2_expr_executor constructor. Don't set offset.
4542 (dwarf2_fetch_cfa_info): Update.
4543 (struct dwarf2_frame_cache) <text_offset>: Remove.
4544 <per_objfile>: New field.
4545 (dwarf2_frame_cache): Update.
4546 (dwarf2_frame_prev_register): Update.
4547 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
4548 <dwarf_evaluate_loc_desc>: Add constructor.
4549 (dwarf2_evaluate_loc_desc_full): Update.
4550 (dwarf2_locexpr_baton_eval): Update.
4551 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
4552 Add constructor.
4553 (dwarf2_loc_desc_get_symbol_read_needs): Update.
4554
4555 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4556
4557 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
4558 addr_sized_int_type>: Move to dwarf2_cu.
4559 <int_type>: Move to dwarf2_per_objfile.
4560 (struct dwarf2_per_objfile) <int_type>: Move here.
4561 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
4562 addr_sized_int_type>: Move here.
4563 (read_func_scope): Update.
4564 (read_array_type): Update.
4565 (read_tag_string_type): Update.
4566 (attr_to_dynamic_prop): Update.
4567 (dwarf2_per_cu_data::int_type): Rename to...
4568 (dwarf2_per_objfile::int_type): ... this.
4569 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
4570 (dwarf2_cu::addr_sized_int_type): ... this.
4571 (read_subrange_type): Update.
4572 (dwarf2_per_cu_data::addr_type): Rename to...
4573 (dwarf2_cu::addr_type): ... this.
4574 (set_die_type): Update.
4575
4576 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4577
4578 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
4579 data through per_cu->cu.
4580
4581 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4582
4583 * dwarf2/read.c (lookup_dwo_comp_unit): Change
4584 dwarf2_per_cu_data parameter fo dwarf2_cu.
4585 (lookup_dwo_type_unit): Likewise.
4586 (read_cutu_die_from_dwo): Likewise.
4587 (lookup_dwo_unit): Likewise.
4588 (open_and_init_dwo_file): Likewise.
4589 (lookup_dwo_cutu): Likewise.
4590 (lookup_dwo_comp_unit): Likewise.
4591 (lookup_dwo_type_unit): Likewise.
4592 (cutu_reader::init_tu_and_read_dwo_dies): Update.
4593 (cutu_reader::cutu_reader): Update.
4594
4595 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4596
4597 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
4598 parameter.
4599 (process_full_type_unit): Likewise.
4600 (process_queue): Update.
4601
4602 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4603
4604 * dwarf2/read.c (recursively_compute_inclusions): Add
4605 dwarf2_per_objfile parameter.
4606 (compute_compunit_symtab_includes): Likewise.
4607 (process_cu_includes): Update.
4608
4609 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4610
4611 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
4612 parameter.
4613 (create_type_unit_group): Update.
4614 (process_psymtab_comp_unit_reader): Update.
4615 (build_type_psymtabs_reader): Update.
4616
4617 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4618
4619 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
4620 object through m_this_cu->cu.
4621
4622 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4623
4624 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
4625 the info parameter.
4626 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
4627
4628 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4629
4630 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
4631 per_objfile parameter.
4632 (load_full_type_unit): Add per_objfile parameter.
4633 (read_signatured_type): Likewise.
4634 (load_full_comp_unit): Likewise.
4635 (load_cu): Likewise.
4636 (dw2_do_instantiate_symtab): Likewise.
4637 (dw2_get_file_names): Likewise.
4638 (dw2_map_symtabs_matching_filename): Update.
4639 (dw_expand_symtabs_matching_file_matcher): Update.
4640 (dw2_map_symbol_filenames): Update.
4641 (process_psymtab_comp_unit): Add per_objfile parameter.
4642 (build_type_psymtabs_1): Update.
4643 (process_skeletonless_type_unit): Update.
4644 (dwarf2_build_psymtabs_hard): Update.
4645 (load_partial_comp_unit): Add per_objfile parameter.
4646 (scan_partial_symbols): Update.
4647 (load_full_comp_unit): Add per_objfile parameter.
4648 (process_imported_unit_die): Update.
4649 (create_cus_hash_table): Update.
4650 (find_partial_die): Update.
4651 (dwarf2_read_addr_index): Update.
4652 (follow_die_offset): Update.
4653 (dwarf2_fetch_die_loc_sect_off): Update.
4654 (dwarf2_fetch_constant_bytes): Update.
4655 (dwarf2_fetch_die_type_sect_off): Update.
4656 (follow_die_sig_1): Update.
4657 (load_full_type_unit): Add per_objfile parameter.
4658 (read_signatured_type): Likewise.
4659
4660 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4661
4662 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
4663 of objfile_name.
4664
4665 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4666
4667 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
4668 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
4669 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
4670 field.
4671 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
4672 (create_cus_from_index): Update.
4673 (dwarf2_read_gdb_index): Update.
4674 (create_cus_from_debug_names): Update.
4675 (dwarf2_read_debug_names): Update.
4676 (get_abbrev_section_for_cu): Update.
4677 (create_all_comp_units): Update.
4678 (read_attribute_value): Update.
4679 (get_debug_line_section): Update.
4680 * dwarf2/index-cache.c (index_cache::store): Update.
4681 * dwarf2/index-write.c (save_gdb_index_command): Update.
4682 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
4683
4684 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4685
4686 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
4687 member.
4688 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
4689 dwarf2_per_cu_data::per_bfd.
4690 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
4691 (create_type_unit_group): Likewise.
4692 (queue_comp_unit): Remove reference to
4693 per_cu->dwarf2_per_objfile.
4694 (maybe_queue_comp_unit): Likewise.
4695 (fill_in_sig_entry_from_dwo_entry): Assign new field.
4696 (create_cus_hash_table): Assign new field.
4697
4698 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4699
4700 * dwarf2/read.c: Replace
4701 dwarf2_cu->per_cu->dwarf2_per_objfile references with
4702 dwarf2_cu->per_objfile throughout.
4703
4704 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4705
4706 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
4707 parameter, don't use per_cu->dwarf2_per_objfile.
4708 (dw2_instantiate_symtab): Likewise.
4709 (dw2_find_last_source_symtab): Update.
4710 (dw2_map_expand_apply): Update.
4711 (dw2_lookup_symbol): Update.
4712 (dw2_expand_symtabs_for_function): Update.
4713 (dw2_expand_all_symtabs): Update.
4714 (dw2_expand_symtabs_with_fullname): Update.
4715 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
4716 don't use per_cu->dwarf2_per_objfile.
4717 (dw2_expand_marked_cus): Update.
4718 (dw2_find_pc_sect_compunit_symtab): Update.
4719 (dw2_debug_names_lookup_symbol): Update.
4720 (dw2_debug_names_expand_symtabs_for_function): Update.
4721 (dw2_debug_names_map_matching_symbols): Update.
4722 (dwarf2_psymtab::expand_psymtab): Update.
4723
4724 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4725
4726 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
4727 <per_objfile>: New member.
4728 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
4729 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
4730 call to dwarf2_cu.
4731 (cutu_reader::cutu_reader): Update.
4732 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
4733
4734 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4735
4736 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
4737 struct dwarf2_per_objfile.
4738 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
4739 dwarf2_per_bfd.
4740 * dwarf2/read.c (set_die_type): Update.
4741 (get_die_type_at_offset): Update.
4742
4743 2020-05-27 Tom Tromey <tom@tromey.com>
4744 Simon Marchi <simon.marchi@efficios.com>
4745
4746 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
4747 method.
4748 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
4749 get_symtab, set_symtab>: New methods.
4750 <m_symtabs>: New field.
4751 (struct dwarf2_psymtab): Derive from partial_symtab.
4752 <readin_p, get_compunit_symtab>: Declare methods.
4753 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
4754 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
4755 New methods.
4756 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
4757 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
4758 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
4759 (dw2_symtab_iter_next, dw2_print_stats)
4760 (dw2_expand_symtabs_with_fullname)
4761 (dw2_expand_symtabs_matching_one)
4762 (dw_expand_symtabs_matching_file_matcher)
4763 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
4764 (dw2_debug_names_iterator::next)
4765 (dw2_debug_names_map_matching_symbols)
4766 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
4767 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
4768 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
4769 New methods.
4770 (get_compunit_symtab, process_full_comp_unit)
4771 (process_full_type_unit): Update.
4772 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
4773
4774 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4775
4776 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
4777 then introduce a new dwarf2_per_objfile type.
4778 <read_line_string>: Move to the new dwarf2_per_objfile type.
4779 <objfile>: Likewise.
4780 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
4781 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
4782 dwarf2_per_objfile->per_bfd.
4783 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
4784 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
4785 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
4786 (dwarf2_per_bfd::free_cached_comp_units): ... this.
4787 (dwarf2_has_info): Allocate dwarf2_per_bfd.
4788 (dwarf2_per_objfile::locate_sections): Rename to...
4789 (dwarf2_per_bfd::locate_sections): ... this.
4790 (dwarf2_per_objfile::get_cutu): Rename to...
4791 (dwarf2_per_bfd::get_cutu): ... this.
4792 (dwarf2_per_objfile::get_cu): Rename to...
4793 (dwarf2_per_bfd::get_cu): ... this.
4794 (dwarf2_per_objfile::get_tu): Rename to...
4795 (dwarf2_per_bfd::get_tu): ... this.
4796 (dwarf2_per_objfile::allocate_per_cu): Rename to...
4797 (dwarf2_per_bfd::allocate_per_cu): ... this.
4798 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
4799 (dwarf2_per_bfd::allocate_signatured_type): ... this.
4800 (get_gdb_index_contents_ftype): Change parameter from
4801 dwarf2_per_objfile to dwarf2_per_bfd.
4802 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
4803 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
4804
4805 2020-05-27 Tom Tromey <tom@tromey.com>
4806 Simon Marchi <simon.marchi@efficios.com>
4807
4808 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
4809 (allocate_piece_closure): Set "per_objfile" member.
4810 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
4811 (locexpr_describe_location, loclist_describe_location): Use new
4812 member.
4813 * dwarf2/read.c (read_call_site_scope)
4814 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
4815 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
4816 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
4817 handle_data_member_location): Set per_objfile member.
4818 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
4819 member.
4820 (struct dwarf2_loclist_baton) <per_objfile>: New member.
4821
4822 2020-05-27 Tom Tromey <tom@tromey.com>
4823
4824 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
4825 allocate_signatured_type>: Declare new methods.
4826 <m_num_psymtabs>: New member.
4827 (struct dwarf2_per_cu_data) <index>: New member.
4828 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
4829 (dwarf2_per_objfile::allocate_signatured_type): New methods.
4830 (create_cu_from_index_list): Use allocate_per_cu.
4831 (create_signatured_type_table_from_index)
4832 (create_signatured_type_table_from_debug_names)
4833 (create_debug_type_hash_table, add_type_unit)
4834 (read_comp_units_from_section): Use allocate_signatured_type.
4835
4836 2020-05-27 Tom Tromey <tom@tromey.com>
4837
4838 * psymtab.c (partial_map_expand_apply)
4839 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
4840 (psym_lookup_global_symbol_language)
4841 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
4842 (psym_print_stats, psym_expand_symtabs_for_function)
4843 (psym_map_symbol_filenames, psym_map_matching_symbols)
4844 (psym_expand_symtabs_matching)
4845 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
4846 (maintenance_check_psymtabs): Update.
4847 * psympriv.h (struct partial_symtab) <readin_p,
4848 get_compunit_symtab>: Add objfile parameter.
4849 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
4850 Likewise.
4851 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
4852 get_compunit_symtab>: Likewise.
4853 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
4854
4855 2020-05-27 Tom Tromey <tom@tromey.com>
4856
4857 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
4858 member.
4859 * dwarf2/read.c (delete_file_name_entry): Fix comment.
4860 (create_cu_from_index_list)
4861 (create_signatured_type_table_from_index)
4862 (create_signatured_type_table_from_debug_names)
4863 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
4864 (dwarf2_create_include_psymtab)
4865 (create_debug_type_hash_table, add_type_unit)
4866 (create_type_unit_group, read_comp_units_from_section)
4867 (dwarf2_compute_name, create_cus_hash_table)
4868 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
4869 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
4870 obstack.
4871 (dw2_get_real_path): Likewise. Change argument to
4872 dwarf2_per_objfile.
4873
4874 2020-05-27 Luis Machado <luis.machado@linaro.org>
4875
4876 PR tdep/26000
4877 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
4878 for ldrd (immediate).
4879
4880 2020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4881
4882 * command.h: Add comment giving the name of class_tui.
4883 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
4884 create the fake command for the help for class_tui.
4885
4886 2020-05-26 Tom Tromey <tromey@adacore.com>
4887
4888 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
4889 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
4890 (val_atr): New function.
4891 (value_val_atr): Use it.
4892 * ada-valprint.c (print_optional_low_bound): Change low bound
4893 handling for enums.
4894 (val_print_packed_array_elements): Don't call discrete_position.
4895 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
4896 discrete_position for enum types.
4897 * language.c (default_print_array_index): Change type.
4898 * language.h (struct language_defn) <la_print_array_index>: Add
4899 index_type parameter, change type of index_value.
4900 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
4901 (default_print_array_index): Update.
4902 * valprint.c (maybe_print_array_index): Don't call
4903 value_from_longest. Update.
4904 (value_print_array_elements): Don't call discrete_position.
4905
4906 2020-05-26 Tom Tromey <tromey@adacore.com>
4907
4908 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
4909 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
4910
4911 2020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
4912
4913 PR gdb/13519
4914 * avr-tdep.c (avr_integer_to_address): Return data or code
4915 address accordingly to the second 'type' argument of the
4916 function.
4917
4918 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
4919
4920 * infcmd.c, inferior.h: (construct_inferior_arguments):
4921 Moved function from here to gdbsupport/common-inferior.{h,cc}
4922
4923 2020-05-23 Tom Tromey <tom@tromey.com>
4924
4925 Revert commit eca1f90c:
4926 * NEWS: Remove entry for completion styling.
4927 * completer.c (_rl_completion_prefix_display_length): Move
4928 declaration later.
4929 (gdb_fnprint): Revert.
4930 (gdb_display_match_list_1): Likewise.
4931 * cli/cli-style.c (completion_prefix_style)
4932 (completion_difference_style, completion_suffix_style): Remove.
4933 (_initialize_cli_style): Revert.
4934 * cli/cli-style.h (completion_prefix_style)
4935 (completion_difference_style, completion_suffix_style): Don't
4936 declare.
4937
4938 2020-05-24 Pedro Alves <palves@redhat.com>
4939
4940 * symtab.c (completion_list_add_name): Return boolean indication
4941 of whether the symbol matched.
4942 (completion_list_add_symbol): Don't try to remove C++ aliases if
4943 the symbol didn't match in the first place.
4944 * symtab.h (completion_list_add_name): Return bool.
4945
4946 2020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
4947
4948 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
4949 type::field.
4950
4951 2020-05-23 Joel Brobecker <brobecker@adacore.com>
4952
4953 GDB 9.2 released.
4954
4955 2020-05-23 Tom Tromey <tom@tromey.com>
4956
4957 * NEWS: Add entry for completion styling.
4958 * completer.c (_rl_completion_prefix_display_length): Move
4959 declaration earlier.
4960 (gdb_fnprint): Use completion_style.
4961 (gdb_display_match_list_1): Likewise.
4962 * cli/cli-style.c (completion_prefix_style)
4963 (completion_difference_style, completion_suffix_style): New
4964 globals.
4965 (_initialize_cli_style): Register new globals.
4966 * cli/cli-style.h (completion_prefix_style)
4967 (completion_difference_style, completion_suffix_style): Declare.
4968
4969 2020-05-23 Pedro Alves <palves@redhat.com>
4970
4971 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
4972 (parse_escape): Use ISDIGIT instead of isdigit.
4973 (puts_debug): Use gdb_isprint instead of isprint.
4974 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
4975 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
4976 ISSPACE instead of isspace.
4977 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
4978 instead of isspace.
4979 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
4980 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
4981 instead of isxdigit and ISDIGIT instead of isdigit.
4982
4983 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
4984
4985 * gdbtypes.h (struct type) <field>: New method.
4986 (TYPE_FIELDS): Remove, replace all uses with either type::fields
4987 or type::field.
4988
4989 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
4990
4991 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
4992 (TYPE_FIELDS): Use type::fields. Change all call sites that
4993 modify the propery to use type::set_fields instead.
4994
4995 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
4996
4997 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
4998 type::num_fields instead.
4999
5000 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
5001
5002 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
5003 methods.
5004 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
5005 that modify the number of fields to use type::set_num_fields
5006 instead.
5007
5008 2020-05-22 Tom Tromey <tromey@adacore.com>
5009
5010 * compile/compile-object-load.h (munmap_list_free): Don't
5011 declare.
5012
5013 2020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
5014
5015 * annotate.c (annotate_source_line): Update return type, add call
5016 to update current symtab and line.
5017 * annotate.h (annotate_source_line): Update return type, and
5018 extend header comment.
5019 * source.c (info_line_command): Check annotation_level before
5020 calling annotate_source_line.
5021 * stack.c (print_frame_info): If calling annotate_source_line
5022 returns true, then don't print any other source line information.
5023
5024 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
5025
5026 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
5027
5028 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
5029
5030 * coffread.c (patch_type): Remove NULL check before xfree.
5031 * corefile.c (set_gnutarget): Likewise.
5032 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
5033 * exec.c (build_section_table): Likewise.
5034 * remote.c (remote_target::pass_signals): Likewise.
5035 * utils.c (n_spaces): Likewise.
5036 * cli/cli-script.c (document_command): Likewise.
5037 * i386-windows-tdep.c (core_process_module_section): Likewise.
5038 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
5039
5040 2020-05-20 Simon Marchi <simon.marchi@efficios.com>
5041
5042 * symfile.c (reread_symbols): Clear objfile's section_offsets
5043 vector and section indices, re-compute them by calling
5044 sym_offsets.
5045
5046 2020-05-20 Tom Tromey <tromey@adacore.com>
5047
5048 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
5049 (desc_one_bound, desc_index_type): Compute field name.
5050
5051 2020-05-20 Tom de Vries <tdevries@suse.de>
5052
5053 PR symtab/25833
5054 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
5055
5056 2020-05-20 Alan Modra <amodra@gmail.com>
5057
5058 PR 25993
5059 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
5060 bfd_set_filename.
5061 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
5062 passed to bfd_set_filename.
5063 * symfile-mem.c (add_vsyscall_page): Likewise for string
5064 passed to symbol_file_add_from_memory.
5065 (symbol_file_add_from_memory): Make name param a const char* and
5066 don't strdup.
5067
5068 2020-05-20 Alan Modra <amodra@gmail.com>
5069
5070 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
5071 rather than accessing bfd->filename directly.
5072 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
5073 and use bfd_section_name.
5074 * dwarf2/frame.c (decode_frame_entry): Likewise.
5075 * exec.c (exec_set_section_address): Likewise.
5076 * solib-aix.c (solib_aix_bfd_open): Likewise.
5077 * stap-probe.c (get_stap_base_address): Likewise.
5078 * symfile.c (reread_symbols): Likewise.
5079
5080 2020-05-19 Tom Tromey <tromey@adacore.com>
5081
5082 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
5083
5084 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
5085
5086 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
5087
5088 2020-05-19 Pedro Alves <palves@redhat.com>
5089
5090 * NEWS (set exec-file-mismatch): Adjust entry.
5091 * exec.c: Include "build-id.h".
5092 (validate_exec_file): Try to match build IDs instead of filenames.
5093 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
5094 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
5095 and pass down 'warn_if_slow'.
5096 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
5097 gdb_bfd_open_closure to pass it down.
5098 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
5099
5100 2020-05-19 Pedro Alves <palves@redhat.com>
5101
5102 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
5103 * target.c (target_fileio_open_1): Rename to target_fileio_open
5104 and make extern. Use bool.
5105 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
5106 (target_fileio_read_alloc_1): Adjust.
5107 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
5108 (target_fileio_open_warn_if_slow): Delete declaration.
5109
5110 2020-05-19 Pedro Alves <palves@redhat.com>
5111
5112 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
5113 Adjust all callers.
5114
5115 2020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
5116
5117 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
5118 whether disp is negative.
5119
5120 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
5121
5122 * symfile.h (struct symfile_segment_data)
5123 <~symfile_segment_data>: Remove.
5124 <segment_info>: Change to std::vector.
5125 * symfile.c (default_symfile_segments): Update.
5126 * elfread.c (elf_symfile_segments): Update.
5127
5128 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
5129
5130 * symfile.h (struct symfile_segment_data) <struct segment>: New.
5131 <segments>: New.
5132 <segment_bases, segment_sizes>: Remove.
5133 * symfile.c (default_symfile_segments): Update.
5134 * elfread.c (elf_symfile_segments): Update.
5135 * remote.c (remote_target::get_offsets): Update.
5136 * solib-target.c (solib_target_relocate_section_addresses):
5137 Update.
5138
5139 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
5140
5141 * symfile.h (struct symfile_segment_data): Initialize fields.
5142 <~symfile_segment_data>: Add.
5143 (symfile_segment_data_up): New.
5144 (struct sym_fns) <sym_segments>: Return a
5145 symfile_segment_data_up.
5146 (default_symfile_segments): Return a symfile_segment_data_up.
5147 (free_symfile_segment_data): Remove.
5148 (get_symfile_segment_data): Return a symfile_segment_data_up.
5149 * symfile.c (default_symfile_segments): Likewise.
5150 (get_symfile_segment_data): Likewise.
5151 (free_symfile_segment_data): Remove.
5152 (symfile_find_segment_sections): Update.
5153 * elfread.c (elf_symfile_segments): Return a
5154 symfile_segment_data_up.
5155 * remote.c (remote_target::get_offsets): Update.
5156 * solib-target.c (solib_target_relocate_section_addresses):
5157 Update.
5158 * symfile-debug.c (debug_sym_segments): Return a
5159 symfile_segment_data_up.
5160
5161 2020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5162
5163 PR build/25981
5164 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
5165 Hardcode register numbers.
5166
5167 PR build/25981
5168 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
5169 procfs_find_LDT_entry): Remove.
5170 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
5171 procfs_find_LDT_entry): Remove.
5172 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
5173 Remove.
5174
5175 2020-05-17 Pedro Alves <palves@redhat.com>
5176 Andrew Burgess <andrew.burgess@embecosm.com>
5177 Keno Fischer <keno@juliacomputing.com>
5178
5179 PR gdb/25741
5180 * breakpoint.c (build_target_condition_list): Update comments.
5181 (build_target_command_list): Update comments and skip matching
5182 locations.
5183 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
5184 a separate function. Simplify "set breakpoint auto-hw off"
5185 handling.
5186 (insert_breakpoints): Update comment.
5187 (tracepoint_locations_match): New parameter. For breakpoints,
5188 compare location types too, if the caller wants to.
5189 (handle_automatic_hardware_breakpoints): New functions.
5190 (bp_location_is_less_than): Also sort by location type and
5191 hardware breakpoint length.
5192 (update_global_location_list): Handle "set breakpoint auto-hw on"
5193 here.
5194 (update_breakpoint_locations): Ask breakpoint_locations_match to
5195 ignore location types.
5196
5197 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
5198
5199 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
5200 type::name instead.
5201
5202 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
5203
5204 * gdbtypes.h (struct type) <name, set_name>: New methods.
5205 (TYPE_CODE): Use type::name. Change all call sites used to set
5206 the name to use type::set_name instead.
5207
5208 2020-05-16 Tom Tromey <tom@tromey.com>
5209
5210 * top.c (quit_force): Update.
5211 * infrun.c (handle_no_resumed): Update.
5212 * top.h (all_uis): New function.
5213 (ALL_UIS): Remove.
5214
5215 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
5216
5217 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
5218
5219 2020-05-16 Pedro Alves <palves@redhat.com>
5220
5221 * ia64-linux-nat.c
5222 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
5223 Declare method.
5224 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
5225
5226 2020-05-15 Simon Marchi <simon.marchi@efficios.com>
5227
5228 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
5229 (sparc64_adi_info): Likewise.
5230
5231 2020-05-15 Tom Tromey <tom@tromey.com>
5232
5233 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
5234 block_objfile.
5235 (lookup_objfile_from_block): Remove.
5236 (lookup_symbol_in_block, lookup_symbol_in_static_block)
5237 (lookup_global_symbol): Use block_objfile.
5238 * symtab.h (lookup_objfile_from_block): Don't declare.
5239 * printcmd.c (clear_dangling_display_expressions): Use
5240 block_objfile.
5241 * parse.c (operator_check_standard): Use block_objfile.
5242
5243 2020-05-15 Tom Tromey <tom@tromey.com>
5244
5245 * language.c (language_alloc_type_symbol): Set
5246 SYMBOL_SECTION.
5247 * symtab.c (initialize_objfile_symbol): Remove.
5248 (allocate_symbol): Remove.
5249 (allocate_template_symbol): Remove.
5250 * dwarf2/read.c (fixup_go_packaging): Use "new".
5251 (new_symbol): Use "new".
5252 (read_variable): Don't call initialize_objfile_symbol. Use
5253 "new".
5254 (read_func_scope): Use "new".
5255 * xcoffread.c (process_xcoff_symbol): Don't call
5256 initialize_objfile_symbol.
5257 (SYMBOL_DUP): Remove.
5258 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
5259 "new".
5260 * symtab.h (allocate_symbol, initialize_objfile_symbol)
5261 (allocate_template_symbol): Don't declare.
5262 (struct symbol): Add copy constructor. Change defaults.
5263 * jit.c (finalize_symtab): Use "new".
5264 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
5265 Use "new".
5266 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
5267 (common_block_end): Use "new".
5268 * mdebugread.c (parse_symbol): Use "new".
5269 (new_symbol): Likewise.
5270
5271 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5272
5273 * NEWS: Mention changes to help and apropos.
5274
5275 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5276
5277 * command.h (enum command_class): Improve comments, document
5278 that class_alias is for user-defined aliases, give the class
5279 name for each class, remove unused class_xdb.
5280 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
5281 * breakpoint.c (_initialize_breakpoint): Replace class_alias
5282 by a precise class.
5283 * infcmd.c (_initialize_infcmd): Likewise.
5284 * reverse.c (_initialize_reverse): Likewise.
5285 * stack.c (_initialize_stack): Likewise.
5286 * symfile.c (_initialize_symfile): Likewise.
5287 * tracepoint.c (_initialize_tracepoint): Likewise.
5288
5289 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5290
5291 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
5292 when their aliased command is traversed.
5293 (help_cmd): Add fput_command_names_styled call to
5294 output command name and aliases when command has an alias.
5295
5296 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5297
5298 * cli/cli-decode.h (help_cmd_list): Remove declaration.
5299 * cli/cli-decode.c (help_cmd_list): Declare as static,
5300 remove prefix argument, use bool for recurse arg, rework to show the aliases of
5301 a command together with the command.
5302 (fput_command_name_styled, fput_command_names_styled): New functions.
5303 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
5304 fput_command_name_styled.
5305 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
5306 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
5307
5308 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5309
5310 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
5311 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
5312 * command.h (cmd_show_list): Likewise.
5313 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
5314 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
5315
5316 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5317
5318 * unittests/command-def-selftests.c (traverse_command_structure):
5319 Verify all commands of a list have the same prefix command and
5320 that only the top cmdlist commands have a null prefix.
5321
5322 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5323
5324 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
5325 as prefix, not one of its aliases.
5326 (set_cmd_prefix): Remove.
5327 (do_add_cmd): Centralize the setting of the prefix of a command, when
5328 command is defined after its full chain of prefix commands.
5329 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
5330 (add_setshow_cmd_full): Likewise.
5331 (update_prefix_field_of_prefixed_commands): New function.
5332 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
5333 update_prefix_field_of_prefixed_commands.
5334 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
5335 addresses of remote_set_cmdlist and remote_show_cmdlist given
5336 as argument, not the address of an argument.
5337 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
5338 * gdb/remote.c (_initialize_remote): Likewise.
5339
5340 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5341
5342 * cli/cli-cmds.c (alias_command): Check for an existing alias
5343 using lookup_cmd_composition, as valid_command_p is too strict
5344 and forbids aliases that are the prefix of an existing alias
5345 or command.
5346 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
5347 command is properly recognised as a valid command.
5348
5349 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5350
5351 * unittests/help-doc-selftests.c: Rename to
5352 unittests/command-def-selftests.c
5353 * unittests/command-def-selftests.c (help_doc_tests): Update some
5354 comments.
5355 (command_structure_tests, traverse_command_structure): New namespace
5356 and function.
5357 (command_structure_invariants_tests): New function.
5358 (_initialize_command_def_selftests) Renamed from
5359 _initialize_help_doc_selftests, register command_structure_invariants
5360 selftest.
5361
5362 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5363
5364 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
5365 an alias of 'show'.
5366
5367 2020-05-15 Joel Brobecker <brobecker@adacore.com>
5368
5369 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
5370 ada_is_fixed_point_type. Update all callers.
5371 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
5372 all callers.
5373 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
5374 Update all callers.
5375 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
5376 print_fixed_point_type. Update all callers.
5377 * ada-valprint.c (ada_value_print_num): Replace call to
5378 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
5379
5380 2020-05-14 Kevin Buettner <kevinb@redhat.com>
5381
5382 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
5383 processors.
5384 (cpu_supports_bts): Add CV_AMD case.
5385
5386 2020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
5387 Simon Marchi <simon.marchi@efficios.com>
5388
5389 * infrun.c (stop_all_threads): Collect multiple wait events at
5390 each pass.
5391
5392 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
5393
5394 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
5395 type::code instead.
5396
5397 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
5398
5399 * gdbtypes.h (struct type) <code, set_code>: New methods.
5400 (TYPE_CODE): Use type::code. Change all call sites used to set
5401 the code to use type::set_code instead.
5402
5403 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5404 Tom de Vries <tdevries@suse.de>
5405 Pedro Alves <palves@redhat.com>
5406
5407 PR threads/25478
5408 * infrun.c (stop_all_threads): Do NOT ignore
5409 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
5410 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
5411 received.
5412 (handle_no_resumed): Remove code handling a live inferior with no
5413 threads.
5414 * remote.c (has_single_non_exited_thread): New.
5415 (remote_target::update_thread_list): Do not delete a thread if is
5416 the last thread of the process.
5417 * thread.c (thread_select): Call delete_exited_threads instead of
5418 prune_threads.
5419
5420 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5421
5422 * infrun.c (stop_all_threads): Enable/disable thread events of all
5423 targets. Move a debug message denoting the end of the function
5424 into the SCOPED_EXIT block.
5425
5426 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5427
5428 * process-stratum-target.h: Include <set>.
5429 (all_non_exited_process_targets, switch_to_target_no_thread): New
5430 function declarations.
5431 * process-stratum-target.c (all_non_exited_process_targets)
5432 (switch_to_target_no_thread): New function implementations.
5433
5434 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5435
5436 * infrun.c (handle_inferior_event): Extract out a piece of code
5437 into...
5438 (mark_non_executing_threads): ...this new function.
5439
5440 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5441
5442 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
5443 use.
5444
5445 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5446
5447 * regcache.c (regcache_read_pc_protected): New function
5448 implementation that returns 0 if the PC cannot read via
5449 'regcache_read_pc'.
5450 * infrun.c (proceed): Call 'regcache_read_pc_protected'
5451 instead of 'regcache_read_pc'.
5452 (keep_going_pass_signal): Ditto.
5453
5454 2020-05-13 Tom Tromey <tromey@adacore.com>
5455
5456 * ada-lang.c (align_value): Remove.
5457 (ada_template_to_fixed_record_type_1): Use align_up.
5458
5459 2020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5460
5461 * async-event.c: Update the copyright year.
5462 * async-event.h: Update the copyright year.
5463
5464 2020-05-12 Simon Marchi <simon.marchi@efficios.com>
5465
5466 * objfiles.h (is_addr_in_objfile,
5467 shared_objfile_contains_address_p): Return bool.
5468 * objfile.c (is_addr_in_objfile,
5469 shared_objfile_contains_address_p): Return bool.
5470
5471 2020-05-11 Tom Tromey <tromey@adacore.com>
5472
5473 * cli/cli-cmds.c (info_command): Restore.
5474 (_initialize_cli_cmds): Use add_prefix_command for "info".
5475 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
5476
5477 2020-05-11 Tom Tromey <tromey@adacore.com>
5478
5479 * ada-lang.c (ada_value_primitive_field): Now public.
5480 * ada-lang.h (ada_value_primitive_field): Declare.
5481 * ada-valprint.c (print_field_values): Use
5482 ada_value_primitive_field for wrapper fields.
5483
5484 2020-05-11 Tom de Vries <tdevries@suse.de>
5485
5486 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
5487 MODULE_DOMAIN.
5488
5489 2020-05-11 Tom de Vries <tdevries@suse.de>
5490
5491 PR symtab/25941
5492 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
5493 with length 0, if not gdb-produced.
5494 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
5495
5496 2020-05-09 Tom de Vries <tdevries@suse.de>
5497
5498 PR gdb/25955
5499 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
5500 calculation.
5501
5502 2020-05-09 Tom Tromey <tom@tromey.com>
5503
5504 * top.c (server_command): Now bool.
5505 * top.h (server_command): Now bool.
5506
5507 2020-05-08 Tom Tromey <tromey@adacore.com>
5508
5509 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
5510 already being processed.
5511
5512 2020-05-08 Tom Tromey <tom@tromey.com>
5513
5514 * printcmd.c (struct display) <next>: Remove.
5515 <display>: New constructor.
5516 <exp_string>: Now a std::string.
5517 <enabled_p>: Now a bool.
5518 (display_number): Move definition earlier.
5519 (displays): Rename from display_chain. Now a std::vector.
5520 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
5521 (display_command): Update.
5522 (do_one_display, disable_display)
5523 (enable_disable_display_command, do_enable_disable_display):
5524 Update.
5525 (free_display): Remove.
5526 (clear_displays): Rewrite.
5527 (delete_display): Update.
5528 (map_display_numbers): Use function_view. Remove "data"
5529 parameter. Update.
5530 (do_delete_display): Remove.
5531 (undisplay_command): Update.
5532 (do_one_display, do_displays, disable_display)
5533 (info_display_command): Update.
5534 (do_enable_disable_display): Remove.
5535 (enable_disable_display_command)
5536 (clear_dangling_display_expressions): Update.
5537
5538 2020-05-08 Tom Tromey <tom@tromey.com>
5539
5540 * symtab.c (set_symbol_cache_size)
5541 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
5542 (maintenance_print_symbol_cache_statistics): Update.
5543 * symmisc.c (print_symbol_bcache_statistics)
5544 (print_objfile_statistics, maintenance_print_objfiles)
5545 (maintenance_info_symtabs, maintenance_check_symtabs)
5546 (maintenance_expand_symtabs, maintenance_info_line_tables):
5547 Update.
5548 * symfile-debug.c (set_debug_symfile): Update.
5549 * source.c (forget_cached_source_info): Update.
5550 * python/python.c (gdbpy_progspaces): Update.
5551 * psymtab.c (maintenance_info_psymtabs): Update.
5552 * probe.c (parse_probes): Update.
5553 * linespec.c (iterate_over_all_matching_symtabs)
5554 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
5555 * guile/scm-progspace.c (gdbscm_progspaces): Update.
5556 * exec.c (exec_target::close): Update.
5557 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
5558 * breakpoint.c (print_one_breakpoint_location)
5559 (create_longjmp_master_breakpoint)
5560 (create_std_terminate_master_breakpoint): Update.
5561 * progspace.c (program_spaces): Now a std::vector.
5562 (maybe_new_address_space): Update.
5563 (add_program_space): Remove.
5564 (program_space::program_space): Update.
5565 (remove_program_space): Update.
5566 (number_of_program_spaces): Remove.
5567 (print_program_space, update_address_spaces): Update.
5568 * progspace.h (program_spaces): Change type.
5569 (ALL_PSPACES): Remove.
5570 (number_of_program_spaces): Don't declare.
5571 (struct program_space) <next>: Remove.
5572
5573 2020-05-08 Tom Tromey <tom@tromey.com>
5574
5575 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
5576 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
5577 (enable_break): Update.
5578 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
5579 (frv_fdpic_find_canonical_descriptor): Update.
5580 (frv_fetch_objfile_link_map): Update.
5581 * progspace.c (program_space::free_all_objfiles): Update.
5582 (program_space::solibs): New method.
5583 * progspace.h (struct program_space) <solibs>: New method.
5584 * solist.h (master_so_list): Don't declare.
5585 (ALL_SO_LIBS): Remove.
5586 * solib.h (so_list_head): Remove.
5587 (update_solib_list): Update comment.
5588 * solib.c (master_so_list): Remove.
5589 (solib_used, update_solib_list, solib_add)
5590 (info_sharedlibrary_command, clear_solib)
5591 (reload_shared_libraries_1, remove_user_added_objfile): Update.
5592
5593 2020-05-08 Tom Tromey <tom@tromey.com>
5594
5595 * extension.c (extension_languages): Now a std::array.
5596 (ALL_EXTENSION_LANGUAGES): Remove.
5597 (get_ext_lang_defn, get_ext_lang_of_file)
5598 (eval_ext_lang_from_control_command): Update.
5599 (finish_ext_lang_initialization)
5600 (auto_load_ext_lang_scripts_for_objfile)
5601 (ext_lang_type_printers::ext_lang_type_printers)
5602 (apply_ext_lang_type_printers)
5603 (ext_lang_type_printers::~ext_lang_type_printers)
5604 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
5605 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
5606 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
5607 (get_matching_xmethod_workers, ext_lang_colorize)
5608 (ext_lang_before_prompt): Update.
5609 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
5610
5611 2020-05-08 Tom Tromey <tom@tromey.com>
5612
5613 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
5614 overload.
5615 <swap_string, m_string>: Remove.
5616 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
5617 Update.
5618 * stabsread.c (define_symbol, read_type): Update.
5619 * linespec.c (find_linespec_symbols): Update.
5620 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
5621 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
5622 * dbxread.c (read_dbx_symtab): Update.
5623 * cp-support.h (cp_canonicalize_string_full)
5624 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
5625 Return unique_xmalloc_ptr.
5626 * cp-support.c (inspect_type): Update.
5627 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
5628 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
5629 Likewise.
5630 * c-typeprint.c (print_name_maybe_canonical): Update.
5631 * break-catch-throw.c (check_status_exception_catchpoint):
5632 Update.
5633
5634 2020-05-08 Tom de Vries <tdevries@suse.de>
5635
5636 * infrun.c (follow_fork): Copy current_line and current_symtab to
5637 child thread.
5638
5639 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
5640
5641 * async-event.c (struct async_signal_handler, struct
5642 async_event_handler): Reformat, remove typedef.
5643
5644 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
5645
5646 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
5647 access thistype->main_type->dyn_prop_list directly.
5648
5649 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
5650
5651 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
5652 (remove_dyn_prop): Remove. Update all users to use
5653 type::remove_dyn_prop.
5654 * gdbtypes.c (remove_dyn_prop): Rename to...
5655 (type::remove_dyn_prop): ... this.
5656
5657 2020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
5658
5659 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
5660 (add_dyn_prop): Remove. Update all users to use
5661 type::add_dyn_prop.
5662 * gdbtypes.c (add_dyn_prop): Rename to...
5663 (type::add_dyn_prop): ... this.
5664
5665 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
5666
5667 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
5668 (get_dyn_prop): Remove. Update all users to use
5669 type::dyn_prop.
5670 * gdbtypes.c (get_dyn_prop): Rename to...
5671 (type::dyn_prop): ... this.
5672
5673 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
5674
5675 * gdbtypes.h (struct main_type) <flag_static>: Remove.
5676
5677 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
5678
5679 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
5680 instruction, skip it if it's there.
5681
5682 2020-05-05 Simon Marchi <simon.marchi@efficios.com>
5683
5684 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
5685
5686 2020-05-04 Simon Marchi <simon.marchi@efficios.com>
5687
5688 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
5689 * gdbtypes.c (recursive_dump_type): Remove use of
5690 TYPE_INCOMPLETE.
5691
5692 2020-05-03 Tom Tromey <tom@tromey.com>
5693
5694 * breakpoint.c (catch_command, tcatch_command): Remove.
5695 (_initialize_breakpoint): Use add_basic_prefix_cmd,
5696 add_show_prefix_cmd.
5697 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
5698 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
5699 Remove.
5700 (add_internal_problem_command): Use add_basic_prefix_cmd,
5701 add_show_prefix_cmd.
5702 * mips-tdep.c (set_mipsfpu_command): Remove.
5703 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
5704 * dwarf2/index-cache.c (set_index_cache_command): Remove.
5705 (_initialize_index_cache): Use add_basic_prefix_cmd.
5706 * memattr.c (dummy_cmd): Remove.
5707 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
5708 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
5709 (_initialize_tui_win): Use add_basic_prefix_cmd,
5710 add_show_prefix_cmd.
5711 * cli/cli-logging.c (set_logging_command): Remove.
5712 (_initialize_cli_logging): Use add_basic_prefix_cmd,
5713 add_show_prefix_cmd.
5714 (show_logging_command): Remove.
5715 * target.c (target_command): Remove.
5716 (add_target): Use add_basic_prefix_cmd.
5717
5718 2020-05-02 Hannes Domani <ssbssa@yahoo.de>
5719
5720 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
5721
5722 2020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5723
5724 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
5725 info_command.
5726
5727 2020-04-30 Kamil Rytarowski <n54@gmx.com>
5728
5729 * nbsd-nat.c (nbsd_enable_proc_events)
5730 (nbsd_nat_target::post_startup_inferior): Add.
5731 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
5732 (nbsd_nat_target::update_thread_list): Rewrite.
5733 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
5734 "PTRACE_LWP_CREATE".
5735 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
5736
5737 2020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5738
5739 * stack.c (_initialize_stack): Remove duplicated creation
5740 of "frame" command and "f" alias.
5741
5742 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
5743
5744 PR gdb/18706
5745 * gdbtypes.c (check_typedef): Calculate size of array of
5746 stubbed type.
5747
5748 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
5749
5750 PR gdb/15559
5751 * i386-tdep.c (i386_push_dummy_call): Call
5752 i386_thiscall_push_dummy_call.
5753 (i386_thiscall_push_dummy_call): New function.
5754 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
5755 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
5756 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
5757
5758 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
5759
5760 * gdbarch.sh (do_read): Add shellcheck disable directive for
5761 warning SC2162.
5762
5763 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
5764
5765 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
5766 "referenced but not assigned" warning.
5767
5768 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
5769
5770 * gdbarch.sh: Remove code that sets fallbackdefault.
5771
5772 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
5773
5774 * gdbarch.sh: Use shell operators && and || instead of
5775 -a and -o.
5776
5777 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
5778
5779 * gdbarch.sh: Use $(...) instead of `...`.
5780
5781 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
5782
5783 * gdbarch.sh: Use double quotes around variables.
5784
5785 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
5786
5787 * gdbarch.sh: Use %s with printf, instead of variables in the
5788 format string.
5789
5790 2020-04-29 Tom Tromey <tromey@adacore.com>
5791
5792 PR ada/25875:
5793 * dwarf2/read.c (update_enumeration_type_from_children): Compute
5794 type fields here.
5795 (read_enumeration_type): Call
5796 update_enumeration_type_from_children later. Update comments.
5797 (process_enumeration_scope): Don't create type fields.
5798
5799 2020-04-29 Kamil Rytarowski <n54@gmx.com>
5800
5801 * nbsd-tdep.c: Include "xml-syscall.h".
5802 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
5803
5804 2020-04-29 Kamil Rytarowski <n54@gmx.com>
5805
5806 * nbsd-nat.c: Include "sys/wait.h".
5807 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
5808 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
5809 (nbsd_nat_target::remove_exec_catchpoint)
5810 (nbsd_nat_target::set_syscall_catchpoint): Add.
5811 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
5812 (nbsd_nat_target::insert_exec_catchpoint)
5813 (nbsd_nat_target::remove_exec_catchpoint)
5814 (nbsd_nat_target::set_syscall_catchpoint): Add.
5815 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
5816 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
5817 `nbsd_get_syscall_number'.
5818
5819 2020-04-29 Tom Tromey <tom@tromey.com>
5820
5821 * stack.c (print_block_frame_labels): Remove.
5822
5823 2020-04-29 Hannes Domani <ssbssa@yahoo.de>
5824
5825 PR gdb/17320
5826 * ada-valprint.c (val_print_packed_array_elements): Move array
5827 end bracket to new line.
5828 (ada_val_print_string): Remove extra spaces before first array
5829 element.
5830 * c-valprint.c (c_value_print_array): Likewise.
5831 * m2-valprint.c (m2_print_array_contents): Likewise.
5832 (m2_value_print_inner): Likewise.
5833 * p-valprint.c (pascal_value_print_inner): Likewise.
5834 * valprint.c (generic_val_print_array): Likewise.
5835 (value_print_array_elements): Move first array element and array
5836 end bracket to new line.
5837
5838 2020-04-29 Tom de Vries <tdevries@suse.de>
5839
5840 PR symtab/25889
5841 * linespec.c (find_method): Fix ix calculation.
5842
5843 2020-04-28 Kamil Rytarowski <n54@gmx.com>
5844
5845 * syscalls/update-netbsd.sh: New file.
5846 * syscalls/netbsd.xml: Regenerate.
5847 * data-directory/Makefile.in: Register `netbsd.xml' in
5848 `SYSCALLS_FILES'.
5849
5850 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
5851
5852 * syscalls/update-freebsd.sh: Add double quotes.
5853
5854 2020-04-28 Tom Tromey <tom@tromey.com>
5855
5856 * NEWS: Update.
5857 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
5858 (cmdpy_init): Allow class_tui.
5859
5860 2020-04-28 Mark Williams <mark@myosotissp.com>
5861
5862 PR gdb/24480
5863 * dwarf2read.c: Add missing assingments to list_in_scope when
5864 start_symtab was already called.
5865
5866 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
5867
5868 PR gdb/25881
5869 * dwarf2/read.c (offset_map_type): Use
5870 gdb:hash_enum<sect_offset> as hash function.
5871
5872 2020-04-28 Tom de Vries <tdevries@suse.de>
5873
5874 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
5875 with DW_AT_signature.
5876
5877 2020-04-27 Simon Marchi <simon.marchi@efficios.com>
5878
5879 * configure.ac: Remove check for fs_base/gs_base in
5880 user_regs_struct.
5881 * configure: Re-generate.
5882 * config.in: Re-generate.
5883 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
5884 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
5885 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
5886
5887 2020-04-27 Luis Machado <luis.machado@linaro.org>
5888
5889 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
5890 problematic inline frame unwinding situation.
5891 * frame.c (frame_id_computed_p): New function.
5892 * frame.h (frame_id_computed_p): New prototype.
5893
5894 2020-04-26 Tom Tromey <tom@tromey.com>
5895
5896 * command.h (enum command_class) <class_pseudo>: Remove.
5897
5898 2020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5899
5900 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
5901 and whitespace.
5902
5903 2020-04-25 Kamil Rytarowski <n54@gmx.com>
5904
5905 * inf-ptrace.c (inf_ptrace_target::wait): Remove
5906 `PT_GET_PROCESS_STATE' block.
5907
5908 2020-04-24 Tom Tromey <tom@tromey.com>
5909
5910 * symtab.h (symbol_get_demangled_name): Don't declare.
5911 * symtab.c (symbol_get_demangled_name): Remove.
5912 (general_symbol_info::natural_name)
5913 (general_symbol_info::demangled_name): Update.
5914
5915 2020-04-24 Tom Tromey <tom@tromey.com>
5916
5917 PR rust/25025:
5918 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
5919
5920 2020-04-24 Tom Tromey <tom@tromey.com>
5921
5922 PR symtab/12707:
5923 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
5924 exists.
5925 (new_symbol): Likewise.
5926 * compile/compile-object-load.c (get_out_value_type): Use
5927 symbol_matches_search_name.
5928
5929 2020-04-24 Tom Tromey <tom@tromey.com>
5930
5931 * dwarf2/read.c (add_partial_symbol): Do not call
5932 compute_and_set_names.
5933
5934 2020-04-24 Tom Tromey <tom@tromey.com>
5935
5936 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
5937 overload.
5938
5939 2020-04-24 Tom Tromey <tom@tromey.com>
5940
5941 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
5942 (add_psymbol_to_list): New overload. Make old overload call new
5943 one.
5944 * psympriv.h (add_psymbol_to_list): New overload.
5945
5946 2020-04-24 Tom Tromey <tom@tromey.com>
5947
5948 * dwarf2/read.c (partial_die_info::read) <case
5949 DW_AT_linkage_name>: Use value_as_string.
5950 (dwarf2_string_attr): Use value_as_string.
5951 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
5952 method.
5953 * dwarf2/attribute.c (attribute::value_as_string): New method.
5954
5955 2020-04-24 Tom Tromey <tom@tromey.com>
5956
5957 * symtab.c (general_symbol_info::natural_name)
5958 (general_symbol_info::demangled_name): Check for language_rust.
5959
5960 2020-04-24 Tom Tromey <tom@tromey.com>
5961
5962 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
5963 (dwarf2_physname): ... from here.
5964 (partial_die_info::read): Add Rust "{" hack.
5965
5966 2020-04-24 Tom Tromey <tom@tromey.com>
5967
5968 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
5969 method.
5970 (symbol_set_demangled_name): Don't declare.
5971 * symtab.c (general_symbol_info::set_demangled_name): Rename from
5972 symbol_set_demangled_name.
5973 (general_symbol_info::set_language)
5974 (general_symbol_info::compute_and_set_names): Update.
5975 * minsyms.c (minimal_symbol_reader::install): Update.
5976 * dwarf2/read.c (new_symbol): Update.
5977
5978 2020-04-24 Tom Tromey <tromey@adacore.com>
5979
5980 PR python/23662:
5981 * python/py-type.c (convert_field): Handle
5982 FIELD_LOC_KIND_DWARF_BLOCK.
5983 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
5984 (typy_get_dynamic): Nw function.
5985 (type_object_getset): Add "dynamic".
5986 * NEWS: Add entry.
5987
5988 2020-04-24 Tom Tromey <tromey@adacore.com>
5989
5990 * ada-typeprint.c (print_choices, print_variant_part)
5991 (print_record_field_types_dynamic): New functions.
5992 (print_record_field_types): Use print_record_field_types_dynamic.
5993
5994 2020-04-24 Tom Tromey <tromey@adacore.com>
5995
5996 * dwarf2/read.c (handle_data_member_location): New overload.
5997 (dwarf2_add_field): Use it.
5998 (decode_locdesc): Add "computed" parameter. Update comment.
5999 * gdbtypes.c (is_dynamic_type_internal): Also look for
6000 FIELD_LOC_KIND_DWARF_BLOCK.
6001 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
6002 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
6003 virtual base classes.
6004 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
6005 FIELD_LOC_KIND_DWARF_BLOCK.
6006
6007 2020-04-24 Tom Tromey <tromey@adacore.com>
6008
6009 * dwarf2/read.c (read_structure_type): Handle dynamic length.
6010 * gdbtypes.c (is_dynamic_type_internal): Check
6011 TYPE_HAS_DYNAMIC_LENGTH.
6012 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
6013 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
6014 New macros.
6015 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
6016 constant.
6017
6018 2020-04-24 Tom Tromey <tromey@adacore.com>
6019
6020 * dwarf2/read.c (struct variant_field): Rewrite.
6021 (struct variant_part_builder): New.
6022 (struct nextfield): Remove "variant" field. Add "offset".
6023 (struct field_info): Add "current_variant_part" and
6024 "variant_parts".
6025 (alloc_discriminant_info): Remove.
6026 (alloc_rust_variant): New function.
6027 (quirk_rust_enum): Update.
6028 (dwarf2_add_field): Set "offset" member. Don't handle
6029 DW_TAG_variant_part.
6030 (offset_map_type): New typedef.
6031 (convert_variant_range, create_one_variant)
6032 (create_one_variant_part, create_variant_parts)
6033 (add_variant_property): New functions.
6034 (dwarf2_attach_fields_to_type): Call add_variant_property.
6035 (read_structure_type): Don't handle DW_TAG_variant_part.
6036 (handle_variant_part, handle_variant): New functions.
6037 (handle_struct_member_die): Use them.
6038 (process_structure_scope): Don't handle variant parts.
6039 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
6040 (struct discriminant_info): Remove.
6041 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
6042 (struct main_type) <flag_discriminated_union>: Remove.
6043 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
6044 (rust_enum_variant): Return int. Remove "contents". Rewrite.
6045 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
6046 Update.
6047 * valops.c (value_union_variant): Remove.
6048 * value.h (value_union_variant): Don't declare.
6049
6050 2020-04-24 Tom Tromey <tromey@adacore.com>
6051
6052 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
6053 (ada_value_primitive_packed_val): Update.
6054 * ada-valprint.c (ada_value_print_1): Update.
6055 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
6056 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
6057 just an address. Use evaluate_for_locexpr_baton.
6058 (dwarf2_evaluate_property): Update.
6059 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
6060 array_view.
6061 * findvar.c (default_read_var_value): Update.
6062 * gdbtypes.c (compute_variant_fields_inner)
6063 (resolve_dynamic_type_internal): Update.
6064 (resolve_dynamic_type): Change type of valaddr parameter.
6065 * gdbtypes.h (resolve_dynamic_type): Update.
6066 * valarith.c (value_subscripted_rvalue): Update.
6067 * value.c (value_from_contents_and_address): Update.
6068
6069 2020-04-24 Tom Tromey <tromey@adacore.com>
6070
6071 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
6072 "push_initial_value" parameter.
6073 (dwarf2_evaluate_property): Likewise.
6074 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
6075
6076 2020-04-24 Tom Tromey <tromey@adacore.com>
6077
6078 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
6079 (variant::matches, compute_variant_fields_recurse)
6080 (compute_variant_fields_inner, compute_variant_fields): New
6081 functions.
6082 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
6083 Use resolved_type after type is made.
6084 (operator==): Add new cases.
6085 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
6086 (struct discriminant_range, struct variant, struct variant_part):
6087 New.
6088 (union dynamic_prop_data) <variant_parts, original_type>: New
6089 members.
6090 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
6091 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
6092 constants.
6093 * value.c (unpack_bits_as_long): Now public.
6094 * value.h (unpack_bits_as_long): Declare.
6095
6096 2020-04-24 Tom Tromey <tromey@adacore.com>
6097
6098 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
6099 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
6100
6101 2020-04-24 Hannes Domani <ssbssa@yahoo.de>
6102
6103 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
6104
6105 2020-04-24 Kamil Rytarowski <n54@gmx.com>
6106
6107 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
6108 (remove_fork_catchpoint, post_startup_inferior)
6109 (post_attach): Move...
6110 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
6111 (remove_fork_catchpoint, post_startup_inferior)
6112 (post_attach): ...here.
6113 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
6114 (remove_fork_catchpoint, post_startup_inferior)
6115 (post_attach): Move...
6116 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
6117 (remove_fork_catchpoint, post_startup_inferior)
6118 (post_attach): ...here.
6119
6120 2020-04-24 Tom Tromey <tromey@adacore.com>
6121
6122 * nat/windows-nat.h (struct windows_thread_info)
6123 <pc_adjusted>: New member.
6124 * windows-nat.c (windows_fetch_one_register): Check
6125 pc_adjusted.
6126 (windows_nat_target::get_windows_debug_event)
6127 (windows_nat_target::wait): Set pc_adjusted.
6128
6129 2020-04-24 Tom de Vries <tdevries@suse.de>
6130
6131 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
6132 Run gdb-add-index inside temp dir.
6133
6134 2020-04-23 Tom Tromey <tromey@adacore.com>
6135
6136 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
6137 in loop.
6138
6139 2020-04-23 Luis Machado <luis.machado@linaro.org>
6140
6141 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
6142 get_frame_register instead of gdbarch_unwind_pc.
6143
6144 2020-04-23 Tom de Vries <tdevries@suse.de>
6145
6146 * symtab.c (lookup_global_symbol): Prefer def over decl.
6147
6148 2020-04-23 Tom de Vries <tdevries@suse.de>
6149
6150 PR symtab/25807
6151 * block.c (best_symbol, better_symbol): Promote to external.
6152 * block.h (best_symbol, better_symbol): Declare.
6153 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
6154 decl.
6155
6156 2020-04-23 Tom Tromey <tromey@adacore.com>
6157
6158 PR ada/25837:
6159 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
6160 "const char *", not a "const std::string &".
6161 <name_and_matcher::operator==>: Update.
6162 * unittests/lookup_name_info-selftests.c: Change type of
6163 "result".
6164
6165 2020-04-23 Tom Tromey <tom@tromey.com>
6166
6167 * inferior.h (iterate_over_inferiors): Don't declare.
6168 * inferior.c (iterate_over_inferiors): Remove.
6169 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
6170 Remove.
6171 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
6172 use iterate_over_inferiors.
6173 (darwin_resume_inferior_it)
6174 (struct resume_inferior_threads_param)
6175 (darwin_resume_inferior_threads_it): Remove.
6176 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
6177
6178 2020-04-23 Tom de Vries <tdevries@suse.de>
6179
6180 * blockframe.c (find_pc_partial_function): Use
6181 find_pc_sect_compunit_symtab rather than
6182 objfile->sf->qf->find_pc_sect_compunit_symtab.
6183
6184 2020-04-22 Tom de Vries <tdevries@suse.de>
6185
6186 PR symtab/25764
6187 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
6188 in psymtabs.
6189
6190 2020-04-22 Tom de Vries <tdevries@suse.de>
6191
6192 PR symtab/25801
6193 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
6194 symtabs.
6195
6196 2020-04-22 Tom de Vries <tdevries@suse.de>
6197
6198 PR symtab/25700
6199 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
6200 CU if already created.
6201
6202 2020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6203
6204 * infrun.c (displaced_step_fixup): Switch to the event_thread
6205 before calling displaced_step_restore, not after.
6206
6207 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
6208
6209 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
6210 its inferior is not recorded by us.
6211 (record_btrace_target_open): Replace call to
6212 all_non_exited_threads () with call to current_inferior
6213 ()->non_exited_threads ().
6214 (record_btrace_target::stop_recording): Likewise.
6215 (record_btrace_target::close): Likewise.
6216 (record_btrace_target::wait): Likewise.
6217 (record_btrace_target::record_stop_replaying): Likewise.
6218
6219 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
6220
6221 * btrace.c (btrace_enable): Throw an error on double enables and
6222 when enabling recording fails.
6223 (btrace_disable): Throw an error if the thread is not recorded.
6224
6225 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
6226
6227 * record-btrace.c (record_btrace_target::fetch_registers): Forward
6228 request if we do not have a thread_info.
6229
6230 2020-04-21 Tom de Vries <tdevries@suse.de>
6231
6232 PR gdb/25471
6233 * thread.c
6234 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
6235 exception in get_frame_id.
6236
6237 2020-04-20 Tom Tromey <tromey@adacore.com>
6238
6239 * python/python.c (struct gdbpy_event): Mark move constructor as
6240 noexcept.
6241 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
6242 constructor as noexcept.
6243 * completer.h (struct completion_result): Mark move constructor as
6244 noexcept.
6245 * completer.c (completion_result::completion_result): Use
6246 initialization style. Don't call reset_match_list.
6247
6248 2020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
6249
6250 * MAINTAINERS (Write After Approval): Add myself.
6251
6252 2020-04-18 Tom Tromey <tom@tromey.com>
6253
6254 * windows-tdep.c (init_w32_command_list)
6255 (w32_prefix_command_valid): Restore.
6256 (_initialize_windows_tdep): Call init_w32_command_list.
6257
6258 2020-04-18 Tom Tromey <tom@tromey.com>
6259
6260 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
6261 * value.c (value_fn_field): Update.
6262 * valops.c (find_function_in_inferior)
6263 (value_allocate_space_in_inferior): Update.
6264 * tui/tui-winsource.c (tui_update_source_windows_with_line):
6265 Update.
6266 * tui/tui-source.c (tui_source_window::set_contents): Update.
6267 * symtab.c (lookup_global_or_static_symbol)
6268 (find_function_start_sal_1, skip_prologue_sal)
6269 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
6270 * symmisc.c (dump_msymbols, dump_symtab_1)
6271 (maintenance_print_one_line_table): Update.
6272 * symfile.c (init_entry_point_info, section_is_mapped)
6273 (list_overlays_command, simple_read_overlay_table)
6274 (simple_overlay_update_1): Update.
6275 * stap-probe.c (handle_stap_probe): Update.
6276 * stabsread.c (dbx_init_float_type, define_symbol)
6277 (read_one_struct_field, read_enum_type, read_range_type): Update.
6278 * source.c (info_line_command): Update.
6279 * python/python.c (gdbpy_source_objfile_script)
6280 (gdbpy_execute_objfile_script): Update.
6281 * python/py-type.c (save_objfile_types): Update.
6282 * python/py-objfile.c (py_free_objfile): Update.
6283 * python/py-inferior.c (python_new_objfile): Update.
6284 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
6285 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
6286 (maintenance_check_psymtabs): Update.
6287 * printcmd.c (info_address_command): Update.
6288 * objfiles.h (struct objfile) <arch>: New method, from
6289 get_objfile_arch.
6290 (get_objfile_arch): Don't declare.
6291 * objfiles.c (get_objfile_arch): Remove.
6292 (filter_overlapping_sections): Update.
6293 * minsyms.c (msymbol_is_function): Update.
6294 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
6295 (output_nondebug_symbol): Update.
6296 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
6297 (mdebug_expand_psymtab): Update.
6298 * machoread.c (macho_add_oso_symfile): Update.
6299 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
6300 Update.
6301 * linux-fork.c (checkpoint_command): Update.
6302 * linespec.c (convert_linespec_to_sals): Update.
6303 * jit.c (finalize_symtab): Update.
6304 * infrun.c (insert_exception_resume_from_probe): Update.
6305 * ia64-tdep.c (ia64_find_unwind_table): Update.
6306 * hppa-tdep.c (internalize_unwinds): Update.
6307 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
6308 Update.
6309 * gcore.c (call_target_sbrk): Update.
6310 * elfread.c (record_minimal_symbol, elf_symtab_read)
6311 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
6312 (elf_gnu_ifunc_resolve_by_got): Update.
6313 * dwarf2/read.c (create_addrmap_from_index)
6314 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
6315 (read_debug_names_from_section)
6316 (process_psymtab_comp_unit_reader, add_partial_symbol)
6317 (add_partial_subprogram, process_full_comp_unit)
6318 (read_file_scope, read_func_scope, read_lexical_block_scope)
6319 (read_call_site_scope, dwarf2_ranges_read)
6320 (dwarf2_record_block_ranges, dwarf2_add_field)
6321 (mark_common_block_symbol_computed, read_tag_pointer_type)
6322 (read_tag_string_type, dwarf2_init_float_type)
6323 (dwarf2_init_complex_target_type, read_base_type)
6324 (partial_die_info::read, partial_die_info::read)
6325 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
6326 (dwarf2_fetch_die_loc_sect_off): Update.
6327 * dwarf2/loc.c (dwarf2_find_location_expression)
6328 (class dwarf_evaluate_loc_desc, rw_pieced_value)
6329 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
6330 (dwarf2_loc_desc_get_symbol_read_needs)
6331 (locexpr_describe_location_piece, locexpr_describe_location_1)
6332 (loclist_describe_location): Update.
6333 * dwarf2/index-write.c (write_debug_names): Update.
6334 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
6335 * dtrace-probe.c (dtrace_process_dof): Update.
6336 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
6337 (process_one_symbol): Update.
6338 * ctfread.c (ctf_init_float_type, read_base_type): Update.
6339 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
6340 (coff_read_enum_type): Update.
6341 * cli/cli-cmds.c (edit_command, list_command): Update.
6342 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
6343 * breakpoint.c (create_overlay_event_breakpoint)
6344 (create_longjmp_master_breakpoint)
6345 (create_std_terminate_master_breakpoint)
6346 (create_exception_master_breakpoint, get_sal_arch): Update.
6347 * block.c (block_gdbarch): Update.
6348 * annotate.c (annotate_source_line): Update.
6349
6350 2020-04-17 Tom Tromey <tromey@adacore.com>
6351
6352 * auto-load.c (show_auto_load_cmd): Remove.
6353 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
6354 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
6355 (maintenance_print_arc_command): Remove.
6356 * tui/tui-win.c (tui_command): Remove.
6357 (tui_get_cmd_list): Use add_basic_prefix_cmd.
6358 * tui/tui-layout.c (tui_layout_command): Remove.
6359 (_initialize_tui_layout): Use add_basic_prefix_cmd.
6360 * python/python.c (user_set_python, user_show_python): Remove.
6361 (_initialize_python): Use add_basic_prefix_cmd,
6362 add_show_prefix_cmd.
6363 * guile/guile.c (set_guile_command, show_guile_command): Remove.
6364 (install_gdb_commands): Use add_basic_prefix_cmd,
6365 add_show_prefix_cmd.
6366 (info_guile_command): Remove.
6367 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
6368 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
6369 add_show_prefix_cmd.
6370 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
6371 Remove do_set and do_show parameters.
6372 * cli/cli-style.c (set_style, show_style): Remove.
6373 (_initialize_cli_style): Use add_basic_prefix_cmd,
6374 add_show_prefix_cmd.
6375 (cli_style_option::add_setshow_commands): Remove do_set and
6376 do_show parameters.
6377 (cli_style_option::add_setshow_commands): Use
6378 add_basic_prefix_cmd, add_show_prefix_cmd.
6379 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
6380 (set_style_name): Remove.
6381 * cli/cli-dump.c (dump_command, append_command): Remove.
6382 (srec_dump_command, ihex_dump_command, verilog_dump_command)
6383 (tekhex_dump_command, binary_dump_command)
6384 (binary_append_command): Remove.
6385 (_initialize_cli_dump): Use add_basic_prefix_cmd.
6386 * windows-tdep.c (w32_prefix_command_valid): Remove global.
6387 (init_w32_command_list): Remove; move into ...
6388 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
6389 * valprint.c (set_print, show_print, set_print_raw)
6390 (show_print_raw): Remove.
6391 (_initialize_valprint): Use add_basic_prefix_cmd,
6392 add_show_prefix_cmd.
6393 * typeprint.c (set_print_type, show_print_type): Remove.
6394 (_initialize_typeprint): Use add_basic_prefix_cmd,
6395 add_show_prefix_cmd.
6396 * record.c (set_record_command, show_record_command): Remove.
6397 (_initialize_record): Use add_basic_prefix_cmd,
6398 add_show_prefix_cmd.
6399 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
6400 add_show_prefix_cmd.
6401 (info_command, show_command, set_debug, show_debug): Remove.
6402 * top.h (set_history, show_history): Don't declare.
6403 * top.c (set_history, show_history): Remove.
6404 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
6405 (unset_tdesc_cmd): Remove.
6406 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
6407 add_show_prefix_cmd.
6408 * symtab.c (info_module_command): Remove.
6409 (_initialize_symtab): Use add_basic_prefix_cmd.
6410 * symfile.c (overlay_command): Remove.
6411 (_initialize_symfile): Use add_basic_prefix_cmd.
6412 * sparc64-tdep.c (info_adi_command): Remove.
6413 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
6414 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
6415 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
6416 add_show_prefix_cmd.
6417 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
6418 (_initialize_serial): Use add_basic_prefix_cmd,
6419 add_show_prefix_cmd.
6420 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
6421 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
6422 add_show_prefix_cmd.
6423 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
6424 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
6425 add_show_prefix_cmd.
6426 * riscv-tdep.c (show_riscv_command, set_riscv_command)
6427 (show_debug_riscv_command, set_debug_riscv_command): Remove.
6428 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
6429 add_show_prefix_cmd.
6430 * remote.c (remote_command, set_remote_cmd): Remove.
6431 (_initialize_remote): Use add_basic_prefix_cmd.
6432 * record-full.c (set_record_full_command)
6433 (show_record_full_command): Remove.
6434 (_initialize_record_full): Use add_basic_prefix_cmd,
6435 add_show_prefix_cmd.
6436 * record-btrace.c (cmd_set_record_btrace)
6437 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
6438 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
6439 (cmd_show_record_btrace_pt): Remove.
6440 (_initialize_record_btrace): Use add_basic_prefix_cmd,
6441 add_show_prefix_cmd.
6442 * ravenscar-thread.c (set_ravenscar_command)
6443 (show_ravenscar_command): Remove.
6444 (_initialize_ravenscar): Use add_basic_prefix_cmd,
6445 add_show_prefix_cmd.
6446 * mips-tdep.c (show_mips_command, set_mips_command)
6447 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
6448 add_show_prefix_cmd.
6449 * maint.c (maintenance_command, maintenance_info_command)
6450 (maintenance_check_command, maintenance_print_command)
6451 (maintenance_set_cmd, maintenance_show_cmd): Remove.
6452 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
6453 add_show_prefix_cmd.
6454 (show_per_command_cmd): Remove.
6455 * maint-test-settings.c (maintenance_set_test_settings_cmd):
6456 Remove.
6457 (maintenance_show_test_settings_cmd): Remove.
6458 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
6459 add_show_prefix_cmd.
6460 * maint-test-options.c (maintenance_test_options_command):
6461 Remove.
6462 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
6463 * macrocmd.c (macro_command): Remove
6464 (_initialize_macrocmd): Use add_basic_prefix_cmd.
6465 * language.c (set_check, show_check): Remove.
6466 (_initialize_language): Use add_basic_prefix_cmd,
6467 add_show_prefix_cmd.
6468 * infcmd.c (unset_command): Remove.
6469 (_initialize_infcmd): Use add_basic_prefix_cmd.
6470 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
6471 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
6472 add_show_prefix_cmd.
6473 * go32-nat.c (go32_info_dos_command): Remove.
6474 (_initialize_go32_nat): Use add_basic_prefix_cmd.
6475 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
6476 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
6477 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
6478 (_initialize_frame): Use add_basic_prefix_cmd,
6479 add_show_prefix_cmd.
6480 * dcache.c (set_dcache_command, show_dcache_command): Remove.
6481 (_initialize_dcache): Use add_basic_prefix_cmd,
6482 add_show_prefix_cmd.
6483 * cp-support.c (maint_cplus_command): Remove.
6484 (_initialize_cp_support): Use add_basic_prefix_cmd.
6485 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
6486 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
6487 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
6488 add_basic_prefix_cmd, add_show_prefix_cmd.
6489 * breakpoint.c (save_command): Remove.
6490 (_initialize_breakpoint): Use add_basic_prefix_cmd.
6491 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
6492 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
6493 add_show_prefix_cmd.
6494 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
6495 (set_ada_command, show_ada_command): Remove.
6496 (_initialize_ada_language): Use add_basic_prefix_cmd,
6497 add_show_prefix_cmd.
6498 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
6499
6500 2020-04-16 Kamil Rytarowski <n54@gmx.com>
6501
6502 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
6503 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
6504
6505 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
6506
6507 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
6508 warning messages.
6509
6510 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
6511
6512 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
6513 import table is not at beginning of .idata section.
6514
6515 2020-04-16 Pedro Alves <palves@redhat.com>
6516
6517 * inferior.c (delete_inferior): Use delete operator directly
6518 instead of delete_program_space.
6519 * progspace.c (add_program_space): New, factored out from
6520 program_space::program_space.
6521 (remove_program_space): New, factored out from
6522 delete_program_space.
6523 (program_space::program_space): Remove intro comment. Rewrite.
6524 (program_space::~program_space): Remove intro comment. Call
6525 remove_program_space.
6526 (delete_program_space): Delete.
6527 * progspace.h (program_space::program_space): Make explicit. Move
6528 intro comment here, adjusted.
6529 (program_space::~program_space): Move intro comment here,
6530 adjusted.
6531 (delete_program_space): Remove.
6532
6533 2020-04-16 Tom Tromey <tromey@adacore.com>
6534
6535 * windows-nat.c (windows_nat::handle_access_violation): New
6536 function.
6537 * nat/windows-nat.h (handle_access_violation): Declare.
6538 * nat/windows-nat.c (handle_exception): Move Cygwin code to
6539 windows-nat.c. Call handle_access_violation.
6540
6541 2020-04-16 Tom de Vries <tdevries@suse.de>
6542
6543 PR symtab/25791
6544 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
6545 CUs without psymtab.
6546
6547 2020-04-16 Kevin Buettner <kevinb@redhat.com>
6548
6549 * python/python.c (do_start_initialization): Don't call
6550 PyEval_InitThreads for Python 3.9 and beyond.
6551
6552 2020-04-15 Kamil Rytarowski <n54@gmx.com>
6553
6554 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
6555 thread functions.
6556 (obsd_nat_target::wait): Likewise.
6557
6558 2020-04-15 Tom Tromey <tromey@adacore.com>
6559
6560 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
6561 (DEBUG_EXCEPT): Use debug_printf.
6562
6563 2020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
6564
6565 * completer.c (class completion_tracker::completion_hash_entry)
6566 <hash_name>: New member function.
6567 (completion_tracker::discard_completions): New callback to hash a
6568 completion_hash_entry, pass this to htab_create_alloc.
6569
6570 2016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
6571
6572 * windows-nat.c (windows_make_so): Warn rather than stopping with
6573 an error if realpath() fails.
6574
6575 2020-04-14 Kamil Rytarowski <n54@gmx.com>
6576
6577 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
6578 (nbsd_nat_target::info_proc): Add do_status.
6579
6580 2020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
6581 Tom de Vries <tdevries@suse.de>
6582
6583 PR symtab/25718
6584 * psympriv.h (struct partial_symtab::read_symtab)
6585 (struct partial_symtab::expand_psymtab)
6586 (struct partial_symtab::read_dependencies): Update comments.
6587 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
6588 read_symtab for includer.
6589 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
6590 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
6591 (struct dwarf2_include_psymtab::m_readin): Remove.
6592 (struct dwarf2_include_psymtab::includer): New member function.
6593 (dwarf2_psymtab::expand_psymtab): Assert !readin.
6594
6595 2020-04-14 Tom de Vries <tdevries@suse.de>
6596
6597 PR symtab/25720
6598 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
6599 with NULL symbol_matcher and lookup_name.
6600 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
6601 and lookup_name.
6602 * dwarf2/read.c (dw2_expand_symtabs_matching)
6603 (dw2_debug_names_expand_symtabs_matching): Same.
6604 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
6605 Make lookup_name a pointer. Update comment.
6606 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
6607 lookup_name being a pointer.
6608 * symfile.c (expand_symtabs_matching): Same.
6609 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
6610 * linespec.c (iterate_over_all_matching_symtabs): Same.
6611
6612 2020-04-13 Tom Tromey <tom@tromey.com>
6613
6614 * run-on-main-thread.c: Update include.
6615 * unittests/main-thread-selftests.c: Update include.
6616 * tui/tui-win.c: Update include.
6617 * tui/tui-io.c: Update include.
6618 * tui/tui-interp.c: Update include.
6619 * tui/tui-hooks.c: Update include.
6620 * top.h: Update include.
6621 * top.c: Update include.
6622 * ser-base.c: Update include.
6623 * remote.c: Update include.
6624 * remote-notif.c: Update include.
6625 * remote-fileio.c: Update include.
6626 * record-full.c: Update include.
6627 * record-btrace.c: Update include.
6628 * python/python.c: Update include.
6629 * posix-hdep.c: Update include.
6630 * mingw-hdep.c: Update include.
6631 * mi/mi-main.c: Update include.
6632 * mi/mi-interp.c: Update include.
6633 * main.c: Update include.
6634 * linux-nat.c: Update include.
6635 * interps.c: Update include.
6636 * infrun.c: Update include.
6637 * inf-loop.c: Update include.
6638 * event-top.c: Update include.
6639 * event-loop.c: Move to ../gdbsupport/.
6640 * event-loop.h: Move to ../gdbsupport/.
6641 * async-event.h: Update include.
6642 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
6643
6644 2020-04-13 Tom Tromey <tom@tromey.com>
6645
6646 * tui/tui-win.c: Include async-event.h.
6647 * remote.c: Include async-event.h.
6648 * remote-notif.c: Include async-event.h.
6649 * record-full.c: Include async-event.h.
6650 * record-btrace.c: Include async-event.h.
6651 * infrun.c: Include async-event.h.
6652 * event-top.c: Include async-event.h.
6653 * event-loop.h: Move some declarations to async-event.h.
6654 * event-loop.c: Don't include ser-event.h or top.h. Move some
6655 code to async-event.c.
6656 * async-event.h: New file.
6657 * async-event.c: New file.
6658 * Makefile.in (COMMON_SFILES): Add async-event.c.
6659 (HFILES_NO_SRCDIR): Add async-event.h.
6660
6661 2020-04-13 Tom Tromey <tom@tromey.com>
6662
6663 * utils.c (flush_streams): New function.
6664 * event-loop.c (gdb_wait_for_event): Call flush_streams.
6665
6666 2020-04-13 Tom Tromey <tom@tromey.com>
6667
6668 * event-loop.c (handle_file_event): Use warning, not
6669 printf_unfiltered.
6670
6671 2020-04-13 Tom Tromey <tom@tromey.com>
6672
6673 * event-loop.c: Include <chrono>.
6674
6675 2020-04-13 Tom Tromey <tom@tromey.com>
6676
6677 * gdb_select.h: Move to ../gdbsupport/.
6678 * event-loop.c: Update include path.
6679 * top.c: Update include path.
6680 * ser-base.c: Update include path.
6681 * ui-file.c: Update include path.
6682 * ser-tcp.c: Update include path.
6683 * guile/scm-ports.c: Update include path.
6684 * posix-hdep.c: Update include path.
6685 * ser-unix.c: Update include path.
6686 * gdb_usleep.c: Update include path.
6687 * mingw-hdep.c: Update include path.
6688 * inflow.c: Update include path.
6689 * infrun.c: Update include path.
6690 * event-top.c: Update include path.
6691
6692 2020-04-13 Tom Tromey <tom@tromey.com>
6693
6694 * configure: Rebuild.
6695 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
6696
6697 2020-04-13 Tom Tromey <tom@tromey.com>
6698
6699 * event-loop.h (start_event_loop): Don't declare.
6700 * event-loop.c (start_event_loop): Move...
6701 * main.c (start_event_loop): ...here. Now static.
6702
6703 2020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
6704
6705 * MAINTAINERS: Update my email address.
6706
6707 2020-04-12 Kamil Rytarowski <n54@gmx.com>
6708
6709 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
6710 IP_ALL.
6711
6712 2020-04-12 Kamil Rytarowski <n54@gmx.com>
6713
6714 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
6715 (nbsd_nat_target::info_proc): Add do_cmdline.
6716
6717 2020-04-12 Kamil Rytarowski <n54@gmx.com>
6718
6719 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
6720 (nbsd_nat_target::info_proc): Add do_cwd.
6721
6722 2020-04-12 Kamil Rytarowski <n54@gmx.com>
6723
6724 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
6725
6726 2020-04-11 Kamil Rytarowski <n54@gmx.com>
6727
6728 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
6729 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
6730 (nbsd_nat_target::info_proc): New functions.
6731 * nbsd-nat.c (kinfo_get_vmmap): New function.
6732 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
6733 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
6734 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
6735 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
6736 functions.
6737 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
6738 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
6739 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
6740 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
6741 (KINFO_VME_FLAG_GROWS_DOWN): New.
6742
6743 2020-04-10 Artur Shepilko <nomadbyte@gmail.com>
6744
6745 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
6746 bit shift.
6747
6748 2020-04-10 Tom Tromey <tromey@adacore.com>
6749
6750 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
6751
6752 2020-04-10 Tom Tromey <tromey@adacore.com>
6753
6754 * symtab.c (get_symbol_address, get_msymbol_address): Skip
6755 separate debug files.
6756
6757 2020-04-10 Hannes Domani <ssbssa@yahoo.de>
6758
6759 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
6760 Move to...
6761 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
6762 ... here.
6763 * windows-nat.c (windows_nat_target::get_windows_debug_event):
6764 Check for STATUS_WX86_BREAKPOINT.
6765 (windows_nat_target::wait): Same.
6766
6767 2020-04-10 Tom de Vries <tdevries@suse.de>
6768
6769 PR cli/25808
6770 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
6771
6772 2020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
6773
6774 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
6775 (Write After Approval): Remove Tom de Vries.
6776
6777 2020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
6778
6779 revert partially:
6780 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
6781
6782 * buildsym.c (record_line): Fix undefined behavior and preserve
6783 lines at eof.
6784
6785 2020-04-09 Kamil Rytarowski <n54@gmx.com>
6786
6787 * auxv.h (svr4_auxv_parse): New.
6788 * auxv.c (default_auxv_parse): Split into default_auxv_parse
6789 and generic_auxv_parse.
6790 (svr4_auxv_parse): Add.
6791 * obsd-tdep.c: Include "auxv.h".
6792 (obsd_auxv_parse): Remove.
6793 (obsd_init_abi): Remove comment.
6794 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
6795 from `obsd_auxv_parse' to `svr4_auxv_parse'.
6796 * nbsd-tdep.c: Include "auxv.h".
6797 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
6798
6799 2020-04-08 Tom Tromey <tromey@adacore.com>
6800
6801 * nat/windows-nat.h (last_wait_event): Don't declare.
6802 (wait_for_debug_event): Update comment.
6803 * nat/windows-nat.c (last_wait_event): Now static.
6804
6805 2020-04-08 Tom Tromey <tromey@adacore.com>
6806
6807 * windows-nat.c (wait_for_debug_event): Move to
6808 nat/windows-nat.c.
6809 * nat/windows-nat.h (wait_for_debug_event): Declare.
6810 * nat/windows-nat.c (wait_for_debug_event): Move from
6811 windows-nat.c. No longer static.
6812
6813 2020-04-08 Tom Tromey <tromey@adacore.com>
6814
6815 * windows-nat.c (get_windows_debug_event): Use
6816 fetch_pending_stop.
6817 * nat/windows-nat.h (fetch_pending_stop): Declare.
6818 * nat/windows-nat.c (fetch_pending_stop): New function.
6819
6820 2020-04-08 Tom Tromey <tromey@adacore.com>
6821
6822 * windows-nat.c (windows_continue): Use matching_pending_stop and
6823 continue_last_debug_event.
6824 * nat/windows-nat.h (matching_pending_stop)
6825 (continue_last_debug_event): Declare.
6826 * nat/windows-nat.c (DEBUG_EVENTS): New define.
6827 (matching_pending_stop, continue_last_debug_event): New
6828 functions.
6829
6830 2020-04-08 Tom Tromey <tromey@adacore.com>
6831
6832 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
6833 (handle_exception_result): Move to nat/windows-nat.h.
6834 (DEBUG_EXCEPTION_SIMPLE): Remove.
6835 (windows_nat::handle_ms_vc_exception): New function.
6836 (handle_exception): Move to nat/windows-nat.c.
6837 (get_windows_debug_event): Update.
6838 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
6839 nat/windows-nat.c.
6840 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
6841 (handle_exception_result): Move from windows-nat.c.
6842 (handle_exception): Declare.
6843 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
6844 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
6845 windows-nat.c.
6846
6847 2020-04-08 Tom Tromey <tromey@adacore.com>
6848
6849 * windows-nat.c (exception_count, event_count): Remove.
6850 (handle_exception, get_windows_debug_event)
6851 (do_initial_windows_stuff): Update.
6852
6853 2020-04-08 Tom Tromey <tromey@adacore.com>
6854
6855 * windows-nat.c (windows_nat::handle_load_dll)
6856 (windows_nat::handle_unload_dll): Rename. No longer static.
6857 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
6858 Declare.
6859
6860 2020-04-08 Tom Tromey <tromey@adacore.com>
6861
6862 * complaints.h (stop_whining): Declare at top-level.
6863 (complaint): Don't declare stop_whining.
6864
6865 2020-04-08 Tom Tromey <tromey@adacore.com>
6866
6867 * windows-nat.c (windows_nat::handle_output_debug_string):
6868 Rename. No longer static.
6869 * nat/windows-nat.h (handle_output_debug_string): Declare.
6870
6871 2020-04-08 Tom Tromey <tromey@adacore.com>
6872
6873 * windows-nat.c (current_process_handle, current_process_id)
6874 (main_thread_id, last_sig, current_event, last_wait_event)
6875 (current_windows_thread, desired_stop_thread_id, pending_stops)
6876 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
6877 (display_selectors, fake_create_process)
6878 (get_windows_debug_event): Update.
6879 * nat/windows-nat.h (current_process_handle, current_process_id)
6880 (main_thread_id, last_sig, current_event, last_wait_event)
6881 (current_windows_thread, desired_stop_thread_id, pending_stops)
6882 (struct pending_stop, siginfo_er): Move from windows-nat.c.
6883 * nat/windows-nat.c (current_process_handle, current_process_id)
6884 (main_thread_id, last_sig, current_event, last_wait_event)
6885 (current_windows_thread, desired_stop_thread_id, pending_stops)
6886 (siginfo_er): New globals. Move from windows-nat.c.
6887
6888 2020-04-08 Tom Tromey <tromey@adacore.com>
6889
6890 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
6891 (handle_load_dll): Update.
6892 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
6893
6894 2020-04-08 Tom Tromey <tromey@adacore.com>
6895
6896 * windows-nat.c (enum thread_disposition_type): Move to
6897 nat/windows-nat.h.
6898 (windows_nat::thread_rec): Rename from thread_rec. No longer
6899 static.
6900 (windows_add_thread, windows_nat_target::fetch_registers)
6901 (windows_nat_target::store_registers, handle_exception)
6902 (windows_nat_target::resume, get_windows_debug_event)
6903 (windows_nat_target::get_tib_address)
6904 (windows_nat_target::thread_name)
6905 (windows_nat_target::thread_alive): Update.
6906 * nat/windows-nat.h (enum thread_disposition_type): Move from
6907 windows-nat.c.
6908 (thread_rec): Declare.
6909
6910 2020-04-08 Tom Tromey <tromey@adacore.com>
6911
6912 * windows-nat.c: Add "using namespace".
6913 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
6914 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
6915
6916 2020-04-08 Tom Tromey <tromey@adacore.com>
6917
6918 * nat/windows-nat.h (struct windows_thread_info): Declare
6919 destructor.
6920 * nat/windows-nat.c (~windows_thread_info): New.
6921
6922 2020-04-08 Tom Tromey <tromey@adacore.com>
6923
6924 PR gdb/22992
6925 * windows-nat.c (current_event): Update comment.
6926 (last_wait_event, desired_stop_thread_id): New globals.
6927 (struct pending_stop): New.
6928 (pending_stops): New global.
6929 (windows_nat_target) <stopped_by_sw_breakpoint>
6930 <supports_stopped_by_sw_breakpoint>: New methods.
6931 (windows_fetch_one_register): Add assertions. Adjust PC.
6932 (windows_continue): Handle pending stops. Suspend other threads
6933 when stepping. Use last_wait_event
6934 (wait_for_debug_event): New function.
6935 (get_windows_debug_event): Use wait_for_debug_event. Handle
6936 pending stops. Queue spurious stops.
6937 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
6938 (windows_nat_target::kill): Use wait_for_debug_event.
6939 * nat/windows-nat.h (struct windows_thread_info)
6940 <stopped_at_software_breakpoint>: New field.
6941 * nat/windows-nat.c (windows_thread_info::resume): Clear
6942 stopped_at_software_breakpoint.
6943
6944 2020-04-08 Tom Tromey <tromey@adacore.com>
6945
6946 * windows-nat.c (enum thread_disposition_type): New.
6947 (thread_rec): Replace "get_context" parameter with "disposition";
6948 change type.
6949 (windows_add_thread, windows_nat_target::fetch_registers)
6950 (windows_nat_target::store_registers, handle_exception)
6951 (windows_nat_target::resume, get_windows_debug_event)
6952 (windows_nat_target::get_tib_address)
6953 (windows_nat_target::thread_name)
6954 (windows_nat_target::thread_alive): Update.
6955
6956 2020-04-08 Tom Tromey <tromey@adacore.com>
6957
6958 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
6959 (windows_continue): Use windows_continue::resume.
6960 * nat/windows-nat.h (struct windows_thread_info) <suspend,
6961 resume>: Declare new methods.
6962 * nat/windows-nat.c: New file.
6963 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
6964
6965 2020-04-08 Tom Tromey <tromey@adacore.com>
6966
6967 * windows-nat.c (windows_add_thread, windows_delete_thread)
6968 (windows_nat_target::fetch_registers)
6969 (windows_nat_target::store_registers, fake_create_process)
6970 (windows_nat_target::resume, windows_nat_target::resume)
6971 (get_windows_debug_event, windows_nat_target::wait)
6972 (windows_nat_target::pid_to_str)
6973 (windows_nat_target::get_tib_address)
6974 (windows_nat_target::get_ada_task_ptid)
6975 (windows_nat_target::thread_name)
6976 (windows_nat_target::thread_alive): Use lwp, not tid.
6977
6978 2020-04-08 Tom Tromey <tromey@adacore.com>
6979
6980 * windows-nat.c (handle_exception)
6981 (windows_nat_target::thread_name): Update.
6982 * nat/windows-nat.h (windows_thread_info): Remove destructor.
6983 <name>: Now unique_xmalloc_ptr.
6984
6985 2020-04-08 Tom Tromey <tromey@adacore.com>
6986
6987 * windows-nat.c (thread_rec)
6988 (windows_nat_target::fetch_registers): Update.
6989 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
6990 Update comment.
6991 <debug_registers_changed, reload_context>: Now bool.
6992
6993 2020-04-08 Tom Tromey <tromey@adacore.com>
6994
6995 * windows-nat.c (windows_add_thread): Use new.
6996 (windows_init_thread_list, windows_delete_thread): Use delete.
6997 (get_windows_debug_event): Update.
6998 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
6999 destructor, and initializers.
7000
7001 2020-04-08 Tom Tromey <tromey@adacore.com>
7002
7003 * windows-nat.c (struct windows_thread_info): Remove.
7004 * nat/windows-nat.h: New file.
7005
7006 2020-04-08 Tom Tromey <tromey@adacore.com>
7007
7008 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
7009 (thread_rec, windows_add_thread, windows_delete_thread)
7010 (windows_continue): Update.
7011
7012 2020-04-08 Tom Tromey <tromey@adacore.com>
7013
7014 * windows-nat.c (struct windows_thread_info): Remove typedef.
7015 (thread_head): Remove.
7016 (thread_list): New global.
7017 (thread_rec, windows_add_thread, windows_init_thread_list)
7018 (windows_delete_thread, windows_continue): Update.
7019
7020 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
7021
7022 * windows-tdep.h (windows_init_abi): Add comment.
7023 (cygwin_init_abi): New declaration.
7024 * windows-tdep.c: Split signal enumeration in two, one for
7025 Windows and one for Cygwin.
7026 (windows_gdb_signal_to_target): Only deal with signal of the
7027 Windows OS ABI.
7028 (cygwin_gdb_signal_to_target): New function.
7029 (windows_init_abi): Rename to windows_init_abi_common, don't set
7030 gdb_signal_to_target gdbarch method. Add new new function with
7031 this name.
7032 (cygwin_init_abi): New function.
7033 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
7034 comment. Don't call windows_init_abi.
7035 (amd64_windows_init_abi): Add comment, call windows_init_abi.
7036 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
7037 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
7038 i386_windows_init_abi_common, don't call windows_init_abi. Add
7039 a new function of this name.
7040 (i386_cygwin_init_abi): New function.
7041 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
7042 OS ABI Cygwin.
7043
7044 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
7045
7046 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
7047 parameter.c.
7048 (dwarf2_read_gdb_index): Update.
7049
7050 2020-04-07 Kamil Rytarowski <n54@gmx.com>
7051
7052 * nbsd-tdep.c: Include "objfiles.h".
7053 (nbsd_skip_solib_resolver): New.
7054 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
7055
7056 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
7057
7058 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
7059 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
7060 with DW_LLE_base_addressx are being emitted in DWARFv5.
7061 Add the newly added kind DW_LOC_OFFSET_PAIR also.
7062 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
7063 unsigned integer.
7064
7065 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
7066
7067 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
7068 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
7069 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
7070 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
7071 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
7072 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
7073 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
7074
7075
7076 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
7077
7078 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
7079 (read_loclist_index): New function definition.
7080 (lookup_loclist_base): New function definition.
7081 (read_loclist_header): New function definition.
7082 (dwarf2_cu): Add loclist_base and loclist_header field.
7083 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
7084 (read_full_die_1): Read the value of DW_AT_loclists_base.
7085 (read_attribute_reprocess): Handle DW_FORM_loclistx.
7086 (read_attribute_value): Handle DW_FORM_loclistx.
7087 (skip_one_die): Handle DW_FORM_loclistx.
7088 (loclist_header): New structure declaration.
7089 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
7090
7091 2020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
7092
7093 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
7094 constructor. Remove `addr` parameter from other constructor and
7095 add `per_cu` parameter.
7096 * dwarf2/read.c (create_partial_symtab): Update.
7097
7098 2020-04-07 Tom de Vries <tdevries@suse.de>
7099
7100 PR symtab/25796
7101 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
7102 (partial_die_info::fixup): Inherit has_const_value.
7103
7104 2020-04-07 Tom de Vries <tdevries@suse.de>
7105
7106 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
7107 symbols without address.
7108
7109 2020-04-06 Kamil Rytarowski <n54@gmx.com>
7110
7111 * nbsd-nat.h (struct thread_info): Add forward declaration.
7112 (nbsd_nat_target::thread_alive): Add.
7113 (nbsd_nat_target::thread_name): Likewise.
7114 (nbsd_nat_target::update_thread_list): Likewise.
7115 (update_thread_list::post_attach): Likewise.
7116 (post_attach::pid_to_str): Likewise.
7117 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
7118 (nbsd_thread_lister): Add.
7119 (nbsd_nat_target::thread_alive): Likewise.
7120 (nbsd_nat_target::thread_name): Likewise.
7121 (nbsd_add_threads): Likewise.
7122 (update_thread_list::post_attach): Likewise.
7123 (nbsd_nat_target::update_thread_list): Likewise.
7124 (post_attach::pid_to_str): Likewise.
7125
7126 2020-04-06 Tom Tromey <tromey@adacore.com>
7127
7128 * ada-valprint.c (print_variant_part): Extract the variant field.
7129 (print_field_values): Use the field as the outer value when
7130 recursing.
7131
7132 2020-04-06 Tom Tromey <tromey@adacore.com>
7133
7134 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
7135 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
7136 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
7137 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
7138 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
7139
7140 2020-04-06 Tom Tromey <tromey@adacore.com>
7141
7142 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
7143 TYPE_CODE_ERROR.
7144
7145 2020-04-06 Kamil Rytarowski <n54@gmx.com>
7146
7147 * nbsd-tdep.c: Include "gdbarch.h".
7148 Define enum with NetBSD signal numbers.
7149 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
7150 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
7151 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
7152 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
7153 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
7154 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
7155 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
7156 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
7157 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
7158 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
7159 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
7160 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
7161
7162 2020-04-03 Hannes Domani <ssbssa@yahoo.de>
7163
7164 PR gdb/25325
7165 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
7166
7167 2020-04-03 Tom Tromey <tromey@adacore.com>
7168
7169 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
7170 Read constant block.
7171
7172 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
7173
7174 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
7175 (gdb_bfd_get_full_section_contents): New declaration.
7176 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
7177 * windows-tdep.c (is_linked_with_cygwin_dll): Use
7178 gdb_bfd_get_full_section_contents.
7179
7180 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
7181
7182 * exec.c (build_section_table): Replace internal_error with
7183 gdb_assert.
7184 (section_table_xfer_memory_partial): Likewise.
7185 * mdebugread.c (parse_partial_symbols): Likewise.
7186 * psymtab.c (lookup_partial_symbol): Likewise.
7187 * utils.c (wrap_here): Likewise.
7188
7189 2020-04-02 Tom Tromey <tromey@adacore.com>
7190
7191 * f-lang.c (build_fortran_types): Use arch_type to initialize
7192 builtin_complex_s32 in the TYPE_CODE_ERROR case.
7193
7194 2020-04-02 Tom Tromey <tromey@adacore.com>
7195
7196 * dwarf2/read.c (partial_die_info::read): Do not create a vector
7197 of attributes.
7198
7199 2020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
7200 Bernd Edlinger <bernd.edlinger@hotmail.de>
7201 Tom Tromey <tromey@adacore.com>
7202
7203 * buildsym.c (buildsym_compunit::record_line): Remove
7204 deduplication code.
7205
7206 2020-04-02 Tom de Vries <tdevries@suse.de>
7207
7208 PR ada/24671
7209 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
7210
7211 2020-04-02 Tom de Vries <tdevries@suse.de>
7212
7213 * dwarf2/read.c (dwarf2_gdb_index_functions,
7214 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
7215 NULL.
7216 * psymtab.c (psym_lookup_global_symbol_language): New function.
7217 (psym_functions): Init psym_lookup_global_symbol_language with
7218 psym_lookup_global_symbol_language.
7219 * symfile-debug.c (debug_sym_quick_functions): Init
7220 lookup_global_symbol_language with NULL.
7221 * symfile.c (set_initial_language): Remove fixme comment.
7222 * symfile.h (struct quick_symbol_functions): Add
7223 lookup_global_symbol_language.
7224 * symtab.c (find_quick_global_symbol_language): New function.
7225 (find_main_name): Use find_quick_global_symbol_language.
7226
7227 2020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
7228
7229 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
7230
7231 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
7232
7233 * buildsym.c (record_line): Fix undefined behavior and preserve
7234 lines at eof.
7235
7236 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
7237
7238 * buildsym.c (record_line): Fix the resizing condition.
7239
7240 2020-04-01 Tom Tromey <tom@tromey.com>
7241
7242 * value.h (value_literal_complex): Add comment.
7243 * valops.c (value_literal_complex): Refer to value.h.
7244
7245 2020-04-01 Tom Tromey <tom@tromey.com>
7246
7247 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
7248 (scalar_type): New rule, from typebase.
7249 (typebase): Use scalar_type. Recognize complex types.
7250 (field_name): Handle FLOAT_KEYWORD.
7251 (ident_tokens): Add _Complex and __complex__.
7252
7253 2020-04-01 Tom Tromey <tom@tromey.com>
7254
7255 PR exp/25299:
7256 * valarith.c (promotion_type, complex_binop): New functions.
7257 (scalar_binop): Handle complex numbers. Use promotion_type.
7258 (value_pos, value_neg, value_complement): Handle complex numbers.
7259
7260 2020-04-01 Tom Tromey <tom@tromey.com>
7261
7262 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
7263 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
7264 (parse_number): Handle complex numbers.
7265
7266 2020-04-01 Tom Tromey <tom@tromey.com>
7267
7268 * c-valprint.c (c_decorations): Change complex suffix to "i".
7269
7270 2020-04-01 Tom Tromey <tom@tromey.com>
7271
7272 * valprint.c (generic_value_print_complex): Use accessors.
7273 * value.h (value_real_part, value_imaginary_part): Declare.
7274 * valops.c (value_real_part, value_imaginary_part): New
7275 functions.
7276 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
7277
7278 2020-04-01 Tom Tromey <tom@tromey.com>
7279
7280 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
7281 (read_range_type): Update.
7282 * mdebugread.c (basic_type): Update.
7283 * go-lang.c (build_go_types): Use init_complex_type.
7284 * gdbtypes.h (struct main_type) <complex_type>: New member.
7285 (init_complex_type): Update.
7286 (arch_complex_type): Don't declare.
7287 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
7288 Make name if none given. Use alloc_type_copy. Look for cached
7289 complex type.
7290 (arch_complex_type): Remove.
7291 (gdbtypes_post_init): Use init_complex_type.
7292 * f-lang.c (build_fortran_types): Use init_complex_type.
7293 * dwarf2/read.c (read_base_type): Update.
7294 * d-lang.c (build_d_types): Use init_complex_type.
7295 * ctfread.c (read_base_type): Update.
7296
7297 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7298
7299 * infrun.c (stop_all_threads): Update assertion, plus when
7300 stopping threads, take into account that we might be trying
7301 to stop an all-stop target.
7302 (stop_waiting): Call 'stop_all_threads' if there exists a
7303 non-stop target.
7304
7305 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7306
7307 * target.h (exists_non_stop_target): New function declaration.
7308 * target.c (exists_non_stop_target): New function.
7309
7310 2020-04-01 Hannes Domani <ssbssa@yahoo.de>
7311
7312 PR gdb/24789
7313 * eval.c (is_integral_or_integral_reference): New function.
7314 (evaluate_subexp_standard): Allow integer references in
7315 pointer arithmetic.
7316
7317 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7318
7319 * remote.c (remote_target::remote_parse_stop_reply): Remove the
7320 check for no ptid in the stop reply when the target is non-stop.
7321
7322 2020-04-01 Tom Tromey <tromey@adacore.com>
7323
7324 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
7325 "name" parameter to rvalue reference. Initialize m_name_holder.
7326 <lookup_name_info>: New overloads.
7327 <name>: Return gdb::string_view.
7328 <c_str>: New method.
7329 <make_ignore_params>: Update.
7330 <search_name_hash>: Update.
7331 <language_lookup_name>: Return const char *.
7332 <m_name>: Change type.
7333 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
7334 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
7335 (lookup_name_info::match_any): Update.
7336 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
7337 Update.
7338 * minsyms.c (linkage_name_str): Update.
7339 * language.c (default_symbol_name_matcher): Update.
7340 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
7341 Update.
7342 * ada-lang.c (ada_fold_name): Change parameter to string_view.
7343 (ada_lookup_name_info::ada_lookup_name_info): Update.
7344 (literal_symbol_name_matcher): Update.
7345
7346 2020-04-01 Tom Tromey <tromey@adacore.com>
7347
7348 * psymtab.c (psymtab_search_name): Remove function.
7349 (psym_lookup_symbol): Create search name and lookup name here.
7350 (lookup_partial_symbol): Remove "name" parameter; add
7351 lookup_name.
7352 (psym_expand_symtabs_for_function): Update.
7353
7354 2020-03-31 Joel Jones <joelkevinjones@gmail.com>
7355
7356 PR tui/25597:
7357 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
7358
7359 2020-03-31 Tom Tromey <tromey@adacore.com>
7360
7361 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
7362 memcpy.
7363
7364 2020-03-30 Nelson Chu <nelson.chu@sifive.com>
7365
7366 * features/riscv/32bit-csr.xml: Regenerated.
7367 * features/riscv/64bit-csr.xml: Regenerated.
7368
7369 2020-03-30 Tom Tromey <tromey@adacore.com>
7370
7371 * ada-valprint.c (print_variant_part): Update.
7372 * ada-lang.h (ada_which_variant_applies): Update.
7373 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
7374 outer_valaddr parameters; replace with "outer" value parameter.
7375 (to_fixed_variant_branch_type): Update.
7376
7377 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
7378
7379 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
7380 <list>. Remove inclusion of observable.h.
7381 (PPC_DEBUG_CURRENT_VERSION): Move up define.
7382 (struct arch_lwp_info): New struct.
7383 (class ppc_linux_dreg_interface): New class.
7384 (struct ppc_linux_process_info): New struct.
7385 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
7386 <low_new_clone, low_forget_process, low_prepare_to_resume>
7387 <copy_thread_dreg_state, mark_thread_stale>
7388 <mark_debug_registers_changed, register_hw_breakpoint>
7389 <clear_hw_breakpoint, register_wp, clear_wp>
7390 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
7391 <num_memory_accesses, get_trigger_type>
7392 <create_watchpoint_request, hwdebug_point_cmp>
7393 <init_arch_lwp_info, get_arch_lwp_info>
7394 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
7395 methods.
7396 <struct ptid_hash>: New inner struct.
7397 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
7398 members.
7399 (saved_dabr_value, hwdebug_info, max_slots_number)
7400 (struct hw_break_tuple, struct thread_points, ppc_threads)
7401 (have_ptrace_hwdebug_interface)
7402 (hwdebug_find_thread_points_by_tid)
7403 (hwdebug_insert_point, hwdebug_remove_point): Remove.
7404 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
7405 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
7406 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
7407 use m_dreg_interface.
7408 (hwdebug_point_cmp): Change to...
7409 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
7410 reference arguments instead of pointers.
7411 (ppc_linux_nat_target::ranged_break_num_registers): Use
7412 m_dreg_interface.
7413 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
7414 m_dreg_interface. Call register_hw_breakpoint.
7415 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
7416 m_dreg_interface. Call clear_hw_breakpoint.
7417 (get_trigger_type): Change to...
7418 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
7419 comment.
7420 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
7421 use m_dreg_interface. Call register_hw_breakpoint.
7422 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
7423 use m_dreg_interface. Call clear_hw_breakpoint.
7424 (can_use_watchpoint_cond_accel): Change to...
7425 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
7426 method. Update comment, use m_dreg_interface and
7427 m_process_info.
7428 (calculate_dvc): Change to...
7429 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
7430 m_dreg_interface.
7431 (num_memory_accesses): Change to...
7432 (ppc_linux_nat_target::num_memory_accesses): ...this method.
7433 (check_condition): Change to...
7434 (ppc_linux_nat_target::check_condition): ...this method.
7435 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
7436 comment, use m_dreg_interface.
7437 (create_watchpoint_request): Change to...
7438 (ppc_linux_nat_target::create_watchpoint_request): ...this
7439 method. Use m_dreg_interface.
7440 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
7441 m_dreg_interface. Call register_hw_breakpoint or register_wp.
7442 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
7443 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
7444 (ppc_linux_nat_target::low_forget_process)
7445 (ppc_linux_nat_target::low_new_fork)
7446 (ppc_linux_nat_target::low_new_clone)
7447 (ppc_linux_nat_target::low_delete_thread)
7448 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
7449 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
7450 only call mark_thread_stale.
7451 (ppc_linux_thread_exit): Remove.
7452 (ppc_linux_nat_target::stopped_data_address): Change to...
7453 (ppc_linux_nat_target::low_stopped_data_address): This. Add
7454 comment, use m_dreg_interface and m_thread_hw_breakpoints.
7455 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
7456 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
7457 comment. Call low_stopped_data_address.
7458 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
7459 m_dreg_interface.
7460 (ppc_linux_nat_target::masked_watch_num_registers): Use
7461 m_dreg_interface.
7462 (ppc_linux_nat_target::copy_thread_dreg_state)
7463 (ppc_linux_nat_target::mark_thread_stale)
7464 (ppc_linux_nat_target::mark_debug_registers_changed)
7465 (ppc_linux_nat_target::register_hw_breakpoint)
7466 (ppc_linux_nat_target::clear_hw_breakpoint)
7467 (ppc_linux_nat_target::register_wp)
7468 (ppc_linux_nat_target::clear_wp)
7469 (ppc_linux_nat_target::init_arch_lwp_info)
7470 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
7471 (_initialize_ppc_linux_nat): Remove observer callback.
7472
7473 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
7474
7475 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
7476 (ppc_linux_nat_target::auxv_parse)
7477 (ppc_linux_nat_target::read_description)
7478 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
7479 Move up.
7480
7481 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
7482
7483 * linux-nat.h (low_new_clone): New method.
7484 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
7485
7486 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
7487
7488 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
7489 (dbx_expand_psymtab): ... this.
7490 (start_psymtab): Update.
7491 * mdebugread.c (psymtab_to_symtab_1): Rename to...
7492 (mdebug_expand_psymtab): ... this.
7493 (parse_partial_symbols): Update.
7494 (new_psymtab): Update.
7495 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
7496 (xcoff_expand_psymtab): ... this.
7497 (xcoff_start_psymtab): Update.
7498
7499 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
7500
7501 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
7502 <expand_dependencies>: ... this.
7503 * psymtab.c (partial_symtab::read_dependencies): Rename to...
7504 (partial_symtab::expand_dependencies): ... this.
7505 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
7506 Update.
7507 (dwarf2_psymtab::expand_psymtab): Update.
7508 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
7509 * mdebugread.c (psymtab_to_symtab_1): Update.
7510 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
7511
7512 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
7513
7514 * psympriv.h (discard_psymtab): Remove.
7515 * dbxread.c (dbx_end_psymtab): Update.
7516 * xcoffread.c (xcoff_end_psymtab): Update.
7517
7518 2020-03-28 Tom Tromey <tom@tromey.com>
7519
7520 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
7521 comment.
7522
7523 2020-03-28 Tom Tromey <tom@tromey.com>
7524
7525 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
7526
7527 2020-03-27 Hannes Domani <ssbssa@yahoo.de>
7528
7529 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
7530
7531 2020-03-26 John Baldwin <jhb@FreeBSD.org>
7532
7533 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
7534
7535 2020-03-26 Tom Tromey <tom@tromey.com>
7536
7537 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
7538 (mark_common_block_symbol_computed, read_tag_string_type)
7539 (attr_to_dynamic_prop, read_subrange_type): Update.
7540 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
7541 to be methods on struct attribute.
7542 (skip_one_die, process_imported_unit_die, read_namespace_alias)
7543 (read_call_site_scope, partial_die_info::read)
7544 (partial_die_info::read, lookup_die_type, follow_die_ref):
7545 Update.
7546 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
7547 from dwarf2_get_ref_die_offset.
7548 (attribute::constant_value): New method, from
7549 dwarf2_get_attr_constant_value.
7550 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
7551 Declare method.
7552 <constant_value>: New method.
7553
7554 2020-03-26 Tom Tromey <tom@tromey.com>
7555
7556 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
7557 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
7558 (dwarf_type_encoding_name): Move to stringify.c.
7559 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
7560 * dwarf2/stringify.c: New file.
7561 * dwarf2/stringify.h: New file.
7562
7563 2020-03-26 Tom Tromey <tom@tromey.com>
7564
7565 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
7566 Rewrite.
7567
7568 2020-03-26 Tom Tromey <tom@tromey.com>
7569
7570 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
7571 methods.
7572 * dwarf2/read.c (lookup_addr_base): Move to die.h.
7573 (lookup_ranges_base): Likewise.
7574 (read_cutu_die_from_dwo, read_full_die_1): Update.
7575
7576 2020-03-26 Tom Tromey <tom@tromey.com>
7577
7578 * dwarf2/read.c (read_import_statement, read_file_scope)
7579 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
7580 (read_lexical_block_scope, read_call_site_scope)
7581 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
7582 (handle_struct_member_die, process_structure_scope)
7583 (update_enumeration_type_from_children)
7584 (process_enumeration_scope, read_array_type, read_common_block)
7585 (read_namespace, read_module, read_subroutine_type): Update.
7586 (sibling_die): Remove.
7587
7588 2020-03-26 Tom Tromey <tom@tromey.com>
7589
7590 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
7591 (build_type_psymtabs_reader, read_structure_type)
7592 (read_enumeration_type, read_full_die_1): Update.
7593 (dwarf2_attr_no_follow): Move to die.h.
7594 * dwarf2/die.h (struct die_info) <attr>: New method.
7595
7596 2020-03-26 Tom Tromey <tom@tromey.com>
7597
7598 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
7599 <base_address>: Now an optional.
7600 (dwarf2_find_base_address, dwarf2_rnglists_process)
7601 (dwarf2_ranges_process, fill_in_loclist_baton)
7602 (dwarf2_symbol_mark_computed): Update.
7603
7604 2020-03-26 Tom Tromey <tom@tromey.com>
7605
7606 * dwarf2/read.c (struct die_info): Move to die.h.
7607 * dwarf2/die.h: New file.
7608
7609 2020-03-26 Tom Tromey <tom@tromey.com>
7610
7611 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
7612 * dwarf2/read.c
7613 (dwarf2_statement_list_fits_in_line_number_section_complaint):
7614 Move to line-header.c.
7615 (read_checked_initial_length_and_offset, read_formatted_entries):
7616 Likewise.
7617 (dwarf_decode_line_header): Split into two.
7618 * dwarf2/line-header.c
7619 (dwarf2_statement_list_fits_in_line_number_section_complaint):
7620 Move from read.c.
7621 (read_checked_initial_length_and_offset, read_formatted_entries):
7622 Likewise.
7623 (dwarf_decode_line_header): New function, split from read.c.
7624
7625 2020-03-26 Tom Tromey <tom@tromey.com>
7626
7627 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
7628 Declare method.
7629 * dwarf2/read.c (read_attribute_value): Update.
7630 (dwarf2_per_objfile::read_line_string): Rename from
7631 read_indirect_line_string.
7632 (read_formatted_entries): Update.
7633
7634 2020-03-26 Tom Tromey <tom@tromey.com>
7635
7636 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
7637 variable.
7638
7639 2020-03-26 Tom Tromey <tom@tromey.com>
7640
7641 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
7642 const.
7643 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
7644 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
7645 parameter const.
7646
7647 2020-03-26 Tom Tromey <tom@tromey.com>
7648
7649 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
7650 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
7651 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
7652 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
7653
7654 2020-03-26 Tom Tromey <tom@tromey.com>
7655
7656 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
7657 file_names_size, file_full_name, file_file_name>: Use const.
7658 <file_name_at, file_names>: Add const overload.
7659 * dwarf2/line-header.c (line_header::file_file_name)
7660 (line_header::file_full_name): Update.
7661
7662 2020-03-26 Tom Tromey <tom@tromey.com>
7663
7664 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
7665 (macro_start_file, consume_improper_spaces)
7666 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
7667 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
7668 (dwarf_decode_macros): Move to macro.c.
7669 * dwarf2/macro.c: New file.
7670 * dwarf2/macro.h: New file.
7671 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
7672
7673 2020-03-26 Tom Tromey <tom@tromey.com>
7674
7675 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
7676 method.
7677 * dwarf2/section.c: New method. From
7678 read_indirect_string_at_offset_from.
7679 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
7680 (read_indirect_string_at_offset_from): Move to section.c.
7681 (read_indirect_string_at_offset): Rewrite.
7682 (read_indirect_line_string_at_offset): Remove.
7683 (read_indirect_string, read_indirect_line_string)
7684 (dwarf_decode_macro_bytes): Update.
7685
7686 2020-03-26 Tom Tromey <tom@tromey.com>
7687
7688 * dwarf2/section.h (struct dwarf2_section_info)
7689 <overload_complaint>: Declare.
7690 (dwarf2_section_buffer_overflow_complaint): Don't declare.
7691 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
7692 Rename from dwarf2_section_buffer_overflow_complaint.
7693 * dwarf2/read.c (skip_one_die, partial_die_info::read)
7694 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
7695
7696 2020-03-26 Tom Tromey <tom@tromey.com>
7697
7698 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
7699 Declare.
7700 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
7701 Move from read.c.
7702 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
7703 to section.c.
7704
7705 2020-03-26 Tom Tromey <tom@tromey.com>
7706
7707 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
7708
7709 2020-03-26 Tom Tromey <tom@tromey.com>
7710
7711 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
7712 "builder".
7713 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
7714 parameter.
7715 (dwarf_decode_macros): Update.
7716
7717 2020-03-26 Tom Tromey <tom@tromey.com>
7718
7719 * dwarf2/read.c (read_attribute_value): Update.
7720 (read_indirect_string_from_dwz): Move to dwz.c; change into
7721 method.
7722 (dwarf_decode_macro_bytes): Update.
7723 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
7724 * dwarf2/dwz.c: New file.
7725 * Makefile.in (COMMON_SFILES): Add dwz.c.
7726
7727 2020-03-26 Tom Tromey <tom@tromey.com>
7728
7729 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
7730 * dwarf2/read.c: Add include.
7731 * dwarf2/index-write.c: Add include.
7732 * dwarf2/index-cache.c: Add include.
7733 * dwarf2/dwz.h: New file.
7734
7735 2020-03-25 Tom Tromey <tom@tromey.com>
7736
7737 * compile/compile-object-load.c (get_out_value_type): Mention
7738 correct symbol name in error message.
7739
7740 2020-03-25 Hannes Domani <ssbssa@yahoo.de>
7741
7742 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
7743
7744 2020-03-25 Tom de Vries <tdevries@suse.de>
7745
7746 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
7747 * symmisc.c (dump_symtab_1): Print user and includes fields.
7748 (maintenance_info_symtabs): Same.
7749
7750 2020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
7751
7752 PR gdb/25534
7753 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
7754 (riscv_regcache_cooked_write): New function.
7755 (riscv_push_dummy_call): Use new function.
7756 (riscv_return_value): Likewise.
7757
7758 2020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
7759
7760 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
7761 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
7762 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
7763 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
7764 * infrun.c (follow_fork): Likewise.
7765 (follow_fork_inferior): Likewise.
7766 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
7767 * linux-nat.h (class linux_nat_target): Likewise.
7768 * remote.c (class remote_target) <follow_fork>: Likewise.
7769 (remote_target::follow_fork): Likewise.
7770 * target-delegates.c: Re-generate.
7771 * target.c (default_follow_fork): Likewise.
7772 (target_follow_fork): Likewise.
7773 * target.h (struct target_ops) <follow_fork>: Likewise.
7774 (target_follow_fork): Likewise.
7775
7776 2020-03-24 Tom de Vries <tdevries@suse.de>
7777
7778 * psymtab.c (maintenance_info_psymtabs): Print user field.
7779
7780 2020-03-20 Tom Tromey <tromey@adacore.com>
7781
7782 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
7783 const.
7784 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
7785 const.
7786
7787 2020-03-20 Simon Marchi <simon.marchi@efficios.com>
7788
7789 * ptrace.m4: Don't check for ptrace declaration.
7790 * config.in: Re-generate.
7791 * configure: Re-generate.
7792 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
7793 not defined.
7794
7795 2020-03-20 Kamil Rytarowski <n54@gmx.com>
7796
7797 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
7798 `PTRACE_TYPE_RET'.
7799 * i386-bsd-nat.c (gdb_ptrace): Likewise.
7800 * sparc-nat.c (gdb_ptrace): Likewise.
7801 * x86-bsd-nat.c (gdb_ptrace): Likewise.
7802
7803 2020-03-20 Tom Tromey <tromey@adacore.com>
7804
7805 * c-exp.y (lex_one_token): Fix assert.
7806
7807 2020-03-20 Tom Tromey <tromey@adacore.com>
7808
7809 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
7810 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
7811 strncpy call.
7812
7813 2020-03-20 Tom Tromey <tromey@adacore.com>
7814
7815 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
7816
7817 2020-03-20 Tom Tromey <tromey@adacore.com>
7818
7819 * ada-valprint.c (print_variant_part): Remove parameters; switch
7820 to value-based API.
7821 (print_field_values): Likewise.
7822 (ada_val_print_struct_union): Likewise.
7823 (ada_value_print_1): Update.
7824
7825 2020-03-20 Kamil Rytarowski <n54@gmx.com>
7826
7827 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
7828 nbsd_nat_target instead of inf_ptrace_target.
7829 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
7830 nbsd_nat_target.
7831
7832 2020-03-20 Kamil Rytarowski <n54@gmx.com>
7833
7834 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
7835 it to the ptrace call.
7836 * (store_registers): Likewise.
7837
7838 2020-03-20 Kamil Rytarowski <n54@gmx.com>
7839
7840 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
7841 it to the ptrace call.
7842 * (store_registers): Likewise.
7843
7844 2020-03-19 Luis Machado <luis.machado@linaro.org>
7845
7846 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
7847 valid, fetch vg value from ptrace.
7848
7849 2020-03-19 Kamil Rytarowski <n54@gmx.com>
7850 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
7851 * inf-ptrace.c: Likewise.
7852 * (gdb_ptrace): Add.
7853 * (inf_ptrace_target::resume): Update.
7854 * (inf_ptrace_target::xfer_partial): Likewise.
7855 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
7856 * (inf_ptrace_peek_poke): Update.
7857
7858 2020-03-19 Kamil Rytarowski <n54@gmx.com>
7859
7860 * x86-bsd-nat.c (gdb_ptrace): New.
7861 * (x86bsd_dr_set): Add new argument `ptid'.
7862 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
7863 x86bsd_dr_set_addr): Update.
7864
7865 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
7866
7867 * remote.c (remote_target::process_stop_reply): Handle events for
7868 all threads differently.
7869
7870 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
7871
7872 * completer.c (completion_tracker::remove_completion): Define new
7873 function.
7874 * completer.h (completion_tracker::remove_completion): Declare new
7875 function.
7876 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
7877 when adding a C++ function symbol.
7878
7879 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
7880
7881 * completer.c (completion_tracker::completion_hash_entry): Define
7882 new class.
7883 (advance_to_filename_complete_word_point): Call
7884 recompute_lowest_common_denominator.
7885 (completion_tracker::completion_tracker): Call discard_completions
7886 to setup the hash table.
7887 (completion_tracker::discard_completions): Allow for being called
7888 from the constructor, pass new equal function, and element deleter
7889 when constructing the hash table. Initialise new class member
7890 variables.
7891 (completion_tracker::maybe_add_completion): Remove use of
7892 m_entries_vec, and store more information into m_entries_hash.
7893 (completion_tracker::recompute_lcd_visitor): New function, most
7894 content taken from...
7895 (completion_tracker::recompute_lowest_common_denominator):
7896 ...here, this now just visits each item in the hash calling the
7897 above visitor.
7898 (completion_tracker::build_completion_result): Remove use of
7899 m_entries_vec, call recompute_lowest_common_denominator.
7900 * completer.h (completion_tracker::have_completions): Remove use
7901 of m_entries_vec.
7902 (completion_tracker::completion_hash_entry): Declare new class.
7903 (completion_tracker::recompute_lowest_common_denominator): Change
7904 function signature.
7905 (completion_tracker::recompute_lcd_visitor): Declare new function.
7906 (completion_tracker::m_entries_vec): Delete.
7907 (completion_tracker::m_entries_hash): Initialize to NULL.
7908 (completion_tracker::m_lowest_common_denominator_valid): New
7909 member variable.
7910 (completion_tracker::m_lowest_common_denominator_max_length): New
7911 member variable.
7912
7913 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7914
7915 * regformats/regdef.h: Put reg in gdb namespace.
7916
7917 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7918
7919 * i386-bsd-nat.c (gdb_ptrace): New.
7920 * (i386bsd_fetch_inferior_registers,
7921 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
7922 * (i386bsd_fetch_inferior_registers,
7923 i386bsd_store_inferior_registers) Use gdb_ptrace.
7924
7925 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7926
7927 * amd64-bsd-nat.c (gdb_ptrace): New.
7928 * (amd64bsd_fetch_inferior_registers,
7929 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
7930 * (amd64bsd_fetch_inferior_registers,
7931 amd64bsd_store_inferior_registers) Use gdb_ptrace.
7932
7933 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7934
7935 * user-regs.c (user_reg::read): Rename to...
7936 (user_reg::xread): ...this.
7937 * (append_user_reg): Rename argument `read' to `xread'.
7938 * (user_reg_add_builtin): Likewise.
7939 * (user_reg_add): Likewise.
7940 * (value_of_user_reg): Likewise.
7941
7942 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7943
7944 * sparc-nat.c (gdb_ptrace): New.
7945 * sparc-nat.c (sparc_fetch_inferior_registers)
7946 (sparc_store_inferior_registers) Remove obsolete comment.
7947 * sparc-nat.c (sparc_fetch_inferior_registers)
7948 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
7949 * sparc-nat.c (sparc_fetch_inferior_registers)
7950 (sparc_store_inferior_registers) Use gdb_ptrace.
7951
7952 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7953
7954 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
7955 it to the ptrace call.
7956 * sh-nbsd-nat.c (store_registers): Likewise.
7957
7958 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7959
7960 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
7961 nbsd_nat_target instead of inf_ptrace_target.
7962 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
7963 nbsd_nat_target.
7964
7965 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7966
7967 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
7968
7969 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7970
7971 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
7972 <sys/sysctl.h>.
7973 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
7974
7975 2020-03-17 Tom de Vries <tdevries@suse.de>
7976
7977 PR gdb/23710
7978 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
7979 fields.
7980 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
7981 fields.
7982 (process_imported_unit_die): Skip import of c++ CUs.
7983
7984 2020-03-16 Tom Tromey <tom@tromey.com>
7985
7986 * p-valprint.c (pascal_object_print_value): Initialize
7987 base_value.
7988
7989 2020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
7990 Shahab Vahedi <shahab@synopsys.com>
7991
7992 * Makefile.in: Add arch/arc.o
7993 * configure.tgt: Likewise.
7994 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
7995 (_initialize_arc_tdep): Don't initialize old target descriptions.
7996 (arc_read_description): New function to cache target descriptions.
7997 * arc-tdep.h (arc_read_description): Add proto type.
7998 * arch/arc.c: New file.
7999 * arch/arc.h: Likewise.
8000 * features/Makefile: Replace old target descriptions with new.
8001 * features/arc-arcompact.c: Remove.
8002 * features/arc-arcompact.xml: Likewise.
8003 * features/arc-v2.c: Likewise
8004 * features/arc-v2.xml: Likewise
8005 * features/arc/aux-arcompact.xml: New file.
8006 * features/arc/aux-v2.xml: Likewise.
8007 * features/arc/core-arcompact.xml: Likewise.
8008 * features/arc/core-v2.xml: Likewise.
8009 * features/arc/aux-arcompact.c: Generate.
8010 * features/arc/aux-v2.c: Likewise.
8011 * features/arc/core-arcompact.c: Likewise.
8012 * features/arc/core-v2.c: Likewise.
8013 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
8014
8015 2020-03-16 Tom Tromey <tromey@adacore.com>
8016
8017 PR gdb/25663:
8018 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
8019 putting value into bcache.
8020
8021 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
8022
8023 PR gdb/21500
8024 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
8025 to...
8026 (amd64_windows_init_abi_common): ... this. Don't set size of
8027 long type.
8028 (amd64_windows_init_abi): New function.
8029 (amd64_cygwin_init_abi): New function.
8030 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
8031 the Cygwin OS ABI.
8032 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
8033 comment.
8034
8035 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
8036
8037 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
8038 * windows-tdep.c (CYGWIN_DLL_NAME): New.
8039 (pe_import_directory_entry): New struct type.
8040 (is_linked_with_cygwin_dll): New function.
8041 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
8042 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
8043 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
8044
8045 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
8046
8047 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
8048 i386_cygwin_core_osabi_sniffer.
8049
8050 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
8051
8052 * i386-cygwin-tdep.c: Rename to...
8053 * i386-windows-tdep.c: ... this.
8054 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
8055 i386-windows-tdep.c.
8056 * configure.tgt: Likewise.
8057
8058 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
8059
8060 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
8061 * osabi.c (gdb_osabi_names): Add "Windows".
8062 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
8063 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
8064 (i386_cygwin_core_osabi_sniffer): New function, extracted from
8065 i386_cygwin_osabi_sniffer.
8066 (_initialize_i386_cygwin_tdep): Register OS ABI
8067 GDB_OSABI_WINDOWS for i386.
8068 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
8069 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
8070 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
8071 for x86-64.
8072 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
8073 when the target matches '*-*-mingw*'.
8074
8075 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
8076
8077 * defs.h (enum gdb_osabi): Move to...
8078 * osabi.h (enum gdb_osabi): ... here.
8079 * gdbarch.sh: Include osabi.h in gdbarch.h.
8080 * gdbarch.h: Re-generate.
8081
8082 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
8083
8084 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
8085 function.
8086 (_initialize_amd64_windows_tdep): Register osabi sniffer.
8087
8088 2020-03-14 Tom Tromey <tom@tromey.com>
8089
8090 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
8091 for C++.
8092 (c_type_print_modifier): Likewise. Add "language" parameter.
8093 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
8094 (c_type_print_base_1): Update.
8095 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
8096 constants.
8097 * type-stack.c (type_stack::insert): Handle tp_atomic and
8098 tp_restrict.
8099 (type_stack::follow_type_instance_flags): Likewise.
8100 (type_stack::follow_types): Likewise. Merge type-following code.
8101 * c-exp.y (RESTRICT, ATOMIC): New tokens.
8102 (space_identifier, cv_with_space_id)
8103 (const_or_volatile_or_space_identifier_noopt)
8104 (const_or_volatile_or_space_identifier): Remove.
8105 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
8106 rules.
8107 (ptr_operator, typebase): Update.
8108 (enum token_flag) <FLAG_C>: New constant.
8109 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
8110 "_Atomic".
8111 (lex_one_token): Handle FLAG_C.
8112
8113 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8114
8115 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
8116 it to the ptrace call.
8117 * m68k-bsd-nat.c (store_registers): Likewise.
8118
8119 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8120
8121 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
8122 gdb_byte *.
8123 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
8124 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
8125 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
8126
8127 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8128
8129 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
8130 nbsd_nat_target instead of inf_ptrace_target.
8131 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
8132 nbsd_nat_target.
8133
8134 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8135
8136 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
8137 register_t.
8138
8139 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8140
8141 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
8142 it to the ptrace call.
8143 * alpha-bsd-nat.c (store_registers): Likewise.
8144
8145 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8146
8147 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
8148 includes.
8149 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
8150 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
8151 fill_fpregset): Likewise.
8152
8153 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8154
8155 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
8156 nbsd_nat_target instead of inf_ptrace_target.
8157 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
8158 nbsd_nat_target.
8159
8160 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8161
8162 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
8163 register_t.
8164
8165 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8166
8167 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
8168 it to the ptrace call.
8169 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
8170 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
8171 * arm-nbsd-nat.c (store_register): Likewise.
8172 * arm-nbsd-nat.c (store_regs): Likewise.
8173 * arm-nbsd-nat.c (store_fp_register): Likewise.
8174 * arm-nbsd-nat.c (store_fp_regs): Likewise.
8175
8176 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8177
8178 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
8179 nbsd_nat_target instead of inf_ptrace_target.
8180 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
8181 nbsd_nat_target.
8182
8183 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8184
8185 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
8186 it to the ptrace call.
8187 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
8188
8189 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8190
8191 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
8192 it to the ptrace call.
8193 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
8194
8195 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8196
8197 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
8198 gdb_byte *.
8199 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
8200
8201 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8202
8203 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
8204 instead of inf_ptrace_target.
8205 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
8206 nbsd_nat_target.
8207
8208 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8209
8210 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
8211 register_t.
8212
8213 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8214
8215 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
8216 register_t.
8217
8218 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8219
8220 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
8221 register_t.
8222
8223 2020-03-13 Tom Tromey <tom@tromey.com>
8224
8225 * value.h (val_print): Don't declare.
8226 * valprint.h (val_print_array_elements)
8227 (val_print_scalar_formatted, generic_val_print): Don't declare.
8228 * valprint.c (generic_val_print_array): Take a struct value.
8229 (generic_val_print_ptr, generic_val_print_memberptr)
8230 (generic_val_print_bool, generic_val_print_int)
8231 (generic_val_print_char, generic_val_print_complex)
8232 (generic_val_print): Remove.
8233 (generic_value_print): Update.
8234 (do_val_print): Remove unused parameters. Don't call
8235 la_val_print.
8236 (val_print): Remove.
8237 (common_val_print): Update. Don't call value_check_printable.
8238 (val_print_scalar_formatted, val_print_array_elements): Remove.
8239 * rust-lang.c (rust_val_print): Remove.
8240 (rust_language_defn): Update.
8241 * p-valprint.c (pascal_val_print): Remove.
8242 (pascal_value_print_inner): Update.
8243 (pascal_object_print_val_fields, pascal_object_print_val):
8244 Remove.
8245 (pascal_object_print_static_field): Update.
8246 * p-lang.h (pascal_val_print): Don't declare.
8247 * p-lang.c (pascal_language_defn): Update.
8248 * opencl-lang.c (opencl_language_defn): Update.
8249 * objc-lang.c (objc_language_defn): Update.
8250 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
8251 * m2-lang.h (m2_val_print): Don't declare.
8252 * m2-lang.c (m2_language_defn): Update.
8253 * language.h (struct language_defn) <la_val_print>: Remove.
8254 * language.c (unk_lang_value_print_inner): Rename. Change
8255 argument types.
8256 (unknown_language_defn, auto_language_defn): Update.
8257 * go-valprint.c (go_val_print): Remove.
8258 * go-lang.h (go_val_print): Don't declare.
8259 * go-lang.c (go_language_defn): Update.
8260 * f-valprint.c (f_val_print): Remove.
8261 * f-lang.h (f_value_print): Don't declare.
8262 * f-lang.c (f_language_defn): Update.
8263 * d-valprint.c (d_val_print): Remove.
8264 * d-lang.h (d_value_print): Don't declare.
8265 * d-lang.c (d_language_defn): Update.
8266 * cp-valprint.c (cp_print_value_fields)
8267 (cp_print_value_fields_rtti, cp_print_value): Remove.
8268 (cp_print_static_field): Update.
8269 * c-valprint.c (c_val_print_array, c_val_print_ptr)
8270 (c_val_print_struct, c_val_print_union, c_val_print_int)
8271 (c_val_print_memberptr, c_val_print): Remove.
8272 * c-lang.h (c_val_print_array, cp_print_value_fields)
8273 (cp_print_value_fields_rtti): Don't declare.
8274 * c-lang.c (c_language_defn, cplus_language_defn)
8275 (asm_language_defn, minimal_language_defn): Update.
8276 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
8277 (ada_val_print_enum): Take a struct value.
8278 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
8279 (ada_val_print): Remove.
8280 (ada_value_print_1): Update.
8281 (printable_val_type): Remove.
8282 * ada-lang.h (ada_val_print): Don't declare.
8283 * ada-lang.c (ada_language_defn): Update.
8284
8285 2020-03-13 Tom Tromey <tom@tromey.com>
8286
8287 * valprint.c (do_val_print): Update.
8288 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
8289 a struct value.
8290 (value_to_value_object_no_release): Declare.
8291 * python/py-value.c (value_to_value_object_no_release): New
8292 function.
8293 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
8294 struct value.
8295 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
8296 function.
8297 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
8298 a struct value.
8299 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
8300 Declare.
8301 (gdbscm_apply_val_pretty_printer): Take a struct value.
8302 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
8303 value.
8304 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
8305 value.
8306 * extension-priv.h (struct extension_language_ops)
8307 <apply_val_pretty_printer>: Take a struct value.
8308 * cp-valprint.c (cp_print_value): Create a struct value.
8309 (cp_print_value): Update.
8310
8311 2020-03-13 Tom Tromey <tom@tromey.com>
8312
8313 * ada-valprint.c (print_field_values): Call common_val_print.
8314
8315 2020-03-13 Tom Tromey <tom@tromey.com>
8316
8317 * ada-valprint.c (val_print_packed_array_elements): Remove
8318 bitoffset and val parameters. Call common_val_print.
8319 (ada_val_print_string): Remove offset, address, and original_value
8320 parameters.
8321 (ada_val_print_array): Update.
8322 (ada_value_print_array): New function.
8323 (ada_value_print_1): Call it.
8324
8325 2020-03-13 Tom Tromey <tom@tromey.com>
8326
8327 * ada-valprint.c (ada_value_print): Use common_val_print.
8328
8329 2020-03-13 Tom Tromey <tom@tromey.com>
8330
8331 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
8332
8333 2020-03-13 Tom Tromey <tom@tromey.com>
8334
8335 * ada-valprint.c (ada_value_print_num): New function.
8336 (ada_value_print_1): Use it.
8337
8338 2020-03-13 Tom Tromey <tom@tromey.com>
8339
8340 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
8341
8342 2020-03-13 Tom Tromey <tom@tromey.com>
8343
8344 * ada-valprint.c (ada_value_print_ptr): New function.
8345 (ada_value_print_1): Use it.
8346
8347 2020-03-13 Tom Tromey <tom@tromey.com>
8348
8349 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
8350 call common_val_print.
8351 (ada_val_print_1): Update.
8352 (ada_value_print_1): New function.
8353 (ada_value_print_inner): Rewrite.
8354
8355 2020-03-13 Tom Tromey <tom@tromey.com>
8356
8357 * cp-valprint.c (cp_print_value_fields): Update.
8358 (cp_print_value): New function.
8359
8360 2020-03-13 Tom Tromey <tom@tromey.com>
8361
8362 * m2-valprint.c (m2_value_print_inner): Use
8363 cp_print_value_fields.
8364 * cp-valprint.c (cp_print_value_fields): New function.
8365 * c-valprint.c (c_value_print_struct): New function.
8366 (c_value_print_inner): Use c_value_print_struct.
8367 * c-lang.h (cp_print_value_fields): Declare.
8368
8369 2020-03-13 Tom Tromey <tom@tromey.com>
8370
8371 * c-valprint.c (c_value_print_array): New function.
8372 (c_value_print_inner): Use it.
8373
8374 2020-03-13 Tom Tromey <tom@tromey.com>
8375
8376 * c-valprint.c (c_value_print_memberptr): New function.
8377 (c_value_print_inner): Use it.
8378
8379 2020-03-13 Tom Tromey <tom@tromey.com>
8380
8381 * c-valprint.c (c_value_print_int): New function.
8382 (c_value_print_inner): Use it.
8383
8384 2020-03-13 Tom Tromey <tom@tromey.com>
8385
8386 * c-valprint.c (c_value_print_ptr): New function.
8387 (c_value_print_inner): Use it.
8388
8389 2020-03-13 Tom Tromey <tom@tromey.com>
8390
8391 * c-valprint.c (c_value_print_inner): Rewrite.
8392
8393 2020-03-13 Tom Tromey <tom@tromey.com>
8394
8395 * valprint.c (generic_value_print_complex): New function.
8396 (generic_value_print): Use it.
8397
8398 2020-03-13 Tom Tromey <tom@tromey.com>
8399
8400 * valprint.c (generic_val_print_float): Don't call
8401 val_print_scalar_formatted.
8402 (generic_val_print, generic_value_print): Update.
8403
8404 2020-03-13 Tom Tromey <tom@tromey.com>
8405
8406 * valprint.c (generic_value_print_char): New function
8407 (generic_value_print): Use it.
8408
8409 2020-03-13 Tom Tromey <tom@tromey.com>
8410
8411 * valprint.c (generic_value_print_int): New function.
8412 (generic_value_print): Use it.
8413
8414 2020-03-13 Tom Tromey <tom@tromey.com>
8415
8416 * valprint.c (generic_value_print_bool): New function.
8417 (generic_value_print): Use it.
8418
8419 2020-03-13 Tom Tromey <tom@tromey.com>
8420
8421 * valprint.c (generic_val_print_func): Simplify.
8422 (generic_val_print, generic_value_print): Update.
8423
8424 2020-03-13 Tom Tromey <tom@tromey.com>
8425
8426 * valprint.c (generic_val_print_flags): Remove.
8427 (generic_val_print, generic_value_print): Update.
8428 (val_print_type_code_flags): Add original_value parameter.
8429
8430 2020-03-13 Tom Tromey <tom@tromey.com>
8431
8432 * valprint.c (generic_val_print): Update.
8433 (generic_value_print): Update.
8434 * valprint.c (generic_val_print_enum): Don't call
8435 val_print_scalar_formatted.
8436
8437 2020-03-13 Tom Tromey <tom@tromey.com>
8438
8439 * valprint.c (generic_value_print): Call generic_value_print_ptr.
8440 * valprint.c (generic_value_print_ptr): New function.
8441
8442 2020-03-13 Tom Tromey <tom@tromey.com>
8443
8444 * valprint.c (generic_value_print): Rewrite.
8445
8446 2020-03-13 Tom Tromey <tom@tromey.com>
8447
8448 * p-valprint.c (pascal_object_print_value_fields)
8449 (pascal_object_print_value): New functions.
8450
8451 2020-03-13 Tom Tromey <tom@tromey.com>
8452
8453 * p-valprint.c (pascal_value_print_inner): Rewrite.
8454
8455 2020-03-13 Tom Tromey <tom@tromey.com>
8456
8457 * f-valprint.c (f_value_print_innner): Rewrite.
8458
8459 2020-03-13 Tom Tromey <tom@tromey.com>
8460
8461 * m2-valprint.c (m2_print_unbounded_array): New overload.
8462 (m2_print_unbounded_array): Update.
8463 (m2_print_array_contents): Take a struct value.
8464 (m2_value_print_inner): Rewrite.
8465
8466 2020-03-13 Tom Tromey <tom@tromey.com>
8467
8468 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
8469 (d_value_print_inner): New function.
8470 * d-lang.h (d_value_print_inner): Declare.
8471 * d-lang.c (d_language_defn): Use d_value_print_inner.
8472
8473 2020-03-13 Tom Tromey <tom@tromey.com>
8474
8475 * go-valprint.c (go_value_print_inner): New function.
8476 * go-lang.h (go_value_print_inner): Declare.
8477 * go-lang.c (go_language_defn): Use go_value_print_inner.
8478
8479 2020-03-13 Tom Tromey <tom@tromey.com>
8480
8481 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
8482 API.
8483 (rust_val_print): Rewrite.
8484 (rust_value_print_inner): New function, from rust_val_print.
8485 (rust_language_defn): Use rust_value_print_inner.
8486
8487 2020-03-13 Tom Tromey <tom@tromey.com>
8488
8489 * ada-valprint.c (ada_value_print_inner): New function.
8490 * ada-lang.h (ada_value_print_inner): Declare.
8491 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
8492
8493 2020-03-13 Tom Tromey <tom@tromey.com>
8494
8495 * f-valprint.c (f_value_print_innner): New function.
8496 * f-lang.h (f_value_print_innner): Declare.
8497 * f-lang.c (f_language_defn): Use f_value_print_innner.
8498
8499 2020-03-13 Tom Tromey <tom@tromey.com>
8500
8501 * p-valprint.c (pascal_value_print_inner): New function.
8502 * p-lang.h (pascal_value_print_inner): Declare.
8503 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
8504
8505 2020-03-13 Tom Tromey <tom@tromey.com>
8506
8507 * m2-valprint.c (m2_value_print_inner): New function.
8508 * m2-lang.h (m2_value_print_inner): Declare.
8509 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
8510
8511 2020-03-13 Tom Tromey <tom@tromey.com>
8512
8513 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
8514 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
8515 * c-valprint.c (c_value_print_inner): New function.
8516 * c-lang.h (c_value_print_inner): Declare.
8517 * c-lang.c (c_language_defn, cplus_language_defn)
8518 (asm_language_defn, minimal_language_defn): Use
8519 c_value_print_inner.
8520
8521 2020-03-13 Tom Tromey <tom@tromey.com>
8522
8523 * p-valprint.c (pascal_object_print_value_fields): Now static.
8524 * p-lang.h (pascal_object_print_value_fields): Don't declare.
8525
8526 2020-03-13 Tom Tromey <tom@tromey.com>
8527
8528 * c-valprint.c (c_val_print_array): Simplify.
8529
8530 2020-03-13 Tom Tromey <tom@tromey.com>
8531
8532 * valprint.c (value_print_array_elements): New function.
8533 * valprint.h (value_print_array_elements): Declare.
8534
8535 2020-03-13 Tom Tromey <tom@tromey.com>
8536
8537 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
8538 * mips-tdep.c (mips_print_register): Use
8539 value_print_scalar_formatted.
8540
8541 2020-03-13 Tom Tromey <tom@tromey.com>
8542
8543 * valprint.h (value_print_scalar_formatted): Declare.
8544 * valprint.c (value_print_scalar_formatted): New function.
8545
8546 2020-03-13 Tom Tromey <tom@tromey.com>
8547
8548 * valprint.h (generic_value_print): Declare.
8549 * valprint.c (generic_value_print): New function.
8550
8551 2020-03-13 Tom Tromey <tom@tromey.com>
8552
8553 * valprint.c (do_val_print): Call la_value_print_inner, if
8554 available.
8555 * rust-lang.c (rust_language_defn): Update.
8556 * p-lang.c (pascal_language_defn): Update.
8557 * opencl-lang.c (opencl_language_defn): Update.
8558 * objc-lang.c (objc_language_defn): Update.
8559 * m2-lang.c (m2_language_defn): Update.
8560 * language.h (struct language_defn) <la_value_print_inner>: New
8561 member.
8562 * language.c (unknown_language_defn, auto_language_defn): Update.
8563 * go-lang.c (go_language_defn): Update.
8564 * f-lang.c (f_language_defn): Update.
8565 * d-lang.c (d_language_defn): Update.
8566 * c-lang.c (c_language_defn, cplus_language_defn)
8567 (asm_language_defn, minimal_language_defn): Update.
8568 * ada-lang.c (ada_language_defn): Update.
8569
8570 2020-03-13 Tom Tromey <tom@tromey.com>
8571
8572 * c-valprint.c (c_value_print): Use common_val_print.
8573
8574 2020-03-13 Tom Tromey <tom@tromey.com>
8575
8576 * cp-valprint.c (cp_print_static_field): Use common_val_print.
8577
8578 2020-03-13 Tom Tromey <tom@tromey.com>
8579
8580 * f-valprint.c (f77_print_array_1, f_val_print): Use
8581 common_val_print.
8582
8583 2020-03-13 Tom Tromey <tom@tromey.com>
8584
8585 * riscv-tdep.c (riscv_print_one_register_info): Use
8586 common_val_print.
8587
8588 2020-03-13 Tom Tromey <tom@tromey.com>
8589
8590 * mi/mi-main.c (output_register): Use common_val_print.
8591
8592 2020-03-13 Tom Tromey <tom@tromey.com>
8593
8594 * infcmd.c (default_print_one_register_info): Use
8595 common_val_print.
8596
8597 2020-03-13 Tom Tromey <tom@tromey.com>
8598
8599 * valprint.h (common_val_print_checked): Declare.
8600 * valprint.c (common_val_print_checked): New function.
8601 * stack.c (print_frame_arg): Use common_val_print_checked.
8602
8603 2020-03-13 Tom Tromey <tom@tromey.com>
8604
8605 * valprint.c (do_val_print): New function, from val_print.
8606 (val_print): Use do_val_print.
8607 (common_val_print): Use do_val_print.
8608
8609 2020-03-13 Tom Tromey <tom@tromey.com>
8610
8611 * valprint.c (value_print): Use scoped_value_mark.
8612
8613 2020-03-13 Tom de Vries <tdevries@suse.de>
8614
8615 PR symtab/25646
8616 * psymtab.c (partial_symtab::partial_symtab): Don't set
8617 globals_offset and statics_offset. Push element onto
8618 current_global_psymbols and current_static_psymbols stacks.
8619 (concat): New function.
8620 (end_psymtab_common): Set globals_offset and statics_offset. Pop
8621 element from current_global_psymbols and current_static_psymbols
8622 stacks. Concat popped elements to global_psymbols and
8623 static_symbols.
8624 (add_psymbol_to_list): Use current_global_psymbols and
8625 current_static_psymbols stacks.
8626 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
8627 current_static_psymbols fields.
8628
8629 2020-03-12 Christian Biesinger <cbiesinger@google.com>
8630
8631 * corelow.c (sniff_core_bfd): Remove.
8632 (class core_target) <m_core_vec>: Remove.
8633 (core_target::core_target): Update.
8634 (core_file_fns): Remove.
8635 (deprecated_add_core_fns): Remove.
8636 (default_core_sniffer): Remove.
8637 (sniff_core_bfd): Remove.
8638 (default_check_format): Remove.
8639 (gdb_check_format): Remove.
8640 (core_target_open): Update.
8641 (core_target::get_core_register_section): Update.
8642 (get_core_registers_cb): Update.
8643 (core_target::fetch_registers): Update.
8644 * gdbcore.h (struct core_fns): Remove.
8645 (deprecated_add_core_fns): Remove.
8646 (default_core_sniffer): Remove.
8647 (default_check_format): Remove.
8648
8649 2020-03-12 Tom Tromey <tom@tromey.com>
8650
8651 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
8652 CORE_ADDR.
8653 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
8654
8655 2020-03-12 Tom Tromey <tom@tromey.com>
8656
8657 * remote.c (remote_target::download_tracepoint)
8658 (remote_target::enable_tracepoint)
8659 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
8660 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
8661 sprintf_vma.
8662
8663 2020-03-12 Tom Tromey <tom@tromey.com>
8664
8665 * symfile-mem.c: Update CORE_ADDR size assert.
8666
8667 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
8668
8669 * selftest.m4: Move to gdbsupport/.
8670 * acinclude.m4: Update path to selftest.m4.
8671
8672 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
8673
8674 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
8675 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
8676 gdbarch-selfselftests.c and selftest-arch.c.
8677 (SUBDIR_UNITTESTS_OBS): Rename to...
8678 (SELFTESTS_OBS): ... this.
8679 (COMMON_SFILES): Remove disasm-selftests.c and
8680 gdbarch-selftests.c.
8681 * configure.ac: Don't add selftest-arch.{c,o} to
8682 CONFIG_{SRCS,OBS}.
8683 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
8684 preprocessor conditions.
8685
8686 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
8687
8688 * configure.ac: Don't source bfd/development.sh.
8689 * selftest.m4: Modify comment.
8690 * configure: Re-generate.
8691
8692 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
8693
8694 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
8695 not "true" or "false".
8696 * configure: Re-generate.
8697
8698 2020-03-12 Christian Biesinger <cbiesinger@google.com>
8699
8700 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
8701 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
8702 renamed to arm_nbsd_supply_gregset.
8703 (fetch_register): Update to call arm_nbsd_supply_gregset.
8704 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
8705 (arm_netbsd_nat_target::fetch_registers): Update.
8706 (fetch_elfcore_registers): Removed.
8707 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
8708 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
8709 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
8710 not require NetBSD system headers.
8711 (arm_nbsd_regset): New struct.
8712 (arm_nbsd_iterate_over_regset_sections): New function.
8713 (arm_netbsd_init_abi_common): Updated to call
8714 set_gdbarch_iterate_over_regset_sections.
8715 * arm-nbsd-tdep.h: New file.
8716
8717 2020-03-11 Kevin Buettner <kevinb@redhat.com>
8718
8719 * symtab.c (find_pc_sect_line): Add check which prevents infinite
8720 recursion.
8721
8722 2020-03-11 Simon Marchi <simon.marchi@efficios.com>
8723
8724 * configure: Re-generate.
8725
8726 2020-03-11 Tom Tromey <tromey@adacore.com>
8727
8728 * ada-typeprint.c (print_choices): Fix comment.
8729
8730 2020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
8731
8732 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
8733 previous item in the list, when the list has no items.
8734
8735 2020-03-11 Tom de Vries <tdevries@suse.de>
8736
8737 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
8738 PROP_LOCLIST handling code.
8739
8740 2020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
8741
8742 * buildsym-legacy.c (record_line): Pass extra parameter to
8743 record_line.
8744 * buildsym.c (buildsym_compunit::record_line): Take an extra
8745 parameter, reduce duplication in the line table, and record the
8746 is_stmt flag in the line table.
8747 * buildsym.h (buildsym_compunit::record_line): Add extra
8748 parameter.
8749 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
8750 non-statement lines.
8751 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
8752 this to the symtab builder.
8753 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
8754 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
8755 through to dwarf_record_line_1.
8756 * infrun.c (process_event_stop_test): When stepping, don't stop at
8757 a non-statement instruction, and only refresh the step info when
8758 we land in the middle of a line's range. Also add an extra
8759 comment.
8760 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
8761 field.
8762 * record-btrace.c (btrace_find_line_range): Only record lines
8763 marked as is-statement.
8764 * stack.c (frame_show_address): Show the frame address if we are
8765 in a non-statement sal.
8766 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
8767 (maintenance_print_one_line_table): Print a header for the is_stmt
8768 column, and include is_stmt information in the output.
8769 * symtab.c (find_pc_sect_line): Find lines marked as statements in
8770 preference to non-statements.
8771 (find_pcs_for_symtab_line): Prefer is-statement entries.
8772 (find_line_common): Likewise.
8773 * symtab.h (struct linetable_entry): Add is_stmt field.
8774 (struct symtab_and_line): Likewise.
8775 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
8776 arranging the line table.
8777
8778 2020-03-07 Tom de Vries <tdevries@suse.de>
8779
8780 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
8781 DIE.
8782
8783 2020-03-07 Tom Tromey <tom@tromey.com>
8784
8785 * valops.c (value_literal_complex): Remove obsolete comment.
8786 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
8787 comment.
8788
8789 2020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
8790
8791 * infrun.h: Forward-declare thread_info.
8792 (set_step_info): Add thread_info parameter, add doc.
8793 * infrun.c (set_step_info): Add thread_info parameter, move doc
8794 to header.
8795 * infrun.c (process_event_stop_test): Pass thread to
8796 set_step_info call.
8797 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
8798 set_step_info.
8799 (prepare_one_step): Add thread_info parameter, pass it to
8800 set_step_frame and prepare_one_step (recursive) call.
8801 (step_1): Pass thread to prepare_one_step call.
8802 (step_command_fsm::should_stop): Pass thread to
8803 prepare_one_step.
8804 (until_next_fsm): Pass thread to set_step_frame call.
8805 (finish_command): Pass thread to set_step_info call.
8806
8807 2020-03-06 Hannes Domani <ssbssa@yahoo.de>
8808
8809 * windows-tdep.c (windows_solib_create_inferior_hook):
8810 Check if inferior is running.
8811
8812 2020-03-06 Tom de Vries <tdevries@suse.de>
8813
8814 * NEWS: Fix "the the".
8815 * ctfread.c: Same.
8816
8817 2020-03-06 Tom de Vries <tdevries@suse.de>
8818
8819 * psymtab.c (psymtab_to_symtab): Don't print "done.".
8820
8821 2020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
8822
8823 * .dir-locals.el: Add a comment referencing the other copies of
8824 this file.
8825
8826 2020-03-05 John Baldwin <jhb@FreeBSD.org>
8827
8828 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
8829 psargs.
8830
8831 2020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8832
8833 * .gitattributes: New file.
8834
8835 2020-03-04 Tom Tromey <tom@tromey.com>
8836
8837 * symmisc.c (print_symbol_bcache_statistics)
8838 (print_objfile_statistics): Update.
8839 * symfile.c (allocate_symtab): Use intern.
8840 * psymtab.c (partial_symtab::partial_symtab): Use intern.
8841 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
8842 macro_cache>: Remove.
8843 <string_cache>: New member.
8844 (struct objfile) <intern>: New methods.
8845 * elfread.c (elf_symtab_read): Use intern.
8846 * dwarf2/read.c (fixup_go_packaging): Intern package name.
8847 (dwarf2_compute_name, dwarf2_physname)
8848 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
8849 names.
8850 (guess_partial_die_structure_name): Update.
8851 (partial_die_info::fixup): Intern name.
8852 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
8853 name.
8854 (dwarf2_name): Intern name. Update.
8855 * buildsym.c (buildsym_compunit::get_macro_table): Use
8856 string_cache.
8857
8858 2020-03-04 Tom Tromey <tom@tromey.com>
8859
8860 * jit.c (bfd_open_from_target_memory): Make "target" const.
8861 * corefile.c (gnutarget): Now const.
8862 * gdbcore.h (gnutarget): Now const.
8863
8864 2020-03-04 Hannes Domani <ssbssa@yahoo.de>
8865
8866 * NEWS: Mention support for WOW64 processes.
8867 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
8868 (amd64_windows_segment_register_p): Remove static.
8869 (_initialize_amd64_windows_nat): Update.
8870 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
8871 * i386-windows-nat.c (context_offset): Update.
8872 (i386_mappings): Rename and remove static.
8873 (i386_windows_segment_register_p): Remove static.
8874 (_initialize_i386_windows_nat): Update.
8875 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
8876 (STATUS_WX86_SINGLE_STEP): New macro.
8877 (EnumProcessModulesEx): New macro.
8878 (Wow64SuspendThread): New macro.
8879 (Wow64GetThreadContext): New macro.
8880 (Wow64SetThreadContext): New macro.
8881 (Wow64GetThreadSelectorEntry): New macro.
8882 (windows_set_context_register_offsets): Add static.
8883 (windows_set_segment_register_p): Likewise.
8884 (windows_add_thread): Adapt for WOW64 processes.
8885 (windows_fetch_one_register): Likewise.
8886 (windows_nat_target::fetch_registers): Likewise.
8887 (windows_store_one_register): Likewise.
8888 (display_selector): Likewise.
8889 (display_selectors): Likewise.
8890 (handle_exception): Likewise.
8891 (windows_continue): Likewise.
8892 (windows_nat_target::resume): Likewise.
8893 (windows_add_all_dlls): Likewise.
8894 (do_initial_windows_stuff): Likewise.
8895 (windows_nat_target::attach): Likewise.
8896 (windows_get_exec_module_filename): Likewise.
8897 (windows_nat_target::create_inferior): Likewise.
8898 (windows_xfer_siginfo): Likewise.
8899 (_initialize_loadable): Initialize Wow64SuspendThread,
8900 Wow64GetThreadContext, Wow64SetThreadContext,
8901 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
8902 * windows-nat.h (windows_set_context_register_offsets):
8903 Remove declaration.
8904 (windows_set_segment_register_p): Likewise.
8905 (i386_windows_segment_register_p): Add declaration.
8906 (amd64_windows_segment_register_p): Likewise.
8907
8908 2020-03-04 Luis Machado <luis.machado@linaro.org>
8909
8910 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
8911 in "info registers" for AArch64/ARM.
8912
8913 The change caused "info registers" to not print GPR's.
8914
8915 gdb/ChangeLog:
8916
8917 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
8918
8919 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
8920 when reg->group is empty and reggroup is not.
8921
8922 2020-03-03 Tom Tromey <tromey@adacore.com>
8923
8924 * dwarf2/frame.c (struct dwarf2_frame_cache)
8925 <checked_tailcall_bottom, entry_cfa_sp_offset,
8926 entry_cfa_sp_offset_p>: Remove members.
8927 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
8928 (dwarf2_frame_prev_register): Don't call
8929 dwarf2_tailcall_sniffer_first.
8930 (dwarf2_append_unwinders): Don't append tailcall unwinder.
8931 * frame-unwind.c (add_unwinder): New fuction.
8932 (frame_unwind_init): Use it. Add tailcall unwinder.
8933
8934 2020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
8935 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
8936
8937 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
8938 value should be printed as true.
8939
8940 2020-03-03 Hannes Domani <ssbssa@yahoo.de>
8941
8942 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
8943 (windows_init_abi): Set and use windows_so_ops.
8944
8945 2020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
8946
8947 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
8948 when verifying if dealing with a convenience variable.
8949
8950 2020-03-03 Luis Machado <luis.machado@linaro.org>
8951
8952 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
8953
8954 2020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
8955
8956 * infrun.c (gdbarch_supports_displaced_stepping): New.
8957 (use_displaced_stepping): Break up conditions in smaller pieces.
8958 Use gdbarch_supports_displaced_stepping.
8959 (displaced_step_prepare_throw): Use
8960 gdbarch_supports_displaced_stepping.
8961
8962 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
8963
8964 * NEWS: Mention new behaviour of the history filename.
8965 * top.c (write_history_p): Add comment.
8966 (show_write_history_p): Add header comment, give a different
8967 message when history writing is on, but the history filename is
8968 empty.
8969 (history_filename): Add comment.
8970 (history_filename_empty): New function.
8971 (show_history_filename): Add header comment, give a different
8972 message when the filename is empty.
8973 (init_history): Compare history_filename against nullptr, and only
8974 read history if the filename is not empty.
8975 (set_history_filename): Add header comment, and only make
8976 non-empty filenames absolute.
8977 (init_main): Make the filename argument to 'set history filename'
8978 optional.
8979
8980 2020-03-02 Christian Biesinger <cbiesinger@google.com>
8981
8982 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
8983 (arm_supply_vfpregset): ...this, and update to use VFP registers.
8984 (fetch_fp_register): Update.
8985 (fetch_fp_regs): Update.
8986 (store_fp_register): Update.
8987 (store_fp_regs): Update.
8988 (arm_netbsd_nat_target::read_description): New function.
8989 (fetch_elfcore_registers): Update.
8990
8991 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
8992
8993 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
8994 general_thread if the stop reply is missing a thread-id.
8995 (remote_target::process_stop_reply): Use the first non-exited
8996 thread if the target didn't pass a thread-id.
8997 * infrun.c (do_target_wait): Move call to
8998 switch_to_inferior_no_thread to ....
8999 (do_target_wait_1): ... here.
9000
9001 2020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
9002
9003 * debuginfod-support.c: Include defs.h first.
9004
9005 2020-02-28 Tom de Vries <tdevries@suse.de>
9006
9007 * symfile.c (set_initial_language): Use default language for lookup.
9008
9009 2020-02-28 Simon Marchi <simon.marchi@efficios.com>
9010
9011 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
9012 reader variable, pass `this` to read_cutu_die_from_dwo.
9013
9014 2020-02-27 Aaron Merey <amerey@redhat.com>
9015
9016 * source.c (open_source_file): Check for nullptr when computing
9017 srcpath.
9018
9019 2020-02-27 Tom Tromey <tromey@adacore.com>
9020
9021 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
9022 member.
9023 (dwarf2_add_field): Don't update nfields.
9024 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
9025
9026 2020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
9027
9028 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
9029 abs.
9030
9031 2020-02-26 Tom Tromey <tom@tromey.com>
9032
9033 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
9034 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
9035 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
9036 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
9037 per_cu_data.
9038
9039 2020-02-26 Tom Tromey <tom@tromey.com>
9040
9041 * dwarf2/index-write.c (psym_index_map): Change type.
9042 (add_address_entry_worker, write_one_signatured_type)
9043 (recursively_count_psymbols, recursively_write_psymbols)
9044 (class debug_names, psyms_seen_size, write_gdbindex)
9045 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
9046
9047 2020-02-26 Aaron Merey <amerey@redhat.com>
9048
9049 * Makefile.in: Handle optional debuginfod support.
9050 * NEWS: Update.
9051 * README: Add --with-debuginfod summary.
9052 * config.in: Regenerate.
9053 * configure: Regenerate.
9054 * configure.ac: Handle optional debuginfod support.
9055 * debuginfod-support.c: debuginfod helper functions.
9056 * debuginfod-support.h: Ditto.
9057 * doc/gdb.texinfo: Add --with-debuginfod to configure options
9058 summary.
9059 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
9060 when a dwz file cannot be found.
9061 * elfread.c (elf_symfile_read): Query debuginfod servers when a
9062 debuginfo file cannot be found.
9063 * source.c (open_source_file): Query debuginfod servers when a
9064 source file cannot be found.
9065 * top.c (print_gdb_configuration): Include
9066 --{with,without}-debuginfod in the output.
9067
9068 2020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
9069
9070 * thread.c (thr_try_catch_cmd): Print thread name.
9071
9072 2020-02-26 Simon Marchi <simon.marchi@efficios.com>
9073
9074 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
9075 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
9076 dwarf2_fetch_die_type_sect_off): Move to...
9077 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
9078 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
9079 dwarf2_fetch_die_type_sect_off): ... here.
9080 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
9081 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
9082 dwarf2_fetch_die_type_sect_off): Move doc to header file.
9083
9084 2020-02-26 Tom de Vries <tdevries@suse.de>
9085
9086 PR gdb/25603
9087 * symfile.c (set_initial_language): Exit-early if
9088 language_mode == language_mode_manual.
9089
9090 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
9091
9092 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
9093 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
9094 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
9095
9096 2020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
9097
9098 * gdbtypes.c (create_array_type_with_stride): Handle negative
9099 array strides.
9100 * valarith.c (value_subscripted_rvalue): Likewise.
9101
9102 2020-02-25 Luis Machado <luis.machado@linaro.org>
9103
9104 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
9105
9106 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
9107
9108 * loc.h (dwarf2_get_die_type): Move to...
9109 * read.h (dwarf2_get_die_type): ... here.
9110 * read.c (dwarf2_get_die_type): Move doc to header.
9111
9112 2020-02-25 Joel Brobecker <brobecker@adacore.com>
9113
9114 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
9115 'gnulib/Makefile.in' to the list.
9116
9117 2020-02-24 Tom Tromey <tom@tromey.com>
9118
9119 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
9120 Remove.
9121 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
9122 XOBNEWVEC.
9123
9124 2020-02-24 Tom Tromey <tom@tromey.com>
9125
9126 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
9127 New method.
9128 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
9129 (dw2_do_instantiate_symtab, dw2_get_file_names)
9130 (build_type_psymtab_dependencies, load_full_type_unit): Update.
9131
9132 2020-02-24 Tom Tromey <tom@tromey.com>
9133
9134 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
9135 make_scoped_restore.
9136 (dwarf2_psymtab::read_symtab): Don't clear
9137 reading_partial_symbols.
9138
9139 2020-02-24 Tom de Vries <tdevries@suse.de>
9140
9141 PR gdb/25592
9142 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
9143
9144 2020-02-24 Tom de Vries <tdevries@suse.de>
9145
9146 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
9147 commands layout next/prev/regs.
9148
9149 2020-02-22 Tom Tromey <tom@tromey.com>
9150
9151 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
9152 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
9153
9154 2020-02-22 Tom Tromey <tom@tromey.com>
9155
9156 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
9157
9158 2020-02-22 Tom Tromey <tom@tromey.com>
9159
9160 * tui/tui-win.c (_initialize_tui_win): Add usage text.
9161 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
9162 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
9163 * tui/tui.c (_initialize_tui): Add usage text.
9164
9165 2020-02-22 Tom Tromey <tom@tromey.com>
9166
9167 * tui/tui-win.c (tui_set_focus_command)
9168 (tui_set_win_height_command): Use error_no_arg.
9169 (_initialize_tui_win): Update help text.
9170 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
9171
9172 2020-02-22 Tom Tromey <tom@tromey.com>
9173
9174 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
9175 * tui/tui-disasm.h (struct tui_disasm_window)
9176 <display_start_addr>: Declare.
9177 * tui/tui-source.h (struct tui_source_window)
9178 <display_start_addr>: Declare.
9179 * tui/tui-winsource.h (struct tui_source_window_base)
9180 <show_source_line, display_start_addr>: New methods.
9181 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
9182 Rename and move to protected section.
9183 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
9184 (tui_source_window_base::do_erase_source_content): Update.
9185 (tui_source_window_base::show_source_line): Now a method.
9186 (tui_source_window_base::show_source_content)
9187 (tui_source_window_base::tui_source_window_base)
9188 (tui_source_window_base::rerender)
9189 (tui_source_window_base::refill)
9190 (tui_source_window_base::do_scroll_horizontal)
9191 (tui_source_window_base::set_is_exec_point_at)
9192 (tui_source_window_base::update_breakpoint_info)
9193 (tui_source_window_base::update_exec_info): Update.
9194 * tui/tui-source.c (tui_source_window::set_contents)
9195 (tui_source_window::showing_source_p)
9196 (tui_source_window::do_scroll_vertical)
9197 (tui_source_window::location_matches_p)
9198 (tui_source_window::line_is_displayed): Update.
9199 (tui_source_window::display_start_addr): New method.
9200 * tui/tui-disasm.c (tui_disasm_window::set_contents)
9201 (tui_disasm_window::do_scroll_vertical)
9202 (tui_disasm_window::location_matches_p): Update.
9203 (tui_disasm_window::display_start_addr): New method.
9204
9205 2020-02-22 Tom Tromey <tom@tromey.com>
9206
9207 * NEWS: Add entry for gdb.register_window_type.
9208 * tui/tui-layout.h (window_factory): New typedef.
9209 (tui_register_window): Declare.
9210 * tui/tui-layout.c (saved_tui_windows): New global.
9211 (tui_apply_current_layout): Use it.
9212 (tui_register_window): New function.
9213 * python/python.c (do_start_initialization): Call
9214 gdbpy_initialize_tui.
9215 (python_GdbMethods): Add "register_window_type" function.
9216 * python/python-internal.h (gdbpy_register_tui_window)
9217 (gdbpy_initialize_tui): Declare.
9218 * python/py-tui.c: New file.
9219 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
9220
9221 2020-02-22 Tom Tromey <tom@tromey.com>
9222
9223 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
9224
9225 2020-02-22 Tom Tromey <tom@tromey.com>
9226
9227 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
9228 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
9229 * tui/tui-data.c (tui_set_win_with_focus): Remove.
9230 (tui_set_win_focus_to): Move from tui-win.c.
9231
9232 2020-02-22 Tom Tromey <tom@tromey.com>
9233
9234 * tui/tui-layout.c (make_standard_window, get_locator_window): New
9235 functions.
9236 (known_window_types): New global.
9237 (tui_get_window_by_name): Reimplement.
9238 (initialize_known_windows): New function.
9239 (validate_window_name): Rewrite.
9240 (_initialize_tui_layout): Call initialize_known_windows.
9241
9242 2020-02-22 Tom Tromey <tom@tromey.com>
9243
9244 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
9245 Remove constants.
9246 * tui/tui-winsource.h (struct tui_source_window_base)
9247 <tui_source_window_base>: Remove parameter.
9248 * tui/tui-winsource.c
9249 (tui_source_window_base::tui_source_window_base): Remove
9250 parameter.
9251 (tui_source_window_base::refill): Update.
9252 * tui/tui-stack.h (struct tui_locator_window)
9253 <tui_locator_window>: Update.
9254 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
9255 Default the constructor.
9256 * tui/tui-regs.h (struct tui_data_item_window)
9257 <tui_data_item_window>: Default the constructor.
9258 (struct tui_data_window) <tui_data_window>: Likewise.
9259 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
9260 Default the constructor.
9261 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
9262 Default the constructor.
9263 <type>: Remove.
9264 (struct tui_win_info) <tui_win_info>: Default the constructor.
9265 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
9266 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
9267 Default the constructor.
9268
9269 2020-02-22 Tom Tromey <tom@tromey.com>
9270
9271 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
9272 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
9273 * tui/tui-win.c (tui_resize_all): Don't call
9274 tui_delete_invisible_windows.
9275 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
9276 done.
9277 (tui_set_layout): Update.
9278 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
9279 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
9280 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
9281
9282 2020-02-22 Tom Tromey <tom@tromey.com>
9283
9284 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
9285 correctly.
9286
9287 2020-02-22 Tom Tromey <tom@tromey.com>
9288
9289 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
9290
9291 2020-02-22 Tom Tromey <tom@tromey.com>
9292
9293 * tui/tui-winsource.h (struct tui_source_window_iterator)
9294 <inner_iterator>: New etytypedef.
9295 <tui_source_window_iterator>: Take "end" parameter.
9296 <tui_source_window_iterator>: Take iterator.
9297 <operator*, advance>: Update.
9298 <m_iter>: Change type.
9299 <m_end>: New field.
9300 (struct tui_source_windows) <begin, end>: Update.
9301 * tui/tui-layout.c (tui_windows): New global.
9302 (tui_apply_current_layout): Clear tui_windows.
9303 (tui_layout_window::apply): Update tui_windows.
9304 * tui/tui-data.h (tui_windows): Declare.
9305 (all_tui_windows): Now inline function.
9306 (class tui_window_iterator, struct all_tui_windows): Remove.
9307
9308 2020-02-22 Tom Tromey <tom@tromey.com>
9309
9310 PR tui/17850:
9311 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
9312 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
9313 "height" argument.
9314 (class tui_layout_window) <get_sizes>: Likewise.
9315 (class tui_layout_split) <tui_layout_split>: Add "vertical"
9316 argument.
9317 <get_sizes>: Add "height" argument.
9318 <m_vertical>: New field.
9319 * tui/tui-layout.c (tui_layout_split::clone): Update.
9320 (tui_layout_split::get_sizes): Add "height" argument.
9321 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
9322 (tui_new_layout_command): Parse "-horizontal".
9323 (_initialize_tui_layout): Update help string.
9324 (tui_layout_split::specification): Add "-horizontal" when needed.
9325 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
9326 argument.
9327 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
9328 New methods.
9329
9330 2020-02-22 Tom Tromey <tom@tromey.com>
9331
9332 * tui/tui-layout.h (enum tui_adjust_result): New.
9333 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
9334 (class tui_layout_window) <adjust_size>: Return
9335 tui_adjust_result. Rewrite.
9336 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
9337 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
9338
9339 2020-02-22 Tom Tromey <tom@tromey.com>
9340
9341 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
9342 parameter and return types.
9343 (class tui_layout_base) <specification>: Add "depth".
9344 (class tui_layout_window) <specification>: Add "depth".
9345 (class tui_layout_split) <specification>: Add "depth".
9346 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
9347 and return types.
9348 (tui_new_layout_command): Parse sub-layouts.
9349 (_initialize_tui_layout): Update help string.
9350 (tui_layout_window::specification): Add "depth".
9351 (add_layout_command): Update.
9352
9353 2020-02-22 Tom Tromey <tom@tromey.com>
9354
9355 * NEWS: Add "tui new-layout" item.
9356 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
9357 Add new-layout command to help text.
9358 (validate_window_name): New function.
9359 (tui_new_layout_command): New function.
9360 (_initialize_tui_layout): Register "new-layout".
9361 (tui_layout_window::specification): New method.
9362 (tui_layout_window::specification): New method.
9363 * tui/tui-layout.h (class tui_layout_base) <specification>: New
9364 method.
9365 (class tui_layout_window) <specification>: New method.
9366 (class tui_layout_split) <specification>: New method.
9367
9368 2020-02-22 Tom Tromey <tom@tromey.com>
9369
9370 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
9371 * tui/tui-win.c (window_name_completer): Update comment.
9372 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
9373 Declare method.
9374 (class tui_layout_window) <replace_window>: Likewise.
9375 (class tui_layout_split) <replace_window>: Likewise.
9376 (tui_set_layout): Don't declare.
9377 (tui_set_initial_layout): Declare function.
9378 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
9379 (asm_regs_layout): New globals.
9380 (tui_current_layout, show_layout): Remove.
9381 (tui_set_layout, tui_add_win_to_layout): Rewrite.
9382 (find_layout, tui_apply_layout): New function.
9383 (layout_completer): Remove.
9384 (tui_next_layout): Reimplement.
9385 (tui_next_layout_command): New function.
9386 (tui_set_initial_layout, tui_prev_layout_command): New functions.
9387 (tui_regs_layout): Reimplement.
9388 (tui_regs_layout_command): New function.
9389 (extract_display_start_addr): Rewrite.
9390 (next_layout, prev_layout): Remove.
9391 (tui_layout_window::replace_window): New method.
9392 (tui_layout_split::replace_window): New method.
9393 (destroy_layout): New function.
9394 (layout_list): New global.
9395 (add_layout_command): New function.
9396 (initialize_layouts): Update.
9397 (tui_layout_command): New function.
9398 (_initialize_tui_layout): Install "layout" commands.
9399 * tui/tui-data.h (enum tui_layout_type): Remove.
9400 (tui_current_layout): Don't declare.
9401
9402 2020-02-22 Tom Tromey <tom@tromey.com>
9403
9404 * tui/tui-regs.c (tui_reg_layout): Remove.
9405 (tui_reg_command): Use tui_regs_layout.
9406 * tui/tui-layout.h (tui_reg_command): Declare.
9407 * tui/tui-layout.c (tui_reg_command): New function.
9408
9409 2020-02-22 Tom Tromey <tom@tromey.com>
9410
9411 * tui/tui.c (tui_rl_delete_other_windows): Call
9412 tui_remove_some_windows.
9413 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
9414 Declare method.
9415 (class tui_layout_window) <remove_windows>: New method.
9416 (class tui_layout_split) <remove_windows>: Declare.
9417 (tui_remove_some_windows): Declare.
9418 * tui/tui-layout.c (tui_remove_some_windows): New function.
9419 (tui_layout_split::remove_windows): New method.
9420
9421 2020-02-22 Tom Tromey <tom@tromey.com>
9422
9423 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
9424 * tui/tui-layout.h (tui_next_layout): Declare.
9425 * tui/tui-layout.c (tui_next_layout): New function.
9426
9427 2020-02-22 Tom Tromey <tom@tromey.com>
9428
9429 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
9430 correct coordinates.
9431
9432 2020-02-22 Tom Tromey <tom@tromey.com>
9433
9434 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
9435 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
9436 DATA_WIN case.
9437
9438 2020-02-22 Tom Tromey <tom@tromey.com>
9439
9440 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
9441 TUI_DISASM_WIN, not tui_win_list.
9442
9443 2020-02-22 Tom Tromey <tom@tromey.com>
9444
9445 * valprint.c (generic_val_print_enum_1)
9446 (val_print_type_code_flags): Style member names.
9447 * rust-lang.c (val_print_struct, rust_print_enum)
9448 (rust_print_struct_def, rust_internal_print_type): Style member
9449 names.
9450 * p-valprint.c (pascal_object_print_value_fields): Style member
9451 names. Only call fprintf_symbol_filtered for static members.
9452 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
9453 * f-valprint.c (f_val_print): Style member names.
9454 * f-typeprint.c (f_type_print_base): Style member names.
9455 * cp-valprint.c (cp_print_value_fields): Style member names. Only
9456 call fprintf_symbol_filtered for static members.
9457 (cp_print_class_member): Style member names.
9458 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
9459 member names.
9460 * ada-valprint.c (ada_print_scalar): Style enum names.
9461 (ada_val_print_enum): Likewise.
9462 * ada-typeprint.c (print_enum_type): Style enum names.
9463
9464 2020-02-21 Tom Tromey <tom@tromey.com>
9465
9466 * psympriv.h (struct partial_symtab): Update comment.
9467
9468 2020-02-21 Tom Tromey <tromey@adacore.com>
9469
9470 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
9471 type is CORE_ADDR.
9472
9473 2020-02-21 Tom de Vries <tdevries@suse.de>
9474
9475 PR gdb/25534
9476 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
9477 if dependencies[i]->user != NULL.
9478
9479 2020-02-21 Ali Tamur <tamur@google.com>
9480
9481 * dwarf2/read.c (dwarf2_name): Add null check.
9482
9483 2020-02-20 Tom Tromey <tom@tromey.com>
9484
9485 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
9486 ">=", in binary search.
9487 (dwarf2_find_containing_comp_unit): New overload.
9488 (run_test): New self-test.
9489 (_initialize_dwarf2_read): Register new test.
9490
9491 2020-02-20 Nelson Chu <nelson.chu@sifive.com>
9492
9493 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
9494 * riscv-tdep.h: Likewise.
9495 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
9496 rv32-only CSR.
9497 * features/riscv/64bit-csr.xml: Regenerated.
9498
9499 2020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
9500 Tom Tromey <tom@tromey.com>
9501
9502 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
9503 of 'fputc_unfiltered'.
9504 (putchar_unfiltered): Call 'fputc_unfiltered'.
9505 (fputc_unfiltered): Call 'fputs_unfiltered'.
9506
9507 2020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
9508
9509 * config.in: Regenerate.
9510 * configure: Regenerate.
9511 * configure.ac: Add --with-python-libdir option.
9512 * main.c: Use WITH_PYTHON_LIBDIR.
9513
9514 2020-02-19 Tom Tromey <tom@tromey.com>
9515
9516 * symtab.c (general_symbol_info::compute_and_set_names): Use
9517 obstack_strndup. Simplify call to symbol_set_demangled_name.
9518
9519 2020-02-19 Simon Marchi <simon.marchi@efficios.com>
9520
9521 * dwarf2/read.c (allocate_signatured_type_table,
9522 allocate_dwo_unit_table, allocate_type_unit_groups_table,
9523 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
9524 Remove objfile parameter, update all callers.
9525
9526 2020-02-19 Doug Evans <dje@google.com>
9527
9528 PR rust/25535
9529 * rust-lang.c (rust_print_enum): Apply embedded_offset to
9530 rust_enum_variant calculation.
9531
9532 2020-02-19 Tom Tromey <tromey@adacore.com>
9533
9534 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
9535
9536 2020-02-19 Tom Tromey <tromey@adacore.com>
9537
9538 * ada-lang.c (cache_symbol): Use obstack_strdup.
9539
9540 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
9541
9542 * configure: Regenerate.
9543
9544 2020-02-19 Tom Tromey <tromey@adacore.com>
9545
9546 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
9547 NULL check.
9548
9549 2020-02-19 Maciej W. Rozycki <macro@wdc.com>
9550
9551 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
9552
9553 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
9554
9555 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
9556 if GDBSERVER is not defined.
9557 (riscv_tdesc_cache): Likewise, also store const target_desc.
9558 (STATIC_IN_GDB): Define.
9559 (riscv_create_target_description): Update declaration with
9560 STATIC_IN_GDB.
9561 (riscv_lookup_target_description): New function, only define if
9562 GDBSERVER is not defined.
9563 * arch/riscv.h (riscv_create_target_description): Declare only
9564 when GDBSERVER is defined.
9565 (riscv_lookup_target_description): New declaration when GDBSERVER
9566 is not defined.
9567 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
9568 (riscv_linux_read_features): ...this, and return
9569 riscv_gdbarch_features instead of target_desc.
9570 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
9571 (riscv_linux_read_description): Rename to...
9572 (riscv_linux_read_features): ...this.
9573 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
9574 Update to use riscv_gdbarch_features and
9575 riscv_lookup_target_description.
9576 * riscv-tdep.c (riscv_find_default_target_description): Use
9577 riscv_lookup_target_description instead of
9578 riscv_create_target_description.
9579
9580 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
9581
9582 * valprint.c (generic_val_print_enum_1): When printing a flag
9583 enum with value 0 and there is no enumerator with value 0, print
9584 just "0" instead of "(unknown: 0x0)".
9585
9586 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
9587
9588 * valprint.c (generic_val_print_enum_1): Print unknown part of
9589 flag enum in hex.
9590
9591 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
9592
9593 * dwarf2/read.c (update_enumeration_type_from_children): Allow
9594 flag enums to contain duplicate enumerators.
9595 * valprint.c (generic_val_print_enum_1): Update comment.
9596
9597 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
9598
9599 * dwarf2/read.c: Include "count-one-bits.h".
9600 (update_enumeration_type_from_children): If an enumerator has
9601 multiple bits set, don't treat the enumeration as a "flag enum".
9602 * valprint.c (generic_val_print_enum_1): Assert that enumerators
9603 of flag enums have 0 or 1 bit set.
9604
9605 2020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
9606
9607 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
9608 conversion.
9609 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
9610 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
9611 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
9612 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
9613 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
9614
9615 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
9616
9617 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
9618
9619 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
9620
9621 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
9622 displaced_step_closure_up.
9623 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
9624 (struct displaced_step_closure_up):
9625 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
9626 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
9627 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
9628 Likewise.
9629 * gdbarch.sh (displaced_step_copy_insn): Likewise.
9630 * gdbarch.c, gdbarch.h: Re-generate.
9631 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
9632 displaced_step_closure_up.
9633 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
9634 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
9635 * infrun.h (displaced_step_closure_up): New type alias.
9636 (struct displaced_step_inferior_state) <step_closure>: Change
9637 type to displaced_step_closure_up.
9638 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
9639 displaced_step_closure_up.
9640 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
9641
9642 2020-02-14 Tom Tromey <tom@tromey.com>
9643
9644 * minidebug.c (gnu_debug_key): New global.
9645 (find_separate_debug_file_in_section): Use it.
9646
9647 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
9648
9649 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
9650 std::unique_ptr.
9651 * gdbarch.c: Re-generate.
9652 * gdbarch.h: Re-generate.
9653 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
9654 change.
9655 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
9656 type to std::unique_ptr.
9657 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
9658 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
9659 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
9660 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
9661 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
9662 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
9663 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
9664 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
9665 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
9666
9667 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
9668
9669 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
9670 std::unique_ptr.
9671 (displaced_step_clear): Rename to...
9672 (displaced_step_reset): ... this. Just call displaced->reset ().
9673 (displaced_step_clear_cleanup): Rename to...
9674 (displaced_step_reset_cleanup): ... this.
9675 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
9676 (displaced_step_fixup): Likewise.
9677 (resume_1): Likewise.
9678 (handle_inferior_event): Restore child's memory before calling
9679 displaced_step_fixup on the parent.
9680 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
9681 to std::unique_ptr.
9682 <step_closure>: Change type to std::unique_ptr.
9683
9684 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
9685
9686 * arm-tdep.c: Include count-one-bits.h.
9687 (cleanup_block_store_pc): Use count_one_bits.
9688 (cleanup_block_load_pc): Use count_one_bits.
9689 (arm_copy_block_xfer): Use count_one_bits.
9690 (thumb2_copy_block_xfer): Use count_one_bits.
9691 (thumb_copy_pop_pc_16bit): Use count_one_bits.
9692 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
9693 (thumb_get_next_pcs_raw): Use count_one_bits.
9694 (arm_get_next_pcs_raw): Use count_one_bits_l.
9695 * arch/arm.c (bitcount): Remove.
9696 * arch/arm.h (bitcount): Remove.
9697
9698 2020-02-14 Tom Tromey <tromey@adacore.com>
9699
9700 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
9701 Update.
9702 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
9703 * dwarf2/loc.c (call_site_find_chain_1): Return
9704 unique_xmalloc_ptr.
9705 (call_site_find_chain): Likewise.
9706
9707 2020-02-14 Richard Biener <rguenther@suse.de>
9708
9709 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
9710 on expression with division operators.
9711
9712 2020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
9713
9714 * MAINTAINERS (Write After Approval): Adding myself.
9715
9716 2020-02-12 Tom Tromey <tom@tromey.com>
9717
9718 * event-loop.c (event_data, gdb_event, event_handler_func):
9719 Remove.
9720
9721 2020-02-12 Tom Tromey <tom@tromey.com>
9722
9723 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
9724 (dwarf2_frame_objfile_data): Add comment.
9725 (find_comp_unit, set_comp_unit): New functions.
9726 (dwarf2_frame_find_fde): Use find_comp_unit.
9727 (dwarf2_build_frame_info): Use set_comp_unit.
9728
9729 2020-02-12 Tom Tromey <tom@tromey.com>
9730
9731 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
9732 (comp_unit): Don't initialize objfile.
9733 (execute_cfa_program): Add text_offset parameter.
9734 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
9735 (dwarf2_frame_cache): Update.
9736 (dwarf2_build_frame_info): Don't set "objfile" member.
9737
9738 2020-02-12 Tom Tromey <tom@tromey.com>
9739
9740 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
9741 (decode_frame_entry): Likewise.
9742 (dwarf2_build_frame_info): Update.
9743
9744 2020-02-12 Tom Tromey <tom@tromey.com>
9745
9746 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
9747 (decode_frame_entry_1): Use the comp_unit obstack.
9748
9749 2020-02-12 Tom Tromey <tom@tromey.com>
9750
9751 * dwarf2/frame.c (struct comp_unit): Add initializers and
9752 constructor.
9753 (dwarf2_frame_objfile_data): Store a comp_unit.
9754 (dwarf2_frame_find_fde): Update.
9755 (dwarf2_build_frame_info): Use "new".
9756
9757 2020-02-12 Tom Tromey <tom@tromey.com>
9758
9759 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
9760 (dwarf2_fde_table): Typedef for std::vector.
9761 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
9762 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
9763 (decode_frame_entry): Update.
9764 (dwarf2_build_frame_info): Use "new".
9765
9766 2020-02-12 Christian Biesinger <cbiesinger@google.com>
9767
9768 * arm-tdep.c (arm_gdbarch_init): Update.
9769 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
9770 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
9771 have_neon, is_m>: Change to bool.
9772
9773 2020-02-12 Christian Biesinger <cbiesinger@google.com>
9774
9775 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
9776
9777 2020-02-12 Tom Tromey <tom@tromey.com>
9778
9779 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
9780
9781 2020-02-12 Hannes Domani <ssbssa@yahoo.de>
9782
9783 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
9784 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
9785
9786 2020-02-11 Tom Tromey <tom@tromey.com>
9787
9788 * psymtab.h: Update comment.
9789
9790 2020-02-11 Tom Tromey <tom@tromey.com>
9791
9792 * gdb_obstack.h (struct auto_obstack): Use
9793 DISABLE_COPY_AND_ASSIGN.
9794
9795 2020-02-11 Tom Tromey <tom@tromey.com>
9796
9797 * dwarf2/frame.h (struct objfile): Don't forward declare.
9798
9799 2020-02-11 Christian Biesinger <cbiesinger@google.com>
9800
9801 * cris-tdep.c (cris_supply_gregset): Change signature to match
9802 what struct regset expects.
9803 (cris_regset): New struct.
9804 (fetch_core_registers): Remove.
9805 (cris_iterate_over_regset_sections): New function.
9806 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
9807 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
9808
9809 2020-02-11 Christian Biesinger <cbiesinger@google.com>
9810
9811 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
9812 registers.
9813
9814 2020-02-11 Christian Biesinger <cbiesinger@google.com>
9815
9816 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
9817
9818 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
9819
9820 * configure: Re-generate.
9821
9822 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
9823
9824 * configure: Re-generate.
9825
9826 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
9827
9828 * acinclude: Update warning.m4 path.
9829 * warning.m4: Move to gdbsupport.
9830
9831 2020-02-11 Tom Tromey <tromey@adacore.com>
9832
9833 * remote.c (remote_console_output): Update.
9834 * printcmd.c (printf_command): Update.
9835 * event-loop.c (gdb_wait_for_event): Update.
9836 * linux-nat.c (sigchld_handler): Update.
9837 * remote-sim.c (gdb_os_write_stdout): Update.
9838 (gdb_os_flush_stdout): Update.
9839 (gdb_os_flush_stderr): Update.
9840 (gdb_os_write_stderr): Update.
9841 * exceptions.c (print_exception): Update.
9842 * remote-fileio.c (remote_fileio_func_read): Update.
9843 (remote_fileio_func_write): Update.
9844 * tui/tui.c (tui_enable): Update.
9845 * tui/tui-interp.c (tui_interp::init): Update.
9846 * utils.c (init_page_info): Update.
9847 (putchar_unfiltered, fputc_unfiltered): Update.
9848 (gdb_flush): Update.
9849 (emit_style_escape): Update.
9850 (flush_wrap_buffer, fputs_maybe_filtered): Update.
9851 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
9852 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
9853 (stderr_file::write): Update.
9854 (stderr_file::puts): Update.
9855 * ui-file.h (ui_file_isatty, ui_file_write)
9856 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
9857 (ui_file_puts): Don't declare.
9858
9859 2020-02-10 Tom de Vries <tdevries@suse.de>
9860
9861 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
9862 sentinel to char *.
9863
9864 2020-02-09 Tom de Vries <tdevries@suse.de>
9865
9866 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
9867 filename if it matches "<artificial>".
9868
9869 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
9870
9871 * windows-tdep.c (struct enum_value_name): New struct.
9872 (create_enum): New function.
9873 (windows_get_siginfo_type): Create and use enum types.
9874
9875 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
9876
9877 * NEWS: Mention $_siginfo support for Windows.
9878 * windows-nat.c (handle_exception): Set siginfo_er.
9879 (windows_nat_target::mourn_inferior): Reset siginfo_er.
9880 (windows_xfer_siginfo): New function.
9881 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
9882 * windows-tdep.c (struct windows_gdbarch_data): New struct.
9883 (init_windows_gdbarch_data): New function.
9884 (get_windows_gdbarch_data): New function.
9885 (windows_get_siginfo_type): New function.
9886 (windows_init_abi): Register windows_get_siginfo_type.
9887 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
9888
9889 2020-02-08 Tom Tromey <tom@tromey.com>
9890
9891 * dwarf2/read.c (class cutu_reader) <cutu_reader,
9892 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
9893 <keep>: Declare method.
9894 <m_keep>: Remove member.
9895 <~cutu_reader>: Remove.
9896 (cutu_reader::init_tu_and_read_dwo_dies): Update.
9897 (cutu_reader::cutu_reader): Update.
9898 (cutu_reader::keep): Rename from ~cutu_reader.
9899 (process_psymtab_comp_unit, build_type_psymtabs_1)
9900 (process_skeletonless_type_unit, load_partial_comp_unit)
9901 (load_full_comp_unit, dwarf2_read_addr_index)
9902 (read_signatured_type): Update.
9903
9904 2020-02-08 Tom Tromey <tom@tromey.com>
9905
9906 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
9907 "want_partial_unit" parameter.
9908 (process_psymtab_comp_unit): Change want_partial_unit to bool.
9909 Inline check for DW_TAG_partial_unit.
9910 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
9911
9912 2020-02-08 Tom Tromey <tom@tromey.com>
9913
9914 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
9915 read.c.
9916 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
9917 read.c.
9918
9919 2020-02-08 Tom Tromey <tom@tromey.com>
9920
9921 * dwarf2/read.c (read_address): Move to comp-unit.c.
9922 (dwarf2_rnglists_process, dwarf2_ranges_process)
9923 (read_attribute_value, dwarf_decode_lines_1)
9924 (var_decode_location, decode_locdesc): Update.
9925 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
9926 read.c. Remove "cu" parameter.
9927 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
9928 method.
9929
9930 2020-02-08 Tom Tromey <tom@tromey.com>
9931
9932 * dwarf2/read.c (read_attribute_value, read_indirect_string)
9933 (read_indirect_line_string): Update.
9934 * dwarf2/comp-unit.c (read_offset): Remove.
9935 (read_comp_unit_head): Update.
9936 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
9937 method.
9938 (read_offset): Don't declare.
9939
9940 2020-02-08 Tom Tromey <tom@tromey.com>
9941
9942 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
9943 * dwarf2/read.c (struct comp_unit_head): Move to
9944 dwarf2/comp-unit.h.
9945 (enum class rcuh_kind): Move to comp-unit.h.
9946 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
9947 (read_comp_unit_head, error_check_comp_unit_head)
9948 (read_and_check_comp_unit_head): Move to comp-unit.c.
9949 (read_offset, dwarf_unit_type_name): Likewise.
9950 (create_debug_type_hash_table, read_cutu_die_from_dwo)
9951 (cutu_reader::cutu_reader, read_call_site_scope)
9952 (find_partial_die, follow_die_offset): Update.
9953 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
9954
9955 2020-02-08 Tom Tromey <tom@tromey.com>
9956
9957 * dwarf2/read.c (read_offset_1): Move to leb.c.
9958 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
9959 (dwarf_decode_macro_bytes): Update.
9960 * dwarf2/leb.c (read_offset): Rename; move from read.c.
9961 * dwarf2/leb.h (read_offset): Declare.
9962
9963 2020-02-08 Tom Tromey <tom@tromey.com>
9964
9965 * dwarf2/read.c (dwarf2_section_size): Remove.
9966 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
9967 Update.
9968 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
9969
9970 2020-02-08 Tom Tromey <tom@tromey.com>
9971
9972 * dwarf2/read.c (read_initial_length): Move to leb.c.
9973 * dwarf2/leb.h (read_initial_length): Declare.
9974 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
9975 handle_nonstd parameter.
9976 * dwarf2/frame.c (read_initial_length): Remove.
9977 (decode_frame_entry_1): Update.
9978
9979 2020-02-08 Tom Tromey <tom@tromey.com>
9980
9981 * dwarf2/loc.c (dwarf2_find_location_expression)
9982 (dwarf_evaluate_loc_desc::get_tls_address)
9983 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
9984 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
9985 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
9986 (dwarf2_compile_property_to_c)
9987 (dwarf2_loc_desc_get_symbol_read_needs)
9988 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
9989 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
9990 (loclist_describe_location, loclist_tracepoint_var_ref)
9991 (loclist_generate_c_location): Update.
9992 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
9993 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
9994 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
9995 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
9996 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
9997 (dwarf2_per_cu_data::addr_size)
9998 (dwarf2_per_cu_data::ref_addr_size)
9999 (dwarf2_per_cu_data::text_offset)
10000 (dwarf2_per_cu_data::addr_type): Now methods.
10001 (per_cu_header_read_in): Make per_cu "const".
10002 (dwarf2_version): Remove.
10003 (dwarf2_per_cu_data::int_type): Now a method.
10004 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
10005 (set_die_type, read_array_type, read_subrange_index_type)
10006 (read_tag_string_type, read_subrange_type): Update.
10007 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
10008 offset_size, ref_addr_size, text_offset, addr_type, version,
10009 objfile, int_type, addr_sized_int_type>: Declare methods.
10010
10011 2020-02-08 Tom Tromey <tom@tromey.com>
10012
10013 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
10014 Move earlier.
10015
10016 2020-02-08 Tom Tromey <tom@tromey.com>
10017
10018 * dwarf2/read.h (dwarf_line_debug): Declare.
10019 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
10020 * dwarf2/read.c: Move line_header code to new files.
10021 (dwarf_line_debug): No longer static.
10022 * dwarf2/line-header.c: New file.
10023 * dwarf2/line-header.h: New file.
10024
10025 2020-02-08 Tom Tromey <tom@tromey.com>
10026
10027 * dwarf2/read.c (struct line_header) <file_full_name,
10028 file_file_name>: Return unique_xmalloc_ptr.
10029 (line_header::file_file_name): Update.
10030 (line_header::file_full_name): Update.
10031 (dw2_get_file_names_reader): Update.
10032 (macro_start_file): Update.
10033
10034 2020-02-08 Tom Tromey <tom@tromey.com>
10035
10036 * dwarf2/read.c (struct line_header) <file_full_name,
10037 file_file_name>: Declare methods.
10038 (dw2_get_file_names_reader): Update.
10039 (file_file_name): Now a method.
10040 (file_full_name): Likewise.
10041 (macro_start_file): Update.
10042
10043 2020-02-08 Tom Tromey <tom@tromey.com>
10044
10045 * dwarf2/read.c (dwarf_always_disassemble)
10046 (show_dwarf_always_disassemble): Move to loc.c.
10047 (_initialize_dwarf2_read): Move "always-disassemble" registration
10048 to loc.c.
10049 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
10050 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
10051 static.
10052 (show_dwarf_always_disassemble): Move from read.c.
10053 (_initialize_dwarf2loc): Move always-disassemble from read.c.
10054
10055 2020-02-08 Tom Tromey <tom@tromey.com>
10056
10057 * dwarf2/read.c (~dwarf2_per_objfile): Update.
10058 (create_quick_file_names_table): Return htab_up.
10059 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
10060 Update.
10061 * dwarf2/read.h (struct dwarf2_per_objfile)
10062 <quick_file_names_table>: Now htab_up.
10063
10064 2020-02-08 Tom Tromey <tom@tromey.com>
10065
10066 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
10067
10068 2020-02-08 Tom Tromey <tom@tromey.com>
10069
10070 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
10071 Rewrite.
10072 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
10073 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
10074 (abbrev_table::abbrev_table): No longer inline.
10075 (ABBREV_HASH_SIZE): Remove.
10076 (abbrev_table::m_abbrevs): Now an htab_up.
10077
10078 2020-02-08 Tom Tromey <tom@tromey.com>
10079
10080 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
10081 (cutu_reader): Update.
10082 (build_type_psymtabs_1): Update.
10083 * dwarf2/abbrev.c (abbrev_table::read): Rename.
10084 (abbrev_table::alloc_abbrev): Update.
10085 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
10086 (abbrev_table::read): New static method, renamed from
10087 abbrev_table_read_table.
10088 (abbrev_table::alloc_abbrev)
10089 (abbrev_table::add_abbrev): Now private.
10090 (abbrev_table::abbrev_table): Now private.
10091 (abbrev_table::m_abbrev_obstack): Now private. Rename.
10092
10093 2020-02-08 Tom Tromey <tom@tromey.com>
10094
10095 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
10096 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
10097 htab_up.
10098
10099 2020-02-08 Tom Tromey <tom@tromey.com>
10100
10101 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
10102 htab_up.
10103 (lookup_dwo_unit_in_dwp): Update.
10104 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
10105 on obstack.
10106
10107 2020-02-08 Tom Tromey <tom@tromey.com>
10108
10109 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
10110 obstack.
10111
10112 2020-02-08 Tom Tromey <tom@tromey.com>
10113
10114 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
10115 line_header_hash.
10116 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
10117 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
10118 Change type to htab_up.
10119
10120 2020-02-08 Tom Tromey <tom@tromey.com>
10121
10122 * dwarf2/read.c (allocate_type_unit_groups_table): Return
10123 htab_up. Don't allocate on obstack.
10124 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
10125 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
10126 Change type to htab_up.
10127
10128 2020-02-08 Tom Tromey <tom@tromey.com>
10129
10130 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
10131 Change type to htab_up.
10132 * dwarf2/read.c (create_signatured_type_table_from_index)
10133 (create_signatured_type_table_from_debug_names)
10134 (create_all_type_units, add_type_unit)
10135 (lookup_dwo_signatured_type, lookup_signatured_type)
10136 (process_skeletonless_type_unit): Update.
10137 (create_debug_type_hash_table, create_debug_types_hash_table):
10138 Change type of types_htab.
10139 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
10140 htab_up. Don't allocate on obstack.
10141 (create_cus_hash_table): Change type of cus_htab parameter.
10142 (struct dwo_file) <cus, tus>: Now htab_up.
10143 (lookup_dwo_signatured_type, lookup_dwo_cutu)
10144 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
10145 (queue_and_load_all_dwo_tus): Update.
10146 * dwarf2/index-write.c (write_gdbindex): Update.
10147 (write_debug_names): Update.
10148
10149 2020-02-08 Tom Tromey <tom@tromey.com>
10150
10151 * dwarf2/read.h (struct dwarf2_queue_item): Move from
10152 dwarf2/read.c. Remove "next" member. Add constructor ntad
10153 destructor.
10154 (struct dwarf2_per_objfile) <queue>: New member.
10155 * dwarf2/read.c (struct dwarf2_queue_item): Move to
10156 dwarf2/read.h.
10157 (dwarf2_queue, dwarf2_queue_tail): Remove.
10158 (class dwarf2_queue_guard): Add parameter to constructor. Use
10159 DISABLE_COPY_AND_ASSIGN.
10160 <m_per_objfile>: New member.
10161 <~dwarf2_queue_guard>: Rewrite.
10162 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
10163 Update.
10164 (~dwarf2_queue_item): New.
10165
10166 2020-02-08 Tom Tromey <tom@tromey.com>
10167
10168 * dwarf2/read.c (struct die_info) <has_children>: New member.
10169 (dw2_get_file_names_reader): Remove has_children.
10170 (dw2_get_file_names): Update.
10171 (read_cutu_die_from_dwo): Remove has_children.
10172 (cutu_reader::init_tu_and_read_dwo_dies)
10173 (cutu_reader::cutu_reader): Update.
10174 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
10175 Remove has_children.
10176 (build_type_psymtabs_1, process_skeletonless_type_unit)
10177 (load_partial_comp_unit, load_full_comp_unit): Update.
10178 (create_dwo_cu_reader): Remove has_children.
10179 (create_cus_hash_table, read_die_and_children): Update.
10180 (read_full_die_1,read_full_die): Remove has_children.
10181 (read_signatured_type): Update.
10182 (class cutu_reader) <has_children>: Remove.
10183
10184 2020-02-08 Tom Tromey <tom@tromey.com>
10185
10186 * dwarf2/expr.c: Rename from dwarf2expr.c.
10187 * dwarf2/expr.h: Rename from dwarf2expr.h.
10188 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
10189 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
10190 * dwarf2/frame.c: Rename from dwarf2-frame.c.
10191 * dwarf2/frame.h: Rename from dwarf2-frame.h.
10192 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
10193 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
10194 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
10195 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
10196 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
10197 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
10198 * dwarf2/loc.c: Rename from dwarf2loc.c.
10199 * dwarf2/loc.h: Rename from dwarf2loc.h.
10200 * dwarf2/read.c: Rename from dwarf2read.c.
10201 * dwarf2/read.h: Rename from dwarf2read.h.
10202 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
10203 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
10204 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
10205 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
10206 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
10207 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
10208 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
10209 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
10210 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
10211 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
10212 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
10213 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
10214 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
10215 Update.
10216 * Makefile.in (COMMON_SFILES): Update.
10217 (HFILES_NO_SRCDIR): Update.
10218
10219 2020-02-08 Tom Tromey <tom@tromey.com>
10220
10221 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
10222 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
10223
10224 2020-02-08 Tom Tromey <tom@tromey.com>
10225
10226 * dwarf2read.h (struct die_info): Don't declare.
10227
10228 2020-02-08 Tom Tromey <tom@tromey.com>
10229
10230 * dwarf2read.h (die_info_ptr): Remove typedef.
10231
10232 2020-02-08 Tom Tromey <tom@tromey.com>
10233
10234 * dwarf2read.c (read_call_site_scope)
10235 (handle_data_member_location, dwarf2_add_member_fn)
10236 (mark_common_block_symbol_computed, read_common_block)
10237 (attr_to_dynamic_prop, partial_die_info::read)
10238 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
10239 (dwarf2_symbol_mark_computed, set_die_type): Update.
10240 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
10241 method.
10242 (attr_form_is_block): Don't declare.
10243 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
10244
10245 2020-02-08 Tom Tromey <tom@tromey.com>
10246
10247 * dwarf2read.c (dwarf2_find_base_address, )
10248 (read_call_site_scope, rust_containing_type)
10249 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
10250 (handle_data_member_location, dwarf2_add_member_fn)
10251 (get_alignment, read_structure_type, process_structure_scope)
10252 (mark_common_block_symbol_computed, read_common_block)
10253 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
10254 (partial_die_info::read, read_attribute_value, new_symbol)
10255 (lookup_die_type, dwarf2_get_ref_die_offset)
10256 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
10257 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
10258 (dwarf2_symbol_mark_computed): Update.
10259 * dwarf2/attribute.h (struct attribute) <value_as_address,
10260 form_is_section_offset, form_is_constant, form_is_ref>: Declare
10261 methods.
10262 (value_as_address, attr_form_is_section_offset)
10263 (attr_form_is_constant, attr_form_is_ref): Don't declare.
10264 * dwarf2/attribute.c (attribute::value_as_address)
10265 (attribute::form_is_section_offset, attribute::form_is_constant)
10266 (attribute::form_is_ref): Now methods.
10267
10268 2020-02-08 Tom Tromey <tom@tromey.com>
10269
10270 * dwarf2read.c (struct attribute, DW_STRING)
10271 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
10272 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
10273 (attr_form_is_block, attr_form_is_section_offset)
10274 (attr_form_is_constant, attr_form_is_ref): Move.
10275 * dwarf2/attribute.h: New file.
10276 * dwarf2/attribute.c: New file, from dwarf2read.c.
10277 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
10278
10279 2020-02-08 Tom Tromey <tom@tromey.com>
10280
10281 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
10282 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
10283 Move.
10284 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
10285 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
10286 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
10287 abbrev.c.
10288 * dwarf2/abbrev.h: New file.
10289 * dwarf2/abbrev.c: New file, from dwarf2read.c.
10290 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
10291
10292 2020-02-08 Tom Tromey <tom@tromey.com>
10293
10294 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
10295 (dwarf2_section_size, dwarf2_get_section_info)
10296 (create_signatured_type_table_from_debug_names)
10297 (create_addrmap_from_aranges, read_debug_names_from_section)
10298 (get_gdb_index_contents_from_section, read_comp_unit_head)
10299 (error_check_comp_unit_head, read_abbrev_offset)
10300 (create_debug_type_hash_table, init_cu_die_reader)
10301 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
10302 (read_comp_units_from_section, create_cus_hash_table)
10303 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
10304 (create_dwp_v2_section, dwarf2_rnglists_process)
10305 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
10306 (abbrev_table_read_table, read_indirect_string_at_offset_from)
10307 (read_indirect_string_from_dwz, read_addr_index_1)
10308 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
10309 (dwarf_decode_macro_bytes, dwarf_decode_macros)
10310 (fill_in_loclist_baton): Update.
10311 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
10312 get_containing_section, get_bfd_owner, get_bfd_section,
10313 get_file_name, get_id, get_flags, empty, read>: Declare methods.
10314 (dwarf2_read_section, get_section_name, get_section_file_name)
10315 (get_containing_section, get_section_bfd_owner)
10316 (get_section_bfd_section, get_section_name, get_section_file_name)
10317 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
10318 declare.
10319 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
10320 (dwarf2_section_info::get_bfd_owner)
10321 (dwarf2_section_info::get_bfd_section)
10322 (dwarf2_section_info::get_name)
10323 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
10324 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
10325 (dwarf2_section_info::read): Now methods.
10326 * dwarf-index-write.c (class debug_names): Update.
10327
10328 2020-02-08 Tom Tromey <tom@tromey.com>
10329
10330 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
10331 Move to dwarf2/section.h.
10332 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
10333 (get_section_bfd_section, get_section_name)
10334 (get_section_file_name, get_section_id, get_section_flags)
10335 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
10336 dwarf2/section.c.
10337 * dwarf2/section.h: New file.
10338 * dwarf2/section.c: New file, from dwarf2read.c.
10339 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
10340
10341 2020-02-08 Tom Tromey <tom@tromey.com>
10342
10343 * dwarf2read.h (read_unsigned_leb128): Don't declare.
10344 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
10345 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
10346 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
10347 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
10348 * dwarf2/leb.h: New file, from dwarf2read.c.
10349 * dwarf2/leb.c: New file, from dwarf2read.c.
10350 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
10351 Remove.
10352 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
10353 (COMMON_SFILES): Add dwarf2/leb.c.
10354
10355 2020-02-08 Joel Brobecker <brobecker@adacore.com>
10356
10357 GDB 9.1 released.
10358
10359 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
10360
10361 PR gdb/25190:
10362 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
10363 * gdb/remote.c (remote_console_output): Update.
10364 * gdb/ui-file.c (fputs_unfiltered): Rename to...
10365 (ui_file_puts): ...this.
10366 * gdb/ui-file.h (ui_file_puts): Add declaration.
10367 * gdb/utils.c (emit_style_escape): Update.
10368 (flush_wrap_buffer): Update.
10369 (fputs_maybe_filtered): Update.
10370 (fputs_unfiltered): Add function.
10371
10372 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
10373
10374 * gdb/event-loop.c (gdb_wait_for_event): Update.
10375 * gdb/printcmd.c (printf_command): Update.
10376 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
10377 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
10378 (gdb_os_flush_stderr): Update.
10379 * gdb/remote.c (remote_console_output): Update.
10380 * gdb/ui-file.c (gdb_flush): Rename to...
10381 (ui_file_flush): ...this.
10382 (stderr_file::write): Update.
10383 (stderr_file::puts): Update.
10384 * gdb/ui-file.h (gdb_flush): Rename to...
10385 (ui_file_flush): ...this.
10386 * gdb/utils.c (gdb_flush): Add function.
10387 * gdb/utils.h (gdb_flush): Add declaration.
10388
10389 2020-02-07 Tom Tromey <tromey@adacore.com>
10390
10391 PR breakpoints/24915:
10392 * source.c (find_and_open_source): Do not check basenames_may_differ.
10393
10394 2020-02-07 Tom Tromey <tom@tromey.com>
10395
10396 * README: Update gdbserver documentation.
10397 * gdbserver: Move to top level.
10398 * configure.tgt (build_gdbserver): Remove.
10399 * configure.ac: Remove --enable-gdbserver.
10400 * configure: Rebuild.
10401 * Makefile.in (distclean): Don't mention gdbserver.
10402
10403 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
10404
10405 * source-cache.c (source_cache::ensure): Surround
10406 get_plain_source_lines with a try/catch.
10407 (source_cache::get_line_charpos): Get rid of try/catch
10408 and only check for the return value of "ensure".
10409 * tui/tui-source.c (tui_source_window::set_contents):
10410 Simplify "nlines" calculation.
10411
10412 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
10413
10414 * MAINTAINERS (Write After Approval): Add myself.
10415
10416 2020-02-05 Christian Biesinger <cbiesinger@google.com>
10417
10418 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
10419 function call.
10420
10421 2020-02-05 Christian Biesinger <cbiesinger@google.com>
10422
10423 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
10424
10425 2020-02-05 Maciej W. Rozycki <macro@wdc.com>
10426
10427 * nat/riscv-linux-tdesc.h: New file.
10428 * nat/riscv-linux-tdesc.c: New file, taking code from...
10429 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
10430 ... here.
10431 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
10432 NATDEPFILES.
10433
10434 2020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
10435
10436 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
10437 we don't set the fake simulator ptid to the null_ptid.
10438
10439 2020-02-03 Simon Marchi <simon.marchi@efficios.com>
10440
10441 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
10442 * gdbthread.h (class thread_info) <resumed>: Likewise.
10443 * infrun.c (resume_1): Likewise.
10444 (proceed): Likewise.
10445 (infrun_thread_stop_requested): Likewise.
10446 (stop_all_threads): Likewise.
10447 (handle_inferior_event): Likewise.
10448 (restart_threads): Likewise.
10449 (finish_step_over): Likewise.
10450 (keep_going_stepped_thread): Likewise.
10451 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
10452 (linux_handle_extended_wait): Likewise.
10453 * record-btrace.c (get_thread_current_frame_id): Likewise.
10454 * record-full.c (record_full_wait_1): Likewise.
10455 * remote.c (remote_target::process_initial_stop_replies): Likewise.
10456 * target.c (target_resume): Likewise.
10457 * thread.c (set_running_thread): Likewise.
10458
10459 2020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
10460
10461 * f-valprint.c (f77_print_array_1): Changed datatype of index
10462 variable to LONGEST from int to enable it to contain bound
10463 values correctly.
10464
10465 2020-02-03 Maciej W. Rozycki <macro@wdc.com>
10466
10467 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
10468 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
10469 offsets according to FLEN determined.
10470 (riscv_linux_nat_target::read_description): Determine FLEN
10471 dynamically.
10472 (riscv_linux_nat_target::fetch_registers): Size regset buffer
10473 according to FLEN determined.
10474 (riscv_linux_nat_target::store_registers): Likewise.
10475
10476 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
10477
10478 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
10479 when reg->group is empty and reggroup is not.
10480
10481 2020-01-31 Tom Tromey <tromey@adacore.com>
10482
10483 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
10484 Call beneath target's mourn_inferior after unpushing.
10485
10486 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
10487
10488 PR tui/9765
10489 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
10490 have enough lines to fill the screen, still return the lowest
10491 address we found.
10492
10493 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
10494
10495 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
10496 '-', '<', and '>' commands.
10497
10498 2020-01-29 Pedro Alves <palves@redhat.com>
10499 Sergio Durigan Junior <sergiodj@redhat.com>
10500
10501 * infcmd.c (construct_inferior_arguments): Assert that
10502 'argc' is greater than 0.
10503
10504 2020-01-29 Luis Machado <luis.machado@linaro.org>
10505
10506 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
10507 (BRK_INSN_MASK): Define to 0xd4200000.
10508 (aarch64_program_breakpoint_here_p): New function.
10509 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
10510 * arch-utils.c (default_program_breakpoint_here_p): Moved from
10511 breakpoint.c.
10512 * arch-utils.h (default_program_breakpoint_here_p): Moved from
10513 breakpoint.h
10514 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
10515 call gdbarch_program_breakpoint_here_p.
10516 (program_breakpoint_here): Moved to arch-utils.c, renamed to
10517 default_program_breakpoint_here_p, changed return type to bool and
10518 simplified.
10519 * breakpoint.h (program_breakpoint_here): Moved prototype to
10520 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
10521 return type to bool.
10522 * gdbarch.c: Regenerate.
10523 * gdbarch.h: Regenerate.
10524 * gdbarch.sh (program_breakpoint_here_p): New method.
10525 * infrun.c (handle_signal_stop): Call
10526 gdbarch_program_breakpoint_here_p.
10527
10528 2020-01-26 Tom Tromey <tom@tromey.com>
10529
10530 * ctfread.c (struct ctf_fp_info): Reindent.
10531 (_initialize_ctfread): Remove.
10532
10533 2020-01-26 Tom Tromey <tom@tromey.com>
10534
10535 * psymtab.c (partial_map_expand_apply)
10536 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
10537 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
10538 (psym_print_stats, psym_expand_symtabs_for_function)
10539 (psym_map_symbol_filenames, psym_map_matching_symbols)
10540 (psym_expand_symtabs_matching)
10541 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
10542 (maintenance_check_psymtabs): Use new methods.
10543 * psympriv.h (struct partial_symtab) <readin_p,
10544 get_compunit_symtab>: New methods.
10545 <readin, compunit_symtab>: Remove members.
10546 (struct standard_psymtab): New.
10547 (struct legacy_psymtab): Derive from standard_psymtab.
10548 * dwarf2read.h (struct dwarf2_psymtab): Derive from
10549 standard_psymtab.
10550 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
10551
10552 2020-01-26 Tom Tromey <tom@tromey.com>
10553
10554 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
10555 read_dependencies. Add assert.
10556 * psymtab.c (partial_symtab::read_dependencies): New method.
10557 * psympriv.h (struct partial_symtab) <read_dependencies>: New
10558 method.
10559 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
10560 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
10561 read_dependencies.
10562 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
10563 Add assert.
10564
10565 2020-01-26 Tom Tromey <tom@tromey.com>
10566
10567 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
10568 Call expand_psymtab.
10569 (xcoff_read_symtab): Call expand_psymtab.
10570 (xcoff_start_psymtab, xcoff_end_psymtab): Set
10571 legacy_expand_psymtab.
10572 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
10573 method.
10574 (struct legacy_psymtab) <expand_psymtab>: Implement.
10575 <legacy_expand_psymtab>: New member.
10576 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
10577 (parse_partial_symbols): Set legacy_expand_psymtab.
10578 (psymtab_to_symtab_1): Change argument order. Call
10579 expand_psymtab.
10580 (new_psymtab): Set legacy_expand_psymtab.
10581 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
10582 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
10583 expand_psymtab.
10584 (dwarf2_psymtab::expand_psymtab): Rename from
10585 psymtab_to_symtab_1. Call expand_psymtab.
10586 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
10587 (dbx_end_psymtab): Likewise.
10588 (dbx_psymtab_to_symtab_1): Change argument order. Call
10589 expand_psymtab.
10590 (dbx_read_symtab): Call expand_psymtab.
10591 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
10592 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
10593 (ctf_psymtab::read_symtab): Call expand_psymtab.
10594
10595 2020-01-26 Tom Tromey <tom@tromey.com>
10596
10597 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
10598 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
10599 messages.
10600 * mdebugread.c (mdebug_read_symtab): Remove prints.
10601 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
10602 assert.
10603 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
10604
10605 2020-01-26 Tom Tromey <tom@tromey.com>
10606
10607 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
10608 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
10609 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
10610 legacy_symtab.
10611 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
10612 * psymtab.c (psymtab_to_symtab): Call method.
10613 (dump_psymtab): Update.
10614 * psympriv.h (struct partial_symtab): Add virtual destructor.
10615 <read_symtab>: New method.
10616 (struct legacy_symtab): New.
10617 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
10618 (struct pst_map) <pst>: Now a legacy_psymtab.
10619 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
10620 (new_psymtab): Use legacy_psymtab.
10621 * dwarf2read.h (struct dwarf2_psymtab): New.
10622 (struct dwarf2_per_cu_data) <psymtab>: Use it.
10623 * dwarf2read.c (dwarf2_create_include_psymtab)
10624 (dwarf2_build_include_psymtabs, create_type_unit_group)
10625 (create_partial_symtab, process_psymtab_comp_unit_reader)
10626 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
10627 (set_partial_user): Use dwarf2_psymtab.
10628 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
10629 (psymtab_to_symtab_1, process_full_comp_unit)
10630 (process_full_type_unit, dwarf2_ranges_read)
10631 (dwarf2_get_pc_bounds, psymtab_include_file_name)
10632 (dwarf_decode_lines): Use dwarf2_psymtab.
10633 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
10634 (add_address_entry_worker, write_one_signatured_type)
10635 (recursively_count_psymbols, recursively_write_psymbols)
10636 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
10637 (write_debug_names): Likewise.
10638 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
10639 <pst>: Now a legacy_psymtab.
10640 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
10641 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
10642 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
10643 * ctfread.c (struct ctf_psymtab): New.
10644 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
10645 ctf_psymtab.
10646 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
10647 (create_partial_symtab): Return a ctf_psymtab.
10648 (scan_partial_symbols): Update.
10649
10650 2020-01-26 Tom Tromey <tom@tromey.com>
10651
10652 * xcoffread.c (xcoff_start_psymtab): Use new.
10653 * psymtab.c (partial_symtab::partial_symtab): New constructor,
10654 renamed from start_psymtab_common.
10655 * psympriv.h (struct partial_symtab): Add new constructor.
10656 (start_psymtab_common): Don't declare.
10657 * mdebugread.c (parse_partial_symbols): Use new.
10658 * dwarf2read.c (create_partial_symtab): Use new.
10659 * dbxread.c (start_psymtab): Use new.
10660 * ctfread.c (create_partial_symtab): Use new.
10661
10662 2020-01-26 Tom Tromey <tom@tromey.com>
10663
10664 * xcoffread.c (xcoff_end_psymtab): Use new.
10665 * psymtab.c (start_psymtab_common): Use new.
10666 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
10667 Update.
10668 * psympriv.h (struct partial_symtab): Add parameters to
10669 constructor. Don't inline.
10670 (allocate_psymtab): Don't declare.
10671 * mdebugread.c (new_psymtab): Use new.
10672 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
10673 * dbxread.c (dbx_end_psymtab): Use new.
10674
10675 2020-01-26 Tom Tromey <tom@tromey.com>
10676
10677 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
10678 allocate_psymtab. Update documentation.
10679 * psymtab.c (psymtab_storage::install_psymtab): Rename from
10680 allocate_psymtab. Do not use new.
10681 (allocate_psymtab): Use new. Update.
10682
10683 2020-01-26 Tom Tromey <tom@tromey.com>
10684
10685 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
10686 * psymtab.c (psym_print_stats): Update.
10687 * psympriv.h (struct partial_symtab) <readin,
10688 psymtabs_addrmap_supported, anonymous>: Now bool.
10689 * mdebugread.c (psymtab_to_symtab_1): Update.
10690 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
10691 (build_type_psymtabs_reader, psymtab_to_symtab_1)
10692 (process_full_comp_unit, process_full_type_unit): Update.
10693 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
10694 * ctfread.c (psymtab_to_symtab): Update.
10695
10696 2020-01-26 Tom Tromey <tom@tromey.com>
10697
10698 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
10699 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
10700 * psymtab.c (psymtab_storage): Delete psymtabs.
10701 (psymtab_storage::allocate_psymtab): Use new.
10702 (psymtab_storage::discard_psymtab): Use delete.
10703 * psympriv.h (struct partial_symtab): Add constructor and
10704 initializers.
10705
10706 2020-01-26 Tom Tromey <tom@tromey.com>
10707
10708 * machoread.c: Do not include psympriv.h.
10709
10710 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10711
10712 * NEWS: Mention the new option and the set/show commands.
10713
10714 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10715
10716 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
10717 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
10718 (validate_exec_file): New variables, enums, functions.
10719 (exec_file_locate_attach, print_section_info): Style the filenames.
10720 (_initialize_exec): Install show_exec_file_mismatch_command and
10721 set_exec_file_mismatch_command.
10722 * gdbcore.h (validate_exec_file): Declare.
10723 * infcmd.c (attach_command): Call validate_exec_file.
10724 * remote.c ( remote_target::remote_add_inferior): Likewise.
10725
10726 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10727
10728 * frame.c (find_frame_sal): Move call to get_next_frame into more
10729 inner scope.
10730 * inline-frame.c (inilne_state) <inline_state>: Update argument
10731 types.
10732 (inilne_state) <skipped_symbol>: Rename to...
10733 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
10734 (skip_inline_frames): Build vector of skipped symbols and use this
10735 to reate the inline_state.
10736 (inline_skipped_symbol): Add a comment and some assertions, fetch
10737 skipped symbol from the list.
10738
10739 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10740
10741 * buildsym.c (lte_is_less_than): Delete.
10742 (buildsym_compunit::end_symtab_with_blockvector): Create local
10743 lambda function to sort line table entries, and use
10744 std::stable_sort instead of std::sort.
10745 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
10746 markers when looking for a previous line.
10747
10748 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10749
10750 * dwarf2read.c (lnp_state_machine::record_line): Include
10751 end_sequence parameter in debug print out. Record the line if we
10752 are at an end_sequence marker even if it's not the start of a
10753 statement.
10754 * symmisc.c (maintenance_print_one_line_table): Print end of
10755 sequence markers with 'END' not '0'.
10756
10757 2020-01-24 Pedro Alves <palves@redhat.com>
10758
10759 PR gdb/25410
10760 * thread.c (scoped_restore_current_thread::restore): Use
10761 switch_to_inferior_no_thread.
10762 * exec.c: Include "progspace-and-thread.h".
10763 (add_target_sections, remove_target_sections):
10764 scoped_restore_current_pspace_and_thread instead of
10765 scoped_restore_current_thread.
10766 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
10767 and aspace to the inferior before calling clone_program_space.
10768 Remove stale comment.
10769
10770 2020-01-24 Christian Biesinger <cbiesinger@google.com>
10771
10772 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
10773 (arm_netbsd_nat_target::fetch_registers): ...this.
10774 (arm_nbsd_nat_target::store_registers): Rename to...
10775 (arm_netbsd_nat_target::store_registers): ...this.
10776
10777 2020-01-24 Christian Biesinger <cbiesinger@google.com>
10778
10779 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
10780 register_t.
10781
10782 2020-01-24 Christian Biesinger <cbiesinger@google.com>
10783
10784 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
10785 Update comment.
10786 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
10787 Likewise.
10788 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
10789 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
10790 the correct replacement (iterate_over_regset_sections).
10791 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
10792 Update comment.
10793
10794 2020-01-24 Graham Markall <graham.markall@embecosm.com>
10795
10796 PR gdb/23718
10797 * gdb/python/python.c (execute_gdb_command): Call
10798 async_enable_stdin in catch block.
10799
10800 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10801
10802 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
10803 SWITCH_THRU_ALL_UIS.
10804
10805 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10806
10807 PR tui/9765
10808 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
10809 comment, add extra parameter, and update to store previous symbol
10810 when appropriate.
10811 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
10812 add extra parameter.
10813 * tui/tui-disasm.c (tui_disassemble): Update header comment,
10814 remove unneeded parameter, add try/catch around gdb_print_insn,
10815 rewrite to add items to asm_lines vector.
10816 (tui_find_backward_disassembly_start_address): New function.
10817 (tui_find_disassembly_address): Updated throughout.
10818 (tui_disasm_window::set_contents): Update for changes to
10819 tui_disassemble.
10820 (tui_disasm_window::do_scroll_vertical): No need to adjust the
10821 number of lines to scroll.
10822
10823 2020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
10824
10825 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
10826 (SECT_OFF_DATA): Likewise.
10827 (SECT_OFF_RODATA): Likewise.
10828 (SECT_OFF_TEXT): Likewise.
10829 (SECT_OFF_BSS): Likewise.
10830 (struct objfile) <text_section_offset, data_section_offset>: New
10831 methods.
10832 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
10833 objfile::text_section_offset.
10834 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
10835 * coffread.c (coff_symtab_read): Likewise.
10836 (enter_linenos): Likewise.
10837 (process_coff_symbol): Likewise.
10838 * ctfread.c (get_objfile_text_range): Likewise.
10839 * dtrace-probe.c (dtrace_probe::get_relocated_address):
10840 Use objfile::data_section_offset.
10841 * dwarf2-frame.c (execute_cfa_program): Use
10842 objfile::text_section_offset.
10843 (dwarf2_frame_find_fde): Likewise.
10844 * dwarf2read.c (create_addrmap_from_index): Likewise.
10845 (create_addrmap_from_aranges): Likewise.
10846 (dw2_find_pc_sect_compunit_symtab): Likewise.
10847 (process_psymtab_comp_unit_reader): Likewise.
10848 (add_partial_symbol): Likewise.
10849 (add_partial_subprogram): Likewise.
10850 (process_full_comp_unit): Likewise.
10851 (read_file_scope): Likewise.
10852 (read_func_scope): Likewise.
10853 (read_lexical_block_scope): Likewise.
10854 (read_call_site_scope): Likewise.
10855 (dwarf2_rnglists_process): Likewise.
10856 (dwarf2_ranges_process): Likewise.
10857 (dwarf2_ranges_read): Likewise.
10858 (dwarf_decode_lines_1): Likewise.
10859 (new_symbol): Likewise.
10860 (dwarf2_fetch_die_loc_sect_off): Likewise.
10861 (dwarf2_per_cu_text_offset): Likewise.
10862 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
10863 * hppa-tdep.c (read_unwind_info): Likewise.
10864 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
10865 * psympriv.h (struct partial_symtab): Likewise.
10866 * psymtab.c (find_pc_sect_psymtab): Likewise.
10867 * solib-svr4.c (enable_break): Likewise.
10868 * stap-probe.c (relocate_address): Use
10869 objfile::data_section_offset.
10870 * xcoffread.c (enter_line_range): Use
10871 objfile::text_section_offset.
10872 (read_xcoff_symtab): Likewise.
10873
10874 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
10875
10876 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
10877 declaration to narrower scopes.
10878
10879 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
10880
10881 * darwin-nat.h (struct darwin_exception_msg, enum
10882 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
10883 Move up.
10884 (class darwin_nat_target) <wait_1, check_new_threads,
10885 decode_exception_message, decode_message, stop_inferior,
10886 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
10887 * darwin-nat.c (darwin_check_new_threads): Rename to...
10888 (darwin_nat_target::check_new_threads): ... this.
10889 (darwin_suspend_inferior_it): Remove.
10890 (darwin_decode_exception_message): Rename to...
10891 (darwin_nat_target::decode_exception_message): ... this.
10892 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
10893 (darwin_decode_message): Rename to...
10894 (darwin_nat_target::decode_message): ... this.
10895 (cancel_breakpoint): Rename to...
10896 (darwin_nat_target::cancel_breakpoint): ... this.
10897 (darwin_wait): Rename to...
10898 (darwin_nat_target::wait_1): ... this. Use range-based for loop
10899 instead of iterate_over_inferiors.
10900 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
10901 (darwin_stop_inferior): Rename to...
10902 (darwin_nat_target::stop_inferior): ... this.
10903 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
10904 (darwin_init_thread_list): Rename to...
10905 (darwin_nat_target::init_thread_list): ... this.
10906 (darwin_ptrace_him): Rename to...
10907 (darwin_nat_target::ptrace_him): ... this.
10908 (darwin_nat_target::create_inferior): Pass lambda function to
10909 fork_inferior.
10910 (darwin_nat_target::detach): Call stop_inferior instead of
10911 darwin_stop_inferior.
10912 * fork-inferior.h (fork_inferior): Change init_trace_fun
10913 parameter to gdb::function_view.
10914 * fork-inferior.c (fork_inferior): Likewise.
10915
10916 2020-01-23 Hannes Domani <ssbssa@yahoo.de>
10917
10918 * i386-cygwin-tdep.c (core_process_module_section): Update.
10919 * windows-nat.c (struct lm_info_windows): Add text_offset.
10920 (windows_xfer_shared_libraries): Update.
10921 * windows-tdep.c (windows_xfer_shared_library):
10922 Add text_offset_cached argument.
10923 * windows-tdep.h (windows_xfer_shared_library): Update.
10924
10925 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
10926
10927 * gdbarch.sh: Add declaration for _initialize_gdbarch.
10928
10929 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
10930
10931 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
10932 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
10933 replace with range-based for.
10934 (gdbsim_interrupt_inferior): Remove.
10935 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
10936 with a range-based for. Inline code from
10937 gdbsim_interrupt_inferior.
10938
10939 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
10940
10941 * infrun.c (proceed): Fix indentation.
10942
10943 2020-01-21 Tom Tromey <tromey@adacore.com>
10944
10945 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
10946 * python/python.c (python_extension_ops): Update.
10947 (gdbpy_colorize): New function.
10948 * python/lib/gdb/__init__.py (colorize): New function.
10949 * extension.h (ext_lang_colorize): Declare.
10950 * extension.c (ext_lang_colorize): New function.
10951 * extension-priv.h (struct extension_language_ops) <colorize>: New
10952 member.
10953 * cli/cli-style.c (_initialize_cli_style): Update help text.
10954
10955 2020-01-21 Luis Machado <luis.machado@linaro.org>
10956
10957 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
10958 <cond>: Change type to bool.
10959 (aarch64_displaced_step_b_cond): Update cond to use bool type.
10960 (aarch64_displaced_step_cb): Likewise.
10961 (aarch64_displaced_step_tb): Likewise.
10962
10963 2020-01-21 Luis Machado <luis.machado@linaro.org>
10964
10965 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
10966 output.
10967
10968 2020-01-21 Luis Machado <luis.machado@linaro.org>
10969
10970 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
10971 <pc_adjust>: Adjust the documentation.
10972 (aarch64_displaced_step_fixup): Check if PC really moved before
10973 adjusting it.
10974
10975 2020-01-19 Tom Tromey <tom@tromey.com>
10976
10977 * disasm.c (~gdb_disassembler): New destructor.
10978 (gdb_buffered_insn_length): Call disassemble_free_target.
10979 * disasm.h (class gdb_disassembler): Declare destructor. Use
10980 DISABLE_COPY_AND_ASSIGN.
10981
10982 2020-01-19 Tom Tromey <tom@tromey.com>
10983
10984 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
10985 (die_reader_func_ftype): Remove.
10986 (cutu_reader): New class.
10987 (dw2_get_file_names_reader): Remove "data" parameter.
10988 (dw2_get_file_names): Use cutu_reader.
10989 (create_debug_type_hash_table): Update.
10990 (read_cutu_die_from_dwo): Update comment.
10991 (lookup_dwo_unit): Add dwo_name parameter.
10992 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
10993 die_reader_func_ftype and data parameters.
10994 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
10995 Remove die_reader_func_ftype and data parameters.
10996 (~cutu_reader): New; from init_cutu_and_read_dies.
10997 (cutu_reader::cutu_reader): Rename from
10998 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
10999 and data parameters.
11000 (init_cutu_and_read_dies_simple): Remove.
11001 (struct process_psymtab_comp_unit_data): Remove.
11002 (process_psymtab_comp_unit_reader): Remove data parameter; add
11003 want_partial_unit and pretend_language parameters.
11004 (process_psymtab_comp_unit): Use cutu_reader.
11005 (build_type_psymtabs_reader): Remove data parameter.
11006 (build_type_psymtabs_1): Use cutu_reader.
11007 (process_skeletonless_type_unit): Likewise.
11008 (load_partial_comp_unit_reader): Remove.
11009 (load_partial_comp_unit): Use cutu_reader.
11010 (load_full_comp_unit_reader): Remove.
11011 (load_full_comp_unit): Use cutu_reader.
11012 (struct create_dwo_cu_data): Remove.
11013 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
11014 dwo_unit parameters.
11015 (create_cus_hash_table): Use cutu_reader.
11016 (struct dwarf2_read_addr_index_data): Remove.
11017 (dwarf2_read_addr_index_reader): Remove.
11018 (dwarf2_read_addr_index): Use cutu_reader.
11019 (read_signatured_type_reader): Remove.
11020 (read_signatured_type): Use cutu_reader.
11021
11022 2020-01-19 Tom Tromey <tom@tromey.com>
11023
11024 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
11025 * tui/tui-wingeneral.h (class tui_suppress_output): New.
11026 (tui_wrefresh): Declare.
11027 * tui/tui-wingeneral.c (suppress_output): New global.
11028 (tui_suppress_output, ~tui_suppress_output): New constructor and
11029 destructor.
11030 (tui_wrefresh): New function.
11031 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
11032 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
11033 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
11034 method.
11035 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
11036 tui_wrefresh.
11037 (tui_data_window::no_refresh): New method.
11038 (tui_data_item_window::refresh_window): Call tui_wrefresh.
11039 (tui_reg_command): Use tui_suppress_output
11040 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
11041 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
11042 method.
11043 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
11044
11045 2020-01-19 Tom Tromey <tom@tromey.com>
11046
11047 * tui/tui-winsource.c (tui_update_source_windows_with_line):
11048 Handle case where symtab is null.
11049
11050 2020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
11051
11052 * linux-fork.c (one_fork_p): Simplify.
11053
11054 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
11055
11056 * top.c (struct qt_args): Remove.
11057 (kill_or_detach): Change return type to void, replace `void *`
11058 parameter with a proper one.
11059 (print_inferior_quit_action): Likewise.
11060 (quit_confirm): Use range-based for loop to iterate over inferiors.
11061 (quit_force): Likewise.
11062
11063 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
11064
11065 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
11066 `void *` parameter with proper parameters.
11067 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
11068 (print_one_inferior): Change return type to void, replace `void *`
11069 parameter with proper parameters.
11070 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
11071 inferiors.
11072 (get_other_inferior): Remove.
11073 (mi_cmd_remove_inferior): Use range-based loop to iterate over
11074 inferiors.
11075
11076 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
11077
11078 * mi/mi-interp.c (report_initial_inferior): Remove.
11079 (mi_interp::init): Use range-based for to iterate over inferiors.
11080
11081 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
11082
11083 * python/py-inferior.c (build_inferior_list): Remove.
11084 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
11085
11086 2020-01-16 Christian Biesinger <cbiesinger@google.com>
11087
11088 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
11089 (btrace_stitch_trace): Likewise.
11090 * charset.c (intermediate_encoding): Likewise (vaild).
11091 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
11092 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
11093 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
11094
11095 2020-01-16 Hannes Domani <ssbssa@yahoo.de>
11096
11097 * windows-tdep.c (windows_get_tlb_type):
11098 Add rtl_user_process_parameters type.
11099
11100 2020-01-16 Pedro Alves <palves@redhat.com>
11101 Norbert Lange <nolange79@gmail.com>
11102
11103 PR build/24805
11104 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
11105 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
11106 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
11107 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
11108 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
11109 (ps_plog): Redeclare exported functions with default visibility.
11110
11111 2020-01-16 Nitika Achra <Nitika.Achra@amd.com>
11112
11113 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
11114 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
11115
11116 2020-01-15 Simon Marchi <simon.marchi@efficios.com>
11117
11118 * infcmd.c (post_create_inferior): Use get_thread_regcache
11119 instead of get_current_regcache.
11120
11121 2020-01-14 Tom Tromey <tom@tromey.com>
11122
11123 PR symtab/12535:
11124 * python/python.c (gdbpy_decode_line): Treat empty string the same
11125 as no argument.
11126
11127 2020-01-14 Tom Tromey <tom@tromey.com>
11128
11129 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
11130
11131 2020-01-14 Tom Tromey <tom@tromey.com>
11132
11133 * nat/linux-btrace.c: Don't include <config.h>.
11134 * nat/linux-ptrace.c: Don't include <config.h>.
11135 * nat/x86-linux-dregs.c: Don't include <config.h>.
11136
11137 2020-01-14 Tom Tromey <tom@tromey.com>
11138
11139 * configure: Rebuild.
11140 * configure.ac: Move many checks to ../gdbsupport/common.m4.
11141
11142 2020-01-14 Tom Tromey <tom@tromey.com>
11143
11144 * nat/x86-linux-dregs.c: Include configh.h.
11145 * nat/linux-ptrace.c: Include configh.h.
11146 * nat/linux-btrace.c: Include configh.h.
11147 * defs.h: Include config.h, bfd.h.
11148 * configure.ac: Don't source common.host.
11149 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
11150 * configure: Rebuild.
11151 * acinclude.m4: Update path.
11152 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
11153 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
11154 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
11155 (CLIBS): Add LIBSUPPORT.
11156 (CDEPS): Likewise.
11157 (COMMON_SFILES): Remove gdbsupport files.
11158 (HFILES_NO_SRCDIR): Likewise.
11159 (stamp-version): Update path to create-version.sh.
11160 (ALLDEPFILES): Remove gdbsupport files.
11161
11162 2020-01-14 Tom Tromey <tom@tromey.com>
11163
11164 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
11165 USE_WIN32API when needed.
11166 * configure.ac (USE_WIN32API): Don't define.
11167 (WIN32LIBS): Use WIN32APILIBS.
11168 * configure: Rebuild.
11169
11170 2020-01-14 Tom Tromey <tom@tromey.com>
11171
11172 * configure: Rebuild.
11173 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
11174
11175 2020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
11176
11177 * skip.c (skip_function_command): Make skip w/o arguments use the
11178 name of the inlined function if pc is inside any inlined function.
11179
11180 2020-01-14 Luis Machado <luis.machado@linaro.org>
11181
11182 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
11183 * infrun.c (resume_1): Likewise.
11184 (handle_inferior_event): Remove stale comment.
11185 * linux-nat.c (linux_nat_target::resume): Update comments.
11186 (save_stop_reason): Likewise.
11187 (linux_nat_filter_event): Likewise.
11188 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
11189
11190 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
11191
11192 * elfread.c (record_minimal_symbol): Set section index to 0 for
11193 non-allocatable sections.
11194
11195
11196 2020-01-13 Ali Tamur <tamur@google.com>
11197
11198 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
11199 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
11200 to gdb::optional. Update comments.
11201 (dwo_file): Update comments.
11202 (read_attribute): Update API to take an additional out parameter,
11203 need_reprocess. This is used to mark attributes that need other
11204 attributes (e.g. str_offsets_base) for correct computation which may not
11205 have been read yet.
11206 (read_attribute_reprocess): New function declaration.
11207 (read_addr_index): Likewise.
11208 (read_dwo_str_index): Likewise.
11209 (read_stub_str_index): Likewise.
11210 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
11211 (lookup_addr_base): New function definition.
11212 (lookup_ranges_base): Likewise.
11213 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
11214 lookup_ranges_base.
11215 (init_cutu_and_read_dies): Update comments.
11216 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
11217 unit. This is used to inherit parent's str_offsets_base and addr_base.
11218 Update comments.
11219 (init_cutu_and_read_dies_simple): Reflect API changes.
11220 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
11221 (create_cus_hash_table): Change API to take parent compile unit.
11222 Reflect API changes.
11223 (open_and_init_dwo_file): Reflect API changes.
11224 (dwarf2_get_pc_bounds): Update comments.
11225 (dwarf2_record_block_ranges): Likewise.
11226 (read_full_die_1): Change implementation to reprocess attributes that
11227 need str_offsets_base and addr_base.
11228 (partial_die_info::read): Likewise.
11229 (read_attribute_reprocess): New function definition.
11230 (read_attribute_value): Change API to take an additional out parameter,
11231 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
11232 when a non-dwo compile unit has index based attributes.
11233 (read_attribute): Reflect API changes.
11234 (read_addr_index_1): Reflect API changes. Update comments.
11235 (dwarf2_read_addr_index_data): Reflect API changes.
11236 (dwarf2_read_addr_index): Likewise.
11237 (read_str_index): Change API and implementation. This becomes a helper
11238 to be used by the new string index related methods. Update error
11239 message and comments.
11240 (read_dwo_str_index): New function definition.
11241 (read_stub_str_index): Likewise.
11242 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
11243 * symfile.h (dwarf2_debug_sections): Likewise.
11244 * xcoffread.c (dwarf2_debug_sections): Likewise.
11245
11246 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
11247
11248 * gdbcore.h (struct core_fns) <core_read_registers>: Change
11249 core_reg_sect type to gdb_byte *.
11250 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
11251 * cris-tdep.c (fetch_core_registers): Likewise.
11252 * corelow.c (core_target::get_core_register_section): Change
11253 type of `contents` to gdb::byte_vector.
11254
11255 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
11256
11257 * tui/tui-wingeneral.c (box_win): Position the title in the center
11258 of the border.
11259
11260 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
11261
11262 * corelow.c (core_target::get_core_register_section): Use
11263 std::vector instead of alloca.
11264
11265 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
11266
11267 * warning.m4: Add -Wmissing-declarations to build_warnings.
11268 * configure: Re-generate.
11269
11270 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
11271
11272 * python/python.c (init__gdb_module): Add declaration.
11273
11274 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
11275
11276 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
11277 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
11278 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
11279 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
11280 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
11281 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
11282 * ada-exp.y (_initialize_ada_exp): Add declaration.
11283 * ada-lang.c (_initialize_ada_language): Add declaration.
11284 * ada-tasks.c (_initialize_tasks): Add declaration.
11285 * agent.c (_initialize_agent): Add declaration.
11286 * aix-thread.c (_initialize_aix_thread): Add declaration.
11287 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
11288 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
11289 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
11290 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
11291 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
11292 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
11293 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
11294 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
11295 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
11296 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
11297 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
11298 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
11299 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
11300 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
11301 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
11302 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
11303 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
11304 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
11305 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
11306 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
11307 * annotate.c (_initialize_annotate): Add declaration.
11308 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
11309 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
11310 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
11311 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
11312 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
11313 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
11314 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
11315 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
11316 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
11317 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
11318 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
11319 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
11320 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
11321 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
11322 * auto-load.c (_initialize_auto_load): Add declaration.
11323 * auxv.c (_initialize_auxv): Add declaration.
11324 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
11325 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
11326 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
11327 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
11328 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
11329 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
11330 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
11331 * breakpoint.c (_initialize_breakpoint): Add declaration.
11332 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
11333 * btrace.c (_initialize_btrace): Add declaration.
11334 * charset.c (_initialize_charset): Add declaration.
11335 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
11336 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
11337 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
11338 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
11339 * cli/cli-script.c (_initialize_cli_script): Add declaration.
11340 * cli/cli-style.c (_initialize_cli_style): Add declaration.
11341 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
11342 * coffread.c (_initialize_coffread): Add declaration.
11343 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
11344 * compile/compile.c (_initialize_compile): Add declaration.
11345 * complaints.c (_initialize_complaints): Add declaration.
11346 * completer.c (_initialize_completer): Add declaration.
11347 * copying.c (_initialize_copying): Add declaration.
11348 * corefile.c (_initialize_core): Add declaration.
11349 * corelow.c (_initialize_corelow): Add declaration.
11350 * cp-abi.c (_initialize_cp_abi): Add declaration.
11351 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
11352 * cp-support.c (_initialize_cp_support): Add declaration.
11353 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
11354 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
11355 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
11356 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
11357 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
11358 * ctfread.c (_initialize_ctfread): Add declaration.
11359 * d-lang.c (_initialize_d_language): Add declaration.
11360 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
11361 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
11362 * dbxread.c (_initialize_dbxread): Add declaration.
11363 * dcache.c (_initialize_dcache): Add declaration.
11364 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
11365 * disasm.c (_initialize_disasm): Add declaration.
11366 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
11367 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
11368 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
11369 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
11370 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
11371 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
11372 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
11373 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
11374 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
11375 * elfread.c (_initialize_elfread): Add declaration.
11376 * exec.c (_initialize_exec): Add declaration.
11377 * extension.c (_initialize_extension): Add declaration.
11378 * f-lang.c (_initialize_f_language): Add declaration.
11379 * f-valprint.c (_initialize_f_valprint): Add declaration.
11380 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
11381 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
11382 * filesystem.c (_initialize_filesystem): Add declaration.
11383 * findcmd.c (_initialize_mem_search): Add declaration.
11384 * findvar.c (_initialize_findvar): Add declaration.
11385 * fork-child.c (_initialize_fork_child): Add declaration.
11386 * frame-base.c (_initialize_frame_base): Add declaration.
11387 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
11388 * frame.c (_initialize_frame): Add declaration.
11389 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
11390 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
11391 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
11392 * gcore.c (_initialize_gcore): Add declaration.
11393 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
11394 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
11395 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
11396 * gdbarch.c (_initialize_gdbarch): Add declaration.
11397 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
11398 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
11399 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
11400 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
11401 * go-lang.c (_initialize_go_language): Add declaration.
11402 * go32-nat.c (_initialize_go32_nat): Add declaration.
11403 * guile/guile.c (_initialize_guile): Add declaration.
11404 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
11405 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
11406 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
11407 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
11408 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
11409 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
11410 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
11411 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
11412 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
11413 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
11414 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
11415 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
11416 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
11417 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
11418 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
11419 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
11420 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
11421 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
11422 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
11423 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
11424 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
11425 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
11426 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
11427 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
11428 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
11429 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
11430 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
11431 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
11432 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
11433 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
11434 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
11435 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
11436 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
11437 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
11438 * infcall.c (_initialize_infcall): Add declaration.
11439 * infcmd.c (_initialize_infcmd): Add declaration.
11440 * inflow.c (_initialize_inflow): Add declaration.
11441 * infrun.c (_initialize_infrun): Add declaration.
11442 * interps.c (_initialize_interpreter): Add declaration.
11443 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
11444 * jit.c (_initialize_jit): Add declaration.
11445 * language.c (_initialize_language): Add declaration.
11446 * linux-fork.c (_initialize_linux_fork): Add declaration.
11447 * linux-nat.c (_initialize_linux_nat): Add declaration.
11448 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
11449 * linux-thread-db.c (_initialize_thread_db): Add declaration.
11450 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
11451 * m2-lang.c (_initialize_m2_language): Add declaration.
11452 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
11453 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
11454 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
11455 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
11456 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
11457 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
11458 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
11459 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
11460 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
11461 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
11462 * machoread.c (_initialize_machoread): Add declaration.
11463 * macrocmd.c (_initialize_macrocmd): Add declaration.
11464 * macroscope.c (_initialize_macroscope): Add declaration.
11465 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
11466 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
11467 * maint.c (_initialize_maint_cmds): Add declaration.
11468 * mdebugread.c (_initialize_mdebugread): Add declaration.
11469 * memattr.c (_initialize_mem): Add declaration.
11470 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
11471 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
11472 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
11473 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
11474 * mi/mi-main.c (_initialize_mi_main): Add declaration.
11475 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
11476 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
11477 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
11478 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
11479 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
11480 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
11481 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
11482 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
11483 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
11484 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
11485 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
11486 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
11487 * mipsread.c (_initialize_mipsread): Add declaration.
11488 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
11489 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
11490 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
11491 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
11492 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
11493 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
11494 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
11495 * nto-procfs.c (_initialize_procfs): Add declaration.
11496 * objc-lang.c (_initialize_objc_language): Add declaration.
11497 * observable.c (_initialize_observer): Add declaration.
11498 * opencl-lang.c (_initialize_opencl_language): Add declaration.
11499 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
11500 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
11501 * osabi.c (_initialize_gdb_osabi): Add declaration.
11502 * osdata.c (_initialize_osdata): Add declaration.
11503 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
11504 * parse.c (_initialize_parse): Add declaration.
11505 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
11506 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
11507 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
11508 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
11509 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
11510 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
11511 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
11512 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
11513 * printcmd.c (_initialize_printcmd): Add declaration.
11514 * probe.c (_initialize_probe): Add declaration.
11515 * proc-api.c (_initialize_proc_api): Add declaration.
11516 * proc-events.c (_initialize_proc_events): Add declaration.
11517 * proc-service.c (_initialize_proc_service): Add declaration.
11518 * procfs.c (_initialize_procfs): Add declaration.
11519 * producer.c (_initialize_producer): Add declaration.
11520 * psymtab.c (_initialize_psymtab): Add declaration.
11521 * python/python.c (_initialize_python): Add declaration.
11522 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
11523 * record-btrace.c (_initialize_record_btrace): Add declaration.
11524 * record-full.c (_initialize_record_full): Add declaration.
11525 * record.c (_initialize_record): Add declaration.
11526 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
11527 * regcache.c (_initialize_regcache): Add declaration.
11528 * reggroups.c (_initialize_reggroup): Add declaration.
11529 * remote-notif.c (_initialize_notif): Add declaration.
11530 * remote-sim.c (_initialize_remote_sim): Add declaration.
11531 * remote.c (_initialize_remote): Add declaration.
11532 * reverse.c (_initialize_reverse): Add declaration.
11533 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
11534 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
11535 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
11536 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
11537 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
11538 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
11539 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
11540 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
11541 Add declaration.
11542 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
11543 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
11544 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
11545 * rust-exp.y (_initialize_rust_exp): Add declaration.
11546 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
11547 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
11548 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
11549 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
11550 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
11551 * score-tdep.c (_initialize_score_tdep): Add declaration.
11552 * ser-go32.c (_initialize_ser_dos): Add declaration.
11553 * ser-mingw.c (_initialize_ser_windows): Add declaration.
11554 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
11555 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
11556 * ser-uds.c (_initialize_ser_socket): Add declaration.
11557 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
11558 * serial.c (_initialize_serial): Add declaration.
11559 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
11560 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
11561 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
11562 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
11563 * skip.c (_initialize_step_skip): Add declaration.
11564 * sol-thread.c (_initialize_sol_thread): Add declaration.
11565 * solib-aix.c (_initialize_solib_aix): Add declaration.
11566 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
11567 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
11568 * solib-frv.c (_initialize_frv_solib): Add declaration.
11569 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
11570 * solib-target.c (_initialize_solib_target): Add declaration.
11571 * solib.c (_initialize_solib): Add declaration.
11572 * source-cache.c (_initialize_source_cache): Add declaration.
11573 * source.c (_initialize_source): Add declaration.
11574 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
11575 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
11576 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
11577 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
11578 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
11579 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
11580 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
11581 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
11582 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
11583 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
11584 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
11585 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
11586 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
11587 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
11588 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
11589 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
11590 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
11591 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
11592 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
11593 * stabsread.c (_initialize_stabsread): Add declaration.
11594 * stack.c (_initialize_stack): Add declaration.
11595 * stap-probe.c (_initialize_stap_probe): Add declaration.
11596 * std-regs.c (_initialize_frame_reg): Add declaration.
11597 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
11598 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
11599 * symfile.c (_initialize_symfile): Add declaration.
11600 * symmisc.c (_initialize_symmisc): Add declaration.
11601 * symtab.c (_initialize_symtab): Add declaration.
11602 * target.c (_initialize_target): Add declaration.
11603 * target-connection.c (_initialize_target_connection): Add
11604 declaration.
11605 * target-dcache.c (_initialize_target_dcache): Add declaration.
11606 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
11607 * thread.c (_initialize_thread): Add declaration.
11608 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
11609 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
11610 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
11611 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
11612 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
11613 * tracectf.c (_initialize_ctf): Add declaration.
11614 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
11615 * tracefile.c (_initialize_tracefile): Add declaration.
11616 * tracepoint.c (_initialize_tracepoint): Add declaration.
11617 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
11618 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
11619 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
11620 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
11621 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
11622 * tui/tui-win.c (_initialize_tui_win): Add declaration.
11623 * tui/tui.c (_initialize_tui): Add declaration.
11624 * typeprint.c (_initialize_typeprint): Add declaration.
11625 * ui-style.c (_initialize_ui_style): Add declaration.
11626 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
11627 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
11628 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
11629 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
11630 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
11631 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
11632 * unittests/filtered_iterator-selftests.c
11633 (_initialize_filtered_iterator_selftests): Add declaration.
11634 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
11635 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
11636 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
11637 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
11638 * unittests/main-thread-selftests.c
11639 (_initialize_main_thread_selftests): Add declaration.
11640 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
11641 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
11642 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
11643 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
11644 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
11645 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
11646 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
11647 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
11648 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
11649 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
11650 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
11651 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
11652 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
11653 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
11654 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
11655 declaration.
11656 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
11657 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
11658 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
11659 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
11660 * user-regs.c (_initialize_user_regs): Add declaration.
11661 * utils.c (_initialize_utils): Add declaration.
11662 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
11663 * valops.c (_initialize_valops): Add declaration.
11664 * valprint.c (_initialize_valprint): Add declaration.
11665 * value.c (_initialize_values): Add declaration.
11666 * varobj.c (_initialize_varobj): Add declaration.
11667 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
11668 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
11669 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
11670 * windows-nat.c (_initialize_windows_nat): Add declaration.
11671 (_initialize_check_for_gdb_ini): Add declaration.
11672 (_initialize_loadable): Add declaration.
11673 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
11674 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
11675 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
11676 * xcoffread.c (_initialize_xcoffread): Add declaration.
11677 * xml-support.c (_initialize_xml_support): Add declaration.
11678 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
11679 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
11680 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
11681 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
11682
11683 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
11684
11685 * regformats/regdat.sh: Generate declaration for init function.
11686
11687 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
11688
11689 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
11690 up.
11691 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
11692 close_one_inferior>: New methods.
11693 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
11694 pass down target to find_inferior_pid.
11695 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
11696 Pass down target to find_inferior_ptid.
11697 (gdbsim_target::create_inferior): Pass down target to
11698 add_thread_silent.
11699 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
11700 target down to find_inferior_ptid and switch_to_thread.
11701 (gdbsim_target::close): Update to call close_one_inferior.
11702 (struct resume_data): Remove.
11703 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
11704 directly, rather than through a void pointer.
11705 (gdbsim_target::resume): Update to call resume_one_inferior.
11706
11707 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
11708
11709 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
11710
11711 2020-01-12 Pedro Alves <palves@redhat.com>
11712
11713 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
11714 directly for the current inferior instead of
11715 discard_all_inferiors.
11716 (discard_all_inferiors): Delete.
11717
11718 2020-01-11 Tom Tromey <tom@tromey.com>
11719
11720 * tui/tui-wingeneral.c (box_win): Check cli_styling.
11721 * tui/tui-winsource.c (tui_source_window_base::refill): Use
11722 deprecated_safe_get_selected_frame.
11723
11724 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11725
11726 * inferior.c (print_inferior): Switch inferior before printing it.
11727
11728 2020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
11729 Pedro Alves <palves@redhat.com>
11730
11731 * progspace-and-thread.c (switch_to_program_space_and_thread):
11732 Assert there's an inferior for PSPACE. Use
11733 switch_to_inferior_no_thread to switch the inferior too.
11734 * progspace.c (program_space::~program_space): Call
11735 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
11736 (program_space::free_all_objfiles): Don't call clear_symtab_users
11737 here.
11738 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
11739
11740 2020-01-10 Pedro Alves <palves@redhat.com>
11741
11742 * NEWS: Mention multi-target debugging, "info connections", and
11743 "add-inferior -no-connection".
11744
11745 2020-01-10 Pedro Alves <palves@redhat.com>
11746
11747 * infrun.c: Include "target-connection.h".
11748 (check_multi_target_resumption): New.
11749 (proceed): Call it.
11750 * target-connection.c (make_target_connection_string): Make
11751 extern.
11752 * target-connection.h (make_target_connection_string): Declare.
11753
11754 2020-01-10 Pedro Alves <palves@redhat.com>
11755
11756 * Makefile.in (COMMON_SFILES): Add target-connection.c.
11757 * inferior.c (uiout_field_connection): New function.
11758 (print_inferior): Add new "connection-id" column.
11759 (add_inferior_command): Show connection number/string of added
11760 inferior.
11761 * process-stratum-target.h
11762 (process_stratum_target::connection_string): New virtual method.
11763 (process_stratum_target::connection_number): New field.
11764 * remote.c (remote_target::connection_string): New override.
11765 * target-connection.c: New file.
11766 * target-connection.h: New file.
11767 * target.c (decref_target): Remove process_stratum targets from
11768 the connection list.
11769 (target_stack::push): Add process_stratum targets to the
11770 connection list.
11771
11772 2020-01-10 Pedro Alves <palves@redhat.com>
11773
11774 Revert:
11775 2016-04-12 Pedro Alves <palves@redhat.com>
11776 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
11777 Remove references to name.
11778 * serial.h (struct serial) <name>: Delete.
11779
11780 2020-01-10 Pedro Alves <palves@redhat.com>
11781
11782 * gdbarch-selftests.c (register_to_value_test): Remove "target
11783 already pushed" check.
11784
11785 2020-01-10 Pedro Alves <palves@redhat.com>
11786 John Baldwin <jhb@FreeBSD.org>
11787
11788 * aarch64-linux-nat.c
11789 (aarch64_linux_nat_target::thread_architecture): Adjust.
11790 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
11791 (task_command_1): Likewise.
11792 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
11793 (aix_thread_target::wait, aix_thread_target::fetch_registers)
11794 (aix_thread_target::store_registers)
11795 (aix_thread_target::thread_alive): Adjust.
11796 * amd64-fbsd-tdep.c: Include "inferior.h".
11797 (amd64fbsd_get_thread_local_address): Pass down target.
11798 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
11799 thread's gdbarch instead of target_gdbarch.
11800 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
11801 get_last_target_status.
11802 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
11803 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
11804 inferiors.
11805 (update_inserted_breakpoint_locations): Skip if inferiors with no
11806 execution.
11807 (update_global_location_list): When handling moribund locations,
11808 find representative inferior for location's pspace, and use thread
11809 count of its process_stratum target.
11810 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
11811 * bsd-uthread.c (bsd_uthread_target::wait): Use
11812 as_process_stratum_target and adjust thread_change_ptid and
11813 add_thread calls.
11814 (bsd_uthread_target::update_thread_list): Use
11815 as_process_stratum_target and adjust find_thread_ptid,
11816 thread_change_ptid and add_thread calls.
11817 * btrace.c (maint_btrace_packet_history_cmd): Adjust
11818 find_thread_ptid call.
11819 * corelow.c (add_to_thread_list): Adjust add_thread call.
11820 (core_target_open): Adjust add_thread_silent and thread_count
11821 calls.
11822 (core_target::pid_to_str): Adjust find_inferior_ptid call.
11823 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
11824 * event-top.c (async_disconnect): Pop targets from all inferiors.
11825 * exec.c (add_target_sections): Push exec target on all inferiors
11826 sharing the program space.
11827 (remove_target_sections): Remove the exec target from all
11828 inferiors sharing the program space.
11829 (exec_on_vfork): New.
11830 * exec.h (exec_on_vfork): Declare.
11831 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
11832 Pass it down.
11833 (fbsd_nat_target::update_thread_list): Adjust.
11834 (fbsd_nat_target::resume): Adjust.
11835 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
11836 down.
11837 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
11838 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
11839 get_thread_arch_regcache call.
11840 * fork-child.c (gdb_startup_inferior): Pass target down to
11841 startup_inferior and set_executing.
11842 * gdbthread.h (struct process_stratum_target): Forward declare.
11843 (add_thread, add_thread_silent, add_thread_with_info)
11844 (in_thread_list): Add process_stratum_target parameter.
11845 (find_thread_ptid(inferior*, ptid_t)): New overload.
11846 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
11847 parameter.
11848 (all_threads()): Delete overload.
11849 (all_threads, all_non_exited_threads): Add process_stratum_target
11850 parameter.
11851 (all_threads_safe): Use brace initialization.
11852 (thread_count): Add process_stratum_target parameter.
11853 (set_resumed, set_running, set_stop_requested, set_executing)
11854 (threads_are_executing, finish_thread_state): Add
11855 process_stratum_target parameter.
11856 (switch_to_thread): Use is_current_thread.
11857 * i386-fbsd-tdep.c: Include "inferior.h".
11858 (i386fbsd_get_thread_local_address): Pass down target.
11859 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
11860 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
11861 have_inferiors check.
11862 * inf-ptrace.c (inf_ptrace_target::create_inferior)
11863 (inf_ptrace_target::attach): Adjust.
11864 * infcall.c (run_inferior_call): Adjust.
11865 * infcmd.c (run_command_1): Pass target to
11866 scoped_finish_thread_state.
11867 (proceed_thread_callback): Skip inferiors with no execution.
11868 (continue_command): Rename 'all_threads' local to avoid hiding
11869 'all_threads' function. Adjust get_last_target_status call.
11870 (prepare_one_step): Adjust set_running call.
11871 (signal_command): Use user_visible_resume_target. Compare thread
11872 pointers instead of inferior_ptid.
11873 (info_program_command): Adjust to pass down target.
11874 (attach_command): Mark target's 'thread_executing' flag.
11875 (stop_current_target_threads_ns): New, factored out from ...
11876 (interrupt_target_1): ... this. Switch inferior before making
11877 target calls.
11878 * inferior-iter.h
11879 (struct all_inferiors_iterator, struct all_inferiors_range)
11880 (struct all_inferiors_safe_range)
11881 (struct all_non_exited_inferiors_range): Filter on
11882 process_stratum_target too. Remove explicit.
11883 * inferior.c (inferior::inferior): Push dummy target on target
11884 stack.
11885 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
11886 Add process_stratum_target parameter, and pass it down.
11887 (have_live_inferiors): Adjust.
11888 (switch_to_inferior_and_push_target): New.
11889 (add_inferior_command, clone_inferior_command): Handle
11890 "-no-connection" parameter. Use
11891 switch_to_inferior_and_push_target.
11892 (_initialize_inferior): Mention "-no-connection" option in
11893 the help of "add-inferior" and "clone-inferior" commands.
11894 * inferior.h: Include "process-stratum-target.h".
11895 (interrupt_target_1): Use bool.
11896 (struct inferior) <push_target, unpush_target, target_is_pushed,
11897 find_target_beneath, top_target, process_target, target_at,
11898 m_stack>: New.
11899 (discard_all_inferiors): Delete.
11900 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
11901 (all_inferiors, all_non_exited_inferiors): Add
11902 process_stratum_target parameter.
11903 * infrun.c: Include "gdb_select.h" and <unordered_map>.
11904 (target_last_proc_target): New global.
11905 (follow_fork_inferior): Push target on new inferior. Pass target
11906 to add_thread_silent. Call exec_on_vfork. Handle target's
11907 reference count.
11908 (follow_fork): Adjust get_last_target_status call. Also consider
11909 target.
11910 (follow_exec): Push target on new inferior.
11911 (struct execution_control_state) <target>: New field.
11912 (user_visible_resume_target): New.
11913 (do_target_resume): Call target_async.
11914 (resume_1): Set target's threads_executing flag. Consider resume
11915 target.
11916 (commit_resume_all_targets): New.
11917 (proceed): Also consider resume target. Skip threads of inferiors
11918 with no execution. Commit resumtion in all targets.
11919 (start_remote): Pass current inferior to wait_for_inferior.
11920 (infrun_thread_stop_requested): Consider target as well. Pass
11921 thread_info pointer to clear_inline_frame_state instead of ptid.
11922 (infrun_thread_thread_exit): Consider target as well.
11923 (random_pending_event_thread): New inferior parameter. Use it.
11924 (do_target_wait): Rename to ...
11925 (do_target_wait_1): ... this. Add inferior parameter, and pass it
11926 down.
11927 (threads_are_resumed_pending_p, do_target_wait): New.
11928 (prepare_for_detach): Adjust calls.
11929 (wait_for_inferior): New inferior parameter. Handle it. Use
11930 do_target_wait_1 instead of do_target_wait.
11931 (fetch_inferior_event): Adjust. Switch to representative
11932 inferior. Pass target down.
11933 (set_last_target_status): Add process_stratum_target parameter.
11934 Save target in global.
11935 (get_last_target_status): Add process_stratum_target parameter and
11936 handle it.
11937 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
11938 (context_switch): Check inferior_ptid == null_ptid before calling
11939 inferior_thread().
11940 (get_inferior_stop_soon): Pass down target.
11941 (wait_one): Rename to ...
11942 (poll_one_curr_target): ... this.
11943 (struct wait_one_event): New.
11944 (wait_one): New.
11945 (stop_all_threads): Adjust.
11946 (handle_no_resumed, handle_inferior_event): Adjust to consider the
11947 event's target.
11948 (switch_back_to_stepped_thread): Also consider target.
11949 (print_stop_event): Update.
11950 (normal_stop): Update. Also consider the resume target.
11951 * infrun.h (wait_for_inferior): Remove declaration.
11952 (user_visible_resume_target): New declaration.
11953 (get_last_target_status, set_last_target_status): New
11954 process_stratum_target parameter.
11955 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
11956 process_stratum_target parameter, and use it.
11957 (clear_inline_frame_state (thread_info*)): New.
11958 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
11959 process_stratum_target parameter.
11960 (clear_inline_frame_state (thread_info*)): Declare.
11961 * linux-fork.c (delete_checkpoint_command): Pass target down to
11962 find_thread_ptid.
11963 (checkpoint_command): Adjust.
11964 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
11965 instead of just tweaking inferior_ptid.
11966 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
11967 (exit_lwp): Pass target down to find_thread_ptid.
11968 (attach_proc_task_lwp_callback): Pass target down to
11969 add_thread/set_running/set_executing.
11970 (linux_nat_target::attach): Pass target down to
11971 thread_change_ptid.
11972 (get_detach_signal): Pass target down to find_thread_ptid.
11973 Consider last target status's target.
11974 (linux_resume_one_lwp_throw, resume_lwp)
11975 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
11976 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
11977 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
11978 (linux_nat_target::async_wait_fd): New.
11979 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
11980 target down.
11981 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
11982 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
11983 * linux-thread-db.c (struct thread_db_info::process_target): New
11984 field.
11985 (add_thread_db_info): Save target.
11986 (get_thread_db_info): New process_stratum_target parameter. Also
11987 match target.
11988 (delete_thread_db_info): New process_stratum_target parameter.
11989 Also match target.
11990 (thread_from_lwp): Adjust to pass down target.
11991 (thread_db_notice_clone): Pass down target.
11992 (check_thread_db_callback): Pass down target.
11993 (try_thread_db_load_1): Always push the thread_db target.
11994 (try_thread_db_load, record_thread): Pass target down.
11995 (thread_db_target::detach): Pass target down. Always unpush the
11996 thread_db target.
11997 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
11998 target down. Always unpush the thread_db target.
11999 (find_new_threads_callback, thread_db_find_new_threads_2)
12000 (thread_db_target::update_thread_list): Pass target down.
12001 (thread_db_target::pid_to_str): Pass current inferior down.
12002 (thread_db_target::get_thread_local_address): Pass target down.
12003 (thread_db_target::resume, maintenance_check_libthread_db): Pass
12004 target down.
12005 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
12006 * procfs.c (procfs_target::procfs_init_inferior): Declare.
12007 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
12008 (procfs_init_inferior): Rename to ...
12009 (procfs_target::procfs_init_inferior): ... this and adjust.
12010 (procfs_target::create_inferior, procfs_notice_thread)
12011 (procfs_do_thread_registers): Adjust.
12012 * ppc-fbsd-tdep.c: Include "inferior.h".
12013 (ppcfbsd_get_thread_local_address): Pass down target.
12014 * proc-service.c (ps_xfer_memory): Switch current inferior and
12015 program space as well.
12016 (get_ps_regcache): Pass target down.
12017 * process-stratum-target.c
12018 (process_stratum_target::thread_address_space)
12019 (process_stratum_target::thread_architecture): Pass target down.
12020 * process-stratum-target.h
12021 (process_stratum_target::threads_executing): New field.
12022 (as_process_stratum_target): New.
12023 * ravenscar-thread.c
12024 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
12025 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
12026 down.
12027 * record-btrace.c (record_btrace_target::info_record): Adjust.
12028 (record_btrace_target::record_method)
12029 (record_btrace_target::record_is_replaying)
12030 (record_btrace_target::fetch_registers)
12031 (get_thread_current_frame_id, record_btrace_target::resume)
12032 (record_btrace_target::wait, record_btrace_target::stop): Pass
12033 target down.
12034 * record-full.c (record_full_wait_1): Switch to event thread.
12035 Pass target down.
12036 * regcache.c (regcache::regcache)
12037 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
12038 process_stratum_target parameter and handle it.
12039 (current_thread_target): New global.
12040 (get_thread_regcache): Add process_stratum_target parameter and
12041 handle it. Switch inferior before calling target method.
12042 (get_thread_regcache): Pass target down.
12043 (get_thread_regcache_for_ptid): Pass target down.
12044 (registers_changed_ptid): Add process_stratum_target parameter and
12045 handle it.
12046 (registers_changed_thread, registers_changed): Pass target down.
12047 (test_get_thread_arch_aspace_regcache): New.
12048 (current_regcache_test): Define a couple local test_target_ops
12049 instances and use them for testing.
12050 (readwrite_regcache): Pass process_stratum_target parameter.
12051 (cooked_read_test, cooked_write_test): Pass mock_target down.
12052 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
12053 (get_thread_arch_aspace_regcache): Add process_stratum_target
12054 parameter.
12055 (regcache::target): New method.
12056 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
12057 (regcache::registers_changed_ptid): Add process_stratum_target
12058 parameter.
12059 (regcache::m_target): New field.
12060 (registers_changed_ptid): Add process_stratum_target parameter.
12061 * remote.c (remote_state::supports_vCont_probed): New field.
12062 (remote_target::async_wait_fd): New method.
12063 (remote_unpush_and_throw): Add remote_target parameter.
12064 (get_current_remote_target): Adjust.
12065 (remote_target::remote_add_inferior): Push target.
12066 (remote_target::remote_add_thread)
12067 (remote_target::remote_notice_new_inferior)
12068 (get_remote_thread_info): Pass target down.
12069 (remote_target::update_thread_list): Skip threads of inferiors
12070 bound to other targets. (remote_target::close): Don't discard
12071 inferiors. (remote_target::add_current_inferior_and_thread)
12072 (remote_target::process_initial_stop_replies)
12073 (remote_target::start_remote)
12074 (remote_target::remote_serial_quit_handler): Pass down target.
12075 (remote_target::remote_unpush_target): New remote_target
12076 parameter. Unpush the target from all inferiors.
12077 (remote_target::remote_unpush_and_throw): New remote_target
12078 parameter. Pass it down.
12079 (remote_target::open_1): Check whether the current inferior has
12080 execution instead of checking whether any inferior is live. Pass
12081 target down.
12082 (remote_target::remote_detach_1): Pass down target. Use
12083 remote_unpush_target.
12084 (extended_remote_target::attach): Pass down target.
12085 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
12086 (remote_target::append_resumption): Pass down target.
12087 (remote_target::append_pending_thread_resumptions)
12088 (remote_target::remote_resume_with_hc, remote_target::resume)
12089 (remote_target::commit_resume): Pass down target.
12090 (remote_target::remote_stop_ns): Check supports_vCont_probed.
12091 (remote_target::interrupt_query)
12092 (remote_target::remove_new_fork_children)
12093 (remote_target::check_pending_events_prevent_wildcard_vcont)
12094 (remote_target::remote_parse_stop_reply)
12095 (remote_target::process_stop_reply): Pass down target.
12096 (first_remote_resumed_thread): New remote_target parameter. Pass
12097 it down.
12098 (remote_target::wait_as): Pass down target.
12099 (unpush_and_perror): New remote_target parameter. Pass it down.
12100 (remote_target::readchar, remote_target::remote_serial_write)
12101 (remote_target::getpkt_or_notif_sane_1)
12102 (remote_target::kill_new_fork_children, remote_target::kill): Pass
12103 down target.
12104 (remote_target::mourn_inferior): Pass down target. Use
12105 remote_unpush_target.
12106 (remote_target::core_of_thread)
12107 (remote_target::remote_btrace_maybe_reopen): Pass down target.
12108 (remote_target::pid_to_exec_file)
12109 (remote_target::thread_handle_to_thread_info): Pass down target.
12110 (remote_target::async_wait_fd): New.
12111 * riscv-fbsd-tdep.c: Include "inferior.h".
12112 (riscv_fbsd_get_thread_local_address): Pass down target.
12113 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
12114 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
12115 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
12116 Adjust.
12117 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
12118 * solib-svr4.c (enable_break): Pass down target.
12119 * spu-multiarch.c (parse_spufs_run): Pass down target.
12120 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
12121 * target-delegates.c: Regenerate.
12122 * target.c (g_target_stack): Delete.
12123 (current_top_target): Return the current inferior's top target.
12124 (target_has_execution_1): Refer to the passed-in inferior's top
12125 target.
12126 (target_supports_terminal_ours): Check whether the initial
12127 inferior was already created.
12128 (decref_target): New.
12129 (target_stack::push): Incref/decref the target.
12130 (push_target, push_target, unpush_target): Adjust.
12131 (target_stack::unpush): Defref target.
12132 (target_is_pushed): Return bool. Adjust to refer to the current
12133 inferior's target stack.
12134 (dispose_inferior): Delete, and inline parts ...
12135 (target_preopen): ... here. Only dispose of the current inferior.
12136 (target_detach): Hold strong target reference while detaching.
12137 Pass target down.
12138 (target_thread_name): Add assertion.
12139 (target_resume): Pass down target.
12140 (target_ops::beneath, find_target_at): Adjust to refer to the
12141 current inferior's target stack.
12142 (get_dummy_target): New.
12143 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
12144 has a thread running.
12145 (initialize_targets): Rename to ...
12146 (_initialize_target): ... this.
12147 * target.h: Include "gdbsupport/refcounted-object.h".
12148 (struct target_ops): Inherit refcounted_object.
12149 (target_ops::shortname, target_ops::longname): Make const.
12150 (target_ops::async_wait_fd): New method.
12151 (decref_target): Declare.
12152 (struct target_ops_ref_policy): New.
12153 (target_ops_ref): New typedef.
12154 (get_dummy_target): Declare function.
12155 (target_is_pushed): Return bool.
12156 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
12157 (all_matching_threads_iterator::all_matching_threads_iterator):
12158 Handle filter target.
12159 * thread-iter.h (struct all_matching_threads_iterator, struct
12160 all_matching_threads_range, class all_non_exited_threads_range):
12161 Filter by target too. Remove explicit.
12162 * thread.c (threads_executing): Delete.
12163 (inferior_thread): Pass down current inferior.
12164 (clear_thread_inferior_resources): Pass down thread pointer
12165 instead of ptid_t.
12166 (add_thread_silent, add_thread_with_info, add_thread): Add
12167 process_stratum_target parameter. Use it for thread and inferior
12168 searches.
12169 (is_current_thread): New.
12170 (thread_info::deletable): Use it.
12171 (find_thread_ptid, thread_count, in_thread_list)
12172 (thread_change_ptid, set_resumed, set_running): New
12173 process_stratum_target parameter. Pass it down.
12174 (set_executing): New process_stratum_target parameter. Pass it
12175 down. Adjust reference to 'threads_executing'.
12176 (threads_are_executing): New process_stratum_target parameter.
12177 Adjust reference to 'threads_executing'.
12178 (set_stop_requested, finish_thread_state): New
12179 process_stratum_target parameter. Pass it down.
12180 (switch_to_thread): Also match inferior.
12181 (switch_to_thread): New process_stratum_target parameter. Pass it
12182 down.
12183 (update_threads_executing): Reimplement.
12184 * top.c (quit_force): Pop targets from all inferior.
12185 (gdb_init): Don't call initialize_targets.
12186 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
12187 Declare.
12188 (windows_add_thread, windows_delete_thread): Adjust.
12189 (get_windows_debug_event): Rename to ...
12190 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
12191 * tracefile-tfile.c (tfile_target_open): Pass down target.
12192 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
12193 Forward declare.
12194 (switch_to_thread): Add process_stratum_target parameter.
12195 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
12196 parameter. Use it.
12197 (mi_on_resume): Pass target down.
12198 * nat/fork-inferior.c (startup_inferior): Add
12199 process_stratum_target parameter. Pass it down.
12200 * nat/fork-inferior.h (startup_inferior): Add
12201 process_stratum_target parameter.
12202 * python/py-threadevent.c (py_get_event_thread): Pass target down.
12203
12204 2020-01-10 Pedro Alves <palves@redhat.com>
12205
12206 * remote.c (remote_target::start_remote): Don't set inferior_ptid
12207 directly. Instead find the first thread in the thread list and
12208 use switch_to_thread.
12209
12210 2020-01-10 Pedro Alves <palves@redhat.com>
12211
12212 * remote.c (remote_target::remote_add_inferior): Don't bind a
12213 process to the current inferior if the current inferior is already
12214 bound to a process.
12215
12216 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12217 Pedro Alves <palves@redhat.com>
12218
12219 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
12220 If no process is specified, return null_ptid instead of
12221 inferior_ptid.
12222 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
12223 TARGET_WAITKIND_SIGNALLED with no pid.
12224
12225 2020-01-10 Pedro Alves <palves@redhat.com>
12226
12227 * remote.c (first_remote_resumed_thread): New.
12228 (remote_target::wait_as): Use it as default event_ptid instead of
12229 inferior_ptid.
12230
12231 2020-01-10 Pedro Alves <palves@redhat.com>
12232
12233 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
12234
12235 2020-01-10 Pedro Alves <palves@redhat.com>
12236
12237 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
12238 not -1.
12239
12240 2020-01-10 Pedro Alves <palves@redhat.com>
12241
12242 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
12243 ptid to get_last_target_status.
12244 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
12245 ptid to get_last_target_status.
12246 * infcmd.c (continue_command): Don't pass a target_waitstatus to
12247 get_last_target_status.
12248 (info_program_command): Don't pass a target_waitstatus to
12249 get_last_target_status.
12250 * infrun.c (init_wait_for_inferior): Use
12251 nullify_last_target_wait_ptid.
12252 (get_last_target_status): Handle nullptr arguments.
12253 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
12254 (print_stop_event): Don't pass a ptid to get_last_target_status.
12255 (normal_stop): Don't pass a ptid to get_last_target_status.
12256 * infrun.h (get_last_target_status, set_last_target_status): Move
12257 comments here and update.
12258 (nullify_last_target_wait_ptid): Declare.
12259 * linux-fork.c (fork_load_infrun_state): Remove local extern
12260 declaration of nullify_last_target_wait_ptid.
12261 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
12262 to get_last_target_status.
12263
12264 2020-01-10 Pedro Alves <palves@redhat.com>
12265
12266 * gdbthread.h (scoped_restore_current_thread)
12267 <dont_restore, restore, m_dont_restore>: Declare.
12268 * thread.c (thread_alive): Add assertion. Return bool.
12269 (switch_to_thread_if_alive): New.
12270 (prune_threads): Switch inferior/thread.
12271 (print_thread_info_1): Switch thread before calling target methods.
12272 (scoped_restore_current_thread::restore): New, factored out from
12273 ...
12274 (scoped_restore_current_thread::~scoped_restore_current_thread):
12275 ... this.
12276 (scoped_restore_current_thread::scoped_restore_current_thread):
12277 Add assertion.
12278 (thread_apply_all_command, thread_select): Use
12279 switch_to_thread_if_alive.
12280 * infrun.c (proceed, restart_threads, handle_signal_stop)
12281 (switch_back_to_stepped_thread): Switch current thread before
12282 calling target methods.
12283
12284 2020-01-10 Pedro Alves <palves@redhat.com>
12285
12286 * inferior.c (switch_to_inferior_no_thread): New function,
12287 factored out from ...
12288 (inferior_command): ... here.
12289 * inferior.h (switch_to_inferior_no_thread): Declare.
12290 * mi/mi-main.c (run_one_inferior): Use
12291 switch_to_inferior_no_thread.
12292
12293 2020-01-10 Pedro Alves <palves@redhat.com>
12294
12295 * infcmd.c (kill_command): Remove dead code.
12296
12297 2020-01-10 Pedro Alves <palves@redhat.com>
12298
12299 * remote.c (remote_target::mourn_inferior): No longer check
12300 whether the target is running.
12301
12302 2020-01-10 Pedro Alves <palves@redhat.com>
12303
12304 * corelow.c (core_target::has_execution): Change parameter type to
12305 inferior pointer.
12306 * inferior.c (number_of_live_inferiors): Use
12307 inferior::has_execution instead of target_has_execution_1.
12308 * inferior.h (inferior::has_execution): New.
12309 * linux-thread-db.c (thread_db_target::update_thread_list): Use
12310 inferior::has_execution instead of target_has_execution_1.
12311 * process-stratum-target.c
12312 (process_stratum_target::has_execution): Change parameter type to
12313 inferior pointer. Check the inferior's PID instead of
12314 inferior_ptid.
12315 * process-stratum-target.h
12316 (process_stratum_target::has_execution): Change parameter type to
12317 inferior pointer.
12318 * record-full.c (record_full_core_target::has_execution): Change
12319 parameter type to inferior pointer.
12320 * target.c (target_has_execution_1): Change parameter type to
12321 inferior pointer.
12322 (target_has_execution_current): Adjust.
12323 * target.h (target_ops::has_execution): Change parameter type to
12324 inferior pointer.
12325 (target_has_execution_1): Change parameter type to inferior
12326 pointer. Change return type to bool.
12327 * tracefile.h (tracefile_target::has_execution): Change parameter
12328 type to inferior pointer.
12329
12330 2020-01-10 Pedro Alves <palves@redhat.com>
12331
12332 * exceptions.c (print_flush): Remove current_top_target() check.
12333
12334 2020-01-10 Pedro Alves <palves@redhat.com>
12335
12336 * remote.c (show_remote_exec_file): Show the current inferior's
12337 exec-file instead of the command variable's value.
12338
12339 2020-01-10 Pedro Alves <palves@redhat.com>
12340
12341 * record-full.c (record_full_resume_ptid): New global.
12342 (record_full_target::resume): Set it.
12343 (record_full_wait_1): Use record_full_resume_ptid instead of
12344 inferior_ptid.
12345
12346 2020-01-10 Pedro Alves <palves@redhat.com>
12347
12348 * gdbthread.h (scoped_restore_current_thread)
12349 <dont_restore, restore, m_dont_restore>: Declare.
12350 * thread.c (thread_alive): Add assertion. Return bool.
12351 (switch_to_thread_if_alive): New.
12352 (prune_threads): Switch inferior/thread.
12353 (print_thread_info_1): Switch thread before calling target methods.
12354 (scoped_restore_current_thread::restore): New, factored out from
12355 ...
12356 (scoped_restore_current_thread::~scoped_restore_current_thread):
12357 ... this.
12358 (scoped_restore_current_thread::scoped_restore_current_thread):
12359 Add assertion.
12360 (thread_apply_all_command, thread_select): Use
12361 switch_to_thread_if_alive.
12362
12363 2020-01-10 George Barrett <bob@bob131.so>
12364
12365 * stap-probe.c (stap_modify_semaphore): Don't check for null
12366 semaphores.
12367 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
12368 for null semaphores.
12369
12370 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
12371
12372 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
12373 all source windows, and maintain horizontal scroll status while
12374 doing so.
12375
12376 2020-01-09 Tom Tromey <tom@tromey.com>
12377
12378 PR tui/18932:
12379 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
12380 update_source_window, not print_source_lines.
12381
12382 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
12383
12384 * tui/tui.c (tui_enable): Register tui hooks after calling
12385 tui_display_main.
12386
12387 2020-01-09 Christian Biesinger <cbiesinger@google.com>
12388
12389 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
12390
12391 2020-01-08 Simon Marchi <simon.marchi@efficios.com>
12392
12393 * thread.c (print_thread_info_1): Fix indentation.
12394
12395 2020-01-09 Christian Biesinger <cbiesinger@google.com>
12396
12397 * symtab.c (general_symbol_info::compute_and_set_names): Move the
12398 unique_xmalloc_ptr outside the if to always free the demangled name.
12399
12400 2020-01-08 Tom Tromey <tromey@adacore.com>
12401
12402 * xcoffread.c (enter_line_range, read_xcoff_symtab)
12403 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
12404 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
12405 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
12406 Remove.
12407 (section_offsets): New typedef.
12408 * symtab.c (fixup_section, get_msymbol_address): Update.
12409 * symmisc.c (dump_msymbols): Update.
12410 * symfile.h (relative_addr_info_to_section_offsets)
12411 (symfile_map_offsets_to_segments): Update.
12412 * symfile.c (build_section_addr_info_from_objfile)
12413 (init_objfile_sect_indices): Update.
12414 (struct place_section_arg): Change type of "offsets".
12415 (place_section): Update.
12416 (relative_addr_info_to_section_offsets): Change type of
12417 "section_offsets". Remove "num_sections" parameter.
12418 (default_symfile_offsets, syms_from_objfile_1)
12419 (set_objfile_default_section_offset): Update.
12420 (reread_symbols): No need to preserve section offsets by hand.
12421 (symfile_map_offsets_to_segments): Change type of "offsets".
12422 * stap-probe.c (relocate_address): Update.
12423 * stabsread.h (process_one_symbol): Update.
12424 * solib-target.c (struct lm_info_target) <offsets>: Change type.
12425 (solib_target_relocate_section_addresses): Update.
12426 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
12427 Update.
12428 * solib-frv.c (frv_relocate_main_executable): Update.
12429 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
12430 * solib-aix.c (solib_aix_get_section_offsets): Change return
12431 type.
12432 (solib_aix_solib_create_inferior_hook): Update.
12433 * remote.c (remote_target::get_offsets): Update.
12434 * psymtab.c (find_pc_sect_psymtab): Update.
12435 * psympriv.h (struct partial_symbol) <address, text_low,
12436 text_high>: Update.
12437 * objfiles.h (obj_section_offset): Update.
12438 (struct objfile) <section_offsets>: Change type.
12439 <num_sections>: Remove.
12440 (objfile_relocate): Update.
12441 * objfiles.c (entry_point_address_query): Update
12442 (relocate_one_symbol): Change type of "section_offsets".
12443 (objfile_relocate1, objfile_relocate1): Change type of
12444 "new_offsets".
12445 (objfile_rebase1): Update.
12446 * mipsread.c (mipscoff_symfile_read): Update.
12447 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
12448 parameter.
12449 * mdebugread.c (parse_symbol): Change type of "section_offsets".
12450 (parse_external, psymtab_to_symtab_1): Update.
12451 * machoread.c (macho_symfile_offsets): Update.
12452 * ia64-tdep.c (ia64_find_unwind_table): Update.
12453 * hppa-tdep.c (read_unwind_info): Update.
12454 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
12455 * dwarf2read.c (create_addrmap_from_index)
12456 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
12457 (process_psymtab_comp_unit_reader, add_partial_symbol)
12458 (add_partial_subprogram, process_full_comp_unit)
12459 (read_file_scope, read_func_scope, read_lexical_block_scope)
12460 (read_call_site_scope, dwarf2_rnglists_process)
12461 (dwarf2_ranges_process, dwarf2_ranges_read)
12462 (dwarf_decode_lines_1, var_decode_location, new_symbol)
12463 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
12464 Update.
12465 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
12466 Update.
12467 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
12468 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
12469 (process_one_symbol): Change type of "section_offsets".
12470 * ctfread.c (get_objfile_text_range): Update.
12471 * coffread.c (coff_symtab_read, enter_linenos)
12472 (process_coff_symbol): Update.
12473 * coff-pe-read.c (add_pe_forwarded_sym): Update.
12474 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
12475
12476 2020-01-08 Tom Tromey <tromey@adacore.com>
12477
12478 * dwarf2read.c (parse_macro_definition): Use std::string.
12479 (parse_macro_definition): Likewise.
12480
12481 2020-01-08 Tom Tromey <tromey@adacore.com>
12482
12483 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
12484 (ATTR_ALLOC_CHUNK): Remove.
12485
12486 2020-01-08 Tom Tromey <tromey@adacore.com>
12487
12488 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
12489
12490 2020-01-08 Tom Tromey <tromey@adacore.com>
12491
12492 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
12493 (dwarf2_compute_name, open_dwo_file): Likewise.
12494 (process_enumeration_scope): Use std::vector.
12495 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
12496 (partial_die_info::fixup, dwarf2_start_subfile)
12497 (guess_full_die_structure_name, dwarf2_name): Likewise.
12498 (determine_prefix): Update.
12499 (guess_full_die_structure_name): Make return type const.
12500 (partial_die_full_name): Return unique_xmalloc_ptr.
12501 (DW_FIELD_ALLOC_CHUNK): Remove.
12502
12503 2020-01-07 Tom Tromey <tromey@adacore.com>
12504
12505 PR build/24937:
12506 * stap-probe.c (class stap_static_probe_ops): Add constructor.
12507
12508 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
12509
12510 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
12511
12512 2020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
12513
12514 * stack.c (print_frame_info): Move disassemble_next_line code
12515 inside source_print block.
12516
12517 2020-01-06 Eli Zaretskii <eliz@gnu.org>
12518
12519 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
12520 gdb/signals.h, as we are now using native signal symbols.
12521
12522 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
12523
12524 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
12525 overflow by an early check of content vs threshold.
12526 * tui/tui-source.c (tui_source_window::line_is_displayed):
12527 Likewise.
12528
12529 2020-01-06 Eli Zaretskii <eliz@gnu.org>
12530
12531 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
12532
12533 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
12534
12535 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
12536 export table if no section contains it's RVA.
12537
12538 2020-01-06 Eli Zaretskii <eliz@gnu.org>
12539
12540 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
12541
12542 2020-01-06 Hannes Domani <ssbssa@yahoo.de>
12543
12544 * source.c (print_source_lines_base): Set last_line_listed.
12545
12546 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
12547
12548 * tui/tui-disasm.c: Remove trailing spaces.
12549
12550 2020-01-06 Eli Zaretskii <eliz@gnu.org>
12551 Pedro Alves <palves@redhat.com>
12552
12553 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
12554 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
12555 (windows_gdb_signal_to_target): New function, uses the above
12556 enumeration to convert GDB internal signal codes to equivalent
12557 Windows codes.
12558 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
12559 * windows-nat.c: Include "gdb_wait.h".
12560 (get_windows_debug_event): Extract the fatal exception from the
12561 exit status and convert to the equivalent Posix signal number.
12562 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
12563 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
12564 * gdbsupport/gdb_wait.c: New file, implements
12565 windows_status_to_termsig.
12566 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
12567 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
12568
12569 2020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
12570
12571 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
12572 show_layout.
12573
12574 2020-01-05 Luis Machado <luis.machado@linaro.org>
12575
12576 * aarch64-linux-nat.c
12577 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
12578 and bfd_mach_aarch64.
12579
12580 2020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12581
12582 * ui-file.c (stdio_file::can_emit_style_escape)
12583 (tee_file::can_emit_style_escape): Ensure style is used also on
12584 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
12585 to gdb_stdout.
12586 * main.c (set_gdb_data_directory): Use file style to output the
12587 warning that the given pathname is not a directory.
12588 * top.c (show_history_filename, gdb_safe_append_history)
12589 (show_gdb_datadir): Use file style.
12590
12591 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
12592
12593 * solib-target.c (struct lm_info_target):
12594 Change offsets to be a unique_xmalloc_ptr.
12595 (solib_target_relocate_section_addresses): Update.
12596
12597 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
12598
12599 * windows-nat.c (windows_clear_solib): Free so_list linked list.
12600
12601 2020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
12602
12603 * MAINTAINERS (Write After Approval): Add myself.
12604
12605 2020-01-02 Luis Machado <luis.machado@linaro.org>
12606
12607 * proc-service.c (get_ps_regcache): Remove reference to obsolete
12608 Cell BE architecture.
12609 * target.h (struct target_ops) <thread_architecture>: Likewise.
12610
12611 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
12612
12613 * Makefile.in: Use INSTALL_PROGRAM_ENV.
12614
12615 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
12616
12617 * MAINTAINERS (Write After Approval): Add myself.
12618
12619 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12620
12621 * gdbarch.sh: Update copyright year range of generated files.
12622
12623 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12624
12625 Update copyright year range in all GDB files.
12626
12627 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12628
12629 * copyright.py: Convert to Python 3.
12630
12631 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12632
12633 * copyright.py: Adapt after move of gnulib directory from gdb
12634 directory to toplevel directory.
12635
12636 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12637
12638 * copyright.py (main): Exit if run from the wrong directory.
12639
12640 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12641
12642 * top.c (print_gdb_version): Change copyright year to 2020.
12643
12644 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12645
12646 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
12647
12648 For older changes see ChangeLog-2019.
12649 \f
12650 Local Variables:
12651 mode: change-log
12652 left-margin: 8
12653 fill-column: 74
12654 version-control: never
12655 coding: utf-8
12656 End: