]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/ChangeLog
gdb: add type::is_fixed_instance / type::set_is_fixed_instance
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
9cdd0d12
SM
12020-09-14 Simon Marchi <simon.marchi@efficios.com>
2
3 * gdbtypes.h (struct type) <is_fixed_instance,
4 set_is_fixed_instance>: New methods.
5 (TYPE_FIXED_INSTANCE): Use type::is_fixed_instance, change all
6 write call sites to use type::set_is_fixed_instance.
7
0becda7a
SM
82020-09-14 Simon Marchi <simon.marchi@efficios.com>
9
10 * gdbtypes.h (TYPE_GNU_IFUNC): Remove, replace all
11 uses with type::is_gnu_ifunc.
12
03cc7249
SM
132020-09-14 Simon Marchi <simon.marchi@efficios.com>
14
15 * gdbtypes.h (struct type) <is_gnu_ifunc, set_is_gnu_ifunc>: New methods.
16 (TYPE_GNU_IFUNC): Use type::is_gnu_ifunc, change all write call sites to
17 use type::set_is_gnu_ifunc.
18
3f46044c
SM
192020-09-14 Simon Marchi <simon.marchi@efficios.com>
20
21 * gdbtypes.h (TYPE_STUB_SUPPORTED): Remove, replace all
22 uses with type::stub_is_supported.
23
9baccff6
SM
242020-09-14 Simon Marchi <simon.marchi@efficios.com>
25
26 * gdbtypes.h (struct type) <stub_is_supported, set_stub_is_supported>: New methods.
27 (TYPE_STUB_SUPPORTED): Use type::stub_is_supported, change all write call sites to
28 use type::set_stub_is_supported.
29
bd63c870
SM
302020-09-14 Simon Marchi <simon.marchi@efficios.com>
31
32 * gdbtypes.h (TYPE_VECTOR): Remove, replace all
33 uses with type::is_vector.
34
2062087b
SM
352020-09-14 Simon Marchi <simon.marchi@efficios.com>
36
37 * gdbtypes.h (struct type) <is_vector, set_is_vector>: New methods.
38 (TYPE_VECTOR): Use type::is_vector, change all write call sites to
39 use type::set_is_vector.
40
a409645d
SM
412020-09-14 Simon Marchi <simon.marchi@efficios.com>
42
43 * gdbtypes.h (TYPE_VARARGS): Remove, replace all
44 uses with type::has_varargs.
45
1d6286ed
SM
462020-09-14 Simon Marchi <simon.marchi@efficios.com>
47
48 * gdbtypes.h (struct type) <has_varargs, set_has_varargs>: New methods.
49 (TYPE_VARARGS): Use type::has_varargs, change all write call sites to
50 use type::set_has_varargs.
51
7f9f399b
SM
522020-09-14 Simon Marchi <simon.marchi@efficios.com>
53
54 * gdbtypes.h (TYPE_PROTOTYPED): Remove, replace all
55 uses with type::is_prototyped.
56
27e69b7a
SM
572020-09-14 Simon Marchi <simon.marchi@efficios.com>
58
59 * gdbtypes.h (struct type) <is_prototyped, set_is_prototyped>:
60 New methods.
61 (TYPE_PROTOTYPED): Use type::is_prototyped, change all write
62 call sites to use type::set_is_prototyped.
63
d2183968
SM
642020-09-14 Simon Marchi <simon.marchi@efficios.com>
65
66 * gdbtypes.h (TYPE_TARGET_STUB): Remove, replace all
67 uses with type::target_is_stub.
68
8f53807e
SM
692020-09-14 Simon Marchi <simon.marchi@efficios.com>
70
71 * gdbtypes.h (struct type) <target_is_stub, set_target_is_stub>:
72 New methods.
73 (TYPE_TARGET_STUB): Use type::is_stub, change all write call
74 sites to use type::set_target_is_stub.
75
e46d3488
SM
762020-09-14 Simon Marchi <simon.marchi@efficios.com>
77
78 * gdbtypes.h (TYPE_STUB): Remove, replace all
79 uses with type::is_stub.
80
b4b73759
SM
812020-09-14 Simon Marchi <simon.marchi@efficios.com>
82
83 * gdbtypes.h (struct type) <is_stub, set_is_stub>: New methods.
84 (TYPE_STUB): Use type::is_stub, change all write call sites to
85 use type::set_is_stub.
86
20ce4123
SM
872020-09-14 Simon Marchi <simon.marchi@efficios.com>
88
89 * gdbtypes.h (TYPE_NOSIGN): Remove, replace all uses with
90 type::has_no_signedness.
91
15152a54
SM
922020-09-14 Simon Marchi <simon.marchi@efficios.com>
93
94 * gdbtypes.h (struct type) <has_no_signedness,
95 set_has_no_signedness>: New methods.
96 (TYPE_NOSIGN): Use type::has_no_signedness, change all write
97 call sites to use type::set_has_no_signedness.
98
c6d940a9
SM
992020-09-14 Simon Marchi <simon.marchi@efficios.com>
100
101 * gdbtypes.h (TYPE_UNSIGNED): Remove, replace all uses with
102 type::is_unsigned.
103
653223d3
SM
1042020-09-14 Simon Marchi <simon.marchi@efficios.com>
105
106 * gdbtypes.h (struct type) <is_unsigned, set_is_unsigned>: New
107 methods.
108 (TYPE_UNSIGNED): Use type::is_unsigned. Change all write call
109 sites to use type::set_is_unsigned.
110
55ea94da
FH
1112020-09-14 Fredrik Hederstierna <fredrik.hederstierna@verisure.com>
112 Adam Renquinha <arenquinha@cimeq.qc.ca>
113
114 * arm-tdep.c (arm_m_exception_cache): Try use correct stack
115 pointer and stack frame offset when unwinding.
116
6791b117
PA
1172020-09-13 Pedro Alves <pedro@palves.net>
118
119 * NEWS: Document "-break-insert --qualified".
120 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Handle "--qualified".
121
77f2120b
PA
1222020-09-13 Pedro Alves <pedro@palves.net>
123
124 * linespec.c (classify_mtype, compare_msyms): Delete.
125 (search_minsyms_for_name): Remove classification logic. Instead
126 filter out trampoline symbols if we also found an external
127 function of the same name.
128
ed6a896c
JB
1292020-09-13 Joel Brobecker <brobecker@adacore.com>
130
131 * NEWS: Create a new section for the next release branch.
132 Rename the section of the current branch, now that it has
133 been cut.
134
32aea73e
JB
1352020-09-13 Joel Brobecker <brobecker@adacore.com>
136
137 GDB 10 branch created (8087c3fa8b5d695e3e29e69d70d0b35ec902ac59):
138 * version.in: Bump version to 11.0.50.DATE-git.
139
8087c3fa
JB
1402020-09-12 Joel Brobecker <brobecker@adacore.com>
141
142 * infrun.c (namespace selftests): Only define #if GDB_SELF_TEST.
143
2a67f09d
FW
1442020-09-11 Moritz Riesterer <moritz.riesterer@intel.com>
145 Felix Willgerodt <Felix.Willgerodt@intel.com>
146
147 * gdbarch.sh: Added bfloat16 type.
148 * gdbarch.c: Regenerated.
149 * gdbarch.h: Regenerated.
150 * gdbtypes.c (floatformats_bfloat16): New struct.
151 (gdbtypes_post_init): Add builtin_bfloat16.
152 * gdbtypes.h (struct builtin_type) <builtin_bfloat16>: New member.
153 (floatformats_bfloat16): New struct.
154 * i386-tdep.c (i386_zmm_type): Add field "v32_bfloat16"
155 (i386_ymm_type): Add field "v16_bfloat16"
156 (i386_gdbarch_init): Add set_gdbarch_bfloat16_format.
157 * target-descriptions.c (make_gdb_type): Add case TDESC_TYPE_BFLOAT16.
158 * gdbsupport/tdesc.cc (tdesc_predefined_types): New member bfloat16.
159 * gdbsupport/tdesc.h (tdesc_type_kind): New member TDESC_TYPE_BFLOAT16.
160 * features/i386/64bit-avx512.xml: Add bfloat16 type.
161 * features/i386/64bit-avx512.c: Regenerated.
162 * features/i386/64bit-sse.xml: Add bfloat16 type.
163 * features/i386/64bit-sse.c: Regenerated.
164
1347d111
FW
1652020-09-11 Felix Willgerodt <felix.willgerodt@intel.com>
166
167 * i386-tdep.c (i386_zmm_type): Fix field names.
168 (i386_ymm_type): Fix field names.
169
7a4e8e7d
TBA
1702020-09-11 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
171
172 * breakpoint.c: Fix typo in the help message of the
173 "set breakpoint condition-evaluation" command.
174
cf4ac4be
KR
1752020-09-10 Kamil Rytarowski <n54@gmx.com>
176
177 * nbsd-nat.c: Include "nat/netbsd-nat.h".
178 * (nbsd_nat_target::pid_to_exec_file)
179 (nbsd_nat_target::thread_alive, nbsd_nat_target::thread_name)
180 (nbsd_nat_target::post_startup_inferior)
181 (nbsd_nat_target::post_attach, nbsd_nat_target::xfer_partial)
182 (nbsd_add_threads): Switch local code to common gdb/nat functions.
183 * (nbsd_pid_to_cmdline): Call sysctl from the global namespace.
184 * (nbsd_thread_lister): Remove.
185
f404573e
KR
1862020-09-10 Kamil Rytarowski <n54@gmx.com>
187
188 * fork-inferior.c (startup_inferior): Avoid double free.
189
1ccb2c17
KR
1902020-09-10 Kamil Rytarowski <n54@gmx.com>
191
192 * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add.
193 * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise.
194
feedfcc7
KR
1952020-09-10 Kamil Rytarowski <n54@gmx.com>
196
197 * netbsd-nat.h (netbsd_nat::enable_proc_events): Add.
198 * netbsd-nat.c: Include <sys/ptrace.h>.
199 * (netbsd_nat::enable_proc_events): Add.
200
c489f8c6
KR
2012020-09-10 Kamil Rytarowski <n54@gmx.com>
202
203 * netbsd-nat.h: Include "gdbsupport/function-view.h".
204 * (netbsd_nat::thread_alive, netbsd_nat::thread_name)
205 (netbsd_nat::for_each_thread): Add.
206 * netbsd-nat.c: Include "gdbsupport/common-defs.h" and
207 "gdbsupport/common-debug.h".
208 * (netbsd_nat::netbsd_thread_lister)
209 (netbsd_nat::thread_alive, netbsd_nat::thread_name)
210 (netbsd_nat::for_each_thread): Add.
211
330662f6
KR
2122020-09-10 Kamil Rytarowski <n54@gmx.com>
213
214 * netbsd-nat.h: Include <unistd.h>.
215 * (netbsd_nat::pid_to_exec_file): Add.
216 * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>.
217 * (netbsd_nat::pid_to_exec_file) Add.
218
70b67307
KR
2192020-09-10 Kamil Rytarowski <n54@gmx.com>
220
221 * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed.
222
99cf6da6
KR
2232020-09-10 Kamil Rytarowski <n54@gmx.com>
224
225 * netbsd-nat.h: New file.
226 * netbsd-nat.c: Likewise.
227
1b788fb6
TT
2282020-09-09 Tom Tromey <tromey@adacore.com>
229
230 * ada-lang.c (remove_extra_symbols): Do not increment when
231 removing an element
232
03b0a45f
TT
2332020-09-08 Tom Tromey <tromey@adacore.com>
234
235 * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails.
236
3cae4447
TT
2372020-09-08 Tom Tromey <tromey@adacore.com>
238
239 PR win32/25302:
240 * gdb_bfd.c (gdb_bfd_data): Add "st" parameter.
241 (gdb_bfd_init_data): New function.
242 (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data.
243
7f08fd51
TBA
2442020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
245
246 * infrun.c (fetch_inferior_event): Use
247 `switch_to_target_no_thread` to switch the target.
248
3e6ff933
TT
2492020-09-06 Tom Tromey <tom@tromey.com>
250
251 * symfile.h (dwarf2_free_objfile): Don't declare.
252
e56798df
AKS
2532020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
254
255 * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
256 to match 16 byte real/complex type generated by Flang compiler.
257
8f5c6526
TV
2582020-09-03 Tom de Vries <tdevries@suse.de>
259
260 PR breakpoint/26546
261 * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
262 LOC_OPTIMIZED_OUT instead of LOC_LABEL.
263
c5065df0
SM
2642020-09-02 Simon Marchi <simon.marchi@polymtl.ca>
265
266 * maint.c (index_digits): New function.
267 (struct maint_print_section_data): Remove.
268 (print_bfd_section_info): Remove print_data parameter, add arg
269 and index_digits.
270 (print_objfile_section_info): Likewise.
271 (print_bfd_section_info_maybe_relocated): Likewise (plus
272 objfile).
273 (maintenance_info_sections): Adjust calls.
274
02c6f3f1
TT
2752020-09-02 Tom Tromey <tromey@adacore.com>
276
277 * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
278 for null pointers.
279 (ada_varobj_adjust_for_child_access): Special-case null pointers.
280
ef5e5b0b
SM
2812020-09-01 Simon Marchi <simon.marchi@polymtl.ca>
282
283 * bcache.h (struct bcache) <insert>: Change type of `added` to
284 pointer to bool.
285 * bcache.c (bcache::insert): Likewise.
286 * gdbtypes.c (check_types_worklist): Adjust.
287 * psymtab.c (add_psymbol_to_bcache): Adjust.
288
973695d6
KB
2892020-08-31 Kevin Buettner <kevinb@redhat.com>
290
291 * corelow.c (unordered_set): Include.
292 (class core_target): Add field 'm_core_unavailable_mappings'.
293 (core_target::build_file_mappings): Print only one warning
294 per inaccessible file. Add unavailable/broken mappings
295 to m_core_unavailable_mappings.
296 (core_target::xfer_partial): Call...
297 (core_target::xfer_memory_via_mappings): New method.
298
264fc0e2
SM
2992020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
300
301 * dwarf2/read.c (struct field_info) <non_public_fields>: Change
302 type to bool.
303
2de01bdb
SM
3042020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
305
306 * dwarf2/read.c (struct field_info): Fix indentation.
307
f3bd50f1
SM
3082020-08-31 Simon Marchi <simon.marchi@efficios.com>
309
310 * frame-unwind.h (frame_prev_register_ftype): Fix adjective
311 ordering in comment.
312 * frame.c (frame_id_eq): Fix indentation.
313
22b9b4b0
SL
3142020-08-31 Scott Linder <scott@scottlinder.com>
315 Simon Marchi <simon.marchi@efficios.com>
316
317 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
318 inline frame ids in outer frame.
319
84154d16
SM
3202020-08-31 Simon Marchi <simon.marchi@efficios.com>
321
322 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
323 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
324 (outer_frame_id): Use FID_STACK_OUTER instead of
325 FID_STACK_INVALID.
326 (frame_id_p): Don't check for outer_frame_id.
327
8efaf6b3
SM
3282020-08-31 Simon Marchi <simon.marchi@efficios.com>
329
330 * frame-unwind.c (frame_unwind_got_optimized): Don't set
331 regnum/frame in value. Call allocate_value_lazy.
332 * frame.c (frame_unwind_register_value): Use
333 val_print_not_saved.
334
fe1fe7ea
SM
3352020-08-31 Simon Marchi <simon.marchi@efficios.com>
336
337 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
338
f7c7700d
PA
3392020-08-29 Pedro Alves <pedro@palves.net>
340
341 * progspace.c (print_program_space): Use all_inferiors. Switch to
342 the inferior before calling target_pid_to_str.
343
e0814aae
TT
3442020-08-28 Tom Tromey <tom@tromey.com>
345
346 * xcoffread.c (xcoff_end_psymtab): Update comment.
347 * dbxread.c (dbx_end_psymtab): Update comment.
348
626d2320
TV
3492020-08-28 Tom de Vries <tdevries@suse.de>
350
351 PR breakpoint/26544
352 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
353 event_location.
354 (create_breakpoint): Same.
355 (base_breakpoint_decode_location): Same.
356 (bkpt_create_sals_from_location): Same.
357 (bkpt_decode_location): Same.
358 (bkpt_probe_create_sals_from_location): Same.
359 (bkpt_probe_decode_location): Same.
360 (tracepoint_create_sals_from_location): Same.
361 (tracepoint_decode_location): Same.
362 (tracepoint_probe_decode_location): Same.
363 (strace_marker_create_sals_from_location): Same.
364 (strace_marker_decode_location): Same.
365 (create_sals_from_location_default): Same.
366 (decode_location_default): Same.
367 * breakpoint.h (struct breakpoint_ops): Same.
368 (create_breakpoint): Same.
369 * linespec.h (decode_line_full): Same.
370 * linespec.c (decode_line_full): Same. Throw error if
371 result.size () == 0.
372
df631783
PA
3732020-08-27 Pedro Alves <pedro@palves.net>
374
375 PR gdb/26524
376 * breakpoint.c (until_break_fsm) <location_breakpoint,
377 caller_breakpoint>: Delete fields.
378 <breakpoints>: New field.
379 <until_break_fsm>: Adjust to save a breakpoint vector instead of
380 two individual breakpoints.
381 (until_break_fsm::should_stop): Loop over breakpoints in the
382 breakpoint vector.
383 (until_break_fsm::clean_up): Adjust to clear the breakpoints
384 vector.
385 (until_break_command): Handle location expanding into multiple
386 sals.
387
b2b38aa4
PA
3882020-08-27 Pedro Alves <pedro@palves.net>
389
390 PR gdb/26523
391 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
392 bp_until breakpoints user-specified locations. Update intro
393 comment.
394
b886559f
SM
3952020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
396
397 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
398 gdb_bfd_sections): New.
399 * maint.c (print_bfd_section_info): Change param type to
400 maint_print_section_data.
401 (print_objfile_section_info): Likewise.
402 (print_bfd_section_info_maybe_relocated): Likewise.
403 (maintenance_info_sections): Use gdb_bfd_sections.
404
4c6e63bf
SV
4052020-08-25 Shahab Vahedi <shahab@synopsys.com>
406
407 * MAINTAINERS: Add ARC target and maintainer.
408
8d7f0635
AK
4092020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
410
411 * configure.tgt: ARC support for GNU/Linux.
412 * Makefile.in (ALL_TARGET_OBJS): Likewise.
413 * arc-linux-tdep.c: New file.
414 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
415 * arc-tdep.c (arc_write_pc): Use it.
416
fdd8731b
SV
4172020-08-25 Shahab Vahedi <shahab@synopsys.com>
418
419 * arc-tdep.c (arc_check_for_hardware_loop): New.
420 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
421
22459524
SV
4222020-08-25 Shahab Vahedi <shahab@synopsys.com>
423
424 * arc-tdep.h: Include "gdbarch.h".
425
995d3a19
SV
4262020-08-25 Shahab Vahedi <shahab@synopsys.com>
427
428 * arch/arc.h
429 (arc_gdbarch_features): New class to stir the selection of target XML.
430 (arc_create_target_description): Use FEATURES to choose XML target.
431 (arc_lookup_target_description): Use arc_create_target_description
432 to create _new_ target descriptions or return the already created
433 ones if the FEATURES is the same.
434 * arch/arc.c: Implementation of prototypes described above.
435 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
436 (arc_gdbarch_features_init): Initialize the FEATURES struct.
437 * arc-tdep.c (*_feature_name): Make feature names consistent.
438 (arc_register_feature): A new struct to hold information about
439 registers of a particular target/feature.
440 (arc_check_tdesc_feature): Check if XML provides registers in
441 compliance with ARC_REGISTER_FEATURE structs.
442 (arc_update_acc_reg_names): Add aliases for r58 and r59.
443 (determine_*_reg_feature_set): Which feature name to look for.
444 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
445 (mach_type_to_arc_isa): Convert from a set of binutils machine types
446 to expected ISA enums to be used in arc_gdbarch_features structs.
447 * features/Makefile (FEATURE_XMLFILES): Add new files.
448 * gdb/features/arc/v1-aux.c: New file.
449 * gdb/features/arc/v1-aux.xml: Likewise.
450 * gdb/features/arc/v1-core.c: Likewise.
451 * gdb/features/arc/v1-core.xml: Likewise.
452 * gdb/features/arc/v2-aux.c: Likewise.
453 * gdb/features/arc/v2-aux.xml: Likewise.
454 * gdb/features/arc/v2-core.c: Likewise.
455 * gdb/features/arc/v2-core.xml: Likewise.
456 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
457
3945d2d7
GM
4582020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
459 Andrew Burgess <andrew.burgess@embecosm.com>
460
461 PR m2/26372
fc5d6901 462 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
3945d2d7
GM
463 an assert. Remove single element array indexing pattern as the
464 MULTI_SUBSCRIPT support will handle this case too.
465
2677f2d3
SM
4662020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
467
468 * value.h (valprint_check_validity): Move declaration from
469 here...
470 * valprint.h (valprint_check_validity): ... to here.
471
c426fddb
SM
4722020-08-24 Simon Marchi <simon.marchi@efficios.com>
473
474 * debug.h: New file.
475 * debug.c (debug_prefixed_vprintf): New function.
476 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
477 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
478
1eb8556f
SM
4792020-08-24 Simon Marchi <simon.marchi@efficios.com>
480
481 * infrun.h (infrun_debug_printf_1): New function declaration.
482 (infrun_debug_printf): New macro.
483 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
484 throughout.
485 (infrun_debug_printf): New function.
486 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
487 (handle_jit_event): Likewise.
488
b8fff44e
MW
4892020-08-21 Mark Wielaard <mark@klomp.org>
490
491 * ada-lex.l: Extend register warnings diagnostics comment for g++.
492
d19c3068
SM
4932020-08-22 Simon Marchi <simon.marchi@efficios.com>
494
495 * frame.c (enum class frame_id_status): New.
496 (struct frame_info) <this_id::p>: Change type to frame_id_status.
497 (fprintf_frame): Update.
498 (compute_frame_id): Set frame id status to "computing" on entry.
499 Set it back to "not_computed" on failure and to "computed" on
500 success.
501 (get_frame_id): Assert the frame id is not being computed.
502 (create_sentinel_frame): Use frame_id_status::COMPUTED.
503 (create_new_frame): Likewise.
504 (frame_cleanup_after_sniffer): Update assert.
505
b70e516e
SM
5062020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
507
508 * regcache.c (pid_ptid_regcache_map): New type.
509 (target_ptid_regcache_map): Remove.
510 (target_pid_ptid_regcache_map): New type.
511 (regcaches): Change type to target_pid_ptid_regcache_map.
512 (get_thread_arch_aspace_regcache): Update.
513 (regcache_thread_ptid_changed): Update, handle pid-like ptid
514 case.
515 (regcaches_size): Update.
516 (regcache_count): Update.
517 (registers_changed_ptid_target_pid_test): New.
518 (_initialize_regcache): Register new test.
519
cdd9148a
SM
5202020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
521
522 * regcache.c (regcache_count): New.
523 (struct regcache_test_data): New.
524 (regcache_test_data_up): New.
525 (populate_regcaches_for_test): New.
526 (regcaches_test): Remove.
527 (get_thread_arch_aspace_regcache_test): New.
528 (registers_changed_ptid_all_test): New.
529 (registers_changed_ptid_target_test): New.
530 (registers_changed_ptid_target_ptid_test): New.
531 (regcache_thread_ptid_changed): Remove regcache_count lambda.
532 (_initialize_regcache): Register new tests.
533
dd125343
SM
5342020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
535
536 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
537 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
538 gdbarch and aspace parameter. Use current inferior's aspace.
539 Validate regcache's arch value.
540 (regcaches_test): Update.
541
3ee93972
SM
5422020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
543
544 * regcache.c (regcaches_test): Call registers_changed.
545
33bf4c5c
TBA
5462020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
547
548 * infrun.c (process_event_stop_test): Fix typo "breapoint".
549
c2fd7fae
AKS
5502020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
551
552 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
553 to find the end of prologue for flang compiled binaries.
554 * arm-tdep.c (arm_skip_prologue): Likewise.
555 * i386-tdep.c (i386_skip_prologue): Likewise.
556 * producer.c (producer_is_llvm): New function.
557 (producer_parsing_tests): Added new tests for clang/flang.
558 * producer.h (producer_is_llvm): New declaration.
559
9327494e
SM
5602020-08-18 Simon Marchi <simon.marchi@efficios.com>
561
562 * linux-nat.c (linux_nat_debug_printf): New function.
563 (linux_nat_debug_printf_1): New macro. Use throughout the file.
564
d138725a
AM
5652020-08-18 Aaron Merey <amerey@redhat.com>
566
567 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
568 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
569 (CLIBS): Add DEBUGINFOD_LIBS.
570
f9b11e6b
ST
5712020-08-17 Sergei Trofimovich <siarheit@google.com>
572
573 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
574 'gdbarch_num_regs'.
575
3ae7ab99
TT
5762020-08-17 Tom Tromey <tromey@adacore.com>
577
578 * ada-varobj.c (ada_varobj_decode_var): Handle case where
579 ada_get_decoded_value returns NULL.
580
b017825f
TT
5812020-08-17 Tom Tromey <tromey@adacore.com>
582
583 * python/py-inferior.c (infpy_search_memory): Use
584 gdb_py_object_from_ulongest.
585 * python/py-infevents.c (create_inferior_call_event_object)
586 (create_memory_changed_event_object): Use
587 gdb_py_object_from_ulongest.
588 * python/py-linetable.c (ltpy_entry_get_pc): Use
589 gdb_py_object_from_ulongest.
590
7635cf79
SM
5912020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
592
593 * loc.c (class symbol_needs_eval_context): Fix indentation.
594
f54be24b
SM
5952020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
596
597 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
598 bool.
599
53d5a2a5
TV
6002020-08-17 Tom de Vries <tdevries@suse.de>
601
602 PR gdb/26393
603 * gdbtypes.c (dump_dynamic_prop): New function.
604 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
605
547ce8f0
TV
6062020-08-15 Tom de Vries <tdevries@suse.de>
607
608 PR backtrace/26390
609 * stack.c (print_frame_args): Temporarily set the selected
610 frame to FRAME while printing the frame's arguments.
611
6ea815e7
PFC
6122020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
613
614 PR breakpoints/26385
615 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
616 Always clear watchpoint with PTRACE_SET_DEBUGREG.
617
6e562fa3
PFC
6182020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
619
620 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
621 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
622 and >= to check return value instead of == -1 and != -1.
623
d369b608
SM
6242020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
625
626 * utils.h (class gdb_argv) <as_array_view>: New method.
627 * utils.c (gdb_argv_as_array_view_test): New.
628 (_initialize_utils): Register selftest.
629 * maint.c (maintenance_selftest): Use the new method.
630
b31488a3
KR
6312020-08-13 Kamil Rytarowski <n54@gmx.com>
632
633 * target.h (supports_dumpcore, dumpcore): New
634 function declarations.
635 * target.c (supports_dumpcore, dumpcore): New
636 functions.
637 * target-delegates.c: Rebuild.
638 * gcore.c (gcore_command): Use target_supports_dumpcore ()
639 and target_dumpcore ().
640
002a3166
AM
6412020-08-13 Aaron Merey <amerey@redhat.com>
642
643 * debuginfod-support.c: Replace global variables with user_data.
644
ece5bc8a
SM
6452020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
646
647 * maint.c (maintenance_selftest): Split args and pass array_view
648 to run_tests.
649
6d8a0a5e
LM
6502020-08-12 Luis Machado <luis.machado@linaro.org>
651
652 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
653 type's length.
654 Use %s and pulongest to print the length.
655
7cf663a9
PA
6562020-08-12 Pedro Alves <palves@redhat.com>
657
658 * NEWS: Move "Multi-target debugging support" item to the
659 "Changes since GDB 9" section.
660
27c7b875
PA
6612020-08-12 Pedro Alves <palves@redhat.com>
662
663 PR gdb/26336
664 * progspace.c (program_space::remove_objfile): Invalidate the
665 frame cache.
666
1796a2a1
TV
6672020-08-11 Tom de Vries <tdevries@suse.de>
668
669 * MAINTAINERS: Mark ms1 as deleted.
670
f8e3fe0d
LM
6712020-08-10 Luis Machado <luis.machado@linaro.org>
672
673 PR gdb/26310
674
675 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
676 act accordingly.
677 (aarch64_analyze_prologue_test): Add more unit tests to exercise
678 movz/str/stur/stp skipping behavior.
679
cc308722
LM
6802020-08-10 Luis Machado <luis.machado@linaro.org>
681
682 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
683 struct user_sve_header instead of struct sve_context.
684
041d9819
SM
6852020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
686
687 * read.h (dwarf2_fetch_die_loc_sect_off,
688 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
689 `void *` parameter with function_view.
690 * read.c (dwarf2_fetch_die_loc_sect_off,
691 dwarf2_fetch_die_loc_cu_off): Likewise.
692 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
693 (per_cu_dwarf_call): Adjust.
694 (get_frame_address_in_block_wrapper): Remove.
695 (indirect_synthetic_pointer): Adjust.
696 (get_ax_pc): Remove.
697 (dwarf2_compile_expr_to_ax): Adjust.
698
38f8aa06
TV
6992020-08-08 Tom de Vries <tdevries@suse.de>
700
701 PR build/26344
702 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
703 constructor.
704 * regcache.c (get_thread_arch_aspace_regcache): Same.
705
a52b3ae2
TT
7062020-08-07 Tom Tromey <tromey@adacore.com>
707
708 * ravenscar-thread.c
709 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
710 New method.
711 (ravenscar_thread_target::wait): Check
712 runtime_initialized.
713 (ravenscar_thread_target::prepare_to_store)
714 (ravenscar_thread_target::stopped_by_sw_breakpoint)
715 (ravenscar_thread_target::stopped_by_hw_breakpoint)
716 (ravenscar_thread_target::stopped_by_watchpoint)
717 (ravenscar_thread_target::stopped_data_address)
718 (ravenscar_thread_target::core_of_thread): Use
719 scoped_restore_current_thread and
720 set_base_thread_from_ravenscar_task.
721
0e29517d
TT
7222020-08-07 Tom Tromey <tromey@adacore.com>
723
724 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
725
592f9bd7
TT
7262020-08-07 Tom Tromey <tromey@adacore.com>
727
728 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
729 update_inferior_ptid before update_thread_list.
730 (temporarily_change_regcache_ptid): New class.
731 (ravenscar_thread_target::fetch_registers)
732 (ravenscar_thread_target::store_registers)
733 (ravenscar_thread_target::prepare_to_store): Use base thread when
734 forwarding operation.
735
39e2018a
TT
7362020-08-07 Tom Tromey <tromey@adacore.com>
737
738 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
739 "is_pid" case.
740
2080266b
TT
7412020-08-07 Tom Tromey <tromey@adacore.com>
742
743 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
744 New methods.
745 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
746 first.
747 (ravenscar_thread_target::add_thread): Rename from
748 ravenscar_add_thread.
749 (ravenscar_thread_target::update_thread_list): Use a lambda.
750 (ravenscar_thread_target::xfer_partial): New method.
751
78c02f21
TT
7522020-08-07 Tom Tromey <tromey@adacore.com>
753
754 * ada-lang.h (ada_task_list_iterator_ftype): Now a
755 gdb::function_view.
756 (iterate_over_live_ada_tasks): Change type of argument.
757 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
758 of argument.
759
d5d833af
TT
7602020-08-07 Tom Tromey <tromey@adacore.com>
761
762 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
763 Remove.
764 (ravenscar_thread_target::extra_thread_info): Remove.
765 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
766 defer to target beneath for non-Ravenscar threads.
767
a8ac85bb
TT
7682020-08-07 Tom Tromey <tromey@adacore.com>
769
770 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
771 get_base_thread_from_ravenscar_task>: Now methods.
772 <m_cpu_map>: New member.
773 (ravenscar_thread_target::get_thread_base_cpu): Rename from
774 ravenscar_get_thread_base_cpu. Check m_cpu_map.
775 (ravenscar_thread_target::task_is_currently_active): Update.
776 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
777 Now a method.
778 (ravenscar_thread_target::add_active_thread): Put initial thread
779 into the m_cpu_map.
780
550ab58d
TT
7812020-08-07 Tom Tromey <tromey@adacore.com>
782
783 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
784 event_ptid.
785
e9546579
TT
7862020-08-07 Tom Tromey <tromey@adacore.com>
787
788 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
789 runtime_initialized.
790
3d4470e5
TT
7912020-08-07 Tom Tromey <tromey@adacore.com>
792
793 * ravenscar-thread.c (ravenscar_thread_target): Don't call
794 add_active_thread.
795 (ravenscar_thread_target::add_active_thread): Now public.
796 (ravenscar_inferior_created): Call add_active_thread after pushing
797 the target.
798
888bdb2b
SM
7992020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
800
801 * regcache.c (ptid_regcache_map): New type.
802 (target_ptid_regcache_map): New type.
803 (regcaches): Change type to target_ptid_regcache_map.
804 (get_thread_arch_aspace_regcache): Update to regcaches' new
805 type.
806 (regcache_thread_ptid_changed): Likewise.
807 (registers_changed_ptid): Likewise.
808 (regcaches_size): Likewise.
809 (regcaches_test): Update.
810 (regcache_thread_ptid_changed): Update.
811 * regcache.h (regcache_up): New type.
812 * gdbsupport/ptid.h (hash_ptid): New struct.
813
b161a60d
SM
8142020-08-07 Simon Marchi <simon.marchi@efficios.com>
815
816 * observable.h (thread_ptid_changed): Add parameter
817 `process_stratum_target *`.
818 * infrun.c (infrun_thread_ptid_changed): Add parameter
819 `process_stratum_target *` and use it.
820 (selftests): New namespace.
821 (infrun_thread_ptid_changed): New function.
822 (_initialize_infrun): Register selftest.
823 * regcache.c (regcache_thread_ptid_changed): Add parameter
824 `process_stratum_target *` and use it.
825 (regcache_thread_ptid_changed): New function.
826 (_initialize_regcache): Register selftest.
827 * thread.c (thread_change_ptid): Pass target to
828 thread_ptid_changed observable.
829
d2854d8d
CT
8302020-08-06 Caroline Tice <cmtice@google.com>
831
fe4c3d43
SM
832 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
833 (struct dwp_sections): Update field comments. Add loclists and
834 rnglists fields.
835 (struct virtual_v2_dwo_sections): Rename struct to
836 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
837 size & offset fields for loclists and rnglists.
838 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
839 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
840 skipping dummy type units.
841 (create_dwp_hash_table): Update the large comment above the function to
842 discuss Version 5 DWP files as well, with references. Update all the
843 version checks in the function to check for version 5 as well. Add new
844 section at the end to create dwp hash table for version 5.
845 (create_dwp_v2_section): Rename function to
846 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
847 Add V5 to error message text.
848 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
849 into calls to create_dwp_v2_or_v5_section.
850 (create_dwo_unit_in_dwp_v5): New function.
851 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
852 check for version2; add else clause to handle version 5.
853 (open_and_init_dwo_file): Add code to check dwarf version & only call
854 create_debug_types_hash_table (with sections.types) if version is not 5;
855 else call create_debug_type_hash_table, with sections.info.
856 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
857 version 5.
858 (dwarf2_locate_v5_dwp_sections): New function.
859 (open_and_init_dwp_file): Add else-if clause for version 5 to call
860 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
d2854d8d 861
159ed7d9
SM
8622020-08-06 Simon Marchi <simon.marchi@efficios.com>
863
864 * regcache.h (class regcache): Remove friend
865 registers_changed_ptid.
866 <regcache_thread_ptid_changed>: Remove.
867 <regcaches>: Remove.
868 * regcache.c (regcache::regcaches): Rename to...
869 (regcaches): ... this. Make static.
870 (get_thread_arch_aspace_regcache): Update.
871 (regcache::regcache_thread_ptid_changed): Rename to...
872 (regcache_thread_ptid_changed): ... this. Update.
873 (class regcache_access): Remove.
874 (regcaches_test): Update.
875 (_initialize_regcache): Update.
876 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
877 <forward_list>.
878
174981ae
SM
8792020-08-06 Simon Marchi <simon.marchi@efficios.com>
880
881 * regcache.h (class regcache) <current_regcache>: Rename to...
882 <regcaches>: ... this. Move doc here.
883 * regcache.c (regcache::current_regcache) Rename to...
884 (regcache::regcaches): ... this. Move doc to header.
885 (get_thread_arch_aspace_regcache): Update.
886 (regcache::regcache_thread_ptid_changed): Update.
887 (registers_changed_ptid): Update.
888 (class regcache_access) <current_regcache_size>: Rename to...
889 <regcaches_size>: ... this.
890 (current_regcache_test): Rename to...
891 (regcaches_test): ... this.
892 (_initialize_regcache): Update.
893
ed908db6
VC
8942020-08-06 Victor Collod <vcollod@nvidia.com>
895
896 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
897
b5582ab7
KB
8982020-08-05 Kevin Buettner <kevinb@redhat.com>
899
900 * corelow.c (core_target::build_file_mappings): Don't output
901 null pathname in warning.
902
ea946b86
SM
9032020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
904
905 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
906 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
907 gdb.dwarf2/dw2-single-line-discriminators.exp,
908 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
909
57d02173
TT
9102020-08-05 Tom Tromey <tromey@adacore.com>
911
912 PR rust/26197:
913 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
914 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
915 Fix off-by-one and type size errors in ordinary case.
916
5555c86d
TV
9172020-08-05 Tom de Vries <tdevries@suse.de>
918
919 * gdbtypes.c (type_not_allocated, type_not_associated): Use
920 "prop->const_val () == 0" instead of "prop->const_val () != 0".
921
97916bfe
SM
9222020-08-04 Simon Marchi <simon.marchi@efficios.com>
923
924 * frame.h (frame_id_p): Return bool.
925 (frame_id_artificial_p): Return bool.
926 (frame_id_eq): Return bool.
927 (has_stack_frames): Return bool.
928 (get_selected_frame): Fix typo in comment.
929 (get_frame_pc_if_available): Return bool.
930 (get_frame_address_in_block_if_available): Return bool.
931 (get_frame_func_if_available): Return bool.
932 (read_frame_register_unsigned): Return bool.
933 (get_frame_register_bytes): Return bool.
934 (safe_frame_unwind_memory): Return bool.
935 (deprecated_frame_register_read): Return bool.
936 (frame_unwinder_is): Return bool.
937 * frame.c (struct frame_info) <prev_arch::p>: Change type to
938 bool.
939 <this_id::p>: Likewise.
940 <prev_p>: Likewise.
941 (frame_stash_add): Return bool.
942 (get_frame_id): Use bool.
943 (frame_id_build_special) Use bool.
944 (frame_id_build_unavailable_stack): Use bool.
945 (frame_id_build): Use bool.
946 (frame_id_p): Return bool, use true/false instead of 1/0.
947 (frame_id_artificial_p): Likewise.
948 (frame_id_eq): Likewise.
949 (frame_id_inner): Likewise.
950 (get_frame_func_if_available): Likewise.
951 (read_frame_register_unsigned): Likewise.
952 (deprecated_frame_register_read): Likewise.
953 (get_frame_register_bytes): Likewise.
954 (has_stack_frames): Likewise.
955 (inside_main_func): Likewise.
956 (inside_entry_func): Likewise.
957 (get_frame_pc_if_available): Likewise.
958 (get_frame_address_in_block_if_available): Likewise.
959 (frame_unwinder_is): Likewise.
960 (safe_frame_unwind_memory): Likewise.
961 (frame_unwind_arch): Likewise.
962
fedfee88
SM
9632020-08-04 Simon Marchi <simon.marchi@efficios.com>
964
965 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
966 type to cached_copy_status.
967 (fprintf_frame): Adjust.
968 (get_frame_func_if_available): Adjust.
969 (frame_cleanup_after_sniffer): Adjust.
970
6cfa9b59
MW
9712020-08-04 Mark Wielaard <mark@klomp.org>
972
973 * MAINTAINERS (Write After Approval): Update email address.
974
66d6346b
SM
9752020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
976
977 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
978 dynamic_prop::const_val.
979
8a6d5e35
SM
9802020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
981
982 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
983 dynamic_prop::kind.
984
51d6067d
SM
9852020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
986
987 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
988
b26e2ae7
JM
9892020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
990
991 * configure.tgt: Set gdb_sim for bpf-*-* targets.
992
39791af2
JM
9932020-08-04 Weimin Pan <weimin.pan@oracle.com>
994 Jose E. Marchesi <jose.marchesi@oracle.com>
995
996 * configure.tgt: Add entry for bpf-*-*.
997 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
998 (ALLDEPFILES): Add bpf-tdep.c.
999 * bpf-tdep.c: New file.
1000 * MAINTAINERS: Add bpf target and maintainer.
1001 * NEWS: Mention the support for the new target.
1002
521894aa
TV
10032020-08-04 Tom de Vries <tdevries@suse.de>
1004
1005 PR symtab/23270
1006 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
1007 Error.
1008
5d6356e9
JB
10092020-08-03 John Baldwin <jhb@FreeBSD.org>
1010
1011 * syscalls/freebsd.xml: Regenerate.
1012
0cf82b81
JB
10132020-08-03 John Baldwin <jhb@FreeBSD.org>
1014
1015 * syscalls/update-freebsd.sh: Fix usage and year range.
1016
8f34b746
TV
10172020-08-03 Tom de Vries <tdevries@suse.de>
1018
1019 PR symtab/26333
1020 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
1021 DW_LNE_lo_user/DW_LNE_hi_user range.
1022
5e500d33
SM
10232020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
1024
1025 PR ada/26318
1026 * ada-lang.c (ada_modulus): Return 0 if property is not of const
1027 kind.
1028
78319c15
TBA
10292020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1030
1031 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
1032
4c55e970
TBA
10332020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1034
1035 * breakpoint.c (set_breakpoint_condition): Update the condition
1036 expressions after checking that the input condition string parses
1037 successfully and does not contain junk at the end.
1038
1e620590
TBA
10392020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1040
1041 * breakpoint.c (set_breakpoint_condition): Update the
1042 condition string after parsing the new condition successfully.
1043
c8693053
RO
10442020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1045
1046 * proc-api.c (_STRUCTURED_PROC): Don't define.
1047 * proc-events.c: Likewise.
1048 * proc-flags.c: Likewise.
1049 * proc-why.c: Likewise.
1050 * procfs.c: Likewise.
1051
1052 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
1053 * configure, config.in: Regenerate.
1054
5a99adb8
TV
10552020-07-30 Tom de Vries <tdevries@suse.de>
1056
1057 PR build/26320
1058 * ui-style.h (struct ui_file_style::color): Wrap m_value and
1059 m_red/m_green/m_blue in a union.
1060
8ba83e91
TV
10612020-07-29 Tom de Vries <tdevries@suse.de>
1062
1063 PR tdep/26280
1064 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
1065
f75a0693
AB
10662020-07-28 Tom Tromey <tromey@adacore.com>
1067
1068 PR symtab/26270:
1069 * symtab.h (find_pc_partial_function_sym): Declare.
1070 * cli/cli-cmds.c (disassemble_command): Use
1071 find_pc_partial_function_sym. Check asm_demangle.
1072 * blockframe.c (cache_pc_function_sym): New global.
1073 (cache_pc_function_name): Remove.
1074 (clear_pc_function_cache): Update.
1075 (find_pc_partial_function_sym): New function, from
1076 find_pc_partial_function.
1077 (find_pc_partial_function): Rewrite using
1078 find_pc_partial_function_sym.
1079
16f3242c
TT
10802020-07-28 Tom Tromey <tromey@adacore.com>
1081
1082 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
1083 help. Add usage.
1084
4888741a
TT
10852020-07-28 Tom Tromey <tromey@adacore.com>
1086
1087 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
1088 <DW_OP_GNU_variable_value>: Cast to address type.
1089
4d46f402
KR
10902020-07-28 Kamil Rytarowski <n54@gmx.com>
1091
1092 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
1093 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
1094 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
1095 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
1096 (nbsd_get_siginfo_type): New.
1097 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
1098 (_initialize_nbsd_tdep): New.
1099
d70f978b
L
11002020-07-28 H.J. Lu <hongjiu.lu@intel.com>
1101
1102 PR binutils/26301
1103 * configure: Regenerated.
1104
377170fa
L
11052020-07-28 H.J. Lu <hongjiu.lu@intel.com>
1106
1107 PR binutils/26301
1108 * configure: Regenerated.
1109
43d5901d
AB
11102020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
1111
1112 * python/py-frame.c: Remove 'user-regs.h' include.
1113 (frapy_read_register): Rewrite to make use of
1114 gdbpy_parse_register_id.
1115 * python/py-registers.c (gdbpy_parse_register_id): New function,
1116 moved here from python/py-unwind.c. Updated the return type, and
1117 also accepts register descriptor objects.
1118 * python/py-unwind.c: Remove 'user-regs.h' include.
1119 (pyuw_parse_register_id): Moved to python/py-registers.c.
1120 (unwind_infopy_add_saved_register): Update to use
1121 gdbpy_parse_register_id.
1122 (pending_framepy_read_register): Likewise.
1123 * python/python-internal.h (gdbpy_parse_register_id): Declare.
1124
14fa8fb3
AB
11252020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
1126
1127 * python/py-registers.c: Add 'user-regs.h' include.
1128 (register_descriptor_iter_find): New function.
1129 (register_descriptor_iterator_object_methods): New static global
1130 methods array.
1131 (register_descriptor_iterator_object_type): Add pointer to methods
1132 array.
1133
ddce1758
JB
11342020-07-27 John Baldwin <jhb@FreeBSD.org>
1135
1136 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
1137 for all architectures on FreeBSD 11.3 and later.
1138
a4089f52
TT
11392020-07-27 Tom Tromey <tromey@adacore.com>
1140
1141 * gcore.h (load_corefile): Don't declare.
1142
95420d30
TV
11432020-07-27 Tom de Vries <tdevries@suse.de>
1144
1145 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
1146 * config.in: Regenerate.
1147 * configure: Regenerate.
1148
05a6b8c2
EZ
11492020-07-26 Eli Zaretskii <eliz@gnu.org>
1150
1151 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
1152 ws2tcpip.h. When checking whether socklen_t type is defined, use
1153 ws2tcpip.h if it is available and sys/socket.h isn't.
1154 * configure: Regenerate.
1155 * config.in: Regenerate.
1156
e79eb02f
AB
11572020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
1158
1159 PR fortran/23051
1160 PR fortran/26139
1161 * valops.c (value_ind): Pass address to
1162 readjust_indirect_value_type.
1163 * value.c (readjust_indirect_value_type): Make parameter
1164 non-const, and add extra address parameter. Resolve original type
1165 before using it.
1166 * value.h (readjust_indirect_value_type): Update function
1167 signature and comment.
1168
876518dd
TV
11692020-07-25 Tom de Vries <tdevries@suse.de>
1170
1171 PR symtab/26243
1172 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
1173 entries.
1174
f6720b1c
AM
11752020-07-24 Aaron Merey <amerey@redhat.com>
1176
1177 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
1178 * configure: Rebuild.
1179
513487e1
KB
11802020-07-23 Kevin Buettner <kevinb@redhat.com>
1181
1182 PR corefiles/26294
1183 * corelow.c (_initialize_corelow): Add period to help text
1184 for "maintenance print core-file-backed-mappings".
1185
e7bc9db8
PA
11862020-07-23 Pedro Alves <pedro@palves.net>
1187
1188 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
1189 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
1190 meanwhile.
1191 * frame.c (frame_cache_generation, get_frame_cache_generation):
1192 New.
1193 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
1194 (get_prev_frame_if_no_cycle): On exception, don't touch
1195 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
1196 * frame.h (get_frame_cache_generation): Declare.
1197
90fcc466
TV
11982020-07-23 Tom de Vries <tdevries@suse.de>
1199
1200 PR tui/26282
1201 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
1202 New default constructor.
1203
78344df7
AB
12042020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
1205
1206 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
1207 exclude non-statement entries.
1208
b089853a
KB
12092020-07-22 Kevin Buettner <kevinb@redhat.com>
1210
1211 * NEWS (New commands): Mention new command
1212 "maintenance print core-file-backed-mappings".
1213
09c2f5d4
KB
12142020-07-22 Kevin Buettner <kevinb@redhat.com>
1215
1216 * corelow.c (gdbcmd.h): Include.
1217 (core_target::info_proc_mappings): New method.
1218 (get_current_core_target): New function.
1219 (maintenance_print_core_file_backed_mappings): New function.
1220 (_initialize_corelow): Add core-file-backed-mappings to
1221 "maint print" commands.
1222
9c5ec5c2 12232020-07-22 Kevin Buettner <kevinb@redhat.com>
fe4c3d43 1224
9c5ec5c2
KB
1225 * linux-tdep.c (dump_note_entry_p): New function.
1226 (linux_dump_mapping_p_ftype): New typedef.
1227 (linux_find_memory_regions_full): Add new parameter,
1228 should_dump_mapping_p.
1229 (linux_find_memory_regions): Adjust call to
1230 linux_find_memory_regions_full.
1231 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
1232 call to linux_find_memory_regions_full.
1233
db082f59
KB
12342020-07-22 Kevin Buettner <kevinb@redhat.com>
1235
1236 * corelow.c (solist.h, unordered_map): Include.
1237 (class core_target): Add field m_core_file_mappings and
1238 method build_file_mappings.
1239 (core_target::core_target): Call build_file_mappings.
1240 (core_target::~core_target): Free memory associated with
1241 m_core_file_mappings.
1242 (core_target::build_file_mappings): New method.
1243 (core_target::xfer_partial): Use m_core_file_mappings
1244 for memory transfers.
1245 * linux-tdep.c (linux_read_core_file_mappings): New
1246 function.
1247 (linux_core_info_proc_mappings): Rewrite to use
1248 linux_read_core_file_mappings.
1249 (linux_init_abi): Register linux_read_core_file_mappings.
1250
7e183d27
KB
12512020-07-22 Kevin Buettner <kevinb@redhat.com>
1252
1253 * arch-utils.c (default_read_core_file_mappings): New function.
1254 * arch-utils.c (default_read_core_file_mappings): Declare.
1255 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
1256 * gdbarch.h, gdbarch.c: Regenerate.
1257
2735d421
KB
12582020-07-22 Kevin Buettner <kevinb@redhat.com>
1259
1260 PR corefiles/25631
1261 * corelow.c (core_target:xfer_partial): Revise
1262 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
1263 case after first checking the stratum beneath the core
1264 target.
1265 (has_all_memory): Return true.
1266 * target.c (raw_memory_xfer_partial): Revise comment
1267 regarding use of has_all_memory.
1268
e56cb451
KB
12692020-07-22 Kevin Buettner <kevinb@redhat.com>
1270
1271 * exec.h (section_table_xfer_memory): Revise declaration,
1272 replacing section name parameter with an optional callback
1273 predicate.
1274 * exec.c (section_table_xfer_memory): Likewise.
1275 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
1276 of section_table_xfer_memory.
1277
32fa152e
TT
12782020-07-22 Tom Tromey <tromey@adacore.com>
1279
1280 * mi/mi-cmd-stack.c (list_args_or_locals): Use
1281 lookup_symbol_search_name.
1282
a67a1c41
AB
12832020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
1284
1285 * python/py-registers.c (gdbpy_register_object_data_init): Remove
1286 redundant local variable.
1287 (gdbpy_get_register_descriptor): Extract descriptor vector as a
1288 reference, not pointer, update code accordingly.
1289
a7b4ff4f
SM
12902020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1291 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1292
1293 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
1294 * jit.c (jit_breakpoint_re_set_internal): Use the
1295 `skip_jit_symbol_lookup` field.
1296
2340e834
SM
12972020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1298 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1299
1300 * jit.c (jit_read_descriptor): Define the descriptor address once,
1301 use twice.
1302 (jit_breakpoint_deleted): Move the declaration of the loop variable
1303 `iter` into the loop header.
1304 (jit_breakpoint_re_set_internal): Move the declaration of the local
1305 variable `objf_data` to the first point of definition.
1306 (jit_event_handler): Move the declaration of local variables
1307 `code_entry`, `entry_addr`, and `objf` to their first point of use.
1308 Rename `objf` to `jited`.
1309
c1072906
SM
13102020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1311
1312 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
1313 Remove.
1314 * jit.c (get_jiter_objfile_data): Update.
1315
c8474dc3
TBA
13162020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1317 Simon Marchi <simon.marchi@polymtl.ca>
1318
1319 * jit.c (struct jit_program_space_data): Remove.
1320 (jit_program_space_key): Remove.
1321 (jiter_objfile_data::~jiter_objfile_data): Remove program space
1322 stuff.
1323 (get_jit_program_space_data): Remove.
1324 (jit_breakpoint_deleted): Iterate on all of the program space's
1325 objfiles.
1326 (jit_inferior_init): Likewise.
1327 (jit_breakpoint_re_set_internal): Likewise. Also change return
1328 type to void.
1329 (jit_breakpoint_re_set): Pass current_program_space to
1330 jit_breakpoint_re_set_internal.
1331
77208eb7
SM
13322020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1333
1334 * jit.h (struct jiter_objfile_data) <cached_code_address,
1335 jit_breakpoint>: Move to here from ...
1336 * jit.c (jit_program_space_data): ... here.
1337 (jiter_objfile_data::~jiter_objfile_data): Update.
1338 (jit_breakpoint_deleted): Update.
1339 (jit_breakpoint_re_set_internal): Update.
1340
8c1c720f
SM
13412020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1342
1343 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
1344 checks.
1345 (jit_read_descriptor): Remove NULL check.
1346 (jit_event_handler): Add an assertion.
1347
0e74a041
SM
13482020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1349
1350 * jit.h (struct jit_objfile_data): Split into...
1351 (struct jiter_objfile_data): ... this ...
1352 (struct jited_objfile_data): ... and this.
1353 * objfiles.h (struct objfile) <jit_data>: Remove.
1354 <jiter_data, jited_data>: New fields.
1355 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
1356 (jiter_objfile_data::~jiter_objfile_data): ... this.
1357 (get_jit_objfile_data): Rename to ...
1358 (get_jiter_objfile_data): ... this.
1359 (add_objfile_entry): Update.
1360 (jit_read_descriptor): Use get_jiter_objfile_data.
1361 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
1362 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
1363 (jit_inferior_exit_hook): Use objfile's jited_data field.
1364
238b5c9f
SM
13652020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1366
1367 * jit.h: Forward-declare `struct minimal_symbol`.
1368 (struct jit_objfile_data): Migrate to here from jit.c; also add a
1369 constructor, destructor, and an objfile* field.
1370 * jit.c (jit_objfile_data): Remove.
1371 (struct jit_objfile_data): Migrate from here to jit.h.
1372 (jit_objfile_data::~jit_objfile_data): New destructor
1373 implementation with code moved from free_objfile_data.
1374 (free_objfile_data): Delete.
1375 (get_jit_objfile_data): Update to use the jit_data field of objfile.
1376 (jit_find_objf_with_entry_addr): Ditto.
1377 (jit_inferior_exit_hook): Ditto.
1378 (_initialize_jit): Remove the call to
1379 register_objfile_data_with_cleanup.
1380 * objfiles.h (struct objfile) <jit_data>: New field.
1381
fe053b9e
TBA
13822020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1383
1384 * jit.h: Forward-declare `struct objfile`.
1385 (jit_event_handler): Add a second parameter, the JITer objfile.
1386 * jit.c (jit_read_descriptor): Change the signature to take the
1387 JITer objfile as an argument instead of the jit_program_space_data.
1388 (jit_inferior_init): Update the call to jit_read_descriptor.
1389 (jit_event_handler): Use the new JITer objfile argument when calling
1390 jit_read_descriptor.
1391 * breakpoint.c (handle_jit_event): Update the call to
1392 jit_event_handler to pass the JITer objfile.
1393
4cec0c66
JB
13942020-07-21 John Baldwin <jhb@FreeBSD.org>
1395
1396 * gdbarch.c: Regenerate.
1397 * gdbarch.h: Regenerate.
1398 * gdbarch.sh (handle_segmentation_fault): Remove method.
1399 * infrun.c (handle_segmentation_fault): Remove.
1400 (print_signal_received_reason): Remove call to
1401 handle_segmentation_fault.
1402
0e42f66a
JB
14032020-07-21 John Baldwin <jhb@FreeBSD.org>
1404
1405 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
1406 Rename to sparc64_linux_report_signal_info and add siggnal
1407 argument.
1408 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
1409 instead of sparc64_linux_handle_segmentation_fault.
1410
77bdfeb2
JB
14112020-07-21 John Baldwin <jhb@FreeBSD.org>
1412
1413 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
1414 i386_linux_report_signal_info instead of
1415 i386_linux_handle_segmentation_fault.
1416 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
1417 to i386_linux_report_signal_info and add siggnal argument.
1418 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
1419 of i386_linux_handle_segmentation_fault.
1420 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
1421 to i386_linux_report_signal_info and add siggnal argument.
1422
ad97bfc5
JB
14232020-07-21 John Baldwin <jhb@FreeBSD.org>
1424
1425 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
1426 hook if present.
1427
272bb05c
JB
14282020-07-21 John Baldwin <jhb@FreeBSD.org>
1429
1430 * gdbarch.c: Regenerate.
1431 * gdbarch.h: Regenerate.
1432 * gdbarch.sh (report_signal_info): New method.
1433 * infrun.c (print_signal_received_reason): Invoke gdbarch
1434 report_signal_info hook if present.
1435
baf8791e
AB
14362020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
1437
1438 * python/py-registers.c : Add 'unordered_map' include.
1439 (gdbpy_new_reggroup): Renamed to...
1440 (gdbpy_get_reggroup): ...this. Update to only create register
1441 group descriptors when needed.
1442 (gdbpy_reggroup_iter_next): Update.
1443
f7306dac
AB
14442020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
1445
1446 * python/py-registers.c (gdbpy_register_object_data): New static
1447 global.
1448 (gdbpy_register_object_data_init): New function.
1449 (gdbpy_new_register_descriptor): Renamed to...
1450 (gdbpy_get_register_descriptor): ...this, and update to reuse
1451 existing register descriptors where possible.
1452 (gdbpy_register_descriptor_iter_next): Update.
1453 (gdbpy_initialize_registers): Register new gdbarch data.
1454
05c309a8
SM
14552020-07-21 Simon Marchi <simon.marchi@efficios.com>
1456
1457 * linux-nat.c (stopped_pids): Make static.
1458
d1fd641e
SM
14592020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
1460
1461 PR ada/26235
1462 * gdbtypes.c (ada_discrete_type_low_bound,
1463 ada_discrete_type_high_bound): Handle undefined bounds.
1464
1de14d77
KR
14652020-07-21 Kamil Rytarowski <n54@gmx.com>
1466
1467 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
1468 declaration.
1469 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
1470 function.
1471
ed810cc7
JB
14722020-07-20 John Baldwin <jhb@FreeBSD.org>
1473
1474 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
1475 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
1476 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
1477 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
1478 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
1479 method.
1480
ae5369e7
LC
14812020-07-20 Ludovic Courtès <ludo@gnu.org>
1482
1483 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
1484 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
1485 which are deprecated in Guile 3.0.
1486 * configure.ac (try_guile_versions): Add "guile-3.0".
1487 * configure (try_guile_versions): Regenerate.
1488 * NEWS: Update entry.
1489
68cf161c
LC
14902020-07-20 Ludovic Courtès <ludo@gnu.org>
1491 Doug Evans <dje@google.com>
1492
1493 PR gdb/21104
1494 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
1495 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
1496 USING_GUILE_BEFORE_2_2.
1497 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
1498 Change type to 'scm_t_port_type *'.
1499 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
1500 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
1501 parameter and honor it. Update callers.
1502 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
1503 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
1504 functions.
1505 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
1506 USING_GUILE_BEFORE_2_2.
1507 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
1508 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
1509 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
1510 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
1511 and 'SCM_PORT_TYPE'.
1512 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
1513 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
1514 (gdbscm_memory_port_read, gdbscm_memory_port_write)
1515 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
1516 [!USING_GUILE_BEFORE_2_2]: New functions.
1517 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
1518 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
1519 'gdbscm_memory_port_read'.
1520 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
1521 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
1522 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
1523 function.
1524 (ioscm_init_memory_port): Remove.
1525 (ioscm_init_memory_port_stream): New function
1526 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
1527 function.
1528 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
1529 Return scm_from_uint (0).
1530 (gdbscm_set_memory_port_read_buffer_size_x)
1531 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
1532 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
1533 Return scm_from_uint (0).
1534 (gdbscm_set_memory_port_write_buffer_size_x)
1535 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
1536 * configure.ac (try_guile_versions): Add "guile-2.2".
1537 * configure: Regenerate.
1538 * NEWS: Add entry.
1539
aee91db3
TT
15402020-07-18 Tom Tromey <tom@tromey.com>
1541
1542 * linux-nat.c (linux_multi_process): Remove.
1543 (linux_nat_target::supports_multi_process): Return true.
1544
0e267416
AB
15452020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
1546
1547 * arch/riscv.c (riscv_tdesc_cache): Change map type.
1548 (riscv_lookup_target_description): Return pointer out of
1549 unique_ptr.
1550 * target-descriptions.c (allocate_target_description): Add
1551 comment.
1552 (target_desc_deleter::operator()): Likewise.
1553 * target-descriptions.h (struct target_desc_deleter): Moved to
1554 gdbsupport/tdesc.h.
1555 (target_desc_up): Likewise.
1556
f80c8ec4
TT
15572020-07-17 Tom Tromey <tromey@adacore.com>
1558
1559 * linux-nat.c (linux_nat_target::supports_non_stop)
1560 (linux_nat_target::always_non_stop_p): Use "true".
1561 (linux_nat_target::supports_disable_randomization): Use "true" and
1562 "false".
1563
d0ce17d8
CT
15642020-07-16 Caroline Tice <cmtice@google.com>
1565
1566 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
1567 (RNGLIST_HEADER_SIZE64): New constant definition.
1568 (struct dwop_section_names): Add rnglists_dwo.
1569 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
1570 (struct loclist_header): Rename to 'loclists_rnglists_header'.
1571 (struct dwo_sections): Add rnglists field.
1572 (read_attribut_reprocess): Add tag parameter.
1573 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
1574 (cu_debug_rnglists_section): New function (decl & definition).
1575 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
1576 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
1577 die whose range is being checked; get rnglist section from
1578 cu_debug_rnglists_section, to get from either objfile or dwo file as
1579 appropriate. Add cases for DW_RLE_base_addressx,
1580 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
1581 the base address to DW_RLE_offset_pairs (not to all ranges), moving
1582 test inside if-condition and updating complaint message.
1583 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
1584 dwarf2_rnglists_process.
1585 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
1586 dwarf2_ranges_process.
1587 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
1588 need_ranges_base and update comment appropriately. Also pass die tag
1589 to dwarf2_ranges_read.
1590 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
1591 need_ranges_base and update comment appropriately. Also pass die tag
1592 to dwarf2_ranges_process.
1593 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
1594 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
1595 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
1596 need_ranges_base and update comment appropriately. Also pass die tag
1597 to read_attribute_reprocess and dwarf2_ranges_read.
1598 (read_loclist_header): Rename function to read_loclists_rnglists_header,
1599 and update function comment appropriately.
1600 (read_loclist_index): Call read_loclists_rnglists_header instead of
1601 read_loclist_header.
1602 (read_rnglist_index): New function.
1603 (read_attribute_reprocess): Add tag parameter. Add code for
1604 DW_FORM_rnglistx, passing tag to read_rnglist_index.
1605 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
1606
3dcc261c
AB
16072020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
1608
1609 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
1610 being resolved.
1611
ccb9eba6
AB
16122020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
1613
1614 * arch-utils.c (show_architecture): Update formatting of messages.
1615
cf88be68
SM
16162020-07-12 Simon Marchi <simon.marchi@efficios.com>
1617
1618 * gdbtypes.h (struct type) <bounds>: Handle array and string
1619 types.
1620 * ada-lang.c (assign_aggregate): Use type::bounds on
1621 array/string type.
1622 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
1623 * c-varobj.c (c_number_of_children): Likewise.
1624 (c_describe_child): Likewise.
1625 * eval.c (evaluate_subexp_for_sizeof): Likewise.
1626 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
1627 (f_type_print_base): Likewise.
1628 * f-valprint.c (f77_array_offset_tbl): Likewise.
1629 (f77_get_upperbound): Likewise.
1630 (f77_print_array_1): Likewise.
1631 * guile/scm-type.c (gdbscm_type_range): Likewise.
1632 * m2-typeprint.c (m2_array): Likewise.
1633 (m2_is_long_set_of_type): Likewise.
1634 * m2-valprint.c (get_long_set_bounds): Likewise.
1635 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
1636 * python/py-type.c (typy_range): Likewise.
1637 * rust-lang.c (rust_internal_print_type): Likewise.
1638 * type-stack.c (type_stack::follow_types): Likewise.
1639 * valarith.c (value_subscripted_rvalue): Likewise.
1640 * valops.c (value_cast): Likewise.
1641
509971ae
SM
16422020-07-12 Simon Marchi <simon.marchi@efficios.com>
1643
1644 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
1645 callers to use the equivalent accessor methods.
1646
107406b7
SM
16472020-07-12 Simon Marchi <simon.marchi@efficios.com>
1648
1649 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
1650 (struct type) <bit_stride>: New method.
1651 (TYPE_BIT_STRIDE): Remove.
1652 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
1653
bb789949
SM
16542020-07-12 Simon Marchi <simon.marchi@efficios.com>
1655
1656 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
1657 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
1658 callers to use the equivalent accessor methods instead.
1659
39498edb
SM
16602020-07-12 Simon Marchi <simon.marchi@efficios.com>
1661
1662 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
1663 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
1664 callers to use the equivalent accessor methods instead.
1665
3b606f38
SM
16662020-07-12 Simon Marchi <simon.marchi@efficios.com>
1667
1668 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
1669 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
1670 to use dynamic_prop::kind.
1671
064d9cb9
SM
16722020-07-12 Simon Marchi <simon.marchi@efficios.com>
1673
1674 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
1675 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
1676 to get the bound property's kind and check against
1677 PROP_UNDEFINED.
1678
5537ddd0
SM
16792020-07-12 Simon Marchi <simon.marchi@efficios.com>
1680
1681 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
1682 all callers to use type::range_bounds followed by
1683 dynamic_prop::{low,high}.
1684
8c2e4e06
SM
16852020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
1686
1687 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
1688 const_val, set_const_val, baton, set_locexpr, set_loclist,
1689 set_addr_offset, variant_parts, set_variant_parts,
1690 original_type, set_original_type>: New methods.
1691 <kind>: Rename to...
1692 <m_kind>: ... this. Update all users to use the new methods
1693 instead.
1694 <data>: Rename to...
1695 <m_data>: ... this. Update all users to use the new methods
1696 instead.
1697
7c6f2712
SM
16982020-07-12 Simon Marchi <simon.marchi@efficios.com>
1699
1700 * gdbtypes.c (get_discrete_bounds): Return failure if
1701 the range type's bounds are not both defined and constant
1702 values.
1703 (get_array_bounds): Update comment. Remove undefined bound check.
1704
599088e3
SM
17052020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
1706
1707 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
1708 the type::bounds method directly.
1709
c4dfcb36
SM
17102020-07-12 Simon Marchi <simon.marchi@efficios.com>
1711
1712 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
1713 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
1714 are used to set the range type's bounds to use set_bounds.
1715
0a278aa7
PW
17162020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1717
1718 * exec.c (_initialize_exec): Update exec-file-mismatch help.
1719
cce20f10
PA
17202020-07-10 Pedro Alves <pedro@palves.net>
1721
1722 * gdbthread.h (inferior_ref): Define.
1723 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
1724 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
1725 * thread.c
1726 (scoped_restore_current_thread::restore):
1727 Adjust to gdb::ref_ptr.
1728 (scoped_restore_current_thread::~scoped_restore_current_thread):
1729 Remove manual decref handling.
1730 (scoped_restore_current_thread::scoped_restore_current_thread):
1731 Adjust to use
1732 inferior_ref::new_reference/thread_info_ref::new_reference.
1733 Incref the thread before calling get_frame_id instead of after.
1734 Let TARGET_CLOSE_ERROR propagate.
1735
6d7aa592
PA
17362020-07-10 Pedro Alves <pedro@palves.net>
1737
1738 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
1739 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
1740 NOT_AVAILABLE_ERROR.
1741 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
1742 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
1743
b3e3a4c1
SM
17442020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
1745 Pedro Alves <pedro@palves.net>
1746
1747 PR gdb/26199
1748 * infrun.c (threads_are_resumed_pending_p): Delete.
1749 (do_target_wait): Remove threads_are_executing and
1750 threads_are_resumed_pending_p checks from the inferior_matches
1751 lambda. Update comments.
1752
d6cc5d98
PA
17532020-07-10 Pedro Alves <pedro@palves.net>
1754
1755 PR gdb/26199
1756 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
1757 executing threads.
1758
7d3badc6
PA
17592020-07-10 Pedro Alves <pedro@palves.net>
1760
1761 PR gdb/26199
1762 * infrun.c (handle_no_resumed): Handle multiple targets.
1763
42bd97a6
PA
17642020-07-10 Pedro Alves <pedro@palves.net>
1765
1766 PR gdb/26199
1767 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
1768 target_is_async_p.
1769
43667cc6
PA
17702020-07-10 Pedro Alves <pedro@palves.net>
1771
1772 PR gdb/26199
1773 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
1774 threads, not all threads.
1775
96118d11
PA
17762020-07-10 Pedro Alves <pedro@palves.net>
1777
1778 PR gdb/26199
1779 * remote.c (remote_target::open_1): Pass remote target pointer as
1780 data to create_async_event_handler.
1781 (remote_async_inferior_event_handler): Mark async event handler
1782 before returning if the remote target still has either pending
1783 events or unacknowledged notifications.
1784
54904d81
JB
17852020-07-10 John Baldwin <jhb@FreeBSD.org>
1786
1787 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
1788 declaration.
1789 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
1790 function.
1791
f37e5866
JB
17922020-07-09 John Baldwin <jhb@FreeBSD.org>
1793
1794 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
1795 inferior_ptid.
1796
fc238d4a
JB
17972020-07-09 John Baldwin <jhb@FreeBSD.org>
1798
1799 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
1800 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
1801 AT_FREEBSD_PS_STRINGS.
1802
6e2469ff
HD
18032020-07-08 Hannes Domani <ssbssa@yahoo.de>
1804
1805 * auto-load.c (auto_load_objfile_script_1): Convert drive part
1806 of debugfile path on Windows.
1807
d1076c41
JB
18082020-07-08 John Baldwin <jhb@FreeBSD.org>
1809
1810 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
1811 argument to 'data'.
1812
15f3b077
TT
18132020-07-08 Tom Tromey <tromey@adacore.com>
1814
1815 * ada-lang.c (ada_exception_message_1): Use read_memory.
1816
9fc501fd
AB
18172020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1818
1819 PR python/22748
1820 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
1821 special handling for inline frames.
1822 * findvar.c (value_of_register_lazy): Skip inline frames when
1823 creating lazy register values.
1824 * frame.c (frame_id_computed_p): Delete definition.
1825 * frame.h (frame_id_computed_p): Delete declaration.
1826
64cb3757
AB
18272020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1828
1829 * NEWS: Mention additions to Python API.
1830 * python/py-arch.c (archpy_register_groups): New function.
1831 (arch_object_methods): Add 'register_groups' method.
1832 * python/py-registers.c (reggroup_iterator_object): New struct.
1833 (reggroup_object): New struct.
1834 (gdbpy_new_reggroup): New function.
1835 (gdbpy_reggroup_to_string): New function.
1836 (gdbpy_reggroup_name): New function.
1837 (gdbpy_reggroup_iter): New function.
1838 (gdbpy_reggroup_iter_next): New function.
1839 (gdbpy_new_reggroup_iterator): New function
1840 (gdbpy_initialize_registers): Register new types.
1841 (reggroup_iterator_object_type): Define new Python type.
1842 (gdbpy_reggroup_getset): New static global.
1843 (reggroup_object_type): Define new Python type.
1844 * python/python-internal.h
1845
0f767f94
AB
18462020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1847
1848 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
1849 * python/py-arch.c (archpy_registers): New function.
1850 (arch_object_methods): Add 'registers' method.
1851 * python/py-registers.c: New file.
1852 * python/python-internal.h
1853 (gdbpy_new_register_descriptor_iterator): Declare.
1854 (gdbpy_initialize_registers): Declare.
1855 * python/python.c (do_start_initialization): Call
1856 gdbpy_initialize_registers.
1857 * NEWS: Mention additions to the Python API.
1858
87dbc774
AB
18592020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1860
1861 * NEWS: Mention new Python API method.
1862 * python/py-unwind.c (pending_framepy_architecture): New function.
1863 (pending_frame_object_methods): Add architecture method.
1864
3bc98c0c
AB
18652020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1866
1867 * gdbarch.c: Regenerate.
1868 * gdbarch.h: Regenerate.
1869 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
1870 (gdbarch_data): Use internal_error for the case where
1871 deprecated_set_gdbarch_data was originally needed.
1872 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
1873 and use passed in obstack.
1874 (libunwind_frame_set_descr): Should no longer get back NULL from
1875 gdbarch_data.
1876 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
1877 type.
1878 * user-regs.c (user_regs_init): Update parameters, and use passed
1879 in obstack.
1880 (user_reg_add): Should no longer get back NULL from gdbarch_data.
1881 (_initialize_user_regs): Register as a pre-init gdbarch data type.
1882
d8cc8af6
TV
18832020-07-06 Tom de Vries <tdevries@suse.de>
1884
1885 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
1886 End-Of-Sequence in lte_is_less_than.
1887 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
1888 "gdb: Don't reorder line table entries too much when sorting".
1889
947f7597
TV
18902020-07-06 Tom de Vries <tdevries@suse.de>
1891
1892 PR tui/26205
1893 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
1894
1e7c1b22
TV
18952020-07-05 Tom de Vries <tdevries@suse.de>
1896
1897 PR build/26187
1898 * inferior.h (struct infcall_suspend_state_deleter): If available, use
1899 std::uncaught_exceptions instead of deprecated
1900 std::uncaught_exception.
1901
a36158ec
SM
19022020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
1903
1904 * macroexp.h (macro_stringify): Return
1905 gdb::unique_xmalloc_ptr<char>.
1906 * macroexp.c (macro_stringify): Likewise.
1907 * macrotab.c (fixup_definition): Update.
1908
14d960c8
SM
19092020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
1910
1911 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
1912 (lex_one_token): Update.
1913 * macroexp.c (struct macro_buffer) <release>: Return
1914 gdb::unique_xmalloc_ptr<char>.
1915 (macro_stringify): Update.
1916 (macro_expand): Update.
1917 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
1918 * macroexp.h (macro_expand_next): Likewise.
1919
211d5b1c
SM
19202020-07-02 Simon Marchi <simon.marchi@efficios.com>
1921
1922 * macroexp.h (macro_lookup_ftype): Remove.
1923 (macro_expand, macro_expand_once, macro_expand_next): Remove
1924 lookup function parameters, add scope parameter.
1925 * macroexp.c (scan, substitute_args, expand, maybe_expand,
1926 macro_expand, macro_expand_once, macro_expand_next): Likewise.
1927 * macroscope.h (standard_macro_lookup): Change parameter type
1928 to macro_scope.
1929 * macroscope.c (standard_macro_lookup): Likewise.
1930 * c-exp.y (lex_one_token): Update.
1931 * macrocmd.c (macro_expand_command): Likewise.
1932 (macro_expand_once_command): Likewise.
1933
b1a35af2
SM
19342020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
1935
1936 * inf-loop.c (inferior_event_handler): Remove client_data param.
1937 * inf-loop.h (inferior_event_handler): Likewise.
1938 * infcmd.c (step_1): Adjust.
1939 * infrun.c (proceed): Adjust.
1940 (fetch_inferior_event): Remove client_data param.
1941 (infrun_async_inferior_event_handler): Adjust.
1942 * infrun.h (fetch_inferior_event): Remove `void *` param.
1943 * linux-nat.c (handle_target_event): Adjust.
1944 * record-btrace.c (record_btrace_handle_async_inferior_event):
1945 Adjust.
1946 * record-full.c (record_full_async_inferior_event_handler):
1947 Adjust.
1948 * remote.c (remote_async_inferior_event_handler): Adjust.
1949
1cdf9e33
TT
19502020-07-01 Tom Tromey <tom@tromey.com>
1951
1952 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
1953 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
1954
32c1e210
TT
19552020-07-01 Tom Tromey <tom@tromey.com>
1956
1957 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
1958 tui_gen_win_info.
1959 (tui_win_info::make_window): Merge with
1960 tui_gen_win_info::make_window.
1961 (tui_win_info::make_visible): Move from tui_gen_win_info.
1962 * tui/tui-win.c (tui_win_info::max_width): Move from
1963 tui_gen_win_info.
1964 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
1965 type.
1966 <window_factory>: Likewise.
1967 * tui/tui-layout.c (tui_win_info::resize): Move from
1968 tui_gen_win_info.
1969 (make_standard_window): Change return type.
1970 (get_locator_window, tui_get_window_by_name): Likewise.
1971 (tui_layout_window::apply): Remove a cast.
1972 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
1973 (struct tui_win_info): Merge with tui_gen_win_info.
1974 (struct tui_gen_win_info): Remove.
1975
a30cb6da
TT
19762020-07-01 Tom Tromey <tom@tromey.com>
1977
1978 * tui/tui-stack.h (struct tui_locator_window): Derive from
1979 tui_win_info.
1980 <do_scroll_horizontal, do_scroll_vertical>: New methods.
1981 <can_box>: New method.
1982
1eb2161f
TT
19832020-07-01 Tom Tromey <tom@tromey.com>
1984
1985 * tui/tui-stack.h (struct tui_locator_window): Remove body.
1986
7134f2eb
TT
19872020-07-01 Tom Tromey <tom@tromey.com>
1988
1989 * tui/tui-regs.c (tui_data_window::display_registers_from)
1990 (tui_data_window::display_registers_from)
1991 (tui_data_window::first_data_item_displayed)
1992 (tui_data_window::delete_data_content_windows): Update.
1993 (tui_data_window::refresh_window, tui_data_window::no_refresh):
1994 Remove.
1995 (tui_data_window::check_register_values): Update.
1996 (tui_data_item_window::rerender): Add parameters. Update.
1997 (tui_data_item_window::refresh_window): Remove.
1998 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
1999 virtual.
2000 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
2001 tui_gen_win_info.
2002 <refresh_window, max_height, min_height>: Remove.
2003 <rerender>: Add parameters.
2004 <x, y, visible>: New members.
2005 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
2006 <m_item_width>: New member.
2007
22b7b041
TT
20082020-07-01 Tom Tromey <tom@tromey.com>
2009
2010 * tui/tui-regs.c (tui_data_window::show_register_group)
2011 (tui_data_window::check_register_values): Update.
2012 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
2013 from item_no.
2014
c9753adb
TT
20152020-07-01 Tom Tromey <tom@tromey.com>
2016
2017 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
2018 useless "if".
2019
9ab26b4a
TT
20202020-07-01 Tom Tromey <tom@tromey.com>
2021
2022 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
2023 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
2024
e555083f
TT
20252020-07-01 Tom Tromey <tom@tromey.com>
2026
2027 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
2028 * tui/tui-winsource.h (enum tui_line_or_address_kind)
2029 (struct tui_line_or_address): Move from tui-data.h.
2030 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
2031 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
2032 (tui_cmd_window, tui_source_window_base, tui_source_window)
2033 (tui_disasm_window): Don't declare.
2034 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
2035 to tui-winsource.h.
2036 (SINGLE_KEY): Move to tui-stack.c.
2037
7a02bab7
TT
20382020-07-01 Tom Tromey <tom@tromey.com>
2039
2040 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
2041 std::string.
2042 * tui/tui-regs.c (class tab_expansion_file): New.
2043 (tab_expansion_file::write): New method.
2044 (tui_register_format): Change return type. Use
2045 tab_expansion_file.
2046 (tui_get_register, tui_data_window::display_registers_from)
2047 (tui_data_item_window::rerender): Update.
2048 * tui/tui-io.h (tui_expand_tabs): Don't declare.
2049 * tui/tui-io.c (tui_expand_tabs): Remove.
2050
ea68593b
TT
20512020-07-01 Tom Tromey <tom@tromey.com>
2052
2053 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
2054
a8caed5d
FS
20552020-07-01 Fangrui Song <maskray@google.com>
2056
2057 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
2058
9cdf9820
AKS
20592020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
2060
2061 * dwarf2/read.c (set_die_type): Removed conditions to restrict
2062 forms for DW_AT_associated and DW_AT_allocated attributes,
2063 which is already checked in function attr_to_dynamic_prop.
2064
a1520ad8
TT
20652020-06-30 Tom Tromey <tromey@adacore.com>
2066
2067 * dwarf2/read.c (quirk_rust_enum): Correctly call
2068 alloc_rust_variant for default-less enum.
2069
5ac58899
TT
20702020-06-30 Tom Tromey <tromey@adacore.com>
2071
2072 PR build/26183:
2073 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
2074 gdb::to_string.
2075
19b187a9
SM
20762020-06-29 Simon Marchi <simon.marchi@efficios.com>
2077
2078 * gdbarch.sh (displaced_step_copy_insn): Update doc.
2079 * gdbarch.h: Re-generate.
2080
cd4c4c07
TT
20812020-06-28 Tom Tromey <tom@tromey.com>
2082
2083 * command.h (cmd_types): Remove.
2084 (cmd_type): Don't declare.
2085 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
2086 typedef.
2087 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
2088 * cli/cli-decode.c (cmd_type): Remove.
2089
05779d57
PA
20902020-06-27 Pedro Alves <palves@redhat.com>
2091
2092 * fork-child.c (prefork_hook): Adjust.
2093 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
2094 Delete.
2095 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
2096 * inferior.c (inferior::set_tty, inferior::tty): New methods.
2097 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
2098 Remove declarations.
2099 (struct inferior) <set_tty, tty>: New methods.
2100 (struct inferior) <terminal>: Rename to ...
2101 (struct inferior) <m_terminal>: ... this and make private.
2102 * main.c (captured_main_1): Adjust.
2103 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
2104 (mi_cmd_inferior_tty_show): Adjust.
2105 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
2106 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
2107
1776e3e5
NA
21082020-06-26 Nick Alcock <nick.alcock@oracle.com>
2109
2110 * configure.ac: Add --enable-libctf: handle --disable-static
2111 properly.
2112 * acinclude.m4: sinclude ../config/enable.m4.
2113 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
2114 (LIBCTF): Substitute in.
2115 (CTF_DEPS): New, likewise.
2116 (CLIBS): libctf needs symbols from libbfd: move earlier.
2117 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
2118 flags.
2119 * ctfread.c: Surround in ENABLE_LIBCTF.
2120 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
2121 * configure: Regenerate.
2122 * config.in: Likewise.
2123
58373b80
SM
21242020-06-25 Simon Marchi <simon.marchi@efficios.com>
2125
2126 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
2127
277474ee
SM
21282020-06-25 Simon Marchi <simon.marchi@efficios.com>
2129
2130 * inferior.h (struct inferior) <terminal>: Change type to
2131 gdb::unique_xmalloc_ptr<char>.
2132 * inferior.c (inferior::~inferior): Don't free inf->terminal.
2133 * infcmd.c (set_inferior_io_terminal): Don't free terminal
2134 field, adjust to unique pointer.
2135 (get_inferior_io_terminal): Adjust to unique pointer.
2136
6d74da72
AB
21372020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2138
2139 * riscv-tdep.c (riscv_print_registers_info): Loop over all
2140 registers, not just the known core set of registers.
2141
2e52d038
AB
21422020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2143
2144 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
2145 fflags, frm, and fcsr registers.
2146 (riscv_register_reggroup_p): Remove unknown CSRs from save and
2147 restore groups.
2148 (riscv_tdesc_unknown_reg): New function.
2149 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
2150 tdesc_use_registers.
2151 * riscv-tdep.h (struct gdbarch_tdep): Add
2152 unknown_csrs_first_regnum, unknown_csrs_count,
2153 duplicate_fflags_regnum, duplicate_frm_regnum, and
2154 duplicate_fcsr_regnum fields.
2155
be64fd07
AB
21562020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2157
2158 * target-descriptions.c (tdesc_use_registers): Add new parameter a
2159 callback, use the callback (when not null) to help number unknown
2160 registers.
2161 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
2162 (tdesc_use_registers): Add extra parameter to declaration.
2163
3b9fce96
AB
21642020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2165
2166 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
2167 in the file.
2168 (class riscv_pending_register_alias): Likewise.
2169 (riscv_register_feature::register_info): Change 'required_p' field
2170 to 'required', and change its type. Add 'check' member function.
2171 (riscv_register_feature::register_info::check): Define new member
2172 function.
2173 (riscv_xreg_feature): Change initialisation of 'required' field.
2174 (riscv_freg_feature): Likewise.
2175 (riscv_virtual_feature): Likewise.
2176 (riscv_csr_feature): Likewise.
2177 (riscv_check_tdesc_feature): Take extra parameter, the csr
2178 tdesc_feature, rewrite the function to use the new
2179 riscv_register_feature::register_info::check function.
2180 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
2181
865bad26
AB
21822020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2183
2184 * features/Makefile: Remove all references to the deleted files
2185 below.
2186 * features/riscv/32bit-csr.c: Deleted.
2187 * features/riscv/32bit-csr.xml: Deleted.
2188 * features/riscv/64bit-csr.c: Deleted.
2189 * features/riscv/64bit-csr.xml: Deleted.
2190 * features/riscv/rebuild-csr-xml.sh: Deleted.
2191
ed69cbc8
AB
21922020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2193
2194 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
2195 whitespace error for declaration of names member variable.
2196 (struct riscv_register_feature): Add new prefer_first_name member
2197 variable, and fix whitespace error in declaration of registers.
2198 (riscv_xreg_feature): Initialize prefer_first_name field.
2199 (riscv_freg_feature): Likewise.
2200 (riscv_virtual_feature): Likewise.
2201 (riscv_csr_feature): Likewise.
2202 (riscv_register_name): Expand on comments. Remove register name
2203 modifications for CSR and virtual registers.
2204
4445e8f5
AB
22052020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2206
2207 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
2208 errors.
2209
767a879e
AB
22102020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2211
2212 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
2213 riscv-opc.h.
2214 (class riscv_pending_register_alias): New class.
2215 (riscv_check_tdesc_feature): Take vector of pending aliases and
2216 populate it as appropriate.
2217 (riscv_setup_register_aliases): Delete.
2218 (riscv_gdbarch_init): Create vector of pending aliases and pass it
2219 to riscv_check_tdesc_feature in all cases. Use the vector to
2220 create the register aliases.
2221
bb6e55f3
RO
22222020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2223
2224 * sol2-tdep.c (sol2_static_transform_name): Remove.
2225 (sol2_init_abi): Don't register it.
2226 * gdbarch.sh (static_transform_name): Remove.
2227 * gdbarch.c, gdbarch.h: Regenerate.
2228
2229 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
2230 gdbarch_static_transform_name.
2231 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
2232 * stabsread.c (define_symbol) <'X'>: Remove.
2233 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
2234 handling.
2235 <'V'>: Likewise.
2236 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
2237 <'S'>: Remove call to gdbarch_static_transform_name.
2238
c6d36836
RO
22392020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2240
2241 * procfs.c (procfs_pre_trace): New function.
2242 (procfs_target::create_inferior): Pass it to fork_inferior.
2243
a7e6196b
RO
22442020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2245
2246 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
2247 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
2248 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
2249 sol2-tdep.o, sparc-sol2-tdep.o.
2250 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
2251 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
2252 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
2253 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
2254
d412e696
RO
22552020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2256
2257 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
2258 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
2259 Call sol2_init_abi.
2260 Remove calls to set_gdbarch_skip_solib_resolver,
2261 set_gdbarch_core_pid_to_str.
2262 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
2263 (i386_sol2_static_transform_name): Remove.
2264 (i386_sol2_init_abi): Call sol2_init_abi.
2265 Remove calls to set_gdbarch_sofun_address_maybe_missing,
2266 set_gdbarch_static_transform_name,
2267 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
2268 Use sol2_sigtramp_p.
2269 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
2270 (sol2_sigtramp_p): New function.
2271 (sol2_static_transform_name): New function.
2272 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
2273 (sol2_init_abi): New function.
2274 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
2275 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
2276 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
2277 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
2278 (sparc_sol2_static_transform_name): Remove.
2279 (sparc32_sol2_init_abi): Call sol2_init_abi.
2280 Remove calls to set_gdbarch_sofun_address_maybe_missing,
2281 set_gdbarch_static_transform_name,
2282 set_gdbarch_skip_solib_resolver,
2283 set_gdbarch_core_pid_to_str.
2284 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
2285 (sparc_sol2_static_transform_name): Remove
2286 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
2287 call sol2_sigtramp_p.
2288 (sparc64_sol2_init_abi): Call sol2_init_abi.
2289 Remove calls to set_gdbarch_sofun_address_maybe_missing,
2290 set_gdbarch_static_transform_name,
2291 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
2292
a8654e7d
PW
22932020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2294
2295 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
2296 * exec.c (validate_exec_file): If from_tty, set both
2297 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
2298 * symfile.c (symbol_file_add_with_addrs): if always_confirm
2299 and from_tty, unconditionally ask a confirmation.
2300
caa7fd04
AB
23012020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2302
2303 * target-descriptions.c (tdesc_architecture_name): Protect against
2304 NULL pointer dereference.
2305 (maint_print_xml_tdesc_cmd): New function.
2306 (_initialize_target_descriptions): Register new 'maint print
2307 xml-tdesc' command and give it the filename completer.
2308 * NEWS: Mention new 'maint print xml-tdesc' command.
2309
fbf42f4e
AB
23102020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2311
2312 * target-descriptions.c (class tdesc_compatible_info): New class.
2313 (struct target_desc): Change type of compatible vector.
2314 (tdesc_compatible_p): Update for change in type of
2315 target_desc::compatible.
2316 (tdesc_compatible_info_list): New function.
2317 (tdesc_compatible_info_arch_name): New function.
2318 (tdesc_add_compatible): Update for change in type of
2319 target_desc::compatible.
2320 (print_c_tdesc::visit_pre): Likewise.
2321
20821f4e
AB
23222020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2323
2324 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
2325 whitespace to underscore.
2326 (maint_print_c_tdesc_cmd): Use fake filename for target
2327 descriptions that came from the target.
2328 (_initialize_target_descriptions): Add filename command completion
2329 for 'maint print c-tdesc'.
2330
1fb5ee62
SM
23312020-06-23 Simon Marchi <simon.marchi@efficios.com>
2332
2333 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
2334 lines.
2335
fc3ecb3e
SM
23362020-06-23 Simon Marchi <simon.marchi@efficios.com>
2337
2338 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
2339 lines.
2340 (dwarf2_find_location_expression): Likewise.
2341 (call_site_parameter_matches): Likewise.
2342 (dwarf2_compile_expr_to_ax): Likewise.
2343 (disassemble_dwarf_expression): Likewise.
2344 (loclist_describe_location): Likewise.
2345
236ef034
PA
23462020-06-23 Pedro Alves <palves@redhat.com>
2347
2348 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
2349 progspace-and-thread.h. Include scoped-mock-context.h instead.
2350 (register_to_value_test): Use scoped_mock_context.
2351 * regcache.c: Include "scoped-mock-context.h".
2352 (cooked_read_test): Don't error out if a target is already pushed.
2353 Use scoped_mock_context. Adjust.
2354 * scoped-mock-context.h: New file.
2355
39e7ecca
AB
23562020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2357
2358 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
2359 initializer.
2360 (ada_language::is_string_type_p): New member function.
2361 * c-lang.c (c_language_data): Delete la_is_string_type_p
2362 initializer.
2363 (cplus_language_data): Likewise.
2364 (asm_language_data): Likewise.
2365 (minimal_language_data): Likewise.
2366 * d-lang.c (d_language_data): Likewise.
2367 * f-lang.c (f_is_string_type_p): Delete function, implementation
2368 moved to f_language::is_string_type_p.
2369 (f_language_data): Delete la_is_string_type_p initializer.
2370 (f_language::is_string_type_p): New member function,
2371 implementation from f_is_string_type_p.
2372 * go-lang.c (go_is_string_type_p): Delete function, implementation
2373 moved to go_language::is_string_type_p.
2374 (go_language_data): Delete la_is_string_type_p initializer.
2375 (go_language::is_string_type_p): New member function,
2376 implementation from go_is_string_type_p.
2377 * language.c (language_defn::is_string_type_p): Define new member
2378 function.
2379 (default_is_string_type_p): Make static, add comment copied from
2380 header file.
2381 (unknown_language_data): Delete la_is_string_type_p initializer.
2382 (unknown_language::is_string_type_p): New member function.
2383 (auto_language_data): Delete la_is_string_type_p initializer.
2384 (auto_language::is_string_type_p): New member function.
2385 * language.h (language_data): Delete la_is_string_type_p field.
2386 (language_defn::is_string_type_p): Declare new function.
2387 (default_is_string_type_p): Delete desclaration, move comment to
2388 definition.
2389 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
2390 moved to m2_language::is_string_type_p.
2391 (m2_language_data): Delete la_is_string_type_p initializer.
2392 (m2_language::is_string_type_p): New member function,
2393 implementation from m2_is_string_type_p.
2394 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
2395 initializer.
2396 * opencl-lang.c (opencl_language_data): Likewise.
2397 * p-lang.c (pascal_is_string_type_p): Delete function,
2398 implementation moved to pascal_language::is_string_type_p.
2399 (pascal_language_data): Delete la_is_string_type_p initializer.
2400 (pascal_language::is_string_type_p): New member function,
2401 implementation from pascal_is_string_type_p.
2402 * rust-lang.c (rust_is_string_type_p): Delete function,
2403 implementation moved to rust_language::is_string_type_p.
2404 (rust_language_data): Delete la_is_string_type_p initializer.
2405 (rust_language::is_string_type_p): New member function,
2406 implementation from rust_is_string_type_p.
2407 * valprint.c (val_print_scalar_or_string_type_p): Update call to
2408 is_string_type_p.
2409
4ffc13fb
AB
24102020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2411
2412 * ada-lang.c (ada_language_data): Delete la_print_typedef
2413 initializer.
2414 (ada_language::print_typedef): New member function.
2415 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
2416 (cplus_language_data): Likewise.
2417 (asm_language_data): Likewise.
2418 (minimal_language_data): Likewise.
2419 * d-lang.c (d_language_data): Likewise.
2420 * f-lang.c (f_language_data): Likewise.
2421 (f_language::print_typedef): New member function.
2422 * go-lang.c (go_language_data): Delete la_print_typedef
2423 initializer.
2424 * language.c (language_defn::print_typedef): Define member
2425 function.
2426 (unknown_language_data): Delete la_print_typedef initializer.
2427 (unknown_language::print_typedef): New member function.
2428 (auto_language_data): Delete la_print_typedef initializer.
2429 (auto_language::print_typedef): New member function.
2430 * language.h (language_data): Delete la_print_typedef field.
2431 (language_defn::print_typedef): Declare new member function.
2432 (LA_PRINT_TYPEDEF): Update call to print_typedef.
2433 (default_print_typedef): Delete declaration.
2434 * m2-lang.c (m2_language_data): Delete la_print_typedef
2435 initializer.
2436 (m2_language::print_typedef): New member function.
2437 * objc-lang.c (objc_language_data): Delete la_print_typedef
2438 initializer.
2439 * opencl-lang.c (opencl_language_data): Likewise.
2440 * p-lang.c (pascal_language_data): Likewise.
2441 (pascal_language::print_typedef): New member function.
2442 * rust-lang.c (rust_print_typedef): Delete function,
2443 implementation moved to rust_language::print_typedef.
2444 (rust_language): Delete la_print_typedef initializer.
2445 (rust_language::print_typedef): New member function,
2446 implementation from rust_print_typedef.
2447 * typeprint.c (default_print_typedef): Delete.
2448
d711ee67
AB
24492020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2450
2451 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
2452 (ada_language::printstr): New member function.
2453 * c-lang.c (c_language_data): Delete la_printstr initializer.
2454 (cplus_language_data): Likewise.
2455 (asm_language_data): Likewise.
2456 (minimal_language_data): Likewise.
2457 * d-lang.c (d_language_data): Likewise.
2458 * f-lang.c (f_printstr): Rename to f_language::printstr.
2459 (f_language_data): Delete la_printstr initializer.
2460 (f_language::printstr): New member function, implementation from
2461 f_printstr.
2462 * go-lang.c (go_language_data): Delete la_printstr initializer.
2463 * language.c (language_defn::printstr): Define new member
2464 function.
2465 (unk_lang_printstr): Delete.
2466 (unknown_language_data): Delete la_printstr initializer.
2467 (unknown_language::printstr): New member function.
2468 (auto_language_data): Delete la_printstr initializer.
2469 (auto_language::printstr): New member function.
2470 * language.h (language_data): Delete la_printstr field.
2471 (language_defn::printstr): Declare new member function.
2472 (LA_PRINT_STRING): Update call to printstr.
2473 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
2474 (m2_language_data): Delete la_printstr initializer.
2475 (m2_language::printstr): New member function, implementation from
2476 m2_printstr.
2477 * objc-lang.c (objc_language_data): Delete la_printstr
2478 initializer.
2479 * opencl-lang.c (opencl_language_data): Likewise.
2480 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
2481 (pascal_language_data): Delete la_printstr initializer.
2482 (pascal_language::printstr): New member function, implementation
2483 from pascal_printstr.
2484 * p-lang.h (pascal_printstr): Delete declaration.
2485 * rust-lang.c (rust_printstr): Update header comment.
2486 (rust_language_data): Delete la_printstr initializer.
2487 (rust_language::printstr): New member function.
2488
52b50f2c
AB
24892020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2490
2491 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
2492 (ada_language::printchar): New member function.
2493 * c-lang.c (c_language_data): Delete la_printchar initializer.
2494 (cplus_language_data): Likewise.
2495 (asm_language_data): Likewise.
2496 (minimal_language_data): Likewise.
2497 * d-lang.c (d_language_data): Likewise.
2498 * f-lang.c (f_printchar): Rename to f_language::printchar.
2499 (f_language_data): Delete la_printchar initializer.
2500 (f_language::printchar): New member function, implementation from
2501 f_printchar.
2502 * go-lang.c (go_language_data): Delete la_printchar initializer.
2503 * language.c (unk_lang_printchar): Delete.
2504 (language_defn::printchar): Define new member function.
2505 (unknown_language_data): Delete la_printchar initializer.
2506 (unknown_language::printchar): New member function.
2507 (auto_language_data): Delete la_printchar initializer.
2508 (auto_language::printchar): New member function.
2509 * language.h (language_data): Delete la_printchar field.
2510 (language_defn::printchar): Declare new member function.
2511 (LA_PRINT_CHAR): Update call to printchar.
2512 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
2513 (m2_language::printchar): New member function.
2514 * objc-lang.c (objc_language_data): Delete la_printchar
2515 initializer.
2516 * opencl-lang.c (opencl_language_data): Likewise.
2517 * p-lang.c (pascal_language_data): Delete la_printchar
2518 initializer.
2519 (pascal_language::printchar): New member function.
2520 * rust-lang.c (rust_printchar): Rename to
2521 rust_language::printchar.
2522 (rust_language_data): Delete la_printchar initializer.
2523 (rust_language::printchar): New member function, implementation
2524 from rust_printchar.
2525
ec8cec5b
AB
25262020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2527
2528 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
2529 (ada_language_data): Delete la_emitchar initializer.
2530 (ada_language::emitchar): New member function, implementation from
2531 emit_char.
2532 * c-lang.c (c_language_data): Delete la_emitchar initializer.
2533 (cplus_language_data): Likewise.
2534 (asm_language_data): Likewise.
2535 (minimal_language_data): Likewise.
2536 * d-lang.c (d_language_data): Likewise.
2537 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
2538 (f_language_data): Delete la_emitchar initializer.
2539 (f_language::emitchar): New member function, implementation from
2540 f_emit_char.
2541 * go-lang.c (go_language_data): Delete la_emitchar initializer.
2542 * language.c (unk_lang_emit_char): Delete.
2543 (language_defn::emitchar): New member function definition.
2544 (unknown_language_data): Delete la_emitchar initializer.
2545 (unknown_language::emitchar): New member function.
2546 (auto_language_data): Delete la_emitchar initializer.
2547 (auto_language::emitchar): New member function.
2548 * language.h (language_data): Delete la_emitchar field.
2549 (language_defn::emitchar): New member field declaration.
2550 (LA_EMIT_CHAR): Update call to emitchar.
2551 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
2552 (m2_language_data): Delete la_emitchar initializer.
2553 (m2_language::emitchar): New member function, implementation from
2554 m2_emit_char.
2555 * objc-lang.c (objc_language_data): Delete la_emitchar
2556 initializer.
2557 * opencl-lang.c (opencl_language_data): Likewise.
2558 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
2559 (pascal_language_data): Delete la_emitchar initializer.
2560 (pascal_language::emitchar): New member function, implementation
2561 from pascal_emit_char.
2562 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
2563 (rust_language_data): Delete la_emitchar initializer.
2564 (rust_language::emitchar): New member function, implementation
2565 from rust_emitchar.
2566
1bf9c363
AB
25672020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2568
2569 * ada-lang.c (resolve): Rename to ada_language::post_parser.
2570 (ada_language_data): Delete la_post_parser initializer.
2571 (ada_language::post_parser): New member function.
2572 * c-lang.c (c_language_data): Delete la_post_parser initializer.
2573 (cplus_language_data): Likewise.
2574 (asm_language_data): Likewise.
2575 (minimal_language_data): Likewise.
2576 * d-lang.c (d_language_data): Likewise.
2577 * f-lang.c (f_language_data): Likewise.
2578 * go-lang.c (go_language_data): Likewise.
2579 * language.c (unknown_language_data): Likewise.
2580 (auto_language_data): Likewise.
2581 * language.h (language_data): Delete la_post_parser field.
2582 (language_defn::post_parser): New member function.
2583 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
2584 * objc-lang.c (objc_language_data): Likewise.
2585 * opencl-lang.c (opencl_language_data): Likewise.
2586 * p-lang.c (pascal_language_data): Likewise.
2587 * parse.c (parse_exp_in_context): Update call to post_parser.
2588 (null_post_parser): Delete definition.
2589 * parser-defs.h (null_post_parser): Delete declaration.
2590 * rust-lang.c (rust_language_data): Delete la_post_parser
2591 initializer.
2592
87afa652
AB
25932020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2594
2595 * ada-lang.c (parse): Rename to ada_language::parser.
2596 (ada_language_data): Delete la_parser initializer.
2597 (ada_language::parser): New member function, implementation from
2598 parse.
2599 * c-lang.c (c_language_data): Delete la_parser initializer.
2600 (cplus_language_data): Likewise.
2601 (asm_language_data): Likewise.
2602 (minimal_language_data): Likewise.
2603 * d-lang.c (d_language_data): Likewise.
2604 (d_language::parser): New member function.
2605 * f-lang.c (f_language_data): Delete la_parser initializer.
2606 (f_language::parser): New member function.
2607 * go-lang.c (go_language_data): Delete la_parser initializer.
2608 (go_language::parser): New member function.
2609 * language.c (unk_lang_parser): Delete.
2610 (language_defn::parser): Define new member function.
2611 (unknown_language_data): Delete la_parser initializer.
2612 (unknown_language::parser): New member function.
2613 (auto_language_data): Delete la_parser initializer.
2614 (auto_language::parser): New member function.
2615 * language.h (language_data): Delete la_parser field.
2616 (language_defn::parser): Declare new member function.
2617 * m2-lang.c (m2_language_data): Delete la_parser initializer.
2618 (m2_language::parser): New member function.
2619 * objc-lang.c (objc_language_data): Delete la_parser initializer.
2620 * opencl-lang.c (opencl_language_data): Likewise.
2621 * p-lang.c (pascal_language_data): Likewise.
2622 (pascal_language::parser): New member function.
2623 * parse.c (parse_exp_in_context): Update call to parser.
2624 * rust-lang.c (rust_language_data): Delete la_parser initializer.
2625 (rust_language::parser): New member function.
2626
37825800
AB
26272020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2628
2629 * top.c (print_gdb_configuration): Print --with-python-libdir
2630 configuration value.
2631
5b860c93
PW
26322020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2633
2634 * NEWS: Mention change to the alias command.
2635
cf00cd6f
PW
26362020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2637
2638 * cli/cli-cmds.c (lookup_cmd_for_default_args)
2639 (alias_command_completer)
2640 (make_alias_options_def_group): New functions.
2641 (alias_opts, alias_option_defs): New struct and array.
2642 (alias_usage_error): Update usage.
2643 (alias_command): Handles optional DEFAULT-ARGS... arguments.
2644 Use option framework.
2645 (_initialize_cli_cmds): Update alias command help.
2646 Update aliases command help.
2647 (show_user):
2648 Add NULL for new default_args lookup_cmd argument.
2649 (valid_command_p): Rename to validate_aliased_command.
2650 Add NULL for new default_args lookup_cmd argument. Verify that the
2651 aliased_command has no default args.
2652 * cli/cli-decode.c (help_cmd): Show aliases definitions.
2653 (lookup_cmd_1, lookup_cmd): New argument default_args.
2654 (add_alias_cmd):
2655 Add NULL for new default_args lookup_cmd argument.
2656 (print_help_for_command): Show default args under the layout
2657 alias some_alias = some_aliased_cmd some_alias_default_arg.
2658 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
2659 xfree default_args in destructor.
2660 * cli/cli-script.c (process_next_line, do_define_command):
2661 Add NULL for new default_args lookup_cmd argument.
2662 * command.h: Declare new default_args argument in lookup_cmd
2663 and lookup_cmd_1.
2664 * completer.c (complete_line_internal_1):
2665 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
2666 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
2667 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
2668 Likewise.
2669 * infcmd.c (_initialize_infcmd): Likewise.
2670 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
2671 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
2672 * python/py-param.c (add_setshow_generic): Likewise.
2673 * remote.c (_initialize_remote): Likewise.
2674 * top.c (execute_command): Prepend default_args if command has some.
2675 (set_verbose):
2676 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
2677 * tracepoint.c (validate_actionline, encode_actions_1):
2678 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
2679
bd920864
TBA
26802020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2681
2682 * jit.c (jit_read_descriptor): Use bool as the return type.
2683 (jit_breakpoint_re_set_internal): Use bool as the return type.
2684 Invert the return value logic; return true if the jit breakpoint
2685 has been successfully initialized.
2686 (jit_inferior_init): Update the call to
2687 jit_breakpoint_re_set_internal.
2688
f8098322
PA
26892020-06-22 Pedro Alves <palves@redhat.com>
2690
2691 PR gdb/25939
2692 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
2693 Use the current inferior instead. Don't return
2694 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
2695 wait again.
2696 * sol-thread.c (sol_thread_target::wait): Don't reference
2697 inferior_ptid.
2698 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
2699 (sol_update_thread_list_callback): Use the current inferior's pid
2700 instead of inferior_ptid.
2701
196535a6
RO
27022020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2703
2704 * procfs.c: Cleanup many comments.
2705
2706 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
2707 (AFTER_WATCHFLAG): Replace by value.
2708
2709 (MAIN_PROC_NAME_FORMAT): Inline ...
2710 (create_procinfo): ... here.
2711
2712 (procfs_debug_inferior): Remove SYS_exec handling.
2713 (syscall_is_exec): Likewise.
2714 (procfs_set_exec_trap): Likewise.
2715
2716 (syscall_is_lwp_exit): Inline in callers.
2717 (syscall_is_exit): Likewise.
2718 (syscall_is_exec): Likewise.
2719 (syscall_is_lwp_create): Likewise.
2720
2721 (invalidate_cache): Remove #if 0 code.
2722
2723 (make_signal_thread_runnable): Remove.
2724 (procfs_target::resume): Remove #if 0 code.
2725
cf6f3e86
RO
27262020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2727
2728 PR gdb/25939
2729 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
2730 call ...
2731 (procfs_target::create_inferior): ... here.
2732
48e9cc84
PW
27332020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2734
2735 * exec.c (validate_exec_file): Ensure the build-id is up to
2736 date by calling reopen_exec_file (that checks file timestamp
2737 to decide to re-read the file).
2738
3922b302
PA
27392020-06-18 Pedro Alves <palves@redhat.com>
2740
2741 PR gdb/25412
2742 * gdbthread.h (delete_thread, delete_thread_silent)
2743 (find_thread_ptid): Update comments.
2744 * thread.c (current_thread_): New global.
2745 (is_current_thread): Move higher, and reimplement.
2746 (inferior_thread): Reimplement.
2747 (set_thread_exited): Use bool. Add assertions.
2748 (add_thread_silent): Simplify thread-reuse handling by always
2749 calling delete_thread.
2750 (delete_thread): Remove intro comment.
2751 (find_thread_ptid): Skip exited threads.
2752 (switch_to_thread_no_regs): Write to current_thread_.
2753 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
2754 INFERIOR_PTID. Clear current_thread_.
2755
6dbdab44
PA
27562020-06-18 Pedro Alves <palves@redhat.com>
2757
2758 * aix-thread.c (pd_update): Use switch_to_thread.
2759
2da4b788
PA
27602020-06-18 Pedro Alves <palves@redhat.com>
2761
2762 * ravenscar-thread.c (ravenscar_thread_target): Update.
2763 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
2764 (ravenscar_thread_target::add_active_thread): ... this. Don't
2765 set m_base_ptid here. Update to avoid referencing inferior_ptid.
2766 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
2767
50838d1b
PA
27682020-06-18 Pedro Alves <palves@redhat.com>
2769
2770 * nat/windows-nat.c (current_windows_thread): Remove.
2771 * nat/windows-nat.h (current_windows_thread): Remove.
2772 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
2773 Adjust.
2774 (display_selectors): Adjust to fetch the current
2775 windows_thread_info based on inferior_ptid.
2776 (fake_create_process): No longer write to current_windows_thread.
2777 (windows_nat_target::get_windows_debug_event):
2778 Don't set inferior_ptid or current_windows_thread.
2779 (windows_nat_target::wait): Adjust to not rely on
2780 current_windows_thread.
2781 (do_initial_windows_stuff): Now a method of windows_nat_target.
2782 Switch to the last_ptid thread.
2783 (windows_nat_target::attach): Adjust.
2784 (windows_nat_target::detach): Use switch_to_no_thread instead of
2785 writing to inferior_ptid directly.
2786 (windows_nat_target::create_inferior): Adjust.
2787
31ce04e9
PA
27882020-06-18 Pedro Alves <palves@redhat.com>
2789
2790 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
2791
1ee1a363
PA
27922020-06-18 Pedro Alves <palves@redhat.com>
2793
2794 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
2795 after creating it, instead of writing to inferior_ptid. Don't
2796 write to inferior_ptid.
2797
6d350754
PA
27982020-06-18 Pedro Alves <palves@redhat.com>
2799
2800 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
2801
5d971d48
PA
28022020-06-18 Pedro Alves <palves@redhat.com>
2803
2804 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
2805 it, instead of writing to inferior_ptid.
2806
86e57d1b
PA
28072020-06-18 Pedro Alves <palves@redhat.com>
2808
2809 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
2810 to inferior_ptid.
2811
f2e1c129
PA
28122020-06-18 Pedro Alves <palves@redhat.com>
2813
2814 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
2815 instead of writing to inferior_ptid directly.
2816
60db1b85
PA
28172020-06-18 Pedro Alves <palves@redhat.com>
2818
2819 * corelow.c (core_target::close): Use switch_to_no_thread instead
2820 of writing to inferior_ptid directly.
2821 (add_to_thread_list, core_target_open): Use switch_to_thread
2822 instead of writing to inferior_ptid directly.
2823
fe7d6a8d
PA
28242020-06-18 Pedro Alves <palves@redhat.com>
2825
2826 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
2827 inferior_ptid.
2828 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
2829 inferior_ptid.
2830 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
2831 inferior_ptid directly.
2832 (darwin_nat_target::init_thread_list): Switch to thread, instead
2833 of writing to inferior_ptid.
2834 (darwin_nat_target::attach): Don't write to inferior_ptid.
2835 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
2836
975f8708
PA
28372020-06-18 Pedro Alves <palves@redhat.com>
2838
2839 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
2840 thread.
2841 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
2842 Instead use switch_to_thread.
2843 (gnu_nat_target::detach): Use switch_to_no_thread
2844 instead of writing to inferior_ptid directly. Used passed-in
2845 inferior instead of looking up the inferior by pid.
2846
1a204730
PA
28472020-06-18 Pedro Alves <palves@redhat.com>
2848
2849 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
2850 inferior_ptid.
2851
ebe84f23
PA
28522020-06-18 Pedro Alves <palves@redhat.com>
2853
2854 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
2855 inferior_ptid.
2856 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
2857 thread.
2858 (nto_procfs_target::detach): Avoid referencing
2859 inferior_ptid. Use switch_to_no_thread instead of writing to
2860 inferior_ptid directly.
2861 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
2862 instead of writing to inferior_ptid directly.
2863 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
2864 to thread.
2865
191f02e5
PA
28662020-06-18 Pedro Alves <palves@redhat.com>
2867
2868 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
2869 after creating it, instead of writing to inferior_ptid.
2870 (gdbsim_target_open): Use switch_to_no_thread instead of writing
2871 to inferior_ptid directly.
2872 (gdbsim_target::wait): Don't write to inferior_ptid.
2873
0ac55310
PA
28742020-06-18 Pedro Alves <palves@redhat.com>
2875
2876 * remote.c (remote_target::remote_notice_new_inferior): Use
2877 switch_to_thread instead of writing to inferior_ptid directly.
2878 (remote_target::add_current_inferior_and_thread): Use
2879 switch_to_no_thread instead of writing to inferior_ptid directly.
2880 (extended_remote_target::attach): Use switch_to_inferior_no_thread
2881 and switch_to_thread instead of using set_current_inferior or
2882 writing to inferior_ptid directly.
2883
5233f39b
PA
28842020-06-18 Pedro Alves <palves@redhat.com>
2885
2886 * tracectf.c (ctf_target_open): Switch to added thread instead of
2887 writing to inferior_ptid directly.
2888 (ctf_target::close): Use switch_to_no_thread instead of writing to
2889 inferior_ptid directly.
2890
087e161b
PA
28912020-06-18 Pedro Alves <palves@redhat.com>
2892
2893 * tracefile-tfile.c (tfile_target_open): Don't write to
2894 inferior_ptid directly, instead switch to added thread.
2895 (tfile_target::close): Use switch_to_no_thread instead of writing
2896 to inferior_ptid directly.
2897
7fb43e53
PA
28982020-06-18 Pedro Alves <palves@redhat.com>
2899
2900 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
2901 (procfs_target::detach): Use switch_to_no_thread
2902 instead of writing to inferior_ptid directly.
2903 (do_attach): Change return type to void. Switch to the added
2904 thread.
2905 (procfs_target::create_inferior): Switch to the added thread.
2906 (procfs_do_thread_registers): Don't write to inferior_ptid.
2907
18493a00
PA
29082020-06-18 Pedro Alves <palves@redhat.com>
2909
2910 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
2911 of writing to inferior_ptid.
2912 (scoped_restore_exited_inferior): Delete.
2913 (handle_vfork_child_exec_or_exit): Simplify using
2914 scoped_restore_current_pspace_and_thread. Use switch_to_thread
2915 instead of writing to inferior_ptid.
2916 (THREAD_STOPPED_BY): Delete.
2917 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
2918 (thread_stopped_by_hw_breakpoint): Delete.
2919 (save_waitstatus): Use
2920 scoped_restore_current_thread+switch_to_thread, and call
2921 target_stopped_by_watchpoint instead of
2922 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
2923 instead of thread_stopped_by_sw_breakpoint, and
2924 target_stopped_by_hw_breakpoint instead of
2925 thread_stopped_by_hw_breakpoint.
2926 (handle_inferior_event)
2927 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
2928 inferior_ptid directly, nor
2929 set_current_inferior/set_current_program_space. Use
2930 switch_to_thread / switch_to_inferior_no_thread instead.
2931
a0776b13
PA
29322020-06-18 Pedro Alves <palves@redhat.com>
2933
2934 * target.c (generic_mourn_inferior): Use switch_to_no_thread
2935 instead of writing to inferior_ptid.
2936
6155c136
PA
29372020-06-18 Pedro Alves <palves@redhat.com>
2938
2939 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
2940 added thread.
2941 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
2942 to the added thread.
2943 (inf_ptrace_target::detach_success): Use switch_to_no_thread
2944 instead of writing to inferior_ptid.
2945
c5316fc6
PA
29462020-06-18 Pedro Alves <palves@redhat.com>
2947
2948 * gdbarch-selftests.c: Include "progspace-and-thread.h".
2949 (register_to_value_test): Mock a program_space too. Heap-allocate
2950 the address space. Don't write to inferior_ptid. Use
2951 switch_to_thread instead.
2952
8df01799
PA
29532020-06-18 Pedro Alves <palves@redhat.com>
2954
2955 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
2956 Delete.
2957 (find_signalled_thread()): New, factored out from
2958 linux_make_corefile_notes and adjusted to handle exited threads.
2959 (linux_make_corefile_notes): Adjust to use the new
2960 find_signalled_thread.
2961
41792d68
PA
29622020-06-18 Pedro Alves <palves@redhat.com>
2963
2964 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
2965 of saving/restoring inferior_ptid.
2966
612f258a
TT
29672020-06-17 Tom Tromey <tom@tromey.com>
2968
2969 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
2970 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
2971 declare.
2972 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
2973
efb763a5
SM
29742020-06-15 Simon Marchi <simon.marchi@efficios.com>
2975
2976 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
2977 of partial symtabs.
2978
2951f6c0
SM
29792020-06-17 Simon Marchi <simon.marchi@efficios.com>
2980
2981 * regformats/reg-arm.dat: Remove.
2982 * regformats/reg-bfin.dat: Remove.
2983 * regformats/reg-cris.dat: Remove.
2984 * regformats/reg-crisv32.dat: Remove.
2985 * regformats/reg-m32r.dat: Remove.
2986 * regformats/reg-tilegx.dat: Remove.
2987 * regformats/reg-tilegx32.dat: Remove.
2988
7d458ea5
SM
29892020-06-17 Simon Marchi <simon.marchi@efficios.com>
2990
2991 * features/Makefile (WHICH): Remove arm files.
2992 * regformats/arm/arm-with-iwmmxt.dat: Remove.
2993 * regformats/arm/arm-with-neon.dat: Remove.
2994 * regformats/arm/arm-with-vfpv2.dat: Remove.
2995 * regformats/arm/arm-with-vfpv3.dat: Remove.
2996
3af96c0d
SM
29972020-06-17 Simon Marchi <simon.marchi@efficios.com>
2998
2999 * features/Makefile (XMLTOC): Remove rx.xml.
3000
b25e22fd
PA
30012020-06-17 Pedro Alves <palves@redhat.com>
3002
3003 * gdbthread.h (thread_control_state) <trap_expected> Update
3004 comments.
3005
a78a19b1
AB
30062020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3007
3008 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
3009 ada_language::lookup_symbol_nonlocal.
3010 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
3011 (ada_language::lookup_symbol_nonlocal): New member function,
3012 implementation from ada_lookup_symbol_nonlocal.
3013 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
3014 initializer.
3015 (cplus_language_data): Delete la_lookup_symbol_nonlocal
3016 initializer.
3017 (cplus_language::lookup_symbol_nonlocal): New member function.
3018 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
3019 (minimal_language_data) Likewise.
3020 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
3021 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
3022 initializer.
3023 (d_language::lookup_symbol_nonlocal): New member function.
3024 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
3025 initializer.
3026 (f_language::lookup_symbol_nonlocal): New member function.
3027 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
3028 initializer.
3029 * language.c (unknown_language_data): Likewise.
3030 (auto_language_data): Likewise.
3031 * language.h (language_data): Delete la_lookup_symbol_nonlocal
3032 field.
3033 (language_defn::lookup_symbol_nonlocal): New member function.
3034 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
3035 initializer.
3036 * objc-lang.c (objc_language_data): Likewise.
3037 * opencl-lang.c (opencl_language_data): Likewise.
3038 * p-lang.c (pascal_language_data): Likewise.
3039 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
3040 rust_language::lookup_symbol_nonlocal.
3041 (rust_language_data): Delete la_lookup_symbol_nonlocal
3042 initializer.
3043 (rust_language::lookup_symbol_nonlocal): New member function,
3044 implementation from rust_lookup_symbol_nonlocal.
3045 * symtab.c (lookup_symbol_aux): Update call to
3046 lookup_symbol_nonlocal.
3047 (basic_lookup_symbol_nonlocal): Rename to...
3048 (language_defn::lookup_symbol_nonlocal): ...this, and update
3049 header comment. Remove language_defn parameter, and replace with
3050 uses of `this'.
3051 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
3052
ebe2334e
AB
30532020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3054
3055 * ada-lang.c (ada_language_data): Delete la_value_print_inner
3056 initializer.
3057 (ada_language::value_print_inner): New member function.
3058 * c-lang.c (c_language_data): Delete la_value_print_inner
3059 initializer.
3060 (cplus_language_data): Likewise.
3061 (asm_language_data): Likewise.
3062 (minimal_language_data): Likewise.
3063 * d-lang.c (d_language_data): Likewise.
3064 (d_language::value_print_inner): New member function.
3065 * f-lang.c (f_language_data): Delete la_value_print_inner
3066 initializer.
3067 (f_language::value_print_inner): New member function.
3068 * f-lang.h (f_value_print_innner): Rename to...
3069 (f_value_print_inner): ...this (note spelling of 'inner').
3070 * f-valprint.c (f_value_print_innner): Rename to...
3071 (f_value_print_inner): ...this (note spelling of 'inner').
3072 * go-lang.c (go_language_data): Delete la_value_print_inner
3073 initializer.
3074 (go_language::value_print_inner): New member function.
3075 * language.c (language_defn::value_print_inner): Define new member
3076 function.
3077 (unk_lang_value_print_inner): Delete.
3078 (unknown_language_data): Delete la_value_print_inner initializer.
3079 (unknown_language::value_print_inner): New member function.
3080 (auto_language_data): Delete la_value_print_inner initializer.
3081 (auto_language::value_print_inner): New member function.
3082 * language.h (language_data): Delete la_value_print_inner field.
3083 (language_defn::value_print_inner): Delcare new member function.
3084 * m2-lang.c (m2_language_data): Delete la_value_print_inner
3085 initializer.
3086 (m2_language::value_print_inner): New member function.
3087 * objc-lang.c (objc_language_data): Delete la_value_print_inner
3088 initializer.
3089 * opencl-lang.c (opencl_language_data): Likewise.
3090 * p-lang.c (pascal_language_data): Likewise.
3091 (pascal_language::value_print_inner): New member function.
3092 * rust-lang.c (rust_language_data): Delete la_value_print_inner
3093 initializer.
3094 (rust_language::value_print_inner): New member function.
3095 * valprint.c (do_val_print): Update call to value_print_inner.
3096
a1d1fa3e
AB
30972020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3098
3099 * ada-lang.c (ada_language_data): Delete la_value_print
3100 initializer.
3101 (ada_language::value_print): New member function.
3102 * c-lang.c (c_language_data): Delete la_value_print initializer.
3103 (cplus_language_data): Likewise.
3104 (asm_language_data): Likewise.
3105 (minimal_language_data): Likewise.
3106 * d-lang.c (d_language_data): Likewise.
3107 * f-lang.c (f_language_data): Likewise.
3108 * go-lang.c (go_language_data): Likewise.
3109 * language.c (unk_lang_value_print): Delete.
3110 (language_defn::value_print): Define new member function.
3111 (unknown_language_data): Delete la_value_print initializer.
3112 (unknown_language::value_print): New member function.
3113 (auto_language_data): Delete la_value_print initializer.
3114 (auto_language::value_print): New member function.
3115 * language.h (language_data): Delete la_value_print field.
3116 (language_defn::value_print): Declare new member function.
3117 (LA_VALUE_PRINT): Update call to value_print.
3118 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
3119 * objc-lang.c (objc_language_data): Likewise.
3120 * opencl-lang.c (opencl_language_data): Likewise.
3121 * p-lang.c (pascal_language_data): Likewise.
3122 (pascal_language::value_print): New member function.
3123 * rust-lang.c (rust_language_data): Delete la_value_print
3124 initializer.
3125
f16a9f57
AB
31262020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3127
3128 * ada-lang.c (ada_watch_location_expression): Rename to
3129 ada_language::watch_location_expression.
3130 (ada_language_data): Delete la_watch_location_expression
3131 initializer.
3132 (ada_language::watch_location_expression): New member function,
3133 implementation from ada_watch_location_expression.
3134 * breakpoint.c (watch_command_1): Update call to
3135 watch_location_expression.
3136 * c-lang.c (c_watch_location_expression): Rename to
3137 language_defn::watch_location_expression.
3138 (c_language_data): Delete la_watch_location_expression
3139 initializer.
3140 (cplus_language_data): Likewise.
3141 (asm_language_data): Likewise.
3142 (minimal_language_data): Likewise.
3143 * c-lang.h (c_watch_location_expression): Delete declaration.
3144 * d-lang.c (d_language_data): Delete la_watch_location_expression
3145 initializer.
3146 * f-lang.c (f_language_data): Likewise.
3147 * go-lang.c (go_language_data): Likewise.
3148 * language.c (language_defn::watch_location_expression): Member
3149 function implementation from c_watch_location_expression.
3150 (unknown_language_data): Delete la_watch_location_expression
3151 initializer.
3152 (auto_language_data): Likewise.
3153 * language.h (language_data): Delete la_watch_location_expression
3154 field.
3155 (language_defn::watch_location_expression): Declare new member
3156 function.
3157 * m2-lang.c (m2_language_data): Delete
3158 la_watch_location_expression initializer.
3159 * objc-lang.c (objc_language_data): Likewise.
3160 * opencl-lang.c (opencl_language_data): Likewise.
3161 * p-lang.c (pascal_language_data): Likewise.
3162 * rust-lang.c (rust_watch_location_expression): Rename to
3163 rust_language::watch_location_expression.
3164 (rust_language_data): Delete la_watch_location_expression
3165 initializer.
3166 (rust_language::watch_location_expression): New member function,
3167 implementation from rust_watch_location_expression.
3168
7e56227d
AB
31692020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3170
3171 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
3172 ada_language::collect_symbol_completion_matches.
3173 (ada_language_data): Delete la_collect_symbol_completion_matches
3174 initializer.
3175 (ada_language::collect_symbol_completion_matches): New member
3176 function, implementation from
3177 ada_collect_symbol_completion_matches.
3178 * c-lang.c (c_language_data): Delete
3179 la_collect_symbol_completion_matches initializer.
3180 (cplus_language_data): Likewise.
3181 (asm_language_data): Likewise.
3182 (minimal_language_data): Likewise.
3183 * d-lang.c (d_language_data): Likewise.
3184 * f-lang.c (f_collect_symbol_completion_matches): Rename to
3185 f_language::collect_symbol_completion_matches.
3186 (f_language_data): Delete la_collect_symbol_completion_matches
3187 initializer.
3188 (f_language::collect_symbol_completion_matches) New member
3189 function, implementation from f_collect_symbol_completion_matches.
3190 * go-lang.c (go_language_data): Delete
3191 la_collect_symbol_completion_matches initializer.
3192 * language.c (unknown_language_data): Likewise.
3193 (auto_language_data): Likewise.
3194 * language.h (language_data): Delete
3195 la_collect_symbol_completion_matches field.
3196 (language_defn::collect_symbol_completion_matches): New member
3197 function.
3198 * m2-lang.c (m2_language_data): Delete
3199 la_collect_symbol_completion_matches initializer.
3200 * objc-lang.c (objc_language_data): Likewise.
3201 * opencl-lang.c (opencl_language_data): Likewise.
3202 * p-lang.c (pascal_language_data): Likewise.
3203 * rust-lang.c (rust_language_data): Likewise.
3204 * symtab.c (default_collect_symbol_completion_matches): Delete.
3205 (collect_symbol_completion_matches): Update call to
3206 collect_symbol_completion_matches.
3207 (collect_symbol_completion_matches_type): Likewise.
3208 * symtab.h (default_collect_symbol_completion_matches): Delete
3209 declaration.
3210
53fc67f8
AB
32112020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3212
3213 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
3214 (ada_language_data): Delete la_word_break_characters initializer.
3215 (ada_language::word_break_characters): New member function.
3216 * c-lang.c (c_language_data): Delete la_word_break_characters
3217 initializer.
3218 (cplus_language_data): Likewise.
3219 (asm_language_data): Likewise.
3220 (minimal_language_data): Likewise.
3221 * completer.c: Update global comment.
3222 (advance_to_expression_complete_word_point): Update call to
3223 word_break_characters.
3224 (complete_files_symbols): Likewise.
3225 (complete_line_internal_1): Likewise.
3226 (default_completer_handle_brkchars): Likewise.
3227 (skip_quoted_chars): Likewise.
3228 * d-lang.c (d_language_data): Delete la_word_break_characters
3229 initializer.
3230 * f-lang.c (f_word_break_characters): Delete.
3231 (f_language_data): Delete la_word_break_characters initializer.
3232 (f_language::word_break_characters): New member function.
3233 * go-lang.c (go_language_data): Delete la_word_break_characters
3234 initializer.
3235 * language.c (unknown_language_data): Likewise.
3236 (auto_language_data): Likewise.
3237 * language.h (default_word_break_characters): Move declaration to
3238 earlier in the file.
3239 (language_data): Delete la_word_break_characters field.
3240 (language_defn::word_break_characters): New member function.
3241 * m2-lang.c (m2_language_data): Delete la_word_break_characters
3242 initializer.
3243 * objc-lang.c (objc_language_data): Likewise.
3244 * opencl-lang.c (opencl_language_data): Likewise.
3245 * p-lang.c (pascal_language_data): Likewise.
3246 * rust-lang.c (rust_language_data): Likewise.
3247
c9debfb9
AB
32482020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3249
3250 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
3251 (ada_language_data): Delete la_get_symbol_name_matcher
3252 initializer.
3253 (language_defn::get_symbol_name_matcher_inner): New member
3254 function.
3255 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
3256 initializer.
3257 (cplus_language_data): Likewise.
3258 (cplus_language::get_symbol_name_matcher_inner): New member
3259 function.
3260 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
3261 (minimal_language_data): Likewise.
3262 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
3263 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
3264 initializer.
3265 * dictionary.c (iter_match_first_hashed): Update call to
3266 get_symbol_name_matcher.
3267 (iter_match_next_hashed): Likewise.
3268 (iter_match_next_linear): Likewise.
3269 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
3270 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
3271 initializer.
3272 (f_language::get_symbol_name_matcher_inner): New member function.
3273 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
3274 initializer.
3275 * language.c (default_symbol_name_matcher): Update header comment,
3276 make static.
3277 (language_defn::get_symbol_name_matcher): New definition.
3278 (language_defn::get_symbol_name_matcher_inner): Likewise.
3279 (get_symbol_name_matcher): Delete.
3280 (unknown_language_data): Delete la_get_symbol_name_matcher
3281 initializer.
3282 (auto_language_data): Likewise.
3283 * language.h (language_data): Delete la_get_symbol_name_matcher
3284 field.
3285 (language_defn::get_symbol_name_matcher): New member function.
3286 (language_defn::get_symbol_name_matcher_inner): Likewise.
3287 (default_symbol_name_matcher): Delete declaration.
3288 * linespec.c (find_methods): Update call to
3289 get_symbol_name_matcher.
3290 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
3291 initializer.
3292 * minsyms.c (lookup_minimal_symbol): Update call to
3293 get_symbol_name_matcher.
3294 (iterate_over_minimal_symbols): Likewise.
3295 * objc-lang.c (objc_language_data): Delete
3296 la_get_symbol_name_matcher initializer.
3297 * opencl-lang.c (opencl_language_data): Likewise.
3298 * p-lang.c (pascal_language_data): Likewise.
3299 * psymtab.c (psymbol_name_matches): Update call to
3300 get_symbol_name_matcher.
3301 * rust-lang.c (rust_language_data): Delete
3302 la_get_symbol_name_matcher initializer.
3303 * symtab.c (symbol_matches_search_name): Update call to
3304 get_symbol_name_matcher.
3305 (compare_symbol_name): Likewise.
3306
9a49ad8c
AB
33072020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3308
3309 * ada-lang.c (ada_language_data): Delete la_compute_program
3310 initializer.
3311 * c-lang.c (c_language_data): Likewise.
3312 (c_language::compute_program): New member function.
3313 (cplus_language_data): Delete la_compute_program initializer.
3314 (cplus_language::compute_program): New member function.
3315 (asm_language_data): Delete la_compute_program initializer.
3316 (minimal_language_data): Likewise.
3317 * c-lang.h (c_compute_program): Update comment.
3318 (cplus_compute_program): Likewise.
3319 * compile/compile-c-support.c (c_compute_program): Likewise.
3320 (cplus_compute_program): Likewise.
3321 * compile/compile.c (compile_to_object): Update call to
3322 la_compute_program.
3323 * d-lang.c (d_language_data): Delete la_compute_program
3324 initializer.
3325 * f-lang.c (f_language_data): Likewise.
3326 * go-lang.c (go_language_data): Likewise.
3327 * language.c (unknown_language_data): Likewise.
3328 (auto_language_data): Likewise.
3329 * language.h (language_data): Delete la_compute_program field.
3330 (language_defn::compute_program): New member function.
3331 * m2-lang.c (m2_language_data): Delete la_compute_program
3332 initializer.
3333 * objc-lang.c (objc_language_data): Likewise.
3334 * opencl-lang.c (opencl_language_data): Likewise.
3335 * p-lang.c (pascal_language_data): Likewise.
3336 * rust-lang.c (rust_language_data): Likewise.
3337
eff93b4d
AB
33382020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3339
3340 * ada-lang.c (ada_language_data) Delete
3341 la_class_name_from_physname initializer.
3342 * c-lang.c (c_language_data): Likewise.
3343 (cplus_language_data): Likewise.
3344 (cplus_language::class_name_from_physname): New member function.
3345 (asm_language_data): Delete la_class_name_from_physname
3346 initializer.
3347 (minimal_language_data): Likewise.
3348 * d-lang.c (d_language_data): Likewise.
3349 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
3350 method on language_defn class.
3351 (guess_full_die_structure_name): Likewise.
3352 * f-lang.c (f_language_data): Delete la_class_name_from_physname
3353 initializer.
3354 * go-lang.c (go_language_data): Likewise.
3355 * language.c (language_class_name_from_physname): Delete.
3356 (unk_lang_class_name): Delete.
3357 (unknown_language_data): Delete la_class_name_from_physname
3358 initializer.
3359 (auto_language_data): Likewise.
3360 * language.h (language_data): Delete la_class_name_from_physname
3361 field.
3362 (language_defn::class_name_from_physname): New function.
3363 (language_class_name_from_physname): Delete declaration.
3364 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
3365 initializer.
3366 * objc-lang.c (objc_language_data): Likewise.
3367 * opencl-lang.c (opencl_language_data): Likewise.
3368 * p-lang.c (pascal_language_data): Likewise.
3369 * rust-lang.c (rust_language_data): Likewise.
3370
de543742
TT
33712020-06-16 Tom Tromey <tom@tromey.com>
3372
3373 * tui/tui-data.h (STATUS_NAME): New macro.
3374 * tui/tui-layout.c (tui_remove_some_windows)
3375 (initialize_known_windows, tui_register_window)
3376 (tui_layout_split::remove_windows, initialize_layouts)
3377 (tui_new_layout_command): Don't use hard-coded window names.
3378
a350efd4
TT
33792020-06-16 Tom Tromey <tom@tromey.com>
3380
3381 PR tui/25348:
3382 * tui/tui.c (tui_ensure_readline_initialized): Rename from
3383 tui_initialize_readline. Only run once. Call rl_initialize.
3384 * tui/tui.h (tui_ensure_readline_initialized): Rename from
3385 tui_initialize_readline.
3386 * tui/tui-io.c (tui_setup_io): Call
3387 tui_ensure_readline_initialized.
3388 * tui/tui-interp.c (tui_interp::init): Update.
3389
39ec0490
TT
33902020-06-16 Tom Tromey <tom@tromey.com>
3391
3392 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
3393 Also preserve the status window.
3394
d2d1ea20
TT
33952020-06-16 Tom Tromey <tom@tromey.com>
3396
3397 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
3398 where m_window==nullptr.
3399
66920317
TT
34002020-06-15 Tom Tromey <tromey@adacore.com>
3401
3402 * windows-nat.c (windows_nat::handle_output_debug_string):
3403 Update.
3404 (windows_nat::handle_ms_vc_exception): Update.
3405 * target.h (target_read_string): Change API.
3406 * target.c (target_read_string): Change API.
3407 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
3408 Update.
3409 * solib-frv.c (frv_current_sos): Update.
3410 * solib-dsbt.c (dsbt_current_sos): Update.
3411 * solib-darwin.c (darwin_current_sos): Update.
3412 * linux-thread-db.c (inferior_has_bug): Update.
3413 * expprint.c (print_subexp_standard): Update.
3414 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
3415 (ada_exception_message_1): Update.
3416
a5d871dd
TT
34172020-06-15 Tom Tromey <tromey@adacore.com>
3418
3419 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
3420
670e35fa
TT
34212020-06-15 Tom Tromey <tromey@adacore.com>
3422
3423 * valprint.c (read_string): Update comment.
3424 * target.c (MIN): Remove.
3425 (target_read_string): Rewrite.
3426
f5272a3b
TT
34272020-06-15 Tom Tromey <tromey@adacore.com>
3428
3429 * corefile.c (read_memory_string): Remove.
3430 * ada-valprint.c (ada_value_print_ptr): Update.
3431 * ada-lang.h (ada_tag_name): Change return type.
3432 * ada-lang.c (type_from_tag): Update.
3433 (ada_tag_name_from_tsd): Change return type. Use
3434 target_read_string.
3435 (ada_tag_name): Likewise.
3436 * gdbcore.h (read_memory_string): Don't declare.
3437
2c074f49
HD
34382020-06-14 Hannes Domani <ssbssa@yahoo.de>
3439
3440 * symtab.c (rbreak_command): Ignore Windows drive colon.
3441
6a17d503
SM
34422020-06-12 Simon Marchi <simon.marchi@efficios.com>
3443
3444 * NEWS: Mention removed GDBserver host support.
3445
453c733f
NC
34462020-06-12 Nelson Chu <nelson.chu@sifive.com>
3447
3448 * features/riscv/rebuild-csr-xml.sh: Updated.
3449
2b4e6a3f
TT
34502020-06-11 Tom Tromey <tom@tromey.com>
3451
3452 PR gdb/18318:
3453 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
3454
4412332f
JG
34552020-06-09 Jonny Grant <jg@jguk.org>
34562020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
3457
3458 * main.c (captured_main_1): Don't print new line after help.
3459 (print_gdb_help): add mailing list and IRC channel information
3460 to --help. Add new lines between items in the footer. Remove
3461 quotes around bug url.
3462
2f33032a
KS
34632020-06-11 Keith Seitz <keiths@redhat.com>
3464
3465 PR gdb/21356
3466 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
3467 Resolve typedefs for type length calculations.
3468
7ab96794
TV
34692020-06-10 Tom de Vries <tdevries@suse.de>
3470
3471 PR ada/24713
3472 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
3473 (write_psymbols): Enable .gdb_index for ada.
3474 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
3475 ada.
3476
e5f3ece2
TV
34772020-06-10 Tom de Vries <tdevries@suse.de>
3478
3479 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
3480 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
3481 namei" instead of "const char *name" argument.
3482 (dw2_map_matching_symbols): Use "offset_type namei" variant of
3483 dw2_symtab_iter_init.
3484
940da03e
SM
34852020-06-08 Simon Marchi <simon.marchi@efficios.com>
3486
3487 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
3488 to use type::field and field::type instead.
3489
b6cdac4b
SM
34902020-06-08 Simon Marchi <simon.marchi@efficios.com>
3491
3492 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
3493 to use field::type instead.
3494
5d14b6e5
SM
34952020-06-08 Simon Marchi <simon.marchi@efficios.com>
3496
3497 * gdbtypes.h (struct field) <type, set_type>: New methods.
3498 Rename `type` field to...
3499 <m_type>: ... this. Change references throughout to use type or
3500 set_type methods.
3501 (FIELD_TYPE): Use field::type. Change call sites that modify
3502 the field's type to use field::set_type instead.
3503
3d967001
SM
35042020-06-08 Simon Marchi <simon.marchi@efficios.com>
3505
3506 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
3507 to use type::index_type instead.
3508
262abc0d
SM
35092020-06-08 Simon Marchi <simon.marchi@efficios.com>
3510
3511 * gdbtypes.h (struct type) <index_type, set_index_type>: New
3512 methods.
3513 (TYPE_INDEX_TYPE): Use type::index_type.
3514 * gdbtypes.c (create_array_type_with_stride): Likewise.
3515
82836c92
TT
35162020-06-07 Tom Tromey <tom@tromey.com>
3517
3518 * valprint.c (generic_val_print_float): Remove "embedded_offset"
3519 parameter.
3520 (generic_value_print): Update.
3521
940dace9
AB
35222020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
3523
3524 Revert commit 982a38f60b0.
3525 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
3526
982a38f6
AB
35272020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
3528
3529 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
3530 avoid use after free.
3531
82f06518
TV
35322020-06-05 Tom de Vries <tdevries@suse.de>
3533
3534 * NEWS: Fix typos.
3535
f8c41851
SM
35362020-06-04 Simon Marchi <simon.marchi@efficios.com>
3537
3538 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
3539 the per_bfd object.
3540 (dwarf2_read_debug_names): Likewise.
3541 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
3542 object when re-using a per_bfd object with an index.
3543
f9b5d5ea
TV
35442020-06-03 Tom de Vries <tdevries@suse.de>
3545
3546 PR symtab/26046
3547 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
3548 children for C++.
3549 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
3550 DW_TAG_subprogram.
3551
f6eee2d0
AB
35522020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3553
3554 * ada-lang.c (ada_language_data): Delete skip_trampoline
3555 initializer.
3556 * c-lang.c (c_language_data): Likewise.
3557 (cplus_language_data): Likewise.
3558 (cplus_language::skip_trampoline): New member function.
3559 (asm_language_data): Delete skip_trampoline initializer.
3560 (minimal_language_data): Likewise.
3561 * d-lang.c (d_language_data): Likewise.
3562 * f-lang.c (f_language_data): Likewise.
3563 * go-lang.c (go_language_data): Likewise.
3564 * language.c (unk_lang_trampoline): Delete function.
3565 (skip_language_trampoline): Update.
3566 (unknown_language_data): Delete skip_trampoline initializer.
3567 (auto_language_data): Likewise.
3568 * language.h (language_data): Delete skip_trampoline field.
3569 (language_defn::skip_trampoline): New function.
3570 * m2-lang.c (m2_language_data): Delete skip_trampoline
3571 initializer.
3572 * objc-lang.c (objc_skip_trampoline): Delete function, move
3573 implementation to objc_language::skip_trampoline.
3574 (objc_language_data): Delete skip_trampoline initializer.
3575 (objc_language::skip_trampoline): New member function with
3576 implementation from objc_skip_trampoline.
3577 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
3578 initializer.
3579 * p-lang.c (pascal_language_data): Likewise.
3580 * rust-lang.c (rust_language_data): Likewise.
3581
0a50df5d
AB
35822020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3583
3584 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
3585 (ada_language::demangle): New member function.
3586 * c-lang.c (c_language_data): Delete la_demangle initializer.
3587 (cplus_language_data): Delete la_demangle initializer.
3588 (cplus_language::demangle): New member function.
3589 (asm_language_data): Delete la_demangle initializer.
3590 (minimal_language_data): Delete la_demangle initializer.
3591 * d-lang.c (d_language_data): Delete la_demangle initializer.
3592 (d_language::demangle): New member function.
3593 * f-lang.c (f_language_data): Delete la_demangle initializer.
3594 (f_language::demangle): New member function.
3595 * go-lang.c (go_language_data): Delete la_demangle initializer.
3596 (go_language::demangle): New member function.
3597 * language.c (language_demangle): Update.
3598 (unk_lang_demangle): Delete.
3599 (unknown_language_data): Delete la_demangle initializer.
3600 (unknown_language::demangle): New member function.
3601 (auto_language_data): Delete la_demangle initializer.
3602 (auto_language::demangle): New member function.
3603 * language.h (language_data): Delete la_demangle field.
3604 (language_defn::demangle): New function.
3605 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
3606 * objc-lang.c (objc_language_data): Delete la_demangle
3607 initializer.
3608 (objc_language::demangle): New member function.
3609 * opencl-lang.c (opencl_language_data): Delete la_demangle
3610 initializer.
3611 * p-lang.c (pascal_language_data): Likewise.
3612 * rust-lang.c (rust_language_data): Likewise.
3613 (rust_language::demangle): New member function.
3614
fbfb0a46
AB
36152020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3616
3617 * ada-lang.c (ada_language_data): Delete la_print_type
3618 initializer.
3619 (ada_language::print_type): New member function.
3620 * c-lang.c (c_language_data): Delete la_print_type initializer.
3621 (c_language::print_type): New member function.
3622 (cplus_language_data): Delete la_print_type initializer.
3623 (cplus_language::print_type): New member function.
3624 (asm_language_data): Delete la_print_type initializer.
3625 (asm_language::print_type): New member function.
3626 (minimal_language_data): Delete la_print_type initializer.
3627 (minimal_language::print_type): New member function.
3628 * d-lang.c (d_language_data): Delete la_print_type initializer.
3629 (d_language::print_type): New member function.
3630 * f-lang.c (f_language_data): Delete la_print_type initializer.
3631 (f_language::print_type): New member function.
3632 * go-lang.c (go_language_data): Delete la_print_type initializer.
3633 (go_language::print_type): New member function.
3634 * language.c (unk_lang_print_type): Delete.
3635 (unknown_language_data): Delete la_print_type initializer.
3636 (unknown_language::print_type): New member function.
3637 (auto_language_data): Delete la_print_type initializer.
3638 (auto_language::print_type): New member function.
3639 * language.h (language_data): Delete la_print_type field.
3640 (language_defn::print_type): New function.
3641 (LA_PRINT_TYPE): Update.
3642 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
3643 (m2_language::print_type): New member function.
3644 * objc-lang.c (objc_language_data): Delete la_print_type
3645 initializer.
3646 (objc_language::print_type): New member function.
3647 * opencl-lang.c (opencl_print_type): Delete, implementation moved
3648 to opencl_language::print_type.
3649 (opencl_language_data): Delete la_print_type initializer.
3650 (opencl_language::print_type): New member function, implementation
3651 from opencl_print_type.
3652 * p-lang.c (pascal_language_data): Delete la_print_type
3653 initializer.
3654 (pascal_language::print_type): New member function.
3655 * rust-lang.c (rust_print_type): Delete, implementation moved to
3656 rust_language::print_type.
3657 (rust_language_data): Delete la_print_type initializer.
3658 (rust_language::print_type): New member function, implementation
3659 from rust_print_type.
3660
6f827019
AB
36612020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3662
3663 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
3664 implementation moves to...
3665 (ada_language::sniff_from_mangled_name): ...here. Update return
3666 type.
3667 (ada_language_data): Delete la_sniff_from_mangled_name
3668 initializer.
3669 * c-lang.c (c_language_data): Likewise.
3670 (cplus_language_data): Likewise.
3671 (cplus_language::sniff_from_mangled_name): New member function,
3672 implementation taken from gdb_sniff_from_mangled_name.
3673 (asm_language_data): Delete la_sniff_from_mangled_name
3674 initializer.
3675 (minimal_language_data): Likewise.
3676 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
3677 implementation moves to cplus_language::sniff_from_mangled_name.
3678 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
3679 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
3680 moves to...
3681 (d_language::sniff_from_mangled_name): ...here.
3682 (d_language_data): Delete la_sniff_from_mangled_name initializer.
3683 * f-lang.c (f_language_data): Likewise.
3684 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
3685 moves to...
3686 (go_language::sniff_from_mangled_name): ...here.
3687 (go_language_data): Delete la_sniff_from_mangled_name initializer.
3688 * language.c (language_sniff_from_mangled_name): Delete.
3689 (unknown_language_data): Delete la_sniff_from_mangled_name
3690 initializer.
3691 (auto_language_data): Likewise.
3692 * language.h (language_data): Delete la_sniff_from_mangled_name
3693 field.
3694 (language_defn::sniff_from_mangled_name): New function.
3695 (language_sniff_from_mangled_name): Delete declaration.
3696 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
3697 field.
3698 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
3699 implementation moves to...
3700 (objc_language::sniff_from_mangled_name): ...here.
3701 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
3702 * opencl-lang.c (opencl_language_data): Likewise.
3703 * p-lang.c (pascal_language_data): Likewise.
3704 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
3705 implementation moves to...
3706 (rust_language::sniff_from_mangled_name): ...here.
3707 (rust_language_data): Delete la_sniff_from_mangled_name
3708 initializer.
3709 * symtab.c (symbol_find_demangled_name): Call
3710 sniff_from_mangled_name member function.
3711
fb8006fd
AB
37122020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3713
3714 * ada-lang.c (ada_language_data): Delete la_search_name_hash
3715 initializer.
3716 * c-lang.c (c_language_data): Likewise.
3717 (cplus_language_data): Likewise.
3718 (cplus_language::search_name_hash): New member function.
3719 (asm_language_data): Delete la_search_name_hash initializer.
3720 (minimal_language_data): Likewise.
3721 * d-lang.c (d_language_data): Likewise.
3722 * dictionary.c (default_search_name_hash): Rename to...
3723 (language_defn::search_name_hash): ...this.
3724 * f-lang.c (f_language_data): Likewise.
3725 (f_language::search_name_hash): New member function.
3726 * go-lang.c (go_language_data): Delete la_search_name_hash
3727 initializer.
3728 * language.c (unknown_language_data): Likewise.
3729 (auto_language_data): Likewise.
3730 * language.h (struct language_data): Delete la_search_name_hash
3731 field.
3732 (language_defn::search_name_hash): Declare new member function.
3733 (default_search_name_hash): Delete declaration.
3734 * m2-lang.c (m2_language_data): Delete la_search_name_hash
3735 initializer.
3736 * objc-lang.c (objc_language_data): Likewise.
3737 * opencl-lang.c (opencl_language_data): Likewise.
3738 * p-lang.c (pascal_language_data): Likewise.
3739 * rust-lang.c (rust_language_data): Likewise.
3740 * symtab.c (search_name_hash): Update call.
3741
8e25bafe
AB
37422020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3743
3744 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
3745 initializer.
3746 * c-lang.c (class compile_instance): Declare.
3747 (c_language_data): Delete la_get_compile_instance initializer.
3748 (c_language::get_compile_instance): New member function.
3749 (cplus_language_data): Delete la_get_compile_instance initializer.
3750 (cplus_language::get_compile_instance): New member function.
3751 (asm_language_data): Delete la_get_compile_instance initializer.
3752 (minimal_language_data): Likewise.
3753 * c-lang.h (c_get_compile_context): Update comment.
3754 (cplus_get_compile_context): Update comment.
3755 * compile/compile.c (compile_to_object): Update calls, don't rely
3756 on function pointer being NULL.
3757 * d-lang.c (d_language_data): Delete la_get_compile_instance
3758 initializer.
3759 * f-lang.c (f_language_data): Likewise.
3760 * go-lang.c (go_language_data): Likewise.
3761 * language.c (unknown_language_data): Likewise.
3762 (auto_language_data): Likewise.
3763 * language.h (language_data): Delete la_get_compile_instance field.
3764 (language_defn::get_compile_instance): New member function.
3765 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
3766 initializer.
3767 * objc-lang.c (objc_language_data): Likewise.
3768 * opencl-lang.c (opencl_language_data): Likewise.
3769 * p-lang.c (pascal_language_data): Likewise.
3770 * rust-lang.c (rust_language_data): Likewise.
3771
4009ee92
AB
37722020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3773
3774 * ada-lang.c (ada_add_all_symbols): Update comment.
3775 (ada_iterate_over_symbols): Delete, move implementation to...
3776 (ada_language::iterate_over_symbols): ...here, a new member
3777 function, rewrite to use range based for loop.
3778 (ada_language_data): Delete la_iterate_over_symbols initializer.
3779 * c-lang.c (c_language_data): Likewise.
3780 (cplus_language_data): Likewise.
3781 (asm_language_data): Likewise.
3782 (minimal_language_data): Likewise.
3783 * d-lang.c (d_language_data): Likewise.
3784 * f-lang.c (f_language_data): Likewise.
3785 * go-lang.c (go_language_data): Likewise.
3786 * language.c (unknown_language_data): Likewise.
3787 (auto_language_data): Likewise.
3788 * language.h (language_data): Delete la_iterate_over_symbols field.
3789 (language_defn::iterate_over_symbols): New member function.
3790 (LA_ITERATE_OVER_SYMBOLS): Update.
3791 * linespec.c (iterate_over_all_matching_symtabs): Update.
3792 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
3793 initializer.
3794 * objc-lang.c (objc_language_data): Likewise.
3795 * opencl-lang.c (opencl_language_data): Likewise.
3796 * p-lang.c (pascal_language_data): Likewise.
3797 * rust-lang.c (rust_language_data): Likewise.
3798
54f4ca46
AB
37992020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3800
3801 * ada-lang.c (ada_language_data): Delete
3802 la_lookup_transparent_type initializer.
3803 * c-lang.c (c_language_data): Likewise.
3804 (cplus_language_data): Likewise.
3805 (cplus_language::lookup_transparent_type): New member function.
3806 (asm_language_data): Delete la_lookup_transparent_type
3807 initializer.
3808 (minimal_language_data): Likewise.
3809 * d-lang.c (d_language_data): Likewise.
3810 * f-lang.c (f_language_data): Likewise.
3811 * go-lang.c (go_language_data): Likewise.
3812 * language.c (unknown_language_data): Likewise.
3813 (auto_language_data): Likewise.
3814 * language.h (struct language_data): Delete
3815 la_lookup_transparent_type field.
3816 (language_defn::lookup_transparent_type): New member function.
3817 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
3818 initializer.
3819 * objc-lang.c (objc_language_data): Likewise.
3820 * opencl-lang.c (opencl_language_data): Likewise.
3821 * p-lang.c (pascal_language_data): Likewise.
3822 * rust-lang.c (rust_language_data): Likewise.
3823 * symtab.c (symbol_matches_domain): Update call.
3824
1fb314aa
AB
38252020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3826
3827 * ada-lang.c (ada_language_arch_info): Delete function, move
3828 implementation to...
3829 (ada_language::language_arch_info): ...here, a new member
3830 function.
3831 (ada_language_data): Delete la_language_arch_info.
3832 * c-lang.c (c_language_data): Likewise.
3833 (c_language::language_arch_info): New member function.
3834 (cplus_language_arch_info): Delete function, move
3835 implementation to...
3836 (cplus_language::language_arch_info): ...here, a new member
3837 function.
3838 (cplus_language_data): Delete la_language_arch_info.
3839 (asm_language_data): Likewise.
3840 (asm_language::language_arch_info): New member function.
3841 (minimal_language_data): Delete la_language_arch_info.
3842 (minimal_language::language_arch_info): New member function.
3843 * d-lang.c (d_language_arch_info): Delete function, move
3844 implementation to...
3845 (d_language::language_arch_info): ...here, a new member
3846 function.
3847 (d_language_data): Delete la_language_arch_info.
3848 * f-lang.c (f_language_arch_info): Delete function, move
3849 implementation to...
3850 (f_language::language_arch_info): ...here, a new member
3851 function.
3852 (f_language_data): Delete la_language_arch_info.
3853 * go-lang.c (go_language_arch_info): Delete function, move
3854 implementation to...
3855 (go_language::language_arch_info): ...here, a new member
3856 function.
3857 (go_language_data): Delete la_language_arch_info.
3858 * language.c (unknown_language_data): Likewise.
3859 (unknown_language::language_arch_info): New member function.
3860 (auto_language_data): Delete la_language_arch_info.
3861 (auto_language::language_arch_info): New member function.
3862 (language_gdbarch_post_init): Update call to
3863 la_language_arch_info.
3864 * language.h (language_data): Delete la_language_arch_info
3865 function pointer.
3866 (language_defn::language_arch_info): New function.
3867 * m2-lang.c (m2_language_arch_info): Delete function, move
3868 implementation to...
3869 (m2_language::language_arch_info): ...here, a new member
3870 function.
3871 (m2_language_data): Delete la_language_arch_info.
3872 * objc-lang.c (objc_language_arch_info): Delete function, move
3873 implementation to...
3874 (objc_language::language_arch_info): ...here, a new member
3875 function.
3876 (objc_language_data): Delete la_language_arch_info.
3877 * opencl-lang.c (opencl_language_arch_info): Delete function, move
3878 implementation to...
3879 (opencl_language::language_arch_info): ...here, a new member
3880 function.
3881 (opencl_language_data): Delete la_language_arch_info.
3882 * p-lang.c (pascal_language_arch_info): Delete function, move
3883 implementation to...
3884 (pascal_language::language_arch_info): ...here, a new member
3885 function.
3886 (pascal_language_data): Delete la_language_arch_info.
3887 * rust-lang.c (rust_language_arch_info): Delete function, move
3888 implementation to...
3889 (rust_language::language_arch_info): ...here, a new member
3890 function.
3891 (rust_language_data): Delete la_language_arch_info.
3892
48448202
AB
38932020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3894
3895 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
3896 initializer.
3897 * c-lang.c (c_language_data): Likewise.
3898 (cplus_language_data): Likewise.
3899 (cplus_language::pass_by_reference_info): New method.
3900 (asm_language_data): Delete la_pass_by_reference initializer.
3901 (minimal_language_data): Likewise.
3902 * cp-abi.c (cp_pass_by_reference): Remove use of
3903 default_pass_by_reference.
3904 * d-lang.c (d_language_data): Likewise.
3905 * f-lang.c (f_language_data): Likewise.
3906 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
3907 default_pass_by_reference.
3908 * go-lang.c (go_language_data): Likewise.
3909 * language.c (language_pass_by_reference): Update.
3910 (default_pass_by_reference): Delete.
3911 (unknown_language_data): Delete la_pass_by_reference
3912 initializer.
3913 (auto_language_data): Likewise.
3914 * language.h (struct language_data): Delete la_pass_by_reference
3915 field.
3916 (language_defn::pass_by_reference_info): New member function.
3917 (default_pass_by_reference): Delete declaration.
3918 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
3919 initializer.
3920 * objc-lang.c (objc_language_data): Likewise.
3921 * opencl-lang.c (opencl_language_data): Likewise.
3922 * p-lang.c (pascal_language_data): Likewise.
3923 * rust-lang.c (rust_language_data): Likewise.
3924
15e5fd35
AB
39252020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3926
3927 * ada-lang.c (ada_read_var_value): Delete function, move
3928 implementation to...
3929 (ada_language::read_var_value): ...here.
3930 (ada_language_data): Delete la_read_var_value initializer.
3931 * c-lang.c (c_language_data): Likewise.
3932 (cplus_language_data): Likewise.
3933 (minimal_language_data): Likewise.
3934 * d-lang.c (d_language_data): Likewise.
3935 * f-lang.c (f_language_data): Likewise.
3936 * findvar.c (default_read_var_value): Rename to...
3937 (language_defn::read_var_value): ...this.
3938 * findvar.c (read_var_value): Update header comment, and change to
3939 call member function instead of function pointer.
3940 * go-lang.c (go_language_data): Likewise.
3941 * language.c (unknown_language_data): Delete la_read_var_value
3942 initializer.
3943 (auto_language_data): Likewise.
3944 * language.h (struct language_data): Delete la_read_var_value
3945 field.
3946 (language_defn::read_var_value): New member function.
3947 (default_read_var_value): Delete declaration.
3948 * m2-lang.c (m2_language_data): Delete la_read_var_value
3949 initializer.
3950 * objc-lang.c (objc_language_data): Likewise.
3951 * opencl-lang.c (opencl_language_data): Likewise.
3952 * p-lang.c (pascal_language_data): Likewise.
3953 * rust-lang.c (rust_language_data): Likewise.
3954 * value.h (default_read_var_value): Delete declaration.
3955
5bd40f2a
AB
39562020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3957
3958 * ada-lang.c (ada_print_array_index): Delete function, move
3959 implementation to...
3960 (ada_language::print_array_index): ...here.
3961 (ada_language_data): Delete la_print_array_index initializer.
3962 * c-lang.c (c_language_data): Likewise.
3963 (cplus_language_data): Likewise.
3964 (minimal_language_data): Likewise.
3965 * d-lang.c (d_language_data): Likewise.
3966 * f-lang.c (f_language_data): Likewise.
3967 * go-lang.c (go_language_data): Likewise.
3968 * language.c (default_print_array_index): Delete function, move
3969 implementation to...
3970 (language_defn::print_array_index): ...here.
3971 (unknown_language_data): Delete la_print_array_index initializer.
3972 (auto_language_data): Likewise.
3973 * language.h (struct language_data): Delete la_print_array_index
3974 field.
3975 (language_defn::print_array_index): New member function.
3976 (LA_PRINT_ARRAY_INDEX): Update.
3977 (default_print_array_index): Delete declaration.
3978 * m2-lang.c (m2_language_data): Delete la_print_array_index
3979 initializer.
3980 * objc-lang.c (objc_language_data): Likewise.
3981 * opencl-lang.c (opencl_language_data): Likewise.
3982 * p-lang.c (pascal_language_data): Likewise.
3983 * rust-lang.c (rust_language_data): Likewise.
3984
0874fd07
AB
39852020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3986
3987 * gdb/ada-lang.c (ada_language_defn): Convert to...
3988 (ada_language_data): ...this.
3989 (class ada_language): New class.
3990 (ada_language_defn): New static global.
3991 * gdb/c-lang.c (c_language_defn): Convert to...
3992 (c_language_data): ...this.
3993 (class c_language): New class.
3994 (c_language_defn): New static global.
3995 (cplus_language_defn): Convert to...
3996 (cplus_language_data): ...this.
3997 (class cplus_language): New class.
3998 (cplus_language_defn): New static global.
3999 (asm_language_defn): Convert to...
4000 (asm_language_data): ...this.
4001 (class asm_language): New class.
4002 (asm_language_defn): New static global.
4003 (minimal_language_defn): Convert to...
4004 (minimal_language_data): ...this.
4005 (class minimal_language): New class.
4006 (minimal_language_defn): New static global.
4007 * gdb/d-lang.c (d_language_defn): Convert to...
4008 (d_language_data): ...this.
4009 (class d_language): New class.
4010 (d_language_defn): New static global.
4011 * gdb/f-lang.c (f_language_defn): Convert to...
4012 (f_language_data): ...this.
4013 (class f_language): New class.
4014 (f_language_defn): New static global.
4015 * gdb/go-lang.c (go_language_defn): Convert to...
4016 (go_language_data): ...this.
4017 (class go_language): New class.
4018 (go_language_defn): New static global.
4019 * gdb/language.c (unknown_language_defn): Remove declaration.
4020 (current_language): Initialize to nullptr, real initialization is
4021 moved to _initialize_language.
4022 (languages): Delete global.
4023 (language_defn::languages): Define.
4024 (set_language_command): Use language_defn::languages.
4025 (set_language): Likewise.
4026 (range_error): Likewise.
4027 (language_enum): Likewise.
4028 (language_def): Likewise.
4029 (add_set_language_command): Use language_def::languages for the
4030 language list, and language_def to lookup language pointers.
4031 (skip_language_trampoline): Use language_defn::languages.
4032 (unknown_language_defn): Convert to...
4033 (unknown_language_data): ...this.
4034 (class unknown_language): New class.
4035 (unknown_language_defn): New static global.
4036 (auto_language_defn): Convert to...
4037 (auto_language_data): ...this.
4038 (class auto_language): New class.
4039 (auto_language_defn): New static global.
4040 (language_gdbarch_post_init): Use language_defn::languages.
4041 (_initialize_language): Initialize current_language.
4042 * gdb/language.h (struct language_defn): Rename to...
4043 (struct language_data): ...this.
4044 (struct language_defn): New.
4045 (auto_language_defn): Delete.
4046 (unknown_language_defn): Delete.
4047 (minimal_language_defn): Delete.
4048 (ada_language_defn): Delete.
4049 (asm_language_defn): Delete.
4050 (c_language_defn): Delete.
4051 (cplus_language_defn): Delete.
4052 (d_language_defn): Delete.
4053 (f_language_defn): Delete.
4054 (go_language_defn): Delete.
4055 (m2_language_defn): Delete.
4056 (objc_language_defn): Delete.
4057 (opencl_language_defn): Delete.
4058 (pascal_language_defn): Delete.
4059 (rust_language_defn): Delete.
4060 * gdb/m2-lang.c (m2_language_defn): Convert to...
4061 (m2_language_data): ...this.
4062 (class m2_language): New class.
4063 (m2_language_defn): New static global.
4064 * gdb/objc-lang.c (objc_language_defn): Convert to...
4065 (objc_language_data): ...this.
4066 (class objc_language): New class.
4067 (objc_language_defn): New static global.
4068 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
4069 (opencl_language_data): ...this.
4070 (class opencl_language): New class.
4071 (opencl_language_defn): New static global.
4072 * gdb/p-lang.c (pascal_language_defn): Convert to...
4073 (pascal_language_data): ...this.
4074 (class pascal_language): New class.
4075 (pascal_language_defn): New static global.
4076 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
4077 language pointer, update comment format.
4078 * gdb/rust-lang.c (rust_language_defn): Convert to...
4079 (rust_language_data): ...this.
4080 (class rust_language): New class.
4081 (rust_language_defn): New static global.
4082
1313c56e
AB
40832020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
4084
4085 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
4086 member variable.
4087 <m_stmt_at_address>: New member variable.
4088 (lnp_state_machine::record_line): Don't record some lines, update
4089 tracking of is_stmt at the same address.
4090 (lnp_state_machine::lnp_state_machine): Initialise new member
4091 variables.
4092
b7ed9f3d
ST
40932020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
4094
4095 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
4096 "-include gnu-nat-mig.h".
4097 * gnu-nat-mig.h: New file.
4098 * gnu-nat.c: Include "gnu-nat-mig.h".
4099 (exc_server, msg_reply_server, notify_server,
4100 process_reply_server): Remove declarations.
4101
14a8ad62
ST
41022020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4103
4104 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
4105 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
4106 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
4107 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
4108 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
4109 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
4110 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
4111 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
4112 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
4113 to gnu_nat_target class.
4114 * gnu-nat.c: Likewise.
4115 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
4116 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
4117 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
4118 object.
4119 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
4120 instead of `gnu_target'.
4121
0af5e106
ST
41222020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4123
4124 * i386-gnu-tdep.c: Include "gdbcore.h"
4125 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
4126 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
4127 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
4128 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
4129 i386_gnu_sigcontext_addr): New functions
4130 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
4131 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
4132 tdep.
4133
078f2fc9
ST
41342020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4135
4136 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
4137 before fork_inferior call. Avoid calling it if target_is_pushed returns
4138 true.
4139
53dff92c
ST
41402020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4141
4142 * gnu-nat.h (gnu_target): New variable declaration.
4143 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
4144 gnu_target.
4145 * gnu-nat.c (gnu_target): New variable.
4146 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
4147 add_thread_silent, and add_thread calls.
4148 (gnu_nat_target::create_inferior): Pass gnu_target to
4149 add_thread_silent, thread_change_ptid call.
4150 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
4151 call.
4152
5a8b8627
ST
41532020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4154
4155 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
4156 (gnu_nat_target::find_memory_regions): Remove unused
4157 `old_address' variable.
4158
366f550a
ST
41592020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4160
4161 * gnu-nat.c: Include "gdbarch.h".
4162
f14871bf
ST
41632020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4164
4165 * reply_mig_hack.awk (Error return): Cast function through
4166 void *, to bypass compiler function call check.
4167
c6887cfb
ST
41682020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4169
4170 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
4171 $(srcdir)/reply_mig_hack.awk.
4172
6930bffe
ST
41732020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4174
4175 * gnu-nat.h (gnu_debug_flag): Set type to bool.
4176
112c22ed
JG
41772020-05-30 Jonny Grant <jg@jguk.org>
4178
4179 * configure.ac (ACX_BUGURL): change bug URL to https.
4180
f68f85b5
PA
41812020-05-30 Pedro Alves <palves@redhat.com>
4182
4183 * cp-support.c (replace_typedefs_template): New.
4184 (replace_typedefs_qualified_name): Handle
4185 DEMANGLE_COMPONENT_TEMPLATE.
4186
976ca316
SM
41872020-05-29 Simon Marchi <simon.marchi@efficios.com>
4188
4189 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
4190 dwarf2/index-cache.h, dwarf2/index-write.c,
4191 dwarf2/index-write.h, dwarf2/line-header.c,
4192 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
4193 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
4194 variables and fields from `dwarf2_per_objfile` to just
4195 `per_objfile` throughout.
4196
989ade05
SM
41972020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
4198
4199 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
4200 <push_dwarf_reg_entry_value>: Add comment.
4201
c47bae85
KB
42022020-05-28 Kevin Buettner <kevinb@redhat.com>
4203 Keith Seitz <keiths@redhat.com>
4204
4205 * python/python.c (do_start_initialization): Call PyEval_SaveThread
4206 instead of PyEval_ReleaseLock.
4207 (class gdbpy_gil): Move to earlier in file.
4208 (finalize_python): Set gdb_python_initialized.
4209 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
4210 when not initialized.
4211
44486dcf
SM
42122020-05-28 Simon Marchi <simon.marchi@efficios.com>
4213
4214 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
4215 <push_dwarf_reg_entry_value>: Remove assert. Override
4216 per_objfile with caller_per_objfile.
4217
f030440d
TV
42182020-05-28 Tom de Vries <tdevries@suse.de>
4219
4220 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
4221 PR gold/15646 workaround to symbol kind "type".
4222
f0fbb768
TT
42232020-05-27 Tom Tromey <tromey@adacore.com>
4224
4225 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
4226
af0b2a3e
TT
42272020-05-27 Tom Tromey <tromey@adacore.com>
4228
4229 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
4230 Use htab_find_with_hash.
4231 <add_abbrev>: Remove "abbrev_number" parameter.
4232 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
4233 "abbrev_number" parameter. Use htab_find_slot_with_hash.
4234 (hash_abbrev): Add comment.
4235 (abbrev_table::lookup_abbrev): Move to header file.
4236 (abbrev_table::read): Update.
4237
7d00ffec
TT
42382020-05-27 Tom Tromey <tromey@adacore.com>
4239
4240 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
4241 method.
4242 <canonical_name>: New member.
4243 <raw_name>: Rename from "name".
4244 (partial_die_info): Initialize canonical_name.
4245 (scan_partial_symbols): Check raw_name.
4246 (partial_die_parent_scope, partial_die_full_name)
4247 (add_partial_symbol, add_partial_subprogram)
4248 (add_partial_enumeration, load_partial_dies): Use "name" method.
4249 (partial_die_info::name): New method.
4250 (partial_die_info::read, guess_partial_die_structure_name)
4251 (partial_die_info::fixup): Update.
4252
697bba18
TT
42532020-05-27 Tom Tromey <tromey@adacore.com>
4254
4255 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
4256 <get_ref_die_offset>: Inline.
4257 <get_ref_die_offset_complaint>: New method.
4258 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
4259 (attribute::get_ref_die_offset_complaint): Rename from
4260 get_ref_die_offset. Just issue complaint.
4261
c17ace43
HD
42622020-05-27 Hannes Domani <ssbssa@yahoo.de>
4263
4264 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
4265
96445f0b
HD
42662020-05-27 Hannes Domani <ssbssa@yahoo.de>
4267
4268 * exec.c (exec_file_attach): Use errno value of first openp failure.
4269
ac637ec3
HD
42702020-05-27 Hannes Domani <ssbssa@yahoo.de>
4271
4272 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
4273 Don't close thread handle.
4274
17ee85fc
TT
42752020-05-27 Tom Tromey <tom@tromey.com>
4276 Simon Marchi <simon.marchi@efficios.com>
4277
4278 * objfiles.h (struct objfile) <partial_symtabs>: Now a
4279 shared_ptr.
4280 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
4281 member.
4282 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
4283 dwarf2_per_bfd_objfile_data_key>: New globals.
4284 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
4285 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
4286 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
4287 shared.
4288 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
4289 short-circuit when sharing.
4290 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
4291 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
4292
39b16f87
SM
42932020-05-27 Simon Marchi <simon.marchi@efficios.com>
4294
4295 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
4296 to...
4297 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
4298 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
4299
fcf23d5b
SM
43002020-05-27 Simon Marchi <simon.marchi@efficios.com>
4301
4302 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
4303 build_name_components, find_name_components_bounds>:
4304 Add per_objfile parameter.
4305 (struct mapped_index) <symbol_name_at>: Likewise.
4306 (struct mapped_debug_names): Remove constructor.
4307 <dwarf2_per_objfile>: Remove field.
4308 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
4309 (mapped_index_base::find_name_components_bounds,
4310 mapped_index_base::build_name_components,
4311 dw2_expand_symtabs_matching_symbol): Likewise.
4312 (class mock_mapped_index) <symbol_name_at>: Likewise.
4313 (check_match): Likewise.
4314 (check_find_bounds_finds): Likewise.
4315 (test_mapped_index_find_name_component_bounds): Update.
4316 (CHECK_MATCH): Update.
4317 (dw2_expand_symtabs_matching): Update.
4318 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
4319 per_objfile parameter.
4320 <find_vec_in_debug_names>: Likewise.
4321 <m_per_objfile>: New field.
4322 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
4323 parameter.
4324 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
4325 (dw2_debug_names_iterator::next): Update.
4326 (dw2_debug_names_lookup_symbol): Update.
4327 (dw2_debug_names_expand_symtabs_for_function): Update.
4328 (dw2_debug_names_map_matching_symbols): Update.
4329 (dw2_debug_names_expand_symtabs_matching): Update.
4330 (dwarf2_read_debug_names): Update.
4331
7188ed02
SM
43322020-05-27 Simon Marchi <simon.marchi@efficios.com>
4333
4334 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
4335 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
4336 move to dwarf2_per_objfile.
4337 <read_in_chain>: Remove.
4338 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
4339 remove_all_cus, age_comp_units>: New methods.
4340 <m_dwarf2_cus>: New member.
4341 (struct dwarf2_per_cu_data) <cu>: Remove.
4342 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
4343 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
4344 moved to methods of dwarf2_per_objfile.
4345 (dwarf2_clear_marks): Remove.
4346 (dwarf2_queue_item::~dwarf2_queue_item): Update.
4347 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
4348 (dwarf2_per_bfd::free_cached_comp_units): Remove.
4349 (dwarf2_per_objfile::remove_all_cus): New.
4350 (class free_cached_comp_units) <~free_cached_comp_units>:
4351 Update.
4352 (load_cu): Update.
4353 (dw2_do_instantiate_symtab): Adjust.
4354 (fill_in_sig_entry_from_dwo_entry): Adjust.
4355 (cutu_reader::init_tu_and_read_dwo_dies): Update.
4356 (cutu_reader::cutu_reader): Likewise.
4357 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
4358 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
4359 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
4360 and dwarf2_per_objfile::age_comp_units.
4361 (load_partial_comp_unit): Update.
4362 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
4363 (process_queue): Likewise.
4364 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
4365 backlink.
4366 (dwarf2_read_addr_index): Likewise.
4367 (follow_die_offset): Likewise.
4368 (dwarf2_fetch_die_loc_sect_off): Likewise.
4369 (dwarf2_fetch_constant_bytes): Likewise.
4370 (dwarf2_fetch_die_type_sect_off): Likewise.
4371 (follow_die_sig_1): Likewise.
4372 (load_full_type_unit): Likewise.
4373 (read_signatured_type): Likewise.
4374 (dwarf2_cu::dwarf2_cu): Don't set cu field.
4375 (dwarf2_cu::~dwarf2_cu): Remove.
4376 (dwarf2_per_objfile::get_cu): New.
4377 (dwarf2_per_objfile::set_cu): New.
4378 (age_cached_comp_units): Rename to...
4379 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
4380 to std::unordered_map.
4381 (free_one_cached_comp_unit): Rename to...
4382 (dwarf2_per_objfile::remove_cu): ... this. Adjust
4383 to std::unordered_map.
4384 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
4385 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
4386 a dwarf2_per_objfile in data.
4387 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
4388 (dwarf2_clear_marks): Remove.
4389
2e671100
SM
43902020-05-27 Simon Marchi <simon.marchi@efficios.com>
4391
4392 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
4393 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
4394 (init_tu_and_read_dwo_dies): Likewise.
4395 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
4396 (cutu_reader::cutu_reader): Likewise.
4397 (load_partial_comp_unit): Likewise.
4398 (process_psymtab_comp_unit): Update.
4399 (build_type_psymtabs_1): Update.
4400 (process_skeletonless_type_unit): Update.
4401 (load_full_comp_unit): Update.
4402 (find_partial_die): Update.
4403 (dwarf2_read_addr_index): Update.
4404 (read_signatured_type): Update.
4405
2e6a9f79
SM
44062020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4407
4408 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
4409 m_header_read_in>: New fields.
4410 <get_header>: New method.
4411 * dwarf2/read.c (per_cu_header_read_in): Remove.
4412 (dwarf2_per_cu_data::get_header): New.
4413 (dwarf2_per_cu_data::addr_size): Update.
4414 (dwarf2_per_cu_data::offset_size): Update.
4415 (dwarf2_per_cu_data::ref_addr_size): Update.
4416
1b555f17
SM
44172020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4418
4419 * dwarf2/read.c (load_cu): Return dwarf2_cu.
4420 (dw2_do_instantiate_symtab): Update.
4421 (queue_and_load_all_dwo_tus): Change parameter from
4422 dwarf2_per_cu_data to dwarf2_cu.
4423 (dwarf2_fetch_die_loc_sect_off): Update.
4424 (dwarf2_fetch_constant_bytes): Update.
4425 (dwarf2_fetch_die_type_sect_off): Update.
4426
8fc0b21d
SM
44272020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4428
4429 * dwarf2/read.c (process_full_comp_unit,
4430 process_full_type_unit): Remove per_cu, per_objfile paramters.
4431 Add dwarf2_cu parameter.
4432 (process_queue): Update.
4433
168c9250
SM
44342020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4435
4436 * dwarf2/read.c (create_cu_from_index_list): Replace
4437 dwarf2_per_objfile parameter with dwarf2_per_bfd.
4438 (create_cus_from_index_list): Likewise.
4439 (create_cus_from_index): Likewise.
4440 (create_signatured_type_table_from_index): Likewise.
4441 (create_cus_from_debug_names_list): Likewise.
4442 (create_cus_from_debug_names): Likewise.
4443 (dwarf2_read_gdb_index): Update.
4444 (dwarf2_read_debug_names): Update.
4445
e286671b
TT
44462020-05-27 Tom Tromey <tom@tromey.com>
4447 Simon Marchi <simon.marchi@efficios.com>
4448
4449 * dwarf2/read.h (struct dwarf2_per_objfile)
4450 <get_type_for_signatured_type, set_type_for_signatured_type>:
4451 New methods.
4452 <m_type_map>: New member.
4453 (struct signatured_type) <type>: Remove.
4454 * dwarf2/read.c
4455 (dwarf2_per_objfile::get_type_for_signatured_type,
4456 dwarf2_per_objfile::set_type_for_signatured_type): New.
4457 (get_signatured_type): Use new methods.
4458
8adb8487
TT
44592020-05-27 Tom Tromey <tom@tromey.com>
4460 Simon Marchi <simon.marchi@efficios.com>
4461
4462 * dwarf2/read.h (struct type_unit_group_unshareable): New.
4463 (struct dwarf2_per_objfile) <type_units>: New member.
4464 <get_type_unit_group_unshareable>: New method.
4465 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
4466 num_symtabs, symtabs>: Remove; move to
4467 type_unit_group_unshareable.
4468 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
4469 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
4470 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
4471
127bbf4b
SM
44722020-05-27 Simon Marchi <simon.marchi@efficios.com>
4473
4474 * dwarf2/read.h (struct dwarf2_per_cu_data):
4475 <dwarf2_per_objfile>: Remove.
4476 * dwarf2/read.c (create_cu_from_index_list): Don't assign
4477 dwarf2_per_objfile.
4478 (create_signatured_type_table_from_index): Likewise.
4479 (create_signatured_type_table_from_debug_names): Likewise.
4480 (create_debug_type_hash_table): Likewise.
4481 (fill_in_sig_entry_from_dwo_entry): Likewise.
4482 (create_type_unit_group): Likewise.
4483 (read_comp_units_from_section): Likewise.
4484 (create_cus_hash_table): Likewise.
4485
f6e649dd
SM
44862020-05-27 Simon Marchi <simon.marchi@efficios.com>
4487
4488 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
4489 dwarf2_per_cu_data::dwarf2_per_objfile.
4490 (compute_compunit_symtab_includes): Likewise.
4491 (dwarf2_cu::start_symtab): Likewise.
4492
aa66c379
SM
44932020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4494
4495 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
4496 parameter.
4497 * dwarf2/read.c (get_die_type_at_offset): Likewise.
4498 (read_namespace_alias): Update.
4499 (lookup_die_type): Update.
4500 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
4501 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
4502 Update.
4503 (disassemble_dwarf_expression): Update.
4504
120ce1b5
SM
45052020-05-27 Simon Marchi <simon.marchi@efficios.com>
4506
4507 * dwarf2/read.h (struct dwarf2_queue_item): Add
4508 dwarf2_per_objfile parameter, assign new parameter.
4509 <per_objfile>: New field.
4510 * dwarf2/read.c (free_one_cached_comp_unit): Add
4511 dwarf2_per_objfile parameter.
4512 (queue_comp_unit): Likewise.
4513 (dw2_do_instantiate_symtab): Update.
4514 (process_psymtab_comp_unit): Update.
4515 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
4516 (process_imported_unit_die): Update.
4517 (queue_and_load_dwo_tu): Update.
4518 (follow_die_offset): Update.
4519 (follow_die_sig_1): Update.
4520
9f47c707
SM
45212020-05-27 Simon Marchi <simon.marchi@efficios.com>
4522
4523 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
4524 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
4525 (read_call_site_scope): Assign per_objfile.
4526 (dwarf2_per_cu_data::objfile): Remove.
4527 * gdbtypes.h (struct call_site) <per_objfile>: New member.
4528 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
4529 dwarf2_per_objfile parameter.
4530 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
4531 dwarf2_per_objfile parameter.
4532 (dwarf_expr_reg_to_entry_parameter): Add output
4533 dwarf2_per_objfile parameter.
4534 (locexpr_get_frame_base): Update.
4535 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
4536 <push_dwarf_reg_entry_value>: Update.
4537 <call_site_to_target_addr>: Update.
4538 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
4539 parameter.
4540 (value_of_dwarf_reg_entry): Update.
4541 (rw_pieced_value): Update.
4542 (indirect_synthetic_pointer): Update.
4543 (dwarf2_evaluate_property): Update.
4544 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
4545 parameter.
4546 (locexpr_read_variable): Update.
4547 (locexpr_get_symbol_read_needs): Update.
4548 (loclist_read_variable): Update.
4549
14095eb3
SM
45502020-05-27 Simon Marchi <simon.marchi@efficios.com>
4551
4552 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
4553 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
4554 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
4555 parameter.
4556 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
4557 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
4558 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
4559 parameter.
4560 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
4561 sect_variable_value): Add dwarf2_per_objfile parameter.
4562 (class dwarf_evaluate_loc_desc) <dwarf_call,
4563 dwarf_variable_value>: Update.
4564 (fetch_const_value_from_synthetic_pointer): Add
4565 dwarf2_per_objfile parameter.
4566 (fetch_const_value_from_synthetic_pointer): Update.
4567 (coerced_pieced_ref): Update.
4568 (class symbol_needs_eval_context) <dwarf_call,
4569 dwarf_variable_value>: Update.
4570 (dwarf2_compile_expr_to_ax): Update.
4571
3c3cd3d4
SM
45722020-05-27 Simon Marchi <simon.marchi@efficios.com>
4573
4574 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
4575 parameter.
4576 (dwarf2_evaluate_loc_desc_full): Update.
4577
82ca3f51
SM
45782020-05-27 Simon Marchi <simon.marchi@efficios.com>
4579
4580 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
4581 parameter.
4582 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
4583 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
4584 dwarf2_per_objfile parameter.
4585 (decode_debug_loc_dwo_addresses): Likewise.
4586 (dwarf2_find_location_expression): Update.
4587 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
4588 (locexpr_describe_location_piece): Add dwarf2_per_objfile
4589 parameter.
4590 (disassemble_dwarf_expression): Add dwarf2_per_objfile
4591 parameter.
4592 (locexpr_describe_location_1): Likewise.
4593 (locexpr_describe_location): Update.
4594
4b167ea1
SM
45952020-05-27 Simon Marchi <simon.marchi@efficios.com>
4596
4597 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
4598 Remove.
4599 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
4600 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
4601 (dwarf2_compile_property_to_c): Update.
4602 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
4603 use text offset from objfile.
4604 (locexpr_tracepoint_var_ref): Update.
4605 (locexpr_generate_c_location): Update.
4606 (loclist_describe_location): Update.
4607 (loclist_tracepoint_var_ref): Update.
4608 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
4609 dwarf2_per_objfile parameter.
4610 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
4611 use text offset from objfile.
4612 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
4613
89b07335
SM
46142020-05-27 Simon Marchi <simon.marchi@efficios.com>
4615
4616 * dwarf2/expr.h (struct dwarf_expr_context)
4617 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
4618 <offset>: Remove.
4619 <per_objfile>: New member.
4620 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
4621 dwarf2_per_objfile parameter. Don't set offset, set
4622 per_objfile.
4623 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
4624 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
4625 a dwarf2_per_objfile object instead of an offset.
4626 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
4627 constructor.
4628 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
4629 to dwarf2_expr_executor constructor. Don't set offset.
4630 (dwarf2_fetch_cfa_info): Update.
4631 (struct dwarf2_frame_cache) <text_offset>: Remove.
4632 <per_objfile>: New field.
4633 (dwarf2_frame_cache): Update.
4634 (dwarf2_frame_prev_register): Update.
4635 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
4636 <dwarf_evaluate_loc_desc>: Add constructor.
4637 (dwarf2_evaluate_loc_desc_full): Update.
4638 (dwarf2_locexpr_baton_eval): Update.
4639 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
4640 Add constructor.
4641 (dwarf2_loc_desc_get_symbol_read_needs): Update.
4642
293e7e51
SM
46432020-05-27 Simon Marchi <simon.marchi@efficios.com>
4644
4645 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
4646 addr_sized_int_type>: Move to dwarf2_cu.
4647 <int_type>: Move to dwarf2_per_objfile.
4648 (struct dwarf2_per_objfile) <int_type>: Move here.
4649 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
4650 addr_sized_int_type>: Move here.
4651 (read_func_scope): Update.
4652 (read_array_type): Update.
4653 (read_tag_string_type): Update.
4654 (attr_to_dynamic_prop): Update.
4655 (dwarf2_per_cu_data::int_type): Rename to...
4656 (dwarf2_per_objfile::int_type): ... this.
4657 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
4658 (dwarf2_cu::addr_sized_int_type): ... this.
4659 (read_subrange_type): Update.
4660 (dwarf2_per_cu_data::addr_type): Rename to...
4661 (dwarf2_cu::addr_type): ... this.
4662 (set_die_type): Update.
4663
64874a40
SM
46642020-05-27 Simon Marchi <simon.marchi@efficios.com>
4665
4666 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
4667 data through per_cu->cu.
4668
4ab09049
SM
46692020-05-27 Simon Marchi <simon.marchi@efficios.com>
4670
4671 * dwarf2/read.c (lookup_dwo_comp_unit): Change
4672 dwarf2_per_cu_data parameter fo dwarf2_cu.
4673 (lookup_dwo_type_unit): Likewise.
4674 (read_cutu_die_from_dwo): Likewise.
4675 (lookup_dwo_unit): Likewise.
4676 (open_and_init_dwo_file): Likewise.
4677 (lookup_dwo_cutu): Likewise.
4678 (lookup_dwo_comp_unit): Likewise.
4679 (lookup_dwo_type_unit): Likewise.
4680 (cutu_reader::init_tu_and_read_dwo_dies): Update.
4681 (cutu_reader::cutu_reader): Update.
4682
47b14e86
SM
46832020-05-27 Simon Marchi <simon.marchi@efficios.com>
4684
4685 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
4686 parameter.
4687 (process_full_type_unit): Likewise.
4688 (process_queue): Update.
4689
43182c09
SM
46902020-05-27 Simon Marchi <simon.marchi@efficios.com>
4691
4692 * dwarf2/read.c (recursively_compute_inclusions): Add
4693 dwarf2_per_objfile parameter.
4694 (compute_compunit_symtab_includes): Likewise.
4695 (process_cu_includes): Update.
4696
7aa104c4
SM
46972020-05-27 Simon Marchi <simon.marchi@efficios.com>
4698
4699 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
4700 parameter.
4701 (create_type_unit_group): Update.
4702 (process_psymtab_comp_unit_reader): Update.
4703 (build_type_psymtabs_reader): Update.
4704
e3beb21d
SM
47052020-05-27 Simon Marchi <simon.marchi@efficios.com>
4706
4707 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
4708 object through m_this_cu->cu.
4709
d460f660
SM
47102020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4711
4712 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
4713 the info parameter.
4714 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
4715
ab432490
SM
47162020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4717
4718 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
4719 per_objfile parameter.
4720 (load_full_type_unit): Add per_objfile parameter.
4721 (read_signatured_type): Likewise.
4722 (load_full_comp_unit): Likewise.
4723 (load_cu): Likewise.
4724 (dw2_do_instantiate_symtab): Likewise.
4725 (dw2_get_file_names): Likewise.
4726 (dw2_map_symtabs_matching_filename): Update.
4727 (dw_expand_symtabs_matching_file_matcher): Update.
4728 (dw2_map_symbol_filenames): Update.
4729 (process_psymtab_comp_unit): Add per_objfile parameter.
4730 (build_type_psymtabs_1): Update.
4731 (process_skeletonless_type_unit): Update.
4732 (dwarf2_build_psymtabs_hard): Update.
4733 (load_partial_comp_unit): Add per_objfile parameter.
4734 (scan_partial_symbols): Update.
4735 (load_full_comp_unit): Add per_objfile parameter.
4736 (process_imported_unit_die): Update.
4737 (create_cus_hash_table): Update.
4738 (find_partial_die): Update.
4739 (dwarf2_read_addr_index): Update.
4740 (follow_die_offset): Update.
4741 (dwarf2_fetch_die_loc_sect_off): Update.
4742 (dwarf2_fetch_constant_bytes): Update.
4743 (dwarf2_fetch_die_type_sect_off): Update.
4744 (follow_die_sig_1): Update.
4745 (load_full_type_unit): Add per_objfile parameter.
4746 (read_signatured_type): Likewise.
4747
313bad1b
SM
47482020-05-27 Simon Marchi <simon.marchi@efficios.com>
4749
4750 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
4751 of objfile_name.
4752
c3699833
SM
47532020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4754
4755 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
4756 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
4757 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
4758 field.
4759 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
4760 (create_cus_from_index): Update.
4761 (dwarf2_read_gdb_index): Update.
4762 (create_cus_from_debug_names): Update.
4763 (dwarf2_read_debug_names): Update.
4764 (get_abbrev_section_for_cu): Update.
4765 (create_all_comp_units): Update.
4766 (read_attribute_value): Update.
4767 (get_debug_line_section): Update.
4768 * dwarf2/index-cache.c (index_cache::store): Update.
4769 * dwarf2/index-write.c (save_gdb_index_command): Update.
4770 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
4771
1859c670
SM
47722020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4773
4774 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
4775 member.
4776 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
4777 dwarf2_per_cu_data::per_bfd.
4778 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
4779 (create_type_unit_group): Likewise.
4780 (queue_comp_unit): Remove reference to
4781 per_cu->dwarf2_per_objfile.
4782 (maybe_queue_comp_unit): Likewise.
4783 (fill_in_sig_entry_from_dwo_entry): Assign new field.
4784 (create_cus_hash_table): Assign new field.
4785
5e22e966
SM
47862020-05-27 Simon Marchi <simon.marchi@efficios.com>
4787
4788 * dwarf2/read.c: Replace
4789 dwarf2_cu->per_cu->dwarf2_per_objfile references with
4790 dwarf2_cu->per_objfile throughout.
4791
97a1449a
SM
47922020-05-27 Simon Marchi <simon.marchi@efficios.com>
4793
4794 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
4795 parameter, don't use per_cu->dwarf2_per_objfile.
4796 (dw2_instantiate_symtab): Likewise.
4797 (dw2_find_last_source_symtab): Update.
4798 (dw2_map_expand_apply): Update.
4799 (dw2_lookup_symbol): Update.
4800 (dw2_expand_symtabs_for_function): Update.
4801 (dw2_expand_all_symtabs): Update.
4802 (dw2_expand_symtabs_with_fullname): Update.
4803 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
4804 don't use per_cu->dwarf2_per_objfile.
4805 (dw2_expand_marked_cus): Update.
4806 (dw2_find_pc_sect_compunit_symtab): Update.
4807 (dw2_debug_names_lookup_symbol): Update.
4808 (dw2_debug_names_expand_symtabs_for_function): Update.
4809 (dw2_debug_names_map_matching_symbols): Update.
4810 (dwarf2_psymtab::expand_psymtab): Update.
4811
9e021579
SM
48122020-05-27 Simon Marchi <simon.marchi@efficios.com>
4813
4814 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
4815 <per_objfile>: New member.
4816 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
4817 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
4818 call to dwarf2_cu.
4819 (cutu_reader::cutu_reader): Update.
4820 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
4821
ae090bdb
SM
48222020-05-27 Simon Marchi <simon.marchi@efficios.com>
4823
4824 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
4825 struct dwarf2_per_objfile.
4826 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
4827 dwarf2_per_bfd.
4828 * dwarf2/read.c (set_die_type): Update.
4829 (get_die_type_at_offset): Update.
4830
af758d11
SM
48312020-05-27 Tom Tromey <tom@tromey.com>
4832 Simon Marchi <simon.marchi@efficios.com>
4833
4834 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
4835 method.
4836 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
4837 get_symtab, set_symtab>: New methods.
4838 <m_symtabs>: New field.
4839 (struct dwarf2_psymtab): Derive from partial_symtab.
4840 <readin_p, get_compunit_symtab>: Declare methods.
4841 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
4842 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
4843 New methods.
4844 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
4845 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
4846 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
4847 (dw2_symtab_iter_next, dw2_print_stats)
4848 (dw2_expand_symtabs_with_fullname)
4849 (dw2_expand_symtabs_matching_one)
4850 (dw_expand_symtabs_matching_file_matcher)
4851 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
4852 (dw2_debug_names_iterator::next)
4853 (dw2_debug_names_map_matching_symbols)
4854 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
4855 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
4856 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
4857 New methods.
4858 (get_compunit_symtab, process_full_comp_unit)
4859 (process_full_type_unit): Update.
4860 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
4861
5989a64e
SM
48622020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4863
4864 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
4865 then introduce a new dwarf2_per_objfile type.
4866 <read_line_string>: Move to the new dwarf2_per_objfile type.
4867 <objfile>: Likewise.
4868 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
4869 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
4870 dwarf2_per_objfile->per_bfd.
4871 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
4872 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
4873 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
4874 (dwarf2_per_bfd::free_cached_comp_units): ... this.
4875 (dwarf2_has_info): Allocate dwarf2_per_bfd.
4876 (dwarf2_per_objfile::locate_sections): Rename to...
4877 (dwarf2_per_bfd::locate_sections): ... this.
4878 (dwarf2_per_objfile::get_cutu): Rename to...
4879 (dwarf2_per_bfd::get_cutu): ... this.
4880 (dwarf2_per_objfile::get_cu): Rename to...
4881 (dwarf2_per_bfd::get_cu): ... this.
4882 (dwarf2_per_objfile::get_tu): Rename to...
4883 (dwarf2_per_bfd::get_tu): ... this.
4884 (dwarf2_per_objfile::allocate_per_cu): Rename to...
4885 (dwarf2_per_bfd::allocate_per_cu): ... this.
4886 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
4887 (dwarf2_per_bfd::allocate_signatured_type): ... this.
4888 (get_gdb_index_contents_ftype): Change parameter from
4889 dwarf2_per_objfile to dwarf2_per_bfd.
4890 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
4891 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
4892
a50264ba
TT
48932020-05-27 Tom Tromey <tom@tromey.com>
4894 Simon Marchi <simon.marchi@efficios.com>
4895
4896 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
4897 (allocate_piece_closure): Set "per_objfile" member.
4898 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
4899 (locexpr_describe_location, loclist_describe_location): Use new
4900 member.
4901 * dwarf2/read.c (read_call_site_scope)
4902 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
4903 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
4904 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
4905 handle_data_member_location): Set per_objfile member.
4906 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
4907 member.
4908 (struct dwarf2_loclist_baton) <per_objfile>: New member.
4909
d3473f0c
TT
49102020-05-27 Tom Tromey <tom@tromey.com>
4911
4912 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
4913 allocate_signatured_type>: Declare new methods.
4914 <m_num_psymtabs>: New member.
4915 (struct dwarf2_per_cu_data) <index>: New member.
4916 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
4917 (dwarf2_per_objfile::allocate_signatured_type): New methods.
4918 (create_cu_from_index_list): Use allocate_per_cu.
4919 (create_signatured_type_table_from_index)
4920 (create_signatured_type_table_from_debug_names)
4921 (create_debug_type_hash_table, add_type_unit)
4922 (read_comp_units_from_section): Use allocate_signatured_type.
4923
5717c425
TT
49242020-05-27 Tom Tromey <tom@tromey.com>
4925
4926 * psymtab.c (partial_map_expand_apply)
4927 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
4928 (psym_lookup_global_symbol_language)
4929 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
4930 (psym_print_stats, psym_expand_symtabs_for_function)
4931 (psym_map_symbol_filenames, psym_map_matching_symbols)
4932 (psym_expand_symtabs_matching)
4933 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
4934 (maintenance_check_psymtabs): Update.
4935 * psympriv.h (struct partial_symtab) <readin_p,
4936 get_compunit_symtab>: Add objfile parameter.
4937 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
4938 Likewise.
4939 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
4940 get_compunit_symtab>: Likewise.
4941 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
4942
45940949
TT
49432020-05-27 Tom Tromey <tom@tromey.com>
4944
4945 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
4946 member.
4947 * dwarf2/read.c (delete_file_name_entry): Fix comment.
4948 (create_cu_from_index_list)
4949 (create_signatured_type_table_from_index)
4950 (create_signatured_type_table_from_debug_names)
4951 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
4952 (dwarf2_create_include_psymtab)
4953 (create_debug_type_hash_table, add_type_unit)
4954 (create_type_unit_group, read_comp_units_from_section)
4955 (dwarf2_compute_name, create_cus_hash_table)
4956 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
4957 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
4958 obstack.
4959 (dw2_get_real_path): Likewise. Change argument to
4960 dwarf2_per_objfile.
4961
f8c6d152
LM
49622020-05-27 Luis Machado <luis.machado@linaro.org>
4963
4964 PR tdep/26000
4965 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
4966 for ldrd (immediate).
4967
e98d2e6d
PW
49682020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4969
4970 * command.h: Add comment giving the name of class_tui.
4971 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
4972 create the fake command for the help for class_tui.
4973
53a47a3e
TT
49742020-05-26 Tom Tromey <tromey@adacore.com>
4975
4976 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
4977 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
4978 (val_atr): New function.
4979 (value_val_atr): Use it.
4980 * ada-valprint.c (print_optional_low_bound): Change low bound
4981 handling for enums.
4982 (val_print_packed_array_elements): Don't call discrete_position.
4983 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
4984 discrete_position for enum types.
4985 * language.c (default_print_array_index): Change type.
4986 * language.h (struct language_defn) <la_print_array_index>: Add
4987 index_type parameter, change type of index_value.
4988 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
4989 (default_print_array_index): Update.
4990 * valprint.c (maybe_print_array_index): Don't call
4991 value_from_longest. Update.
4992 (value_print_array_elements): Don't call discrete_position.
4993
0bc2354b
TT
49942020-05-26 Tom Tromey <tromey@adacore.com>
4995
4996 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
4997 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
4998
1218a4bf
CDA
49992020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
5000
5001 PR gdb/13519
5002 * avr-tdep.c (avr_integer_to_address): Return data or code
5003 address accordingly to the second 'type' argument of the
5004 function.
5005
92651b1d
MW
50062020-05-25 Michael Weghorn <m.weghorn@posteo.de>
5007
5008 * infcmd.c, inferior.h: (construct_inferior_arguments):
5009 Moved function from here to gdbsupport/common-inferior.{h,cc}
5010
0a4f5f8c
TT
50112020-05-23 Tom Tromey <tom@tromey.com>
5012
5013 Revert commit eca1f90c:
5014 * NEWS: Remove entry for completion styling.
5015 * completer.c (_rl_completion_prefix_display_length): Move
5016 declaration later.
5017 (gdb_fnprint): Revert.
5018 (gdb_display_match_list_1): Likewise.
5019 * cli/cli-style.c (completion_prefix_style)
5020 (completion_difference_style, completion_suffix_style): Remove.
5021 (_initialize_cli_style): Revert.
5022 * cli/cli-style.h (completion_prefix_style)
5023 (completion_difference_style, completion_suffix_style): Don't
5024 declare.
5025
e08bd6c5
PA
50262020-05-24 Pedro Alves <palves@redhat.com>
5027
5028 * symtab.c (completion_list_add_name): Return boolean indication
5029 of whether the symbol matched.
5030 (completion_list_add_symbol): Don't try to remove C++ aliases if
5031 the symbol didn't match in the first place.
5032 * symtab.h (completion_list_add_name): Return bool.
5033
ceacbf6e
SM
50342020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
5035
5036 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
5037 type::field.
5038
26f16254
JB
50392020-05-23 Joel Brobecker <brobecker@adacore.com>
5040
5041 GDB 9.2 released.
5042
eca1f90c
TT
50432020-05-23 Tom Tromey <tom@tromey.com>
5044
5045 * NEWS: Add entry for completion styling.
5046 * completer.c (_rl_completion_prefix_display_length): Move
5047 declaration earlier.
5048 (gdb_fnprint): Use completion_style.
5049 (gdb_display_match_list_1): Likewise.
5050 * cli/cli-style.c (completion_prefix_style)
5051 (completion_difference_style, completion_suffix_style): New
5052 globals.
5053 (_initialize_cli_style): Register new globals.
5054 * cli/cli-style.h (completion_prefix_style)
5055 (completion_difference_style, completion_suffix_style): Declare.
5056
51e2cfa2
PA
50572020-05-23 Pedro Alves <palves@redhat.com>
5058
5059 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
5060 (parse_escape): Use ISDIGIT instead of isdigit.
5061 (puts_debug): Use gdb_isprint instead of isprint.
5062 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
5063 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
5064 ISSPACE instead of isspace.
5065 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
5066 instead of isspace.
5067 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
5068 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
5069 instead of isxdigit and ISDIGIT instead of isdigit.
5070
80fc5e77
SM
50712020-05-22 Simon Marchi <simon.marchi@efficios.com>
5072
5073 * gdbtypes.h (struct type) <field>: New method.
5074 (TYPE_FIELDS): Remove, replace all uses with either type::fields
5075 or type::field.
5076
3cabb6b0
SM
50772020-05-22 Simon Marchi <simon.marchi@efficios.com>
5078
5079 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
5080 (TYPE_FIELDS): Use type::fields. Change all call sites that
5081 modify the propery to use type::set_fields instead.
5082
1f704f76
SM
50832020-05-22 Simon Marchi <simon.marchi@efficios.com>
5084
5085 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
5086 type::num_fields instead.
5087
5e33d5f4
SM
50882020-05-22 Simon Marchi <simon.marchi@efficios.com>
5089
5090 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
5091 methods.
5092 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
5093 that modify the number of fields to use type::set_num_fields
5094 instead.
5095
9392ebb3
TT
50962020-05-22 Tom Tromey <tromey@adacore.com>
5097
5098 * compile/compile-object-load.h (munmap_list_free): Don't
5099 declare.
5100
7c13f4e8
AB
51012020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
5102
5103 * annotate.c (annotate_source_line): Update return type, add call
5104 to update current symtab and line.
5105 * annotate.h (annotate_source_line): Update return type, and
5106 extend header comment.
5107 * source.c (info_line_command): Check annotation_level before
5108 calling annotate_source_line.
5109 * stack.c (print_frame_info): If calling annotate_source_line
5110 returns true, then don't print any other source line information.
5111
aa370940
SM
51122020-05-21 Simon Marchi <simon.marchi@efficios.com>
5113
5114 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
5115
84d53fa9
SM
51162020-05-21 Simon Marchi <simon.marchi@efficios.com>
5117
5118 * coffread.c (patch_type): Remove NULL check before xfree.
5119 * corefile.c (set_gnutarget): Likewise.
5120 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
5121 * exec.c (build_section_table): Likewise.
5122 * remote.c (remote_target::pass_signals): Likewise.
5123 * utils.c (n_spaces): Likewise.
5124 * cli/cli-script.c (document_command): Likewise.
5125 * i386-windows-tdep.c (core_process_module_section): Likewise.
5126 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
5127
9d428aae
SM
51282020-05-20 Simon Marchi <simon.marchi@efficios.com>
5129
5130 * symfile.c (reread_symbols): Clear objfile's section_offsets
5131 vector and section indices, re-compute them by calling
5132 sym_offsets.
5133
250106a7
TT
51342020-05-20 Tom Tromey <tromey@adacore.com>
5135
5136 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
ec16513e 5137 (desc_one_bound, desc_index_type): Compute field name.
250106a7 5138
9a0bacfb
TV
51392020-05-20 Tom de Vries <tdevries@suse.de>
5140
5141 PR symtab/25833
5142 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
5143
7b958a48
AM
51442020-05-20 Alan Modra <amodra@gmail.com>
5145
5146 PR 25993
5147 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
5148 bfd_set_filename.
5149 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
5150 passed to bfd_set_filename.
5151 * symfile-mem.c (add_vsyscall_page): Likewise for string
5152 passed to symbol_file_add_from_memory.
5153 (symbol_file_add_from_memory): Make name param a const char* and
5154 don't strdup.
5155
c7e97679
AM
51562020-05-20 Alan Modra <amodra@gmail.com>
5157
5158 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
5159 rather than accessing bfd->filename directly.
5160 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
5161 and use bfd_section_name.
5162 * dwarf2/frame.c (decode_frame_entry): Likewise.
5163 * exec.c (exec_set_section_address): Likewise.
5164 * solib-aix.c (solib_aix_bfd_open): Likewise.
5165 * stap-probe.c (get_stap_base_address): Likewise.
5166 * symfile.c (reread_symbols): Likewise.
5167
563c591b
TT
51682020-05-19 Tom Tromey <tromey@adacore.com>
5169
5170 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
5171
f408d82c
SM
51722020-05-19 Simon Marchi <simon.marchi@efficios.com>
5173
5174 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
5175
98c59b52
PA
51762020-05-19 Pedro Alves <palves@redhat.com>
5177
5178 * NEWS (set exec-file-mismatch): Adjust entry.
5179 * exec.c: Include "build-id.h".
5180 (validate_exec_file): Try to match build IDs instead of filenames.
5181 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
5182 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
5183 and pass down 'warn_if_slow'.
5184 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
5185 gdb_bfd_open_closure to pass it down.
5186 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
5187
4111f652
PA
51882020-05-19 Pedro Alves <palves@redhat.com>
5189
5190 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
5191 * target.c (target_fileio_open_1): Rename to target_fileio_open
5192 and make extern. Use bool.
5193 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
5194 (target_fileio_read_alloc_1): Adjust.
5195 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
5196 (target_fileio_open_warn_if_slow): Delete declaration.
5197
ad80db5b
PA
51982020-05-19 Pedro Alves <palves@redhat.com>
5199
5200 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
5201 Adjust all callers.
5202
1d6ce4d3
YS
52032020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
5204
5205 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
5206 whether disp is negative.
5207
9005fbbb
SM
52082020-05-19 Simon Marchi <simon.marchi@efficios.com>
5209
5210 * symfile.h (struct symfile_segment_data)
5211 <~symfile_segment_data>: Remove.
5212 <segment_info>: Change to std::vector.
5213 * symfile.c (default_symfile_segments): Update.
5214 * elfread.c (elf_symfile_segments): Update.
5215
68b888ff
SM
52162020-05-19 Simon Marchi <simon.marchi@efficios.com>
5217
5218 * symfile.h (struct symfile_segment_data) <struct segment>: New.
5219 <segments>: New.
5220 <segment_bases, segment_sizes>: Remove.
5221 * symfile.c (default_symfile_segments): Update.
5222 * elfread.c (elf_symfile_segments): Update.
5223 * remote.c (remote_target::get_offsets): Update.
5224 * solib-target.c (solib_target_relocate_section_addresses):
5225 Update.
5226
62982abd
SM
52272020-05-19 Simon Marchi <simon.marchi@efficios.com>
5228
5229 * symfile.h (struct symfile_segment_data): Initialize fields.
5230 <~symfile_segment_data>: Add.
5231 (symfile_segment_data_up): New.
5232 (struct sym_fns) <sym_segments>: Return a
5233 symfile_segment_data_up.
5234 (default_symfile_segments): Return a symfile_segment_data_up.
5235 (free_symfile_segment_data): Remove.
5236 (get_symfile_segment_data): Return a symfile_segment_data_up.
5237 * symfile.c (default_symfile_segments): Likewise.
5238 (get_symfile_segment_data): Likewise.
5239 (free_symfile_segment_data): Remove.
5240 (symfile_find_segment_sections): Update.
5241 * elfread.c (elf_symfile_segments): Return a
5242 symfile_segment_data_up.
5243 * remote.c (remote_target::get_offsets): Update.
5244 * solib-target.c (solib_target_relocate_section_addresses):
5245 Update.
5246 * symfile-debug.c (debug_sym_segments): Return a
5247 symfile_segment_data_up.
5248
7f204339
RO
52492020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5250
e52a0f1b
RO
5251 PR build/25981
5252 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
5253 Hardcode register numbers.
5254
7f204339
RO
5255 PR build/25981
5256 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
5257 procfs_find_LDT_entry): Remove.
5258 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
5259 procfs_find_LDT_entry): Remove.
5260 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
5261 Remove.
5262
7f32a4d5
PA
52632020-05-17 Pedro Alves <palves@redhat.com>
5264 Andrew Burgess <andrew.burgess@embecosm.com>
5265 Keno Fischer <keno@juliacomputing.com>
5266
5267 PR gdb/25741
5268 * breakpoint.c (build_target_condition_list): Update comments.
5269 (build_target_command_list): Update comments and skip matching
5270 locations.
5271 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
5272 a separate function. Simplify "set breakpoint auto-hw off"
5273 handling.
5274 (insert_breakpoints): Update comment.
5275 (tracepoint_locations_match): New parameter. For breakpoints,
5276 compare location types too, if the caller wants to.
5277 (handle_automatic_hardware_breakpoints): New functions.
5278 (bp_location_is_less_than): Also sort by location type and
5279 hardware breakpoint length.
5280 (update_global_location_list): Handle "set breakpoint auto-hw on"
5281 here.
5282 (update_breakpoint_locations): Ask breakpoint_locations_match to
5283 ignore location types.
5284
7d93a1e0
SM
52852020-05-16 Simon Marchi <simon.marchi@efficios.com>
5286
5287 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
5288 type::name instead.
5289
d0e39ea2
SM
52902020-05-16 Simon Marchi <simon.marchi@efficios.com>
5291
5292 * gdbtypes.h (struct type) <name, set_name>: New methods.
5293 (TYPE_CODE): Use type::name. Change all call sites used to set
5294 the name to use type::set_name instead.
5295
2dab0c7b
TT
52962020-05-16 Tom Tromey <tom@tromey.com>
5297
5298 * top.c (quit_force): Update.
5299 * infrun.c (handle_no_resumed): Update.
5300 * top.h (all_uis): New function.
5301 (ALL_UIS): Remove.
5302
59f7bd8d
SM
53032020-05-16 Simon Marchi <simon.marchi@efficios.com>
5304
5305 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
5306
9bf058f0
PA
53072020-05-16 Pedro Alves <palves@redhat.com>
5308
5309 * ia64-linux-nat.c
5310 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
5311 Declare method.
5312 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
5313
8f86ae1a
SM
53142020-05-15 Simon Marchi <simon.marchi@efficios.com>
5315
5316 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
5317 (sparc64_adi_info): Likewise.
5318
d6bc0792
TT
53192020-05-15 Tom Tromey <tom@tromey.com>
5320
5321 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
5322 block_objfile.
5323 (lookup_objfile_from_block): Remove.
5324 (lookup_symbol_in_block, lookup_symbol_in_static_block)
5325 (lookup_global_symbol): Use block_objfile.
5326 * symtab.h (lookup_objfile_from_block): Don't declare.
5327 * printcmd.c (clear_dangling_display_expressions): Use
5328 block_objfile.
5329 * parse.c (operator_check_standard): Use block_objfile.
5330
8c14c3a3
TT
53312020-05-15 Tom Tromey <tom@tromey.com>
5332
5333 * language.c (language_alloc_type_symbol): Set
5334 SYMBOL_SECTION.
5335 * symtab.c (initialize_objfile_symbol): Remove.
5336 (allocate_symbol): Remove.
5337 (allocate_template_symbol): Remove.
5338 * dwarf2/read.c (fixup_go_packaging): Use "new".
5339 (new_symbol): Use "new".
5340 (read_variable): Don't call initialize_objfile_symbol. Use
5341 "new".
5342 (read_func_scope): Use "new".
5343 * xcoffread.c (process_xcoff_symbol): Don't call
5344 initialize_objfile_symbol.
5345 (SYMBOL_DUP): Remove.
5346 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
5347 "new".
5348 * symtab.h (allocate_symbol, initialize_objfile_symbol)
5349 (allocate_template_symbol): Don't declare.
5350 (struct symbol): Add copy constructor. Change defaults.
5351 * jit.c (finalize_symtab): Use "new".
5352 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
5353 Use "new".
5354 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
5355 (common_block_end): Use "new".
5356 * mdebugread.c (parse_symbol): Use "new".
5357 (new_symbol): Likewise.
5358
5b4a1a8d
PW
53592020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5360
5361 * NEWS: Mention changes to help and apropos.
5362
57b4f16e
PW
53632020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5364
5365 * command.h (enum command_class): Improve comments, document
5366 that class_alias is for user-defined aliases, give the class
5367 name for each class, remove unused class_xdb.
5368 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
5369 * breakpoint.c (_initialize_breakpoint): Replace class_alias
5370 by a precise class.
5371 * infcmd.c (_initialize_infcmd): Likewise.
5372 * reverse.c (_initialize_reverse): Likewise.
5373 * stack.c (_initialize_stack): Likewise.
5374 * symfile.c (_initialize_symfile): Likewise.
5375 * tracepoint.c (_initialize_tracepoint): Likewise.
5376
7c05caf7
PW
53772020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5378
5379 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
5380 when their aliased command is traversed.
5381 (help_cmd): Add fput_command_names_styled call to
5382 output command name and aliases when command has an alias.
5383
3b3aaacb
PW
53842020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5385
5386 * cli/cli-decode.h (help_cmd_list): Remove declaration.
5387 * cli/cli-decode.c (help_cmd_list): Declare as static,
5388 remove prefix argument, use bool for recurse arg, rework to show the aliases of
5389 a command together with the command.
5390 (fput_command_name_styled, fput_command_names_styled): New functions.
5391 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
5392 fput_command_name_styled.
5393 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
5394 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
5395
7aa1b46f
PW
53962020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5397
5398 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
5399 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
5400 * command.h (cmd_show_list): Likewise.
5401 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
5402 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
5403
89bcba74
PW
54042020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5405
5406 * unittests/command-def-selftests.c (traverse_command_structure):
5407 Verify all commands of a list have the same prefix command and
5408 that only the top cmdlist commands have a null prefix.
5409
3f4d92eb
PW
54102020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5411
5412 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
5413 as prefix, not one of its aliases.
5414 (set_cmd_prefix): Remove.
5415 (do_add_cmd): Centralize the setting of the prefix of a command, when
5416 command is defined after its full chain of prefix commands.
5417 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
5418 (add_setshow_cmd_full): Likewise.
5419 (update_prefix_field_of_prefixed_commands): New function.
5420 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
5421 update_prefix_field_of_prefixed_commands.
5422 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
5423 addresses of remote_set_cmdlist and remote_show_cmdlist given
5424 as argument, not the address of an argument.
5425 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
5426 * gdb/remote.c (_initialize_remote): Likewise.
5427
0605465f
PW
54282020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5429
5430 * cli/cli-cmds.c (alias_command): Check for an existing alias
5431 using lookup_cmd_composition, as valid_command_p is too strict
5432 and forbids aliases that are the prefix of an existing alias
5433 or command.
5434 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
5435 command is properly recognised as a valid command.
5436
58e6ac70
PW
54372020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5438
5439 * unittests/help-doc-selftests.c: Rename to
5440 unittests/command-def-selftests.c
5441 * unittests/command-def-selftests.c (help_doc_tests): Update some
5442 comments.
5443 (command_structure_tests, traverse_command_structure): New namespace
5444 and function.
5445 (command_structure_invariants_tests): New function.
5446 (_initialize_command_def_selftests) Renamed from
5447 _initialize_help_doc_selftests, register command_structure_invariants
5448 selftest.
5449
a7b9ceb8
PW
54502020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5451
5452 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
5453 an alias of 'show'.
5454
b2188a06
JB
54552020-05-15 Joel Brobecker <brobecker@adacore.com>
5456
5457 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
5458 ada_is_fixed_point_type. Update all callers.
5459 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
5460 all callers.
5461 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
5462 Update all callers.
5463 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
5464 print_fixed_point_type. Update all callers.
5465 * ada-valprint.c (ada_value_print_num): Replace call to
5466 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
5467
a51951c2
KB
54682020-05-14 Kevin Buettner <kevinb@redhat.com>
5469
5470 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
5471 processors.
5472 (cpu_supports_bts): Add CV_AMD case.
5473
29d6859f
LM
54742020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
5475 Simon Marchi <simon.marchi@efficios.com>
5476
5477 * infrun.c (stop_all_threads): Collect multiple wait events at
5478 each pass.
5479
78134374
SM
54802020-05-14 Simon Marchi <simon.marchi@efficios.com>
5481
5482 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
5483 type::code instead.
5484
67607e24
SM
54852020-05-14 Simon Marchi <simon.marchi@efficios.com>
5486
5487 * gdbtypes.h (struct type) <code, set_code>: New methods.
5488 (TYPE_CODE): Use type::code. Change all call sites used to set
5489 the code to use type::set_code instead.
5490
a05575d3
TBA
54912020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5492 Tom de Vries <tdevries@suse.de>
5493 Pedro Alves <palves@redhat.com>
5494
5495 PR threads/25478
5496 * infrun.c (stop_all_threads): Do NOT ignore
5497 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
5498 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
5499 received.
5500 (handle_no_resumed): Remove code handling a live inferior with no
5501 threads.
5502 * remote.c (has_single_non_exited_thread): New.
5503 (remote_target::update_thread_list): Do not delete a thread if is
5504 the last thread of the process.
5505 * thread.c (thread_select): Call delete_exited_threads instead of
5506 prune_threads.
5507
6ad82919
TBA
55082020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5509
5510 * infrun.c (stop_all_threads): Enable/disable thread events of all
5511 targets. Move a debug message denoting the end of the function
5512 into the SCOPED_EXIT block.
5513
d890404b
TBA
55142020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5515
5516 * process-stratum-target.h: Include <set>.
5517 (all_non_exited_process_targets, switch_to_target_no_thread): New
5518 function declarations.
5519 * process-stratum-target.c (all_non_exited_process_targets)
5520 (switch_to_target_no_thread): New function implementations.
5521
293b3ebc
TBA
55222020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5523
5524 * infrun.c (handle_inferior_event): Extract out a piece of code
5525 into...
5526 (mark_non_executing_threads): ...this new function.
5527
7ca9b62a
TBA
55282020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5529
5530 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
5531 use.
5532
fc75c28b
TBA
55332020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5534
5535 * regcache.c (regcache_read_pc_protected): New function
5536 implementation that returns 0 if the PC cannot read via
5537 'regcache_read_pc'.
5538 * infrun.c (proceed): Call 'regcache_read_pc_protected'
5539 instead of 'regcache_read_pc'.
5540 (keep_going_pass_signal): Ditto.
5541
a89febbd
TT
55422020-05-13 Tom Tromey <tromey@adacore.com>
5543
5544 * ada-lang.c (align_value): Remove.
5545 (ada_template_to_fixed_record_type_1): Use align_up.
5546
f7e23710
TBA
55472020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5548
5549 * async-event.c: Update the copyright year.
5550 * async-event.h: Update the copyright year.
5551
02ff80c2
SM
55522020-05-12 Simon Marchi <simon.marchi@efficios.com>
5553
5554 * objfiles.h (is_addr_in_objfile,
5555 shared_objfile_contains_address_p): Return bool.
5556 * objfile.c (is_addr_in_objfile,
5557 shared_objfile_contains_address_p): Return bool.
5558
4fd6c7e8
TT
55592020-05-11 Tom Tromey <tromey@adacore.com>
5560
5561 * cli/cli-cmds.c (info_command): Restore.
5562 (_initialize_cli_cmds): Use add_prefix_command for "info".
5563 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
5564
5eb68a39
TT
55652020-05-11 Tom Tromey <tromey@adacore.com>
5566
5567 * ada-lang.c (ada_value_primitive_field): Now public.
5568 * ada-lang.h (ada_value_primitive_field): Declare.
5569 * ada-valprint.c (print_field_values): Use
5570 ada_value_primitive_field for wrapper fields.
5571
7666722f
TV
55722020-05-11 Tom de Vries <tdevries@suse.de>
5573
5574 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
5575 MODULE_DOMAIN.
5576
3ee6bb11
TV
55772020-05-11 Tom de Vries <tdevries@suse.de>
5578
5579 PR symtab/25941
5580 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
5581 with length 0, if not gdb-produced.
5582 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
5583
43434996
TV
55842020-05-09 Tom de Vries <tdevries@suse.de>
5585
5586 PR gdb/25955
5587 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
5588 calculation.
5589
2f78cffc
TT
55902020-05-09 Tom Tromey <tom@tromey.com>
5591
5592 * top.c (server_command): Now bool.
5593 * top.h (server_command): Now bool.
5594
4f7bc5ed
TT
55952020-05-08 Tom Tromey <tromey@adacore.com>
5596
5597 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
5598 already being processed.
5599
8be4b118
TT
56002020-05-08 Tom Tromey <tom@tromey.com>
5601
5602 * printcmd.c (struct display) <next>: Remove.
5603 <display>: New constructor.
5604 <exp_string>: Now a std::string.
5605 <enabled_p>: Now a bool.
5606 (display_number): Move definition earlier.
5607 (displays): Rename from display_chain. Now a std::vector.
5608 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
5609 (display_command): Update.
5610 (do_one_display, disable_display)
5611 (enable_disable_display_command, do_enable_disable_display):
5612 Update.
5613 (free_display): Remove.
5614 (clear_displays): Rewrite.
5615 (delete_display): Update.
5616 (map_display_numbers): Use function_view. Remove "data"
5617 parameter. Update.
5618 (do_delete_display): Remove.
5619 (undisplay_command): Update.
5620 (do_one_display, do_displays, disable_display)
5621 (info_display_command): Update.
5622 (do_enable_disable_display): Remove.
5623 (enable_disable_display_command)
5624 (clear_dangling_display_expressions): Update.
5625
94c93c35
TT
56262020-05-08 Tom Tromey <tom@tromey.com>
5627
5628 * symtab.c (set_symbol_cache_size)
5629 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
5630 (maintenance_print_symbol_cache_statistics): Update.
5631 * symmisc.c (print_symbol_bcache_statistics)
5632 (print_objfile_statistics, maintenance_print_objfiles)
5633 (maintenance_info_symtabs, maintenance_check_symtabs)
5634 (maintenance_expand_symtabs, maintenance_info_line_tables):
5635 Update.
5636 * symfile-debug.c (set_debug_symfile): Update.
5637 * source.c (forget_cached_source_info): Update.
5638 * python/python.c (gdbpy_progspaces): Update.
5639 * psymtab.c (maintenance_info_psymtabs): Update.
5640 * probe.c (parse_probes): Update.
5641 * linespec.c (iterate_over_all_matching_symtabs)
5642 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
5643 * guile/scm-progspace.c (gdbscm_progspaces): Update.
5644 * exec.c (exec_target::close): Update.
5645 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
5646 * breakpoint.c (print_one_breakpoint_location)
5647 (create_longjmp_master_breakpoint)
5648 (create_std_terminate_master_breakpoint): Update.
5649 * progspace.c (program_spaces): Now a std::vector.
5650 (maybe_new_address_space): Update.
5651 (add_program_space): Remove.
5652 (program_space::program_space): Update.
5653 (remove_program_space): Update.
5654 (number_of_program_spaces): Remove.
5655 (print_program_space, update_address_spaces): Update.
5656 * progspace.h (program_spaces): Change type.
5657 (ALL_PSPACES): Remove.
5658 (number_of_program_spaces): Don't declare.
5659 (struct program_space) <next>: Remove.
5660
a1fd1ac9
TT
56612020-05-08 Tom Tromey <tom@tromey.com>
5662
5663 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
5664 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
5665 (enable_break): Update.
5666 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
5667 (frv_fdpic_find_canonical_descriptor): Update.
5668 (frv_fetch_objfile_link_map): Update.
5669 * progspace.c (program_space::free_all_objfiles): Update.
5670 (program_space::solibs): New method.
5671 * progspace.h (struct program_space) <solibs>: New method.
5672 * solist.h (master_so_list): Don't declare.
5673 (ALL_SO_LIBS): Remove.
5674 * solib.h (so_list_head): Remove.
5675 (update_solib_list): Update comment.
5676 * solib.c (master_so_list): Remove.
5677 (solib_used, update_solib_list, solib_add)
5678 (info_sharedlibrary_command, clear_solib)
5679 (reload_shared_libraries_1, remove_user_added_objfile): Update.
5680
38eae084
TT
56812020-05-08 Tom Tromey <tom@tromey.com>
5682
5683 * extension.c (extension_languages): Now a std::array.
5684 (ALL_EXTENSION_LANGUAGES): Remove.
5685 (get_ext_lang_defn, get_ext_lang_of_file)
5686 (eval_ext_lang_from_control_command): Update.
5687 (finish_ext_lang_initialization)
5688 (auto_load_ext_lang_scripts_for_objfile)
5689 (ext_lang_type_printers::ext_lang_type_printers)
5690 (apply_ext_lang_type_printers)
5691 (ext_lang_type_printers::~ext_lang_type_printers)
5692 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
5693 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
5694 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
5695 (get_matching_xmethod_workers, ext_lang_colorize)
5696 (ext_lang_before_prompt): Update.
5697 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
5698
596dc4ad
TT
56992020-05-08 Tom Tromey <tom@tromey.com>
5700
5701 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
5702 overload.
5703 <swap_string, m_string>: Remove.
5704 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
5705 Update.
5706 * stabsread.c (define_symbol, read_type): Update.
5707 * linespec.c (find_linespec_symbols): Update.
5708 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
5709 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
5710 * dbxread.c (read_dbx_symtab): Update.
5711 * cp-support.h (cp_canonicalize_string_full)
5712 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
5713 Return unique_xmalloc_ptr.
5714 * cp-support.c (inspect_type): Update.
5715 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
5716 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
5717 Likewise.
5718 * c-typeprint.c (print_name_maybe_canonical): Update.
5719 * break-catch-throw.c (check_status_exception_catchpoint):
5720 Update.
5721
bf4cb9be
TV
57222020-05-08 Tom de Vries <tdevries@suse.de>
5723
5724 * infrun.c (follow_fork): Copy current_line and current_symtab to
5725 child thread.
5726
a1b68f28
SM
57272020-05-07 Simon Marchi <simon.marchi@efficios.com>
5728
5729 * async-event.c (struct async_signal_handler, struct
5730 async_event_handler): Reformat, remove typedef.
5731
98d48915
SM
57322020-05-07 Simon Marchi <simon.marchi@efficios.com>
5733
5734 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
5735 access thistype->main_type->dyn_prop_list directly.
5736
7aa91313
SM
57372020-05-07 Simon Marchi <simon.marchi@efficios.com>
5738
5739 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
5740 (remove_dyn_prop): Remove. Update all users to use
5741 type::remove_dyn_prop.
5742 * gdbtypes.c (remove_dyn_prop): Rename to...
5743 (type::remove_dyn_prop): ... this.
5744
5c54719c
SM
57452020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
5746
5747 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
5748 (add_dyn_prop): Remove. Update all users to use
5749 type::add_dyn_prop.
5750 * gdbtypes.c (add_dyn_prop): Rename to...
5751 (type::add_dyn_prop): ... this.
5752
24e99c6c
SM
57532020-05-07 Simon Marchi <simon.marchi@efficios.com>
5754
5755 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
5756 (get_dyn_prop): Remove. Update all users to use
5757 type::dyn_prop.
5758 * gdbtypes.c (get_dyn_prop): Rename to...
5759 (type::dyn_prop): ... this.
5760
0d4bf016
SM
57612020-05-06 Simon Marchi <simon.marchi@efficios.com>
5762
5763 * gdbtypes.h (struct main_type) <flag_static>: Remove.
5764
ac4a4f1c
SM
57652020-05-06 Simon Marchi <simon.marchi@efficios.com>
5766
5767 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
5768 instruction, skip it if it's there.
5769
a3bbacc1
SM
57702020-05-05 Simon Marchi <simon.marchi@efficios.com>
5771
5772 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
5773
c3236f84
SM
57742020-05-04 Simon Marchi <simon.marchi@efficios.com>
5775
5776 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
5777 * gdbtypes.c (recursive_dump_type): Remove use of
5778 TYPE_INCOMPLETE.
5779
3b6acaee
TT
57802020-05-03 Tom Tromey <tom@tromey.com>
5781
5782 * breakpoint.c (catch_command, tcatch_command): Remove.
5783 (_initialize_breakpoint): Use add_basic_prefix_cmd,
5784 add_show_prefix_cmd.
5785 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
5786 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
5787 Remove.
5788 (add_internal_problem_command): Use add_basic_prefix_cmd,
5789 add_show_prefix_cmd.
5790 * mips-tdep.c (set_mipsfpu_command): Remove.
5791 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
5792 * dwarf2/index-cache.c (set_index_cache_command): Remove.
5793 (_initialize_index_cache): Use add_basic_prefix_cmd.
5794 * memattr.c (dummy_cmd): Remove.
5795 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
5796 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
5797 (_initialize_tui_win): Use add_basic_prefix_cmd,
5798 add_show_prefix_cmd.
5799 * cli/cli-logging.c (set_logging_command): Remove.
5800 (_initialize_cli_logging): Use add_basic_prefix_cmd,
5801 add_show_prefix_cmd.
5802 (show_logging_command): Remove.
5803 * target.c (target_command): Remove.
5804 (add_target): Use add_basic_prefix_cmd.
5805
a51119cd
HD
58062020-05-02 Hannes Domani <ssbssa@yahoo.de>
5807
5808 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
5809
652fc23a 58102020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 5811
652fc23a
PW
5812 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
5813 info_command.
5814
117539e6
KR
58152020-04-30 Kamil Rytarowski <n54@gmx.com>
5816
5817 * nbsd-nat.c (nbsd_enable_proc_events)
5818 (nbsd_nat_target::post_startup_inferior): Add.
5819 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
5820 (nbsd_nat_target::update_thread_list): Rewrite.
5821 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
5822 "PTRACE_LWP_CREATE".
5823 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
5824
102e38eb 58252020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 5826
102e38eb
PW
5827 * stack.c (_initialize_stack): Remove duplicated creation
5828 of "frame" command and "f" alias.
5829
ee9d1e5f
HD
58302020-04-30 Hannes Domani <ssbssa@yahoo.de>
5831
5832 PR gdb/18706
5833 * gdbtypes.c (check_typedef): Calculate size of array of
5834 stubbed type.
5835
627c7fb8
HD
58362020-04-30 Hannes Domani <ssbssa@yahoo.de>
5837
5838 PR gdb/15559
5839 * i386-tdep.c (i386_push_dummy_call): Call
5840 i386_thiscall_push_dummy_call.
5841 (i386_thiscall_push_dummy_call): New function.
5842 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
5843 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
5844 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
5845
ffc2844e
SM
58462020-04-29 Simon Marchi <simon.marchi@efficios.com>
5847
5848 * gdbarch.sh (do_read): Add shellcheck disable directive for
5849 warning SC2162.
5850
1207375d
SM
58512020-04-29 Simon Marchi <simon.marchi@efficios.com>
5852
5853 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
5854 "referenced but not assigned" warning.
5855
9fdb2916
SM
58562020-04-29 Simon Marchi <simon.marchi@efficios.com>
5857
5858 * gdbarch.sh: Remove code that sets fallbackdefault.
5859
759cea5e
SM
58602020-04-29 Simon Marchi <simon.marchi@efficios.com>
5861
5862 * gdbarch.sh: Use shell operators && and || instead of
5863 -a and -o.
5864
cb02ab24
SM
58652020-04-29 Simon Marchi <simon.marchi@efficios.com>
5866
5867 * gdbarch.sh: Use $(...) instead of `...`.
5868
a6fc5ffc
SM
58692020-04-29 Simon Marchi <simon.marchi@efficios.com>
5870
5871 * gdbarch.sh: Use double quotes around variables.
5872
8d113d13
SM
58732020-04-29 Simon Marchi <simon.marchi@efficios.com>
5874
5875 * gdbarch.sh: Use %s with printf, instead of variables in the
5876 format string.
5877
ed6acedd
TT
58782020-04-29 Tom Tromey <tromey@adacore.com>
5879
5880 PR ada/25875:
5881 * dwarf2/read.c (update_enumeration_type_from_children): Compute
5882 type fields here.
5883 (read_enumeration_type): Call
5884 update_enumeration_type_from_children later. Update comments.
5885 (process_enumeration_scope): Don't create type fields.
5886
b68b1b58
KR
58872020-04-29 Kamil Rytarowski <n54@gmx.com>
5888
5889 * nbsd-tdep.c: Include "xml-syscall.h".
5890 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
5891
f94b2e03
KR
58922020-04-29 Kamil Rytarowski <n54@gmx.com>
5893
5894 * nbsd-nat.c: Include "sys/wait.h".
5895 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
5896 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
5897 (nbsd_nat_target::remove_exec_catchpoint)
5898 (nbsd_nat_target::set_syscall_catchpoint): Add.
5899 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
5900 (nbsd_nat_target::insert_exec_catchpoint)
5901 (nbsd_nat_target::remove_exec_catchpoint)
5902 (nbsd_nat_target::set_syscall_catchpoint): Add.
5903 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
5904 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
5905 `nbsd_get_syscall_number'.
5906
fc49bc72
TT
59072020-04-29 Tom Tromey <tom@tromey.com>
5908
5909 * stack.c (print_block_frame_labels): Remove.
5910
d642b692
HD
59112020-04-29 Hannes Domani <ssbssa@yahoo.de>
5912
5913 PR gdb/17320
5914 * ada-valprint.c (val_print_packed_array_elements): Move array
5915 end bracket to new line.
5916 (ada_val_print_string): Remove extra spaces before first array
5917 element.
5918 * c-valprint.c (c_value_print_array): Likewise.
5919 * m2-valprint.c (m2_print_array_contents): Likewise.
5920 (m2_value_print_inner): Likewise.
5921 * p-valprint.c (pascal_value_print_inner): Likewise.
5922 * valprint.c (generic_val_print_array): Likewise.
5923 (value_print_array_elements): Move first array element and array
5924 end bracket to new line.
5925
ea90f227
TV
59262020-04-29 Tom de Vries <tdevries@suse.de>
5927
5928 PR symtab/25889
5929 * linespec.c (find_method): Fix ix calculation.
5930
4498ef4f
KR
59312020-04-28 Kamil Rytarowski <n54@gmx.com>
5932
5933 * syscalls/update-netbsd.sh: New file.
5934 * syscalls/netbsd.xml: Regenerate.
5935 * data-directory/Makefile.in: Register `netbsd.xml' in
5936 `SYSCALLS_FILES'.
5937
a55e30b5
SM
59382020-04-28 Simon Marchi <simon.marchi@efficios.com>
5939
5940 * syscalls/update-freebsd.sh: Add double quotes.
5941
2b2fbab8
TT
59422020-04-28 Tom Tromey <tom@tromey.com>
5943
5944 * NEWS: Update.
5945 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
5946 (cmdpy_init): Allow class_tui.
5947
a65189c9
TV
59482020-04-28 Mark Williams <mark@myosotissp.com>
5949
5950 PR gdb/24480
5951 * dwarf2read.c: Add missing assingments to list_in_scope when
5952 start_symtab was already called.
5953
1b95cdb7
SM
59542020-04-28 Simon Marchi <simon.marchi@efficios.com>
5955
5956 PR gdb/25881
5957 * dwarf2/read.c (offset_map_type): Use
5958 gdb:hash_enum<sect_offset> as hash function.
5959
15cd93d0
TV
59602020-04-28 Tom de Vries <tdevries@suse.de>
5961
5962 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
5963 with DW_AT_signature.
5964
1eb39914
SM
59652020-04-27 Simon Marchi <simon.marchi@efficios.com>
5966
5967 * configure.ac: Remove check for fs_base/gs_base in
5968 user_regs_struct.
5969 * configure: Re-generate.
5970 * config.in: Re-generate.
5971 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
5972 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
5973 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
5974
991a3e2e
LM
59752020-04-27 Luis Machado <luis.machado@linaro.org>
5976
5977 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
5978 problematic inline frame unwinding situation.
5979 * frame.c (frame_id_computed_p): New function.
5980 * frame.h (frame_id_computed_p): New prototype.
5981
361ba0e8
TT
59822020-04-26 Tom Tromey <tom@tromey.com>
5983
5984 * command.h (enum command_class) <class_pseudo>: Remove.
5985
bc3609fd
PW
59862020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5987
5988 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
5989 and whitespace.
5990
b9771db7
KR
59912020-04-25 Kamil Rytarowski <n54@gmx.com>
5992
ec16513e
SM
5993 * inf-ptrace.c (inf_ptrace_target::wait): Remove
5994 `PT_GET_PROCESS_STATE' block.
b9771db7 5995
7151c1af
TT
59962020-04-24 Tom Tromey <tom@tromey.com>
5997
5998 * symtab.h (symbol_get_demangled_name): Don't declare.
5999 * symtab.c (symbol_get_demangled_name): Remove.
6000 (general_symbol_info::natural_name)
6001 (general_symbol_info::demangled_name): Update.
6002
906bb4c5
TT
60032020-04-24 Tom Tromey <tom@tromey.com>
6004
6005 PR rust/25025:
6006 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
6007
bcfe6157
TT
60082020-04-24 Tom Tromey <tom@tromey.com>
6009
6010 PR symtab/12707:
6011 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
6012 exists.
6013 (new_symbol): Likewise.
6014 * compile/compile-object-load.c (get_out_value_type): Use
6015 symbol_matches_search_name.
6016
f049a313
TT
60172020-04-24 Tom Tromey <tom@tromey.com>
6018
6019 * dwarf2/read.c (add_partial_symbol): Do not call
6020 compute_and_set_names.
6021
76e288d1
TT
60222020-04-24 Tom Tromey <tom@tromey.com>
6023
6024 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
6025 overload.
6026
2467f4f6
TT
60272020-04-24 Tom Tromey <tom@tromey.com>
6028
6029 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
6030 (add_psymbol_to_list): New overload. Make old overload call new
6031 one.
6032 * psympriv.h (add_psymbol_to_list): New overload.
6033
e61108c9
TT
60342020-04-24 Tom Tromey <tom@tromey.com>
6035
6036 * dwarf2/read.c (partial_die_info::read) <case
6037 DW_AT_linkage_name>: Use value_as_string.
6038 (dwarf2_string_attr): Use value_as_string.
6039 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
6040 method.
6041 * dwarf2/attribute.c (attribute::value_as_string): New method.
6042
8c87a452
TT
60432020-04-24 Tom Tromey <tom@tromey.com>
6044
6045 * symtab.c (general_symbol_info::natural_name)
6046 (general_symbol_info::demangled_name): Check for language_rust.
6047
787de330
TT
60482020-04-24 Tom Tromey <tom@tromey.com>
6049
6050 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
6051 (dwarf2_physname): ... from here.
6052 (partial_die_info::read): Add Rust "{" hack.
6053
ff985671
TT
60542020-04-24 Tom Tromey <tom@tromey.com>
6055
6056 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
6057 method.
6058 (symbol_set_demangled_name): Don't declare.
6059 * symtab.c (general_symbol_info::set_demangled_name): Rename from
6060 symbol_set_demangled_name.
6061 (general_symbol_info::set_language)
6062 (general_symbol_info::compute_and_set_names): Update.
6063 * minsyms.c (minimal_symbol_reader::install): Update.
6064 * dwarf2/read.c (new_symbol): Update.
6065
1acda803
TT
60662020-04-24 Tom Tromey <tromey@adacore.com>
6067
6068 PR python/23662:
6069 * python/py-type.c (convert_field): Handle
6070 FIELD_LOC_KIND_DWARF_BLOCK.
6071 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
6072 (typy_get_dynamic): Nw function.
6073 (type_object_getset): Add "dynamic".
6074 * NEWS: Add entry.
6075
d656f129
TT
60762020-04-24 Tom Tromey <tromey@adacore.com>
6077
6078 * ada-typeprint.c (print_choices, print_variant_part)
6079 (print_record_field_types_dynamic): New functions.
6080 (print_record_field_types): Use print_record_field_types_dynamic.
6081
7d79de9a
TT
60822020-04-24 Tom Tromey <tromey@adacore.com>
6083
6084 * dwarf2/read.c (handle_data_member_location): New overload.
6085 (dwarf2_add_field): Use it.
6086 (decode_locdesc): Add "computed" parameter. Update comment.
6087 * gdbtypes.c (is_dynamic_type_internal): Also look for
6088 FIELD_LOC_KIND_DWARF_BLOCK.
6089 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
6090 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
6091 virtual base classes.
6092 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
6093 FIELD_LOC_KIND_DWARF_BLOCK.
6094
f8e89861
TT
60952020-04-24 Tom Tromey <tromey@adacore.com>
6096
6097 * dwarf2/read.c (read_structure_type): Handle dynamic length.
6098 * gdbtypes.c (is_dynamic_type_internal): Check
6099 TYPE_HAS_DYNAMIC_LENGTH.
6100 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
6101 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
6102 New macros.
6103 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
6104 constant.
6105
9c6a1327
TT
61062020-04-24 Tom Tromey <tromey@adacore.com>
6107
6108 * dwarf2/read.c (struct variant_field): Rewrite.
6109 (struct variant_part_builder): New.
6110 (struct nextfield): Remove "variant" field. Add "offset".
6111 (struct field_info): Add "current_variant_part" and
6112 "variant_parts".
6113 (alloc_discriminant_info): Remove.
6114 (alloc_rust_variant): New function.
6115 (quirk_rust_enum): Update.
6116 (dwarf2_add_field): Set "offset" member. Don't handle
6117 DW_TAG_variant_part.
6118 (offset_map_type): New typedef.
6119 (convert_variant_range, create_one_variant)
6120 (create_one_variant_part, create_variant_parts)
6121 (add_variant_property): New functions.
6122 (dwarf2_attach_fields_to_type): Call add_variant_property.
6123 (read_structure_type): Don't handle DW_TAG_variant_part.
6124 (handle_variant_part, handle_variant): New functions.
6125 (handle_struct_member_die): Use them.
6126 (process_structure_scope): Don't handle variant parts.
6127 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
6128 (struct discriminant_info): Remove.
6129 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
6130 (struct main_type) <flag_discriminated_union>: Remove.
6131 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
6132 (rust_enum_variant): Return int. Remove "contents". Rewrite.
6133 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
6134 Update.
6135 * valops.c (value_union_variant): Remove.
6136 * value.h (value_union_variant): Don't declare.
6137
b249d2c2
TT
61382020-04-24 Tom Tromey <tromey@adacore.com>
6139
6140 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
6141 (ada_value_primitive_packed_val): Update.
6142 * ada-valprint.c (ada_value_print_1): Update.
6143 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
6144 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
6145 just an address. Use evaluate_for_locexpr_baton.
6146 (dwarf2_evaluate_property): Update.
6147 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
6148 array_view.
6149 * findvar.c (default_read_var_value): Update.
6150 * gdbtypes.c (compute_variant_fields_inner)
6151 (resolve_dynamic_type_internal): Update.
6152 (resolve_dynamic_type): Change type of valaddr parameter.
6153 * gdbtypes.h (resolve_dynamic_type): Update.
6154 * valarith.c (value_subscripted_rvalue): Update.
6155 * value.c (value_from_contents_and_address): Update.
6156
61122aa9
TT
61572020-04-24 Tom Tromey <tromey@adacore.com>
6158
6159 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
6160 "push_initial_value" parameter.
6161 (dwarf2_evaluate_property): Likewise.
6162 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
6163
ef83a141
TT
61642020-04-24 Tom Tromey <tromey@adacore.com>
6165
6166 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
6167 (variant::matches, compute_variant_fields_recurse)
6168 (compute_variant_fields_inner, compute_variant_fields): New
6169 functions.
6170 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
6171 Use resolved_type after type is made.
6172 (operator==): Add new cases.
6173 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
6174 (struct discriminant_range, struct variant, struct variant_part):
6175 New.
6176 (union dynamic_prop_data) <variant_parts, original_type>: New
6177 members.
6178 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
6179 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
6180 constants.
6181 * value.c (unpack_bits_as_long): Now public.
6182 * value.h (unpack_bits_as_long): Declare.
6183
675127ec
TT
61842020-04-24 Tom Tromey <tromey@adacore.com>
6185
6186 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
6187 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
6188
9852ceef
HD
61892020-04-24 Hannes Domani <ssbssa@yahoo.de>
6190
6191 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
6192
7632c6ce
KR
61932020-04-24 Kamil Rytarowski <n54@gmx.com>
6194
6195 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
6196 (remove_fork_catchpoint, post_startup_inferior)
6197 (post_attach): Move...
6198 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
6199 (remove_fork_catchpoint, post_startup_inferior)
6200 (post_attach): ...here.
6201 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
6202 (remove_fork_catchpoint, post_startup_inferior)
6203 (post_attach): Move...
6204 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
6205 (remove_fork_catchpoint, post_startup_inferior)
6206 (post_attach): ...here.
6207
7be2bb4f
TT
62082020-04-24 Tom Tromey <tromey@adacore.com>
6209
6210 * nat/windows-nat.h (struct windows_thread_info)
6211 <pc_adjusted>: New member.
6212 * windows-nat.c (windows_fetch_one_register): Check
6213 pc_adjusted.
6214 (windows_nat_target::get_windows_debug_event)
6215 (windows_nat_target::wait): Set pc_adjusted.
6216
f80cb3b4
TV
62172020-04-24 Tom de Vries <tdevries@suse.de>
6218
6219 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
6220 Run gdb-add-index inside temp dir.
6221
29514b87
TT
62222020-04-23 Tom Tromey <tromey@adacore.com>
6223
6224 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
6225 in loop.
6226
5939967b
LM
62272020-04-23 Luis Machado <luis.machado@linaro.org>
6228
6229 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
6230 get_frame_register instead of gdbarch_unwind_pc.
6231
70bc38f5
TV
62322020-04-23 Tom de Vries <tdevries@suse.de>
6233
6234 * symtab.c (lookup_global_symbol): Prefer def over decl.
6235
de82891c
TV
62362020-04-23 Tom de Vries <tdevries@suse.de>
6237
6238 PR symtab/25807
6239 * block.c (best_symbol, better_symbol): Promote to external.
6240 * block.h (best_symbol, better_symbol): Declare.
6241 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
6242 decl.
6243
ecc6c606
TT
62442020-04-23 Tom Tromey <tromey@adacore.com>
6245
6246 PR ada/25837:
6247 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
6248 "const char *", not a "const std::string &".
6249 <name_and_matcher::operator==>: Update.
6250 * unittests/lookup_name_info-selftests.c: Change type of
6251 "result".
6252
740480b8
TT
62532020-04-23 Tom Tromey <tom@tromey.com>
6254
6255 * inferior.h (iterate_over_inferiors): Don't declare.
6256 * inferior.c (iterate_over_inferiors): Remove.
6257 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
6258 Remove.
6259 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
6260 use iterate_over_inferiors.
6261 (darwin_resume_inferior_it)
6262 (struct resume_inferior_threads_param)
6263 (darwin_resume_inferior_threads_it): Remove.
6264 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
6265
ae3ab1f0
TV
62662020-04-23 Tom de Vries <tdevries@suse.de>
6267
6268 * blockframe.c (find_pc_partial_function): Use
6269 find_pc_sect_compunit_symtab rather than
6270 objfile->sf->qf->find_pc_sect_compunit_symtab.
6271
317d2668
TV
62722020-04-22 Tom de Vries <tdevries@suse.de>
6273
6274 PR symtab/25764
6275 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
6276 in psymtabs.
6277
eea9e357
TV
62782020-04-22 Tom de Vries <tdevries@suse.de>
6279
6280 PR symtab/25801
6281 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
6282 symtabs.
6283
3d5afab3
TV
62842020-04-22 Tom de Vries <tdevries@suse.de>
6285
6286 PR symtab/25700
6287 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
6288 CU if already created.
6289
d43b7a2d
TBA
62902020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6291
6292 * infrun.c (displaced_step_fixup): Switch to the event_thread
6293 before calling displaced_step_restore, not after.
6294
d89edf9b
MM
62952020-04-21 Markus Metzger <markus.t.metzger@intel.com>
6296
6297 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
6298 its inferior is not recorded by us.
6299 (record_btrace_target_open): Replace call to
6300 all_non_exited_threads () with call to current_inferior
6301 ()->non_exited_threads ().
6302 (record_btrace_target::stop_recording): Likewise.
6303 (record_btrace_target::close): Likewise.
6304 (record_btrace_target::wait): Likewise.
6305 (record_btrace_target::record_stop_replaying): Likewise.
6306
5897fd49
MM
63072020-04-21 Markus Metzger <markus.t.metzger@intel.com>
6308
6309 * btrace.c (btrace_enable): Throw an error on double enables and
6310 when enabling recording fails.
6311 (btrace_disable): Throw an error if the thread is not recorded.
6312
1a476b6d
MM
63132020-04-21 Markus Metzger <markus.t.metzger@intel.com>
6314
6315 * record-btrace.c (record_btrace_target::fetch_registers): Forward
6316 request if we do not have a thread_info.
6317
4778a5f8
TV
63182020-04-21 Tom de Vries <tdevries@suse.de>
6319
6320 PR gdb/25471
6321 * thread.c
6322 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
6323 exception in get_frame_id.
6324
0fa7617d
TT
63252020-04-20 Tom Tromey <tromey@adacore.com>
6326
6327 * python/python.c (struct gdbpy_event): Mark move constructor as
6328 noexcept.
6329 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
6330 constructor as noexcept.
6331 * completer.h (struct completion_result): Mark move constructor as
6332 noexcept.
6333 * completer.c (completion_result::completion_result): Use
6334 initialization style. Don't call reset_match_list.
6335
ad23bda0
MS
63362020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
6337
6338 * MAINTAINERS (Write After Approval): Add myself.
6339
45e1f031
TT
63402020-04-18 Tom Tromey <tom@tromey.com>
6341
6342 * windows-tdep.c (init_w32_command_list)
6343 (w32_prefix_command_valid): Restore.
6344 (_initialize_windows_tdep): Call init_w32_command_list.
6345
08feed99
TT
63462020-04-18 Tom Tromey <tom@tromey.com>
6347
6348 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
6349 * value.c (value_fn_field): Update.
6350 * valops.c (find_function_in_inferior)
6351 (value_allocate_space_in_inferior): Update.
6352 * tui/tui-winsource.c (tui_update_source_windows_with_line):
6353 Update.
6354 * tui/tui-source.c (tui_source_window::set_contents): Update.
6355 * symtab.c (lookup_global_or_static_symbol)
6356 (find_function_start_sal_1, skip_prologue_sal)
6357 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
6358 * symmisc.c (dump_msymbols, dump_symtab_1)
6359 (maintenance_print_one_line_table): Update.
6360 * symfile.c (init_entry_point_info, section_is_mapped)
6361 (list_overlays_command, simple_read_overlay_table)
6362 (simple_overlay_update_1): Update.
6363 * stap-probe.c (handle_stap_probe): Update.
6364 * stabsread.c (dbx_init_float_type, define_symbol)
6365 (read_one_struct_field, read_enum_type, read_range_type): Update.
6366 * source.c (info_line_command): Update.
6367 * python/python.c (gdbpy_source_objfile_script)
6368 (gdbpy_execute_objfile_script): Update.
6369 * python/py-type.c (save_objfile_types): Update.
6370 * python/py-objfile.c (py_free_objfile): Update.
6371 * python/py-inferior.c (python_new_objfile): Update.
6372 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
6373 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
6374 (maintenance_check_psymtabs): Update.
6375 * printcmd.c (info_address_command): Update.
6376 * objfiles.h (struct objfile) <arch>: New method, from
6377 get_objfile_arch.
6378 (get_objfile_arch): Don't declare.
6379 * objfiles.c (get_objfile_arch): Remove.
6380 (filter_overlapping_sections): Update.
6381 * minsyms.c (msymbol_is_function): Update.
6382 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
6383 (output_nondebug_symbol): Update.
6384 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
6385 (mdebug_expand_psymtab): Update.
6386 * machoread.c (macho_add_oso_symfile): Update.
6387 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
6388 Update.
6389 * linux-fork.c (checkpoint_command): Update.
6390 * linespec.c (convert_linespec_to_sals): Update.
6391 * jit.c (finalize_symtab): Update.
6392 * infrun.c (insert_exception_resume_from_probe): Update.
6393 * ia64-tdep.c (ia64_find_unwind_table): Update.
6394 * hppa-tdep.c (internalize_unwinds): Update.
6395 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
6396 Update.
6397 * gcore.c (call_target_sbrk): Update.
6398 * elfread.c (record_minimal_symbol, elf_symtab_read)
6399 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
6400 (elf_gnu_ifunc_resolve_by_got): Update.
6401 * dwarf2/read.c (create_addrmap_from_index)
6402 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
6403 (read_debug_names_from_section)
6404 (process_psymtab_comp_unit_reader, add_partial_symbol)
6405 (add_partial_subprogram, process_full_comp_unit)
6406 (read_file_scope, read_func_scope, read_lexical_block_scope)
6407 (read_call_site_scope, dwarf2_ranges_read)
6408 (dwarf2_record_block_ranges, dwarf2_add_field)
6409 (mark_common_block_symbol_computed, read_tag_pointer_type)
6410 (read_tag_string_type, dwarf2_init_float_type)
6411 (dwarf2_init_complex_target_type, read_base_type)
6412 (partial_die_info::read, partial_die_info::read)
6413 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
6414 (dwarf2_fetch_die_loc_sect_off): Update.
6415 * dwarf2/loc.c (dwarf2_find_location_expression)
6416 (class dwarf_evaluate_loc_desc, rw_pieced_value)
6417 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
6418 (dwarf2_loc_desc_get_symbol_read_needs)
6419 (locexpr_describe_location_piece, locexpr_describe_location_1)
6420 (loclist_describe_location): Update.
6421 * dwarf2/index-write.c (write_debug_names): Update.
6422 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
6423 * dtrace-probe.c (dtrace_process_dof): Update.
6424 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
6425 (process_one_symbol): Update.
6426 * ctfread.c (ctf_init_float_type, read_base_type): Update.
6427 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
6428 (coff_read_enum_type): Update.
6429 * cli/cli-cmds.c (edit_command, list_command): Update.
6430 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
6431 * breakpoint.c (create_overlay_event_breakpoint)
6432 (create_longjmp_master_breakpoint)
6433 (create_std_terminate_master_breakpoint)
6434 (create_exception_master_breakpoint, get_sal_arch): Update.
6435 * block.c (block_gdbarch): Update.
6436 * annotate.c (annotate_source_line): Update.
6437
0743fc83
TT
64382020-04-17 Tom Tromey <tromey@adacore.com>
6439
6440 * auto-load.c (show_auto_load_cmd): Remove.
6441 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
6442 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
6443 (maintenance_print_arc_command): Remove.
6444 * tui/tui-win.c (tui_command): Remove.
6445 (tui_get_cmd_list): Use add_basic_prefix_cmd.
6446 * tui/tui-layout.c (tui_layout_command): Remove.
6447 (_initialize_tui_layout): Use add_basic_prefix_cmd.
6448 * python/python.c (user_set_python, user_show_python): Remove.
6449 (_initialize_python): Use add_basic_prefix_cmd,
6450 add_show_prefix_cmd.
6451 * guile/guile.c (set_guile_command, show_guile_command): Remove.
6452 (install_gdb_commands): Use add_basic_prefix_cmd,
6453 add_show_prefix_cmd.
6454 (info_guile_command): Remove.
6455 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
6456 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
6457 add_show_prefix_cmd.
6458 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
6459 Remove do_set and do_show parameters.
6460 * cli/cli-style.c (set_style, show_style): Remove.
6461 (_initialize_cli_style): Use add_basic_prefix_cmd,
6462 add_show_prefix_cmd.
6463 (cli_style_option::add_setshow_commands): Remove do_set and
6464 do_show parameters.
6465 (cli_style_option::add_setshow_commands): Use
6466 add_basic_prefix_cmd, add_show_prefix_cmd.
6467 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
6468 (set_style_name): Remove.
6469 * cli/cli-dump.c (dump_command, append_command): Remove.
6470 (srec_dump_command, ihex_dump_command, verilog_dump_command)
6471 (tekhex_dump_command, binary_dump_command)
6472 (binary_append_command): Remove.
6473 (_initialize_cli_dump): Use add_basic_prefix_cmd.
6474 * windows-tdep.c (w32_prefix_command_valid): Remove global.
6475 (init_w32_command_list): Remove; move into ...
6476 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
6477 * valprint.c (set_print, show_print, set_print_raw)
6478 (show_print_raw): Remove.
6479 (_initialize_valprint): Use add_basic_prefix_cmd,
6480 add_show_prefix_cmd.
6481 * typeprint.c (set_print_type, show_print_type): Remove.
6482 (_initialize_typeprint): Use add_basic_prefix_cmd,
6483 add_show_prefix_cmd.
6484 * record.c (set_record_command, show_record_command): Remove.
6485 (_initialize_record): Use add_basic_prefix_cmd,
6486 add_show_prefix_cmd.
6487 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
6488 add_show_prefix_cmd.
6489 (info_command, show_command, set_debug, show_debug): Remove.
6490 * top.h (set_history, show_history): Don't declare.
6491 * top.c (set_history, show_history): Remove.
6492 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
6493 (unset_tdesc_cmd): Remove.
6494 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
6495 add_show_prefix_cmd.
6496 * symtab.c (info_module_command): Remove.
6497 (_initialize_symtab): Use add_basic_prefix_cmd.
6498 * symfile.c (overlay_command): Remove.
6499 (_initialize_symfile): Use add_basic_prefix_cmd.
6500 * sparc64-tdep.c (info_adi_command): Remove.
6501 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
6502 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
6503 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
6504 add_show_prefix_cmd.
6505 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
6506 (_initialize_serial): Use add_basic_prefix_cmd,
6507 add_show_prefix_cmd.
6508 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
6509 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
6510 add_show_prefix_cmd.
6511 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
6512 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
6513 add_show_prefix_cmd.
6514 * riscv-tdep.c (show_riscv_command, set_riscv_command)
6515 (show_debug_riscv_command, set_debug_riscv_command): Remove.
6516 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
6517 add_show_prefix_cmd.
6518 * remote.c (remote_command, set_remote_cmd): Remove.
6519 (_initialize_remote): Use add_basic_prefix_cmd.
6520 * record-full.c (set_record_full_command)
6521 (show_record_full_command): Remove.
6522 (_initialize_record_full): Use add_basic_prefix_cmd,
6523 add_show_prefix_cmd.
6524 * record-btrace.c (cmd_set_record_btrace)
6525 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
6526 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
6527 (cmd_show_record_btrace_pt): Remove.
6528 (_initialize_record_btrace): Use add_basic_prefix_cmd,
6529 add_show_prefix_cmd.
6530 * ravenscar-thread.c (set_ravenscar_command)
6531 (show_ravenscar_command): Remove.
6532 (_initialize_ravenscar): Use add_basic_prefix_cmd,
6533 add_show_prefix_cmd.
6534 * mips-tdep.c (show_mips_command, set_mips_command)
6535 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
6536 add_show_prefix_cmd.
6537 * maint.c (maintenance_command, maintenance_info_command)
6538 (maintenance_check_command, maintenance_print_command)
6539 (maintenance_set_cmd, maintenance_show_cmd): Remove.
6540 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
6541 add_show_prefix_cmd.
6542 (show_per_command_cmd): Remove.
6543 * maint-test-settings.c (maintenance_set_test_settings_cmd):
6544 Remove.
6545 (maintenance_show_test_settings_cmd): Remove.
6546 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
6547 add_show_prefix_cmd.
6548 * maint-test-options.c (maintenance_test_options_command):
6549 Remove.
6550 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
6551 * macrocmd.c (macro_command): Remove
6552 (_initialize_macrocmd): Use add_basic_prefix_cmd.
6553 * language.c (set_check, show_check): Remove.
6554 (_initialize_language): Use add_basic_prefix_cmd,
6555 add_show_prefix_cmd.
6556 * infcmd.c (unset_command): Remove.
6557 (_initialize_infcmd): Use add_basic_prefix_cmd.
6558 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
6559 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
6560 add_show_prefix_cmd.
6561 * go32-nat.c (go32_info_dos_command): Remove.
6562 (_initialize_go32_nat): Use add_basic_prefix_cmd.
6563 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
6564 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
6565 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
6566 (_initialize_frame): Use add_basic_prefix_cmd,
6567 add_show_prefix_cmd.
6568 * dcache.c (set_dcache_command, show_dcache_command): Remove.
6569 (_initialize_dcache): Use add_basic_prefix_cmd,
6570 add_show_prefix_cmd.
6571 * cp-support.c (maint_cplus_command): Remove.
6572 (_initialize_cp_support): Use add_basic_prefix_cmd.
6573 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
6574 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
6575 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
6576 add_basic_prefix_cmd, add_show_prefix_cmd.
6577 * breakpoint.c (save_command): Remove.
6578 (_initialize_breakpoint): Use add_basic_prefix_cmd.
6579 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
6580 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
6581 add_show_prefix_cmd.
6582 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
6583 (set_ada_command, show_ada_command): Remove.
6584 (_initialize_ada_language): Use add_basic_prefix_cmd,
6585 add_show_prefix_cmd.
6586 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
6587
3557f442
KR
65882020-04-16 Kamil Rytarowski <n54@gmx.com>
6589
6590 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
6591 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
6592
16197208
SM
65932020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
6594
6595 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
6596 warning messages.
6597
00ac85d3
SM
65982020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
6599
6600 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
6601 import table is not at beginning of .idata section.
6602
381ce63f
PA
66032020-04-16 Pedro Alves <palves@redhat.com>
6604
6605 * inferior.c (delete_inferior): Use delete operator directly
6606 instead of delete_program_space.
6607 * progspace.c (add_program_space): New, factored out from
6608 program_space::program_space.
6609 (remove_program_space): New, factored out from
6610 delete_program_space.
6611 (program_space::program_space): Remove intro comment. Rewrite.
6612 (program_space::~program_space): Remove intro comment. Call
6613 remove_program_space.
6614 (delete_program_space): Delete.
6615 * progspace.h (program_space::program_space): Make explicit. Move
6616 intro comment here, adjusted.
6617 (program_space::~program_space): Move intro comment here,
6618 adjusted.
6619 (delete_program_space): Remove.
6620
a010605f
TT
66212020-04-16 Tom Tromey <tromey@adacore.com>
6622
6623 * windows-nat.c (windows_nat::handle_access_violation): New
6624 function.
6625 * nat/windows-nat.h (handle_access_violation): Declare.
6626 * nat/windows-nat.c (handle_exception): Move Cygwin code to
6627 windows-nat.c. Call handle_access_violation.
6628
efba5c23
TV
66292020-04-16 Tom de Vries <tdevries@suse.de>
6630
6631 PR symtab/25791
6632 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
6633 CUs without psymtab.
6634
97ed802d
KB
66352020-04-16 Kevin Buettner <kevinb@redhat.com>
6636
6637 * python/python.c (do_start_initialization): Don't call
6638 PyEval_InitThreads for Python 3.9 and beyond.
6639
c7d64809
KR
66402020-04-15 Kamil Rytarowski <n54@gmx.com>
6641
6642 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
6643 thread functions.
6644 (obsd_nat_target::wait): Likewise.
6645
ce127a96
TT
66462020-04-15 Tom Tromey <tromey@adacore.com>
6647
6648 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
6649 (DEBUG_EXCEPT): Use debug_printf.
6650
99f1bc6a
AB
66512020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
6652
6653 * completer.c (class completion_tracker::completion_hash_entry)
6654 <hash_name>: New member function.
6655 (completion_tracker::discard_completions): New callback to hash a
6656 completion_hash_entry, pass this to htab_create_alloc.
6657
a0e9b532
JT
66582016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
6659
6660 * windows-nat.c (windows_make_so): Warn rather than stopping with
6661 an error if realpath() fails.
6662
06ca5dd4
KR
66632020-04-14 Kamil Rytarowski <n54@gmx.com>
6664
6665 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
6666 (nbsd_nat_target::info_proc): Add do_status.
6667
194d088f
TV
66682020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
6669 Tom de Vries <tdevries@suse.de>
6670
6671 PR symtab/25718
6672 * psympriv.h (struct partial_symtab::read_symtab)
6673 (struct partial_symtab::expand_psymtab)
6674 (struct partial_symtab::read_dependencies): Update comments.
6675 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
6676 read_symtab for includer.
6677 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
6678 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
6679 (struct dwarf2_include_psymtab::m_readin): Remove.
6680 (struct dwarf2_include_psymtab::includer): New member function.
6681 (dwarf2_psymtab::expand_psymtab): Assert !readin.
6682
c1a66c06
TV
66832020-04-14 Tom de Vries <tdevries@suse.de>
6684
6685 PR symtab/25720
6686 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
6687 with NULL symbol_matcher and lookup_name.
6688 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
6689 and lookup_name.
6690 * dwarf2/read.c (dw2_expand_symtabs_matching)
6691 (dw2_debug_names_expand_symtabs_matching): Same.
6692 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
6693 Make lookup_name a pointer. Update comment.
6694 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
6695 lookup_name being a pointer.
6696 * symfile.c (expand_symtabs_matching): Same.
6697 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
6698 * linespec.c (iterate_over_all_matching_symtabs): Same.
6699
400b5eca
TT
67002020-04-13 Tom Tromey <tom@tromey.com>
6701
6702 * run-on-main-thread.c: Update include.
6703 * unittests/main-thread-selftests.c: Update include.
6704 * tui/tui-win.c: Update include.
6705 * tui/tui-io.c: Update include.
6706 * tui/tui-interp.c: Update include.
6707 * tui/tui-hooks.c: Update include.
6708 * top.h: Update include.
6709 * top.c: Update include.
6710 * ser-base.c: Update include.
6711 * remote.c: Update include.
6712 * remote-notif.c: Update include.
6713 * remote-fileio.c: Update include.
6714 * record-full.c: Update include.
6715 * record-btrace.c: Update include.
6716 * python/python.c: Update include.
6717 * posix-hdep.c: Update include.
6718 * mingw-hdep.c: Update include.
6719 * mi/mi-main.c: Update include.
6720 * mi/mi-interp.c: Update include.
6721 * main.c: Update include.
6722 * linux-nat.c: Update include.
6723 * interps.c: Update include.
6724 * infrun.c: Update include.
6725 * inf-loop.c: Update include.
6726 * event-top.c: Update include.
6727 * event-loop.c: Move to ../gdbsupport/.
6728 * event-loop.h: Move to ../gdbsupport/.
6729 * async-event.h: Update include.
6730 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
6731
93b54c8e
TT
67322020-04-13 Tom Tromey <tom@tromey.com>
6733
6734 * tui/tui-win.c: Include async-event.h.
6735 * remote.c: Include async-event.h.
6736 * remote-notif.c: Include async-event.h.
6737 * record-full.c: Include async-event.h.
6738 * record-btrace.c: Include async-event.h.
6739 * infrun.c: Include async-event.h.
6740 * event-top.c: Include async-event.h.
6741 * event-loop.h: Move some declarations to async-event.h.
6742 * event-loop.c: Don't include ser-event.h or top.h. Move some
6743 code to async-event.c.
6744 * async-event.h: New file.
6745 * async-event.c: New file.
6746 * Makefile.in (COMMON_SFILES): Add async-event.c.
6747 (HFILES_NO_SRCDIR): Add async-event.h.
6748
c1cd3163
TT
67492020-04-13 Tom Tromey <tom@tromey.com>
6750
6751 * utils.c (flush_streams): New function.
6752 * event-loop.c (gdb_wait_for_event): Call flush_streams.
6753
29f2bf4f
TT
67542020-04-13 Tom Tromey <tom@tromey.com>
6755
6756 * event-loop.c (handle_file_event): Use warning, not
6757 printf_unfiltered.
6758
98029d02
TT
67592020-04-13 Tom Tromey <tom@tromey.com>
6760
6761 * event-loop.c: Include <chrono>.
6762
06cc9596
TT
67632020-04-13 Tom Tromey <tom@tromey.com>
6764
6765 * gdb_select.h: Move to ../gdbsupport/.
6766 * event-loop.c: Update include path.
6767 * top.c: Update include path.
6768 * ser-base.c: Update include path.
6769 * ui-file.c: Update include path.
6770 * ser-tcp.c: Update include path.
6771 * guile/scm-ports.c: Update include path.
6772 * posix-hdep.c: Update include path.
6773 * ser-unix.c: Update include path.
6774 * gdb_usleep.c: Update include path.
6775 * mingw-hdep.c: Update include path.
6776 * inflow.c: Update include path.
6777 * infrun.c: Update include path.
6778 * event-top.c: Update include path.
6779
8ae8e197
TT
67802020-04-13 Tom Tromey <tom@tromey.com>
6781
6782 * configure: Rebuild.
6783 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
6784
58cf28e8
TT
67852020-04-13 Tom Tromey <tom@tromey.com>
6786
6787 * event-loop.h (start_event_loop): Don't declare.
6788 * event-loop.c (start_event_loop): Move...
6789 * main.c (start_event_loop): ...here. Now static.
6790
b7f999ae
SDJ
67912020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
6792
6793 * MAINTAINERS: Update my email address.
6794
1085dfd4
KR
67952020-04-12 Kamil Rytarowski <n54@gmx.com>
6796
6797 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
6798 IP_ALL.
6799
49d1d1f5
KR
68002020-04-12 Kamil Rytarowski <n54@gmx.com>
6801
6802 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
aac66a4c 6803 (nbsd_nat_target::info_proc): Add do_cmdline.
49d1d1f5 6804
b4848d2a
KR
68052020-04-12 Kamil Rytarowski <n54@gmx.com>
6806
6807 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
aac66a4c 6808 (nbsd_nat_target::info_proc): Add do_cwd.
b4848d2a 6809
51c133d5
KR
68102020-04-12 Kamil Rytarowski <n54@gmx.com>
6811
6812 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
6813
54b8cbd0
KR
68142020-04-11 Kamil Rytarowski <n54@gmx.com>
6815
6816 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
6817 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
6818 (nbsd_nat_target::info_proc): New functions.
6819 * nbsd-nat.c (kinfo_get_vmmap): New function.
6820 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
6821 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
6822 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
6823 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
6824 functions.
6825 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
6826 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
6827 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
6828 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
6829 (KINFO_VME_FLAG_GROWS_DOWN): New.
6830
cf83625d
AS
68312020-04-10 Artur Shepilko <nomadbyte@gmail.com>
6832
6833 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
6834 bit shift.
6835
0c4311ab
TT
68362020-04-10 Tom Tromey <tromey@adacore.com>
6837
6838 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
6839
3e65b3e9
TT
68402020-04-10 Tom Tromey <tromey@adacore.com>
6841
6842 * symtab.c (get_symbol_address, get_msymbol_address): Skip
6843 separate debug files.
6844
13302e95
HD
68452020-04-10 Hannes Domani <ssbssa@yahoo.de>
6846
6847 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
6848 Move to...
6849 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
6850 ... here.
6851 * windows-nat.c (windows_nat_target::get_windows_debug_event):
6852 Check for STATUS_WX86_BREAKPOINT.
6853 (windows_nat_target::wait): Same.
6854
bdfc1e8a
TV
68552020-04-10 Tom de Vries <tdevries@suse.de>
6856
6857 PR cli/25808
6858 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
6859
f4460aec
SM
68602020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
6861
6862 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
6863 (Write After Approval): Remove Tom de Vries.
6864
a25198bb
BE
68652020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
6866
6867 revert partially:
6868 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
6869
aac66a4c
SM
6870 * buildsym.c (record_line): Fix undefined behavior and preserve
6871 lines at eof.
a25198bb 6872
206c98a6
KR
68732020-04-09 Kamil Rytarowski <n54@gmx.com>
6874
6875 * auxv.h (svr4_auxv_parse): New.
6876 * auxv.c (default_auxv_parse): Split into default_auxv_parse
6877 and generic_auxv_parse.
6878 (svr4_auxv_parse): Add.
6879 * obsd-tdep.c: Include "auxv.h".
6880 (obsd_auxv_parse): Remove.
6881 (obsd_init_abi): Remove comment.
6882 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
6883 from `obsd_auxv_parse' to `svr4_auxv_parse'.
6884 * nbsd-tdep.c: Include "auxv.h".
6885 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
6886
71fbdbaf
TT
68872020-04-08 Tom Tromey <tromey@adacore.com>
6888
6889 * nat/windows-nat.h (last_wait_event): Don't declare.
6890 (wait_for_debug_event): Update comment.
6891 * nat/windows-nat.c (last_wait_event): Now static.
6892
2c1d95e8
TT
68932020-04-08 Tom Tromey <tromey@adacore.com>
6894
6895 * windows-nat.c (wait_for_debug_event): Move to
6896 nat/windows-nat.c.
6897 * nat/windows-nat.h (wait_for_debug_event): Declare.
6898 * nat/windows-nat.c (wait_for_debug_event): Move from
6899 windows-nat.c. No longer static.
6900
d2977bc4
TT
69012020-04-08 Tom Tromey <tromey@adacore.com>
6902
6903 * windows-nat.c (get_windows_debug_event): Use
6904 fetch_pending_stop.
6905 * nat/windows-nat.h (fetch_pending_stop): Declare.
6906 * nat/windows-nat.c (fetch_pending_stop): New function.
6907
e758e19c
TT
69082020-04-08 Tom Tromey <tromey@adacore.com>
6909
6910 * windows-nat.c (windows_continue): Use matching_pending_stop and
6911 continue_last_debug_event.
6912 * nat/windows-nat.h (matching_pending_stop)
6913 (continue_last_debug_event): Declare.
6914 * nat/windows-nat.c (DEBUG_EVENTS): New define.
6915 (matching_pending_stop, continue_last_debug_event): New
6916 functions.
6917
8d30e395
TT
69182020-04-08 Tom Tromey <tromey@adacore.com>
6919
6920 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
6921 (handle_exception_result): Move to nat/windows-nat.h.
6922 (DEBUG_EXCEPTION_SIMPLE): Remove.
6923 (windows_nat::handle_ms_vc_exception): New function.
6924 (handle_exception): Move to nat/windows-nat.c.
6925 (get_windows_debug_event): Update.
6926 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
6927 nat/windows-nat.c.
6928 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
6929 (handle_exception_result): Move from windows-nat.c.
6930 (handle_exception): Declare.
6931 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
6932 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
6933 windows-nat.c.
6934
29de418d
TT
69352020-04-08 Tom Tromey <tromey@adacore.com>
6936
6937 * windows-nat.c (exception_count, event_count): Remove.
6938 (handle_exception, get_windows_debug_event)
6939 (do_initial_windows_stuff): Update.
6940
a816ba18
TT
69412020-04-08 Tom Tromey <tromey@adacore.com>
6942
6943 * windows-nat.c (windows_nat::handle_load_dll)
6944 (windows_nat::handle_unload_dll): Rename. No longer static.
6945 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
6946 Declare.
6947
a00caa12
TT
69482020-04-08 Tom Tromey <tromey@adacore.com>
6949
6950 * complaints.h (stop_whining): Declare at top-level.
6951 (complaint): Don't declare stop_whining.
6952
d41b524f
TT
69532020-04-08 Tom Tromey <tromey@adacore.com>
6954
6955 * windows-nat.c (windows_nat::handle_output_debug_string):
6956 Rename. No longer static.
6957 * nat/windows-nat.h (handle_output_debug_string): Declare.
6958
3c76026d
TT
69592020-04-08 Tom Tromey <tromey@adacore.com>
6960
6961 * windows-nat.c (current_process_handle, current_process_id)
6962 (main_thread_id, last_sig, current_event, last_wait_event)
6963 (current_windows_thread, desired_stop_thread_id, pending_stops)
6964 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
6965 (display_selectors, fake_create_process)
6966 (get_windows_debug_event): Update.
6967 * nat/windows-nat.h (current_process_handle, current_process_id)
6968 (main_thread_id, last_sig, current_event, last_wait_event)
6969 (current_windows_thread, desired_stop_thread_id, pending_stops)
6970 (struct pending_stop, siginfo_er): Move from windows-nat.c.
6971 * nat/windows-nat.c (current_process_handle, current_process_id)
6972 (main_thread_id, last_sig, current_event, last_wait_event)
6973 (current_windows_thread, desired_stop_thread_id, pending_stops)
6974 (siginfo_er): New globals. Move from windows-nat.c.
6975
9d8679cc
TT
69762020-04-08 Tom Tromey <tromey@adacore.com>
6977
6978 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
6979 (handle_load_dll): Update.
6980 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
6981
28688adf
TT
69822020-04-08 Tom Tromey <tromey@adacore.com>
6983
6984 * windows-nat.c (enum thread_disposition_type): Move to
6985 nat/windows-nat.h.
6986 (windows_nat::thread_rec): Rename from thread_rec. No longer
6987 static.
6988 (windows_add_thread, windows_nat_target::fetch_registers)
6989 (windows_nat_target::store_registers, handle_exception)
6990 (windows_nat_target::resume, get_windows_debug_event)
6991 (windows_nat_target::get_tib_address)
6992 (windows_nat_target::thread_name)
6993 (windows_nat_target::thread_alive): Update.
6994 * nat/windows-nat.h (enum thread_disposition_type): Move from
6995 windows-nat.c.
6996 (thread_rec): Declare.
6997
4834dad0
TT
69982020-04-08 Tom Tromey <tromey@adacore.com>
6999
7000 * windows-nat.c: Add "using namespace".
7001 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
7002 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
7003
65bafd5b
TT
70042020-04-08 Tom Tromey <tromey@adacore.com>
7005
7006 * nat/windows-nat.h (struct windows_thread_info): Declare
7007 destructor.
7008 * nat/windows-nat.c (~windows_thread_info): New.
7009
0a4afda3
TT
70102020-04-08 Tom Tromey <tromey@adacore.com>
7011
7012 PR gdb/22992
7013 * windows-nat.c (current_event): Update comment.
7014 (last_wait_event, desired_stop_thread_id): New globals.
7015 (struct pending_stop): New.
7016 (pending_stops): New global.
7017 (windows_nat_target) <stopped_by_sw_breakpoint>
7018 <supports_stopped_by_sw_breakpoint>: New methods.
7019 (windows_fetch_one_register): Add assertions. Adjust PC.
7020 (windows_continue): Handle pending stops. Suspend other threads
7021 when stepping. Use last_wait_event
7022 (wait_for_debug_event): New function.
7023 (get_windows_debug_event): Use wait_for_debug_event. Handle
7024 pending stops. Queue spurious stops.
7025 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
7026 (windows_nat_target::kill): Use wait_for_debug_event.
7027 * nat/windows-nat.h (struct windows_thread_info)
7028 <stopped_at_software_breakpoint>: New field.
7029 * nat/windows-nat.c (windows_thread_info::resume): Clear
7030 stopped_at_software_breakpoint.
7031
8e61ebec
TT
70322020-04-08 Tom Tromey <tromey@adacore.com>
7033
7034 * windows-nat.c (enum thread_disposition_type): New.
7035 (thread_rec): Replace "get_context" parameter with "disposition";
7036 change type.
7037 (windows_add_thread, windows_nat_target::fetch_registers)
7038 (windows_nat_target::store_registers, handle_exception)
7039 (windows_nat_target::resume, get_windows_debug_event)
7040 (windows_nat_target::get_tib_address)
7041 (windows_nat_target::thread_name)
7042 (windows_nat_target::thread_alive): Update.
7043
98a03287
TT
70442020-04-08 Tom Tromey <tromey@adacore.com>
7045
7046 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
7047 (windows_continue): Use windows_continue::resume.
7048 * nat/windows-nat.h (struct windows_thread_info) <suspend,
7049 resume>: Declare new methods.
7050 * nat/windows-nat.c: New file.
7051 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
7052
7c7411bc
TT
70532020-04-08 Tom Tromey <tromey@adacore.com>
7054
7055 * windows-nat.c (windows_add_thread, windows_delete_thread)
7056 (windows_nat_target::fetch_registers)
7057 (windows_nat_target::store_registers, fake_create_process)
7058 (windows_nat_target::resume, windows_nat_target::resume)
7059 (get_windows_debug_event, windows_nat_target::wait)
7060 (windows_nat_target::pid_to_str)
7061 (windows_nat_target::get_tib_address)
7062 (windows_nat_target::get_ada_task_ptid)
7063 (windows_nat_target::thread_name)
7064 (windows_nat_target::thread_alive): Use lwp, not tid.
7065
2950fdf7
TT
70662020-04-08 Tom Tromey <tromey@adacore.com>
7067
7068 * windows-nat.c (handle_exception)
7069 (windows_nat_target::thread_name): Update.
7070 * nat/windows-nat.h (windows_thread_info): Remove destructor.
7071 <name>: Now unique_xmalloc_ptr.
7072
62fe396b
TT
70732020-04-08 Tom Tromey <tromey@adacore.com>
7074
7075 * windows-nat.c (thread_rec)
7076 (windows_nat_target::fetch_registers): Update.
7077 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
7078 Update comment.
7079 <debug_registers_changed, reload_context>: Now bool.
7080
e9534bd2
TT
70812020-04-08 Tom Tromey <tromey@adacore.com>
7082
7083 * windows-nat.c (windows_add_thread): Use new.
7084 (windows_init_thread_list, windows_delete_thread): Use delete.
7085 (get_windows_debug_event): Update.
7086 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
7087 destructor, and initializers.
7088
ae1f8880
TT
70892020-04-08 Tom Tromey <tromey@adacore.com>
7090
7091 * windows-nat.c (struct windows_thread_info): Remove.
7092 * nat/windows-nat.h: New file.
7093
55a1e039
TT
70942020-04-08 Tom Tromey <tromey@adacore.com>
7095
7096 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
7097 (thread_rec, windows_add_thread, windows_delete_thread)
7098 (windows_continue): Update.
7099
93366324
TT
71002020-04-08 Tom Tromey <tromey@adacore.com>
7101
7102 * windows-nat.c (struct windows_thread_info): Remove typedef.
7103 (thread_head): Remove.
7104 (thread_list): New global.
7105 (thread_rec, windows_add_thread, windows_init_thread_list)
7106 (windows_delete_thread, windows_continue): Update.
7107
0f2265e2
SM
71082020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
7109
7110 * windows-tdep.h (windows_init_abi): Add comment.
7111 (cygwin_init_abi): New declaration.
7112 * windows-tdep.c: Split signal enumeration in two, one for
7113 Windows and one for Cygwin.
7114 (windows_gdb_signal_to_target): Only deal with signal of the
7115 Windows OS ABI.
7116 (cygwin_gdb_signal_to_target): New function.
7117 (windows_init_abi): Rename to windows_init_abi_common, don't set
7118 gdb_signal_to_target gdbarch method. Add new new function with
7119 this name.
7120 (cygwin_init_abi): New function.
7121 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
7122 comment. Don't call windows_init_abi.
7123 (amd64_windows_init_abi): Add comment, call windows_init_abi.
7124 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
7125 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
7126 i386_windows_init_abi_common, don't call windows_init_abi. Add
7127 a new function of this name.
7128 (i386_cygwin_init_abi): New function.
7129 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
7130 OS ABI Cygwin.
7131
3810f182
SM
71322020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
7133
7134 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
7135 parameter.c.
7136 (dwarf2_read_gdb_index): Update.
7137
063f8e80
KR
71382020-04-07 Kamil Rytarowski <n54@gmx.com>
7139
7140 * nbsd-tdep.c: Include "objfiles.h".
7141 (nbsd_skip_solib_resolver): New.
7142 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
7143
85a9510c 71442020-04-07 Nitika Achra <Nitika.Achra@amd.com>
7145
7146 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
7147 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
7148 with DW_LLE_base_addressx are being emitted in DWARFv5.
7149 Add the newly added kind DW_LOC_OFFSET_PAIR also.
7150 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
7151 unsigned integer.
7152
9fc3eaae 71532020-04-07 Nitika Achra <Nitika.Achra@amd.com>
7154
7155 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
7156 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
7157 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
7158 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
7159 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
7160 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
7161 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
7162
7163
41144253 71642020-04-07 Nitika Achra <Nitika.Achra@amd.com>
7165
7166 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
7167 (read_loclist_index): New function definition.
7168 (lookup_loclist_base): New function definition.
7169 (read_loclist_header): New function definition.
7170 (dwarf2_cu): Add loclist_base and loclist_header field.
7171 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
7172 (read_full_die_1): Read the value of DW_AT_loclists_base.
7173 (read_attribute_reprocess): Handle DW_FORM_loclistx.
7174 (read_attribute_value): Handle DW_FORM_loclistx.
7175 (skip_one_die): Handle DW_FORM_loclistx.
7176 (loclist_header): New structure declaration.
7177 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
7178
9f4e76a4
SM
71792020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
7180
7181 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
7182 constructor. Remove `addr` parameter from other constructor and
7183 add `per_cu` parameter.
7184 * dwarf2/read.c (create_partial_symtab): Update.
7185
25c11aca
TV
71862020-04-07 Tom de Vries <tdevries@suse.de>
7187
7188 PR symtab/25796
7189 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
7190 (partial_die_info::fixup): Inherit has_const_value.
7191
5707e24b
TV
71922020-04-07 Tom de Vries <tdevries@suse.de>
7193
7194 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
7195 symbols without address.
7196
05f00e22
KR
71972020-04-06 Kamil Rytarowski <n54@gmx.com>
7198
7199 * nbsd-nat.h (struct thread_info): Add forward declaration.
7200 (nbsd_nat_target::thread_alive): Add.
7201 (nbsd_nat_target::thread_name): Likewise.
7202 (nbsd_nat_target::update_thread_list): Likewise.
7203 (update_thread_list::post_attach): Likewise.
7204 (post_attach::pid_to_str): Likewise.
7205 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
7206 (nbsd_thread_lister): Add.
7207 (nbsd_nat_target::thread_alive): Likewise.
7208 (nbsd_nat_target::thread_name): Likewise.
7209 (nbsd_add_threads): Likewise.
7210 (update_thread_list::post_attach): Likewise.
7211 (nbsd_nat_target::update_thread_list): Likewise.
7212 (post_attach::pid_to_str): Likewise.
7213
6ee448cc
TT
72142020-04-06 Tom Tromey <tromey@adacore.com>
7215
7216 * ada-valprint.c (print_variant_part): Extract the variant field.
7217 (print_field_values): Use the field as the outer value when
7218 recursing.
7219
dea34e8c
TT
72202020-04-06 Tom Tromey <tromey@adacore.com>
7221
7222 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
7223 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
7224 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
7225 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
7226 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
7227
93689ce9
TT
72282020-04-06 Tom Tromey <tromey@adacore.com>
7229
7230 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
7231 TYPE_CODE_ERROR.
7232
79743962
KR
72332020-04-06 Kamil Rytarowski <n54@gmx.com>
7234
7235 * nbsd-tdep.c: Include "gdbarch.h".
7236 Define enum with NetBSD signal numbers.
7237 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
7238 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
7239 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
7240 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
7241 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
7242 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
7243 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
7244 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
7245 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
7246 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
7247 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
7248 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
7249
9e7c9a03
HD
72502020-04-03 Hannes Domani <ssbssa@yahoo.de>
7251
7252 PR gdb/25325
7253 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
7254
d9e49b61
TT
72552020-04-03 Tom Tromey <tromey@adacore.com>
7256
7257 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
7258 Read constant block.
7259
e0fc5c3f
SM
72602020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
7261
7262 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
7263 (gdb_bfd_get_full_section_contents): New declaration.
7264 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
7265 * windows-tdep.c (is_linked_with_cygwin_dll): Use
7266 gdb_bfd_get_full_section_contents.
7267
e2ff18a0
SM
72682020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
7269
7270 * exec.c (build_section_table): Replace internal_error with
7271 gdb_assert.
7272 (section_table_xfer_memory_partial): Likewise.
7273 * mdebugread.c (parse_partial_symbols): Likewise.
7274 * psymtab.c (lookup_partial_symbol): Likewise.
7275 * utils.c (wrap_here): Likewise.
7276
0830d301
TT
72772020-04-02 Tom Tromey <tromey@adacore.com>
7278
7279 * f-lang.c (build_fortran_types): Use arch_type to initialize
7280 builtin_complex_s32 in the TYPE_CODE_ERROR case.
7281
e7da7f8f
TT
72822020-04-02 Tom Tromey <tromey@adacore.com>
7283
7284 * dwarf2/read.c (partial_die_info::read): Do not create a vector
7285 of attributes.
7286
c90d28ac
AB
72872020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
7288 Bernd Edlinger <bernd.edlinger@hotmail.de>
7289 Tom Tromey <tromey@adacore.com>
7290
7291 * buildsym.c (buildsym_compunit::record_line): Remove
7292 deduplication code.
7293
1aa98955
TV
72942020-04-02 Tom de Vries <tdevries@suse.de>
7295
7296 PR ada/24671
7297 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
7298
d3214198
TV
72992020-04-02 Tom de Vries <tdevries@suse.de>
7300
7301 * dwarf2/read.c (dwarf2_gdb_index_functions,
7302 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
7303 NULL.
7304 * psymtab.c (psym_lookup_global_symbol_language): New function.
7305 (psym_functions): Init psym_lookup_global_symbol_language with
7306 psym_lookup_global_symbol_language.
7307 * symfile-debug.c (debug_sym_quick_functions): Init
7308 lookup_global_symbol_language with NULL.
7309 * symfile.c (set_initial_language): Remove fixme comment.
7310 * symfile.h (struct quick_symbol_functions): Add
7311 lookup_global_symbol_language.
7312 * symtab.c (find_quick_global_symbol_language): New function.
7313 (find_main_name): Use find_quick_global_symbol_language.
7314
2836752f
SM
73152020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
7316
7317 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
7318
64dc2d4b
BE
73192020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
7320
7321 * buildsym.c (record_line): Fix undefined behavior and preserve
7322 lines at eof.
7323
bbe3dc41
BE
73242020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
7325
7326 * buildsym.c (record_line): Fix the resizing condition.
7327
6b4a335b
TT
73282020-04-01 Tom Tromey <tom@tromey.com>
7329
7330 * value.h (value_literal_complex): Add comment.
7331 * valops.c (value_literal_complex): Refer to value.h.
7332
3638a098
TT
73332020-04-01 Tom Tromey <tom@tromey.com>
7334
7335 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
7336 (scalar_type): New rule, from typebase.
7337 (typebase): Use scalar_type. Recognize complex types.
7338 (field_name): Handle FLOAT_KEYWORD.
7339 (ident_tokens): Add _Complex and __complex__.
7340
c34e8714
TT
73412020-04-01 Tom Tromey <tom@tromey.com>
7342
7343 PR exp/25299:
7344 * valarith.c (promotion_type, complex_binop): New functions.
7345 (scalar_binop): Handle complex numbers. Use promotion_type.
7346 (value_pos, value_neg, value_complement): Handle complex numbers.
7347
fa649bb7
TT
73482020-04-01 Tom Tromey <tom@tromey.com>
7349
7350 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
7351 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
7352 (parse_number): Handle complex numbers.
7353
981c08ce
TT
73542020-04-01 Tom Tromey <tom@tromey.com>
7355
7356 * c-valprint.c (c_decorations): Change complex suffix to "i".
7357
4c99290d
TT
73582020-04-01 Tom Tromey <tom@tromey.com>
7359
7360 * valprint.c (generic_value_print_complex): Use accessors.
7361 * value.h (value_real_part, value_imaginary_part): Declare.
7362 * valops.c (value_real_part, value_imaginary_part): New
7363 functions.
7364 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
7365
5b930b45
TT
73662020-04-01 Tom Tromey <tom@tromey.com>
7367
7368 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
7369 (read_range_type): Update.
7370 * mdebugread.c (basic_type): Update.
7371 * go-lang.c (build_go_types): Use init_complex_type.
7372 * gdbtypes.h (struct main_type) <complex_type>: New member.
7373 (init_complex_type): Update.
7374 (arch_complex_type): Don't declare.
7375 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
7376 Make name if none given. Use alloc_type_copy. Look for cached
7377 complex type.
7378 (arch_complex_type): Remove.
7379 (gdbtypes_post_init): Use init_complex_type.
7380 * f-lang.c (build_fortran_types): Use init_complex_type.
7381 * dwarf2/read.c (read_base_type): Update.
7382 * d-lang.c (build_d_types): Use init_complex_type.
7383 * ctfread.c (read_base_type): Update.
7384
53cccef1
TBA
73852020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7386
7387 * infrun.c (stop_all_threads): Update assertion, plus when
7388 stopping threads, take into account that we might be trying
7389 to stop an all-stop target.
7390 (stop_waiting): Call 'stop_all_threads' if there exists a
7391 non-stop target.
7392
a0714d30
TBA
73932020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7394
7395 * target.h (exists_non_stop_target): New function declaration.
7396 * target.c (exists_non_stop_target): New function.
7397
60e22c1e
HD
73982020-04-01 Hannes Domani <ssbssa@yahoo.de>
7399
7400 PR gdb/24789
7401 * eval.c (is_integral_or_integral_reference): New function.
7402 (evaluate_subexp_standard): Allow integer references in
7403 pointer arithmetic.
7404
e139a727
TBA
74052020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7406
7407 * remote.c (remote_target::remote_parse_stop_reply): Remove the
7408 check for no ptid in the stop reply when the target is non-stop.
7409
e0802d59
TT
74102020-04-01 Tom Tromey <tromey@adacore.com>
7411
7412 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
7413 "name" parameter to rvalue reference. Initialize m_name_holder.
7414 <lookup_name_info>: New overloads.
7415 <name>: Return gdb::string_view.
7416 <c_str>: New method.
7417 <make_ignore_params>: Update.
7418 <search_name_hash>: Update.
7419 <language_lookup_name>: Return const char *.
7420 <m_name>: Change type.
7421 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
7422 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
7423 (lookup_name_info::match_any): Update.
7424 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
7425 Update.
7426 * minsyms.c (linkage_name_str): Update.
7427 * language.c (default_symbol_name_matcher): Update.
7428 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
7429 Update.
7430 * ada-lang.c (ada_fold_name): Change parameter to string_view.
7431 (ada_lookup_name_info::ada_lookup_name_info): Update.
7432 (literal_symbol_name_matcher): Update.
7433
8c072cb6
TT
74342020-04-01 Tom Tromey <tromey@adacore.com>
7435
7436 * psymtab.c (psymtab_search_name): Remove function.
7437 (psym_lookup_symbol): Create search name and lookup name here.
7438 (lookup_partial_symbol): Remove "name" parameter; add
7439 lookup_name.
7440 (psym_expand_symtabs_for_function): Update.
7441
6f29a534
TT
74422020-03-31 Joel Jones <joelkevinjones@gmail.com>
7443
7444 PR tui/25597:
7445 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
7446
af62665e
TT
74472020-03-31 Tom Tromey <tromey@adacore.com>
7448
7449 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
7450 memcpy.
7451
d1a89da5
NC
74522020-03-30 Nelson Chu <nelson.chu@sifive.com>
7453
7454 * features/riscv/32bit-csr.xml: Regenerated.
7455 * features/riscv/64bit-csr.xml: Regenerated.
7456
d8af9068
TT
74572020-03-30 Tom Tromey <tromey@adacore.com>
7458
7459 * ada-valprint.c (print_variant_part): Update.
7460 * ada-lang.h (ada_which_variant_applies): Update.
7461 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
7462 outer_valaddr parameters; replace with "outer" value parameter.
7463 (to_fixed_variant_branch_type): Update.
7464
227c0bf4
PFC
74652020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
7466
7467 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
7468 <list>. Remove inclusion of observable.h.
7469 (PPC_DEBUG_CURRENT_VERSION): Move up define.
7470 (struct arch_lwp_info): New struct.
7471 (class ppc_linux_dreg_interface): New class.
7472 (struct ppc_linux_process_info): New struct.
7473 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
7474 <low_new_clone, low_forget_process, low_prepare_to_resume>
7475 <copy_thread_dreg_state, mark_thread_stale>
7476 <mark_debug_registers_changed, register_hw_breakpoint>
7477 <clear_hw_breakpoint, register_wp, clear_wp>
7478 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
7479 <num_memory_accesses, get_trigger_type>
7480 <create_watchpoint_request, hwdebug_point_cmp>
7481 <init_arch_lwp_info, get_arch_lwp_info>
7482 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
7483 methods.
7484 <struct ptid_hash>: New inner struct.
7485 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
7486 members.
7487 (saved_dabr_value, hwdebug_info, max_slots_number)
7488 (struct hw_break_tuple, struct thread_points, ppc_threads)
7489 (have_ptrace_hwdebug_interface)
7490 (hwdebug_find_thread_points_by_tid)
7491 (hwdebug_insert_point, hwdebug_remove_point): Remove.
7492 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
7493 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
7494 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
7495 use m_dreg_interface.
7496 (hwdebug_point_cmp): Change to...
7497 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
7498 reference arguments instead of pointers.
7499 (ppc_linux_nat_target::ranged_break_num_registers): Use
7500 m_dreg_interface.
7501 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
7502 m_dreg_interface. Call register_hw_breakpoint.
7503 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
7504 m_dreg_interface. Call clear_hw_breakpoint.
7505 (get_trigger_type): Change to...
7506 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
7507 comment.
7508 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
7509 use m_dreg_interface. Call register_hw_breakpoint.
7510 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
7511 use m_dreg_interface. Call clear_hw_breakpoint.
7512 (can_use_watchpoint_cond_accel): Change to...
7513 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
7514 method. Update comment, use m_dreg_interface and
7515 m_process_info.
7516 (calculate_dvc): Change to...
7517 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
7518 m_dreg_interface.
7519 (num_memory_accesses): Change to...
7520 (ppc_linux_nat_target::num_memory_accesses): ...this method.
7521 (check_condition): Change to...
7522 (ppc_linux_nat_target::check_condition): ...this method.
7523 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
7524 comment, use m_dreg_interface.
7525 (create_watchpoint_request): Change to...
7526 (ppc_linux_nat_target::create_watchpoint_request): ...this
7527 method. Use m_dreg_interface.
7528 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
7529 m_dreg_interface. Call register_hw_breakpoint or register_wp.
7530 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
7531 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
7532 (ppc_linux_nat_target::low_forget_process)
7533 (ppc_linux_nat_target::low_new_fork)
7534 (ppc_linux_nat_target::low_new_clone)
7535 (ppc_linux_nat_target::low_delete_thread)
7536 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
7537 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
7538 only call mark_thread_stale.
7539 (ppc_linux_thread_exit): Remove.
7540 (ppc_linux_nat_target::stopped_data_address): Change to...
7541 (ppc_linux_nat_target::low_stopped_data_address): This. Add
7542 comment, use m_dreg_interface and m_thread_hw_breakpoints.
7543 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
7544 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
7545 comment. Call low_stopped_data_address.
7546 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
7547 m_dreg_interface.
7548 (ppc_linux_nat_target::masked_watch_num_registers): Use
7549 m_dreg_interface.
7550 (ppc_linux_nat_target::copy_thread_dreg_state)
7551 (ppc_linux_nat_target::mark_thread_stale)
7552 (ppc_linux_nat_target::mark_debug_registers_changed)
7553 (ppc_linux_nat_target::register_hw_breakpoint)
7554 (ppc_linux_nat_target::clear_hw_breakpoint)
7555 (ppc_linux_nat_target::register_wp)
7556 (ppc_linux_nat_target::clear_wp)
7557 (ppc_linux_nat_target::init_arch_lwp_info)
7558 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
7559 (_initialize_ppc_linux_nat): Remove observer callback.
7560
4db10d8f
PFC
75612020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
7562
7563 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
7564 (ppc_linux_nat_target::auxv_parse)
7565 (ppc_linux_nat_target::read_description)
7566 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
7567 Move up.
7568
1310c1b0
PFC
75692020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
7570
7571 * linux-nat.h (low_new_clone): New method.
7572 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
7573
69b037c3
SM
75742020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
7575
7576 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
7577 (dbx_expand_psymtab): ... this.
7578 (start_psymtab): Update.
7579 * mdebugread.c (psymtab_to_symtab_1): Rename to...
7580 (mdebug_expand_psymtab): ... this.
7581 (parse_partial_symbols): Update.
7582 (new_psymtab): Update.
7583 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
7584 (xcoff_expand_psymtab): ... this.
7585 (xcoff_start_psymtab): Update.
7586
48993951
SM
75872020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
7588
7589 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
7590 <expand_dependencies>: ... this.
7591 * psymtab.c (partial_symtab::read_dependencies): Rename to...
7592 (partial_symtab::expand_dependencies): ... this.
7593 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
7594 Update.
7595 (dwarf2_psymtab::expand_psymtab): Update.
7596 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
7597 * mdebugread.c (psymtab_to_symtab_1): Update.
7598 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
7599
3ad83046
SM
76002020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
7601
7602 * psympriv.h (discard_psymtab): Remove.
7603 * dbxread.c (dbx_end_psymtab): Update.
7604 * xcoffread.c (xcoff_end_psymtab): Update.
7605
4d1b9ab6
TT
76062020-03-28 Tom Tromey <tom@tromey.com>
7607
7608 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
7609 comment.
7610
f1749218
TT
76112020-03-28 Tom Tromey <tom@tromey.com>
7612
7613 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
7614
ebea7626
HD
76152020-03-27 Hannes Domani <ssbssa@yahoo.de>
7616
7617 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
7618
a879b4d5
JB
76192020-03-26 John Baldwin <jhb@FreeBSD.org>
7620
7621 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
7622
0826b30a
TT
76232020-03-26 Tom Tromey <tom@tromey.com>
7624
7625 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
7626 (mark_common_block_symbol_computed, read_tag_string_type)
7627 (attr_to_dynamic_prop, read_subrange_type): Update.
7628 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
7629 to be methods on struct attribute.
7630 (skip_one_die, process_imported_unit_die, read_namespace_alias)
7631 (read_call_site_scope, partial_die_info::read)
7632 (partial_die_info::read, lookup_die_type, follow_die_ref):
7633 Update.
7634 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
7635 from dwarf2_get_ref_die_offset.
7636 (attribute::constant_value): New method, from
7637 dwarf2_get_attr_constant_value.
7638 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
7639 Declare method.
7640 <constant_value>: New method.
7641
2b2558bf
TT
76422020-03-26 Tom Tromey <tom@tromey.com>
7643
7644 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
7645 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
7646 (dwarf_type_encoding_name): Move to stringify.c.
7647 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
7648 * dwarf2/stringify.c: New file.
7649 * dwarf2/stringify.h: New file.
7650
eeb64781
TT
76512020-03-26 Tom Tromey <tom@tromey.com>
7652
7653 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
7654 Rewrite.
7655
a39fdb41
TT
76562020-03-26 Tom Tromey <tom@tromey.com>
7657
7658 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
7659 methods.
7660 * dwarf2/read.c (lookup_addr_base): Move to die.h.
7661 (lookup_ranges_base): Likewise.
7662 (read_cutu_die_from_dwo, read_full_die_1): Update.
7663
436c571c
TT
76642020-03-26 Tom Tromey <tom@tromey.com>
7665
7666 * dwarf2/read.c (read_import_statement, read_file_scope)
7667 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
7668 (read_lexical_block_scope, read_call_site_scope)
7669 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
7670 (handle_struct_member_die, process_structure_scope)
7671 (update_enumeration_type_from_children)
7672 (process_enumeration_scope, read_array_type, read_common_block)
7673 (read_namespace, read_module, read_subroutine_type): Update.
7674 (sibling_die): Remove.
7675
052c8bb8
TT
76762020-03-26 Tom Tromey <tom@tromey.com>
7677
7678 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
7679 (build_type_psymtabs_reader, read_structure_type)
7680 (read_enumeration_type, read_full_die_1): Update.
7681 (dwarf2_attr_no_follow): Move to die.h.
7682 * dwarf2/die.h (struct die_info) <attr>: New method.
7683
2b24b6e4
TT
76842020-03-26 Tom Tromey <tom@tromey.com>
7685
7686 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
7687 <base_address>: Now an optional.
7688 (dwarf2_find_base_address, dwarf2_rnglists_process)
7689 (dwarf2_ranges_process, fill_in_loclist_baton)
7690 (dwarf2_symbol_mark_computed): Update.
7691
c2d50fd0
TT
76922020-03-26 Tom Tromey <tom@tromey.com>
7693
7694 * dwarf2/read.c (struct die_info): Move to die.h.
7695 * dwarf2/die.h: New file.
7696
0df7ad3a
TT
76972020-03-26 Tom Tromey <tom@tromey.com>
7698
7699 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
7700 * dwarf2/read.c
7701 (dwarf2_statement_list_fits_in_line_number_section_complaint):
7702 Move to line-header.c.
7703 (read_checked_initial_length_and_offset, read_formatted_entries):
7704 Likewise.
7705 (dwarf_decode_line_header): Split into two.
7706 * dwarf2/line-header.c
7707 (dwarf2_statement_list_fits_in_line_number_section_complaint):
7708 Move from read.c.
7709 (read_checked_initial_length_and_offset, read_formatted_entries):
7710 Likewise.
7711 (dwarf_decode_line_header): New function, split from read.c.
7712
86c0bb4c
TT
77132020-03-26 Tom Tromey <tom@tromey.com>
7714
7715 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
7716 Declare method.
7717 * dwarf2/read.c (read_attribute_value): Update.
7718 (dwarf2_per_objfile::read_line_string): Rename from
7719 read_indirect_line_string.
7720 (read_formatted_entries): Update.
7721
2ef46c2f
TT
77222020-03-26 Tom Tromey <tom@tromey.com>
7723
7724 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
7725 variable.
7726
4f9c1eda
TT
77272020-03-26 Tom Tromey <tom@tromey.com>
7728
7729 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
7730 const.
7731 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
7732 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
7733 parameter const.
7734
5a0e026f
TT
77352020-03-26 Tom Tromey <tom@tromey.com>
7736
7737 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
7738 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
7739 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
7740 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
7741
8844c11b
TT
77422020-03-26 Tom Tromey <tom@tromey.com>
7743
7744 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
7745 file_names_size, file_full_name, file_file_name>: Use const.
7746 <file_name_at, file_names>: Add const overload.
7747 * dwarf2/line-header.c (line_header::file_file_name)
7748 (line_header::file_full_name): Update.
7749
c90ec28a
TT
77502020-03-26 Tom Tromey <tom@tromey.com>
7751
7752 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
7753 (macro_start_file, consume_improper_spaces)
7754 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
7755 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
7756 (dwarf_decode_macros): Move to macro.c.
7757 * dwarf2/macro.c: New file.
7758 * dwarf2/macro.h: New file.
7759 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
7760
4f44ae6c
TT
77612020-03-26 Tom Tromey <tom@tromey.com>
7762
7763 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
7764 method.
7765 * dwarf2/section.c: New method. From
7766 read_indirect_string_at_offset_from.
7767 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
7768 (read_indirect_string_at_offset_from): Move to section.c.
7769 (read_indirect_string_at_offset): Rewrite.
7770 (read_indirect_line_string_at_offset): Remove.
7771 (read_indirect_string, read_indirect_line_string)
7772 (dwarf_decode_macro_bytes): Update.
7773
a0194fa8
TT
77742020-03-26 Tom Tromey <tom@tromey.com>
7775
7776 * dwarf2/section.h (struct dwarf2_section_info)
7777 <overload_complaint>: Declare.
7778 (dwarf2_section_buffer_overflow_complaint): Don't declare.
7779 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
7780 Rename from dwarf2_section_buffer_overflow_complaint.
7781 * dwarf2/read.c (skip_one_die, partial_die_info::read)
7782 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
7783
3d27bbdb
TT
77842020-03-26 Tom Tromey <tom@tromey.com>
7785
7786 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
7787 Declare.
7788 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
7789 Move from read.c.
7790 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
7791 to section.c.
7792
9eac9650
TT
77932020-03-26 Tom Tromey <tom@tromey.com>
7794
7795 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
7796
bf80d710
TT
77972020-03-26 Tom Tromey <tom@tromey.com>
7798
7799 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
7800 "builder".
7801 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
7802 parameter.
7803 (dwarf_decode_macros): Update.
7804
0314b390
TT
78052020-03-26 Tom Tromey <tom@tromey.com>
7806
7807 * dwarf2/read.c (read_attribute_value): Update.
7808 (read_indirect_string_from_dwz): Move to dwz.c; change into
7809 method.
7810 (dwarf_decode_macro_bytes): Update.
7811 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
7812 * dwarf2/dwz.c: New file.
7813 * Makefile.in (COMMON_SFILES): Add dwz.c.
7814
9fda78b6
TT
78152020-03-26 Tom Tromey <tom@tromey.com>
7816
7817 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
7818 * dwarf2/read.c: Add include.
7819 * dwarf2/index-write.c: Add include.
7820 * dwarf2/index-cache.c: Add include.
7821 * dwarf2/dwz.h: New file.
7822
33aa3c10
TT
78232020-03-25 Tom Tromey <tom@tromey.com>
7824
7825 * compile/compile-object-load.c (get_out_value_type): Mention
7826 correct symbol name in error message.
7827
d503b685
HD
78282020-03-25 Hannes Domani <ssbssa@yahoo.de>
7829
7830 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
7831
7b1eff95
TV
78322020-03-25 Tom de Vries <tdevries@suse.de>
7833
7834 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
7835 * symmisc.c (dump_symtab_1): Print user and includes fields.
7836 (maintenance_info_symtabs): Same.
7837
dd895392
AB
78382020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
7839
7840 PR gdb/25534
7841 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
7842 (riscv_regcache_cooked_write): New function.
7843 (riscv_push_dummy_call): Use new function.
7844 (riscv_return_value): Likewise.
7845
5ab2fbf1
SM
78462020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
7847
7848 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
7849 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
7850 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
7851 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
7852 * infrun.c (follow_fork): Likewise.
7853 (follow_fork_inferior): Likewise.
7854 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
7855 * linux-nat.h (class linux_nat_target): Likewise.
7856 * remote.c (class remote_target) <follow_fork>: Likewise.
7857 (remote_target::follow_fork): Likewise.
7858 * target-delegates.c: Re-generate.
7859 * target.c (default_follow_fork): Likewise.
7860 (target_follow_fork): Likewise.
7861 * target.h (struct target_ops) <follow_fork>: Likewise.
7862 (target_follow_fork): Likewise.
7863
a64fafb5
TV
78642020-03-24 Tom de Vries <tdevries@suse.de>
7865
7866 * psymtab.c (maintenance_info_psymtabs): Print user field.
7867
fe26d3a3
TT
78682020-03-20 Tom Tromey <tromey@adacore.com>
7869
7870 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
7871 const.
7872 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
7873 const.
7874
c884cc46
SM
78752020-03-20 Simon Marchi <simon.marchi@efficios.com>
7876
7877 * ptrace.m4: Don't check for ptrace declaration.
7878 * config.in: Re-generate.
7879 * configure: Re-generate.
7880 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
7881 not defined.
7882
1ff700c2
KR
78832020-03-20 Kamil Rytarowski <n54@gmx.com>
7884
7885 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
7886 `PTRACE_TYPE_RET'.
7887 * i386-bsd-nat.c (gdb_ptrace): Likewise.
7888 * sparc-nat.c (gdb_ptrace): Likewise.
7889 * x86-bsd-nat.c (gdb_ptrace): Likewise.
7890
f7d4f0b1
TT
78912020-03-20 Tom Tromey <tromey@adacore.com>
7892
7893 * c-exp.y (lex_one_token): Fix assert.
7894
f67210ff
TT
78952020-03-20 Tom Tromey <tromey@adacore.com>
7896
7897 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
7898 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
7899 strncpy call.
7900
1773be9e
TT
79012020-03-20 Tom Tromey <tromey@adacore.com>
7902
7903 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
7904
70304be9
TT
79052020-03-20 Tom Tromey <tromey@adacore.com>
7906
7907 * ada-valprint.c (print_variant_part): Remove parameters; switch
7908 to value-based API.
7909 (print_field_values): Likewise.
7910 (ada_val_print_struct_union): Likewise.
7911 (ada_value_print_1): Update.
7912
9faa006d
KR
79132020-03-20 Kamil Rytarowski <n54@gmx.com>
7914
7915 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
7916 nbsd_nat_target instead of inf_ptrace_target.
7917 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
7918 nbsd_nat_target.
7919
4a90f062
KR
79202020-03-20 Kamil Rytarowski <n54@gmx.com>
7921
7922 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
7923 it to the ptrace call.
7924 * (store_registers): Likewise.
7925
79262020-03-20 Kamil Rytarowski <n54@gmx.com>
c7da12c7
KR
7927
7928 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
7929 it to the ptrace call.
7930 * (store_registers): Likewise.
7931
2d07da27
LM
79322020-03-19 Luis Machado <luis.machado@linaro.org>
7933
7934 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
7935 valid, fetch vg value from ptrace.
7936
f09db380
KR
79372020-03-19 Kamil Rytarowski <n54@gmx.com>
7938 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
7939 * inf-ptrace.c: Likewise.
7940 * (gdb_ptrace): Add.
7941 * (inf_ptrace_target::resume): Update.
7942 * (inf_ptrace_target::xfer_partial): Likewise.
7943 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
7944 * (inf_ptrace_peek_poke): Update.
7945
fcc7376e
KR
79462020-03-19 Kamil Rytarowski <n54@gmx.com>
7947
7948 * x86-bsd-nat.c (gdb_ptrace): New.
7949 * (x86bsd_dr_set): Add new argument `ptid'.
7950 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
7951 x86bsd_dr_set_addr): Update.
7952
cada5fc9
AB
79532020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
7954
7955 * remote.c (remote_target::process_stop_reply): Handle events for
7956 all threads differently.
7957
19a2740f
AB
79582020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
7959
7960 * completer.c (completion_tracker::remove_completion): Define new
7961 function.
7962 * completer.h (completion_tracker::remove_completion): Declare new
7963 function.
7964 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
7965 when adding a C++ function symbol.
7966
724fd9ba
AB
79672020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
7968
7969 * completer.c (completion_tracker::completion_hash_entry): Define
7970 new class.
7971 (advance_to_filename_complete_word_point): Call
7972 recompute_lowest_common_denominator.
7973 (completion_tracker::completion_tracker): Call discard_completions
7974 to setup the hash table.
7975 (completion_tracker::discard_completions): Allow for being called
7976 from the constructor, pass new equal function, and element deleter
7977 when constructing the hash table. Initialise new class member
7978 variables.
7979 (completion_tracker::maybe_add_completion): Remove use of
7980 m_entries_vec, and store more information into m_entries_hash.
7981 (completion_tracker::recompute_lcd_visitor): New function, most
7982 content taken from...
7983 (completion_tracker::recompute_lowest_common_denominator):
7984 ...here, this now just visits each item in the hash calling the
7985 above visitor.
7986 (completion_tracker::build_completion_result): Remove use of
7987 m_entries_vec, call recompute_lowest_common_denominator.
7988 * completer.h (completion_tracker::have_completions): Remove use
7989 of m_entries_vec.
7990 (completion_tracker::completion_hash_entry): Declare new class.
7991 (completion_tracker::recompute_lowest_common_denominator): Change
7992 function signature.
7993 (completion_tracker::recompute_lcd_visitor): Declare new function.
7994 (completion_tracker::m_entries_vec): Delete.
7995 (completion_tracker::m_entries_hash): Initialize to NULL.
7996 (completion_tracker::m_lowest_common_denominator_valid): New
7997 member variable.
7998 (completion_tracker::m_lowest_common_denominator_max_length): New
7999 member variable.
8000
5a82b8a1
KR
80012020-03-17 Kamil Rytarowski <n54@gmx.com>
8002
8003 * regformats/regdef.h: Put reg in gdb namespace.
8004
fb516a69
KR
80052020-03-17 Kamil Rytarowski <n54@gmx.com>
8006
8007 * i386-bsd-nat.c (gdb_ptrace): New.
8008 * (i386bsd_fetch_inferior_registers,
8009 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
8010 * (i386bsd_fetch_inferior_registers,
8011 i386bsd_store_inferior_registers) Use gdb_ptrace.
8012
1c0aa1fb
KR
80132020-03-17 Kamil Rytarowski <n54@gmx.com>
8014
8015 * amd64-bsd-nat.c (gdb_ptrace): New.
8016 * (amd64bsd_fetch_inferior_registers,
8017 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
8018 * (amd64bsd_fetch_inferior_registers,
8019 amd64bsd_store_inferior_registers) Use gdb_ptrace.
8020
5ccd2fb7
KR
80212020-03-17 Kamil Rytarowski <n54@gmx.com>
8022
8023 * user-regs.c (user_reg::read): Rename to...
8024 (user_reg::xread): ...this.
8025 * (append_user_reg): Rename argument `read' to `xread'.
8026 * (user_reg_add_builtin): Likewise.
8027 * (user_reg_add): Likewise.
8028 * (value_of_user_reg): Likewise.
8029
2108a63a
KR
80302020-03-17 Kamil Rytarowski <n54@gmx.com>
8031
8032 * sparc-nat.c (gdb_ptrace): New.
8033 * sparc-nat.c (sparc_fetch_inferior_registers)
8034 (sparc_store_inferior_registers) Remove obsolete comment.
8035 * sparc-nat.c (sparc_fetch_inferior_registers)
8036 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
8037 * sparc-nat.c (sparc_fetch_inferior_registers)
8038 (sparc_store_inferior_registers) Use gdb_ptrace.
8039
a225c9a8
KR
80402020-03-17 Kamil Rytarowski <n54@gmx.com>
8041
8042 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
8043 it to the ptrace call.
8044 * sh-nbsd-nat.c (store_registers): Likewise.
8045
98097623
KR
80462020-03-17 Kamil Rytarowski <n54@gmx.com>
8047
8048 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
8049 nbsd_nat_target instead of inf_ptrace_target.
8050 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
8051 nbsd_nat_target.
8052
9e38d619
KR
80532020-03-17 Kamil Rytarowski <n54@gmx.com>
8054
8055 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
8056
a2ecbe9f
KR
80572020-03-17 Kamil Rytarowski <n54@gmx.com>
8058
8059 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
8060 <sys/sysctl.h>.
8061 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
8062
58990295
TV
80632020-03-17 Tom de Vries <tdevries@suse.de>
8064
8065 PR gdb/23710
8066 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
8067 fields.
8068 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
8069 fields.
8070 (process_imported_unit_die): Skip import of c++ CUs.
8071
771dd3a8
TT
80722020-03-16 Tom Tromey <tom@tromey.com>
8073
8074 * p-valprint.c (pascal_object_print_value): Initialize
8075 base_value.
8076
817a7585
AK
80772020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
8078 Shahab Vahedi <shahab@synopsys.com>
8079
8080 * Makefile.in: Add arch/arc.o
8081 * configure.tgt: Likewise.
8082 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
8083 (_initialize_arc_tdep): Don't initialize old target descriptions.
aac66a4c 8084 (arc_read_description): New function to cache target descriptions.
817a7585
AK
8085 * arc-tdep.h (arc_read_description): Add proto type.
8086 * arch/arc.c: New file.
8087 * arch/arc.h: Likewise.
8088 * features/Makefile: Replace old target descriptions with new.
8089 * features/arc-arcompact.c: Remove.
8090 * features/arc-arcompact.xml: Likewise.
8091 * features/arc-v2.c: Likewise
8092 * features/arc-v2.xml: Likewise
8093 * features/arc/aux-arcompact.xml: New file.
8094 * features/arc/aux-v2.xml: Likewise.
8095 * features/arc/core-arcompact.xml: Likewise.
8096 * features/arc/core-v2.xml: Likewise.
8097 * features/arc/aux-arcompact.c: Generate.
8098 * features/arc/aux-v2.c: Likewise.
8099 * features/arc/core-arcompact.c: Likewise.
8100 * features/arc/core-v2.c: Likewise.
8101 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
8102
67430cd0
TT
81032020-03-16 Tom Tromey <tromey@adacore.com>
8104
8105 PR gdb/25663:
8106 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
8107 putting value into bcache.
8108
30efb6c7
SM
81092020-03-16 Simon Marchi <simon.marchi@efficios.com>
8110
8111 PR gdb/21500
8112 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
8113 to...
8114 (amd64_windows_init_abi_common): ... this. Don't set size of
8115 long type.
8116 (amd64_windows_init_abi): New function.
8117 (amd64_cygwin_init_abi): New function.
8118 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
8119 the Cygwin OS ABI.
8120 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
8121 comment.
8122
8db52437
SM
81232020-03-16 Simon Marchi <simon.marchi@efficios.com>
8124
8125 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
8126 * windows-tdep.c (CYGWIN_DLL_NAME): New.
8127 (pe_import_directory_entry): New struct type.
8128 (is_linked_with_cygwin_dll): New function.
8129 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
8130 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
8131 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
8132
5982a56a
SM
81332020-03-16 Simon Marchi <simon.marchi@efficios.com>
8134
8135 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
8136 i386_cygwin_core_osabi_sniffer.
8137
7a1998df
SM
81382020-03-16 Simon Marchi <simon.marchi@efficios.com>
8139
8140 * i386-cygwin-tdep.c: Rename to...
8141 * i386-windows-tdep.c: ... this.
8142 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
8143 i386-windows-tdep.c.
8144 * configure.tgt: Likewise.
8145
053205cc
SM
81462020-03-16 Simon Marchi <simon.marchi@efficios.com>
8147
8148 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
8149 * osabi.c (gdb_osabi_names): Add "Windows".
8150 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
8151 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
8152 (i386_cygwin_core_osabi_sniffer): New function, extracted from
8153 i386_cygwin_osabi_sniffer.
8154 (_initialize_i386_cygwin_tdep): Register OS ABI
8155 GDB_OSABI_WINDOWS for i386.
8156 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
8157 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
8158 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
8159 for x86-64.
8160 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
8161 when the target matches '*-*-mingw*'.
8162
fe4b2ee6
SM
81632020-03-16 Simon Marchi <simon.marchi@efficios.com>
8164
8165 * defs.h (enum gdb_osabi): Move to...
8166 * osabi.h (enum gdb_osabi): ... here.
8167 * gdbarch.sh: Include osabi.h in gdbarch.h.
8168 * gdbarch.h: Re-generate.
8169
cb9b645d
SM
81702020-03-16 Simon Marchi <simon.marchi@efficios.com>
8171
8172 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
8173 function.
8174 (_initialize_amd64_windows_tdep): Register osabi sniffer.
8175
3293bbaf
TT
81762020-03-14 Tom Tromey <tom@tromey.com>
8177
8178 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
8179 for C++.
8180 (c_type_print_modifier): Likewise. Add "language" parameter.
8181 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
8182 (c_type_print_base_1): Update.
8183 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
8184 constants.
8185 * type-stack.c (type_stack::insert): Handle tp_atomic and
8186 tp_restrict.
8187 (type_stack::follow_type_instance_flags): Likewise.
8188 (type_stack::follow_types): Likewise. Merge type-following code.
8189 * c-exp.y (RESTRICT, ATOMIC): New tokens.
8190 (space_identifier, cv_with_space_id)
8191 (const_or_volatile_or_space_identifier_noopt)
8192 (const_or_volatile_or_space_identifier): Remove.
8193 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
8194 rules.
8195 (ptr_operator, typebase): Update.
8196 (enum token_flag) <FLAG_C>: New constant.
8197 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
8198 "_Atomic".
8199 (lex_one_token): Handle FLAG_C.
8200
154151a6
KR
82012020-03-14 Kamil Rytarowski <n54@gmx.com>
8202
8203 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
8204 it to the ptrace call.
8205 * m68k-bsd-nat.c (store_registers): Likewise.
8206
bc107784
KR
82072020-03-14 Kamil Rytarowski <n54@gmx.com>
8208
8209 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
8210 gdb_byte *.
8211 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
8212 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
8213 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
8214
01a80117
KR
82152020-03-14 Kamil Rytarowski <n54@gmx.com>
8216
8217 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
8218 nbsd_nat_target instead of inf_ptrace_target.
8219 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
8220 nbsd_nat_target.
8221
f90280ca
KR
82222020-03-14 Kamil Rytarowski <n54@gmx.com>
8223
8224 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
8225 register_t.
8226
6def66f1
KR
82272020-03-14 Kamil Rytarowski <n54@gmx.com>
8228
8229 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
8230 it to the ptrace call.
8231 * alpha-bsd-nat.c (store_registers): Likewise.
8232
66eaca97
KR
82332020-03-14 Kamil Rytarowski <n54@gmx.com>
8234
8235 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
8236 includes.
8237 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
8238 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
8239 fill_fpregset): Likewise.
8240
4fed520b
KR
82412020-03-14 Kamil Rytarowski <n54@gmx.com>
8242
8243 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
8244 nbsd_nat_target instead of inf_ptrace_target.
8245 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
8246 nbsd_nat_target.
8247
2190cf06
KR
82482020-03-14 Kamil Rytarowski <n54@gmx.com>
8249
8250 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
8251 register_t.
8252
75c56d3d
KR
82532020-03-14 Kamil Rytarowski <n54@gmx.com>
8254
8255 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
8256 it to the ptrace call.
8257 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
8258 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
8259 * arm-nbsd-nat.c (store_register): Likewise.
8260 * arm-nbsd-nat.c (store_regs): Likewise.
8261 * arm-nbsd-nat.c (store_fp_register): Likewise.
8262 * arm-nbsd-nat.c (store_fp_regs): Likewise.
8263
6018d381
KR
82642020-03-14 Kamil Rytarowski <n54@gmx.com>
8265
8266 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
8267 nbsd_nat_target instead of inf_ptrace_target.
8268 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
8269 nbsd_nat_target.
8270
013f99f0
KR
82712020-03-14 Kamil Rytarowski <n54@gmx.com>
8272
8273 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
8274 it to the ptrace call.
8275 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
8276
12753073
KR
82772020-03-14 Kamil Rytarowski <n54@gmx.com>
8278
6227b330
KR
8279 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
8280 it to the ptrace call.
8281 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
8282
82832020-03-14 Kamil Rytarowski <n54@gmx.com>
8284
8285 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
8286 gdb_byte *.
12753073
KR
8287 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
8288
d5be5fa4
KR
82892020-03-14 Kamil Rytarowski <n54@gmx.com>
8290
8291 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
8292 instead of inf_ptrace_target.
8293 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
8294 nbsd_nat_target.
8295
8110f842
KR
82962020-03-14 Kamil Rytarowski <n54@gmx.com>
8297
8298 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
8299 register_t.
8300
52feded7
KR
83012020-03-14 Kamil Rytarowski <n54@gmx.com>
8302
8303 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
8304 register_t.
8305
25567eee
KR
83062020-03-14 Kamil Rytarowski <n54@gmx.com>
8307
8308 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
8309 register_t.
8310
426a9c18
TT
83112020-03-13 Tom Tromey <tom@tromey.com>
8312
8313 * value.h (val_print): Don't declare.
8314 * valprint.h (val_print_array_elements)
8315 (val_print_scalar_formatted, generic_val_print): Don't declare.
8316 * valprint.c (generic_val_print_array): Take a struct value.
8317 (generic_val_print_ptr, generic_val_print_memberptr)
8318 (generic_val_print_bool, generic_val_print_int)
8319 (generic_val_print_char, generic_val_print_complex)
8320 (generic_val_print): Remove.
8321 (generic_value_print): Update.
8322 (do_val_print): Remove unused parameters. Don't call
8323 la_val_print.
8324 (val_print): Remove.
8325 (common_val_print): Update. Don't call value_check_printable.
8326 (val_print_scalar_formatted, val_print_array_elements): Remove.
8327 * rust-lang.c (rust_val_print): Remove.
8328 (rust_language_defn): Update.
8329 * p-valprint.c (pascal_val_print): Remove.
8330 (pascal_value_print_inner): Update.
8331 (pascal_object_print_val_fields, pascal_object_print_val):
8332 Remove.
8333 (pascal_object_print_static_field): Update.
8334 * p-lang.h (pascal_val_print): Don't declare.
8335 * p-lang.c (pascal_language_defn): Update.
8336 * opencl-lang.c (opencl_language_defn): Update.
8337 * objc-lang.c (objc_language_defn): Update.
8338 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
8339 * m2-lang.h (m2_val_print): Don't declare.
8340 * m2-lang.c (m2_language_defn): Update.
8341 * language.h (struct language_defn) <la_val_print>: Remove.
8342 * language.c (unk_lang_value_print_inner): Rename. Change
8343 argument types.
8344 (unknown_language_defn, auto_language_defn): Update.
8345 * go-valprint.c (go_val_print): Remove.
8346 * go-lang.h (go_val_print): Don't declare.
8347 * go-lang.c (go_language_defn): Update.
8348 * f-valprint.c (f_val_print): Remove.
8349 * f-lang.h (f_value_print): Don't declare.
8350 * f-lang.c (f_language_defn): Update.
8351 * d-valprint.c (d_val_print): Remove.
8352 * d-lang.h (d_value_print): Don't declare.
8353 * d-lang.c (d_language_defn): Update.
8354 * cp-valprint.c (cp_print_value_fields)
8355 (cp_print_value_fields_rtti, cp_print_value): Remove.
8356 (cp_print_static_field): Update.
8357 * c-valprint.c (c_val_print_array, c_val_print_ptr)
8358 (c_val_print_struct, c_val_print_union, c_val_print_int)
8359 (c_val_print_memberptr, c_val_print): Remove.
8360 * c-lang.h (c_val_print_array, cp_print_value_fields)
8361 (cp_print_value_fields_rtti): Don't declare.
8362 * c-lang.c (c_language_defn, cplus_language_defn)
8363 (asm_language_defn, minimal_language_defn): Update.
8364 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
8365 (ada_val_print_enum): Take a struct value.
8366 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
8367 (ada_val_print): Remove.
8368 (ada_value_print_1): Update.
8369 (printable_val_type): Remove.
8370 * ada-lang.h (ada_val_print): Don't declare.
8371 * ada-lang.c (ada_language_defn): Update.
8372
42331a1e
TT
83732020-03-13 Tom Tromey <tom@tromey.com>
8374
8375 * valprint.c (do_val_print): Update.
8376 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
8377 a struct value.
8378 (value_to_value_object_no_release): Declare.
8379 * python/py-value.c (value_to_value_object_no_release): New
8380 function.
8381 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
8382 struct value.
8383 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
8384 function.
8385 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
8386 a struct value.
8387 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
8388 Declare.
8389 (gdbscm_apply_val_pretty_printer): Take a struct value.
8390 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
8391 value.
8392 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
8393 value.
8394 * extension-priv.h (struct extension_language_ops)
8395 <apply_val_pretty_printer>: Take a struct value.
8396 * cp-valprint.c (cp_print_value): Create a struct value.
8397 (cp_print_value): Update.
8398
3a916a97
TT
83992020-03-13 Tom Tromey <tom@tromey.com>
8400
8401 * ada-valprint.c (print_field_values): Call common_val_print.
8402
b59eac37
TT
84032020-03-13 Tom Tromey <tom@tromey.com>
8404
8405 * ada-valprint.c (val_print_packed_array_elements): Remove
8406 bitoffset and val parameters. Call common_val_print.
8407 (ada_val_print_string): Remove offset, address, and original_value
8408 parameters.
8409 (ada_val_print_array): Update.
8410 (ada_value_print_array): New function.
8411 (ada_value_print_1): Call it.
8412
03371129
TT
84132020-03-13 Tom Tromey <tom@tromey.com>
8414
8415 * ada-valprint.c (ada_value_print): Use common_val_print.
8416
2e088f8b
TT
84172020-03-13 Tom Tromey <tom@tromey.com>
8418
8419 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
8420
39ef85a8
TT
84212020-03-13 Tom Tromey <tom@tromey.com>
8422
8423 * ada-valprint.c (ada_value_print_num): New function.
8424 (ada_value_print_1): Use it.
8425
b9fa6e07
TT
84262020-03-13 Tom Tromey <tom@tromey.com>
8427
8428 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
8429
416595d6
TT
84302020-03-13 Tom Tromey <tom@tromey.com>
8431
8432 * ada-valprint.c (ada_value_print_ptr): New function.
8433 (ada_value_print_1): Use it.
8434
5b5e15ec
TT
84352020-03-13 Tom Tromey <tom@tromey.com>
8436
8437 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
8438 call common_val_print.
8439 (ada_val_print_1): Update.
8440 (ada_value_print_1): New function.
8441 (ada_value_print_inner): Rewrite.
8442
fbf54e75
TT
84432020-03-13 Tom Tromey <tom@tromey.com>
8444
8445 * cp-valprint.c (cp_print_value_fields): Update.
8446 (cp_print_value): New function.
8447
64b653ca
TT
84482020-03-13 Tom Tromey <tom@tromey.com>
8449
8450 * m2-valprint.c (m2_value_print_inner): Use
8451 cp_print_value_fields.
8452 * cp-valprint.c (cp_print_value_fields): New function.
8453 * c-valprint.c (c_value_print_struct): New function.
8454 (c_value_print_inner): Use c_value_print_struct.
8455 * c-lang.h (cp_print_value_fields): Declare.
8456
6999f067
TT
84572020-03-13 Tom Tromey <tom@tromey.com>
8458
8459 * c-valprint.c (c_value_print_array): New function.
8460 (c_value_print_inner): Use it.
8461
ce80b8bd
TT
84622020-03-13 Tom Tromey <tom@tromey.com>
8463
8464 * c-valprint.c (c_value_print_memberptr): New function.
8465 (c_value_print_inner): Use it.
8466
2faac269
TT
84672020-03-13 Tom Tromey <tom@tromey.com>
8468
8469 * c-valprint.c (c_value_print_int): New function.
8470 (c_value_print_inner): Use it.
8471
da3e2c29
TT
84722020-03-13 Tom Tromey <tom@tromey.com>
8473
8474 * c-valprint.c (c_value_print_ptr): New function.
8475 (c_value_print_inner): Use it.
8476
50836231
TT
84772020-03-13 Tom Tromey <tom@tromey.com>
8478
8479 * c-valprint.c (c_value_print_inner): Rewrite.
8480
4f412b6e
TT
84812020-03-13 Tom Tromey <tom@tromey.com>
8482
8483 * valprint.c (generic_value_print_complex): New function.
8484 (generic_value_print): Use it.
8485
f5354008
TT
84862020-03-13 Tom Tromey <tom@tromey.com>
8487
8488 * valprint.c (generic_val_print_float): Don't call
8489 val_print_scalar_formatted.
8490 (generic_val_print, generic_value_print): Update.
8491
3eec3b05
TT
84922020-03-13 Tom Tromey <tom@tromey.com>
8493
8494 * valprint.c (generic_value_print_char): New function
8495 (generic_value_print): Use it.
8496
fdddfccb
TT
84972020-03-13 Tom Tromey <tom@tromey.com>
8498
8499 * valprint.c (generic_value_print_int): New function.
8500 (generic_value_print): Use it.
8501
6dde7521
TT
85022020-03-13 Tom Tromey <tom@tromey.com>
8503
8504 * valprint.c (generic_value_print_bool): New function.
8505 (generic_value_print): Use it.
8506
4112d2e6
TT
85072020-03-13 Tom Tromey <tom@tromey.com>
8508
8509 * valprint.c (generic_val_print_func): Simplify.
8510 (generic_val_print, generic_value_print): Update.
8511
65786af6
TT
85122020-03-13 Tom Tromey <tom@tromey.com>
8513
8514 * valprint.c (generic_val_print_flags): Remove.
8515 (generic_val_print, generic_value_print): Update.
8516 (val_print_type_code_flags): Add original_value parameter.
8517
40f3ce18
TT
85182020-03-13 Tom Tromey <tom@tromey.com>
8519
8520 * valprint.c (generic_val_print): Update.
8521 (generic_value_print): Update.
8522 * valprint.c (generic_val_print_enum): Don't call
8523 val_print_scalar_formatted.
8524
2a5b130b
TT
85252020-03-13 Tom Tromey <tom@tromey.com>
8526
8527 * valprint.c (generic_value_print): Call generic_value_print_ptr.
8528 * valprint.c (generic_value_print_ptr): New function.
8529
abc66ce9
TT
85302020-03-13 Tom Tromey <tom@tromey.com>
8531
8532 * valprint.c (generic_value_print): Rewrite.
8533
07a32858
TT
85342020-03-13 Tom Tromey <tom@tromey.com>
8535
8536 * p-valprint.c (pascal_object_print_value_fields)
8537 (pascal_object_print_value): New functions.
8538
64d64d3a
TT
85392020-03-13 Tom Tromey <tom@tromey.com>
8540
8541 * p-valprint.c (pascal_value_print_inner): Rewrite.
8542
6a95a1f5
TT
85432020-03-13 Tom Tromey <tom@tromey.com>
8544
8545 * f-valprint.c (f_value_print_innner): Rewrite.
8546
59fcdac6
TT
85472020-03-13 Tom Tromey <tom@tromey.com>
8548
8549 * m2-valprint.c (m2_print_unbounded_array): New overload.
8550 (m2_print_unbounded_array): Update.
8551 (m2_print_array_contents): Take a struct value.
8552 (m2_value_print_inner): Rewrite.
8553
d133c3e1
TT
85542020-03-13 Tom Tromey <tom@tromey.com>
8555
8556 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
8557 (d_value_print_inner): New function.
8558 * d-lang.h (d_value_print_inner): Declare.
8559 * d-lang.c (d_language_defn): Use d_value_print_inner.
8560
23b0f06b
TT
85612020-03-13 Tom Tromey <tom@tromey.com>
8562
8563 * go-valprint.c (go_value_print_inner): New function.
8564 * go-lang.h (go_value_print_inner): Declare.
8565 * go-lang.c (go_language_defn): Use go_value_print_inner.
8566
5f56f7cb
TT
85672020-03-13 Tom Tromey <tom@tromey.com>
8568
8569 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
8570 API.
8571 (rust_val_print): Rewrite.
8572 (rust_value_print_inner): New function, from rust_val_print.
8573 (rust_language_defn): Use rust_value_print_inner.
8574
26792ee0
TT
85752020-03-13 Tom Tromey <tom@tromey.com>
8576
8577 * ada-valprint.c (ada_value_print_inner): New function.
8578 * ada-lang.h (ada_value_print_inner): Declare.
8579 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
8580
24051bbe
TT
85812020-03-13 Tom Tromey <tom@tromey.com>
8582
8583 * f-valprint.c (f_value_print_innner): New function.
8584 * f-lang.h (f_value_print_innner): Declare.
8585 * f-lang.c (f_language_defn): Use f_value_print_innner.
8586
c0941be6
TT
85872020-03-13 Tom Tromey <tom@tromey.com>
8588
8589 * p-valprint.c (pascal_value_print_inner): New function.
8590 * p-lang.h (pascal_value_print_inner): Declare.
8591 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
8592
62c4663d
TT
85932020-03-13 Tom Tromey <tom@tromey.com>
8594
8595 * m2-valprint.c (m2_value_print_inner): New function.
8596 * m2-lang.h (m2_value_print_inner): Declare.
8597 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
8598
62182190
TT
85992020-03-13 Tom Tromey <tom@tromey.com>
8600
8601 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
8602 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
8603 * c-valprint.c (c_value_print_inner): New function.
8604 * c-lang.h (c_value_print_inner): Declare.
8605 * c-lang.c (c_language_defn, cplus_language_defn)
8606 (asm_language_defn, minimal_language_defn): Use
8607 c_value_print_inner.
8608
1e592a8a
TT
86092020-03-13 Tom Tromey <tom@tromey.com>
8610
8611 * p-valprint.c (pascal_object_print_value_fields): Now static.
8612 * p-lang.h (pascal_object_print_value_fields): Don't declare.
8613
7fe471e9
TT
86142020-03-13 Tom Tromey <tom@tromey.com>
8615
8616 * c-valprint.c (c_val_print_array): Simplify.
8617
d121c6ce
TT
86182020-03-13 Tom Tromey <tom@tromey.com>
8619
8620 * valprint.c (value_print_array_elements): New function.
8621 * valprint.h (value_print_array_elements): Declare.
8622
4dba70ee
TT
86232020-03-13 Tom Tromey <tom@tromey.com>
8624
8625 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
8626 * mips-tdep.c (mips_print_register): Use
8627 value_print_scalar_formatted.
8628
4f9ae810
TT
86292020-03-13 Tom Tromey <tom@tromey.com>
8630
8631 * valprint.h (value_print_scalar_formatted): Declare.
8632 * valprint.c (value_print_scalar_formatted): New function.
8633
156bfec9
TT
86342020-03-13 Tom Tromey <tom@tromey.com>
8635
8636 * valprint.h (generic_value_print): Declare.
8637 * valprint.c (generic_value_print): New function.
8638
2b4e573d
TT
86392020-03-13 Tom Tromey <tom@tromey.com>
8640
8641 * valprint.c (do_val_print): Call la_value_print_inner, if
8642 available.
8643 * rust-lang.c (rust_language_defn): Update.
8644 * p-lang.c (pascal_language_defn): Update.
8645 * opencl-lang.c (opencl_language_defn): Update.
8646 * objc-lang.c (objc_language_defn): Update.
8647 * m2-lang.c (m2_language_defn): Update.
8648 * language.h (struct language_defn) <la_value_print_inner>: New
8649 member.
8650 * language.c (unknown_language_defn, auto_language_defn): Update.
8651 * go-lang.c (go_language_defn): Update.
8652 * f-lang.c (f_language_defn): Update.
8653 * d-lang.c (d_language_defn): Update.
8654 * c-lang.c (c_language_defn, cplus_language_defn)
8655 (asm_language_defn, minimal_language_defn): Update.
8656 * ada-lang.c (ada_language_defn): Update.
8657
a1f6a07c
TT
86582020-03-13 Tom Tromey <tom@tromey.com>
8659
8660 * c-valprint.c (c_value_print): Use common_val_print.
8661
410cf315
TT
86622020-03-13 Tom Tromey <tom@tromey.com>
8663
8664 * cp-valprint.c (cp_print_static_field): Use common_val_print.
8665
72a45c93
TT
86662020-03-13 Tom Tromey <tom@tromey.com>
8667
8668 * f-valprint.c (f77_print_array_1, f_val_print): Use
8669 common_val_print.
8670
040f66bd
TT
86712020-03-13 Tom Tromey <tom@tromey.com>
8672
8673 * riscv-tdep.c (riscv_print_one_register_info): Use
8674 common_val_print.
8675
a6e05a6c
TT
86762020-03-13 Tom Tromey <tom@tromey.com>
8677
8678 * mi/mi-main.c (output_register): Use common_val_print.
8679
3444c526
TT
86802020-03-13 Tom Tromey <tom@tromey.com>
8681
8682 * infcmd.c (default_print_one_register_info): Use
8683 common_val_print.
8684
c2a44efe
TT
86852020-03-13 Tom Tromey <tom@tromey.com>
8686
8687 * valprint.h (common_val_print_checked): Declare.
8688 * valprint.c (common_val_print_checked): New function.
8689 * stack.c (print_frame_arg): Use common_val_print_checked.
8690
b0c26e99
TT
86912020-03-13 Tom Tromey <tom@tromey.com>
8692
8693 * valprint.c (do_val_print): New function, from val_print.
8694 (val_print): Use do_val_print.
8695 (common_val_print): Use do_val_print.
8696
ce3acbe9
TT
86972020-03-13 Tom Tromey <tom@tromey.com>
8698
8699 * valprint.c (value_print): Use scoped_value_mark.
8700
96c7f873
TV
87012020-03-13 Tom de Vries <tdevries@suse.de>
8702
8703 PR symtab/25646
8704 * psymtab.c (partial_symtab::partial_symtab): Don't set
8705 globals_offset and statics_offset. Push element onto
8706 current_global_psymbols and current_static_psymbols stacks.
8707 (concat): New function.
8708 (end_psymtab_common): Set globals_offset and statics_offset. Pop
8709 element from current_global_psymbols and current_static_psymbols
8710 stacks. Concat popped elements to global_psymbols and
8711 static_symbols.
8712 (add_psymbol_to_list): Use current_global_psymbols and
8713 current_static_psymbols stacks.
8714 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
8715 current_static_psymbols fields.
8716
6ba0a321
CB
87172020-03-12 Christian Biesinger <cbiesinger@google.com>
8718
8719 * corelow.c (sniff_core_bfd): Remove.
8720 (class core_target) <m_core_vec>: Remove.
8721 (core_target::core_target): Update.
8722 (core_file_fns): Remove.
8723 (deprecated_add_core_fns): Remove.
8724 (default_core_sniffer): Remove.
8725 (sniff_core_bfd): Remove.
8726 (default_check_format): Remove.
8727 (gdb_check_format): Remove.
8728 (core_target_open): Update.
8729 (core_target::get_core_register_section): Update.
8730 (get_core_registers_cb): Update.
8731 (core_target::fetch_registers): Update.
8732 * gdbcore.h (struct core_fns): Remove.
8733 (deprecated_add_core_fns): Remove.
8734 (default_core_sniffer): Remove.
8735 (default_check_format): Remove.
8736
227031b2
TT
87372020-03-12 Tom Tromey <tom@tromey.com>
8738
8739 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
8740 CORE_ADDR.
8741 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
8742
53807e9f
TT
87432020-03-12 Tom Tromey <tom@tromey.com>
8744
8745 * remote.c (remote_target::download_tracepoint)
8746 (remote_target::enable_tracepoint)
8747 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
8748 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
8749 sprintf_vma.
8750
64f25102
TT
87512020-03-12 Tom Tromey <tom@tromey.com>
8752
8753 * symfile-mem.c: Update CORE_ADDR size assert.
8754
272cd5a3
SM
87552020-03-12 Simon Marchi <simon.marchi@efficios.com>
8756
8757 * selftest.m4: Move to gdbsupport/.
8758 * acinclude.m4: Update path to selftest.m4.
8759
74cd3f9d
SM
87602020-03-12 Simon Marchi <simon.marchi@efficios.com>
8761
8762 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
8763 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
8764 gdbarch-selfselftests.c and selftest-arch.c.
8765 (SUBDIR_UNITTESTS_OBS): Rename to...
8766 (SELFTESTS_OBS): ... this.
8767 (COMMON_SFILES): Remove disasm-selftests.c and
8768 gdbarch-selftests.c.
8769 * configure.ac: Don't add selftest-arch.{c,o} to
8770 CONFIG_{SRCS,OBS}.
8771 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
8772 preprocessor conditions.
8773
db6878ac
SM
87742020-03-12 Simon Marchi <simon.marchi@efficios.com>
8775
8776 * configure.ac: Don't source bfd/development.sh.
8777 * selftest.m4: Modify comment.
8778 * configure: Re-generate.
8779
4d696a5c
SM
87802020-03-12 Simon Marchi <simon.marchi@efficios.com>
8781
8782 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
8783 not "true" or "false".
8784 * configure: Re-generate.
8785
8dd8e1c7
CB
87862020-03-12 Christian Biesinger <cbiesinger@google.com>
8787
8788 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
8789 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
8790 renamed to arm_nbsd_supply_gregset.
8791 (fetch_register): Update to call arm_nbsd_supply_gregset.
8792 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
8793 (arm_netbsd_nat_target::fetch_registers): Update.
8794 (fetch_elfcore_registers): Removed.
8795 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
8796 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
8797 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
8798 not require NetBSD system headers.
8799 (arm_nbsd_regset): New struct.
8800 (arm_nbsd_iterate_over_regset_sections): New function.
8801 (arm_netbsd_init_abi_common): Updated to call
8802 set_gdbarch_iterate_over_regset_sections.
8803 * arm-nbsd-tdep.h: New file.
8804
dd69bf7a
KB
88052020-03-11 Kevin Buettner <kevinb@redhat.com>
8806
8807 * symtab.c (find_pc_sect_line): Add check which prevents infinite
8808 recursion.
8809
a0761e34
SM
88102020-03-11 Simon Marchi <simon.marchi@efficios.com>
8811
8812 * configure: Re-generate.
8813
e7a82140
TT
88142020-03-11 Tom Tromey <tromey@adacore.com>
8815
8816 * ada-typeprint.c (print_choices): Fix comment.
8817
dcc050c8
AB
88182020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
8819
8820 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
8821 previous item in the list, when the list has no items.
8822
1c33af77
TV
88232020-03-11 Tom de Vries <tdevries@suse.de>
8824
8825 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
8826 PROP_LOCLIST handling code.
8827
8c95582d
AB
88282020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
8829
8830 * buildsym-legacy.c (record_line): Pass extra parameter to
8831 record_line.
8832 * buildsym.c (buildsym_compunit::record_line): Take an extra
8833 parameter, reduce duplication in the line table, and record the
8834 is_stmt flag in the line table.
8835 * buildsym.h (buildsym_compunit::record_line): Add extra
8836 parameter.
8837 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
8838 non-statement lines.
8839 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
8840 this to the symtab builder.
8841 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
8842 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
8843 through to dwarf_record_line_1.
8844 * infrun.c (process_event_stop_test): When stepping, don't stop at
8845 a non-statement instruction, and only refresh the step info when
8846 we land in the middle of a line's range. Also add an extra
8847 comment.
8848 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
8849 field.
8850 * record-btrace.c (btrace_find_line_range): Only record lines
8851 marked as is-statement.
8852 * stack.c (frame_show_address): Show the frame address if we are
8853 in a non-statement sal.
8854 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
8855 (maintenance_print_one_line_table): Print a header for the is_stmt
8856 column, and include is_stmt information in the output.
8857 * symtab.c (find_pc_sect_line): Find lines marked as statements in
8858 preference to non-statements.
8859 (find_pcs_for_symtab_line): Prefer is-statement entries.
8860 (find_line_common): Likewise.
8861 * symtab.h (struct linetable_entry): Add is_stmt field.
8862 (struct symtab_and_line): Likewise.
8863 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
8864 arranging the line table.
8865
e4003a34
TV
88662020-03-07 Tom de Vries <tdevries@suse.de>
8867
8868 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
8869 DIE.
8870
e8932576
TT
88712020-03-07 Tom Tromey <tom@tromey.com>
8872
8873 * valops.c (value_literal_complex): Remove obsolete comment.
8874 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
8875 comment.
8876
29734269
SM
88772020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
8878
8879 * infrun.h: Forward-declare thread_info.
8880 (set_step_info): Add thread_info parameter, add doc.
8881 * infrun.c (set_step_info): Add thread_info parameter, move doc
8882 to header.
8883 * infrun.c (process_event_stop_test): Pass thread to
8884 set_step_info call.
8885 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
8886 set_step_info.
8887 (prepare_one_step): Add thread_info parameter, pass it to
8888 set_step_frame and prepare_one_step (recursive) call.
8889 (step_1): Pass thread to prepare_one_step call.
8890 (step_command_fsm::should_stop): Pass thread to
8891 prepare_one_step.
8892 (until_next_fsm): Pass thread to set_step_frame call.
8893 (finish_command): Pass thread to set_step_info call.
8894
b7d64b29
HD
88952020-03-06 Hannes Domani <ssbssa@yahoo.de>
8896
8897 * windows-tdep.c (windows_solib_create_inferior_hook):
8898 Check if inferior is running.
8899
09f2921c
TV
89002020-03-06 Tom de Vries <tdevries@suse.de>
8901
8902 * NEWS: Fix "the the".
8903 * ctfread.c: Same.
8904
fd760e79
TV
89052020-03-06 Tom de Vries <tdevries@suse.de>
8906
8907 * psymtab.c (psymtab_to_symtab): Don't print "done.".
8908
20ea4a60
AB
89092020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
8910
8911 * .dir-locals.el: Add a comment referencing the other copies of
8912 this file.
8913
0afbabf0
JB
89142020-03-05 John Baldwin <jhb@FreeBSD.org>
8915
8916 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
8917 psargs.
8918
842806cb
TBA
89192020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8920
8921 * .gitattributes: New file.
8922
be1e3d3e
TT
89232020-03-04 Tom Tromey <tom@tromey.com>
8924
8925 * symmisc.c (print_symbol_bcache_statistics)
8926 (print_objfile_statistics): Update.
8927 * symfile.c (allocate_symtab): Use intern.
8928 * psymtab.c (partial_symtab::partial_symtab): Use intern.
8929 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
8930 macro_cache>: Remove.
8931 <string_cache>: New member.
8932 (struct objfile) <intern>: New methods.
8933 * elfread.c (elf_symtab_read): Use intern.
8934 * dwarf2/read.c (fixup_go_packaging): Intern package name.
8935 (dwarf2_compute_name, dwarf2_physname)
8936 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
8937 names.
8938 (guess_partial_die_structure_name): Update.
8939 (partial_die_info::fixup): Intern name.
8940 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
8941 name.
8942 (dwarf2_name): Intern name. Update.
8943 * buildsym.c (buildsym_compunit::get_macro_table): Use
8944 string_cache.
8945
4e7625fd
TT
89462020-03-04 Tom Tromey <tom@tromey.com>
8947
8948 * jit.c (bfd_open_from_target_memory): Make "target" const.
8949 * corefile.c (gnutarget): Now const.
8950 * gdbcore.h (gnutarget): Now const.
8951
46f9f931
HD
89522020-03-04 Hannes Domani <ssbssa@yahoo.de>
8953
8954 * NEWS: Mention support for WOW64 processes.
8955 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
8956 (amd64_windows_segment_register_p): Remove static.
8957 (_initialize_amd64_windows_nat): Update.
8958 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
8959 * i386-windows-nat.c (context_offset): Update.
8960 (i386_mappings): Rename and remove static.
8961 (i386_windows_segment_register_p): Remove static.
8962 (_initialize_i386_windows_nat): Update.
8963 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
8964 (STATUS_WX86_SINGLE_STEP): New macro.
8965 (EnumProcessModulesEx): New macro.
8966 (Wow64SuspendThread): New macro.
8967 (Wow64GetThreadContext): New macro.
8968 (Wow64SetThreadContext): New macro.
8969 (Wow64GetThreadSelectorEntry): New macro.
8970 (windows_set_context_register_offsets): Add static.
8971 (windows_set_segment_register_p): Likewise.
8972 (windows_add_thread): Adapt for WOW64 processes.
8973 (windows_fetch_one_register): Likewise.
8974 (windows_nat_target::fetch_registers): Likewise.
8975 (windows_store_one_register): Likewise.
8976 (display_selector): Likewise.
8977 (display_selectors): Likewise.
8978 (handle_exception): Likewise.
8979 (windows_continue): Likewise.
8980 (windows_nat_target::resume): Likewise.
8981 (windows_add_all_dlls): Likewise.
8982 (do_initial_windows_stuff): Likewise.
8983 (windows_nat_target::attach): Likewise.
8984 (windows_get_exec_module_filename): Likewise.
8985 (windows_nat_target::create_inferior): Likewise.
8986 (windows_xfer_siginfo): Likewise.
8987 (_initialize_loadable): Initialize Wow64SuspendThread,
8988 Wow64GetThreadContext, Wow64SetThreadContext,
8989 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
8990 * windows-nat.h (windows_set_context_register_offsets):
8991 Remove declaration.
8992 (windows_set_segment_register_p): Likewise.
8993 (i386_windows_segment_register_p): Add declaration.
8994 (amd64_windows_segment_register_p): Likewise.
8995
440cf44e
LM
89962020-03-04 Luis Machado <luis.machado@linaro.org>
8997
8998 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
8999 in "info registers" for AArch64/ARM.
9000
9001 The change caused "info registers" to not print GPR's.
9002
9003 gdb/ChangeLog:
9004
9005 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
9006
9007 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
9008 when reg->group is empty and reggroup is not.
9009
1009d92f
TT
90102020-03-03 Tom Tromey <tromey@adacore.com>
9011
9012 * dwarf2/frame.c (struct dwarf2_frame_cache)
9013 <checked_tailcall_bottom, entry_cfa_sp_offset,
9014 entry_cfa_sp_offset_p>: Remove members.
9015 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
9016 (dwarf2_frame_prev_register): Don't call
9017 dwarf2_tailcall_sniffer_first.
9018 (dwarf2_append_unwinders): Don't append tailcall unwinder.
9019 * frame-unwind.c (add_unwinder): New fuction.
9020 (frame_unwind_init): Use it. Add tailcall unwinder.
9021
5e5d66b6
AB
90222020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
9023 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
9024
9025 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
9026 value should be printed as true.
9027
584cf46d
HD
90282020-03-03 Hannes Domani <ssbssa@yahoo.de>
9029
9030 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
9031 (windows_init_abi): Set and use windows_so_ops.
9032
7b973adc
SDJ
90332020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
9034
9035 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
9036 when verifying if dealing with a convenience variable.
9037
bb7b70ab
LM
90382020-03-03 Luis Machado <luis.machado@linaro.org>
9039
9040 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
9041
9822cb57
SM
90422020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
9043
9044 * infrun.c (gdbarch_supports_displaced_stepping): New.
9045 (use_displaced_stepping): Break up conditions in smaller pieces.
9046 Use gdbarch_supports_displaced_stepping.
9047 (displaced_step_prepare_throw): Use
9048 gdbarch_supports_displaced_stepping.
9049
63e163f2
AB
90502020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
9051
9052 * NEWS: Mention new behaviour of the history filename.
9053 * top.c (write_history_p): Add comment.
9054 (show_write_history_p): Add header comment, give a different
9055 message when history writing is on, but the history filename is
9056 empty.
9057 (history_filename): Add comment.
9058 (history_filename_empty): New function.
9059 (show_history_filename): Add header comment, give a different
9060 message when the filename is empty.
9061 (init_history): Compare history_filename against nullptr, and only
9062 read history if the filename is not empty.
9063 (set_history_filename): Add header comment, and only make
9064 non-empty filenames absolute.
9065 (init_main): Make the filename argument to 'set history filename'
9066 optional.
9067
81b86b97
CB
90682020-03-02 Christian Biesinger <cbiesinger@google.com>
9069
9070 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
9071 (arm_supply_vfpregset): ...this, and update to use VFP registers.
9072 (fetch_fp_register): Update.
9073 (fetch_fp_regs): Update.
9074 (store_fp_register): Update.
9075 (store_fp_regs): Update.
9076 (arm_netbsd_nat_target::read_description): New function.
9077 (fetch_elfcore_registers): Update.
9078
24ed6739
AB
90792020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
9080
9081 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
9082 general_thread if the stop reply is missing a thread-id.
9083 (remote_target::process_stop_reply): Use the first non-exited
9084 thread if the target didn't pass a thread-id.
9085 * infrun.c (do_target_wait): Move call to
9086 switch_to_inferior_no_thread to ....
9087 (do_target_wait_1): ... here.
9088
a84bb2a0
JT
90892020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
9090
9091 * debuginfod-support.c: Include defs.h first.
9092
658dadf0
TV
90932020-02-28 Tom de Vries <tdevries@suse.de>
9094
9095 * symfile.c (set_initial_language): Use default language for lookup.
9096
4ebe4877
SM
90972020-02-28 Simon Marchi <simon.marchi@efficios.com>
9098
9099 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
9100 reader variable, pass `this` to read_cutu_die_from_dwo.
9101
e5da1139
AM
91022020-02-27 Aaron Merey <amerey@redhat.com>
9103
9104 * source.c (open_source_file): Check for nullptr when computing
9105 srcpath.
9106
317f7127
TT
91072020-02-27 Tom Tromey <tromey@adacore.com>
9108
9109 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
9110 member.
9111 (dwarf2_add_field): Don't update nfields.
9112 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
9113
3104d9ee
AB
91142020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
9115
9116 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
9117 abs.
9118
b83470bf
TT
91192020-02-26 Tom Tromey <tom@tromey.com>
9120
9121 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
9122 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
9123 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
9124 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
9125 per_cu_data.
9126
edfe0a0c
TT
91272020-02-26 Tom Tromey <tom@tromey.com>
9128
9129 * dwarf2/index-write.c (psym_index_map): Change type.
9130 (add_address_entry_worker, write_one_signatured_type)
9131 (recursively_count_psymbols, recursively_write_psymbols)
9132 (class debug_names, psyms_seen_size, write_gdbindex)
9133 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
9134
0d79cdc4
AM
91352020-02-26 Aaron Merey <amerey@redhat.com>
9136
9137 * Makefile.in: Handle optional debuginfod support.
9138 * NEWS: Update.
9139 * README: Add --with-debuginfod summary.
9140 * config.in: Regenerate.
9141 * configure: Regenerate.
9142 * configure.ac: Handle optional debuginfod support.
9143 * debuginfod-support.c: debuginfod helper functions.
9144 * debuginfod-support.h: Ditto.
9145 * doc/gdb.texinfo: Add --with-debuginfod to configure options
9146 summary.
9147 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
9148 when a dwz file cannot be found.
9149 * elfread.c (elf_symfile_read): Query debuginfod servers when a
9150 debuginfo file cannot be found.
9151 * source.c (open_source_file): Query debuginfod servers when a
9152 source file cannot be found.
9153 * top.c (print_gdb_configuration): Include
9154 --{with,without}-debuginfod in the output.
9155
b65ce565
JG
91562020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
9157
9158 * thread.c (thr_try_catch_cmd): Print thread name.
9159
d4c9a4f8
SM
91602020-02-26 Simon Marchi <simon.marchi@efficios.com>
9161
9162 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
9163 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
9164 dwarf2_fetch_die_type_sect_off): Move to...
9165 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
9166 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
9167 dwarf2_fetch_die_type_sect_off): ... here.
9168 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
9169 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
9170 dwarf2_fetch_die_type_sect_off): Move doc to header file.
9171
0dce4280
TV
91722020-02-26 Tom de Vries <tdevries@suse.de>
9173
9174 PR gdb/25603
9175 * symfile.c (set_initial_language): Exit-early if
9176 language_mode == language_mode_manual.
9177
450a1bfc
SM
91782020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
9179
9180 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
9181 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
9182 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
9183
9e80cfa1
AB
91842020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
9185
9186 * gdbtypes.c (create_array_type_with_stride): Handle negative
9187 array strides.
9188 * valarith.c (value_subscripted_rvalue): Likewise.
9189
09624f1f
LM
91902020-02-25 Luis Machado <luis.machado@linaro.org>
9191
9192 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
9193
8cb5117c
SM
91942020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
9195
9196 * loc.h (dwarf2_get_die_type): Move to...
9197 * read.h (dwarf2_get_die_type): ... here.
9198 * read.c (dwarf2_get_die_type): Move doc to header.
9199
c325c44e
JB
92002020-02-25 Joel Brobecker <brobecker@adacore.com>
9201
9202 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
9203 'gnulib/Makefile.in' to the list.
9204
4ac93832
TT
92052020-02-24 Tom Tromey <tom@tromey.com>
9206
9207 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
9208 Remove.
9209 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
9210 XOBNEWVEC.
9211
197400e8
TT
92122020-02-24 Tom Tromey <tom@tromey.com>
9213
9214 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
9215 New method.
9216 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
9217 (dw2_do_instantiate_symtab, dw2_get_file_names)
9218 (build_type_psymtab_dependencies, load_full_type_unit): Update.
9219
76935768
TT
92202020-02-24 Tom Tromey <tom@tromey.com>
9221
9222 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
9223 make_scoped_restore.
9224 (dwarf2_psymtab::read_symtab): Don't clear
9225 reading_partial_symbols.
9226
a88ef40d
TV
92272020-02-24 Tom de Vries <tdevries@suse.de>
9228
9229 PR gdb/25592
9230 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
9231
c9af6521
TV
92322020-02-24 Tom de Vries <tdevries@suse.de>
9233
9234 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
9235 commands layout next/prev/regs.
9236
5707a07a
TT
92372020-02-22 Tom Tromey <tom@tromey.com>
9238
9239 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
9240 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
9241
3b0fb49e
TT
92422020-02-22 Tom Tromey <tom@tromey.com>
9243
9244 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
9245
283be8bf
TT
92462020-02-22 Tom Tromey <tom@tromey.com>
9247
9248 * tui/tui-win.c (_initialize_tui_win): Add usage text.
9249 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
9250 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
9251 * tui/tui.c (_initialize_tui): Add usage text.
9252
ca793b96
TT
92532020-02-22 Tom Tromey <tom@tromey.com>
9254
9255 * tui/tui-win.c (tui_set_focus_command)
9256 (tui_set_win_height_command): Use error_no_arg.
9257 (_initialize_tui_win): Update help text.
9258 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
9259
432b5c40
TT
92602020-02-22 Tom Tromey <tom@tromey.com>
9261
9262 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
9263 * tui/tui-disasm.h (struct tui_disasm_window)
9264 <display_start_addr>: Declare.
9265 * tui/tui-source.h (struct tui_source_window)
9266 <display_start_addr>: Declare.
9267 * tui/tui-winsource.h (struct tui_source_window_base)
9268 <show_source_line, display_start_addr>: New methods.
9269 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
9270 Rename and move to protected section.
9271 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
9272 (tui_source_window_base::do_erase_source_content): Update.
9273 (tui_source_window_base::show_source_line): Now a method.
9274 (tui_source_window_base::show_source_content)
9275 (tui_source_window_base::tui_source_window_base)
9276 (tui_source_window_base::rerender)
9277 (tui_source_window_base::refill)
9278 (tui_source_window_base::do_scroll_horizontal)
9279 (tui_source_window_base::set_is_exec_point_at)
9280 (tui_source_window_base::update_breakpoint_info)
9281 (tui_source_window_base::update_exec_info): Update.
9282 * tui/tui-source.c (tui_source_window::set_contents)
9283 (tui_source_window::showing_source_p)
9284 (tui_source_window::do_scroll_vertical)
9285 (tui_source_window::location_matches_p)
9286 (tui_source_window::line_is_displayed): Update.
9287 (tui_source_window::display_start_addr): New method.
9288 * tui/tui-disasm.c (tui_disasm_window::set_contents)
9289 (tui_disasm_window::do_scroll_vertical)
9290 (tui_disasm_window::location_matches_p): Update.
9291 (tui_disasm_window::display_start_addr): New method.
9292
01b1af32
TT
92932020-02-22 Tom Tromey <tom@tromey.com>
9294
9295 * NEWS: Add entry for gdb.register_window_type.
9296 * tui/tui-layout.h (window_factory): New typedef.
9297 (tui_register_window): Declare.
9298 * tui/tui-layout.c (saved_tui_windows): New global.
9299 (tui_apply_current_layout): Use it.
9300 (tui_register_window): New function.
9301 * python/python.c (do_start_initialization): Call
9302 gdbpy_initialize_tui.
9303 (python_GdbMethods): Add "register_window_type" function.
9304 * python/python-internal.h (gdbpy_register_tui_window)
9305 (gdbpy_initialize_tui): Declare.
9306 * python/py-tui.c: New file.
9307 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
9308
fc96d20b
TT
93092020-02-22 Tom Tromey <tom@tromey.com>
9310
9311 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
9312
935c78c0
TT
93132020-02-22 Tom Tromey <tom@tromey.com>
9314
9315 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
9316 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
9317 * tui/tui-data.c (tui_set_win_with_focus): Remove.
9318 (tui_set_win_focus_to): Move from tui-win.c.
9319
0240c8f1
TT
93202020-02-22 Tom Tromey <tom@tromey.com>
9321
9322 * tui/tui-layout.c (make_standard_window, get_locator_window): New
9323 functions.
9324 (known_window_types): New global.
9325 (tui_get_window_by_name): Reimplement.
9326 (initialize_known_windows): New function.
9327 (validate_window_name): Rewrite.
9328 (_initialize_tui_layout): Call initialize_known_windows.
9329
fdb01f0c
TT
93302020-02-22 Tom Tromey <tom@tromey.com>
9331
9332 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
9333 Remove constants.
9334 * tui/tui-winsource.h (struct tui_source_window_base)
9335 <tui_source_window_base>: Remove parameter.
9336 * tui/tui-winsource.c
9337 (tui_source_window_base::tui_source_window_base): Remove
9338 parameter.
9339 (tui_source_window_base::refill): Update.
9340 * tui/tui-stack.h (struct tui_locator_window)
9341 <tui_locator_window>: Update.
9342 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
9343 Default the constructor.
9344 * tui/tui-regs.h (struct tui_data_item_window)
9345 <tui_data_item_window>: Default the constructor.
9346 (struct tui_data_window) <tui_data_window>: Likewise.
9347 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
9348 Default the constructor.
9349 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
9350 Default the constructor.
9351 <type>: Remove.
9352 (struct tui_win_info) <tui_win_info>: Default the constructor.
9353 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
9354 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
9355 Default the constructor.
9356
865a5aec
TT
93572020-02-22 Tom Tromey <tom@tromey.com>
9358
9359 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
9360 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
9361 * tui/tui-win.c (tui_resize_all): Don't call
9362 tui_delete_invisible_windows.
9363 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
9364 done.
9365 (tui_set_layout): Update.
9366 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
9367 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
9368 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
9369
e098d18c
TT
93702020-02-22 Tom Tromey <tom@tromey.com>
9371
9372 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
9373 correctly.
9374
eb9c8874
TT
93752020-02-22 Tom Tromey <tom@tromey.com>
9376
9377 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
9378
7eed1a8e
TT
93792020-02-22 Tom Tromey <tom@tromey.com>
9380
9381 * tui/tui-winsource.h (struct tui_source_window_iterator)
9382 <inner_iterator>: New etytypedef.
9383 <tui_source_window_iterator>: Take "end" parameter.
9384 <tui_source_window_iterator>: Take iterator.
9385 <operator*, advance>: Update.
9386 <m_iter>: Change type.
9387 <m_end>: New field.
9388 (struct tui_source_windows) <begin, end>: Update.
9389 * tui/tui-layout.c (tui_windows): New global.
9390 (tui_apply_current_layout): Clear tui_windows.
9391 (tui_layout_window::apply): Update tui_windows.
9392 * tui/tui-data.h (tui_windows): Declare.
9393 (all_tui_windows): Now inline function.
9394 (class tui_window_iterator, struct all_tui_windows): Remove.
9395
7c043ba6
TT
93962020-02-22 Tom Tromey <tom@tromey.com>
9397
9398 PR tui/17850:
9399 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
9400 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
9401 "height" argument.
9402 (class tui_layout_window) <get_sizes>: Likewise.
9403 (class tui_layout_split) <tui_layout_split>: Add "vertical"
9404 argument.
9405 <get_sizes>: Add "height" argument.
9406 <m_vertical>: New field.
9407 * tui/tui-layout.c (tui_layout_split::clone): Update.
9408 (tui_layout_split::get_sizes): Add "height" argument.
9409 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
9410 (tui_new_layout_command): Parse "-horizontal".
9411 (_initialize_tui_layout): Update help string.
9412 (tui_layout_split::specification): Add "-horizontal" when needed.
9413 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
9414 argument.
9415 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
9416 New methods.
9417
6bc56648
TT
94182020-02-22 Tom Tromey <tom@tromey.com>
9419
9420 * tui/tui-layout.h (enum tui_adjust_result): New.
9421 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
9422 (class tui_layout_window) <adjust_size>: Return
9423 tui_adjust_result. Rewrite.
9424 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
9425 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
9426
c22fef7e
TT
94272020-02-22 Tom Tromey <tom@tromey.com>
9428
9429 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
9430 parameter and return types.
9431 (class tui_layout_base) <specification>: Add "depth".
9432 (class tui_layout_window) <specification>: Add "depth".
9433 (class tui_layout_split) <specification>: Add "depth".
9434 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
9435 and return types.
9436 (tui_new_layout_command): Parse sub-layouts.
9437 (_initialize_tui_layout): Update help string.
9438 (tui_layout_window::specification): Add "depth".
9439 (add_layout_command): Update.
9440
ee325b61
TT
94412020-02-22 Tom Tromey <tom@tromey.com>
9442
9443 * NEWS: Add "tui new-layout" item.
9444 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
9445 Add new-layout command to help text.
9446 (validate_window_name): New function.
9447 (tui_new_layout_command): New function.
9448 (_initialize_tui_layout): Register "new-layout".
9449 (tui_layout_window::specification): New method.
9450 (tui_layout_window::specification): New method.
9451 * tui/tui-layout.h (class tui_layout_base) <specification>: New
9452 method.
9453 (class tui_layout_window) <specification>: New method.
9454 (class tui_layout_split) <specification>: New method.
9455
416eb92d
TT
94562020-02-22 Tom Tromey <tom@tromey.com>
9457
9458 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
9459 * tui/tui-win.c (window_name_completer): Update comment.
9460 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
9461 Declare method.
9462 (class tui_layout_window) <replace_window>: Likewise.
9463 (class tui_layout_split) <replace_window>: Likewise.
9464 (tui_set_layout): Don't declare.
9465 (tui_set_initial_layout): Declare function.
9466 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
9467 (asm_regs_layout): New globals.
9468 (tui_current_layout, show_layout): Remove.
9469 (tui_set_layout, tui_add_win_to_layout): Rewrite.
9470 (find_layout, tui_apply_layout): New function.
9471 (layout_completer): Remove.
9472 (tui_next_layout): Reimplement.
9473 (tui_next_layout_command): New function.
9474 (tui_set_initial_layout, tui_prev_layout_command): New functions.
9475 (tui_regs_layout): Reimplement.
9476 (tui_regs_layout_command): New function.
9477 (extract_display_start_addr): Rewrite.
9478 (next_layout, prev_layout): Remove.
9479 (tui_layout_window::replace_window): New method.
9480 (tui_layout_split::replace_window): New method.
9481 (destroy_layout): New function.
9482 (layout_list): New global.
9483 (add_layout_command): New function.
9484 (initialize_layouts): Update.
9485 (tui_layout_command): New function.
9486 (_initialize_tui_layout): Install "layout" commands.
9487 * tui/tui-data.h (enum tui_layout_type): Remove.
9488 (tui_current_layout): Don't declare.
9489
0dbc2fc7
TT
94902020-02-22 Tom Tromey <tom@tromey.com>
9491
9492 * tui/tui-regs.c (tui_reg_layout): Remove.
9493 (tui_reg_command): Use tui_regs_layout.
9494 * tui/tui-layout.h (tui_reg_command): Declare.
9495 * tui/tui-layout.c (tui_reg_command): New function.
9496
5afe342e
TT
94972020-02-22 Tom Tromey <tom@tromey.com>
9498
9499 * tui/tui.c (tui_rl_delete_other_windows): Call
9500 tui_remove_some_windows.
9501 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
9502 Declare method.
9503 (class tui_layout_window) <remove_windows>: New method.
9504 (class tui_layout_split) <remove_windows>: Declare.
9505 (tui_remove_some_windows): Declare.
9506 * tui/tui-layout.c (tui_remove_some_windows): New function.
9507 (tui_layout_split::remove_windows): New method.
9508
427326a8
TT
95092020-02-22 Tom Tromey <tom@tromey.com>
9510
9511 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
9512 * tui/tui-layout.h (tui_next_layout): Declare.
9513 * tui/tui-layout.c (tui_next_layout): New function.
9514
3fe12b6d
TT
95152020-02-22 Tom Tromey <tom@tromey.com>
9516
9517 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
9518 correct coordinates.
9519
59b8b5d2
TT
95202020-02-22 Tom Tromey <tom@tromey.com>
9521
9522 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
9523 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
9524 DATA_WIN case.
9525
2a3d458b
TT
95262020-02-22 Tom Tromey <tom@tromey.com>
9527
9528 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
9529 TUI_DISASM_WIN, not tui_win_list.
9530
3f0cbb04
TT
95312020-02-22 Tom Tromey <tom@tromey.com>
9532
9533 * valprint.c (generic_val_print_enum_1)
9534 (val_print_type_code_flags): Style member names.
9535 * rust-lang.c (val_print_struct, rust_print_enum)
9536 (rust_print_struct_def, rust_internal_print_type): Style member
9537 names.
9538 * p-valprint.c (pascal_object_print_value_fields): Style member
9539 names. Only call fprintf_symbol_filtered for static members.
9540 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
9541 * f-valprint.c (f_val_print): Style member names.
9542 * f-typeprint.c (f_type_print_base): Style member names.
9543 * cp-valprint.c (cp_print_value_fields): Style member names. Only
9544 call fprintf_symbol_filtered for static members.
9545 (cp_print_class_member): Style member names.
9546 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
9547 member names.
9548 * ada-valprint.c (ada_print_scalar): Style enum names.
9549 (ada_val_print_enum): Likewise.
9550 * ada-typeprint.c (print_enum_type): Style enum names.
9551
d4d947ae
TT
95522020-02-21 Tom Tromey <tom@tromey.com>
9553
9554 * psympriv.h (struct partial_symtab): Update comment.
9555
e94e944b
TT
95562020-02-21 Tom Tromey <tromey@adacore.com>
9557
9558 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
9559 type is CORE_ADDR.
9560
1eb73179
TV
95612020-02-21 Tom de Vries <tdevries@suse.de>
9562
9563 PR gdb/25534
9564 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
9565 if dependencies[i]->user != NULL.
9566
4f180d53
AT
95672020-02-21 Ali Tamur <tamur@google.com>
9568
9569 * dwarf2/read.c (dwarf2_name): Add null check.
9570
22b6cd70
TT
95712020-02-20 Tom Tromey <tom@tromey.com>
9572
9573 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
9574 ">=", in binary search.
9575 (dwarf2_find_containing_comp_unit): New overload.
9576 (run_test): New self-test.
9577 (_initialize_dwarf2_read): Register new test.
9578
bd0cf5a6
NC
95792020-02-20 Nelson Chu <nelson.chu@sifive.com>
9580
9581 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
9582 * riscv-tdep.h: Likewise.
9583 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
9584 rv32-only CSR.
9585 * features/riscv/64bit-csr.xml: Regenerated.
9586
3f702acd
SDJ
95872020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
9588 Tom Tromey <tom@tromey.com>
9589
9590 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
9591 of 'fputc_unfiltered'.
9592 (putchar_unfiltered): Call 'fputc_unfiltered'.
9593 (fputc_unfiltered): Call 'fputs_unfiltered'.
9594
d13c7322
AB
95952020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
9596
9597 * config.in: Regenerate.
9598 * configure: Regenerate.
9599 * configure.ac: Add --with-python-libdir option.
9600 * main.c: Use WITH_PYTHON_LIBDIR.
9601
869d8950
TT
96022020-02-19 Tom Tromey <tom@tromey.com>
9603
9604 * symtab.c (general_symbol_info::compute_and_set_names): Use
9605 obstack_strndup. Simplify call to symbol_set_demangled_name.
9606
298e9637
SM
96072020-02-19 Simon Marchi <simon.marchi@efficios.com>
9608
9609 * dwarf2/read.c (allocate_signatured_type_table,
9610 allocate_dwo_unit_table, allocate_type_unit_groups_table,
9611 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
9612 Remove objfile parameter, update all callers.
9613
08410482
DE
96142020-02-19 Doug Evans <dje@google.com>
9615
9616 PR rust/25535
9617 * rust-lang.c (rust_print_enum): Apply embedded_offset to
9618 rust_enum_variant calculation.
9619
dfdeeca1
TT
96202020-02-19 Tom Tromey <tromey@adacore.com>
9621
9622 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
9623
2ef5453b
TT
96242020-02-19 Tom Tromey <tromey@adacore.com>
9625
9626 * ada-lang.c (cache_symbol): Use obstack_strdup.
9627
9f1528a1
AB
96282020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
9629
9630 * configure: Regenerate.
9631
d3c22fa8
TT
96322020-02-19 Tom Tromey <tromey@adacore.com>
9633
9634 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
9635 NULL check.
9636
bf84f706
MR
96372020-02-19 Maciej W. Rozycki <macro@wdc.com>
9638
9639 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
9640
d1c9b20f
AB
96412020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
9642
9643 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
9644 if GDBSERVER is not defined.
9645 (riscv_tdesc_cache): Likewise, also store const target_desc.
9646 (STATIC_IN_GDB): Define.
9647 (riscv_create_target_description): Update declaration with
9648 STATIC_IN_GDB.
9649 (riscv_lookup_target_description): New function, only define if
9650 GDBSERVER is not defined.
9651 * arch/riscv.h (riscv_create_target_description): Declare only
9652 when GDBSERVER is defined.
9653 (riscv_lookup_target_description): New declaration when GDBSERVER
9654 is not defined.
9655 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
9656 (riscv_linux_read_features): ...this, and return
9657 riscv_gdbarch_features instead of target_desc.
9658 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
9659 (riscv_linux_read_description): Rename to...
9660 (riscv_linux_read_features): ...this.
9661 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
9662 Update to use riscv_gdbarch_features and
9663 riscv_lookup_target_description.
9664 * riscv-tdep.c (riscv_find_default_target_description): Use
9665 riscv_lookup_target_description instead of
9666 riscv_create_target_description.
9667
373d7ac0
SM
96682020-02-18 Simon Marchi <simon.marchi@efficios.com>
9669
9670 * valprint.c (generic_val_print_enum_1): When printing a flag
9671 enum with value 0 and there is no enumerator with value 0, print
9672 just "0" instead of "(unknown: 0x0)".
9673
b29a2df0
SM
96742020-02-18 Simon Marchi <simon.marchi@efficios.com>
9675
9676 * valprint.c (generic_val_print_enum_1): Print unknown part of
9677 flag enum in hex.
9678
6740f0cc
SM
96792020-02-18 Simon Marchi <simon.marchi@efficios.com>
9680
9681 * dwarf2/read.c (update_enumeration_type_from_children): Allow
9682 flag enums to contain duplicate enumerators.
9683 * valprint.c (generic_val_print_enum_1): Update comment.
9684
edd45eb0
SM
96852020-02-18 Simon Marchi <simon.marchi@efficios.com>
9686
9687 * dwarf2/read.c: Include "count-one-bits.h".
9688 (update_enumeration_type_from_children): If an enumerator has
9689 multiple bits set, don't treat the enumeration as a "flag enum".
9690 * valprint.c (generic_val_print_enum_1): Assert that enumerators
9691 of flag enums have 0 or 1 bit set.
9692
6d0cf446
BE
96932020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
9694
9695 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
9696 conversion.
9697 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
9698 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
9699 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
9700 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
9701 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
9702
7001c1b7
SM
97032020-02-18 Simon Marchi <simon.marchi@efficios.com>
9704
9705 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
9706
fdb61c6c
SM
97072020-02-14 Simon Marchi <simon.marchi@efficios.com>
9708
9709 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
9710 displaced_step_closure_up.
9711 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
9712 (struct displaced_step_closure_up):
9713 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
9714 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
9715 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
9716 Likewise.
9717 * gdbarch.sh (displaced_step_copy_insn): Likewise.
9718 * gdbarch.c, gdbarch.h: Re-generate.
9719 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
9720 displaced_step_closure_up.
9721 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
9722 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
9723 * infrun.h (displaced_step_closure_up): New type alias.
9724 (struct displaced_step_inferior_state) <step_closure>: Change
9725 type to displaced_step_closure_up.
9726 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
9727 displaced_step_closure_up.
9728 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
9729
a4a38eb4
TT
97302020-02-14 Tom Tromey <tom@tromey.com>
9731
9732 * minidebug.c (gnu_debug_key): New global.
9733 (find_separate_debug_file_in_section): Use it.
9734
e8217e61
SM
97352020-02-14 Simon Marchi <simon.marchi@efficios.com>
9736
9737 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
9738 std::unique_ptr.
9739 * gdbarch.c: Re-generate.
9740 * gdbarch.h: Re-generate.
9741 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
9742 change.
9743 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
9744 type to std::unique_ptr.
9745 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
9746 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
9747 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
9748 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
9749 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
9750 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
9751 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
9752 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
9753 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
9754
d8d83535
SM
97552020-02-14 Simon Marchi <simon.marchi@efficios.com>
9756
9757 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
9758 std::unique_ptr.
9759 (displaced_step_clear): Rename to...
9760 (displaced_step_reset): ... this. Just call displaced->reset ().
9761 (displaced_step_clear_cleanup): Rename to...
9762 (displaced_step_reset_cleanup): ... this.
9763 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
9764 (displaced_step_fixup): Likewise.
9765 (resume_1): Likewise.
9766 (handle_inferior_event): Restore child's memory before calling
9767 displaced_step_fixup on the parent.
9768 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
9769 to std::unique_ptr.
9770 <step_closure>: Change type to std::unique_ptr.
9771
5f661e03
SM
97722020-02-14 Simon Marchi <simon.marchi@efficios.com>
9773
9774 * arm-tdep.c: Include count-one-bits.h.
9775 (cleanup_block_store_pc): Use count_one_bits.
9776 (cleanup_block_load_pc): Use count_one_bits.
9777 (arm_copy_block_xfer): Use count_one_bits.
9778 (thumb2_copy_block_xfer): Use count_one_bits.
9779 (thumb_copy_pop_pc_16bit): Use count_one_bits.
9780 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
9781 (thumb_get_next_pcs_raw): Use count_one_bits.
9782 (arm_get_next_pcs_raw): Use count_one_bits_l.
9783 * arch/arm.c (bitcount): Remove.
9784 * arch/arm.h (bitcount): Remove.
9785
8084e579
TT
97862020-02-14 Tom Tromey <tromey@adacore.com>
9787
9788 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
9789 Update.
9790 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
9791 * dwarf2/loc.c (call_site_find_chain_1): Return
9792 unique_xmalloc_ptr.
9793 (call_site_find_chain): Likewise.
9794
258bf0ee
RB
97952020-02-14 Richard Biener <rguenther@suse.de>
9796
9797 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
9798 on expression with division operators.
9799
f98a8458
AKS
98002020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
9801
9802 * MAINTAINERS (Write After Approval): Adding myself.
9803
d1437c0e
TT
98042020-02-12 Tom Tromey <tom@tromey.com>
9805
9806 * event-loop.c (event_data, gdb_event, event_handler_func):
9807 Remove.
9808
3d4560f7
TT
98092020-02-12 Tom Tromey <tom@tromey.com>
9810
9811 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
9812 (dwarf2_frame_objfile_data): Add comment.
9813 (find_comp_unit, set_comp_unit): New functions.
9814 (dwarf2_frame_find_fde): Use find_comp_unit.
9815 (dwarf2_build_frame_info): Use set_comp_unit.
9816
21982304
TT
98172020-02-12 Tom Tromey <tom@tromey.com>
9818
9819 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
9820 (comp_unit): Don't initialize objfile.
9821 (execute_cfa_program): Add text_offset parameter.
9822 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
9823 (dwarf2_frame_cache): Update.
9824 (dwarf2_build_frame_info): Don't set "objfile" member.
9825
4debb237
TT
98262020-02-12 Tom Tromey <tom@tromey.com>
9827
9828 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
9829 (decode_frame_entry): Likewise.
9830 (dwarf2_build_frame_info): Update.
9831
0d404d44
TT
98322020-02-12 Tom Tromey <tom@tromey.com>
9833
9834 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
9835 (decode_frame_entry_1): Use the comp_unit obstack.
9836
a7a3ae5c
TT
98372020-02-12 Tom Tromey <tom@tromey.com>
9838
9839 * dwarf2/frame.c (struct comp_unit): Add initializers and
9840 constructor.
9841 (dwarf2_frame_objfile_data): Store a comp_unit.
9842 (dwarf2_frame_find_fde): Update.
9843 (dwarf2_build_frame_info): Use "new".
9844
a9d65418
TT
98452020-02-12 Tom Tromey <tom@tromey.com>
9846
9847 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
9848 (dwarf2_fde_table): Typedef for std::vector.
9849 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
9850 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
9851 (decode_frame_entry): Update.
9852 (dwarf2_build_frame_info): Use "new".
9853
7559c217
CB
98542020-02-12 Christian Biesinger <cbiesinger@google.com>
9855
9856 * arm-tdep.c (arm_gdbarch_init): Update.
9857 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
9858 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
9859 have_neon, is_m>: Change to bool.
9860
aeefc73c
CB
98612020-02-12 Christian Biesinger <cbiesinger@google.com>
9862
9863 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
9864
d27b8e5f
TT
98652020-02-12 Tom Tromey <tom@tromey.com>
9866
9867 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
9868
cd5900f3
HD
98692020-02-12 Hannes Domani <ssbssa@yahoo.de>
9870
9871 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
9872 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
9873
f056b22b
TT
98742020-02-11 Tom Tromey <tom@tromey.com>
9875
9876 * psymtab.h: Update comment.
9877
f92ff6b5
TT
98782020-02-11 Tom Tromey <tom@tromey.com>
9879
9880 * gdb_obstack.h (struct auto_obstack): Use
9881 DISABLE_COPY_AND_ASSIGN.
9882
3fd6912b
TT
98832020-02-11 Tom Tromey <tom@tromey.com>
9884
9885 * dwarf2/frame.h (struct objfile): Don't forward declare.
9886
69ed9b74
CB
98872020-02-11 Christian Biesinger <cbiesinger@google.com>
9888
9889 * cris-tdep.c (cris_supply_gregset): Change signature to match
9890 what struct regset expects.
9891 (cris_regset): New struct.
9892 (fetch_core_registers): Remove.
9893 (cris_iterate_over_regset_sections): New function.
9894 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
9895 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
9896
bda874f6
CB
98972020-02-11 Christian Biesinger <cbiesinger@google.com>
9898
9899 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
9900 registers.
9901
754e1564
CB
99022020-02-11 Christian Biesinger <cbiesinger@google.com>
9903
9904 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
9905
8ddd8e0e
SM
99062020-02-11 Simon Marchi <simon.marchi@efficios.com>
9907
9908 * configure: Re-generate.
9909
898e7f60
SM
99102020-02-11 Simon Marchi <simon.marchi@efficios.com>
9911
9912 * configure: Re-generate.
9913
58df732b
SM
99142020-02-11 Simon Marchi <simon.marchi@efficios.com>
9915
9916 * acinclude: Update warning.m4 path.
9917 * warning.m4: Move to gdbsupport.
9918
da5bd37e
TT
99192020-02-11 Tom Tromey <tromey@adacore.com>
9920
9921 * remote.c (remote_console_output): Update.
9922 * printcmd.c (printf_command): Update.
9923 * event-loop.c (gdb_wait_for_event): Update.
9924 * linux-nat.c (sigchld_handler): Update.
9925 * remote-sim.c (gdb_os_write_stdout): Update.
9926 (gdb_os_flush_stdout): Update.
9927 (gdb_os_flush_stderr): Update.
9928 (gdb_os_write_stderr): Update.
9929 * exceptions.c (print_exception): Update.
9930 * remote-fileio.c (remote_fileio_func_read): Update.
9931 (remote_fileio_func_write): Update.
9932 * tui/tui.c (tui_enable): Update.
9933 * tui/tui-interp.c (tui_interp::init): Update.
9934 * utils.c (init_page_info): Update.
9935 (putchar_unfiltered, fputc_unfiltered): Update.
9936 (gdb_flush): Update.
9937 (emit_style_escape): Update.
9938 (flush_wrap_buffer, fputs_maybe_filtered): Update.
9939 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
9940 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
9941 (stderr_file::write): Update.
9942 (stderr_file::puts): Update.
9943 * ui-file.h (ui_file_isatty, ui_file_write)
9944 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
9945 (ui_file_puts): Don't declare.
9946
85f0dd3c
TV
99472020-02-10 Tom de Vries <tdevries@suse.de>
9948
9949 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
9950 sentinel to char *.
9951
2e927613
TV
99522020-02-09 Tom de Vries <tdevries@suse.de>
9953
9954 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
9955 filename if it matches "<artificial>".
9956
6bafc845
HD
99572020-02-09 Hannes Domani <ssbssa@yahoo.de>
9958
9959 * windows-tdep.c (struct enum_value_name): New struct.
9960 (create_enum): New function.
9961 (windows_get_siginfo_type): Create and use enum types.
9962
7928d571
HD
99632020-02-09 Hannes Domani <ssbssa@yahoo.de>
9964
9965 * NEWS: Mention $_siginfo support for Windows.
9966 * windows-nat.c (handle_exception): Set siginfo_er.
9967 (windows_nat_target::mourn_inferior): Reset siginfo_er.
9968 (windows_xfer_siginfo): New function.
9969 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
9970 * windows-tdep.c (struct windows_gdbarch_data): New struct.
9971 (init_windows_gdbarch_data): New function.
9972 (get_windows_gdbarch_data): New function.
9973 (windows_get_siginfo_type): New function.
9974 (windows_init_abi): Register windows_get_siginfo_type.
9975 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
9976
6751ebae
TT
99772020-02-08 Tom Tromey <tom@tromey.com>
9978
9979 * dwarf2/read.c (class cutu_reader) <cutu_reader,
9980 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
9981 <keep>: Declare method.
9982 <m_keep>: Remove member.
9983 <~cutu_reader>: Remove.
9984 (cutu_reader::init_tu_and_read_dwo_dies): Update.
9985 (cutu_reader::cutu_reader): Update.
9986 (cutu_reader::keep): Rename from ~cutu_reader.
9987 (process_psymtab_comp_unit, build_type_psymtabs_1)
9988 (process_skeletonless_type_unit, load_partial_comp_unit)
9989 (load_full_comp_unit, dwarf2_read_addr_index)
9990 (read_signatured_type): Update.
9991
135f5437
TT
99922020-02-08 Tom Tromey <tom@tromey.com>
9993
9994 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
9995 "want_partial_unit" parameter.
9996 (process_psymtab_comp_unit): Change want_partial_unit to bool.
9997 Inline check for DW_TAG_partial_unit.
9998 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
9999
9f66ff1c
TT
100002020-02-08 Tom Tromey <tom@tromey.com>
10001
10002 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
10003 read.c.
10004 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
10005 read.c.
10006
c8a7a66f
TT
100072020-02-08 Tom Tromey <tom@tromey.com>
10008
10009 * dwarf2/read.c (read_address): Move to comp-unit.c.
10010 (dwarf2_rnglists_process, dwarf2_ranges_process)
10011 (read_attribute_value, dwarf_decode_lines_1)
10012 (var_decode_location, decode_locdesc): Update.
10013 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
10014 read.c. Remove "cu" parameter.
10015 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
10016 method.
10017
8266302d
TT
100182020-02-08 Tom Tromey <tom@tromey.com>
10019
10020 * dwarf2/read.c (read_attribute_value, read_indirect_string)
10021 (read_indirect_line_string): Update.
10022 * dwarf2/comp-unit.c (read_offset): Remove.
10023 (read_comp_unit_head): Update.
10024 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
10025 method.
10026 (read_offset): Don't declare.
10027
4057dfde
TT
100282020-02-08 Tom Tromey <tom@tromey.com>
10029
10030 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
10031 * dwarf2/read.c (struct comp_unit_head): Move to
10032 dwarf2/comp-unit.h.
10033 (enum class rcuh_kind): Move to comp-unit.h.
10034 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
10035 (read_comp_unit_head, error_check_comp_unit_head)
10036 (read_and_check_comp_unit_head): Move to comp-unit.c.
10037 (read_offset, dwarf_unit_type_name): Likewise.
10038 (create_debug_type_hash_table, read_cutu_die_from_dwo)
10039 (cutu_reader::cutu_reader, read_call_site_scope)
10040 (find_partial_die, follow_die_offset): Update.
10041 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
10042
24aa364d
TT
100432020-02-08 Tom Tromey <tom@tromey.com>
10044
10045 * dwarf2/read.c (read_offset_1): Move to leb.c.
10046 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
10047 (dwarf_decode_macro_bytes): Update.
10048 * dwarf2/leb.c (read_offset): Rename; move from read.c.
10049 * dwarf2/leb.h (read_offset): Declare.
10050
2c7d5afc
TT
100512020-02-08 Tom Tromey <tom@tromey.com>
10052
10053 * dwarf2/read.c (dwarf2_section_size): Remove.
10054 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
10055 Update.
10056 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
10057
4075cb26
TT
100582020-02-08 Tom Tromey <tom@tromey.com>
10059
10060 * dwarf2/read.c (read_initial_length): Move to leb.c.
10061 * dwarf2/leb.h (read_initial_length): Declare.
10062 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
10063 handle_nonstd parameter.
10064 * dwarf2/frame.c (read_initial_length): Remove.
10065 (decode_frame_entry_1): Update.
10066
09ba997f
TT
100672020-02-08 Tom Tromey <tom@tromey.com>
10068
10069 * dwarf2/loc.c (dwarf2_find_location_expression)
10070 (dwarf_evaluate_loc_desc::get_tls_address)
10071 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
10072 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
10073 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
10074 (dwarf2_compile_property_to_c)
10075 (dwarf2_loc_desc_get_symbol_read_needs)
10076 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
10077 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
10078 (loclist_describe_location, loclist_tracepoint_var_ref)
10079 (loclist_generate_c_location): Update.
10080 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
10081 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
10082 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
10083 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
10084 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
10085 (dwarf2_per_cu_data::addr_size)
10086 (dwarf2_per_cu_data::ref_addr_size)
10087 (dwarf2_per_cu_data::text_offset)
10088 (dwarf2_per_cu_data::addr_type): Now methods.
10089 (per_cu_header_read_in): Make per_cu "const".
10090 (dwarf2_version): Remove.
10091 (dwarf2_per_cu_data::int_type): Now a method.
10092 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
10093 (set_die_type, read_array_type, read_subrange_index_type)
10094 (read_tag_string_type, read_subrange_type): Update.
10095 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
10096 offset_size, ref_addr_size, text_offset, addr_type, version,
10097 objfile, int_type, addr_sized_int_type>: Declare methods.
10098
96c738c0
TT
100992020-02-08 Tom Tromey <tom@tromey.com>
10100
10101 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
10102 Move earlier.
10103
8fdd972c
TT
101042020-02-08 Tom Tromey <tom@tromey.com>
10105
10106 * dwarf2/read.h (dwarf_line_debug): Declare.
10107 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
10108 * dwarf2/read.c: Move line_header code to new files.
10109 (dwarf_line_debug): No longer static.
10110 * dwarf2/line-header.c: New file.
10111 * dwarf2/line-header.h: New file.
10112
03075812
TT
101132020-02-08 Tom Tromey <tom@tromey.com>
10114
10115 * dwarf2/read.c (struct line_header) <file_full_name,
10116 file_file_name>: Return unique_xmalloc_ptr.
10117 (line_header::file_file_name): Update.
10118 (line_header::file_full_name): Update.
10119 (dw2_get_file_names_reader): Update.
10120 (macro_start_file): Update.
10121
bb822404
TT
101222020-02-08 Tom Tromey <tom@tromey.com>
10123
10124 * dwarf2/read.c (struct line_header) <file_full_name,
10125 file_file_name>: Declare methods.
10126 (dw2_get_file_names_reader): Update.
10127 (file_file_name): Now a method.
10128 (file_full_name): Likewise.
10129 (macro_start_file): Update.
10130
009b64fc
TT
101312020-02-08 Tom Tromey <tom@tromey.com>
10132
10133 * dwarf2/read.c (dwarf_always_disassemble)
10134 (show_dwarf_always_disassemble): Move to loc.c.
10135 (_initialize_dwarf2_read): Move "always-disassemble" registration
10136 to loc.c.
10137 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
10138 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
10139 static.
10140 (show_dwarf_always_disassemble): Move from read.c.
10141 (_initialize_dwarf2loc): Move always-disassemble from read.c.
10142
5895093f
TT
101432020-02-08 Tom Tromey <tom@tromey.com>
10144
10145 * dwarf2/read.c (~dwarf2_per_objfile): Update.
10146 (create_quick_file_names_table): Return htab_up.
10147 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
10148 Update.
10149 * dwarf2/read.h (struct dwarf2_per_objfile)
10150 <quick_file_names_table>: Now htab_up.
10151
b3b32279
TT
101522020-02-08 Tom Tromey <tom@tromey.com>
10153
10154 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
10155
1d33d811
TT
101562020-02-08 Tom Tromey <tom@tromey.com>
10157
10158 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
10159 Rewrite.
10160 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
10161 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
10162 (abbrev_table::abbrev_table): No longer inline.
10163 (ABBREV_HASH_SIZE): Remove.
10164 (abbrev_table::m_abbrevs): Now an htab_up.
10165
86de1d91
TT
101662020-02-08 Tom Tromey <tom@tromey.com>
10167
10168 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
10169 (cutu_reader): Update.
10170 (build_type_psymtabs_1): Update.
10171 * dwarf2/abbrev.c (abbrev_table::read): Rename.
10172 (abbrev_table::alloc_abbrev): Update.
10173 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
10174 (abbrev_table::read): New static method, renamed from
10175 abbrev_table_read_table.
10176 (abbrev_table::alloc_abbrev)
10177 (abbrev_table::add_abbrev): Now private.
10178 (abbrev_table::abbrev_table): Now private.
10179 (abbrev_table::m_abbrev_obstack): Now private. Rename.
10180
0335378b
TT
101812020-02-08 Tom Tromey <tom@tromey.com>
10182
10183 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
10184 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
10185 htab_up.
10186
48b490f2
TT
101872020-02-08 Tom Tromey <tom@tromey.com>
10188
10189 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
10190 htab_up.
10191 (lookup_dwo_unit_in_dwp): Update.
10192 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
10193 on obstack.
10194
bc68fb19
TT
101952020-02-08 Tom Tromey <tom@tromey.com>
10196
10197 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
10198 obstack.
10199
d15acc42
TT
102002020-02-08 Tom Tromey <tom@tromey.com>
10201
10202 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
10203 line_header_hash.
10204 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
10205 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
10206 Change type to htab_up.
10207
eaa5fa8b
TT
102082020-02-08 Tom Tromey <tom@tromey.com>
10209
10210 * dwarf2/read.c (allocate_type_unit_groups_table): Return
10211 htab_up. Don't allocate on obstack.
10212 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
10213 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
10214 Change type to htab_up.
10215
b0b6a987
TT
102162020-02-08 Tom Tromey <tom@tromey.com>
10217
10218 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
10219 Change type to htab_up.
10220 * dwarf2/read.c (create_signatured_type_table_from_index)
10221 (create_signatured_type_table_from_debug_names)
10222 (create_all_type_units, add_type_unit)
10223 (lookup_dwo_signatured_type, lookup_signatured_type)
10224 (process_skeletonless_type_unit): Update.
10225 (create_debug_type_hash_table, create_debug_types_hash_table):
10226 Change type of types_htab.
10227 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
10228 htab_up. Don't allocate on obstack.
10229 (create_cus_hash_table): Change type of cus_htab parameter.
10230 (struct dwo_file) <cus, tus>: Now htab_up.
10231 (lookup_dwo_signatured_type, lookup_dwo_cutu)
10232 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
10233 (queue_and_load_all_dwo_tus): Update.
10234 * dwarf2/index-write.c (write_gdbindex): Update.
10235 (write_debug_names): Update.
10236
39856def
TT
102372020-02-08 Tom Tromey <tom@tromey.com>
10238
10239 * dwarf2/read.h (struct dwarf2_queue_item): Move from
10240 dwarf2/read.c. Remove "next" member. Add constructor ntad
10241 destructor.
10242 (struct dwarf2_per_objfile) <queue>: New member.
10243 * dwarf2/read.c (struct dwarf2_queue_item): Move to
10244 dwarf2/read.h.
10245 (dwarf2_queue, dwarf2_queue_tail): Remove.
10246 (class dwarf2_queue_guard): Add parameter to constructor. Use
10247 DISABLE_COPY_AND_ASSIGN.
10248 <m_per_objfile>: New member.
10249 <~dwarf2_queue_guard>: Rewrite.
10250 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
10251 Update.
10252 (~dwarf2_queue_item): New.
10253
3e225074
TT
102542020-02-08 Tom Tromey <tom@tromey.com>
10255
10256 * dwarf2/read.c (struct die_info) <has_children>: New member.
10257 (dw2_get_file_names_reader): Remove has_children.
10258 (dw2_get_file_names): Update.
10259 (read_cutu_die_from_dwo): Remove has_children.
10260 (cutu_reader::init_tu_and_read_dwo_dies)
10261 (cutu_reader::cutu_reader): Update.
10262 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
10263 Remove has_children.
10264 (build_type_psymtabs_1, process_skeletonless_type_unit)
10265 (load_partial_comp_unit, load_full_comp_unit): Update.
10266 (create_dwo_cu_reader): Remove has_children.
10267 (create_cus_hash_table, read_die_and_children): Update.
10268 (read_full_die_1,read_full_die): Remove has_children.
10269 (read_signatured_type): Update.
10270 (class cutu_reader) <has_children>: Remove.
10271
82ca8957
TT
102722020-02-08 Tom Tromey <tom@tromey.com>
10273
10274 * dwarf2/expr.c: Rename from dwarf2expr.c.
10275 * dwarf2/expr.h: Rename from dwarf2expr.h.
10276 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
10277 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
10278 * dwarf2/frame.c: Rename from dwarf2-frame.c.
10279 * dwarf2/frame.h: Rename from dwarf2-frame.h.
10280 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
10281 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
10282 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
10283 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
10284 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
10285 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
10286 * dwarf2/loc.c: Rename from dwarf2loc.c.
10287 * dwarf2/loc.h: Rename from dwarf2loc.h.
10288 * dwarf2/read.c: Rename from dwarf2read.c.
10289 * dwarf2/read.h: Rename from dwarf2read.h.
10290 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
10291 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
10292 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
10293 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
10294 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
10295 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
10296 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
10297 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
10298 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
10299 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
10300 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
10301 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
10302 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
10303 Update.
10304 * Makefile.in (COMMON_SFILES): Update.
10305 (HFILES_NO_SRCDIR): Update.
10306
9e35d499
TT
103072020-02-08 Tom Tromey <tom@tromey.com>
10308
10309 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
10310 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
10311
1eba2311
TT
103122020-02-08 Tom Tromey <tom@tromey.com>
10313
10314 * dwarf2read.h (struct die_info): Don't declare.
10315
e41c2da2
TT
103162020-02-08 Tom Tromey <tom@tromey.com>
10317
10318 * dwarf2read.h (die_info_ptr): Remove typedef.
10319
4fc6c0d5
TT
103202020-02-08 Tom Tromey <tom@tromey.com>
10321
10322 * dwarf2read.c (read_call_site_scope)
10323 (handle_data_member_location, dwarf2_add_member_fn)
10324 (mark_common_block_symbol_computed, read_common_block)
10325 (attr_to_dynamic_prop, partial_die_info::read)
10326 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
10327 (dwarf2_symbol_mark_computed, set_die_type): Update.
10328 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
10329 method.
10330 (attr_form_is_block): Don't declare.
10331 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
10332
cd6c91b4
TT
103332020-02-08 Tom Tromey <tom@tromey.com>
10334
10335 * dwarf2read.c (dwarf2_find_base_address, )
10336 (read_call_site_scope, rust_containing_type)
10337 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
10338 (handle_data_member_location, dwarf2_add_member_fn)
10339 (get_alignment, read_structure_type, process_structure_scope)
10340 (mark_common_block_symbol_computed, read_common_block)
10341 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
10342 (partial_die_info::read, read_attribute_value, new_symbol)
10343 (lookup_die_type, dwarf2_get_ref_die_offset)
10344 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
10345 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
10346 (dwarf2_symbol_mark_computed): Update.
10347 * dwarf2/attribute.h (struct attribute) <value_as_address,
10348 form_is_section_offset, form_is_constant, form_is_ref>: Declare
10349 methods.
10350 (value_as_address, attr_form_is_section_offset)
10351 (attr_form_is_constant, attr_form_is_ref): Don't declare.
10352 * dwarf2/attribute.c (attribute::value_as_address)
10353 (attribute::form_is_section_offset, attribute::form_is_constant)
10354 (attribute::form_is_ref): Now methods.
10355
162dce55
TT
103562020-02-08 Tom Tromey <tom@tromey.com>
10357
10358 * dwarf2read.c (struct attribute, DW_STRING)
10359 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
10360 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
10361 (attr_form_is_block, attr_form_is_section_offset)
10362 (attr_form_is_constant, attr_form_is_ref): Move.
10363 * dwarf2/attribute.h: New file.
10364 * dwarf2/attribute.c: New file, from dwarf2read.c.
10365 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
10366
3054dd54
TT
103672020-02-08 Tom Tromey <tom@tromey.com>
10368
10369 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
10370 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
10371 Move.
10372 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
10373 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
10374 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
10375 abbrev.c.
10376 * dwarf2/abbrev.h: New file.
10377 * dwarf2/abbrev.c: New file, from dwarf2read.c.
10378 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
10379
96b79293
TT
103802020-02-08 Tom Tromey <tom@tromey.com>
10381
10382 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
10383 (dwarf2_section_size, dwarf2_get_section_info)
10384 (create_signatured_type_table_from_debug_names)
10385 (create_addrmap_from_aranges, read_debug_names_from_section)
10386 (get_gdb_index_contents_from_section, read_comp_unit_head)
10387 (error_check_comp_unit_head, read_abbrev_offset)
10388 (create_debug_type_hash_table, init_cu_die_reader)
10389 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
10390 (read_comp_units_from_section, create_cus_hash_table)
10391 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
10392 (create_dwp_v2_section, dwarf2_rnglists_process)
10393 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
10394 (abbrev_table_read_table, read_indirect_string_at_offset_from)
10395 (read_indirect_string_from_dwz, read_addr_index_1)
10396 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
10397 (dwarf_decode_macro_bytes, dwarf_decode_macros)
10398 (fill_in_loclist_baton): Update.
10399 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
10400 get_containing_section, get_bfd_owner, get_bfd_section,
10401 get_file_name, get_id, get_flags, empty, read>: Declare methods.
10402 (dwarf2_read_section, get_section_name, get_section_file_name)
10403 (get_containing_section, get_section_bfd_owner)
10404 (get_section_bfd_section, get_section_name, get_section_file_name)
10405 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
10406 declare.
10407 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
10408 (dwarf2_section_info::get_bfd_owner)
10409 (dwarf2_section_info::get_bfd_section)
10410 (dwarf2_section_info::get_name)
10411 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
10412 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
10413 (dwarf2_section_info::read): Now methods.
10414 * dwarf-index-write.c (class debug_names): Update.
10415
2c86cff9
TT
104162020-02-08 Tom Tromey <tom@tromey.com>
10417
10418 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
10419 Move to dwarf2/section.h.
10420 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
10421 (get_section_bfd_section, get_section_name)
10422 (get_section_file_name, get_section_id, get_section_flags)
10423 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
10424 dwarf2/section.c.
10425 * dwarf2/section.h: New file.
10426 * dwarf2/section.c: New file, from dwarf2read.c.
10427 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
10428
f4382c45
TT
104292020-02-08 Tom Tromey <tom@tromey.com>
10430
10431 * dwarf2read.h (read_unsigned_leb128): Don't declare.
10432 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
10433 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
10434 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
10435 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
10436 * dwarf2/leb.h: New file, from dwarf2read.c.
10437 * dwarf2/leb.c: New file, from dwarf2read.c.
10438 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
10439 Remove.
10440 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
10441 (COMMON_SFILES): Add dwarf2/leb.c.
10442
01840b7a
JB
104432020-02-08 Joel Brobecker <brobecker@adacore.com>
10444
10445 GDB 9.1 released.
10446
dfcb27e4
IB
104472020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
10448
10449 PR gdb/25190:
aac66a4c
SM
10450 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
10451 * gdb/remote.c (remote_console_output): Update.
10452 * gdb/ui-file.c (fputs_unfiltered): Rename to...
10453 (ui_file_puts): ...this.
10454 * gdb/ui-file.h (ui_file_puts): Add declaration.
10455 * gdb/utils.c (emit_style_escape): Update.
10456 (flush_wrap_buffer): Update.
10457 (fputs_maybe_filtered): Update.
10458 (fputs_unfiltered): Add function.
dfcb27e4 10459
faa17681
IB
104602020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
10461
aac66a4c
SM
10462 * gdb/event-loop.c (gdb_wait_for_event): Update.
10463 * gdb/printcmd.c (printf_command): Update.
10464 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
10465 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
10466 (gdb_os_flush_stderr): Update.
10467 * gdb/remote.c (remote_console_output): Update.
10468 * gdb/ui-file.c (gdb_flush): Rename to...
10469 (ui_file_flush): ...this.
10470 (stderr_file::write): Update.
10471 (stderr_file::puts): Update.
10472 * gdb/ui-file.h (gdb_flush): Rename to...
10473 (ui_file_flush): ...this.
10474 * gdb/utils.c (gdb_flush): Add function.
10475 * gdb/utils.h (gdb_flush): Add declaration.
faa17681 10476
5abbbe1d
TT
104772020-02-07 Tom Tromey <tromey@adacore.com>
10478
10479 PR breakpoints/24915:
10480 * source.c (find_and_open_source): Do not check basenames_may_differ.
10481
919adfe8
TT
104822020-02-07 Tom Tromey <tom@tromey.com>
10483
10484 * README: Update gdbserver documentation.
10485 * gdbserver: Move to top level.
10486 * configure.tgt (build_gdbserver): Remove.
10487 * configure.ac: Remove --enable-gdbserver.
10488 * configure: Rebuild.
10489 * Makefile.in (distclean): Don't mention gdbserver.
10490
1d5d29e7
SV
104912020-02-06 Shahab Vahedi <shahab@synopsys.com>
10492
10493 * source-cache.c (source_cache::ensure): Surround
10494 get_plain_source_lines with a try/catch.
10495 (source_cache::get_line_charpos): Get rid of try/catch
10496 and only check for the return value of "ensure".
10497 * tui/tui-source.c (tui_source_window::set_contents):
10498 Simplify "nlines" calculation.
10499
6eb1129c
SV
105002020-02-06 Shahab Vahedi <shahab@synopsys.com>
10501
10502 * MAINTAINERS (Write After Approval): Add myself.
10503
c6a42d11
CB
105042020-02-05 Christian Biesinger <cbiesinger@google.com>
10505
10506 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
10507 function call.
10508
c8ecdda6
CB
105092020-02-05 Christian Biesinger <cbiesinger@google.com>
10510
10511 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
10512
f6480e70
MR
105132020-02-05 Maciej W. Rozycki <macro@wdc.com>
10514
10515 * nat/riscv-linux-tdesc.h: New file.
10516 * nat/riscv-linux-tdesc.c: New file, taking code from...
10517 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
10518 ... here.
10519 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
10520 NATDEPFILES.
10521
dcc9fbc6
AB
105222020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
10523
10524 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
10525 we don't set the fake simulator ptid to the null_ptid.
10526
719546c4
SM
105272020-02-03 Simon Marchi <simon.marchi@efficios.com>
10528
10529 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
10530 * gdbthread.h (class thread_info) <resumed>: Likewise.
10531 * infrun.c (resume_1): Likewise.
10532 (proceed): Likewise.
10533 (infrun_thread_stop_requested): Likewise.
10534 (stop_all_threads): Likewise.
10535 (handle_inferior_event): Likewise.
10536 (restart_threads): Likewise.
10537 (finish_step_over): Likewise.
10538 (keep_going_stepped_thread): Likewise.
10539 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
10540 (linux_handle_extended_wait): Likewise.
10541 * record-btrace.c (get_thread_current_frame_id): Likewise.
10542 * record-full.c (record_full_wait_1): Likewise.
10543 * remote.c (remote_target::process_initial_stop_replies): Likewise.
10544 * target.c (target_resume): Likewise.
10545 * thread.c (set_running_thread): Likewise.
10546
e409c542
AKS
105472020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
10548
10549 * f-valprint.c (f77_print_array_1): Changed datatype of index
10550 variable to LONGEST from int to enable it to contain bound
10551 values correctly.
10552
ee98c0da
MR
105532020-02-03 Maciej W. Rozycki <macro@wdc.com>
10554
10555 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
10556 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
10557 offsets according to FLEN determined.
10558 (riscv_linux_nat_target::read_description): Determine FLEN
10559 dynamically.
10560 (riscv_linux_nat_target::fetch_registers): Size regset buffer
10561 according to FLEN determined.
10562 (riscv_linux_nat_target::store_registers): Likewise.
10563
aa66aac4
SV
105642020-02-01 Shahab Vahedi <shahab@synopsys.com>
10565
10566 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
10567 when reg->group is empty and reggroup is not.
10568
fd9faca8
TT
105692020-01-31 Tom Tromey <tromey@adacore.com>
10570
10571 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
10572 Call beneath target's mourn_inferior after unpushing.
10573
42330a68
AB
105742020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
10575
10576 PR tui/9765
10577 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
10578 have enough lines to fill the screen, still return the lowest
10579 address we found.
10580
7a27a45b
AB
105812020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
10582
10583 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
10584 '-', '<', and '>' commands.
10585
c47f70e2
PA
105862020-01-29 Pedro Alves <palves@redhat.com>
10587 Sergio Durigan Junior <sergiodj@redhat.com>
10588
10589 * infcmd.c (construct_inferior_arguments): Assert that
10590 'argc' is greater than 0.
10591
5133a315
LM
105922020-01-29 Luis Machado <luis.machado@linaro.org>
10593
10594 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
10595 (BRK_INSN_MASK): Define to 0xd4200000.
10596 (aarch64_program_breakpoint_here_p): New function.
10597 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
10598 * arch-utils.c (default_program_breakpoint_here_p): Moved from
10599 breakpoint.c.
10600 * arch-utils.h (default_program_breakpoint_here_p): Moved from
10601 breakpoint.h
10602 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
10603 call gdbarch_program_breakpoint_here_p.
10604 (program_breakpoint_here): Moved to arch-utils.c, renamed to
10605 default_program_breakpoint_here_p, changed return type to bool and
10606 simplified.
10607 * breakpoint.h (program_breakpoint_here): Moved prototype to
10608 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
10609 return type to bool.
10610 * gdbarch.c: Regenerate.
10611 * gdbarch.h: Regenerate.
10612 * gdbarch.sh (program_breakpoint_here_p): New method.
10613 * infrun.c (handle_signal_stop): Call
10614 gdbarch_program_breakpoint_here_p.
10615
168f8c6b
TT
106162020-01-26 Tom Tromey <tom@tromey.com>
10617
10618 * ctfread.c (struct ctf_fp_info): Reindent.
10619 (_initialize_ctfread): Remove.
10620
128a391f
TT
106212020-01-26 Tom Tromey <tom@tromey.com>
10622
10623 * psymtab.c (partial_map_expand_apply)
10624 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
10625 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
10626 (psym_print_stats, psym_expand_symtabs_for_function)
10627 (psym_map_symbol_filenames, psym_map_matching_symbols)
10628 (psym_expand_symtabs_matching)
10629 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
10630 (maintenance_check_psymtabs): Use new methods.
10631 * psympriv.h (struct partial_symtab) <readin_p,
10632 get_compunit_symtab>: New methods.
10633 <readin, compunit_symtab>: Remove members.
10634 (struct standard_psymtab): New.
10635 (struct legacy_psymtab): Derive from standard_psymtab.
10636 * dwarf2read.h (struct dwarf2_psymtab): Derive from
10637 standard_psymtab.
10638 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
10639
0494dbec
TT
106402020-01-26 Tom Tromey <tom@tromey.com>
10641
10642 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
10643 read_dependencies. Add assert.
10644 * psymtab.c (partial_symtab::read_dependencies): New method.
10645 * psympriv.h (struct partial_symtab) <read_dependencies>: New
10646 method.
10647 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
10648 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
10649 read_dependencies.
10650 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
10651 Add assert.
10652
8566b89b
TT
106532020-01-26 Tom Tromey <tom@tromey.com>
10654
10655 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
10656 Call expand_psymtab.
10657 (xcoff_read_symtab): Call expand_psymtab.
10658 (xcoff_start_psymtab, xcoff_end_psymtab): Set
10659 legacy_expand_psymtab.
10660 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
10661 method.
10662 (struct legacy_psymtab) <expand_psymtab>: Implement.
10663 <legacy_expand_psymtab>: New member.
10664 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
10665 (parse_partial_symbols): Set legacy_expand_psymtab.
10666 (psymtab_to_symtab_1): Change argument order. Call
10667 expand_psymtab.
10668 (new_psymtab): Set legacy_expand_psymtab.
10669 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
10670 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
10671 expand_psymtab.
10672 (dwarf2_psymtab::expand_psymtab): Rename from
10673 psymtab_to_symtab_1. Call expand_psymtab.
10674 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
10675 (dbx_end_psymtab): Likewise.
10676 (dbx_psymtab_to_symtab_1): Change argument order. Call
10677 expand_psymtab.
10678 (dbx_read_symtab): Call expand_psymtab.
10679 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
10680 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
10681 (ctf_psymtab::read_symtab): Call expand_psymtab.
10682
077cbab2
TT
106832020-01-26 Tom Tromey <tom@tromey.com>
10684
10685 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
10686 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
10687 messages.
10688 * mdebugread.c (mdebug_read_symtab): Remove prints.
10689 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
10690 assert.
10691 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
10692
891813be
TT
106932020-01-26 Tom Tromey <tom@tromey.com>
10694
10695 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
10696 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
10697 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
10698 legacy_symtab.
10699 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
10700 * psymtab.c (psymtab_to_symtab): Call method.
10701 (dump_psymtab): Update.
10702 * psympriv.h (struct partial_symtab): Add virtual destructor.
10703 <read_symtab>: New method.
10704 (struct legacy_symtab): New.
10705 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
10706 (struct pst_map) <pst>: Now a legacy_psymtab.
10707 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
10708 (new_psymtab): Use legacy_psymtab.
10709 * dwarf2read.h (struct dwarf2_psymtab): New.
10710 (struct dwarf2_per_cu_data) <psymtab>: Use it.
10711 * dwarf2read.c (dwarf2_create_include_psymtab)
10712 (dwarf2_build_include_psymtabs, create_type_unit_group)
10713 (create_partial_symtab, process_psymtab_comp_unit_reader)
10714 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
10715 (set_partial_user): Use dwarf2_psymtab.
10716 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
10717 (psymtab_to_symtab_1, process_full_comp_unit)
10718 (process_full_type_unit, dwarf2_ranges_read)
10719 (dwarf2_get_pc_bounds, psymtab_include_file_name)
10720 (dwarf_decode_lines): Use dwarf2_psymtab.
10721 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
10722 (add_address_entry_worker, write_one_signatured_type)
10723 (recursively_count_psymbols, recursively_write_psymbols)
10724 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
10725 (write_debug_names): Likewise.
10726 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
10727 <pst>: Now a legacy_psymtab.
10728 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
10729 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
10730 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
10731 * ctfread.c (struct ctf_psymtab): New.
10732 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
10733 ctf_psymtab.
10734 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
10735 (create_partial_symtab): Return a ctf_psymtab.
10736 (scan_partial_symbols): Update.
10737
c3693a1d
TT
107382020-01-26 Tom Tromey <tom@tromey.com>
10739
10740 * xcoffread.c (xcoff_start_psymtab): Use new.
10741 * psymtab.c (partial_symtab::partial_symtab): New constructor,
10742 renamed from start_psymtab_common.
10743 * psympriv.h (struct partial_symtab): Add new constructor.
10744 (start_psymtab_common): Don't declare.
10745 * mdebugread.c (parse_partial_symbols): Use new.
10746 * dwarf2read.c (create_partial_symtab): Use new.
10747 * dbxread.c (start_psymtab): Use new.
10748 * ctfread.c (create_partial_symtab): Use new.
10749
32caafd0
TT
107502020-01-26 Tom Tromey <tom@tromey.com>
10751
10752 * xcoffread.c (xcoff_end_psymtab): Use new.
10753 * psymtab.c (start_psymtab_common): Use new.
10754 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
10755 Update.
10756 * psympriv.h (struct partial_symtab): Add parameters to
10757 constructor. Don't inline.
10758 (allocate_psymtab): Don't declare.
10759 * mdebugread.c (new_psymtab): Use new.
10760 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
10761 * dbxread.c (dbx_end_psymtab): Use new.
10762
abaa2f23
TT
107632020-01-26 Tom Tromey <tom@tromey.com>
10764
10765 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
10766 allocate_psymtab. Update documentation.
10767 * psymtab.c (psymtab_storage::install_psymtab): Rename from
10768 allocate_psymtab. Do not use new.
10769 (allocate_psymtab): Use new. Update.
10770
6d94535f
TT
107712020-01-26 Tom Tromey <tom@tromey.com>
10772
10773 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
10774 * psymtab.c (psym_print_stats): Update.
10775 * psympriv.h (struct partial_symtab) <readin,
10776 psymtabs_addrmap_supported, anonymous>: Now bool.
10777 * mdebugread.c (psymtab_to_symtab_1): Update.
10778 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
10779 (build_type_psymtabs_reader, psymtab_to_symtab_1)
10780 (process_full_comp_unit, process_full_type_unit): Update.
10781 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
10782 * ctfread.c (psymtab_to_symtab): Update.
10783
6f17252b
TT
107842020-01-26 Tom Tromey <tom@tromey.com>
10785
10786 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
10787 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
10788 * psymtab.c (psymtab_storage): Delete psymtabs.
10789 (psymtab_storage::allocate_psymtab): Use new.
10790 (psymtab_storage::discard_psymtab): Use delete.
10791 * psympriv.h (struct partial_symtab): Add constructor and
10792 initializers.
10793
f6f1cebc
TT
107942020-01-26 Tom Tromey <tom@tromey.com>
10795
10796 * machoread.c: Do not include psympriv.h.
10797
e47e48f6
PW
107982020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10799
10800 * NEWS: Mention the new option and the set/show commands.
10801
a2fedca9
PW
108022020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10803
10804 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
10805 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
10806 (validate_exec_file): New variables, enums, functions.
10807 (exec_file_locate_attach, print_section_info): Style the filenames.
10808 (_initialize_exec): Install show_exec_file_mismatch_command and
10809 set_exec_file_mismatch_command.
10810 * gdbcore.h (validate_exec_file): Declare.
10811 * infcmd.c (attach_command): Call validate_exec_file.
10812 * remote.c ( remote_target::remote_add_inferior): Likewise.
10813
7ffa82e1
AB
108142020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10815
10816 * frame.c (find_frame_sal): Move call to get_next_frame into more
10817 inner scope.
10818 * inline-frame.c (inilne_state) <inline_state>: Update argument
10819 types.
10820 (inilne_state) <skipped_symbol>: Rename to...
10821 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
10822 (skip_inline_frames): Build vector of skipped symbols and use this
10823 to reate the inline_state.
10824 (inline_skipped_symbol): Add a comment and some assertions, fetch
10825 skipped symbol from the list.
10826
3d92a3e3
AB
108272020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10828
10829 * buildsym.c (lte_is_less_than): Delete.
10830 (buildsym_compunit::end_symtab_with_blockvector): Create local
10831 lambda function to sort line table entries, and use
10832 std::stable_sort instead of std::sort.
10833 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
10834 markers when looking for a previous line.
10835
94a72be7
AB
108362020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10837
10838 * dwarf2read.c (lnp_state_machine::record_line): Include
10839 end_sequence parameter in debug print out. Record the line if we
10840 are at an end_sequence marker even if it's not the start of a
10841 statement.
10842 * symmisc.c (maintenance_print_one_line_table): Print end of
10843 sequence markers with 'END' not '0'.
10844
53af73bf
PA
108452020-01-24 Pedro Alves <palves@redhat.com>
10846
10847 PR gdb/25410
10848 * thread.c (scoped_restore_current_thread::restore): Use
10849 switch_to_inferior_no_thread.
10850 * exec.c: Include "progspace-and-thread.h".
10851 (add_target_sections, remove_target_sections):
10852 scoped_restore_current_pspace_and_thread instead of
10853 scoped_restore_current_thread.
10854 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
10855 and aspace to the inferior before calling clone_program_space.
10856 Remove stale comment.
10857
3050c6f4
CB
108582020-01-24 Christian Biesinger <cbiesinger@google.com>
10859
10860 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
10861 (arm_netbsd_nat_target::fetch_registers): ...this.
10862 (arm_nbsd_nat_target::store_registers): Rename to...
10863 (arm_netbsd_nat_target::store_registers): ...this.
10864
73685c7e
CB
108652020-01-24 Christian Biesinger <cbiesinger@google.com>
10866
10867 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
10868 register_t.
10869
89203d40
CB
108702020-01-24 Christian Biesinger <cbiesinger@google.com>
10871
10872 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
10873 Update comment.
10874 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
10875 Likewise.
10876 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
10877 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
10878 the correct replacement (iterate_over_regset_sections).
10879 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
10880 Update comment.
10881
1ba1ac88
AB
108822020-01-24 Graham Markall <graham.markall@embecosm.com>
10883
10884 PR gdb/23718
10885 * gdb/python/python.c (execute_gdb_command): Call
10886 async_enable_stdin in catch block.
10887
f3364a6d
AB
108882020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10889
10890 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
10891 SWITCH_THRU_ALL_UIS.
10892
733d0a67
AB
108932020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10894
10895 PR tui/9765
10896 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
10897 comment, add extra parameter, and update to store previous symbol
10898 when appropriate.
10899 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
10900 add extra parameter.
10901 * tui/tui-disasm.c (tui_disassemble): Update header comment,
10902 remove unneeded parameter, add try/catch around gdb_print_insn,
10903 rewrite to add items to asm_lines vector.
10904 (tui_find_backward_disassembly_start_address): New function.
10905 (tui_find_disassembly_address): Updated throughout.
10906 (tui_disasm_window::set_contents): Update for changes to
10907 tui_disassemble.
10908 (tui_disasm_window::do_scroll_vertical): No need to adjust the
10909 number of lines to scroll.
10910
b3b3bada
SM
109112020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
10912
10913 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
10914 (SECT_OFF_DATA): Likewise.
10915 (SECT_OFF_RODATA): Likewise.
10916 (SECT_OFF_TEXT): Likewise.
10917 (SECT_OFF_BSS): Likewise.
10918 (struct objfile) <text_section_offset, data_section_offset>: New
10919 methods.
10920 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
10921 objfile::text_section_offset.
10922 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
10923 * coffread.c (coff_symtab_read): Likewise.
10924 (enter_linenos): Likewise.
10925 (process_coff_symbol): Likewise.
10926 * ctfread.c (get_objfile_text_range): Likewise.
10927 * dtrace-probe.c (dtrace_probe::get_relocated_address):
10928 Use objfile::data_section_offset.
10929 * dwarf2-frame.c (execute_cfa_program): Use
10930 objfile::text_section_offset.
10931 (dwarf2_frame_find_fde): Likewise.
10932 * dwarf2read.c (create_addrmap_from_index): Likewise.
10933 (create_addrmap_from_aranges): Likewise.
10934 (dw2_find_pc_sect_compunit_symtab): Likewise.
10935 (process_psymtab_comp_unit_reader): Likewise.
10936 (add_partial_symbol): Likewise.
10937 (add_partial_subprogram): Likewise.
10938 (process_full_comp_unit): Likewise.
10939 (read_file_scope): Likewise.
10940 (read_func_scope): Likewise.
10941 (read_lexical_block_scope): Likewise.
10942 (read_call_site_scope): Likewise.
10943 (dwarf2_rnglists_process): Likewise.
10944 (dwarf2_ranges_process): Likewise.
10945 (dwarf2_ranges_read): Likewise.
10946 (dwarf_decode_lines_1): Likewise.
10947 (new_symbol): Likewise.
10948 (dwarf2_fetch_die_loc_sect_off): Likewise.
10949 (dwarf2_per_cu_text_offset): Likewise.
10950 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
10951 * hppa-tdep.c (read_unwind_info): Likewise.
10952 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
10953 * psympriv.h (struct partial_symtab): Likewise.
10954 * psymtab.c (find_pc_sect_psymtab): Likewise.
10955 * solib-svr4.c (enable_break): Likewise.
10956 * stap-probe.c (relocate_address): Use
10957 objfile::data_section_offset.
10958 * xcoffread.c (enter_line_range): Use
10959 objfile::text_section_offset.
10960 (read_xcoff_symtab): Likewise.
10961
ab53f382
SM
109622020-01-23 Simon Marchi <simon.marchi@efficios.com>
10963
10964 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
10965 declaration to narrower scopes.
10966
e7eee665
SM
109672020-01-23 Simon Marchi <simon.marchi@efficios.com>
10968
10969 * darwin-nat.h (struct darwin_exception_msg, enum
10970 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
10971 Move up.
10972 (class darwin_nat_target) <wait_1, check_new_threads,
10973 decode_exception_message, decode_message, stop_inferior,
10974 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
10975 * darwin-nat.c (darwin_check_new_threads): Rename to...
10976 (darwin_nat_target::check_new_threads): ... this.
10977 (darwin_suspend_inferior_it): Remove.
10978 (darwin_decode_exception_message): Rename to...
10979 (darwin_nat_target::decode_exception_message): ... this.
10980 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
10981 (darwin_decode_message): Rename to...
10982 (darwin_nat_target::decode_message): ... this.
10983 (cancel_breakpoint): Rename to...
10984 (darwin_nat_target::cancel_breakpoint): ... this.
10985 (darwin_wait): Rename to...
10986 (darwin_nat_target::wait_1): ... this. Use range-based for loop
10987 instead of iterate_over_inferiors.
10988 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
10989 (darwin_stop_inferior): Rename to...
10990 (darwin_nat_target::stop_inferior): ... this.
10991 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
10992 (darwin_init_thread_list): Rename to...
10993 (darwin_nat_target::init_thread_list): ... this.
10994 (darwin_ptrace_him): Rename to...
10995 (darwin_nat_target::ptrace_him): ... this.
10996 (darwin_nat_target::create_inferior): Pass lambda function to
10997 fork_inferior.
10998 (darwin_nat_target::detach): Call stop_inferior instead of
10999 darwin_stop_inferior.
11000 * fork-inferior.h (fork_inferior): Change init_trace_fun
11001 parameter to gdb::function_view.
11002 * fork-inferior.c (fork_inferior): Likewise.
11003
c162ed3e
HD
110042020-01-23 Hannes Domani <ssbssa@yahoo.de>
11005
11006 * i386-cygwin-tdep.c (core_process_module_section): Update.
11007 * windows-nat.c (struct lm_info_windows): Add text_offset.
11008 (windows_xfer_shared_libraries): Update.
11009 * windows-tdep.c (windows_xfer_shared_library):
11010 Add text_offset_cached argument.
11011 * windows-tdep.h (windows_xfer_shared_library): Update.
11012
a1237872
SM
110132020-01-21 Simon Marchi <simon.marchi@efficios.com>
11014
11015 * gdbarch.sh: Add declaration for _initialize_gdbarch.
11016
b3ee6dd9
SM
110172020-01-21 Simon Marchi <simon.marchi@efficios.com>
11018
11019 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
11020 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
11021 replace with range-based for.
11022 (gdbsim_interrupt_inferior): Remove.
11023 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
11024 with a range-based for. Inline code from
11025 gdbsim_interrupt_inferior.
11026
f9fac3c8
SM
110272020-01-21 Simon Marchi <simon.marchi@efficios.com>
11028
11029 * infrun.c (proceed): Fix indentation.
11030
f6474de9
TT
110312020-01-21 Tom Tromey <tromey@adacore.com>
11032
11033 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
11034 * python/python.c (python_extension_ops): Update.
11035 (gdbpy_colorize): New function.
11036 * python/lib/gdb/__init__.py (colorize): New function.
11037 * extension.h (ext_lang_colorize): Declare.
11038 * extension.c (ext_lang_colorize): New function.
11039 * extension-priv.h (struct extension_language_ops) <colorize>: New
11040 member.
11041 * cli/cli-style.c (_initialize_cli_style): Update help text.
11042
f0c702d4
LM
110432020-01-21 Luis Machado <luis.machado@linaro.org>
11044
11045 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
11046 <cond>: Change type to bool.
11047 (aarch64_displaced_step_b_cond): Update cond to use bool type.
11048 (aarch64_displaced_step_cb): Likewise.
11049 (aarch64_displaced_step_tb): Likewise.
11050
1ab139e5
LM
110512020-01-21 Luis Machado <luis.machado@linaro.org>
11052
11053 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
11054 output.
11055
0c271889
LM
110562020-01-21 Luis Machado <luis.machado@linaro.org>
11057
11058 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
11059 <pc_adjust>: Adjust the documentation.
11060 (aarch64_displaced_step_fixup): Check if PC really moved before
11061 adjusting it.
11062
4d89c1c7
TT
110632020-01-19 Tom Tromey <tom@tromey.com>
11064
11065 * disasm.c (~gdb_disassembler): New destructor.
11066 (gdb_buffered_insn_length): Call disassemble_free_target.
11067 * disasm.h (class gdb_disassembler): Declare destructor. Use
11068 DISABLE_COPY_AND_ASSIGN.
11069
c0ab21c2
TT
110702020-01-19 Tom Tromey <tom@tromey.com>
11071
11072 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
11073 (die_reader_func_ftype): Remove.
11074 (cutu_reader): New class.
11075 (dw2_get_file_names_reader): Remove "data" parameter.
11076 (dw2_get_file_names): Use cutu_reader.
11077 (create_debug_type_hash_table): Update.
11078 (read_cutu_die_from_dwo): Update comment.
11079 (lookup_dwo_unit): Add dwo_name parameter.
11080 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
11081 die_reader_func_ftype and data parameters.
11082 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
11083 Remove die_reader_func_ftype and data parameters.
11084 (~cutu_reader): New; from init_cutu_and_read_dies.
11085 (cutu_reader::cutu_reader): Rename from
11086 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
11087 and data parameters.
11088 (init_cutu_and_read_dies_simple): Remove.
11089 (struct process_psymtab_comp_unit_data): Remove.
11090 (process_psymtab_comp_unit_reader): Remove data parameter; add
11091 want_partial_unit and pretend_language parameters.
11092 (process_psymtab_comp_unit): Use cutu_reader.
11093 (build_type_psymtabs_reader): Remove data parameter.
11094 (build_type_psymtabs_1): Use cutu_reader.
11095 (process_skeletonless_type_unit): Likewise.
11096 (load_partial_comp_unit_reader): Remove.
11097 (load_partial_comp_unit): Use cutu_reader.
11098 (load_full_comp_unit_reader): Remove.
11099 (load_full_comp_unit): Use cutu_reader.
11100 (struct create_dwo_cu_data): Remove.
11101 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
11102 dwo_unit parameters.
11103 (create_cus_hash_table): Use cutu_reader.
11104 (struct dwarf2_read_addr_index_data): Remove.
11105 (dwarf2_read_addr_index_reader): Remove.
11106 (dwarf2_read_addr_index): Use cutu_reader.
11107 (read_signatured_type_reader): Remove.
11108 (read_signatured_type): Use cutu_reader.
11109
45bbae5c
TT
111102020-01-19 Tom Tromey <tom@tromey.com>
11111
11112 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
11113 * tui/tui-wingeneral.h (class tui_suppress_output): New.
11114 (tui_wrefresh): Declare.
11115 * tui/tui-wingeneral.c (suppress_output): New global.
11116 (tui_suppress_output, ~tui_suppress_output): New constructor and
11117 destructor.
11118 (tui_wrefresh): New function.
11119 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
11120 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
11121 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
11122 method.
11123 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
11124 tui_wrefresh.
11125 (tui_data_window::no_refresh): New method.
11126 (tui_data_item_window::refresh_window): Call tui_wrefresh.
11127 (tui_reg_command): Use tui_suppress_output
11128 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
11129 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
11130 method.
11131 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
11132
4f13c1c0
TT
111332020-01-19 Tom Tromey <tom@tromey.com>
11134
11135 * tui/tui-winsource.c (tui_update_source_windows_with_line):
11136 Handle case where symtab is null.
11137
fa47e446
SM
111382020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
11139
11140 * linux-fork.c (one_fork_p): Simplify.
11141
26f42329
SM
111422020-01-17 Simon Marchi <simon.marchi@efficios.com>
11143
11144 * top.c (struct qt_args): Remove.
11145 (kill_or_detach): Change return type to void, replace `void *`
11146 parameter with a proper one.
11147 (print_inferior_quit_action): Likewise.
11148 (quit_confirm): Use range-based for loop to iterate over inferiors.
11149 (quit_force): Likewise.
11150
a9ac81b1
SM
111512020-01-17 Simon Marchi <simon.marchi@efficios.com>
11152
11153 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
11154 `void *` parameter with proper parameters.
11155 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
11156 (print_one_inferior): Change return type to void, replace `void *`
11157 parameter with proper parameters.
11158 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
11159 inferiors.
11160 (get_other_inferior): Remove.
11161 (mi_cmd_remove_inferior): Use range-based loop to iterate over
11162 inferiors.
11163
788eca49
SM
111642020-01-17 Simon Marchi <simon.marchi@efficios.com>
11165
11166 * mi/mi-interp.c (report_initial_inferior): Remove.
11167 (mi_interp::init): Use range-based for to iterate over inferiors.
11168
d9bc85b6
SM
111692020-01-17 Simon Marchi <simon.marchi@efficios.com>
11170
11171 * python/py-inferior.c (build_inferior_list): Remove.
11172 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
11173
40c94099
CB
111742020-01-16 Christian Biesinger <cbiesinger@google.com>
11175
11176 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
11177 (btrace_stitch_trace): Likewise.
11178 * charset.c (intermediate_encoding): Likewise (vaild).
11179 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
11180 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
11181 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
11182
e0cdfe3c
HD
111832020-01-16 Hannes Domani <ssbssa@yahoo.de>
11184
11185 * windows-tdep.c (windows_get_tlb_type):
11186 Add rtl_user_process_parameters type.
11187
790f1718 111882020-01-16 Pedro Alves <palves@redhat.com>
aac66a4c 11189 Norbert Lange <nolange79@gmail.com>
790f1718
PA
11190
11191 PR build/24805
11192 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
11193 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
11194 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
11195 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
11196 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
11197 (ps_plog): Redeclare exported functions with default visibility.
11198
3112ed97
NA
111992020-01-16 Nitika Achra <Nitika.Achra@amd.com>
11200
11201 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
11202 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
11203
8dc3273e
SM
112042020-01-15 Simon Marchi <simon.marchi@efficios.com>
11205
11206 * infcmd.c (post_create_inferior): Use get_thread_regcache
11207 instead of get_current_regcache.
11208
ff47f4f0
TT
112092020-01-14 Tom Tromey <tom@tromey.com>
11210
11211 PR symtab/12535:
11212 * python/python.c (gdbpy_decode_line): Treat empty string the same
11213 as no argument.
11214
975f45b7
TT
112152020-01-14 Tom Tromey <tom@tromey.com>
11216
11217 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
11218
25e57356
TT
112192020-01-14 Tom Tromey <tom@tromey.com>
11220
11221 * nat/linux-btrace.c: Don't include <config.h>.
11222 * nat/linux-ptrace.c: Don't include <config.h>.
11223 * nat/x86-linux-dregs.c: Don't include <config.h>.
11224
05ea2a05
TT
112252020-01-14 Tom Tromey <tom@tromey.com>
11226
11227 * configure: Rebuild.
11228 * configure.ac: Move many checks to ../gdbsupport/common.m4.
11229
01027315
TT
112302020-01-14 Tom Tromey <tom@tromey.com>
11231
11232 * nat/x86-linux-dregs.c: Include configh.h.
11233 * nat/linux-ptrace.c: Include configh.h.
11234 * nat/linux-btrace.c: Include configh.h.
11235 * defs.h: Include config.h, bfd.h.
11236 * configure.ac: Don't source common.host.
11237 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
11238 * configure: Rebuild.
11239 * acinclude.m4: Update path.
11240 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
11241 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
11242 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
11243 (CLIBS): Add LIBSUPPORT.
11244 (CDEPS): Likewise.
11245 (COMMON_SFILES): Remove gdbsupport files.
11246 (HFILES_NO_SRCDIR): Likewise.
11247 (stamp-version): Update path to create-version.sh.
11248 (ALLDEPFILES): Remove gdbsupport files.
11249
b2ceabe8
TT
112502020-01-14 Tom Tromey <tom@tromey.com>
11251
11252 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
11253 USE_WIN32API when needed.
11254 * configure.ac (USE_WIN32API): Don't define.
11255 (WIN32LIBS): Use WIN32APILIBS.
11256 * configure: Rebuild.
11257
25c51f71
TT
112582020-01-14 Tom Tromey <tom@tromey.com>
11259
11260 * configure: Rebuild.
11261 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
11262
717c684d
BE
112632020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
11264
11265 * skip.c (skip_function_command): Make skip w/o arguments use the
11266 name of the inlined function if pc is inside any inlined function.
11267
7da6a5b9
LM
112682020-01-14 Luis Machado <luis.machado@linaro.org>
11269
11270 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
11271 * infrun.c (resume_1): Likewise.
11272 (handle_inferior_event): Remove stale comment.
11273 * linux-nat.c (linux_nat_target::resume): Update comments.
11274 (save_stop_reason): Likewise.
11275 (linux_nat_filter_event): Likewise.
11276 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
11277
44e4c775
AB
112782020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
11279
11280 * elfread.c (record_minimal_symbol): Set section index to 0 for
11281 non-allocatable sections.
11282
18a8505e
AT
11283
112842020-01-13 Ali Tamur <tamur@google.com>
11285
11286 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
11287 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
11288 to gdb::optional. Update comments.
11289 (dwo_file): Update comments.
11290 (read_attribute): Update API to take an additional out parameter,
11291 need_reprocess. This is used to mark attributes that need other
11292 attributes (e.g. str_offsets_base) for correct computation which may not
11293 have been read yet.
11294 (read_attribute_reprocess): New function declaration.
11295 (read_addr_index): Likewise.
11296 (read_dwo_str_index): Likewise.
11297 (read_stub_str_index): Likewise.
11298 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
11299 (lookup_addr_base): New function definition.
11300 (lookup_ranges_base): Likewise.
11301 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
11302 lookup_ranges_base.
11303 (init_cutu_and_read_dies): Update comments.
11304 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
11305 unit. This is used to inherit parent's str_offsets_base and addr_base.
11306 Update comments.
11307 (init_cutu_and_read_dies_simple): Reflect API changes.
11308 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
11309 (create_cus_hash_table): Change API to take parent compile unit.
11310 Reflect API changes.
11311 (open_and_init_dwo_file): Reflect API changes.
11312 (dwarf2_get_pc_bounds): Update comments.
11313 (dwarf2_record_block_ranges): Likewise.
11314 (read_full_die_1): Change implementation to reprocess attributes that
11315 need str_offsets_base and addr_base.
11316 (partial_die_info::read): Likewise.
11317 (read_attribute_reprocess): New function definition.
11318 (read_attribute_value): Change API to take an additional out parameter,
11319 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
11320 when a non-dwo compile unit has index based attributes.
11321 (read_attribute): Reflect API changes.
11322 (read_addr_index_1): Reflect API changes. Update comments.
11323 (dwarf2_read_addr_index_data): Reflect API changes.
11324 (dwarf2_read_addr_index): Likewise.
11325 (read_str_index): Change API and implementation. This becomes a helper
11326 to be used by the new string index related methods. Update error
11327 message and comments.
11328 (read_dwo_str_index): New function definition.
11329 (read_stub_str_index): Likewise.
11330 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
11331 * symfile.h (dwarf2_debug_sections): Likewise.
11332 * xcoffread.c (dwarf2_debug_sections): Likewise.
11333
0cac9354
SM
113342020-01-13 Simon Marchi <simon.marchi@efficios.com>
11335
11336 * gdbcore.h (struct core_fns) <core_read_registers>: Change
11337 core_reg_sect type to gdb_byte *.
11338 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
11339 * cris-tdep.c (fetch_core_registers): Likewise.
11340 * corelow.c (core_target::get_core_register_section): Change
11341 type of `contents` to gdb::byte_vector.
11342
9a6d629c
AB
113432020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
11344
11345 * tui/tui-wingeneral.c (box_win): Position the title in the center
11346 of the border.
11347
d8b2f9e3
SM
113482020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
11349
11350 * corelow.c (core_target::get_core_register_section): Use
11351 std::vector instead of alloca.
11352
bb564c58
SM
113532020-01-13 Simon Marchi <simon.marchi@efficios.com>
11354
11355 * warning.m4: Add -Wmissing-declarations to build_warnings.
11356 * configure: Re-generate.
11357
6b366111
SM
113582020-01-13 Simon Marchi <simon.marchi@efficios.com>
11359
11360 * python/python.c (init__gdb_module): Add declaration.
11361
6c265988
SM
113622020-01-13 Simon Marchi <simon.marchi@efficios.com>
11363
11364 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
11365 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
11366 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
11367 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
11368 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
11369 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
11370 * ada-exp.y (_initialize_ada_exp): Add declaration.
11371 * ada-lang.c (_initialize_ada_language): Add declaration.
11372 * ada-tasks.c (_initialize_tasks): Add declaration.
11373 * agent.c (_initialize_agent): Add declaration.
11374 * aix-thread.c (_initialize_aix_thread): Add declaration.
11375 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
11376 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
11377 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
11378 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
11379 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
11380 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
11381 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
11382 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
11383 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
11384 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
11385 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
11386 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
11387 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
11388 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
11389 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
11390 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
11391 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
11392 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
11393 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
11394 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
11395 * annotate.c (_initialize_annotate): Add declaration.
11396 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
11397 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
11398 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
11399 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
11400 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
11401 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
11402 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
11403 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
11404 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
11405 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
11406 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
11407 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
11408 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
11409 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
11410 * auto-load.c (_initialize_auto_load): Add declaration.
11411 * auxv.c (_initialize_auxv): Add declaration.
11412 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
11413 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
11414 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
11415 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
11416 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
11417 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
11418 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
11419 * breakpoint.c (_initialize_breakpoint): Add declaration.
11420 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
11421 * btrace.c (_initialize_btrace): Add declaration.
11422 * charset.c (_initialize_charset): Add declaration.
11423 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
11424 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
11425 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
11426 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
11427 * cli/cli-script.c (_initialize_cli_script): Add declaration.
11428 * cli/cli-style.c (_initialize_cli_style): Add declaration.
11429 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
11430 * coffread.c (_initialize_coffread): Add declaration.
11431 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
11432 * compile/compile.c (_initialize_compile): Add declaration.
11433 * complaints.c (_initialize_complaints): Add declaration.
11434 * completer.c (_initialize_completer): Add declaration.
11435 * copying.c (_initialize_copying): Add declaration.
11436 * corefile.c (_initialize_core): Add declaration.
11437 * corelow.c (_initialize_corelow): Add declaration.
11438 * cp-abi.c (_initialize_cp_abi): Add declaration.
11439 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
11440 * cp-support.c (_initialize_cp_support): Add declaration.
11441 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
11442 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
11443 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
11444 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
11445 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
11446 * ctfread.c (_initialize_ctfread): Add declaration.
11447 * d-lang.c (_initialize_d_language): Add declaration.
11448 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
11449 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
11450 * dbxread.c (_initialize_dbxread): Add declaration.
11451 * dcache.c (_initialize_dcache): Add declaration.
11452 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
11453 * disasm.c (_initialize_disasm): Add declaration.
11454 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
11455 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
11456 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
11457 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
11458 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
11459 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
11460 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
11461 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
11462 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
11463 * elfread.c (_initialize_elfread): Add declaration.
11464 * exec.c (_initialize_exec): Add declaration.
11465 * extension.c (_initialize_extension): Add declaration.
11466 * f-lang.c (_initialize_f_language): Add declaration.
11467 * f-valprint.c (_initialize_f_valprint): Add declaration.
11468 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
11469 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
11470 * filesystem.c (_initialize_filesystem): Add declaration.
11471 * findcmd.c (_initialize_mem_search): Add declaration.
11472 * findvar.c (_initialize_findvar): Add declaration.
11473 * fork-child.c (_initialize_fork_child): Add declaration.
11474 * frame-base.c (_initialize_frame_base): Add declaration.
11475 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
11476 * frame.c (_initialize_frame): Add declaration.
11477 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
11478 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
11479 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
11480 * gcore.c (_initialize_gcore): Add declaration.
11481 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
11482 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
11483 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
11484 * gdbarch.c (_initialize_gdbarch): Add declaration.
11485 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
11486 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
11487 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
11488 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
11489 * go-lang.c (_initialize_go_language): Add declaration.
11490 * go32-nat.c (_initialize_go32_nat): Add declaration.
11491 * guile/guile.c (_initialize_guile): Add declaration.
11492 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
11493 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
11494 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
11495 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
11496 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
11497 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
11498 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
11499 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
11500 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
11501 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
11502 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
11503 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
11504 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
11505 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
11506 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
11507 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
11508 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
11509 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
11510 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
11511 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
11512 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
11513 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
11514 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
11515 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
11516 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
11517 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
11518 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
11519 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
11520 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
11521 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
11522 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
11523 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
11524 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
11525 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
11526 * infcall.c (_initialize_infcall): Add declaration.
11527 * infcmd.c (_initialize_infcmd): Add declaration.
11528 * inflow.c (_initialize_inflow): Add declaration.
11529 * infrun.c (_initialize_infrun): Add declaration.
11530 * interps.c (_initialize_interpreter): Add declaration.
11531 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
11532 * jit.c (_initialize_jit): Add declaration.
11533 * language.c (_initialize_language): Add declaration.
11534 * linux-fork.c (_initialize_linux_fork): Add declaration.
11535 * linux-nat.c (_initialize_linux_nat): Add declaration.
11536 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
11537 * linux-thread-db.c (_initialize_thread_db): Add declaration.
11538 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
11539 * m2-lang.c (_initialize_m2_language): Add declaration.
11540 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
11541 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
11542 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
11543 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
11544 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
11545 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
11546 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
11547 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
11548 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
11549 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
11550 * machoread.c (_initialize_machoread): Add declaration.
11551 * macrocmd.c (_initialize_macrocmd): Add declaration.
11552 * macroscope.c (_initialize_macroscope): Add declaration.
11553 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
11554 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
11555 * maint.c (_initialize_maint_cmds): Add declaration.
11556 * mdebugread.c (_initialize_mdebugread): Add declaration.
11557 * memattr.c (_initialize_mem): Add declaration.
11558 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
11559 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
11560 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
11561 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
11562 * mi/mi-main.c (_initialize_mi_main): Add declaration.
11563 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
11564 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
11565 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
11566 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
11567 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
11568 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
11569 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
11570 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
11571 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
11572 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
11573 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
11574 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
11575 * mipsread.c (_initialize_mipsread): Add declaration.
11576 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
11577 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
11578 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
11579 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
11580 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
11581 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
11582 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
11583 * nto-procfs.c (_initialize_procfs): Add declaration.
11584 * objc-lang.c (_initialize_objc_language): Add declaration.
11585 * observable.c (_initialize_observer): Add declaration.
11586 * opencl-lang.c (_initialize_opencl_language): Add declaration.
11587 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
11588 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
11589 * osabi.c (_initialize_gdb_osabi): Add declaration.
11590 * osdata.c (_initialize_osdata): Add declaration.
11591 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
11592 * parse.c (_initialize_parse): Add declaration.
11593 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
11594 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
11595 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
11596 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
11597 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
11598 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
11599 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
11600 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
11601 * printcmd.c (_initialize_printcmd): Add declaration.
11602 * probe.c (_initialize_probe): Add declaration.
11603 * proc-api.c (_initialize_proc_api): Add declaration.
11604 * proc-events.c (_initialize_proc_events): Add declaration.
11605 * proc-service.c (_initialize_proc_service): Add declaration.
11606 * procfs.c (_initialize_procfs): Add declaration.
11607 * producer.c (_initialize_producer): Add declaration.
11608 * psymtab.c (_initialize_psymtab): Add declaration.
11609 * python/python.c (_initialize_python): Add declaration.
11610 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
11611 * record-btrace.c (_initialize_record_btrace): Add declaration.
11612 * record-full.c (_initialize_record_full): Add declaration.
11613 * record.c (_initialize_record): Add declaration.
11614 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
11615 * regcache.c (_initialize_regcache): Add declaration.
11616 * reggroups.c (_initialize_reggroup): Add declaration.
11617 * remote-notif.c (_initialize_notif): Add declaration.
11618 * remote-sim.c (_initialize_remote_sim): Add declaration.
11619 * remote.c (_initialize_remote): Add declaration.
11620 * reverse.c (_initialize_reverse): Add declaration.
11621 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
11622 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
11623 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
11624 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
11625 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
11626 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
11627 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
11628 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
11629 Add declaration.
11630 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
11631 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
11632 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
11633 * rust-exp.y (_initialize_rust_exp): Add declaration.
11634 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
11635 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
11636 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
11637 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
11638 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
11639 * score-tdep.c (_initialize_score_tdep): Add declaration.
11640 * ser-go32.c (_initialize_ser_dos): Add declaration.
11641 * ser-mingw.c (_initialize_ser_windows): Add declaration.
11642 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
11643 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
11644 * ser-uds.c (_initialize_ser_socket): Add declaration.
11645 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
11646 * serial.c (_initialize_serial): Add declaration.
11647 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
11648 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
11649 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
11650 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
11651 * skip.c (_initialize_step_skip): Add declaration.
11652 * sol-thread.c (_initialize_sol_thread): Add declaration.
11653 * solib-aix.c (_initialize_solib_aix): Add declaration.
11654 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
11655 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
11656 * solib-frv.c (_initialize_frv_solib): Add declaration.
11657 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
11658 * solib-target.c (_initialize_solib_target): Add declaration.
11659 * solib.c (_initialize_solib): Add declaration.
11660 * source-cache.c (_initialize_source_cache): Add declaration.
11661 * source.c (_initialize_source): Add declaration.
11662 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
11663 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
11664 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
11665 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
11666 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
11667 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
11668 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
11669 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
11670 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
11671 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
11672 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
11673 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
11674 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
11675 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
11676 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
11677 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
11678 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
11679 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
11680 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
11681 * stabsread.c (_initialize_stabsread): Add declaration.
11682 * stack.c (_initialize_stack): Add declaration.
11683 * stap-probe.c (_initialize_stap_probe): Add declaration.
11684 * std-regs.c (_initialize_frame_reg): Add declaration.
11685 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
11686 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
11687 * symfile.c (_initialize_symfile): Add declaration.
11688 * symmisc.c (_initialize_symmisc): Add declaration.
11689 * symtab.c (_initialize_symtab): Add declaration.
11690 * target.c (_initialize_target): Add declaration.
11691 * target-connection.c (_initialize_target_connection): Add
11692 declaration.
11693 * target-dcache.c (_initialize_target_dcache): Add declaration.
11694 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
11695 * thread.c (_initialize_thread): Add declaration.
11696 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
11697 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
11698 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
11699 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
11700 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
11701 * tracectf.c (_initialize_ctf): Add declaration.
11702 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
11703 * tracefile.c (_initialize_tracefile): Add declaration.
11704 * tracepoint.c (_initialize_tracepoint): Add declaration.
11705 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
11706 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
11707 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
11708 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
11709 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
11710 * tui/tui-win.c (_initialize_tui_win): Add declaration.
11711 * tui/tui.c (_initialize_tui): Add declaration.
11712 * typeprint.c (_initialize_typeprint): Add declaration.
11713 * ui-style.c (_initialize_ui_style): Add declaration.
11714 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
11715 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
11716 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
11717 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
11718 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
11719 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
11720 * unittests/filtered_iterator-selftests.c
11721 (_initialize_filtered_iterator_selftests): Add declaration.
11722 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
11723 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
11724 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
11725 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
11726 * unittests/main-thread-selftests.c
11727 (_initialize_main_thread_selftests): Add declaration.
11728 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
11729 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
11730 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
11731 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
11732 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
11733 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
11734 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
11735 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
11736 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
11737 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
11738 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
11739 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
11740 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
11741 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
11742 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
11743 declaration.
11744 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
11745 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
11746 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
11747 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
11748 * user-regs.c (_initialize_user_regs): Add declaration.
11749 * utils.c (_initialize_utils): Add declaration.
11750 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
11751 * valops.c (_initialize_valops): Add declaration.
11752 * valprint.c (_initialize_valprint): Add declaration.
11753 * value.c (_initialize_values): Add declaration.
11754 * varobj.c (_initialize_varobj): Add declaration.
11755 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
11756 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
11757 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
11758 * windows-nat.c (_initialize_windows_nat): Add declaration.
11759 (_initialize_check_for_gdb_ini): Add declaration.
11760 (_initialize_loadable): Add declaration.
11761 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
11762 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
11763 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
11764 * xcoffread.c (_initialize_xcoffread): Add declaration.
11765 * xml-support.c (_initialize_xml_support): Add declaration.
11766 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
11767 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
11768 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
11769 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
11770
e2de1eec
SM
117712020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
11772
11773 * regformats/regdat.sh: Generate declaration for init function.
11774
e0037b4c
SM
117752020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
11776
11777 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
11778 up.
11779 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
11780 close_one_inferior>: New methods.
11781 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
11782 pass down target to find_inferior_pid.
11783 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
11784 Pass down target to find_inferior_ptid.
11785 (gdbsim_target::create_inferior): Pass down target to
11786 add_thread_silent.
11787 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
11788 target down to find_inferior_ptid and switch_to_thread.
11789 (gdbsim_target::close): Update to call close_one_inferior.
11790 (struct resume_data): Remove.
11791 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
11792 directly, rather than through a void pointer.
11793 (gdbsim_target::resume): Update to call resume_one_inferior.
11794
58920b5b
SM
117952020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
11796
11797 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
11798
4ec89149
PA
117992020-01-12 Pedro Alves <palves@redhat.com>
11800
11801 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
11802 directly for the current inferior instead of
11803 discard_all_inferiors.
11804 (discard_all_inferiors): Delete.
11805
7c392d1d
TT
118062020-01-11 Tom Tromey <tom@tromey.com>
11807
11808 * tui/tui-wingeneral.c (box_win): Check cli_styling.
11809 * tui/tui-winsource.c (tui_source_window_base::refill): Use
11810 deprecated_safe_get_selected_frame.
11811
d9ebdab7
TBA
118122020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11813
11814 * inferior.c (print_inferior): Switch inferior before printing it.
11815
f3c469b9
PA
118162020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
11817 Pedro Alves <palves@redhat.com>
11818
11819 * progspace-and-thread.c (switch_to_program_space_and_thread):
11820 Assert there's an inferior for PSPACE. Use
11821 switch_to_inferior_no_thread to switch the inferior too.
11822 * progspace.c (program_space::~program_space): Call
11823 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
11824 (program_space::free_all_objfiles): Don't call clear_symtab_users
11825 here.
11826 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
11827
65c574f6
PA
118282020-01-10 Pedro Alves <palves@redhat.com>
11829
11830 * NEWS: Mention multi-target debugging, "info connections", and
11831 "add-inferior -no-connection".
11832
2f4fcf00
PA
118332020-01-10 Pedro Alves <palves@redhat.com>
11834
11835 * infrun.c: Include "target-connection.h".
11836 (check_multi_target_resumption): New.
11837 (proceed): Call it.
11838 * target-connection.c (make_target_connection_string): Make
11839 extern.
11840 * target-connection.h (make_target_connection_string): Declare.
11841
121b3efd
PA
118422020-01-10 Pedro Alves <palves@redhat.com>
11843
11844 * Makefile.in (COMMON_SFILES): Add target-connection.c.
11845 * inferior.c (uiout_field_connection): New function.
11846 (print_inferior): Add new "connection-id" column.
11847 (add_inferior_command): Show connection number/string of added
11848 inferior.
11849 * process-stratum-target.h
11850 (process_stratum_target::connection_string): New virtual method.
11851 (process_stratum_target::connection_number): New field.
11852 * remote.c (remote_target::connection_string): New override.
11853 * target-connection.c: New file.
11854 * target-connection.h: New file.
11855 * target.c (decref_target): Remove process_stratum targets from
11856 the connection list.
11857 (target_stack::push): Add process_stratum targets to the
11858 connection list.
11859
4f837581
PA
118602020-01-10 Pedro Alves <palves@redhat.com>
11861
11862 Revert:
11863 2016-04-12 Pedro Alves <palves@redhat.com>
11864 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
11865 Remove references to name.
11866 * serial.h (struct serial) <name>: Delete.
11867
f4ec508e
PA
118682020-01-10 Pedro Alves <palves@redhat.com>
11869
11870 * gdbarch-selftests.c (register_to_value_test): Remove "target
11871 already pushed" check.
11872
5b6d1e4f
PA
118732020-01-10 Pedro Alves <palves@redhat.com>
11874 John Baldwin <jhb@FreeBSD.org>
11875
11876 * aarch64-linux-nat.c
11877 (aarch64_linux_nat_target::thread_architecture): Adjust.
11878 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
11879 (task_command_1): Likewise.
11880 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
11881 (aix_thread_target::wait, aix_thread_target::fetch_registers)
11882 (aix_thread_target::store_registers)
11883 (aix_thread_target::thread_alive): Adjust.
11884 * amd64-fbsd-tdep.c: Include "inferior.h".
11885 (amd64fbsd_get_thread_local_address): Pass down target.
11886 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
11887 thread's gdbarch instead of target_gdbarch.
11888 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
11889 get_last_target_status.
11890 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
11891 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
11892 inferiors.
11893 (update_inserted_breakpoint_locations): Skip if inferiors with no
11894 execution.
11895 (update_global_location_list): When handling moribund locations,
11896 find representative inferior for location's pspace, and use thread
11897 count of its process_stratum target.
11898 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
11899 * bsd-uthread.c (bsd_uthread_target::wait): Use
11900 as_process_stratum_target and adjust thread_change_ptid and
11901 add_thread calls.
11902 (bsd_uthread_target::update_thread_list): Use
11903 as_process_stratum_target and adjust find_thread_ptid,
11904 thread_change_ptid and add_thread calls.
11905 * btrace.c (maint_btrace_packet_history_cmd): Adjust
11906 find_thread_ptid call.
11907 * corelow.c (add_to_thread_list): Adjust add_thread call.
11908 (core_target_open): Adjust add_thread_silent and thread_count
11909 calls.
11910 (core_target::pid_to_str): Adjust find_inferior_ptid call.
11911 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
11912 * event-top.c (async_disconnect): Pop targets from all inferiors.
11913 * exec.c (add_target_sections): Push exec target on all inferiors
11914 sharing the program space.
11915 (remove_target_sections): Remove the exec target from all
11916 inferiors sharing the program space.
11917 (exec_on_vfork): New.
11918 * exec.h (exec_on_vfork): Declare.
11919 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
11920 Pass it down.
11921 (fbsd_nat_target::update_thread_list): Adjust.
11922 (fbsd_nat_target::resume): Adjust.
11923 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
11924 down.
11925 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
11926 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
11927 get_thread_arch_regcache call.
11928 * fork-child.c (gdb_startup_inferior): Pass target down to
11929 startup_inferior and set_executing.
11930 * gdbthread.h (struct process_stratum_target): Forward declare.
11931 (add_thread, add_thread_silent, add_thread_with_info)
11932 (in_thread_list): Add process_stratum_target parameter.
11933 (find_thread_ptid(inferior*, ptid_t)): New overload.
11934 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
11935 parameter.
11936 (all_threads()): Delete overload.
11937 (all_threads, all_non_exited_threads): Add process_stratum_target
11938 parameter.
11939 (all_threads_safe): Use brace initialization.
11940 (thread_count): Add process_stratum_target parameter.
11941 (set_resumed, set_running, set_stop_requested, set_executing)
11942 (threads_are_executing, finish_thread_state): Add
11943 process_stratum_target parameter.
11944 (switch_to_thread): Use is_current_thread.
11945 * i386-fbsd-tdep.c: Include "inferior.h".
11946 (i386fbsd_get_thread_local_address): Pass down target.
11947 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
11948 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
11949 have_inferiors check.
11950 * inf-ptrace.c (inf_ptrace_target::create_inferior)
11951 (inf_ptrace_target::attach): Adjust.
11952 * infcall.c (run_inferior_call): Adjust.
11953 * infcmd.c (run_command_1): Pass target to
11954 scoped_finish_thread_state.
11955 (proceed_thread_callback): Skip inferiors with no execution.
11956 (continue_command): Rename 'all_threads' local to avoid hiding
11957 'all_threads' function. Adjust get_last_target_status call.
11958 (prepare_one_step): Adjust set_running call.
11959 (signal_command): Use user_visible_resume_target. Compare thread
11960 pointers instead of inferior_ptid.
11961 (info_program_command): Adjust to pass down target.
11962 (attach_command): Mark target's 'thread_executing' flag.
11963 (stop_current_target_threads_ns): New, factored out from ...
11964 (interrupt_target_1): ... this. Switch inferior before making
11965 target calls.
11966 * inferior-iter.h
11967 (struct all_inferiors_iterator, struct all_inferiors_range)
11968 (struct all_inferiors_safe_range)
11969 (struct all_non_exited_inferiors_range): Filter on
11970 process_stratum_target too. Remove explicit.
11971 * inferior.c (inferior::inferior): Push dummy target on target
11972 stack.
11973 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
11974 Add process_stratum_target parameter, and pass it down.
11975 (have_live_inferiors): Adjust.
11976 (switch_to_inferior_and_push_target): New.
11977 (add_inferior_command, clone_inferior_command): Handle
11978 "-no-connection" parameter. Use
11979 switch_to_inferior_and_push_target.
11980 (_initialize_inferior): Mention "-no-connection" option in
11981 the help of "add-inferior" and "clone-inferior" commands.
11982 * inferior.h: Include "process-stratum-target.h".
11983 (interrupt_target_1): Use bool.
11984 (struct inferior) <push_target, unpush_target, target_is_pushed,
11985 find_target_beneath, top_target, process_target, target_at,
11986 m_stack>: New.
11987 (discard_all_inferiors): Delete.
11988 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
11989 (all_inferiors, all_non_exited_inferiors): Add
11990 process_stratum_target parameter.
11991 * infrun.c: Include "gdb_select.h" and <unordered_map>.
11992 (target_last_proc_target): New global.
11993 (follow_fork_inferior): Push target on new inferior. Pass target
11994 to add_thread_silent. Call exec_on_vfork. Handle target's
11995 reference count.
11996 (follow_fork): Adjust get_last_target_status call. Also consider
11997 target.
11998 (follow_exec): Push target on new inferior.
11999 (struct execution_control_state) <target>: New field.
12000 (user_visible_resume_target): New.
12001 (do_target_resume): Call target_async.
12002 (resume_1): Set target's threads_executing flag. Consider resume
12003 target.
12004 (commit_resume_all_targets): New.
12005 (proceed): Also consider resume target. Skip threads of inferiors
12006 with no execution. Commit resumtion in all targets.
12007 (start_remote): Pass current inferior to wait_for_inferior.
12008 (infrun_thread_stop_requested): Consider target as well. Pass
12009 thread_info pointer to clear_inline_frame_state instead of ptid.
12010 (infrun_thread_thread_exit): Consider target as well.
12011 (random_pending_event_thread): New inferior parameter. Use it.
12012 (do_target_wait): Rename to ...
12013 (do_target_wait_1): ... this. Add inferior parameter, and pass it
12014 down.
12015 (threads_are_resumed_pending_p, do_target_wait): New.
12016 (prepare_for_detach): Adjust calls.
12017 (wait_for_inferior): New inferior parameter. Handle it. Use
12018 do_target_wait_1 instead of do_target_wait.
12019 (fetch_inferior_event): Adjust. Switch to representative
12020 inferior. Pass target down.
12021 (set_last_target_status): Add process_stratum_target parameter.
12022 Save target in global.
12023 (get_last_target_status): Add process_stratum_target parameter and
12024 handle it.
12025 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
12026 (context_switch): Check inferior_ptid == null_ptid before calling
12027 inferior_thread().
12028 (get_inferior_stop_soon): Pass down target.
12029 (wait_one): Rename to ...
12030 (poll_one_curr_target): ... this.
12031 (struct wait_one_event): New.
12032 (wait_one): New.
12033 (stop_all_threads): Adjust.
12034 (handle_no_resumed, handle_inferior_event): Adjust to consider the
12035 event's target.
12036 (switch_back_to_stepped_thread): Also consider target.
12037 (print_stop_event): Update.
12038 (normal_stop): Update. Also consider the resume target.
12039 * infrun.h (wait_for_inferior): Remove declaration.
12040 (user_visible_resume_target): New declaration.
12041 (get_last_target_status, set_last_target_status): New
12042 process_stratum_target parameter.
12043 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
12044 process_stratum_target parameter, and use it.
12045 (clear_inline_frame_state (thread_info*)): New.
12046 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
12047 process_stratum_target parameter.
12048 (clear_inline_frame_state (thread_info*)): Declare.
12049 * linux-fork.c (delete_checkpoint_command): Pass target down to
12050 find_thread_ptid.
12051 (checkpoint_command): Adjust.
12052 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
12053 instead of just tweaking inferior_ptid.
12054 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
12055 (exit_lwp): Pass target down to find_thread_ptid.
12056 (attach_proc_task_lwp_callback): Pass target down to
12057 add_thread/set_running/set_executing.
12058 (linux_nat_target::attach): Pass target down to
12059 thread_change_ptid.
12060 (get_detach_signal): Pass target down to find_thread_ptid.
12061 Consider last target status's target.
12062 (linux_resume_one_lwp_throw, resume_lwp)
12063 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
12064 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
12065 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
12066 (linux_nat_target::async_wait_fd): New.
12067 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
12068 target down.
12069 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
12070 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
12071 * linux-thread-db.c (struct thread_db_info::process_target): New
12072 field.
12073 (add_thread_db_info): Save target.
12074 (get_thread_db_info): New process_stratum_target parameter. Also
12075 match target.
12076 (delete_thread_db_info): New process_stratum_target parameter.
12077 Also match target.
12078 (thread_from_lwp): Adjust to pass down target.
12079 (thread_db_notice_clone): Pass down target.
12080 (check_thread_db_callback): Pass down target.
12081 (try_thread_db_load_1): Always push the thread_db target.
12082 (try_thread_db_load, record_thread): Pass target down.
12083 (thread_db_target::detach): Pass target down. Always unpush the
12084 thread_db target.
12085 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
12086 target down. Always unpush the thread_db target.
12087 (find_new_threads_callback, thread_db_find_new_threads_2)
12088 (thread_db_target::update_thread_list): Pass target down.
12089 (thread_db_target::pid_to_str): Pass current inferior down.
12090 (thread_db_target::get_thread_local_address): Pass target down.
12091 (thread_db_target::resume, maintenance_check_libthread_db): Pass
12092 target down.
12093 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
12094 * procfs.c (procfs_target::procfs_init_inferior): Declare.
12095 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
12096 (procfs_init_inferior): Rename to ...
12097 (procfs_target::procfs_init_inferior): ... this and adjust.
12098 (procfs_target::create_inferior, procfs_notice_thread)
12099 (procfs_do_thread_registers): Adjust.
12100 * ppc-fbsd-tdep.c: Include "inferior.h".
12101 (ppcfbsd_get_thread_local_address): Pass down target.
12102 * proc-service.c (ps_xfer_memory): Switch current inferior and
12103 program space as well.
12104 (get_ps_regcache): Pass target down.
12105 * process-stratum-target.c
12106 (process_stratum_target::thread_address_space)
12107 (process_stratum_target::thread_architecture): Pass target down.
12108 * process-stratum-target.h
12109 (process_stratum_target::threads_executing): New field.
12110 (as_process_stratum_target): New.
12111 * ravenscar-thread.c
12112 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
12113 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
12114 down.
12115 * record-btrace.c (record_btrace_target::info_record): Adjust.
12116 (record_btrace_target::record_method)
12117 (record_btrace_target::record_is_replaying)
12118 (record_btrace_target::fetch_registers)
12119 (get_thread_current_frame_id, record_btrace_target::resume)
12120 (record_btrace_target::wait, record_btrace_target::stop): Pass
12121 target down.
12122 * record-full.c (record_full_wait_1): Switch to event thread.
12123 Pass target down.
12124 * regcache.c (regcache::regcache)
12125 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
12126 process_stratum_target parameter and handle it.
12127 (current_thread_target): New global.
12128 (get_thread_regcache): Add process_stratum_target parameter and
12129 handle it. Switch inferior before calling target method.
12130 (get_thread_regcache): Pass target down.
12131 (get_thread_regcache_for_ptid): Pass target down.
12132 (registers_changed_ptid): Add process_stratum_target parameter and
12133 handle it.
12134 (registers_changed_thread, registers_changed): Pass target down.
12135 (test_get_thread_arch_aspace_regcache): New.
12136 (current_regcache_test): Define a couple local test_target_ops
12137 instances and use them for testing.
12138 (readwrite_regcache): Pass process_stratum_target parameter.
12139 (cooked_read_test, cooked_write_test): Pass mock_target down.
12140 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
12141 (get_thread_arch_aspace_regcache): Add process_stratum_target
12142 parameter.
12143 (regcache::target): New method.
12144 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
12145 (regcache::registers_changed_ptid): Add process_stratum_target
12146 parameter.
12147 (regcache::m_target): New field.
12148 (registers_changed_ptid): Add process_stratum_target parameter.
12149 * remote.c (remote_state::supports_vCont_probed): New field.
12150 (remote_target::async_wait_fd): New method.
12151 (remote_unpush_and_throw): Add remote_target parameter.
12152 (get_current_remote_target): Adjust.
12153 (remote_target::remote_add_inferior): Push target.
12154 (remote_target::remote_add_thread)
12155 (remote_target::remote_notice_new_inferior)
12156 (get_remote_thread_info): Pass target down.
12157 (remote_target::update_thread_list): Skip threads of inferiors
12158 bound to other targets. (remote_target::close): Don't discard
12159 inferiors. (remote_target::add_current_inferior_and_thread)
12160 (remote_target::process_initial_stop_replies)
12161 (remote_target::start_remote)
12162 (remote_target::remote_serial_quit_handler): Pass down target.
12163 (remote_target::remote_unpush_target): New remote_target
12164 parameter. Unpush the target from all inferiors.
12165 (remote_target::remote_unpush_and_throw): New remote_target
12166 parameter. Pass it down.
12167 (remote_target::open_1): Check whether the current inferior has
12168 execution instead of checking whether any inferior is live. Pass
12169 target down.
12170 (remote_target::remote_detach_1): Pass down target. Use
12171 remote_unpush_target.
12172 (extended_remote_target::attach): Pass down target.
12173 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
12174 (remote_target::append_resumption): Pass down target.
12175 (remote_target::append_pending_thread_resumptions)
12176 (remote_target::remote_resume_with_hc, remote_target::resume)
12177 (remote_target::commit_resume): Pass down target.
12178 (remote_target::remote_stop_ns): Check supports_vCont_probed.
12179 (remote_target::interrupt_query)
12180 (remote_target::remove_new_fork_children)
12181 (remote_target::check_pending_events_prevent_wildcard_vcont)
12182 (remote_target::remote_parse_stop_reply)
12183 (remote_target::process_stop_reply): Pass down target.
12184 (first_remote_resumed_thread): New remote_target parameter. Pass
12185 it down.
12186 (remote_target::wait_as): Pass down target.
12187 (unpush_and_perror): New remote_target parameter. Pass it down.
12188 (remote_target::readchar, remote_target::remote_serial_write)
12189 (remote_target::getpkt_or_notif_sane_1)
12190 (remote_target::kill_new_fork_children, remote_target::kill): Pass
12191 down target.
12192 (remote_target::mourn_inferior): Pass down target. Use
12193 remote_unpush_target.
12194 (remote_target::core_of_thread)
12195 (remote_target::remote_btrace_maybe_reopen): Pass down target.
12196 (remote_target::pid_to_exec_file)
12197 (remote_target::thread_handle_to_thread_info): Pass down target.
12198 (remote_target::async_wait_fd): New.
12199 * riscv-fbsd-tdep.c: Include "inferior.h".
12200 (riscv_fbsd_get_thread_local_address): Pass down target.
12201 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
12202 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
12203 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
12204 Adjust.
12205 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
12206 * solib-svr4.c (enable_break): Pass down target.
12207 * spu-multiarch.c (parse_spufs_run): Pass down target.
12208 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
12209 * target-delegates.c: Regenerate.
12210 * target.c (g_target_stack): Delete.
12211 (current_top_target): Return the current inferior's top target.
12212 (target_has_execution_1): Refer to the passed-in inferior's top
12213 target.
12214 (target_supports_terminal_ours): Check whether the initial
12215 inferior was already created.
12216 (decref_target): New.
12217 (target_stack::push): Incref/decref the target.
12218 (push_target, push_target, unpush_target): Adjust.
12219 (target_stack::unpush): Defref target.
12220 (target_is_pushed): Return bool. Adjust to refer to the current
12221 inferior's target stack.
12222 (dispose_inferior): Delete, and inline parts ...
12223 (target_preopen): ... here. Only dispose of the current inferior.
12224 (target_detach): Hold strong target reference while detaching.
12225 Pass target down.
12226 (target_thread_name): Add assertion.
12227 (target_resume): Pass down target.
12228 (target_ops::beneath, find_target_at): Adjust to refer to the
12229 current inferior's target stack.
12230 (get_dummy_target): New.
12231 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
12232 has a thread running.
12233 (initialize_targets): Rename to ...
12234 (_initialize_target): ... this.
12235 * target.h: Include "gdbsupport/refcounted-object.h".
12236 (struct target_ops): Inherit refcounted_object.
12237 (target_ops::shortname, target_ops::longname): Make const.
12238 (target_ops::async_wait_fd): New method.
12239 (decref_target): Declare.
12240 (struct target_ops_ref_policy): New.
12241 (target_ops_ref): New typedef.
12242 (get_dummy_target): Declare function.
12243 (target_is_pushed): Return bool.
12244 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
12245 (all_matching_threads_iterator::all_matching_threads_iterator):
12246 Handle filter target.
12247 * thread-iter.h (struct all_matching_threads_iterator, struct
12248 all_matching_threads_range, class all_non_exited_threads_range):
12249 Filter by target too. Remove explicit.
12250 * thread.c (threads_executing): Delete.
12251 (inferior_thread): Pass down current inferior.
12252 (clear_thread_inferior_resources): Pass down thread pointer
12253 instead of ptid_t.
12254 (add_thread_silent, add_thread_with_info, add_thread): Add
12255 process_stratum_target parameter. Use it for thread and inferior
12256 searches.
12257 (is_current_thread): New.
12258 (thread_info::deletable): Use it.
12259 (find_thread_ptid, thread_count, in_thread_list)
12260 (thread_change_ptid, set_resumed, set_running): New
12261 process_stratum_target parameter. Pass it down.
12262 (set_executing): New process_stratum_target parameter. Pass it
12263 down. Adjust reference to 'threads_executing'.
12264 (threads_are_executing): New process_stratum_target parameter.
12265 Adjust reference to 'threads_executing'.
12266 (set_stop_requested, finish_thread_state): New
12267 process_stratum_target parameter. Pass it down.
12268 (switch_to_thread): Also match inferior.
12269 (switch_to_thread): New process_stratum_target parameter. Pass it
12270 down.
12271 (update_threads_executing): Reimplement.
12272 * top.c (quit_force): Pop targets from all inferior.
12273 (gdb_init): Don't call initialize_targets.
12274 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
12275 Declare.
12276 (windows_add_thread, windows_delete_thread): Adjust.
12277 (get_windows_debug_event): Rename to ...
12278 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
12279 * tracefile-tfile.c (tfile_target_open): Pass down target.
12280 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
12281 Forward declare.
12282 (switch_to_thread): Add process_stratum_target parameter.
12283 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
12284 parameter. Use it.
12285 (mi_on_resume): Pass target down.
12286 * nat/fork-inferior.c (startup_inferior): Add
12287 process_stratum_target parameter. Pass it down.
12288 * nat/fork-inferior.h (startup_inferior): Add
12289 process_stratum_target parameter.
12290 * python/py-threadevent.c (py_get_event_thread): Pass target down.
12291
75c6c844
PA
122922020-01-10 Pedro Alves <palves@redhat.com>
12293
12294 * remote.c (remote_target::start_remote): Don't set inferior_ptid
12295 directly. Instead find the first thread in the thread list and
12296 use switch_to_thread.
12297
78f2c40a
PA
122982020-01-10 Pedro Alves <palves@redhat.com>
12299
12300 * remote.c (remote_target::remote_add_inferior): Don't bind a
12301 process to the current inferior if the current inferior is already
12302 bound to a process.
12303
e7af6c70
TBA
123042020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12305 Pedro Alves <palves@redhat.com>
12306
12307 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
12308 If no process is specified, return null_ptid instead of
12309 inferior_ptid.
12310 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
12311 TARGET_WAITKIND_SIGNALLED with no pid.
12312
31ba933e
PA
123132020-01-10 Pedro Alves <palves@redhat.com>
12314
12315 * remote.c (first_remote_resumed_thread): New.
12316 (remote_target::wait_as): Use it as default event_ptid instead of
12317 inferior_ptid.
12318
735fc2ca
PA
123192020-01-10 Pedro Alves <palves@redhat.com>
12320
12321 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
12322
c17e02e1
PA
123232020-01-10 Pedro Alves <palves@redhat.com>
12324
12325 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
12326 not -1.
12327
ab1ddbcf
PA
123282020-01-10 Pedro Alves <palves@redhat.com>
12329
12330 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
12331 ptid to get_last_target_status.
12332 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
12333 ptid to get_last_target_status.
12334 * infcmd.c (continue_command): Don't pass a target_waitstatus to
12335 get_last_target_status.
12336 (info_program_command): Don't pass a target_waitstatus to
12337 get_last_target_status.
12338 * infrun.c (init_wait_for_inferior): Use
12339 nullify_last_target_wait_ptid.
12340 (get_last_target_status): Handle nullptr arguments.
12341 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
12342 (print_stop_event): Don't pass a ptid to get_last_target_status.
12343 (normal_stop): Don't pass a ptid to get_last_target_status.
12344 * infrun.h (get_last_target_status, set_last_target_status): Move
12345 comments here and update.
12346 (nullify_last_target_wait_ptid): Declare.
12347 * linux-fork.c (fork_load_infrun_state): Remove local extern
12348 declaration of nullify_last_target_wait_ptid.
12349 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
12350 to get_last_target_status.
12351
f3f8ece4
PA
123522020-01-10 Pedro Alves <palves@redhat.com>
12353
12354 * gdbthread.h (scoped_restore_current_thread)
12355 <dont_restore, restore, m_dont_restore>: Declare.
12356 * thread.c (thread_alive): Add assertion. Return bool.
12357 (switch_to_thread_if_alive): New.
12358 (prune_threads): Switch inferior/thread.
12359 (print_thread_info_1): Switch thread before calling target methods.
12360 (scoped_restore_current_thread::restore): New, factored out from
12361 ...
12362 (scoped_restore_current_thread::~scoped_restore_current_thread):
12363 ... this.
12364 (scoped_restore_current_thread::scoped_restore_current_thread):
12365 Add assertion.
12366 (thread_apply_all_command, thread_select): Use
12367 switch_to_thread_if_alive.
12368 * infrun.c (proceed, restart_threads, handle_signal_stop)
12369 (switch_back_to_stepped_thread): Switch current thread before
12370 calling target methods.
12371
db2d40f7
PA
123722020-01-10 Pedro Alves <palves@redhat.com>
12373
12374 * inferior.c (switch_to_inferior_no_thread): New function,
12375 factored out from ...
12376 (inferior_command): ... here.
12377 * inferior.h (switch_to_inferior_no_thread): Declare.
12378 * mi/mi-main.c (run_one_inferior): Use
12379 switch_to_inferior_no_thread.
12380
bd420a2d
PA
123812020-01-10 Pedro Alves <palves@redhat.com>
12382
12383 * infcmd.c (kill_command): Remove dead code.
12384
ddf5db90
PA
123852020-01-10 Pedro Alves <palves@redhat.com>
12386
12387 * remote.c (remote_target::mourn_inferior): No longer check
12388 whether the target is running.
12389
5018ce90
PA
123902020-01-10 Pedro Alves <palves@redhat.com>
12391
12392 * corelow.c (core_target::has_execution): Change parameter type to
12393 inferior pointer.
12394 * inferior.c (number_of_live_inferiors): Use
12395 inferior::has_execution instead of target_has_execution_1.
12396 * inferior.h (inferior::has_execution): New.
12397 * linux-thread-db.c (thread_db_target::update_thread_list): Use
12398 inferior::has_execution instead of target_has_execution_1.
12399 * process-stratum-target.c
12400 (process_stratum_target::has_execution): Change parameter type to
12401 inferior pointer. Check the inferior's PID instead of
12402 inferior_ptid.
12403 * process-stratum-target.h
12404 (process_stratum_target::has_execution): Change parameter type to
12405 inferior pointer.
12406 * record-full.c (record_full_core_target::has_execution): Change
12407 parameter type to inferior pointer.
12408 * target.c (target_has_execution_1): Change parameter type to
12409 inferior pointer.
12410 (target_has_execution_current): Adjust.
12411 * target.h (target_ops::has_execution): Change parameter type to
12412 inferior pointer.
12413 (target_has_execution_1): Change parameter type to inferior
12414 pointer. Change return type to bool.
12415 * tracefile.h (tracefile_target::has_execution): Change parameter
12416 type to inferior pointer.
12417
74375d18
PA
124182020-01-10 Pedro Alves <palves@redhat.com>
12419
12420 * exceptions.c (print_flush): Remove current_top_target() check.
12421
acdf84a6
PA
124222020-01-10 Pedro Alves <palves@redhat.com>
12423
12424 * remote.c (show_remote_exec_file): Show the current inferior's
12425 exec-file instead of the command variable's value.
12426
ec506636
PA
124272020-01-10 Pedro Alves <palves@redhat.com>
12428
12429 * record-full.c (record_full_resume_ptid): New global.
12430 (record_full_target::resume): Set it.
12431 (record_full_wait_1): Use record_full_resume_ptid instead of
12432 inferior_ptid.
12433
873657b9
PA
124342020-01-10 Pedro Alves <palves@redhat.com>
12435
12436 * gdbthread.h (scoped_restore_current_thread)
12437 <dont_restore, restore, m_dont_restore>: Declare.
12438 * thread.c (thread_alive): Add assertion. Return bool.
12439 (switch_to_thread_if_alive): New.
12440 (prune_threads): Switch inferior/thread.
12441 (print_thread_info_1): Switch thread before calling target methods.
12442 (scoped_restore_current_thread::restore): New, factored out from
12443 ...
12444 (scoped_restore_current_thread::~scoped_restore_current_thread):
12445 ... this.
12446 (scoped_restore_current_thread::scoped_restore_current_thread):
12447 Add assertion.
12448 (thread_apply_all_command, thread_select): Use
12449 switch_to_thread_if_alive.
12450
7f0ae84c
GB
124512020-01-10 George Barrett <bob@bob131.so>
12452
12453 * stap-probe.c (stap_modify_semaphore): Don't check for null
12454 semaphores.
12455 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
12456 for null semaphores.
12457
f5a7c406
AB
124582020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
12459
12460 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
12461 all source windows, and maintain horizontal scroll status while
12462 doing so.
12463
9ae6bf64
TT
124642020-01-09 Tom Tromey <tom@tromey.com>
12465
12466 PR tui/18932:
12467 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
12468 update_source_window, not print_source_lines.
12469
b2efe70c
AB
124702020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
12471
12472 * tui/tui.c (tui_enable): Register tui hooks after calling
12473 tui_display_main.
12474
5f23a082
CB
124752020-01-09 Christian Biesinger <cbiesinger@google.com>
12476
12477 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
12478
3061113b
SM
124792020-01-08 Simon Marchi <simon.marchi@efficios.com>
12480
12481 * thread.c (print_thread_info_1): Fix indentation.
12482
57d75002
CB
124832020-01-09 Christian Biesinger <cbiesinger@google.com>
12484
12485 * symtab.c (general_symbol_info::compute_and_set_names): Move the
12486 unique_xmalloc_ptr outside the if to always free the demangled name.
12487
6a053cb1
TT
124882020-01-08 Tom Tromey <tromey@adacore.com>
12489
12490 * xcoffread.c (enter_line_range, read_xcoff_symtab)
12491 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
12492 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
12493 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
12494 Remove.
12495 (section_offsets): New typedef.
12496 * symtab.c (fixup_section, get_msymbol_address): Update.
12497 * symmisc.c (dump_msymbols): Update.
12498 * symfile.h (relative_addr_info_to_section_offsets)
12499 (symfile_map_offsets_to_segments): Update.
12500 * symfile.c (build_section_addr_info_from_objfile)
12501 (init_objfile_sect_indices): Update.
12502 (struct place_section_arg): Change type of "offsets".
12503 (place_section): Update.
12504 (relative_addr_info_to_section_offsets): Change type of
12505 "section_offsets". Remove "num_sections" parameter.
12506 (default_symfile_offsets, syms_from_objfile_1)
12507 (set_objfile_default_section_offset): Update.
12508 (reread_symbols): No need to preserve section offsets by hand.
12509 (symfile_map_offsets_to_segments): Change type of "offsets".
12510 * stap-probe.c (relocate_address): Update.
12511 * stabsread.h (process_one_symbol): Update.
12512 * solib-target.c (struct lm_info_target) <offsets>: Change type.
12513 (solib_target_relocate_section_addresses): Update.
12514 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
12515 Update.
12516 * solib-frv.c (frv_relocate_main_executable): Update.
12517 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
12518 * solib-aix.c (solib_aix_get_section_offsets): Change return
12519 type.
12520 (solib_aix_solib_create_inferior_hook): Update.
12521 * remote.c (remote_target::get_offsets): Update.
12522 * psymtab.c (find_pc_sect_psymtab): Update.
12523 * psympriv.h (struct partial_symbol) <address, text_low,
12524 text_high>: Update.
12525 * objfiles.h (obj_section_offset): Update.
12526 (struct objfile) <section_offsets>: Change type.
12527 <num_sections>: Remove.
12528 (objfile_relocate): Update.
12529 * objfiles.c (entry_point_address_query): Update
12530 (relocate_one_symbol): Change type of "section_offsets".
12531 (objfile_relocate1, objfile_relocate1): Change type of
12532 "new_offsets".
12533 (objfile_rebase1): Update.
12534 * mipsread.c (mipscoff_symfile_read): Update.
12535 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
12536 parameter.
12537 * mdebugread.c (parse_symbol): Change type of "section_offsets".
12538 (parse_external, psymtab_to_symtab_1): Update.
12539 * machoread.c (macho_symfile_offsets): Update.
12540 * ia64-tdep.c (ia64_find_unwind_table): Update.
12541 * hppa-tdep.c (read_unwind_info): Update.
12542 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
12543 * dwarf2read.c (create_addrmap_from_index)
12544 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
12545 (process_psymtab_comp_unit_reader, add_partial_symbol)
12546 (add_partial_subprogram, process_full_comp_unit)
12547 (read_file_scope, read_func_scope, read_lexical_block_scope)
12548 (read_call_site_scope, dwarf2_rnglists_process)
12549 (dwarf2_ranges_process, dwarf2_ranges_read)
12550 (dwarf_decode_lines_1, var_decode_location, new_symbol)
12551 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
12552 Update.
12553 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
12554 Update.
12555 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
12556 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
12557 (process_one_symbol): Change type of "section_offsets".
12558 * ctfread.c (get_objfile_text_range): Update.
12559 * coffread.c (coff_symtab_read, enter_linenos)
12560 (process_coff_symbol): Update.
12561 * coff-pe-read.c (add_pe_forwarded_sym): Update.
12562 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
12563
456e800a
TT
125642020-01-08 Tom Tromey <tromey@adacore.com>
12565
12566 * dwarf2read.c (parse_macro_definition): Use std::string.
12567 (parse_macro_definition): Likewise.
12568
6dfa2fc2
TT
125692020-01-08 Tom Tromey <tromey@adacore.com>
12570
12571 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
12572 (ATTR_ALLOC_CHUNK): Remove.
12573
421d1616
TT
125742020-01-08 Tom Tromey <tromey@adacore.com>
12575
12576 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
12577
43816ebc
TT
125782020-01-08 Tom Tromey <tromey@adacore.com>
12579
12580 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
12581 (dwarf2_compute_name, open_dwo_file): Likewise.
12582 (process_enumeration_scope): Use std::vector.
12583 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
12584 (partial_die_info::fixup, dwarf2_start_subfile)
12585 (guess_full_die_structure_name, dwarf2_name): Likewise.
12586 (determine_prefix): Update.
12587 (guess_full_die_structure_name): Make return type const.
12588 (partial_die_full_name): Return unique_xmalloc_ptr.
12589 (DW_FIELD_ALLOC_CHUNK): Remove.
12590
4212d509
TT
125912020-01-07 Tom Tromey <tromey@adacore.com>
12592
12593 PR build/24937:
12594 * stap-probe.c (class stap_static_probe_ops): Add constructor.
12595
06a6207a
JT
125962020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
12597
12598 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
12599
153d79c4
AB
126002020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
12601
12602 * stack.c (print_frame_info): Move disassemble_next_line code
12603 inside source_print block.
12604
66182876
EZ
126052020-01-06 Eli Zaretskii <eliz@gnu.org>
12606
12607 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
12608 gdb/signals.h, as we are now using native signal symbols.
12609
cbfa8581
SV
126102020-01-06 Shahab Vahedi <shahab@synopsys.com>
12611
12612 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
12613 overflow by an early check of content vs threshold.
aac66a4c 12614 * tui/tui-source.c (tui_source_window::line_is_displayed):
cbfa8581
SV
12615 Likewise.
12616
3f602821
EZ
126172020-01-06 Eli Zaretskii <eliz@gnu.org>
12618
12619 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
12620
a08c904d
JT
126212020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
12622
12623 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
12624 export table if no section contains it's RVA.
12625
89a65580
EZ
126262020-01-06 Eli Zaretskii <eliz@gnu.org>
12627
12628 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
12629
8b7fcda2
HD
126302020-01-06 Hannes Domani <ssbssa@yahoo.de>
12631
12632 * source.c (print_source_lines_base): Set last_line_listed.
12633
a61b4f69
SV
126342020-01-06 Shahab Vahedi <shahab@synopsys.com>
12635
12636 * tui/tui-disasm.c: Remove trailing spaces.
12637
559e7e50
EZ
126382020-01-06 Eli Zaretskii <eliz@gnu.org>
12639 Pedro Alves <palves@redhat.com>
12640
12641 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
12642 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
12643 (windows_gdb_signal_to_target): New function, uses the above
12644 enumeration to convert GDB internal signal codes to equivalent
12645 Windows codes.
12646 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
12647 * windows-nat.c: Include "gdb_wait.h".
12648 (get_windows_debug_event): Extract the fatal exception from the
12649 exit status and convert to the equivalent Posix signal number.
12650 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
12651 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
12652 * gdbsupport/gdb_wait.c: New file, implements
12653 windows_status_to_termsig.
12654 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
12655 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
12656
f2302a34
AB
126572020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
12658
12659 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
12660 show_layout.
12661
6a5206eb
LM
126622020-01-05 Luis Machado <luis.machado@linaro.org>
12663
12664 * aarch64-linux-nat.c
12665 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
12666 and bfd_mach_aarch64.
12667
6ec1d75e
PW
126682020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12669
12670 * ui-file.c (stdio_file::can_emit_style_escape)
12671 (tee_file::can_emit_style_escape): Ensure style is used also on
12672 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
12673 to gdb_stdout.
12674 * main.c (set_gdb_data_directory): Use file style to output the
12675 warning that the given pathname is not a directory.
12676 * top.c (show_history_filename, gdb_safe_append_history)
12677 (show_gdb_datadir): Use file style.
12678
44f81a76
HD
126792020-01-03 Hannes Domani <ssbssa@yahoo.de>
12680
12681 * solib-target.c (struct lm_info_target):
12682 Change offsets to be a unique_xmalloc_ptr.
12683 (solib_target_relocate_section_addresses): Update.
12684
25057eb0
HD
126852020-01-03 Hannes Domani <ssbssa@yahoo.de>
12686
12687 * windows-nat.c (windows_clear_solib): Free so_list linked list.
12688
6e2118f5
BE
126892020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
12690
12691 * MAINTAINERS (Write After Approval): Add myself.
12692
8133c7dc
LM
126932020-01-02 Luis Machado <luis.machado@linaro.org>
12694
12695 * proc-service.c (get_ps_regcache): Remove reference to obsolete
12696 Cell BE architecture.
12697 * target.h (struct target_ops) <thread_architecture>: Likewise.
12698
48189bec
HD
126992020-01-01 Hannes Domani <ssbssa@yahoo.de>
12700
12701 * Makefile.in: Use INSTALL_PROGRAM_ENV.
12702
ead1063b
HD
127032020-01-01 Hannes Domani <ssbssa@yahoo.de>
12704
12705 * MAINTAINERS (Write After Approval): Add myself.
12706
e5d78223
JB
127072020-01-01 Joel Brobecker <brobecker@adacore.com>
12708
12709 * gdbarch.sh: Update copyright year range of generated files.
12710
b811d2c2
JB
127112020-01-01 Joel Brobecker <brobecker@adacore.com>
12712
12713 Update copyright year range in all GDB files.
12714
5f4def5c
JB
127152020-01-01 Joel Brobecker <brobecker@adacore.com>
12716
12717 * copyright.py: Convert to Python 3.
12718
51fd4002
JB
127192020-01-01 Joel Brobecker <brobecker@adacore.com>
12720
12721 * copyright.py: Adapt after move of gnulib directory from gdb
12722 directory to toplevel directory.
12723
5fb651f2
JB
127242020-01-01 Joel Brobecker <brobecker@adacore.com>
12725
12726 * copyright.py (main): Exit if run from the wrong directory.
12727
5dd8bf88
JB
127282020-01-01 Joel Brobecker <brobecker@adacore.com>
12729
12730 * top.c (print_gdb_version): Change copyright year to 2020.
12731
9f71dacb 127322020-01-01 Joel Brobecker <brobecker@adacore.com>
3d34df0a 12733
9f71dacb 12734 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
3d34df0a 12735
9f71dacb 12736For older changes see ChangeLog-2019.
c906108c
SS
12737\f
12738Local Variables:
12739mode: change-log
12740left-margin: 8
12741fill-column: 74
12742version-control: never
57da7796 12743coding: utf-8
c906108c 12744End: