gdb: Fix formatting error in ChangeLog
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
652fc23a 12020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 2
652fc23a
PW
3 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
4 info_command.
5
117539e6
KR
62020-04-30 Kamil Rytarowski <n54@gmx.com>
7
8 * nbsd-nat.c (nbsd_enable_proc_events)
9 (nbsd_nat_target::post_startup_inferior): Add.
10 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
11 (nbsd_nat_target::update_thread_list): Rewrite.
12 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
13 "PTRACE_LWP_CREATE".
14 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
15
102e38eb 162020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 17
102e38eb
PW
18 * stack.c (_initialize_stack): Remove duplicated creation
19 of "frame" command and "f" alias.
20
ee9d1e5f
HD
212020-04-30 Hannes Domani <ssbssa@yahoo.de>
22
23 PR gdb/18706
24 * gdbtypes.c (check_typedef): Calculate size of array of
25 stubbed type.
26
627c7fb8
HD
272020-04-30 Hannes Domani <ssbssa@yahoo.de>
28
29 PR gdb/15559
30 * i386-tdep.c (i386_push_dummy_call): Call
31 i386_thiscall_push_dummy_call.
32 (i386_thiscall_push_dummy_call): New function.
33 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
34 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
35 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
36
ffc2844e
SM
372020-04-29 Simon Marchi <simon.marchi@efficios.com>
38
39 * gdbarch.sh (do_read): Add shellcheck disable directive for
40 warning SC2162.
41
1207375d
SM
422020-04-29 Simon Marchi <simon.marchi@efficios.com>
43
44 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
45 "referenced but not assigned" warning.
46
9fdb2916
SM
472020-04-29 Simon Marchi <simon.marchi@efficios.com>
48
49 * gdbarch.sh: Remove code that sets fallbackdefault.
50
759cea5e
SM
512020-04-29 Simon Marchi <simon.marchi@efficios.com>
52
53 * gdbarch.sh: Use shell operators && and || instead of
54 -a and -o.
55
cb02ab24
SM
562020-04-29 Simon Marchi <simon.marchi@efficios.com>
57
58 * gdbarch.sh: Use $(...) instead of `...`.
59
a6fc5ffc
SM
602020-04-29 Simon Marchi <simon.marchi@efficios.com>
61
62 * gdbarch.sh: Use double quotes around variables.
63
8d113d13
SM
642020-04-29 Simon Marchi <simon.marchi@efficios.com>
65
66 * gdbarch.sh: Use %s with printf, instead of variables in the
67 format string.
68
ed6acedd
TT
692020-04-29 Tom Tromey <tromey@adacore.com>
70
71 PR ada/25875:
72 * dwarf2/read.c (update_enumeration_type_from_children): Compute
73 type fields here.
74 (read_enumeration_type): Call
75 update_enumeration_type_from_children later. Update comments.
76 (process_enumeration_scope): Don't create type fields.
77
b68b1b58
KR
782020-04-29 Kamil Rytarowski <n54@gmx.com>
79
80 * nbsd-tdep.c: Include "xml-syscall.h".
81 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
82
f94b2e03
KR
832020-04-29 Kamil Rytarowski <n54@gmx.com>
84
85 * nbsd-nat.c: Include "sys/wait.h".
86 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
87 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
88 (nbsd_nat_target::remove_exec_catchpoint)
89 (nbsd_nat_target::set_syscall_catchpoint): Add.
90 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
91 (nbsd_nat_target::insert_exec_catchpoint)
92 (nbsd_nat_target::remove_exec_catchpoint)
93 (nbsd_nat_target::set_syscall_catchpoint): Add.
94 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
95 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
96 `nbsd_get_syscall_number'.
97
fc49bc72
TT
982020-04-29 Tom Tromey <tom@tromey.com>
99
100 * stack.c (print_block_frame_labels): Remove.
101
d642b692
HD
1022020-04-29 Hannes Domani <ssbssa@yahoo.de>
103
104 PR gdb/17320
105 * ada-valprint.c (val_print_packed_array_elements): Move array
106 end bracket to new line.
107 (ada_val_print_string): Remove extra spaces before first array
108 element.
109 * c-valprint.c (c_value_print_array): Likewise.
110 * m2-valprint.c (m2_print_array_contents): Likewise.
111 (m2_value_print_inner): Likewise.
112 * p-valprint.c (pascal_value_print_inner): Likewise.
113 * valprint.c (generic_val_print_array): Likewise.
114 (value_print_array_elements): Move first array element and array
115 end bracket to new line.
116
ea90f227
TV
1172020-04-29 Tom de Vries <tdevries@suse.de>
118
119 PR symtab/25889
120 * linespec.c (find_method): Fix ix calculation.
121
4498ef4f
KR
1222020-04-28 Kamil Rytarowski <n54@gmx.com>
123
124 * syscalls/update-netbsd.sh: New file.
125 * syscalls/netbsd.xml: Regenerate.
126 * data-directory/Makefile.in: Register `netbsd.xml' in
127 `SYSCALLS_FILES'.
128
a55e30b5
SM
1292020-04-28 Simon Marchi <simon.marchi@efficios.com>
130
131 * syscalls/update-freebsd.sh: Add double quotes.
132
2b2fbab8
TT
1332020-04-28 Tom Tromey <tom@tromey.com>
134
135 * NEWS: Update.
136 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
137 (cmdpy_init): Allow class_tui.
138
a65189c9
TV
1392020-04-28 Mark Williams <mark@myosotissp.com>
140
141 PR gdb/24480
142 * dwarf2read.c: Add missing assingments to list_in_scope when
143 start_symtab was already called.
144
1b95cdb7
SM
1452020-04-28 Simon Marchi <simon.marchi@efficios.com>
146
147 PR gdb/25881
148 * dwarf2/read.c (offset_map_type): Use
149 gdb:hash_enum<sect_offset> as hash function.
150
15cd93d0
TV
1512020-04-28 Tom de Vries <tdevries@suse.de>
152
153 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
154 with DW_AT_signature.
155
1eb39914
SM
1562020-04-27 Simon Marchi <simon.marchi@efficios.com>
157
158 * configure.ac: Remove check for fs_base/gs_base in
159 user_regs_struct.
160 * configure: Re-generate.
161 * config.in: Re-generate.
162 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
163 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
164 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
165
991a3e2e
LM
1662020-04-27 Luis Machado <luis.machado@linaro.org>
167
168 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
169 problematic inline frame unwinding situation.
170 * frame.c (frame_id_computed_p): New function.
171 * frame.h (frame_id_computed_p): New prototype.
172
361ba0e8
TT
1732020-04-26 Tom Tromey <tom@tromey.com>
174
175 * command.h (enum command_class) <class_pseudo>: Remove.
176
bc3609fd
PW
1772020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
178
179 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
180 and whitespace.
181
b9771db7
KR
1822020-04-25 Kamil Rytarowski <n54@gmx.com>
183
184 * inf-ptrace.c (inf_ptrace_target::wait): Remove
185 `PT_GET_PROCESS_STATE' block.
186
7151c1af
TT
1872020-04-24 Tom Tromey <tom@tromey.com>
188
189 * symtab.h (symbol_get_demangled_name): Don't declare.
190 * symtab.c (symbol_get_demangled_name): Remove.
191 (general_symbol_info::natural_name)
192 (general_symbol_info::demangled_name): Update.
193
906bb4c5
TT
1942020-04-24 Tom Tromey <tom@tromey.com>
195
196 PR rust/25025:
197 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
198
bcfe6157
TT
1992020-04-24 Tom Tromey <tom@tromey.com>
200
201 PR symtab/12707:
202 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
203 exists.
204 (new_symbol): Likewise.
205 * compile/compile-object-load.c (get_out_value_type): Use
206 symbol_matches_search_name.
207
f049a313
TT
2082020-04-24 Tom Tromey <tom@tromey.com>
209
210 * dwarf2/read.c (add_partial_symbol): Do not call
211 compute_and_set_names.
212
76e288d1
TT
2132020-04-24 Tom Tromey <tom@tromey.com>
214
215 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
216 overload.
217
2467f4f6
TT
2182020-04-24 Tom Tromey <tom@tromey.com>
219
220 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
221 (add_psymbol_to_list): New overload. Make old overload call new
222 one.
223 * psympriv.h (add_psymbol_to_list): New overload.
224
e61108c9
TT
2252020-04-24 Tom Tromey <tom@tromey.com>
226
227 * dwarf2/read.c (partial_die_info::read) <case
228 DW_AT_linkage_name>: Use value_as_string.
229 (dwarf2_string_attr): Use value_as_string.
230 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
231 method.
232 * dwarf2/attribute.c (attribute::value_as_string): New method.
233
8c87a452
TT
2342020-04-24 Tom Tromey <tom@tromey.com>
235
236 * symtab.c (general_symbol_info::natural_name)
237 (general_symbol_info::demangled_name): Check for language_rust.
238
787de330
TT
2392020-04-24 Tom Tromey <tom@tromey.com>
240
241 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
242 (dwarf2_physname): ... from here.
243 (partial_die_info::read): Add Rust "{" hack.
244
ff985671
TT
2452020-04-24 Tom Tromey <tom@tromey.com>
246
247 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
248 method.
249 (symbol_set_demangled_name): Don't declare.
250 * symtab.c (general_symbol_info::set_demangled_name): Rename from
251 symbol_set_demangled_name.
252 (general_symbol_info::set_language)
253 (general_symbol_info::compute_and_set_names): Update.
254 * minsyms.c (minimal_symbol_reader::install): Update.
255 * dwarf2/read.c (new_symbol): Update.
256
1acda803
TT
2572020-04-24 Tom Tromey <tromey@adacore.com>
258
259 PR python/23662:
260 * python/py-type.c (convert_field): Handle
261 FIELD_LOC_KIND_DWARF_BLOCK.
262 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
263 (typy_get_dynamic): Nw function.
264 (type_object_getset): Add "dynamic".
265 * NEWS: Add entry.
266
d656f129
TT
2672020-04-24 Tom Tromey <tromey@adacore.com>
268
269 * ada-typeprint.c (print_choices, print_variant_part)
270 (print_record_field_types_dynamic): New functions.
271 (print_record_field_types): Use print_record_field_types_dynamic.
272
7d79de9a
TT
2732020-04-24 Tom Tromey <tromey@adacore.com>
274
275 * dwarf2/read.c (handle_data_member_location): New overload.
276 (dwarf2_add_field): Use it.
277 (decode_locdesc): Add "computed" parameter. Update comment.
278 * gdbtypes.c (is_dynamic_type_internal): Also look for
279 FIELD_LOC_KIND_DWARF_BLOCK.
280 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
281 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
282 virtual base classes.
283 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
284 FIELD_LOC_KIND_DWARF_BLOCK.
285
f8e89861
TT
2862020-04-24 Tom Tromey <tromey@adacore.com>
287
288 * dwarf2/read.c (read_structure_type): Handle dynamic length.
289 * gdbtypes.c (is_dynamic_type_internal): Check
290 TYPE_HAS_DYNAMIC_LENGTH.
291 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
292 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
293 New macros.
294 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
295 constant.
296
9c6a1327
TT
2972020-04-24 Tom Tromey <tromey@adacore.com>
298
299 * dwarf2/read.c (struct variant_field): Rewrite.
300 (struct variant_part_builder): New.
301 (struct nextfield): Remove "variant" field. Add "offset".
302 (struct field_info): Add "current_variant_part" and
303 "variant_parts".
304 (alloc_discriminant_info): Remove.
305 (alloc_rust_variant): New function.
306 (quirk_rust_enum): Update.
307 (dwarf2_add_field): Set "offset" member. Don't handle
308 DW_TAG_variant_part.
309 (offset_map_type): New typedef.
310 (convert_variant_range, create_one_variant)
311 (create_one_variant_part, create_variant_parts)
312 (add_variant_property): New functions.
313 (dwarf2_attach_fields_to_type): Call add_variant_property.
314 (read_structure_type): Don't handle DW_TAG_variant_part.
315 (handle_variant_part, handle_variant): New functions.
316 (handle_struct_member_die): Use them.
317 (process_structure_scope): Don't handle variant parts.
318 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
319 (struct discriminant_info): Remove.
320 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
321 (struct main_type) <flag_discriminated_union>: Remove.
322 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
323 (rust_enum_variant): Return int. Remove "contents". Rewrite.
324 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
325 Update.
326 * valops.c (value_union_variant): Remove.
327 * value.h (value_union_variant): Don't declare.
328
b249d2c2
TT
3292020-04-24 Tom Tromey <tromey@adacore.com>
330
331 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
332 (ada_value_primitive_packed_val): Update.
333 * ada-valprint.c (ada_value_print_1): Update.
334 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
335 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
336 just an address. Use evaluate_for_locexpr_baton.
337 (dwarf2_evaluate_property): Update.
338 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
339 array_view.
340 * findvar.c (default_read_var_value): Update.
341 * gdbtypes.c (compute_variant_fields_inner)
342 (resolve_dynamic_type_internal): Update.
343 (resolve_dynamic_type): Change type of valaddr parameter.
344 * gdbtypes.h (resolve_dynamic_type): Update.
345 * valarith.c (value_subscripted_rvalue): Update.
346 * value.c (value_from_contents_and_address): Update.
347
61122aa9
TT
3482020-04-24 Tom Tromey <tromey@adacore.com>
349
350 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
351 "push_initial_value" parameter.
352 (dwarf2_evaluate_property): Likewise.
353 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
354
ef83a141
TT
3552020-04-24 Tom Tromey <tromey@adacore.com>
356
357 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
358 (variant::matches, compute_variant_fields_recurse)
359 (compute_variant_fields_inner, compute_variant_fields): New
360 functions.
361 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
362 Use resolved_type after type is made.
363 (operator==): Add new cases.
364 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
365 (struct discriminant_range, struct variant, struct variant_part):
366 New.
367 (union dynamic_prop_data) <variant_parts, original_type>: New
368 members.
369 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
370 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
371 constants.
372 * value.c (unpack_bits_as_long): Now public.
373 * value.h (unpack_bits_as_long): Declare.
374
675127ec
TT
3752020-04-24 Tom Tromey <tromey@adacore.com>
376
377 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
378 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
379
9852ceef
HD
3802020-04-24 Hannes Domani <ssbssa@yahoo.de>
381
382 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
383
7632c6ce
KR
3842020-04-24 Kamil Rytarowski <n54@gmx.com>
385
386 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
387 (remove_fork_catchpoint, post_startup_inferior)
388 (post_attach): Move...
389 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
390 (remove_fork_catchpoint, post_startup_inferior)
391 (post_attach): ...here.
392 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
393 (remove_fork_catchpoint, post_startup_inferior)
394 (post_attach): Move...
395 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
396 (remove_fork_catchpoint, post_startup_inferior)
397 (post_attach): ...here.
398
7be2bb4f
TT
3992020-04-24 Tom Tromey <tromey@adacore.com>
400
401 * nat/windows-nat.h (struct windows_thread_info)
402 <pc_adjusted>: New member.
403 * windows-nat.c (windows_fetch_one_register): Check
404 pc_adjusted.
405 (windows_nat_target::get_windows_debug_event)
406 (windows_nat_target::wait): Set pc_adjusted.
407
f80cb3b4
TV
4082020-04-24 Tom de Vries <tdevries@suse.de>
409
410 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
411 Run gdb-add-index inside temp dir.
412
29514b87
TT
4132020-04-23 Tom Tromey <tromey@adacore.com>
414
415 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
416 in loop.
417
5939967b
LM
4182020-04-23 Luis Machado <luis.machado@linaro.org>
419
420 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
421 get_frame_register instead of gdbarch_unwind_pc.
422
70bc38f5
TV
4232020-04-23 Tom de Vries <tdevries@suse.de>
424
425 * symtab.c (lookup_global_symbol): Prefer def over decl.
426
de82891c
TV
4272020-04-23 Tom de Vries <tdevries@suse.de>
428
429 PR symtab/25807
430 * block.c (best_symbol, better_symbol): Promote to external.
431 * block.h (best_symbol, better_symbol): Declare.
432 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
433 decl.
434
ecc6c606
TT
4352020-04-23 Tom Tromey <tromey@adacore.com>
436
437 PR ada/25837:
438 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
439 "const char *", not a "const std::string &".
440 <name_and_matcher::operator==>: Update.
441 * unittests/lookup_name_info-selftests.c: Change type of
442 "result".
443
740480b8
TT
4442020-04-23 Tom Tromey <tom@tromey.com>
445
446 * inferior.h (iterate_over_inferiors): Don't declare.
447 * inferior.c (iterate_over_inferiors): Remove.
448 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
449 Remove.
450 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
451 use iterate_over_inferiors.
452 (darwin_resume_inferior_it)
453 (struct resume_inferior_threads_param)
454 (darwin_resume_inferior_threads_it): Remove.
455 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
456
ae3ab1f0
TV
4572020-04-23 Tom de Vries <tdevries@suse.de>
458
459 * blockframe.c (find_pc_partial_function): Use
460 find_pc_sect_compunit_symtab rather than
461 objfile->sf->qf->find_pc_sect_compunit_symtab.
462
317d2668
TV
4632020-04-22 Tom de Vries <tdevries@suse.de>
464
465 PR symtab/25764
466 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
467 in psymtabs.
468
eea9e357
TV
4692020-04-22 Tom de Vries <tdevries@suse.de>
470
471 PR symtab/25801
472 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
473 symtabs.
474
3d5afab3
TV
4752020-04-22 Tom de Vries <tdevries@suse.de>
476
477 PR symtab/25700
478 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
479 CU if already created.
480
d43b7a2d
TBA
4812020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
482
483 * infrun.c (displaced_step_fixup): Switch to the event_thread
484 before calling displaced_step_restore, not after.
485
d89edf9b
MM
4862020-04-21 Markus Metzger <markus.t.metzger@intel.com>
487
488 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
489 its inferior is not recorded by us.
490 (record_btrace_target_open): Replace call to
491 all_non_exited_threads () with call to current_inferior
492 ()->non_exited_threads ().
493 (record_btrace_target::stop_recording): Likewise.
494 (record_btrace_target::close): Likewise.
495 (record_btrace_target::wait): Likewise.
496 (record_btrace_target::record_stop_replaying): Likewise.
497
5897fd49
MM
4982020-04-21 Markus Metzger <markus.t.metzger@intel.com>
499
500 * btrace.c (btrace_enable): Throw an error on double enables and
501 when enabling recording fails.
502 (btrace_disable): Throw an error if the thread is not recorded.
503
1a476b6d
MM
5042020-04-21 Markus Metzger <markus.t.metzger@intel.com>
505
506 * record-btrace.c (record_btrace_target::fetch_registers): Forward
507 request if we do not have a thread_info.
508
4778a5f8
TV
5092020-04-21 Tom de Vries <tdevries@suse.de>
510
511 PR gdb/25471
512 * thread.c
513 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
514 exception in get_frame_id.
515
0fa7617d
TT
5162020-04-20 Tom Tromey <tromey@adacore.com>
517
518 * python/python.c (struct gdbpy_event): Mark move constructor as
519 noexcept.
520 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
521 constructor as noexcept.
522 * completer.h (struct completion_result): Mark move constructor as
523 noexcept.
524 * completer.c (completion_result::completion_result): Use
525 initialization style. Don't call reset_match_list.
526
ad23bda0
MS
5272020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
528
529 * MAINTAINERS (Write After Approval): Add myself.
530
45e1f031
TT
5312020-04-18 Tom Tromey <tom@tromey.com>
532
533 * windows-tdep.c (init_w32_command_list)
534 (w32_prefix_command_valid): Restore.
535 (_initialize_windows_tdep): Call init_w32_command_list.
536
08feed99
TT
5372020-04-18 Tom Tromey <tom@tromey.com>
538
539 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
540 * value.c (value_fn_field): Update.
541 * valops.c (find_function_in_inferior)
542 (value_allocate_space_in_inferior): Update.
543 * tui/tui-winsource.c (tui_update_source_windows_with_line):
544 Update.
545 * tui/tui-source.c (tui_source_window::set_contents): Update.
546 * symtab.c (lookup_global_or_static_symbol)
547 (find_function_start_sal_1, skip_prologue_sal)
548 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
549 * symmisc.c (dump_msymbols, dump_symtab_1)
550 (maintenance_print_one_line_table): Update.
551 * symfile.c (init_entry_point_info, section_is_mapped)
552 (list_overlays_command, simple_read_overlay_table)
553 (simple_overlay_update_1): Update.
554 * stap-probe.c (handle_stap_probe): Update.
555 * stabsread.c (dbx_init_float_type, define_symbol)
556 (read_one_struct_field, read_enum_type, read_range_type): Update.
557 * source.c (info_line_command): Update.
558 * python/python.c (gdbpy_source_objfile_script)
559 (gdbpy_execute_objfile_script): Update.
560 * python/py-type.c (save_objfile_types): Update.
561 * python/py-objfile.c (py_free_objfile): Update.
562 * python/py-inferior.c (python_new_objfile): Update.
563 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
564 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
565 (maintenance_check_psymtabs): Update.
566 * printcmd.c (info_address_command): Update.
567 * objfiles.h (struct objfile) <arch>: New method, from
568 get_objfile_arch.
569 (get_objfile_arch): Don't declare.
570 * objfiles.c (get_objfile_arch): Remove.
571 (filter_overlapping_sections): Update.
572 * minsyms.c (msymbol_is_function): Update.
573 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
574 (output_nondebug_symbol): Update.
575 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
576 (mdebug_expand_psymtab): Update.
577 * machoread.c (macho_add_oso_symfile): Update.
578 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
579 Update.
580 * linux-fork.c (checkpoint_command): Update.
581 * linespec.c (convert_linespec_to_sals): Update.
582 * jit.c (finalize_symtab): Update.
583 * infrun.c (insert_exception_resume_from_probe): Update.
584 * ia64-tdep.c (ia64_find_unwind_table): Update.
585 * hppa-tdep.c (internalize_unwinds): Update.
586 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
587 Update.
588 * gcore.c (call_target_sbrk): Update.
589 * elfread.c (record_minimal_symbol, elf_symtab_read)
590 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
591 (elf_gnu_ifunc_resolve_by_got): Update.
592 * dwarf2/read.c (create_addrmap_from_index)
593 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
594 (read_debug_names_from_section)
595 (process_psymtab_comp_unit_reader, add_partial_symbol)
596 (add_partial_subprogram, process_full_comp_unit)
597 (read_file_scope, read_func_scope, read_lexical_block_scope)
598 (read_call_site_scope, dwarf2_ranges_read)
599 (dwarf2_record_block_ranges, dwarf2_add_field)
600 (mark_common_block_symbol_computed, read_tag_pointer_type)
601 (read_tag_string_type, dwarf2_init_float_type)
602 (dwarf2_init_complex_target_type, read_base_type)
603 (partial_die_info::read, partial_die_info::read)
604 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
605 (dwarf2_fetch_die_loc_sect_off): Update.
606 * dwarf2/loc.c (dwarf2_find_location_expression)
607 (class dwarf_evaluate_loc_desc, rw_pieced_value)
608 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
609 (dwarf2_loc_desc_get_symbol_read_needs)
610 (locexpr_describe_location_piece, locexpr_describe_location_1)
611 (loclist_describe_location): Update.
612 * dwarf2/index-write.c (write_debug_names): Update.
613 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
614 * dtrace-probe.c (dtrace_process_dof): Update.
615 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
616 (process_one_symbol): Update.
617 * ctfread.c (ctf_init_float_type, read_base_type): Update.
618 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
619 (coff_read_enum_type): Update.
620 * cli/cli-cmds.c (edit_command, list_command): Update.
621 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
622 * breakpoint.c (create_overlay_event_breakpoint)
623 (create_longjmp_master_breakpoint)
624 (create_std_terminate_master_breakpoint)
625 (create_exception_master_breakpoint, get_sal_arch): Update.
626 * block.c (block_gdbarch): Update.
627 * annotate.c (annotate_source_line): Update.
628
0743fc83
TT
6292020-04-17 Tom Tromey <tromey@adacore.com>
630
631 * auto-load.c (show_auto_load_cmd): Remove.
632 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
633 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
634 (maintenance_print_arc_command): Remove.
635 * tui/tui-win.c (tui_command): Remove.
636 (tui_get_cmd_list): Use add_basic_prefix_cmd.
637 * tui/tui-layout.c (tui_layout_command): Remove.
638 (_initialize_tui_layout): Use add_basic_prefix_cmd.
639 * python/python.c (user_set_python, user_show_python): Remove.
640 (_initialize_python): Use add_basic_prefix_cmd,
641 add_show_prefix_cmd.
642 * guile/guile.c (set_guile_command, show_guile_command): Remove.
643 (install_gdb_commands): Use add_basic_prefix_cmd,
644 add_show_prefix_cmd.
645 (info_guile_command): Remove.
646 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
647 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
648 add_show_prefix_cmd.
649 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
650 Remove do_set and do_show parameters.
651 * cli/cli-style.c (set_style, show_style): Remove.
652 (_initialize_cli_style): Use add_basic_prefix_cmd,
653 add_show_prefix_cmd.
654 (cli_style_option::add_setshow_commands): Remove do_set and
655 do_show parameters.
656 (cli_style_option::add_setshow_commands): Use
657 add_basic_prefix_cmd, add_show_prefix_cmd.
658 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
659 (set_style_name): Remove.
660 * cli/cli-dump.c (dump_command, append_command): Remove.
661 (srec_dump_command, ihex_dump_command, verilog_dump_command)
662 (tekhex_dump_command, binary_dump_command)
663 (binary_append_command): Remove.
664 (_initialize_cli_dump): Use add_basic_prefix_cmd.
665 * windows-tdep.c (w32_prefix_command_valid): Remove global.
666 (init_w32_command_list): Remove; move into ...
667 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
668 * valprint.c (set_print, show_print, set_print_raw)
669 (show_print_raw): Remove.
670 (_initialize_valprint): Use add_basic_prefix_cmd,
671 add_show_prefix_cmd.
672 * typeprint.c (set_print_type, show_print_type): Remove.
673 (_initialize_typeprint): Use add_basic_prefix_cmd,
674 add_show_prefix_cmd.
675 * record.c (set_record_command, show_record_command): Remove.
676 (_initialize_record): Use add_basic_prefix_cmd,
677 add_show_prefix_cmd.
678 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
679 add_show_prefix_cmd.
680 (info_command, show_command, set_debug, show_debug): Remove.
681 * top.h (set_history, show_history): Don't declare.
682 * top.c (set_history, show_history): Remove.
683 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
684 (unset_tdesc_cmd): Remove.
685 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
686 add_show_prefix_cmd.
687 * symtab.c (info_module_command): Remove.
688 (_initialize_symtab): Use add_basic_prefix_cmd.
689 * symfile.c (overlay_command): Remove.
690 (_initialize_symfile): Use add_basic_prefix_cmd.
691 * sparc64-tdep.c (info_adi_command): Remove.
692 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
693 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
694 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
695 add_show_prefix_cmd.
696 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
697 (_initialize_serial): Use add_basic_prefix_cmd,
698 add_show_prefix_cmd.
699 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
700 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
701 add_show_prefix_cmd.
702 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
703 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
704 add_show_prefix_cmd.
705 * riscv-tdep.c (show_riscv_command, set_riscv_command)
706 (show_debug_riscv_command, set_debug_riscv_command): Remove.
707 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
708 add_show_prefix_cmd.
709 * remote.c (remote_command, set_remote_cmd): Remove.
710 (_initialize_remote): Use add_basic_prefix_cmd.
711 * record-full.c (set_record_full_command)
712 (show_record_full_command): Remove.
713 (_initialize_record_full): Use add_basic_prefix_cmd,
714 add_show_prefix_cmd.
715 * record-btrace.c (cmd_set_record_btrace)
716 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
717 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
718 (cmd_show_record_btrace_pt): Remove.
719 (_initialize_record_btrace): Use add_basic_prefix_cmd,
720 add_show_prefix_cmd.
721 * ravenscar-thread.c (set_ravenscar_command)
722 (show_ravenscar_command): Remove.
723 (_initialize_ravenscar): Use add_basic_prefix_cmd,
724 add_show_prefix_cmd.
725 * mips-tdep.c (show_mips_command, set_mips_command)
726 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
727 add_show_prefix_cmd.
728 * maint.c (maintenance_command, maintenance_info_command)
729 (maintenance_check_command, maintenance_print_command)
730 (maintenance_set_cmd, maintenance_show_cmd): Remove.
731 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
732 add_show_prefix_cmd.
733 (show_per_command_cmd): Remove.
734 * maint-test-settings.c (maintenance_set_test_settings_cmd):
735 Remove.
736 (maintenance_show_test_settings_cmd): Remove.
737 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
738 add_show_prefix_cmd.
739 * maint-test-options.c (maintenance_test_options_command):
740 Remove.
741 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
742 * macrocmd.c (macro_command): Remove
743 (_initialize_macrocmd): Use add_basic_prefix_cmd.
744 * language.c (set_check, show_check): Remove.
745 (_initialize_language): Use add_basic_prefix_cmd,
746 add_show_prefix_cmd.
747 * infcmd.c (unset_command): Remove.
748 (_initialize_infcmd): Use add_basic_prefix_cmd.
749 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
750 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
751 add_show_prefix_cmd.
752 * go32-nat.c (go32_info_dos_command): Remove.
753 (_initialize_go32_nat): Use add_basic_prefix_cmd.
754 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
755 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
756 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
757 (_initialize_frame): Use add_basic_prefix_cmd,
758 add_show_prefix_cmd.
759 * dcache.c (set_dcache_command, show_dcache_command): Remove.
760 (_initialize_dcache): Use add_basic_prefix_cmd,
761 add_show_prefix_cmd.
762 * cp-support.c (maint_cplus_command): Remove.
763 (_initialize_cp_support): Use add_basic_prefix_cmd.
764 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
765 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
766 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
767 add_basic_prefix_cmd, add_show_prefix_cmd.
768 * breakpoint.c (save_command): Remove.
769 (_initialize_breakpoint): Use add_basic_prefix_cmd.
770 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
771 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
772 add_show_prefix_cmd.
773 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
774 (set_ada_command, show_ada_command): Remove.
775 (_initialize_ada_language): Use add_basic_prefix_cmd,
776 add_show_prefix_cmd.
777 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
778
3557f442
KR
7792020-04-16 Kamil Rytarowski <n54@gmx.com>
780
781 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
782 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
783
16197208
SM
7842020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
785
786 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
787 warning messages.
788
00ac85d3
SM
7892020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
790
791 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
792 import table is not at beginning of .idata section.
793
381ce63f
PA
7942020-04-16 Pedro Alves <palves@redhat.com>
795
796 * inferior.c (delete_inferior): Use delete operator directly
797 instead of delete_program_space.
798 * progspace.c (add_program_space): New, factored out from
799 program_space::program_space.
800 (remove_program_space): New, factored out from
801 delete_program_space.
802 (program_space::program_space): Remove intro comment. Rewrite.
803 (program_space::~program_space): Remove intro comment. Call
804 remove_program_space.
805 (delete_program_space): Delete.
806 * progspace.h (program_space::program_space): Make explicit. Move
807 intro comment here, adjusted.
808 (program_space::~program_space): Move intro comment here,
809 adjusted.
810 (delete_program_space): Remove.
811
a010605f
TT
8122020-04-16 Tom Tromey <tromey@adacore.com>
813
814 * windows-nat.c (windows_nat::handle_access_violation): New
815 function.
816 * nat/windows-nat.h (handle_access_violation): Declare.
817 * nat/windows-nat.c (handle_exception): Move Cygwin code to
818 windows-nat.c. Call handle_access_violation.
819
efba5c23
TV
8202020-04-16 Tom de Vries <tdevries@suse.de>
821
822 PR symtab/25791
823 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
824 CUs without psymtab.
825
97ed802d
KB
8262020-04-16 Kevin Buettner <kevinb@redhat.com>
827
828 * python/python.c (do_start_initialization): Don't call
829 PyEval_InitThreads for Python 3.9 and beyond.
830
c7d64809
KR
8312020-04-15 Kamil Rytarowski <n54@gmx.com>
832
833 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
834 thread functions.
835 (obsd_nat_target::wait): Likewise.
836
ce127a96
TT
8372020-04-15 Tom Tromey <tromey@adacore.com>
838
839 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
840 (DEBUG_EXCEPT): Use debug_printf.
841
99f1bc6a
AB
8422020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
843
844 * completer.c (class completion_tracker::completion_hash_entry)
845 <hash_name>: New member function.
846 (completion_tracker::discard_completions): New callback to hash a
847 completion_hash_entry, pass this to htab_create_alloc.
848
a0e9b532
JT
8492016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
850
851 * windows-nat.c (windows_make_so): Warn rather than stopping with
852 an error if realpath() fails.
853
06ca5dd4
KR
8542020-04-14 Kamil Rytarowski <n54@gmx.com>
855
856 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
857 (nbsd_nat_target::info_proc): Add do_status.
858
194d088f
TV
8592020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
860 Tom de Vries <tdevries@suse.de>
861
862 PR symtab/25718
863 * psympriv.h (struct partial_symtab::read_symtab)
864 (struct partial_symtab::expand_psymtab)
865 (struct partial_symtab::read_dependencies): Update comments.
866 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
867 read_symtab for includer.
868 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
869 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
870 (struct dwarf2_include_psymtab::m_readin): Remove.
871 (struct dwarf2_include_psymtab::includer): New member function.
872 (dwarf2_psymtab::expand_psymtab): Assert !readin.
873
c1a66c06
TV
8742020-04-14 Tom de Vries <tdevries@suse.de>
875
876 PR symtab/25720
877 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
878 with NULL symbol_matcher and lookup_name.
879 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
880 and lookup_name.
881 * dwarf2/read.c (dw2_expand_symtabs_matching)
882 (dw2_debug_names_expand_symtabs_matching): Same.
883 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
884 Make lookup_name a pointer. Update comment.
885 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
886 lookup_name being a pointer.
887 * symfile.c (expand_symtabs_matching): Same.
888 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
889 * linespec.c (iterate_over_all_matching_symtabs): Same.
890
400b5eca
TT
8912020-04-13 Tom Tromey <tom@tromey.com>
892
893 * run-on-main-thread.c: Update include.
894 * unittests/main-thread-selftests.c: Update include.
895 * tui/tui-win.c: Update include.
896 * tui/tui-io.c: Update include.
897 * tui/tui-interp.c: Update include.
898 * tui/tui-hooks.c: Update include.
899 * top.h: Update include.
900 * top.c: Update include.
901 * ser-base.c: Update include.
902 * remote.c: Update include.
903 * remote-notif.c: Update include.
904 * remote-fileio.c: Update include.
905 * record-full.c: Update include.
906 * record-btrace.c: Update include.
907 * python/python.c: Update include.
908 * posix-hdep.c: Update include.
909 * mingw-hdep.c: Update include.
910 * mi/mi-main.c: Update include.
911 * mi/mi-interp.c: Update include.
912 * main.c: Update include.
913 * linux-nat.c: Update include.
914 * interps.c: Update include.
915 * infrun.c: Update include.
916 * inf-loop.c: Update include.
917 * event-top.c: Update include.
918 * event-loop.c: Move to ../gdbsupport/.
919 * event-loop.h: Move to ../gdbsupport/.
920 * async-event.h: Update include.
921 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
922
93b54c8e
TT
9232020-04-13 Tom Tromey <tom@tromey.com>
924
925 * tui/tui-win.c: Include async-event.h.
926 * remote.c: Include async-event.h.
927 * remote-notif.c: Include async-event.h.
928 * record-full.c: Include async-event.h.
929 * record-btrace.c: Include async-event.h.
930 * infrun.c: Include async-event.h.
931 * event-top.c: Include async-event.h.
932 * event-loop.h: Move some declarations to async-event.h.
933 * event-loop.c: Don't include ser-event.h or top.h. Move some
934 code to async-event.c.
935 * async-event.h: New file.
936 * async-event.c: New file.
937 * Makefile.in (COMMON_SFILES): Add async-event.c.
938 (HFILES_NO_SRCDIR): Add async-event.h.
939
c1cd3163
TT
9402020-04-13 Tom Tromey <tom@tromey.com>
941
942 * utils.c (flush_streams): New function.
943 * event-loop.c (gdb_wait_for_event): Call flush_streams.
944
29f2bf4f
TT
9452020-04-13 Tom Tromey <tom@tromey.com>
946
947 * event-loop.c (handle_file_event): Use warning, not
948 printf_unfiltered.
949
98029d02
TT
9502020-04-13 Tom Tromey <tom@tromey.com>
951
952 * event-loop.c: Include <chrono>.
953
06cc9596
TT
9542020-04-13 Tom Tromey <tom@tromey.com>
955
956 * gdb_select.h: Move to ../gdbsupport/.
957 * event-loop.c: Update include path.
958 * top.c: Update include path.
959 * ser-base.c: Update include path.
960 * ui-file.c: Update include path.
961 * ser-tcp.c: Update include path.
962 * guile/scm-ports.c: Update include path.
963 * posix-hdep.c: Update include path.
964 * ser-unix.c: Update include path.
965 * gdb_usleep.c: Update include path.
966 * mingw-hdep.c: Update include path.
967 * inflow.c: Update include path.
968 * infrun.c: Update include path.
969 * event-top.c: Update include path.
970
8ae8e197
TT
9712020-04-13 Tom Tromey <tom@tromey.com>
972
973 * configure: Rebuild.
974 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
975
58cf28e8
TT
9762020-04-13 Tom Tromey <tom@tromey.com>
977
978 * event-loop.h (start_event_loop): Don't declare.
979 * event-loop.c (start_event_loop): Move...
980 * main.c (start_event_loop): ...here. Now static.
981
b7f999ae
SDJ
9822020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
983
984 * MAINTAINERS: Update my email address.
985
1085dfd4
KR
9862020-04-12 Kamil Rytarowski <n54@gmx.com>
987
988 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
989 IP_ALL.
990
49d1d1f5
KR
9912020-04-12 Kamil Rytarowski <n54@gmx.com>
992
993 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
aac66a4c 994 (nbsd_nat_target::info_proc): Add do_cmdline.
49d1d1f5 995
b4848d2a
KR
9962020-04-12 Kamil Rytarowski <n54@gmx.com>
997
998 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
aac66a4c 999 (nbsd_nat_target::info_proc): Add do_cwd.
b4848d2a 1000
51c133d5
KR
10012020-04-12 Kamil Rytarowski <n54@gmx.com>
1002
1003 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
1004
54b8cbd0
KR
10052020-04-11 Kamil Rytarowski <n54@gmx.com>
1006
1007 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
1008 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
1009 (nbsd_nat_target::info_proc): New functions.
1010 * nbsd-nat.c (kinfo_get_vmmap): New function.
1011 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
1012 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
1013 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
1014 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
1015 functions.
1016 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
1017 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
1018 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
1019 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
1020 (KINFO_VME_FLAG_GROWS_DOWN): New.
1021
cf83625d
AS
10222020-04-10 Artur Shepilko <nomadbyte@gmail.com>
1023
1024 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
1025 bit shift.
1026
0c4311ab
TT
10272020-04-10 Tom Tromey <tromey@adacore.com>
1028
1029 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
1030
3e65b3e9
TT
10312020-04-10 Tom Tromey <tromey@adacore.com>
1032
1033 * symtab.c (get_symbol_address, get_msymbol_address): Skip
1034 separate debug files.
1035
13302e95
HD
10362020-04-10 Hannes Domani <ssbssa@yahoo.de>
1037
1038 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
1039 Move to...
1040 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
1041 ... here.
1042 * windows-nat.c (windows_nat_target::get_windows_debug_event):
1043 Check for STATUS_WX86_BREAKPOINT.
1044 (windows_nat_target::wait): Same.
1045
bdfc1e8a
TV
10462020-04-10 Tom de Vries <tdevries@suse.de>
1047
1048 PR cli/25808
1049 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
1050
f4460aec
SM
10512020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
1052
1053 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
1054 (Write After Approval): Remove Tom de Vries.
1055
a25198bb
BE
10562020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
1057
1058 revert partially:
1059 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
1060
aac66a4c
SM
1061 * buildsym.c (record_line): Fix undefined behavior and preserve
1062 lines at eof.
a25198bb 1063
206c98a6
KR
10642020-04-09 Kamil Rytarowski <n54@gmx.com>
1065
1066 * auxv.h (svr4_auxv_parse): New.
1067 * auxv.c (default_auxv_parse): Split into default_auxv_parse
1068 and generic_auxv_parse.
1069 (svr4_auxv_parse): Add.
1070 * obsd-tdep.c: Include "auxv.h".
1071 (obsd_auxv_parse): Remove.
1072 (obsd_init_abi): Remove comment.
1073 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
1074 from `obsd_auxv_parse' to `svr4_auxv_parse'.
1075 * nbsd-tdep.c: Include "auxv.h".
1076 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
1077
71fbdbaf
TT
10782020-04-08 Tom Tromey <tromey@adacore.com>
1079
1080 * nat/windows-nat.h (last_wait_event): Don't declare.
1081 (wait_for_debug_event): Update comment.
1082 * nat/windows-nat.c (last_wait_event): Now static.
1083
2c1d95e8
TT
10842020-04-08 Tom Tromey <tromey@adacore.com>
1085
1086 * windows-nat.c (wait_for_debug_event): Move to
1087 nat/windows-nat.c.
1088 * nat/windows-nat.h (wait_for_debug_event): Declare.
1089 * nat/windows-nat.c (wait_for_debug_event): Move from
1090 windows-nat.c. No longer static.
1091
d2977bc4
TT
10922020-04-08 Tom Tromey <tromey@adacore.com>
1093
1094 * windows-nat.c (get_windows_debug_event): Use
1095 fetch_pending_stop.
1096 * nat/windows-nat.h (fetch_pending_stop): Declare.
1097 * nat/windows-nat.c (fetch_pending_stop): New function.
1098
e758e19c
TT
10992020-04-08 Tom Tromey <tromey@adacore.com>
1100
1101 * windows-nat.c (windows_continue): Use matching_pending_stop and
1102 continue_last_debug_event.
1103 * nat/windows-nat.h (matching_pending_stop)
1104 (continue_last_debug_event): Declare.
1105 * nat/windows-nat.c (DEBUG_EVENTS): New define.
1106 (matching_pending_stop, continue_last_debug_event): New
1107 functions.
1108
8d30e395
TT
11092020-04-08 Tom Tromey <tromey@adacore.com>
1110
1111 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
1112 (handle_exception_result): Move to nat/windows-nat.h.
1113 (DEBUG_EXCEPTION_SIMPLE): Remove.
1114 (windows_nat::handle_ms_vc_exception): New function.
1115 (handle_exception): Move to nat/windows-nat.c.
1116 (get_windows_debug_event): Update.
1117 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
1118 nat/windows-nat.c.
1119 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
1120 (handle_exception_result): Move from windows-nat.c.
1121 (handle_exception): Declare.
1122 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
1123 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
1124 windows-nat.c.
1125
29de418d
TT
11262020-04-08 Tom Tromey <tromey@adacore.com>
1127
1128 * windows-nat.c (exception_count, event_count): Remove.
1129 (handle_exception, get_windows_debug_event)
1130 (do_initial_windows_stuff): Update.
1131
a816ba18
TT
11322020-04-08 Tom Tromey <tromey@adacore.com>
1133
1134 * windows-nat.c (windows_nat::handle_load_dll)
1135 (windows_nat::handle_unload_dll): Rename. No longer static.
1136 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
1137 Declare.
1138
a00caa12
TT
11392020-04-08 Tom Tromey <tromey@adacore.com>
1140
1141 * complaints.h (stop_whining): Declare at top-level.
1142 (complaint): Don't declare stop_whining.
1143
d41b524f
TT
11442020-04-08 Tom Tromey <tromey@adacore.com>
1145
1146 * windows-nat.c (windows_nat::handle_output_debug_string):
1147 Rename. No longer static.
1148 * nat/windows-nat.h (handle_output_debug_string): Declare.
1149
3c76026d
TT
11502020-04-08 Tom Tromey <tromey@adacore.com>
1151
1152 * windows-nat.c (current_process_handle, current_process_id)
1153 (main_thread_id, last_sig, current_event, last_wait_event)
1154 (current_windows_thread, desired_stop_thread_id, pending_stops)
1155 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
1156 (display_selectors, fake_create_process)
1157 (get_windows_debug_event): Update.
1158 * nat/windows-nat.h (current_process_handle, current_process_id)
1159 (main_thread_id, last_sig, current_event, last_wait_event)
1160 (current_windows_thread, desired_stop_thread_id, pending_stops)
1161 (struct pending_stop, siginfo_er): Move from windows-nat.c.
1162 * nat/windows-nat.c (current_process_handle, current_process_id)
1163 (main_thread_id, last_sig, current_event, last_wait_event)
1164 (current_windows_thread, desired_stop_thread_id, pending_stops)
1165 (siginfo_er): New globals. Move from windows-nat.c.
1166
9d8679cc
TT
11672020-04-08 Tom Tromey <tromey@adacore.com>
1168
1169 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
1170 (handle_load_dll): Update.
1171 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
1172
28688adf
TT
11732020-04-08 Tom Tromey <tromey@adacore.com>
1174
1175 * windows-nat.c (enum thread_disposition_type): Move to
1176 nat/windows-nat.h.
1177 (windows_nat::thread_rec): Rename from thread_rec. No longer
1178 static.
1179 (windows_add_thread, windows_nat_target::fetch_registers)
1180 (windows_nat_target::store_registers, handle_exception)
1181 (windows_nat_target::resume, get_windows_debug_event)
1182 (windows_nat_target::get_tib_address)
1183 (windows_nat_target::thread_name)
1184 (windows_nat_target::thread_alive): Update.
1185 * nat/windows-nat.h (enum thread_disposition_type): Move from
1186 windows-nat.c.
1187 (thread_rec): Declare.
1188
4834dad0
TT
11892020-04-08 Tom Tromey <tromey@adacore.com>
1190
1191 * windows-nat.c: Add "using namespace".
1192 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
1193 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
1194
65bafd5b
TT
11952020-04-08 Tom Tromey <tromey@adacore.com>
1196
1197 * nat/windows-nat.h (struct windows_thread_info): Declare
1198 destructor.
1199 * nat/windows-nat.c (~windows_thread_info): New.
1200
0a4afda3
TT
12012020-04-08 Tom Tromey <tromey@adacore.com>
1202
1203 PR gdb/22992
1204 * windows-nat.c (current_event): Update comment.
1205 (last_wait_event, desired_stop_thread_id): New globals.
1206 (struct pending_stop): New.
1207 (pending_stops): New global.
1208 (windows_nat_target) <stopped_by_sw_breakpoint>
1209 <supports_stopped_by_sw_breakpoint>: New methods.
1210 (windows_fetch_one_register): Add assertions. Adjust PC.
1211 (windows_continue): Handle pending stops. Suspend other threads
1212 when stepping. Use last_wait_event
1213 (wait_for_debug_event): New function.
1214 (get_windows_debug_event): Use wait_for_debug_event. Handle
1215 pending stops. Queue spurious stops.
1216 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
1217 (windows_nat_target::kill): Use wait_for_debug_event.
1218 * nat/windows-nat.h (struct windows_thread_info)
1219 <stopped_at_software_breakpoint>: New field.
1220 * nat/windows-nat.c (windows_thread_info::resume): Clear
1221 stopped_at_software_breakpoint.
1222
8e61ebec
TT
12232020-04-08 Tom Tromey <tromey@adacore.com>
1224
1225 * windows-nat.c (enum thread_disposition_type): New.
1226 (thread_rec): Replace "get_context" parameter with "disposition";
1227 change type.
1228 (windows_add_thread, windows_nat_target::fetch_registers)
1229 (windows_nat_target::store_registers, handle_exception)
1230 (windows_nat_target::resume, get_windows_debug_event)
1231 (windows_nat_target::get_tib_address)
1232 (windows_nat_target::thread_name)
1233 (windows_nat_target::thread_alive): Update.
1234
98a03287
TT
12352020-04-08 Tom Tromey <tromey@adacore.com>
1236
1237 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
1238 (windows_continue): Use windows_continue::resume.
1239 * nat/windows-nat.h (struct windows_thread_info) <suspend,
1240 resume>: Declare new methods.
1241 * nat/windows-nat.c: New file.
1242 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
1243
7c7411bc
TT
12442020-04-08 Tom Tromey <tromey@adacore.com>
1245
1246 * windows-nat.c (windows_add_thread, windows_delete_thread)
1247 (windows_nat_target::fetch_registers)
1248 (windows_nat_target::store_registers, fake_create_process)
1249 (windows_nat_target::resume, windows_nat_target::resume)
1250 (get_windows_debug_event, windows_nat_target::wait)
1251 (windows_nat_target::pid_to_str)
1252 (windows_nat_target::get_tib_address)
1253 (windows_nat_target::get_ada_task_ptid)
1254 (windows_nat_target::thread_name)
1255 (windows_nat_target::thread_alive): Use lwp, not tid.
1256
2950fdf7
TT
12572020-04-08 Tom Tromey <tromey@adacore.com>
1258
1259 * windows-nat.c (handle_exception)
1260 (windows_nat_target::thread_name): Update.
1261 * nat/windows-nat.h (windows_thread_info): Remove destructor.
1262 <name>: Now unique_xmalloc_ptr.
1263
62fe396b
TT
12642020-04-08 Tom Tromey <tromey@adacore.com>
1265
1266 * windows-nat.c (thread_rec)
1267 (windows_nat_target::fetch_registers): Update.
1268 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
1269 Update comment.
1270 <debug_registers_changed, reload_context>: Now bool.
1271
e9534bd2
TT
12722020-04-08 Tom Tromey <tromey@adacore.com>
1273
1274 * windows-nat.c (windows_add_thread): Use new.
1275 (windows_init_thread_list, windows_delete_thread): Use delete.
1276 (get_windows_debug_event): Update.
1277 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
1278 destructor, and initializers.
1279
ae1f8880
TT
12802020-04-08 Tom Tromey <tromey@adacore.com>
1281
1282 * windows-nat.c (struct windows_thread_info): Remove.
1283 * nat/windows-nat.h: New file.
1284
55a1e039
TT
12852020-04-08 Tom Tromey <tromey@adacore.com>
1286
1287 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
1288 (thread_rec, windows_add_thread, windows_delete_thread)
1289 (windows_continue): Update.
1290
93366324
TT
12912020-04-08 Tom Tromey <tromey@adacore.com>
1292
1293 * windows-nat.c (struct windows_thread_info): Remove typedef.
1294 (thread_head): Remove.
1295 (thread_list): New global.
1296 (thread_rec, windows_add_thread, windows_init_thread_list)
1297 (windows_delete_thread, windows_continue): Update.
1298
0f2265e2
SM
12992020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
1300
1301 * windows-tdep.h (windows_init_abi): Add comment.
1302 (cygwin_init_abi): New declaration.
1303 * windows-tdep.c: Split signal enumeration in two, one for
1304 Windows and one for Cygwin.
1305 (windows_gdb_signal_to_target): Only deal with signal of the
1306 Windows OS ABI.
1307 (cygwin_gdb_signal_to_target): New function.
1308 (windows_init_abi): Rename to windows_init_abi_common, don't set
1309 gdb_signal_to_target gdbarch method. Add new new function with
1310 this name.
1311 (cygwin_init_abi): New function.
1312 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
1313 comment. Don't call windows_init_abi.
1314 (amd64_windows_init_abi): Add comment, call windows_init_abi.
1315 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
1316 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
1317 i386_windows_init_abi_common, don't call windows_init_abi. Add
1318 a new function of this name.
1319 (i386_cygwin_init_abi): New function.
1320 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
1321 OS ABI Cygwin.
1322
3810f182
SM
13232020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
1324
1325 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
1326 parameter.c.
1327 (dwarf2_read_gdb_index): Update.
1328
063f8e80
KR
13292020-04-07 Kamil Rytarowski <n54@gmx.com>
1330
1331 * nbsd-tdep.c: Include "objfiles.h".
1332 (nbsd_skip_solib_resolver): New.
1333 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
1334
85a9510c 13352020-04-07 Nitika Achra <Nitika.Achra@amd.com>
1336
1337 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
1338 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
1339 with DW_LLE_base_addressx are being emitted in DWARFv5.
1340 Add the newly added kind DW_LOC_OFFSET_PAIR also.
1341 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
1342 unsigned integer.
1343
9fc3eaae 13442020-04-07 Nitika Achra <Nitika.Achra@amd.com>
1345
1346 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
1347 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
1348 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
1349 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
1350 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
1351 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
1352 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
1353
1354
41144253 13552020-04-07 Nitika Achra <Nitika.Achra@amd.com>
1356
1357 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
1358 (read_loclist_index): New function definition.
1359 (lookup_loclist_base): New function definition.
1360 (read_loclist_header): New function definition.
1361 (dwarf2_cu): Add loclist_base and loclist_header field.
1362 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
1363 (read_full_die_1): Read the value of DW_AT_loclists_base.
1364 (read_attribute_reprocess): Handle DW_FORM_loclistx.
1365 (read_attribute_value): Handle DW_FORM_loclistx.
1366 (skip_one_die): Handle DW_FORM_loclistx.
1367 (loclist_header): New structure declaration.
1368 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
1369
9f4e76a4
SM
13702020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
1371
1372 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
1373 constructor. Remove `addr` parameter from other constructor and
1374 add `per_cu` parameter.
1375 * dwarf2/read.c (create_partial_symtab): Update.
1376
25c11aca
TV
13772020-04-07 Tom de Vries <tdevries@suse.de>
1378
1379 PR symtab/25796
1380 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
1381 (partial_die_info::fixup): Inherit has_const_value.
1382
5707e24b
TV
13832020-04-07 Tom de Vries <tdevries@suse.de>
1384
1385 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
1386 symbols without address.
1387
05f00e22
KR
13882020-04-06 Kamil Rytarowski <n54@gmx.com>
1389
1390 * nbsd-nat.h (struct thread_info): Add forward declaration.
1391 (nbsd_nat_target::thread_alive): Add.
1392 (nbsd_nat_target::thread_name): Likewise.
1393 (nbsd_nat_target::update_thread_list): Likewise.
1394 (update_thread_list::post_attach): Likewise.
1395 (post_attach::pid_to_str): Likewise.
1396 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
1397 (nbsd_thread_lister): Add.
1398 (nbsd_nat_target::thread_alive): Likewise.
1399 (nbsd_nat_target::thread_name): Likewise.
1400 (nbsd_add_threads): Likewise.
1401 (update_thread_list::post_attach): Likewise.
1402 (nbsd_nat_target::update_thread_list): Likewise.
1403 (post_attach::pid_to_str): Likewise.
1404
6ee448cc
TT
14052020-04-06 Tom Tromey <tromey@adacore.com>
1406
1407 * ada-valprint.c (print_variant_part): Extract the variant field.
1408 (print_field_values): Use the field as the outer value when
1409 recursing.
1410
dea34e8c
TT
14112020-04-06 Tom Tromey <tromey@adacore.com>
1412
1413 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
1414 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
1415 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
1416 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
1417 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
1418
93689ce9
TT
14192020-04-06 Tom Tromey <tromey@adacore.com>
1420
1421 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
1422 TYPE_CODE_ERROR.
1423
79743962
KR
14242020-04-06 Kamil Rytarowski <n54@gmx.com>
1425
1426 * nbsd-tdep.c: Include "gdbarch.h".
1427 Define enum with NetBSD signal numbers.
1428 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
1429 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
1430 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
1431 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
1432 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
1433 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
1434 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
1435 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
1436 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
1437 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
1438 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
1439 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
1440
9e7c9a03
HD
14412020-04-03 Hannes Domani <ssbssa@yahoo.de>
1442
1443 PR gdb/25325
1444 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
1445
d9e49b61
TT
14462020-04-03 Tom Tromey <tromey@adacore.com>
1447
1448 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
1449 Read constant block.
1450
e0fc5c3f
SM
14512020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
1452
1453 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
1454 (gdb_bfd_get_full_section_contents): New declaration.
1455 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
1456 * windows-tdep.c (is_linked_with_cygwin_dll): Use
1457 gdb_bfd_get_full_section_contents.
1458
e2ff18a0
SM
14592020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
1460
1461 * exec.c (build_section_table): Replace internal_error with
1462 gdb_assert.
1463 (section_table_xfer_memory_partial): Likewise.
1464 * mdebugread.c (parse_partial_symbols): Likewise.
1465 * psymtab.c (lookup_partial_symbol): Likewise.
1466 * utils.c (wrap_here): Likewise.
1467
0830d301
TT
14682020-04-02 Tom Tromey <tromey@adacore.com>
1469
1470 * f-lang.c (build_fortran_types): Use arch_type to initialize
1471 builtin_complex_s32 in the TYPE_CODE_ERROR case.
1472
e7da7f8f
TT
14732020-04-02 Tom Tromey <tromey@adacore.com>
1474
1475 * dwarf2/read.c (partial_die_info::read): Do not create a vector
1476 of attributes.
1477
c90d28ac
AB
14782020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
1479 Bernd Edlinger <bernd.edlinger@hotmail.de>
1480 Tom Tromey <tromey@adacore.com>
1481
1482 * buildsym.c (buildsym_compunit::record_line): Remove
1483 deduplication code.
1484
1aa98955
TV
14852020-04-02 Tom de Vries <tdevries@suse.de>
1486
1487 PR ada/24671
1488 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
1489
d3214198
TV
14902020-04-02 Tom de Vries <tdevries@suse.de>
1491
1492 * dwarf2/read.c (dwarf2_gdb_index_functions,
1493 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
1494 NULL.
1495 * psymtab.c (psym_lookup_global_symbol_language): New function.
1496 (psym_functions): Init psym_lookup_global_symbol_language with
1497 psym_lookup_global_symbol_language.
1498 * symfile-debug.c (debug_sym_quick_functions): Init
1499 lookup_global_symbol_language with NULL.
1500 * symfile.c (set_initial_language): Remove fixme comment.
1501 * symfile.h (struct quick_symbol_functions): Add
1502 lookup_global_symbol_language.
1503 * symtab.c (find_quick_global_symbol_language): New function.
1504 (find_main_name): Use find_quick_global_symbol_language.
1505
2836752f
SM
15062020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
1507
1508 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
1509
64dc2d4b
BE
15102020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
1511
1512 * buildsym.c (record_line): Fix undefined behavior and preserve
1513 lines at eof.
1514
bbe3dc41
BE
15152020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
1516
1517 * buildsym.c (record_line): Fix the resizing condition.
1518
6b4a335b
TT
15192020-04-01 Tom Tromey <tom@tromey.com>
1520
1521 * value.h (value_literal_complex): Add comment.
1522 * valops.c (value_literal_complex): Refer to value.h.
1523
3638a098
TT
15242020-04-01 Tom Tromey <tom@tromey.com>
1525
1526 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
1527 (scalar_type): New rule, from typebase.
1528 (typebase): Use scalar_type. Recognize complex types.
1529 (field_name): Handle FLOAT_KEYWORD.
1530 (ident_tokens): Add _Complex and __complex__.
1531
c34e8714
TT
15322020-04-01 Tom Tromey <tom@tromey.com>
1533
1534 PR exp/25299:
1535 * valarith.c (promotion_type, complex_binop): New functions.
1536 (scalar_binop): Handle complex numbers. Use promotion_type.
1537 (value_pos, value_neg, value_complement): Handle complex numbers.
1538
fa649bb7
TT
15392020-04-01 Tom Tromey <tom@tromey.com>
1540
1541 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
1542 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
1543 (parse_number): Handle complex numbers.
1544
981c08ce
TT
15452020-04-01 Tom Tromey <tom@tromey.com>
1546
1547 * c-valprint.c (c_decorations): Change complex suffix to "i".
1548
4c99290d
TT
15492020-04-01 Tom Tromey <tom@tromey.com>
1550
1551 * valprint.c (generic_value_print_complex): Use accessors.
1552 * value.h (value_real_part, value_imaginary_part): Declare.
1553 * valops.c (value_real_part, value_imaginary_part): New
1554 functions.
1555 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
1556
5b930b45
TT
15572020-04-01 Tom Tromey <tom@tromey.com>
1558
1559 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
1560 (read_range_type): Update.
1561 * mdebugread.c (basic_type): Update.
1562 * go-lang.c (build_go_types): Use init_complex_type.
1563 * gdbtypes.h (struct main_type) <complex_type>: New member.
1564 (init_complex_type): Update.
1565 (arch_complex_type): Don't declare.
1566 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
1567 Make name if none given. Use alloc_type_copy. Look for cached
1568 complex type.
1569 (arch_complex_type): Remove.
1570 (gdbtypes_post_init): Use init_complex_type.
1571 * f-lang.c (build_fortran_types): Use init_complex_type.
1572 * dwarf2/read.c (read_base_type): Update.
1573 * d-lang.c (build_d_types): Use init_complex_type.
1574 * ctfread.c (read_base_type): Update.
1575
53cccef1
TBA
15762020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1577
1578 * infrun.c (stop_all_threads): Update assertion, plus when
1579 stopping threads, take into account that we might be trying
1580 to stop an all-stop target.
1581 (stop_waiting): Call 'stop_all_threads' if there exists a
1582 non-stop target.
1583
a0714d30
TBA
15842020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1585
1586 * target.h (exists_non_stop_target): New function declaration.
1587 * target.c (exists_non_stop_target): New function.
1588
60e22c1e
HD
15892020-04-01 Hannes Domani <ssbssa@yahoo.de>
1590
1591 PR gdb/24789
1592 * eval.c (is_integral_or_integral_reference): New function.
1593 (evaluate_subexp_standard): Allow integer references in
1594 pointer arithmetic.
1595
e139a727
TBA
15962020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1597
1598 * remote.c (remote_target::remote_parse_stop_reply): Remove the
1599 check for no ptid in the stop reply when the target is non-stop.
1600
e0802d59
TT
16012020-04-01 Tom Tromey <tromey@adacore.com>
1602
1603 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
1604 "name" parameter to rvalue reference. Initialize m_name_holder.
1605 <lookup_name_info>: New overloads.
1606 <name>: Return gdb::string_view.
1607 <c_str>: New method.
1608 <make_ignore_params>: Update.
1609 <search_name_hash>: Update.
1610 <language_lookup_name>: Return const char *.
1611 <m_name>: Change type.
1612 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
1613 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
1614 (lookup_name_info::match_any): Update.
1615 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
1616 Update.
1617 * minsyms.c (linkage_name_str): Update.
1618 * language.c (default_symbol_name_matcher): Update.
1619 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
1620 Update.
1621 * ada-lang.c (ada_fold_name): Change parameter to string_view.
1622 (ada_lookup_name_info::ada_lookup_name_info): Update.
1623 (literal_symbol_name_matcher): Update.
1624
8c072cb6
TT
16252020-04-01 Tom Tromey <tromey@adacore.com>
1626
1627 * psymtab.c (psymtab_search_name): Remove function.
1628 (psym_lookup_symbol): Create search name and lookup name here.
1629 (lookup_partial_symbol): Remove "name" parameter; add
1630 lookup_name.
1631 (psym_expand_symtabs_for_function): Update.
1632
6f29a534
TT
16332020-03-31 Joel Jones <joelkevinjones@gmail.com>
1634
1635 PR tui/25597:
1636 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
1637
af62665e
TT
16382020-03-31 Tom Tromey <tromey@adacore.com>
1639
1640 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
1641 memcpy.
1642
d1a89da5
NC
16432020-03-30 Nelson Chu <nelson.chu@sifive.com>
1644
1645 * features/riscv/32bit-csr.xml: Regenerated.
1646 * features/riscv/64bit-csr.xml: Regenerated.
1647
d8af9068
TT
16482020-03-30 Tom Tromey <tromey@adacore.com>
1649
1650 * ada-valprint.c (print_variant_part): Update.
1651 * ada-lang.h (ada_which_variant_applies): Update.
1652 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
1653 outer_valaddr parameters; replace with "outer" value parameter.
1654 (to_fixed_variant_branch_type): Update.
1655
227c0bf4
PFC
16562020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1657
1658 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
1659 <list>. Remove inclusion of observable.h.
1660 (PPC_DEBUG_CURRENT_VERSION): Move up define.
1661 (struct arch_lwp_info): New struct.
1662 (class ppc_linux_dreg_interface): New class.
1663 (struct ppc_linux_process_info): New struct.
1664 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
1665 <low_new_clone, low_forget_process, low_prepare_to_resume>
1666 <copy_thread_dreg_state, mark_thread_stale>
1667 <mark_debug_registers_changed, register_hw_breakpoint>
1668 <clear_hw_breakpoint, register_wp, clear_wp>
1669 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
1670 <num_memory_accesses, get_trigger_type>
1671 <create_watchpoint_request, hwdebug_point_cmp>
1672 <init_arch_lwp_info, get_arch_lwp_info>
1673 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
1674 methods.
1675 <struct ptid_hash>: New inner struct.
1676 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
1677 members.
1678 (saved_dabr_value, hwdebug_info, max_slots_number)
1679 (struct hw_break_tuple, struct thread_points, ppc_threads)
1680 (have_ptrace_hwdebug_interface)
1681 (hwdebug_find_thread_points_by_tid)
1682 (hwdebug_insert_point, hwdebug_remove_point): Remove.
1683 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
1684 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
1685 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
1686 use m_dreg_interface.
1687 (hwdebug_point_cmp): Change to...
1688 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
1689 reference arguments instead of pointers.
1690 (ppc_linux_nat_target::ranged_break_num_registers): Use
1691 m_dreg_interface.
1692 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
1693 m_dreg_interface. Call register_hw_breakpoint.
1694 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
1695 m_dreg_interface. Call clear_hw_breakpoint.
1696 (get_trigger_type): Change to...
1697 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
1698 comment.
1699 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
1700 use m_dreg_interface. Call register_hw_breakpoint.
1701 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
1702 use m_dreg_interface. Call clear_hw_breakpoint.
1703 (can_use_watchpoint_cond_accel): Change to...
1704 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
1705 method. Update comment, use m_dreg_interface and
1706 m_process_info.
1707 (calculate_dvc): Change to...
1708 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
1709 m_dreg_interface.
1710 (num_memory_accesses): Change to...
1711 (ppc_linux_nat_target::num_memory_accesses): ...this method.
1712 (check_condition): Change to...
1713 (ppc_linux_nat_target::check_condition): ...this method.
1714 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
1715 comment, use m_dreg_interface.
1716 (create_watchpoint_request): Change to...
1717 (ppc_linux_nat_target::create_watchpoint_request): ...this
1718 method. Use m_dreg_interface.
1719 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
1720 m_dreg_interface. Call register_hw_breakpoint or register_wp.
1721 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
1722 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
1723 (ppc_linux_nat_target::low_forget_process)
1724 (ppc_linux_nat_target::low_new_fork)
1725 (ppc_linux_nat_target::low_new_clone)
1726 (ppc_linux_nat_target::low_delete_thread)
1727 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
1728 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
1729 only call mark_thread_stale.
1730 (ppc_linux_thread_exit): Remove.
1731 (ppc_linux_nat_target::stopped_data_address): Change to...
1732 (ppc_linux_nat_target::low_stopped_data_address): This. Add
1733 comment, use m_dreg_interface and m_thread_hw_breakpoints.
1734 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
1735 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
1736 comment. Call low_stopped_data_address.
1737 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
1738 m_dreg_interface.
1739 (ppc_linux_nat_target::masked_watch_num_registers): Use
1740 m_dreg_interface.
1741 (ppc_linux_nat_target::copy_thread_dreg_state)
1742 (ppc_linux_nat_target::mark_thread_stale)
1743 (ppc_linux_nat_target::mark_debug_registers_changed)
1744 (ppc_linux_nat_target::register_hw_breakpoint)
1745 (ppc_linux_nat_target::clear_hw_breakpoint)
1746 (ppc_linux_nat_target::register_wp)
1747 (ppc_linux_nat_target::clear_wp)
1748 (ppc_linux_nat_target::init_arch_lwp_info)
1749 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
1750 (_initialize_ppc_linux_nat): Remove observer callback.
1751
4db10d8f
PFC
17522020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1753
1754 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
1755 (ppc_linux_nat_target::auxv_parse)
1756 (ppc_linux_nat_target::read_description)
1757 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
1758 Move up.
1759
1310c1b0
PFC
17602020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1761
1762 * linux-nat.h (low_new_clone): New method.
1763 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
1764
69b037c3
SM
17652020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
1766
1767 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
1768 (dbx_expand_psymtab): ... this.
1769 (start_psymtab): Update.
1770 * mdebugread.c (psymtab_to_symtab_1): Rename to...
1771 (mdebug_expand_psymtab): ... this.
1772 (parse_partial_symbols): Update.
1773 (new_psymtab): Update.
1774 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
1775 (xcoff_expand_psymtab): ... this.
1776 (xcoff_start_psymtab): Update.
1777
48993951
SM
17782020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
1779
1780 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
1781 <expand_dependencies>: ... this.
1782 * psymtab.c (partial_symtab::read_dependencies): Rename to...
1783 (partial_symtab::expand_dependencies): ... this.
1784 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
1785 Update.
1786 (dwarf2_psymtab::expand_psymtab): Update.
1787 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
1788 * mdebugread.c (psymtab_to_symtab_1): Update.
1789 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
1790
3ad83046
SM
17912020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
1792
1793 * psympriv.h (discard_psymtab): Remove.
1794 * dbxread.c (dbx_end_psymtab): Update.
1795 * xcoffread.c (xcoff_end_psymtab): Update.
1796
4d1b9ab6
TT
17972020-03-28 Tom Tromey <tom@tromey.com>
1798
1799 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
1800 comment.
1801
f1749218
TT
18022020-03-28 Tom Tromey <tom@tromey.com>
1803
1804 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
1805
ebea7626
HD
18062020-03-27 Hannes Domani <ssbssa@yahoo.de>
1807
1808 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
1809
a879b4d5
JB
18102020-03-26 John Baldwin <jhb@FreeBSD.org>
1811
1812 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
1813
0826b30a
TT
18142020-03-26 Tom Tromey <tom@tromey.com>
1815
1816 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
1817 (mark_common_block_symbol_computed, read_tag_string_type)
1818 (attr_to_dynamic_prop, read_subrange_type): Update.
1819 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
1820 to be methods on struct attribute.
1821 (skip_one_die, process_imported_unit_die, read_namespace_alias)
1822 (read_call_site_scope, partial_die_info::read)
1823 (partial_die_info::read, lookup_die_type, follow_die_ref):
1824 Update.
1825 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
1826 from dwarf2_get_ref_die_offset.
1827 (attribute::constant_value): New method, from
1828 dwarf2_get_attr_constant_value.
1829 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
1830 Declare method.
1831 <constant_value>: New method.
1832
2b2558bf
TT
18332020-03-26 Tom Tromey <tom@tromey.com>
1834
1835 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
1836 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
1837 (dwarf_type_encoding_name): Move to stringify.c.
1838 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
1839 * dwarf2/stringify.c: New file.
1840 * dwarf2/stringify.h: New file.
1841
eeb64781
TT
18422020-03-26 Tom Tromey <tom@tromey.com>
1843
1844 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
1845 Rewrite.
1846
a39fdb41
TT
18472020-03-26 Tom Tromey <tom@tromey.com>
1848
1849 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
1850 methods.
1851 * dwarf2/read.c (lookup_addr_base): Move to die.h.
1852 (lookup_ranges_base): Likewise.
1853 (read_cutu_die_from_dwo, read_full_die_1): Update.
1854
436c571c
TT
18552020-03-26 Tom Tromey <tom@tromey.com>
1856
1857 * dwarf2/read.c (read_import_statement, read_file_scope)
1858 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
1859 (read_lexical_block_scope, read_call_site_scope)
1860 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
1861 (handle_struct_member_die, process_structure_scope)
1862 (update_enumeration_type_from_children)
1863 (process_enumeration_scope, read_array_type, read_common_block)
1864 (read_namespace, read_module, read_subroutine_type): Update.
1865 (sibling_die): Remove.
1866
052c8bb8
TT
18672020-03-26 Tom Tromey <tom@tromey.com>
1868
1869 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
1870 (build_type_psymtabs_reader, read_structure_type)
1871 (read_enumeration_type, read_full_die_1): Update.
1872 (dwarf2_attr_no_follow): Move to die.h.
1873 * dwarf2/die.h (struct die_info) <attr>: New method.
1874
2b24b6e4
TT
18752020-03-26 Tom Tromey <tom@tromey.com>
1876
1877 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
1878 <base_address>: Now an optional.
1879 (dwarf2_find_base_address, dwarf2_rnglists_process)
1880 (dwarf2_ranges_process, fill_in_loclist_baton)
1881 (dwarf2_symbol_mark_computed): Update.
1882
c2d50fd0
TT
18832020-03-26 Tom Tromey <tom@tromey.com>
1884
1885 * dwarf2/read.c (struct die_info): Move to die.h.
1886 * dwarf2/die.h: New file.
1887
0df7ad3a
TT
18882020-03-26 Tom Tromey <tom@tromey.com>
1889
1890 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
1891 * dwarf2/read.c
1892 (dwarf2_statement_list_fits_in_line_number_section_complaint):
1893 Move to line-header.c.
1894 (read_checked_initial_length_and_offset, read_formatted_entries):
1895 Likewise.
1896 (dwarf_decode_line_header): Split into two.
1897 * dwarf2/line-header.c
1898 (dwarf2_statement_list_fits_in_line_number_section_complaint):
1899 Move from read.c.
1900 (read_checked_initial_length_and_offset, read_formatted_entries):
1901 Likewise.
1902 (dwarf_decode_line_header): New function, split from read.c.
1903
86c0bb4c
TT
19042020-03-26 Tom Tromey <tom@tromey.com>
1905
1906 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
1907 Declare method.
1908 * dwarf2/read.c (read_attribute_value): Update.
1909 (dwarf2_per_objfile::read_line_string): Rename from
1910 read_indirect_line_string.
1911 (read_formatted_entries): Update.
1912
2ef46c2f
TT
19132020-03-26 Tom Tromey <tom@tromey.com>
1914
1915 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
1916 variable.
1917
4f9c1eda
TT
19182020-03-26 Tom Tromey <tom@tromey.com>
1919
1920 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
1921 const.
1922 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
1923 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
1924 parameter const.
1925
5a0e026f
TT
19262020-03-26 Tom Tromey <tom@tromey.com>
1927
1928 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
1929 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
1930 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
1931 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
1932
8844c11b
TT
19332020-03-26 Tom Tromey <tom@tromey.com>
1934
1935 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
1936 file_names_size, file_full_name, file_file_name>: Use const.
1937 <file_name_at, file_names>: Add const overload.
1938 * dwarf2/line-header.c (line_header::file_file_name)
1939 (line_header::file_full_name): Update.
1940
c90ec28a
TT
19412020-03-26 Tom Tromey <tom@tromey.com>
1942
1943 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
1944 (macro_start_file, consume_improper_spaces)
1945 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
1946 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
1947 (dwarf_decode_macros): Move to macro.c.
1948 * dwarf2/macro.c: New file.
1949 * dwarf2/macro.h: New file.
1950 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
1951
4f44ae6c
TT
19522020-03-26 Tom Tromey <tom@tromey.com>
1953
1954 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
1955 method.
1956 * dwarf2/section.c: New method. From
1957 read_indirect_string_at_offset_from.
1958 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
1959 (read_indirect_string_at_offset_from): Move to section.c.
1960 (read_indirect_string_at_offset): Rewrite.
1961 (read_indirect_line_string_at_offset): Remove.
1962 (read_indirect_string, read_indirect_line_string)
1963 (dwarf_decode_macro_bytes): Update.
1964
a0194fa8
TT
19652020-03-26 Tom Tromey <tom@tromey.com>
1966
1967 * dwarf2/section.h (struct dwarf2_section_info)
1968 <overload_complaint>: Declare.
1969 (dwarf2_section_buffer_overflow_complaint): Don't declare.
1970 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
1971 Rename from dwarf2_section_buffer_overflow_complaint.
1972 * dwarf2/read.c (skip_one_die, partial_die_info::read)
1973 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
1974
3d27bbdb
TT
19752020-03-26 Tom Tromey <tom@tromey.com>
1976
1977 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
1978 Declare.
1979 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
1980 Move from read.c.
1981 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
1982 to section.c.
1983
9eac9650
TT
19842020-03-26 Tom Tromey <tom@tromey.com>
1985
1986 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
1987
bf80d710
TT
19882020-03-26 Tom Tromey <tom@tromey.com>
1989
1990 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
1991 "builder".
1992 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
1993 parameter.
1994 (dwarf_decode_macros): Update.
1995
0314b390
TT
19962020-03-26 Tom Tromey <tom@tromey.com>
1997
1998 * dwarf2/read.c (read_attribute_value): Update.
1999 (read_indirect_string_from_dwz): Move to dwz.c; change into
2000 method.
2001 (dwarf_decode_macro_bytes): Update.
2002 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
2003 * dwarf2/dwz.c: New file.
2004 * Makefile.in (COMMON_SFILES): Add dwz.c.
2005
9fda78b6
TT
20062020-03-26 Tom Tromey <tom@tromey.com>
2007
2008 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
2009 * dwarf2/read.c: Add include.
2010 * dwarf2/index-write.c: Add include.
2011 * dwarf2/index-cache.c: Add include.
2012 * dwarf2/dwz.h: New file.
2013
33aa3c10
TT
20142020-03-25 Tom Tromey <tom@tromey.com>
2015
2016 * compile/compile-object-load.c (get_out_value_type): Mention
2017 correct symbol name in error message.
2018
d503b685
HD
20192020-03-25 Hannes Domani <ssbssa@yahoo.de>
2020
2021 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
2022
7b1eff95
TV
20232020-03-25 Tom de Vries <tdevries@suse.de>
2024
2025 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
2026 * symmisc.c (dump_symtab_1): Print user and includes fields.
2027 (maintenance_info_symtabs): Same.
2028
dd895392
AB
20292020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
2030
2031 PR gdb/25534
2032 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
2033 (riscv_regcache_cooked_write): New function.
2034 (riscv_push_dummy_call): Use new function.
2035 (riscv_return_value): Likewise.
2036
5ab2fbf1
SM
20372020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
2038
2039 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
2040 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
2041 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
2042 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
2043 * infrun.c (follow_fork): Likewise.
2044 (follow_fork_inferior): Likewise.
2045 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
2046 * linux-nat.h (class linux_nat_target): Likewise.
2047 * remote.c (class remote_target) <follow_fork>: Likewise.
2048 (remote_target::follow_fork): Likewise.
2049 * target-delegates.c: Re-generate.
2050 * target.c (default_follow_fork): Likewise.
2051 (target_follow_fork): Likewise.
2052 * target.h (struct target_ops) <follow_fork>: Likewise.
2053 (target_follow_fork): Likewise.
2054
a64fafb5
TV
20552020-03-24 Tom de Vries <tdevries@suse.de>
2056
2057 * psymtab.c (maintenance_info_psymtabs): Print user field.
2058
fe26d3a3
TT
20592020-03-20 Tom Tromey <tromey@adacore.com>
2060
2061 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
2062 const.
2063 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
2064 const.
2065
c884cc46
SM
20662020-03-20 Simon Marchi <simon.marchi@efficios.com>
2067
2068 * ptrace.m4: Don't check for ptrace declaration.
2069 * config.in: Re-generate.
2070 * configure: Re-generate.
2071 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
2072 not defined.
2073
1ff700c2
KR
20742020-03-20 Kamil Rytarowski <n54@gmx.com>
2075
2076 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
2077 `PTRACE_TYPE_RET'.
2078 * i386-bsd-nat.c (gdb_ptrace): Likewise.
2079 * sparc-nat.c (gdb_ptrace): Likewise.
2080 * x86-bsd-nat.c (gdb_ptrace): Likewise.
2081
f7d4f0b1
TT
20822020-03-20 Tom Tromey <tromey@adacore.com>
2083
2084 * c-exp.y (lex_one_token): Fix assert.
2085
f67210ff
TT
20862020-03-20 Tom Tromey <tromey@adacore.com>
2087
2088 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
2089 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
2090 strncpy call.
2091
1773be9e
TT
20922020-03-20 Tom Tromey <tromey@adacore.com>
2093
2094 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
2095
70304be9
TT
20962020-03-20 Tom Tromey <tromey@adacore.com>
2097
2098 * ada-valprint.c (print_variant_part): Remove parameters; switch
2099 to value-based API.
2100 (print_field_values): Likewise.
2101 (ada_val_print_struct_union): Likewise.
2102 (ada_value_print_1): Update.
2103
9faa006d
KR
21042020-03-20 Kamil Rytarowski <n54@gmx.com>
2105
2106 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
2107 nbsd_nat_target instead of inf_ptrace_target.
2108 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
2109 nbsd_nat_target.
2110
4a90f062
KR
21112020-03-20 Kamil Rytarowski <n54@gmx.com>
2112
2113 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
2114 it to the ptrace call.
2115 * (store_registers): Likewise.
2116
21172020-03-20 Kamil Rytarowski <n54@gmx.com>
c7da12c7
KR
2118
2119 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
2120 it to the ptrace call.
2121 * (store_registers): Likewise.
2122
2d07da27
LM
21232020-03-19 Luis Machado <luis.machado@linaro.org>
2124
2125 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
2126 valid, fetch vg value from ptrace.
2127
f09db380
KR
21282020-03-19 Kamil Rytarowski <n54@gmx.com>
2129 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
2130 * inf-ptrace.c: Likewise.
2131 * (gdb_ptrace): Add.
2132 * (inf_ptrace_target::resume): Update.
2133 * (inf_ptrace_target::xfer_partial): Likewise.
2134 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
2135 * (inf_ptrace_peek_poke): Update.
2136
fcc7376e
KR
21372020-03-19 Kamil Rytarowski <n54@gmx.com>
2138
2139 * x86-bsd-nat.c (gdb_ptrace): New.
2140 * (x86bsd_dr_set): Add new argument `ptid'.
2141 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
2142 x86bsd_dr_set_addr): Update.
2143
cada5fc9
AB
21442020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
2145
2146 * remote.c (remote_target::process_stop_reply): Handle events for
2147 all threads differently.
2148
19a2740f
AB
21492020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
2150
2151 * completer.c (completion_tracker::remove_completion): Define new
2152 function.
2153 * completer.h (completion_tracker::remove_completion): Declare new
2154 function.
2155 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
2156 when adding a C++ function symbol.
2157
724fd9ba
AB
21582020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
2159
2160 * completer.c (completion_tracker::completion_hash_entry): Define
2161 new class.
2162 (advance_to_filename_complete_word_point): Call
2163 recompute_lowest_common_denominator.
2164 (completion_tracker::completion_tracker): Call discard_completions
2165 to setup the hash table.
2166 (completion_tracker::discard_completions): Allow for being called
2167 from the constructor, pass new equal function, and element deleter
2168 when constructing the hash table. Initialise new class member
2169 variables.
2170 (completion_tracker::maybe_add_completion): Remove use of
2171 m_entries_vec, and store more information into m_entries_hash.
2172 (completion_tracker::recompute_lcd_visitor): New function, most
2173 content taken from...
2174 (completion_tracker::recompute_lowest_common_denominator):
2175 ...here, this now just visits each item in the hash calling the
2176 above visitor.
2177 (completion_tracker::build_completion_result): Remove use of
2178 m_entries_vec, call recompute_lowest_common_denominator.
2179 * completer.h (completion_tracker::have_completions): Remove use
2180 of m_entries_vec.
2181 (completion_tracker::completion_hash_entry): Declare new class.
2182 (completion_tracker::recompute_lowest_common_denominator): Change
2183 function signature.
2184 (completion_tracker::recompute_lcd_visitor): Declare new function.
2185 (completion_tracker::m_entries_vec): Delete.
2186 (completion_tracker::m_entries_hash): Initialize to NULL.
2187 (completion_tracker::m_lowest_common_denominator_valid): New
2188 member variable.
2189 (completion_tracker::m_lowest_common_denominator_max_length): New
2190 member variable.
2191
5a82b8a1
KR
21922020-03-17 Kamil Rytarowski <n54@gmx.com>
2193
2194 * regformats/regdef.h: Put reg in gdb namespace.
2195
fb516a69
KR
21962020-03-17 Kamil Rytarowski <n54@gmx.com>
2197
2198 * i386-bsd-nat.c (gdb_ptrace): New.
2199 * (i386bsd_fetch_inferior_registers,
2200 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
2201 * (i386bsd_fetch_inferior_registers,
2202 i386bsd_store_inferior_registers) Use gdb_ptrace.
2203
1c0aa1fb
KR
22042020-03-17 Kamil Rytarowski <n54@gmx.com>
2205
2206 * amd64-bsd-nat.c (gdb_ptrace): New.
2207 * (amd64bsd_fetch_inferior_registers,
2208 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
2209 * (amd64bsd_fetch_inferior_registers,
2210 amd64bsd_store_inferior_registers) Use gdb_ptrace.
2211
5ccd2fb7
KR
22122020-03-17 Kamil Rytarowski <n54@gmx.com>
2213
2214 * user-regs.c (user_reg::read): Rename to...
2215 (user_reg::xread): ...this.
2216 * (append_user_reg): Rename argument `read' to `xread'.
2217 * (user_reg_add_builtin): Likewise.
2218 * (user_reg_add): Likewise.
2219 * (value_of_user_reg): Likewise.
2220
2108a63a
KR
22212020-03-17 Kamil Rytarowski <n54@gmx.com>
2222
2223 * sparc-nat.c (gdb_ptrace): New.
2224 * sparc-nat.c (sparc_fetch_inferior_registers)
2225 (sparc_store_inferior_registers) Remove obsolete comment.
2226 * sparc-nat.c (sparc_fetch_inferior_registers)
2227 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
2228 * sparc-nat.c (sparc_fetch_inferior_registers)
2229 (sparc_store_inferior_registers) Use gdb_ptrace.
2230
a225c9a8
KR
22312020-03-17 Kamil Rytarowski <n54@gmx.com>
2232
2233 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
2234 it to the ptrace call.
2235 * sh-nbsd-nat.c (store_registers): Likewise.
2236
98097623
KR
22372020-03-17 Kamil Rytarowski <n54@gmx.com>
2238
2239 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
2240 nbsd_nat_target instead of inf_ptrace_target.
2241 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
2242 nbsd_nat_target.
2243
9e38d619
KR
22442020-03-17 Kamil Rytarowski <n54@gmx.com>
2245
2246 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
2247
a2ecbe9f
KR
22482020-03-17 Kamil Rytarowski <n54@gmx.com>
2249
2250 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
2251 <sys/sysctl.h>.
2252 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
2253
58990295
TV
22542020-03-17 Tom de Vries <tdevries@suse.de>
2255
2256 PR gdb/23710
2257 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
2258 fields.
2259 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
2260 fields.
2261 (process_imported_unit_die): Skip import of c++ CUs.
2262
771dd3a8
TT
22632020-03-16 Tom Tromey <tom@tromey.com>
2264
2265 * p-valprint.c (pascal_object_print_value): Initialize
2266 base_value.
2267
817a7585
AK
22682020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
2269 Shahab Vahedi <shahab@synopsys.com>
2270
2271 * Makefile.in: Add arch/arc.o
2272 * configure.tgt: Likewise.
2273 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
2274 (_initialize_arc_tdep): Don't initialize old target descriptions.
aac66a4c 2275 (arc_read_description): New function to cache target descriptions.
817a7585
AK
2276 * arc-tdep.h (arc_read_description): Add proto type.
2277 * arch/arc.c: New file.
2278 * arch/arc.h: Likewise.
2279 * features/Makefile: Replace old target descriptions with new.
2280 * features/arc-arcompact.c: Remove.
2281 * features/arc-arcompact.xml: Likewise.
2282 * features/arc-v2.c: Likewise
2283 * features/arc-v2.xml: Likewise
2284 * features/arc/aux-arcompact.xml: New file.
2285 * features/arc/aux-v2.xml: Likewise.
2286 * features/arc/core-arcompact.xml: Likewise.
2287 * features/arc/core-v2.xml: Likewise.
2288 * features/arc/aux-arcompact.c: Generate.
2289 * features/arc/aux-v2.c: Likewise.
2290 * features/arc/core-arcompact.c: Likewise.
2291 * features/arc/core-v2.c: Likewise.
2292 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
2293
67430cd0
TT
22942020-03-16 Tom Tromey <tromey@adacore.com>
2295
2296 PR gdb/25663:
2297 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
2298 putting value into bcache.
2299
30efb6c7
SM
23002020-03-16 Simon Marchi <simon.marchi@efficios.com>
2301
2302 PR gdb/21500
2303 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
2304 to...
2305 (amd64_windows_init_abi_common): ... this. Don't set size of
2306 long type.
2307 (amd64_windows_init_abi): New function.
2308 (amd64_cygwin_init_abi): New function.
2309 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
2310 the Cygwin OS ABI.
2311 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
2312 comment.
2313
8db52437
SM
23142020-03-16 Simon Marchi <simon.marchi@efficios.com>
2315
2316 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
2317 * windows-tdep.c (CYGWIN_DLL_NAME): New.
2318 (pe_import_directory_entry): New struct type.
2319 (is_linked_with_cygwin_dll): New function.
2320 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
2321 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
2322 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
2323
5982a56a
SM
23242020-03-16 Simon Marchi <simon.marchi@efficios.com>
2325
2326 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
2327 i386_cygwin_core_osabi_sniffer.
2328
7a1998df
SM
23292020-03-16 Simon Marchi <simon.marchi@efficios.com>
2330
2331 * i386-cygwin-tdep.c: Rename to...
2332 * i386-windows-tdep.c: ... this.
2333 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
2334 i386-windows-tdep.c.
2335 * configure.tgt: Likewise.
2336
053205cc
SM
23372020-03-16 Simon Marchi <simon.marchi@efficios.com>
2338
2339 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
2340 * osabi.c (gdb_osabi_names): Add "Windows".
2341 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
2342 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
2343 (i386_cygwin_core_osabi_sniffer): New function, extracted from
2344 i386_cygwin_osabi_sniffer.
2345 (_initialize_i386_cygwin_tdep): Register OS ABI
2346 GDB_OSABI_WINDOWS for i386.
2347 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
2348 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
2349 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
2350 for x86-64.
2351 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
2352 when the target matches '*-*-mingw*'.
2353
fe4b2ee6
SM
23542020-03-16 Simon Marchi <simon.marchi@efficios.com>
2355
2356 * defs.h (enum gdb_osabi): Move to...
2357 * osabi.h (enum gdb_osabi): ... here.
2358 * gdbarch.sh: Include osabi.h in gdbarch.h.
2359 * gdbarch.h: Re-generate.
2360
cb9b645d
SM
23612020-03-16 Simon Marchi <simon.marchi@efficios.com>
2362
2363 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
2364 function.
2365 (_initialize_amd64_windows_tdep): Register osabi sniffer.
2366
3293bbaf
TT
23672020-03-14 Tom Tromey <tom@tromey.com>
2368
2369 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
2370 for C++.
2371 (c_type_print_modifier): Likewise. Add "language" parameter.
2372 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
2373 (c_type_print_base_1): Update.
2374 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
2375 constants.
2376 * type-stack.c (type_stack::insert): Handle tp_atomic and
2377 tp_restrict.
2378 (type_stack::follow_type_instance_flags): Likewise.
2379 (type_stack::follow_types): Likewise. Merge type-following code.
2380 * c-exp.y (RESTRICT, ATOMIC): New tokens.
2381 (space_identifier, cv_with_space_id)
2382 (const_or_volatile_or_space_identifier_noopt)
2383 (const_or_volatile_or_space_identifier): Remove.
2384 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
2385 rules.
2386 (ptr_operator, typebase): Update.
2387 (enum token_flag) <FLAG_C>: New constant.
2388 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
2389 "_Atomic".
2390 (lex_one_token): Handle FLAG_C.
2391
154151a6
KR
23922020-03-14 Kamil Rytarowski <n54@gmx.com>
2393
2394 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
2395 it to the ptrace call.
2396 * m68k-bsd-nat.c (store_registers): Likewise.
2397
bc107784
KR
23982020-03-14 Kamil Rytarowski <n54@gmx.com>
2399
2400 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
2401 gdb_byte *.
2402 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
2403 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
2404 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
2405
01a80117
KR
24062020-03-14 Kamil Rytarowski <n54@gmx.com>
2407
2408 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
2409 nbsd_nat_target instead of inf_ptrace_target.
2410 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
2411 nbsd_nat_target.
2412
f90280ca
KR
24132020-03-14 Kamil Rytarowski <n54@gmx.com>
2414
2415 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
2416 register_t.
2417
6def66f1
KR
24182020-03-14 Kamil Rytarowski <n54@gmx.com>
2419
2420 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
2421 it to the ptrace call.
2422 * alpha-bsd-nat.c (store_registers): Likewise.
2423
66eaca97
KR
24242020-03-14 Kamil Rytarowski <n54@gmx.com>
2425
2426 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
2427 includes.
2428 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
2429 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
2430 fill_fpregset): Likewise.
2431
4fed520b
KR
24322020-03-14 Kamil Rytarowski <n54@gmx.com>
2433
2434 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
2435 nbsd_nat_target instead of inf_ptrace_target.
2436 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
2437 nbsd_nat_target.
2438
2190cf06
KR
24392020-03-14 Kamil Rytarowski <n54@gmx.com>
2440
2441 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
2442 register_t.
2443
75c56d3d
KR
24442020-03-14 Kamil Rytarowski <n54@gmx.com>
2445
2446 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
2447 it to the ptrace call.
2448 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
2449 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
2450 * arm-nbsd-nat.c (store_register): Likewise.
2451 * arm-nbsd-nat.c (store_regs): Likewise.
2452 * arm-nbsd-nat.c (store_fp_register): Likewise.
2453 * arm-nbsd-nat.c (store_fp_regs): Likewise.
2454
6018d381
KR
24552020-03-14 Kamil Rytarowski <n54@gmx.com>
2456
2457 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
2458 nbsd_nat_target instead of inf_ptrace_target.
2459 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
2460 nbsd_nat_target.
2461
013f99f0
KR
24622020-03-14 Kamil Rytarowski <n54@gmx.com>
2463
2464 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
2465 it to the ptrace call.
2466 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
2467
12753073
KR
24682020-03-14 Kamil Rytarowski <n54@gmx.com>
2469
6227b330
KR
2470 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
2471 it to the ptrace call.
2472 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
2473
24742020-03-14 Kamil Rytarowski <n54@gmx.com>
2475
2476 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
2477 gdb_byte *.
12753073
KR
2478 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
2479
d5be5fa4
KR
24802020-03-14 Kamil Rytarowski <n54@gmx.com>
2481
2482 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
2483 instead of inf_ptrace_target.
2484 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
2485 nbsd_nat_target.
2486
8110f842
KR
24872020-03-14 Kamil Rytarowski <n54@gmx.com>
2488
2489 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
2490 register_t.
2491
52feded7
KR
24922020-03-14 Kamil Rytarowski <n54@gmx.com>
2493
2494 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
2495 register_t.
2496
25567eee
KR
24972020-03-14 Kamil Rytarowski <n54@gmx.com>
2498
2499 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
2500 register_t.
2501
426a9c18
TT
25022020-03-13 Tom Tromey <tom@tromey.com>
2503
2504 * value.h (val_print): Don't declare.
2505 * valprint.h (val_print_array_elements)
2506 (val_print_scalar_formatted, generic_val_print): Don't declare.
2507 * valprint.c (generic_val_print_array): Take a struct value.
2508 (generic_val_print_ptr, generic_val_print_memberptr)
2509 (generic_val_print_bool, generic_val_print_int)
2510 (generic_val_print_char, generic_val_print_complex)
2511 (generic_val_print): Remove.
2512 (generic_value_print): Update.
2513 (do_val_print): Remove unused parameters. Don't call
2514 la_val_print.
2515 (val_print): Remove.
2516 (common_val_print): Update. Don't call value_check_printable.
2517 (val_print_scalar_formatted, val_print_array_elements): Remove.
2518 * rust-lang.c (rust_val_print): Remove.
2519 (rust_language_defn): Update.
2520 * p-valprint.c (pascal_val_print): Remove.
2521 (pascal_value_print_inner): Update.
2522 (pascal_object_print_val_fields, pascal_object_print_val):
2523 Remove.
2524 (pascal_object_print_static_field): Update.
2525 * p-lang.h (pascal_val_print): Don't declare.
2526 * p-lang.c (pascal_language_defn): Update.
2527 * opencl-lang.c (opencl_language_defn): Update.
2528 * objc-lang.c (objc_language_defn): Update.
2529 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
2530 * m2-lang.h (m2_val_print): Don't declare.
2531 * m2-lang.c (m2_language_defn): Update.
2532 * language.h (struct language_defn) <la_val_print>: Remove.
2533 * language.c (unk_lang_value_print_inner): Rename. Change
2534 argument types.
2535 (unknown_language_defn, auto_language_defn): Update.
2536 * go-valprint.c (go_val_print): Remove.
2537 * go-lang.h (go_val_print): Don't declare.
2538 * go-lang.c (go_language_defn): Update.
2539 * f-valprint.c (f_val_print): Remove.
2540 * f-lang.h (f_value_print): Don't declare.
2541 * f-lang.c (f_language_defn): Update.
2542 * d-valprint.c (d_val_print): Remove.
2543 * d-lang.h (d_value_print): Don't declare.
2544 * d-lang.c (d_language_defn): Update.
2545 * cp-valprint.c (cp_print_value_fields)
2546 (cp_print_value_fields_rtti, cp_print_value): Remove.
2547 (cp_print_static_field): Update.
2548 * c-valprint.c (c_val_print_array, c_val_print_ptr)
2549 (c_val_print_struct, c_val_print_union, c_val_print_int)
2550 (c_val_print_memberptr, c_val_print): Remove.
2551 * c-lang.h (c_val_print_array, cp_print_value_fields)
2552 (cp_print_value_fields_rtti): Don't declare.
2553 * c-lang.c (c_language_defn, cplus_language_defn)
2554 (asm_language_defn, minimal_language_defn): Update.
2555 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
2556 (ada_val_print_enum): Take a struct value.
2557 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
2558 (ada_val_print): Remove.
2559 (ada_value_print_1): Update.
2560 (printable_val_type): Remove.
2561 * ada-lang.h (ada_val_print): Don't declare.
2562 * ada-lang.c (ada_language_defn): Update.
2563
42331a1e
TT
25642020-03-13 Tom Tromey <tom@tromey.com>
2565
2566 * valprint.c (do_val_print): Update.
2567 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
2568 a struct value.
2569 (value_to_value_object_no_release): Declare.
2570 * python/py-value.c (value_to_value_object_no_release): New
2571 function.
2572 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
2573 struct value.
2574 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
2575 function.
2576 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
2577 a struct value.
2578 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
2579 Declare.
2580 (gdbscm_apply_val_pretty_printer): Take a struct value.
2581 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
2582 value.
2583 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
2584 value.
2585 * extension-priv.h (struct extension_language_ops)
2586 <apply_val_pretty_printer>: Take a struct value.
2587 * cp-valprint.c (cp_print_value): Create a struct value.
2588 (cp_print_value): Update.
2589
3a916a97
TT
25902020-03-13 Tom Tromey <tom@tromey.com>
2591
2592 * ada-valprint.c (print_field_values): Call common_val_print.
2593
b59eac37
TT
25942020-03-13 Tom Tromey <tom@tromey.com>
2595
2596 * ada-valprint.c (val_print_packed_array_elements): Remove
2597 bitoffset and val parameters. Call common_val_print.
2598 (ada_val_print_string): Remove offset, address, and original_value
2599 parameters.
2600 (ada_val_print_array): Update.
2601 (ada_value_print_array): New function.
2602 (ada_value_print_1): Call it.
2603
03371129
TT
26042020-03-13 Tom Tromey <tom@tromey.com>
2605
2606 * ada-valprint.c (ada_value_print): Use common_val_print.
2607
2e088f8b
TT
26082020-03-13 Tom Tromey <tom@tromey.com>
2609
2610 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
2611
39ef85a8
TT
26122020-03-13 Tom Tromey <tom@tromey.com>
2613
2614 * ada-valprint.c (ada_value_print_num): New function.
2615 (ada_value_print_1): Use it.
2616
b9fa6e07
TT
26172020-03-13 Tom Tromey <tom@tromey.com>
2618
2619 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
2620
416595d6
TT
26212020-03-13 Tom Tromey <tom@tromey.com>
2622
2623 * ada-valprint.c (ada_value_print_ptr): New function.
2624 (ada_value_print_1): Use it.
2625
5b5e15ec
TT
26262020-03-13 Tom Tromey <tom@tromey.com>
2627
2628 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
2629 call common_val_print.
2630 (ada_val_print_1): Update.
2631 (ada_value_print_1): New function.
2632 (ada_value_print_inner): Rewrite.
2633
fbf54e75
TT
26342020-03-13 Tom Tromey <tom@tromey.com>
2635
2636 * cp-valprint.c (cp_print_value_fields): Update.
2637 (cp_print_value): New function.
2638
64b653ca
TT
26392020-03-13 Tom Tromey <tom@tromey.com>
2640
2641 * m2-valprint.c (m2_value_print_inner): Use
2642 cp_print_value_fields.
2643 * cp-valprint.c (cp_print_value_fields): New function.
2644 * c-valprint.c (c_value_print_struct): New function.
2645 (c_value_print_inner): Use c_value_print_struct.
2646 * c-lang.h (cp_print_value_fields): Declare.
2647
6999f067
TT
26482020-03-13 Tom Tromey <tom@tromey.com>
2649
2650 * c-valprint.c (c_value_print_array): New function.
2651 (c_value_print_inner): Use it.
2652
ce80b8bd
TT
26532020-03-13 Tom Tromey <tom@tromey.com>
2654
2655 * c-valprint.c (c_value_print_memberptr): New function.
2656 (c_value_print_inner): Use it.
2657
2faac269
TT
26582020-03-13 Tom Tromey <tom@tromey.com>
2659
2660 * c-valprint.c (c_value_print_int): New function.
2661 (c_value_print_inner): Use it.
2662
da3e2c29
TT
26632020-03-13 Tom Tromey <tom@tromey.com>
2664
2665 * c-valprint.c (c_value_print_ptr): New function.
2666 (c_value_print_inner): Use it.
2667
50836231
TT
26682020-03-13 Tom Tromey <tom@tromey.com>
2669
2670 * c-valprint.c (c_value_print_inner): Rewrite.
2671
4f412b6e
TT
26722020-03-13 Tom Tromey <tom@tromey.com>
2673
2674 * valprint.c (generic_value_print_complex): New function.
2675 (generic_value_print): Use it.
2676
f5354008
TT
26772020-03-13 Tom Tromey <tom@tromey.com>
2678
2679 * valprint.c (generic_val_print_float): Don't call
2680 val_print_scalar_formatted.
2681 (generic_val_print, generic_value_print): Update.
2682
3eec3b05
TT
26832020-03-13 Tom Tromey <tom@tromey.com>
2684
2685 * valprint.c (generic_value_print_char): New function
2686 (generic_value_print): Use it.
2687
fdddfccb
TT
26882020-03-13 Tom Tromey <tom@tromey.com>
2689
2690 * valprint.c (generic_value_print_int): New function.
2691 (generic_value_print): Use it.
2692
6dde7521
TT
26932020-03-13 Tom Tromey <tom@tromey.com>
2694
2695 * valprint.c (generic_value_print_bool): New function.
2696 (generic_value_print): Use it.
2697
4112d2e6
TT
26982020-03-13 Tom Tromey <tom@tromey.com>
2699
2700 * valprint.c (generic_val_print_func): Simplify.
2701 (generic_val_print, generic_value_print): Update.
2702
65786af6
TT
27032020-03-13 Tom Tromey <tom@tromey.com>
2704
2705 * valprint.c (generic_val_print_flags): Remove.
2706 (generic_val_print, generic_value_print): Update.
2707 (val_print_type_code_flags): Add original_value parameter.
2708
40f3ce18
TT
27092020-03-13 Tom Tromey <tom@tromey.com>
2710
2711 * valprint.c (generic_val_print): Update.
2712 (generic_value_print): Update.
2713 * valprint.c (generic_val_print_enum): Don't call
2714 val_print_scalar_formatted.
2715
2a5b130b
TT
27162020-03-13 Tom Tromey <tom@tromey.com>
2717
2718 * valprint.c (generic_value_print): Call generic_value_print_ptr.
2719 * valprint.c (generic_value_print_ptr): New function.
2720
abc66ce9
TT
27212020-03-13 Tom Tromey <tom@tromey.com>
2722
2723 * valprint.c (generic_value_print): Rewrite.
2724
07a32858
TT
27252020-03-13 Tom Tromey <tom@tromey.com>
2726
2727 * p-valprint.c (pascal_object_print_value_fields)
2728 (pascal_object_print_value): New functions.
2729
64d64d3a
TT
27302020-03-13 Tom Tromey <tom@tromey.com>
2731
2732 * p-valprint.c (pascal_value_print_inner): Rewrite.
2733
6a95a1f5
TT
27342020-03-13 Tom Tromey <tom@tromey.com>
2735
2736 * f-valprint.c (f_value_print_innner): Rewrite.
2737
59fcdac6
TT
27382020-03-13 Tom Tromey <tom@tromey.com>
2739
2740 * m2-valprint.c (m2_print_unbounded_array): New overload.
2741 (m2_print_unbounded_array): Update.
2742 (m2_print_array_contents): Take a struct value.
2743 (m2_value_print_inner): Rewrite.
2744
d133c3e1
TT
27452020-03-13 Tom Tromey <tom@tromey.com>
2746
2747 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
2748 (d_value_print_inner): New function.
2749 * d-lang.h (d_value_print_inner): Declare.
2750 * d-lang.c (d_language_defn): Use d_value_print_inner.
2751
23b0f06b
TT
27522020-03-13 Tom Tromey <tom@tromey.com>
2753
2754 * go-valprint.c (go_value_print_inner): New function.
2755 * go-lang.h (go_value_print_inner): Declare.
2756 * go-lang.c (go_language_defn): Use go_value_print_inner.
2757
5f56f7cb
TT
27582020-03-13 Tom Tromey <tom@tromey.com>
2759
2760 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
2761 API.
2762 (rust_val_print): Rewrite.
2763 (rust_value_print_inner): New function, from rust_val_print.
2764 (rust_language_defn): Use rust_value_print_inner.
2765
26792ee0
TT
27662020-03-13 Tom Tromey <tom@tromey.com>
2767
2768 * ada-valprint.c (ada_value_print_inner): New function.
2769 * ada-lang.h (ada_value_print_inner): Declare.
2770 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
2771
24051bbe
TT
27722020-03-13 Tom Tromey <tom@tromey.com>
2773
2774 * f-valprint.c (f_value_print_innner): New function.
2775 * f-lang.h (f_value_print_innner): Declare.
2776 * f-lang.c (f_language_defn): Use f_value_print_innner.
2777
c0941be6
TT
27782020-03-13 Tom Tromey <tom@tromey.com>
2779
2780 * p-valprint.c (pascal_value_print_inner): New function.
2781 * p-lang.h (pascal_value_print_inner): Declare.
2782 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
2783
62c4663d
TT
27842020-03-13 Tom Tromey <tom@tromey.com>
2785
2786 * m2-valprint.c (m2_value_print_inner): New function.
2787 * m2-lang.h (m2_value_print_inner): Declare.
2788 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
2789
62182190
TT
27902020-03-13 Tom Tromey <tom@tromey.com>
2791
2792 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
2793 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
2794 * c-valprint.c (c_value_print_inner): New function.
2795 * c-lang.h (c_value_print_inner): Declare.
2796 * c-lang.c (c_language_defn, cplus_language_defn)
2797 (asm_language_defn, minimal_language_defn): Use
2798 c_value_print_inner.
2799
1e592a8a
TT
28002020-03-13 Tom Tromey <tom@tromey.com>
2801
2802 * p-valprint.c (pascal_object_print_value_fields): Now static.
2803 * p-lang.h (pascal_object_print_value_fields): Don't declare.
2804
7fe471e9
TT
28052020-03-13 Tom Tromey <tom@tromey.com>
2806
2807 * c-valprint.c (c_val_print_array): Simplify.
2808
d121c6ce
TT
28092020-03-13 Tom Tromey <tom@tromey.com>
2810
2811 * valprint.c (value_print_array_elements): New function.
2812 * valprint.h (value_print_array_elements): Declare.
2813
4dba70ee
TT
28142020-03-13 Tom Tromey <tom@tromey.com>
2815
2816 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
2817 * mips-tdep.c (mips_print_register): Use
2818 value_print_scalar_formatted.
2819
4f9ae810
TT
28202020-03-13 Tom Tromey <tom@tromey.com>
2821
2822 * valprint.h (value_print_scalar_formatted): Declare.
2823 * valprint.c (value_print_scalar_formatted): New function.
2824
156bfec9
TT
28252020-03-13 Tom Tromey <tom@tromey.com>
2826
2827 * valprint.h (generic_value_print): Declare.
2828 * valprint.c (generic_value_print): New function.
2829
2b4e573d
TT
28302020-03-13 Tom Tromey <tom@tromey.com>
2831
2832 * valprint.c (do_val_print): Call la_value_print_inner, if
2833 available.
2834 * rust-lang.c (rust_language_defn): Update.
2835 * p-lang.c (pascal_language_defn): Update.
2836 * opencl-lang.c (opencl_language_defn): Update.
2837 * objc-lang.c (objc_language_defn): Update.
2838 * m2-lang.c (m2_language_defn): Update.
2839 * language.h (struct language_defn) <la_value_print_inner>: New
2840 member.
2841 * language.c (unknown_language_defn, auto_language_defn): Update.
2842 * go-lang.c (go_language_defn): Update.
2843 * f-lang.c (f_language_defn): Update.
2844 * d-lang.c (d_language_defn): Update.
2845 * c-lang.c (c_language_defn, cplus_language_defn)
2846 (asm_language_defn, minimal_language_defn): Update.
2847 * ada-lang.c (ada_language_defn): Update.
2848
a1f6a07c
TT
28492020-03-13 Tom Tromey <tom@tromey.com>
2850
2851 * c-valprint.c (c_value_print): Use common_val_print.
2852
410cf315
TT
28532020-03-13 Tom Tromey <tom@tromey.com>
2854
2855 * cp-valprint.c (cp_print_static_field): Use common_val_print.
2856
72a45c93
TT
28572020-03-13 Tom Tromey <tom@tromey.com>
2858
2859 * f-valprint.c (f77_print_array_1, f_val_print): Use
2860 common_val_print.
2861
040f66bd
TT
28622020-03-13 Tom Tromey <tom@tromey.com>
2863
2864 * riscv-tdep.c (riscv_print_one_register_info): Use
2865 common_val_print.
2866
a6e05a6c
TT
28672020-03-13 Tom Tromey <tom@tromey.com>
2868
2869 * mi/mi-main.c (output_register): Use common_val_print.
2870
3444c526
TT
28712020-03-13 Tom Tromey <tom@tromey.com>
2872
2873 * infcmd.c (default_print_one_register_info): Use
2874 common_val_print.
2875
c2a44efe
TT
28762020-03-13 Tom Tromey <tom@tromey.com>
2877
2878 * valprint.h (common_val_print_checked): Declare.
2879 * valprint.c (common_val_print_checked): New function.
2880 * stack.c (print_frame_arg): Use common_val_print_checked.
2881
b0c26e99
TT
28822020-03-13 Tom Tromey <tom@tromey.com>
2883
2884 * valprint.c (do_val_print): New function, from val_print.
2885 (val_print): Use do_val_print.
2886 (common_val_print): Use do_val_print.
2887
ce3acbe9
TT
28882020-03-13 Tom Tromey <tom@tromey.com>
2889
2890 * valprint.c (value_print): Use scoped_value_mark.
2891
96c7f873
TV
28922020-03-13 Tom de Vries <tdevries@suse.de>
2893
2894 PR symtab/25646
2895 * psymtab.c (partial_symtab::partial_symtab): Don't set
2896 globals_offset and statics_offset. Push element onto
2897 current_global_psymbols and current_static_psymbols stacks.
2898 (concat): New function.
2899 (end_psymtab_common): Set globals_offset and statics_offset. Pop
2900 element from current_global_psymbols and current_static_psymbols
2901 stacks. Concat popped elements to global_psymbols and
2902 static_symbols.
2903 (add_psymbol_to_list): Use current_global_psymbols and
2904 current_static_psymbols stacks.
2905 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
2906 current_static_psymbols fields.
2907
6ba0a321
CB
29082020-03-12 Christian Biesinger <cbiesinger@google.com>
2909
2910 * corelow.c (sniff_core_bfd): Remove.
2911 (class core_target) <m_core_vec>: Remove.
2912 (core_target::core_target): Update.
2913 (core_file_fns): Remove.
2914 (deprecated_add_core_fns): Remove.
2915 (default_core_sniffer): Remove.
2916 (sniff_core_bfd): Remove.
2917 (default_check_format): Remove.
2918 (gdb_check_format): Remove.
2919 (core_target_open): Update.
2920 (core_target::get_core_register_section): Update.
2921 (get_core_registers_cb): Update.
2922 (core_target::fetch_registers): Update.
2923 * gdbcore.h (struct core_fns): Remove.
2924 (deprecated_add_core_fns): Remove.
2925 (default_core_sniffer): Remove.
2926 (default_check_format): Remove.
2927
227031b2
TT
29282020-03-12 Tom Tromey <tom@tromey.com>
2929
2930 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
2931 CORE_ADDR.
2932 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
2933
53807e9f
TT
29342020-03-12 Tom Tromey <tom@tromey.com>
2935
2936 * remote.c (remote_target::download_tracepoint)
2937 (remote_target::enable_tracepoint)
2938 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
2939 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
2940 sprintf_vma.
2941
64f25102
TT
29422020-03-12 Tom Tromey <tom@tromey.com>
2943
2944 * symfile-mem.c: Update CORE_ADDR size assert.
2945
272cd5a3
SM
29462020-03-12 Simon Marchi <simon.marchi@efficios.com>
2947
2948 * selftest.m4: Move to gdbsupport/.
2949 * acinclude.m4: Update path to selftest.m4.
2950
74cd3f9d
SM
29512020-03-12 Simon Marchi <simon.marchi@efficios.com>
2952
2953 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
2954 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
2955 gdbarch-selfselftests.c and selftest-arch.c.
2956 (SUBDIR_UNITTESTS_OBS): Rename to...
2957 (SELFTESTS_OBS): ... this.
2958 (COMMON_SFILES): Remove disasm-selftests.c and
2959 gdbarch-selftests.c.
2960 * configure.ac: Don't add selftest-arch.{c,o} to
2961 CONFIG_{SRCS,OBS}.
2962 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
2963 preprocessor conditions.
2964
db6878ac
SM
29652020-03-12 Simon Marchi <simon.marchi@efficios.com>
2966
2967 * configure.ac: Don't source bfd/development.sh.
2968 * selftest.m4: Modify comment.
2969 * configure: Re-generate.
2970
4d696a5c
SM
29712020-03-12 Simon Marchi <simon.marchi@efficios.com>
2972
2973 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
2974 not "true" or "false".
2975 * configure: Re-generate.
2976
8dd8e1c7
CB
29772020-03-12 Christian Biesinger <cbiesinger@google.com>
2978
2979 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
2980 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
2981 renamed to arm_nbsd_supply_gregset.
2982 (fetch_register): Update to call arm_nbsd_supply_gregset.
2983 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
2984 (arm_netbsd_nat_target::fetch_registers): Update.
2985 (fetch_elfcore_registers): Removed.
2986 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
2987 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
2988 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
2989 not require NetBSD system headers.
2990 (arm_nbsd_regset): New struct.
2991 (arm_nbsd_iterate_over_regset_sections): New function.
2992 (arm_netbsd_init_abi_common): Updated to call
2993 set_gdbarch_iterate_over_regset_sections.
2994 * arm-nbsd-tdep.h: New file.
2995
dd69bf7a
KB
29962020-03-11 Kevin Buettner <kevinb@redhat.com>
2997
2998 * symtab.c (find_pc_sect_line): Add check which prevents infinite
2999 recursion.
3000
a0761e34
SM
30012020-03-11 Simon Marchi <simon.marchi@efficios.com>
3002
3003 * configure: Re-generate.
3004
e7a82140
TT
30052020-03-11 Tom Tromey <tromey@adacore.com>
3006
3007 * ada-typeprint.c (print_choices): Fix comment.
3008
dcc050c8
AB
30092020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
3010
3011 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
3012 previous item in the list, when the list has no items.
3013
1c33af77
TV
30142020-03-11 Tom de Vries <tdevries@suse.de>
3015
3016 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
3017 PROP_LOCLIST handling code.
3018
8c95582d
AB
30192020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
3020
3021 * buildsym-legacy.c (record_line): Pass extra parameter to
3022 record_line.
3023 * buildsym.c (buildsym_compunit::record_line): Take an extra
3024 parameter, reduce duplication in the line table, and record the
3025 is_stmt flag in the line table.
3026 * buildsym.h (buildsym_compunit::record_line): Add extra
3027 parameter.
3028 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
3029 non-statement lines.
3030 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
3031 this to the symtab builder.
3032 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
3033 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
3034 through to dwarf_record_line_1.
3035 * infrun.c (process_event_stop_test): When stepping, don't stop at
3036 a non-statement instruction, and only refresh the step info when
3037 we land in the middle of a line's range. Also add an extra
3038 comment.
3039 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
3040 field.
3041 * record-btrace.c (btrace_find_line_range): Only record lines
3042 marked as is-statement.
3043 * stack.c (frame_show_address): Show the frame address if we are
3044 in a non-statement sal.
3045 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
3046 (maintenance_print_one_line_table): Print a header for the is_stmt
3047 column, and include is_stmt information in the output.
3048 * symtab.c (find_pc_sect_line): Find lines marked as statements in
3049 preference to non-statements.
3050 (find_pcs_for_symtab_line): Prefer is-statement entries.
3051 (find_line_common): Likewise.
3052 * symtab.h (struct linetable_entry): Add is_stmt field.
3053 (struct symtab_and_line): Likewise.
3054 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
3055 arranging the line table.
3056
e4003a34
TV
30572020-03-07 Tom de Vries <tdevries@suse.de>
3058
3059 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
3060 DIE.
3061
e8932576
TT
30622020-03-07 Tom Tromey <tom@tromey.com>
3063
3064 * valops.c (value_literal_complex): Remove obsolete comment.
3065 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
3066 comment.
3067
29734269
SM
30682020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
3069
3070 * infrun.h: Forward-declare thread_info.
3071 (set_step_info): Add thread_info parameter, add doc.
3072 * infrun.c (set_step_info): Add thread_info parameter, move doc
3073 to header.
3074 * infrun.c (process_event_stop_test): Pass thread to
3075 set_step_info call.
3076 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
3077 set_step_info.
3078 (prepare_one_step): Add thread_info parameter, pass it to
3079 set_step_frame and prepare_one_step (recursive) call.
3080 (step_1): Pass thread to prepare_one_step call.
3081 (step_command_fsm::should_stop): Pass thread to
3082 prepare_one_step.
3083 (until_next_fsm): Pass thread to set_step_frame call.
3084 (finish_command): Pass thread to set_step_info call.
3085
b7d64b29
HD
30862020-03-06 Hannes Domani <ssbssa@yahoo.de>
3087
3088 * windows-tdep.c (windows_solib_create_inferior_hook):
3089 Check if inferior is running.
3090
09f2921c
TV
30912020-03-06 Tom de Vries <tdevries@suse.de>
3092
3093 * NEWS: Fix "the the".
3094 * ctfread.c: Same.
3095
fd760e79
TV
30962020-03-06 Tom de Vries <tdevries@suse.de>
3097
3098 * psymtab.c (psymtab_to_symtab): Don't print "done.".
3099
20ea4a60
AB
31002020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
3101
3102 * .dir-locals.el: Add a comment referencing the other copies of
3103 this file.
3104
0afbabf0
JB
31052020-03-05 John Baldwin <jhb@FreeBSD.org>
3106
3107 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
3108 psargs.
3109
842806cb
TBA
31102020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3111
3112 * .gitattributes: New file.
3113
be1e3d3e
TT
31142020-03-04 Tom Tromey <tom@tromey.com>
3115
3116 * symmisc.c (print_symbol_bcache_statistics)
3117 (print_objfile_statistics): Update.
3118 * symfile.c (allocate_symtab): Use intern.
3119 * psymtab.c (partial_symtab::partial_symtab): Use intern.
3120 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
3121 macro_cache>: Remove.
3122 <string_cache>: New member.
3123 (struct objfile) <intern>: New methods.
3124 * elfread.c (elf_symtab_read): Use intern.
3125 * dwarf2/read.c (fixup_go_packaging): Intern package name.
3126 (dwarf2_compute_name, dwarf2_physname)
3127 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
3128 names.
3129 (guess_partial_die_structure_name): Update.
3130 (partial_die_info::fixup): Intern name.
3131 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
3132 name.
3133 (dwarf2_name): Intern name. Update.
3134 * buildsym.c (buildsym_compunit::get_macro_table): Use
3135 string_cache.
3136
4e7625fd
TT
31372020-03-04 Tom Tromey <tom@tromey.com>
3138
3139 * jit.c (bfd_open_from_target_memory): Make "target" const.
3140 * corefile.c (gnutarget): Now const.
3141 * gdbcore.h (gnutarget): Now const.
3142
46f9f931
HD
31432020-03-04 Hannes Domani <ssbssa@yahoo.de>
3144
3145 * NEWS: Mention support for WOW64 processes.
3146 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
3147 (amd64_windows_segment_register_p): Remove static.
3148 (_initialize_amd64_windows_nat): Update.
3149 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
3150 * i386-windows-nat.c (context_offset): Update.
3151 (i386_mappings): Rename and remove static.
3152 (i386_windows_segment_register_p): Remove static.
3153 (_initialize_i386_windows_nat): Update.
3154 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
3155 (STATUS_WX86_SINGLE_STEP): New macro.
3156 (EnumProcessModulesEx): New macro.
3157 (Wow64SuspendThread): New macro.
3158 (Wow64GetThreadContext): New macro.
3159 (Wow64SetThreadContext): New macro.
3160 (Wow64GetThreadSelectorEntry): New macro.
3161 (windows_set_context_register_offsets): Add static.
3162 (windows_set_segment_register_p): Likewise.
3163 (windows_add_thread): Adapt for WOW64 processes.
3164 (windows_fetch_one_register): Likewise.
3165 (windows_nat_target::fetch_registers): Likewise.
3166 (windows_store_one_register): Likewise.
3167 (display_selector): Likewise.
3168 (display_selectors): Likewise.
3169 (handle_exception): Likewise.
3170 (windows_continue): Likewise.
3171 (windows_nat_target::resume): Likewise.
3172 (windows_add_all_dlls): Likewise.
3173 (do_initial_windows_stuff): Likewise.
3174 (windows_nat_target::attach): Likewise.
3175 (windows_get_exec_module_filename): Likewise.
3176 (windows_nat_target::create_inferior): Likewise.
3177 (windows_xfer_siginfo): Likewise.
3178 (_initialize_loadable): Initialize Wow64SuspendThread,
3179 Wow64GetThreadContext, Wow64SetThreadContext,
3180 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
3181 * windows-nat.h (windows_set_context_register_offsets):
3182 Remove declaration.
3183 (windows_set_segment_register_p): Likewise.
3184 (i386_windows_segment_register_p): Add declaration.
3185 (amd64_windows_segment_register_p): Likewise.
3186
440cf44e
LM
31872020-03-04 Luis Machado <luis.machado@linaro.org>
3188
3189 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
3190 in "info registers" for AArch64/ARM.
3191
3192 The change caused "info registers" to not print GPR's.
3193
3194 gdb/ChangeLog:
3195
3196 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
3197
3198 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
3199 when reg->group is empty and reggroup is not.
3200
1009d92f
TT
32012020-03-03 Tom Tromey <tromey@adacore.com>
3202
3203 * dwarf2/frame.c (struct dwarf2_frame_cache)
3204 <checked_tailcall_bottom, entry_cfa_sp_offset,
3205 entry_cfa_sp_offset_p>: Remove members.
3206 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
3207 (dwarf2_frame_prev_register): Don't call
3208 dwarf2_tailcall_sniffer_first.
3209 (dwarf2_append_unwinders): Don't append tailcall unwinder.
3210 * frame-unwind.c (add_unwinder): New fuction.
3211 (frame_unwind_init): Use it. Add tailcall unwinder.
3212
5e5d66b6
AB
32132020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
3214 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
3215
3216 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
3217 value should be printed as true.
3218
584cf46d
HD
32192020-03-03 Hannes Domani <ssbssa@yahoo.de>
3220
3221 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
3222 (windows_init_abi): Set and use windows_so_ops.
3223
7b973adc
SDJ
32242020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
3225
3226 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
3227 when verifying if dealing with a convenience variable.
3228
bb7b70ab
LM
32292020-03-03 Luis Machado <luis.machado@linaro.org>
3230
3231 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
3232
9822cb57
SM
32332020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
3234
3235 * infrun.c (gdbarch_supports_displaced_stepping): New.
3236 (use_displaced_stepping): Break up conditions in smaller pieces.
3237 Use gdbarch_supports_displaced_stepping.
3238 (displaced_step_prepare_throw): Use
3239 gdbarch_supports_displaced_stepping.
3240
63e163f2
AB
32412020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
3242
3243 * NEWS: Mention new behaviour of the history filename.
3244 * top.c (write_history_p): Add comment.
3245 (show_write_history_p): Add header comment, give a different
3246 message when history writing is on, but the history filename is
3247 empty.
3248 (history_filename): Add comment.
3249 (history_filename_empty): New function.
3250 (show_history_filename): Add header comment, give a different
3251 message when the filename is empty.
3252 (init_history): Compare history_filename against nullptr, and only
3253 read history if the filename is not empty.
3254 (set_history_filename): Add header comment, and only make
3255 non-empty filenames absolute.
3256 (init_main): Make the filename argument to 'set history filename'
3257 optional.
3258
81b86b97
CB
32592020-03-02 Christian Biesinger <cbiesinger@google.com>
3260
3261 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
3262 (arm_supply_vfpregset): ...this, and update to use VFP registers.
3263 (fetch_fp_register): Update.
3264 (fetch_fp_regs): Update.
3265 (store_fp_register): Update.
3266 (store_fp_regs): Update.
3267 (arm_netbsd_nat_target::read_description): New function.
3268 (fetch_elfcore_registers): Update.
3269
24ed6739
AB
32702020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
3271
3272 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
3273 general_thread if the stop reply is missing a thread-id.
3274 (remote_target::process_stop_reply): Use the first non-exited
3275 thread if the target didn't pass a thread-id.
3276 * infrun.c (do_target_wait): Move call to
3277 switch_to_inferior_no_thread to ....
3278 (do_target_wait_1): ... here.
3279
a84bb2a0
JT
32802020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
3281
3282 * debuginfod-support.c: Include defs.h first.
3283
658dadf0
TV
32842020-02-28 Tom de Vries <tdevries@suse.de>
3285
3286 * symfile.c (set_initial_language): Use default language for lookup.
3287
4ebe4877
SM
32882020-02-28 Simon Marchi <simon.marchi@efficios.com>
3289
3290 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
3291 reader variable, pass `this` to read_cutu_die_from_dwo.
3292
e5da1139
AM
32932020-02-27 Aaron Merey <amerey@redhat.com>
3294
3295 * source.c (open_source_file): Check for nullptr when computing
3296 srcpath.
3297
317f7127
TT
32982020-02-27 Tom Tromey <tromey@adacore.com>
3299
3300 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
3301 member.
3302 (dwarf2_add_field): Don't update nfields.
3303 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
3304
3104d9ee
AB
33052020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
3306
3307 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
3308 abs.
3309
b83470bf
TT
33102020-02-26 Tom Tromey <tom@tromey.com>
3311
3312 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
3313 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
3314 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
3315 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
3316 per_cu_data.
3317
edfe0a0c
TT
33182020-02-26 Tom Tromey <tom@tromey.com>
3319
3320 * dwarf2/index-write.c (psym_index_map): Change type.
3321 (add_address_entry_worker, write_one_signatured_type)
3322 (recursively_count_psymbols, recursively_write_psymbols)
3323 (class debug_names, psyms_seen_size, write_gdbindex)
3324 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
3325
0d79cdc4
AM
33262020-02-26 Aaron Merey <amerey@redhat.com>
3327
3328 * Makefile.in: Handle optional debuginfod support.
3329 * NEWS: Update.
3330 * README: Add --with-debuginfod summary.
3331 * config.in: Regenerate.
3332 * configure: Regenerate.
3333 * configure.ac: Handle optional debuginfod support.
3334 * debuginfod-support.c: debuginfod helper functions.
3335 * debuginfod-support.h: Ditto.
3336 * doc/gdb.texinfo: Add --with-debuginfod to configure options
3337 summary.
3338 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
3339 when a dwz file cannot be found.
3340 * elfread.c (elf_symfile_read): Query debuginfod servers when a
3341 debuginfo file cannot be found.
3342 * source.c (open_source_file): Query debuginfod servers when a
3343 source file cannot be found.
3344 * top.c (print_gdb_configuration): Include
3345 --{with,without}-debuginfod in the output.
3346
b65ce565
JG
33472020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
3348
3349 * thread.c (thr_try_catch_cmd): Print thread name.
3350
d4c9a4f8
SM
33512020-02-26 Simon Marchi <simon.marchi@efficios.com>
3352
3353 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
3354 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
3355 dwarf2_fetch_die_type_sect_off): Move to...
3356 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
3357 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
3358 dwarf2_fetch_die_type_sect_off): ... here.
3359 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
3360 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
3361 dwarf2_fetch_die_type_sect_off): Move doc to header file.
3362
0dce4280
TV
33632020-02-26 Tom de Vries <tdevries@suse.de>
3364
3365 PR gdb/25603
3366 * symfile.c (set_initial_language): Exit-early if
3367 language_mode == language_mode_manual.
3368
450a1bfc
SM
33692020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
3370
3371 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
3372 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
3373 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
3374
9e80cfa1
AB
33752020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
3376
3377 * gdbtypes.c (create_array_type_with_stride): Handle negative
3378 array strides.
3379 * valarith.c (value_subscripted_rvalue): Likewise.
3380
09624f1f
LM
33812020-02-25 Luis Machado <luis.machado@linaro.org>
3382
3383 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
3384
8cb5117c
SM
33852020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
3386
3387 * loc.h (dwarf2_get_die_type): Move to...
3388 * read.h (dwarf2_get_die_type): ... here.
3389 * read.c (dwarf2_get_die_type): Move doc to header.
3390
c325c44e
JB
33912020-02-25 Joel Brobecker <brobecker@adacore.com>
3392
3393 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
3394 'gnulib/Makefile.in' to the list.
3395
4ac93832
TT
33962020-02-24 Tom Tromey <tom@tromey.com>
3397
3398 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
3399 Remove.
3400 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
3401 XOBNEWVEC.
3402
197400e8
TT
34032020-02-24 Tom Tromey <tom@tromey.com>
3404
3405 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
3406 New method.
3407 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
3408 (dw2_do_instantiate_symtab, dw2_get_file_names)
3409 (build_type_psymtab_dependencies, load_full_type_unit): Update.
3410
76935768
TT
34112020-02-24 Tom Tromey <tom@tromey.com>
3412
3413 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
3414 make_scoped_restore.
3415 (dwarf2_psymtab::read_symtab): Don't clear
3416 reading_partial_symbols.
3417
a88ef40d
TV
34182020-02-24 Tom de Vries <tdevries@suse.de>
3419
3420 PR gdb/25592
3421 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
3422
c9af6521
TV
34232020-02-24 Tom de Vries <tdevries@suse.de>
3424
3425 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
3426 commands layout next/prev/regs.
3427
5707a07a
TT
34282020-02-22 Tom Tromey <tom@tromey.com>
3429
3430 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
3431 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
3432
3b0fb49e
TT
34332020-02-22 Tom Tromey <tom@tromey.com>
3434
3435 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
3436
283be8bf
TT
34372020-02-22 Tom Tromey <tom@tromey.com>
3438
3439 * tui/tui-win.c (_initialize_tui_win): Add usage text.
3440 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
3441 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
3442 * tui/tui.c (_initialize_tui): Add usage text.
3443
ca793b96
TT
34442020-02-22 Tom Tromey <tom@tromey.com>
3445
3446 * tui/tui-win.c (tui_set_focus_command)
3447 (tui_set_win_height_command): Use error_no_arg.
3448 (_initialize_tui_win): Update help text.
3449 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
3450
432b5c40
TT
34512020-02-22 Tom Tromey <tom@tromey.com>
3452
3453 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
3454 * tui/tui-disasm.h (struct tui_disasm_window)
3455 <display_start_addr>: Declare.
3456 * tui/tui-source.h (struct tui_source_window)
3457 <display_start_addr>: Declare.
3458 * tui/tui-winsource.h (struct tui_source_window_base)
3459 <show_source_line, display_start_addr>: New methods.
3460 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
3461 Rename and move to protected section.
3462 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
3463 (tui_source_window_base::do_erase_source_content): Update.
3464 (tui_source_window_base::show_source_line): Now a method.
3465 (tui_source_window_base::show_source_content)
3466 (tui_source_window_base::tui_source_window_base)
3467 (tui_source_window_base::rerender)
3468 (tui_source_window_base::refill)
3469 (tui_source_window_base::do_scroll_horizontal)
3470 (tui_source_window_base::set_is_exec_point_at)
3471 (tui_source_window_base::update_breakpoint_info)
3472 (tui_source_window_base::update_exec_info): Update.
3473 * tui/tui-source.c (tui_source_window::set_contents)
3474 (tui_source_window::showing_source_p)
3475 (tui_source_window::do_scroll_vertical)
3476 (tui_source_window::location_matches_p)
3477 (tui_source_window::line_is_displayed): Update.
3478 (tui_source_window::display_start_addr): New method.
3479 * tui/tui-disasm.c (tui_disasm_window::set_contents)
3480 (tui_disasm_window::do_scroll_vertical)
3481 (tui_disasm_window::location_matches_p): Update.
3482 (tui_disasm_window::display_start_addr): New method.
3483
01b1af32
TT
34842020-02-22 Tom Tromey <tom@tromey.com>
3485
3486 * NEWS: Add entry for gdb.register_window_type.
3487 * tui/tui-layout.h (window_factory): New typedef.
3488 (tui_register_window): Declare.
3489 * tui/tui-layout.c (saved_tui_windows): New global.
3490 (tui_apply_current_layout): Use it.
3491 (tui_register_window): New function.
3492 * python/python.c (do_start_initialization): Call
3493 gdbpy_initialize_tui.
3494 (python_GdbMethods): Add "register_window_type" function.
3495 * python/python-internal.h (gdbpy_register_tui_window)
3496 (gdbpy_initialize_tui): Declare.
3497 * python/py-tui.c: New file.
3498 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
3499
fc96d20b
TT
35002020-02-22 Tom Tromey <tom@tromey.com>
3501
3502 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
3503
935c78c0
TT
35042020-02-22 Tom Tromey <tom@tromey.com>
3505
3506 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
3507 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
3508 * tui/tui-data.c (tui_set_win_with_focus): Remove.
3509 (tui_set_win_focus_to): Move from tui-win.c.
3510
0240c8f1
TT
35112020-02-22 Tom Tromey <tom@tromey.com>
3512
3513 * tui/tui-layout.c (make_standard_window, get_locator_window): New
3514 functions.
3515 (known_window_types): New global.
3516 (tui_get_window_by_name): Reimplement.
3517 (initialize_known_windows): New function.
3518 (validate_window_name): Rewrite.
3519 (_initialize_tui_layout): Call initialize_known_windows.
3520
fdb01f0c
TT
35212020-02-22 Tom Tromey <tom@tromey.com>
3522
3523 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
3524 Remove constants.
3525 * tui/tui-winsource.h (struct tui_source_window_base)
3526 <tui_source_window_base>: Remove parameter.
3527 * tui/tui-winsource.c
3528 (tui_source_window_base::tui_source_window_base): Remove
3529 parameter.
3530 (tui_source_window_base::refill): Update.
3531 * tui/tui-stack.h (struct tui_locator_window)
3532 <tui_locator_window>: Update.
3533 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
3534 Default the constructor.
3535 * tui/tui-regs.h (struct tui_data_item_window)
3536 <tui_data_item_window>: Default the constructor.
3537 (struct tui_data_window) <tui_data_window>: Likewise.
3538 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
3539 Default the constructor.
3540 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
3541 Default the constructor.
3542 <type>: Remove.
3543 (struct tui_win_info) <tui_win_info>: Default the constructor.
3544 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
3545 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
3546 Default the constructor.
3547
865a5aec
TT
35482020-02-22 Tom Tromey <tom@tromey.com>
3549
3550 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
3551 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
3552 * tui/tui-win.c (tui_resize_all): Don't call
3553 tui_delete_invisible_windows.
3554 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
3555 done.
3556 (tui_set_layout): Update.
3557 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
3558 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
3559 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
3560
e098d18c
TT
35612020-02-22 Tom Tromey <tom@tromey.com>
3562
3563 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
3564 correctly.
3565
eb9c8874
TT
35662020-02-22 Tom Tromey <tom@tromey.com>
3567
3568 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
3569
7eed1a8e
TT
35702020-02-22 Tom Tromey <tom@tromey.com>
3571
3572 * tui/tui-winsource.h (struct tui_source_window_iterator)
3573 <inner_iterator>: New etytypedef.
3574 <tui_source_window_iterator>: Take "end" parameter.
3575 <tui_source_window_iterator>: Take iterator.
3576 <operator*, advance>: Update.
3577 <m_iter>: Change type.
3578 <m_end>: New field.
3579 (struct tui_source_windows) <begin, end>: Update.
3580 * tui/tui-layout.c (tui_windows): New global.
3581 (tui_apply_current_layout): Clear tui_windows.
3582 (tui_layout_window::apply): Update tui_windows.
3583 * tui/tui-data.h (tui_windows): Declare.
3584 (all_tui_windows): Now inline function.
3585 (class tui_window_iterator, struct all_tui_windows): Remove.
3586
7c043ba6
TT
35872020-02-22 Tom Tromey <tom@tromey.com>
3588
3589 PR tui/17850:
3590 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
3591 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
3592 "height" argument.
3593 (class tui_layout_window) <get_sizes>: Likewise.
3594 (class tui_layout_split) <tui_layout_split>: Add "vertical"
3595 argument.
3596 <get_sizes>: Add "height" argument.
3597 <m_vertical>: New field.
3598 * tui/tui-layout.c (tui_layout_split::clone): Update.
3599 (tui_layout_split::get_sizes): Add "height" argument.
3600 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
3601 (tui_new_layout_command): Parse "-horizontal".
3602 (_initialize_tui_layout): Update help string.
3603 (tui_layout_split::specification): Add "-horizontal" when needed.
3604 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
3605 argument.
3606 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
3607 New methods.
3608
6bc56648
TT
36092020-02-22 Tom Tromey <tom@tromey.com>
3610
3611 * tui/tui-layout.h (enum tui_adjust_result): New.
3612 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
3613 (class tui_layout_window) <adjust_size>: Return
3614 tui_adjust_result. Rewrite.
3615 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
3616 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
3617
c22fef7e
TT
36182020-02-22 Tom Tromey <tom@tromey.com>
3619
3620 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
3621 parameter and return types.
3622 (class tui_layout_base) <specification>: Add "depth".
3623 (class tui_layout_window) <specification>: Add "depth".
3624 (class tui_layout_split) <specification>: Add "depth".
3625 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
3626 and return types.
3627 (tui_new_layout_command): Parse sub-layouts.
3628 (_initialize_tui_layout): Update help string.
3629 (tui_layout_window::specification): Add "depth".
3630 (add_layout_command): Update.
3631
ee325b61
TT
36322020-02-22 Tom Tromey <tom@tromey.com>
3633
3634 * NEWS: Add "tui new-layout" item.
3635 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
3636 Add new-layout command to help text.
3637 (validate_window_name): New function.
3638 (tui_new_layout_command): New function.
3639 (_initialize_tui_layout): Register "new-layout".
3640 (tui_layout_window::specification): New method.
3641 (tui_layout_window::specification): New method.
3642 * tui/tui-layout.h (class tui_layout_base) <specification>: New
3643 method.
3644 (class tui_layout_window) <specification>: New method.
3645 (class tui_layout_split) <specification>: New method.
3646
416eb92d
TT
36472020-02-22 Tom Tromey <tom@tromey.com>
3648
3649 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
3650 * tui/tui-win.c (window_name_completer): Update comment.
3651 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
3652 Declare method.
3653 (class tui_layout_window) <replace_window>: Likewise.
3654 (class tui_layout_split) <replace_window>: Likewise.
3655 (tui_set_layout): Don't declare.
3656 (tui_set_initial_layout): Declare function.
3657 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
3658 (asm_regs_layout): New globals.
3659 (tui_current_layout, show_layout): Remove.
3660 (tui_set_layout, tui_add_win_to_layout): Rewrite.
3661 (find_layout, tui_apply_layout): New function.
3662 (layout_completer): Remove.
3663 (tui_next_layout): Reimplement.
3664 (tui_next_layout_command): New function.
3665 (tui_set_initial_layout, tui_prev_layout_command): New functions.
3666 (tui_regs_layout): Reimplement.
3667 (tui_regs_layout_command): New function.
3668 (extract_display_start_addr): Rewrite.
3669 (next_layout, prev_layout): Remove.
3670 (tui_layout_window::replace_window): New method.
3671 (tui_layout_split::replace_window): New method.
3672 (destroy_layout): New function.
3673 (layout_list): New global.
3674 (add_layout_command): New function.
3675 (initialize_layouts): Update.
3676 (tui_layout_command): New function.
3677 (_initialize_tui_layout): Install "layout" commands.
3678 * tui/tui-data.h (enum tui_layout_type): Remove.
3679 (tui_current_layout): Don't declare.
3680
0dbc2fc7
TT
36812020-02-22 Tom Tromey <tom@tromey.com>
3682
3683 * tui/tui-regs.c (tui_reg_layout): Remove.
3684 (tui_reg_command): Use tui_regs_layout.
3685 * tui/tui-layout.h (tui_reg_command): Declare.
3686 * tui/tui-layout.c (tui_reg_command): New function.
3687
5afe342e
TT
36882020-02-22 Tom Tromey <tom@tromey.com>
3689
3690 * tui/tui.c (tui_rl_delete_other_windows): Call
3691 tui_remove_some_windows.
3692 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
3693 Declare method.
3694 (class tui_layout_window) <remove_windows>: New method.
3695 (class tui_layout_split) <remove_windows>: Declare.
3696 (tui_remove_some_windows): Declare.
3697 * tui/tui-layout.c (tui_remove_some_windows): New function.
3698 (tui_layout_split::remove_windows): New method.
3699
427326a8
TT
37002020-02-22 Tom Tromey <tom@tromey.com>
3701
3702 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
3703 * tui/tui-layout.h (tui_next_layout): Declare.
3704 * tui/tui-layout.c (tui_next_layout): New function.
3705
3fe12b6d
TT
37062020-02-22 Tom Tromey <tom@tromey.com>
3707
3708 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
3709 correct coordinates.
3710
59b8b5d2
TT
37112020-02-22 Tom Tromey <tom@tromey.com>
3712
3713 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
3714 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
3715 DATA_WIN case.
3716
2a3d458b
TT
37172020-02-22 Tom Tromey <tom@tromey.com>
3718
3719 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
3720 TUI_DISASM_WIN, not tui_win_list.
3721
3f0cbb04
TT
37222020-02-22 Tom Tromey <tom@tromey.com>
3723
3724 * valprint.c (generic_val_print_enum_1)
3725 (val_print_type_code_flags): Style member names.
3726 * rust-lang.c (val_print_struct, rust_print_enum)
3727 (rust_print_struct_def, rust_internal_print_type): Style member
3728 names.
3729 * p-valprint.c (pascal_object_print_value_fields): Style member
3730 names. Only call fprintf_symbol_filtered for static members.
3731 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
3732 * f-valprint.c (f_val_print): Style member names.
3733 * f-typeprint.c (f_type_print_base): Style member names.
3734 * cp-valprint.c (cp_print_value_fields): Style member names. Only
3735 call fprintf_symbol_filtered for static members.
3736 (cp_print_class_member): Style member names.
3737 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
3738 member names.
3739 * ada-valprint.c (ada_print_scalar): Style enum names.
3740 (ada_val_print_enum): Likewise.
3741 * ada-typeprint.c (print_enum_type): Style enum names.
3742
d4d947ae
TT
37432020-02-21 Tom Tromey <tom@tromey.com>
3744
3745 * psympriv.h (struct partial_symtab): Update comment.
3746
e94e944b
TT
37472020-02-21 Tom Tromey <tromey@adacore.com>
3748
3749 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
3750 type is CORE_ADDR.
3751
1eb73179
TV
37522020-02-21 Tom de Vries <tdevries@suse.de>
3753
3754 PR gdb/25534
3755 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
3756 if dependencies[i]->user != NULL.
3757
4f180d53
AT
37582020-02-21 Ali Tamur <tamur@google.com>
3759
3760 * dwarf2/read.c (dwarf2_name): Add null check.
3761
22b6cd70
TT
37622020-02-20 Tom Tromey <tom@tromey.com>
3763
3764 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
3765 ">=", in binary search.
3766 (dwarf2_find_containing_comp_unit): New overload.
3767 (run_test): New self-test.
3768 (_initialize_dwarf2_read): Register new test.
3769
bd0cf5a6
NC
37702020-02-20 Nelson Chu <nelson.chu@sifive.com>
3771
3772 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
3773 * riscv-tdep.h: Likewise.
3774 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
3775 rv32-only CSR.
3776 * features/riscv/64bit-csr.xml: Regenerated.
3777
3f702acd
SDJ
37782020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
3779 Tom Tromey <tom@tromey.com>
3780
3781 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
3782 of 'fputc_unfiltered'.
3783 (putchar_unfiltered): Call 'fputc_unfiltered'.
3784 (fputc_unfiltered): Call 'fputs_unfiltered'.
3785
d13c7322
AB
37862020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
3787
3788 * config.in: Regenerate.
3789 * configure: Regenerate.
3790 * configure.ac: Add --with-python-libdir option.
3791 * main.c: Use WITH_PYTHON_LIBDIR.
3792
869d8950
TT
37932020-02-19 Tom Tromey <tom@tromey.com>
3794
3795 * symtab.c (general_symbol_info::compute_and_set_names): Use
3796 obstack_strndup. Simplify call to symbol_set_demangled_name.
3797
298e9637
SM
37982020-02-19 Simon Marchi <simon.marchi@efficios.com>
3799
3800 * dwarf2/read.c (allocate_signatured_type_table,
3801 allocate_dwo_unit_table, allocate_type_unit_groups_table,
3802 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
3803 Remove objfile parameter, update all callers.
3804
08410482
DE
38052020-02-19 Doug Evans <dje@google.com>
3806
3807 PR rust/25535
3808 * rust-lang.c (rust_print_enum): Apply embedded_offset to
3809 rust_enum_variant calculation.
3810
dfdeeca1
TT
38112020-02-19 Tom Tromey <tromey@adacore.com>
3812
3813 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
3814
2ef5453b
TT
38152020-02-19 Tom Tromey <tromey@adacore.com>
3816
3817 * ada-lang.c (cache_symbol): Use obstack_strdup.
3818
9f1528a1
AB
38192020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
3820
3821 * configure: Regenerate.
3822
d3c22fa8
TT
38232020-02-19 Tom Tromey <tromey@adacore.com>
3824
3825 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
3826 NULL check.
3827
bf84f706
MR
38282020-02-19 Maciej W. Rozycki <macro@wdc.com>
3829
3830 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
3831
d1c9b20f
AB
38322020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
3833
3834 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
3835 if GDBSERVER is not defined.
3836 (riscv_tdesc_cache): Likewise, also store const target_desc.
3837 (STATIC_IN_GDB): Define.
3838 (riscv_create_target_description): Update declaration with
3839 STATIC_IN_GDB.
3840 (riscv_lookup_target_description): New function, only define if
3841 GDBSERVER is not defined.
3842 * arch/riscv.h (riscv_create_target_description): Declare only
3843 when GDBSERVER is defined.
3844 (riscv_lookup_target_description): New declaration when GDBSERVER
3845 is not defined.
3846 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
3847 (riscv_linux_read_features): ...this, and return
3848 riscv_gdbarch_features instead of target_desc.
3849 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
3850 (riscv_linux_read_description): Rename to...
3851 (riscv_linux_read_features): ...this.
3852 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
3853 Update to use riscv_gdbarch_features and
3854 riscv_lookup_target_description.
3855 * riscv-tdep.c (riscv_find_default_target_description): Use
3856 riscv_lookup_target_description instead of
3857 riscv_create_target_description.
3858
373d7ac0
SM
38592020-02-18 Simon Marchi <simon.marchi@efficios.com>
3860
3861 * valprint.c (generic_val_print_enum_1): When printing a flag
3862 enum with value 0 and there is no enumerator with value 0, print
3863 just "0" instead of "(unknown: 0x0)".
3864
b29a2df0
SM
38652020-02-18 Simon Marchi <simon.marchi@efficios.com>
3866
3867 * valprint.c (generic_val_print_enum_1): Print unknown part of
3868 flag enum in hex.
3869
6740f0cc
SM
38702020-02-18 Simon Marchi <simon.marchi@efficios.com>
3871
3872 * dwarf2/read.c (update_enumeration_type_from_children): Allow
3873 flag enums to contain duplicate enumerators.
3874 * valprint.c (generic_val_print_enum_1): Update comment.
3875
edd45eb0
SM
38762020-02-18 Simon Marchi <simon.marchi@efficios.com>
3877
3878 * dwarf2/read.c: Include "count-one-bits.h".
3879 (update_enumeration_type_from_children): If an enumerator has
3880 multiple bits set, don't treat the enumeration as a "flag enum".
3881 * valprint.c (generic_val_print_enum_1): Assert that enumerators
3882 of flag enums have 0 or 1 bit set.
3883
6d0cf446
BE
38842020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
3885
3886 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
3887 conversion.
3888 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
3889 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
3890 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
3891 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
3892 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
3893
7001c1b7
SM
38942020-02-18 Simon Marchi <simon.marchi@efficios.com>
3895
3896 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
3897
fdb61c6c
SM
38982020-02-14 Simon Marchi <simon.marchi@efficios.com>
3899
3900 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
3901 displaced_step_closure_up.
3902 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
3903 (struct displaced_step_closure_up):
3904 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
3905 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
3906 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
3907 Likewise.
3908 * gdbarch.sh (displaced_step_copy_insn): Likewise.
3909 * gdbarch.c, gdbarch.h: Re-generate.
3910 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
3911 displaced_step_closure_up.
3912 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
3913 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
3914 * infrun.h (displaced_step_closure_up): New type alias.
3915 (struct displaced_step_inferior_state) <step_closure>: Change
3916 type to displaced_step_closure_up.
3917 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
3918 displaced_step_closure_up.
3919 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
3920
a4a38eb4
TT
39212020-02-14 Tom Tromey <tom@tromey.com>
3922
3923 * minidebug.c (gnu_debug_key): New global.
3924 (find_separate_debug_file_in_section): Use it.
3925
e8217e61
SM
39262020-02-14 Simon Marchi <simon.marchi@efficios.com>
3927
3928 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
3929 std::unique_ptr.
3930 * gdbarch.c: Re-generate.
3931 * gdbarch.h: Re-generate.
3932 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
3933 change.
3934 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
3935 type to std::unique_ptr.
3936 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
3937 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
3938 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
3939 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
3940 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
3941 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
3942 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
3943 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
3944 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
3945
d8d83535
SM
39462020-02-14 Simon Marchi <simon.marchi@efficios.com>
3947
3948 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
3949 std::unique_ptr.
3950 (displaced_step_clear): Rename to...
3951 (displaced_step_reset): ... this. Just call displaced->reset ().
3952 (displaced_step_clear_cleanup): Rename to...
3953 (displaced_step_reset_cleanup): ... this.
3954 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
3955 (displaced_step_fixup): Likewise.
3956 (resume_1): Likewise.
3957 (handle_inferior_event): Restore child's memory before calling
3958 displaced_step_fixup on the parent.
3959 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
3960 to std::unique_ptr.
3961 <step_closure>: Change type to std::unique_ptr.
3962
5f661e03
SM
39632020-02-14 Simon Marchi <simon.marchi@efficios.com>
3964
3965 * arm-tdep.c: Include count-one-bits.h.
3966 (cleanup_block_store_pc): Use count_one_bits.
3967 (cleanup_block_load_pc): Use count_one_bits.
3968 (arm_copy_block_xfer): Use count_one_bits.
3969 (thumb2_copy_block_xfer): Use count_one_bits.
3970 (thumb_copy_pop_pc_16bit): Use count_one_bits.
3971 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
3972 (thumb_get_next_pcs_raw): Use count_one_bits.
3973 (arm_get_next_pcs_raw): Use count_one_bits_l.
3974 * arch/arm.c (bitcount): Remove.
3975 * arch/arm.h (bitcount): Remove.
3976
8084e579
TT
39772020-02-14 Tom Tromey <tromey@adacore.com>
3978
3979 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
3980 Update.
3981 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
3982 * dwarf2/loc.c (call_site_find_chain_1): Return
3983 unique_xmalloc_ptr.
3984 (call_site_find_chain): Likewise.
3985
258bf0ee
RB
39862020-02-14 Richard Biener <rguenther@suse.de>
3987
3988 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
3989 on expression with division operators.
3990
f98a8458
AKS
39912020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
3992
3993 * MAINTAINERS (Write After Approval): Adding myself.
3994
d1437c0e
TT
39952020-02-12 Tom Tromey <tom@tromey.com>
3996
3997 * event-loop.c (event_data, gdb_event, event_handler_func):
3998 Remove.
3999
3d4560f7
TT
40002020-02-12 Tom Tromey <tom@tromey.com>
4001
4002 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
4003 (dwarf2_frame_objfile_data): Add comment.
4004 (find_comp_unit, set_comp_unit): New functions.
4005 (dwarf2_frame_find_fde): Use find_comp_unit.
4006 (dwarf2_build_frame_info): Use set_comp_unit.
4007
21982304
TT
40082020-02-12 Tom Tromey <tom@tromey.com>
4009
4010 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
4011 (comp_unit): Don't initialize objfile.
4012 (execute_cfa_program): Add text_offset parameter.
4013 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
4014 (dwarf2_frame_cache): Update.
4015 (dwarf2_build_frame_info): Don't set "objfile" member.
4016
4debb237
TT
40172020-02-12 Tom Tromey <tom@tromey.com>
4018
4019 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
4020 (decode_frame_entry): Likewise.
4021 (dwarf2_build_frame_info): Update.
4022
0d404d44
TT
40232020-02-12 Tom Tromey <tom@tromey.com>
4024
4025 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
4026 (decode_frame_entry_1): Use the comp_unit obstack.
4027
a7a3ae5c
TT
40282020-02-12 Tom Tromey <tom@tromey.com>
4029
4030 * dwarf2/frame.c (struct comp_unit): Add initializers and
4031 constructor.
4032 (dwarf2_frame_objfile_data): Store a comp_unit.
4033 (dwarf2_frame_find_fde): Update.
4034 (dwarf2_build_frame_info): Use "new".
4035
a9d65418
TT
40362020-02-12 Tom Tromey <tom@tromey.com>
4037
4038 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
4039 (dwarf2_fde_table): Typedef for std::vector.
4040 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
4041 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
4042 (decode_frame_entry): Update.
4043 (dwarf2_build_frame_info): Use "new".
4044
7559c217
CB
40452020-02-12 Christian Biesinger <cbiesinger@google.com>
4046
4047 * arm-tdep.c (arm_gdbarch_init): Update.
4048 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
4049 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
4050 have_neon, is_m>: Change to bool.
4051
aeefc73c
CB
40522020-02-12 Christian Biesinger <cbiesinger@google.com>
4053
4054 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
4055
d27b8e5f
TT
40562020-02-12 Tom Tromey <tom@tromey.com>
4057
4058 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
4059
cd5900f3
HD
40602020-02-12 Hannes Domani <ssbssa@yahoo.de>
4061
4062 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
4063 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
4064
f056b22b
TT
40652020-02-11 Tom Tromey <tom@tromey.com>
4066
4067 * psymtab.h: Update comment.
4068
f92ff6b5
TT
40692020-02-11 Tom Tromey <tom@tromey.com>
4070
4071 * gdb_obstack.h (struct auto_obstack): Use
4072 DISABLE_COPY_AND_ASSIGN.
4073
3fd6912b
TT
40742020-02-11 Tom Tromey <tom@tromey.com>
4075
4076 * dwarf2/frame.h (struct objfile): Don't forward declare.
4077
69ed9b74
CB
40782020-02-11 Christian Biesinger <cbiesinger@google.com>
4079
4080 * cris-tdep.c (cris_supply_gregset): Change signature to match
4081 what struct regset expects.
4082 (cris_regset): New struct.
4083 (fetch_core_registers): Remove.
4084 (cris_iterate_over_regset_sections): New function.
4085 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
4086 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
4087
bda874f6
CB
40882020-02-11 Christian Biesinger <cbiesinger@google.com>
4089
4090 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
4091 registers.
4092
754e1564
CB
40932020-02-11 Christian Biesinger <cbiesinger@google.com>
4094
4095 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
4096
8ddd8e0e
SM
40972020-02-11 Simon Marchi <simon.marchi@efficios.com>
4098
4099 * configure: Re-generate.
4100
898e7f60
SM
41012020-02-11 Simon Marchi <simon.marchi@efficios.com>
4102
4103 * configure: Re-generate.
4104
58df732b
SM
41052020-02-11 Simon Marchi <simon.marchi@efficios.com>
4106
4107 * acinclude: Update warning.m4 path.
4108 * warning.m4: Move to gdbsupport.
4109
da5bd37e
TT
41102020-02-11 Tom Tromey <tromey@adacore.com>
4111
4112 * remote.c (remote_console_output): Update.
4113 * printcmd.c (printf_command): Update.
4114 * event-loop.c (gdb_wait_for_event): Update.
4115 * linux-nat.c (sigchld_handler): Update.
4116 * remote-sim.c (gdb_os_write_stdout): Update.
4117 (gdb_os_flush_stdout): Update.
4118 (gdb_os_flush_stderr): Update.
4119 (gdb_os_write_stderr): Update.
4120 * exceptions.c (print_exception): Update.
4121 * remote-fileio.c (remote_fileio_func_read): Update.
4122 (remote_fileio_func_write): Update.
4123 * tui/tui.c (tui_enable): Update.
4124 * tui/tui-interp.c (tui_interp::init): Update.
4125 * utils.c (init_page_info): Update.
4126 (putchar_unfiltered, fputc_unfiltered): Update.
4127 (gdb_flush): Update.
4128 (emit_style_escape): Update.
4129 (flush_wrap_buffer, fputs_maybe_filtered): Update.
4130 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
4131 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
4132 (stderr_file::write): Update.
4133 (stderr_file::puts): Update.
4134 * ui-file.h (ui_file_isatty, ui_file_write)
4135 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
4136 (ui_file_puts): Don't declare.
4137
85f0dd3c
TV
41382020-02-10 Tom de Vries <tdevries@suse.de>
4139
4140 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
4141 sentinel to char *.
4142
2e927613
TV
41432020-02-09 Tom de Vries <tdevries@suse.de>
4144
4145 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
4146 filename if it matches "<artificial>".
4147
6bafc845
HD
41482020-02-09 Hannes Domani <ssbssa@yahoo.de>
4149
4150 * windows-tdep.c (struct enum_value_name): New struct.
4151 (create_enum): New function.
4152 (windows_get_siginfo_type): Create and use enum types.
4153
7928d571
HD
41542020-02-09 Hannes Domani <ssbssa@yahoo.de>
4155
4156 * NEWS: Mention $_siginfo support for Windows.
4157 * windows-nat.c (handle_exception): Set siginfo_er.
4158 (windows_nat_target::mourn_inferior): Reset siginfo_er.
4159 (windows_xfer_siginfo): New function.
4160 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
4161 * windows-tdep.c (struct windows_gdbarch_data): New struct.
4162 (init_windows_gdbarch_data): New function.
4163 (get_windows_gdbarch_data): New function.
4164 (windows_get_siginfo_type): New function.
4165 (windows_init_abi): Register windows_get_siginfo_type.
4166 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
4167
6751ebae
TT
41682020-02-08 Tom Tromey <tom@tromey.com>
4169
4170 * dwarf2/read.c (class cutu_reader) <cutu_reader,
4171 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
4172 <keep>: Declare method.
4173 <m_keep>: Remove member.
4174 <~cutu_reader>: Remove.
4175 (cutu_reader::init_tu_and_read_dwo_dies): Update.
4176 (cutu_reader::cutu_reader): Update.
4177 (cutu_reader::keep): Rename from ~cutu_reader.
4178 (process_psymtab_comp_unit, build_type_psymtabs_1)
4179 (process_skeletonless_type_unit, load_partial_comp_unit)
4180 (load_full_comp_unit, dwarf2_read_addr_index)
4181 (read_signatured_type): Update.
4182
135f5437
TT
41832020-02-08 Tom Tromey <tom@tromey.com>
4184
4185 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
4186 "want_partial_unit" parameter.
4187 (process_psymtab_comp_unit): Change want_partial_unit to bool.
4188 Inline check for DW_TAG_partial_unit.
4189 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
4190
9f66ff1c
TT
41912020-02-08 Tom Tromey <tom@tromey.com>
4192
4193 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
4194 read.c.
4195 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
4196 read.c.
4197
c8a7a66f
TT
41982020-02-08 Tom Tromey <tom@tromey.com>
4199
4200 * dwarf2/read.c (read_address): Move to comp-unit.c.
4201 (dwarf2_rnglists_process, dwarf2_ranges_process)
4202 (read_attribute_value, dwarf_decode_lines_1)
4203 (var_decode_location, decode_locdesc): Update.
4204 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
4205 read.c. Remove "cu" parameter.
4206 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
4207 method.
4208
8266302d
TT
42092020-02-08 Tom Tromey <tom@tromey.com>
4210
4211 * dwarf2/read.c (read_attribute_value, read_indirect_string)
4212 (read_indirect_line_string): Update.
4213 * dwarf2/comp-unit.c (read_offset): Remove.
4214 (read_comp_unit_head): Update.
4215 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
4216 method.
4217 (read_offset): Don't declare.
4218
4057dfde
TT
42192020-02-08 Tom Tromey <tom@tromey.com>
4220
4221 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
4222 * dwarf2/read.c (struct comp_unit_head): Move to
4223 dwarf2/comp-unit.h.
4224 (enum class rcuh_kind): Move to comp-unit.h.
4225 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
4226 (read_comp_unit_head, error_check_comp_unit_head)
4227 (read_and_check_comp_unit_head): Move to comp-unit.c.
4228 (read_offset, dwarf_unit_type_name): Likewise.
4229 (create_debug_type_hash_table, read_cutu_die_from_dwo)
4230 (cutu_reader::cutu_reader, read_call_site_scope)
4231 (find_partial_die, follow_die_offset): Update.
4232 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
4233
24aa364d
TT
42342020-02-08 Tom Tromey <tom@tromey.com>
4235
4236 * dwarf2/read.c (read_offset_1): Move to leb.c.
4237 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
4238 (dwarf_decode_macro_bytes): Update.
4239 * dwarf2/leb.c (read_offset): Rename; move from read.c.
4240 * dwarf2/leb.h (read_offset): Declare.
4241
2c7d5afc
TT
42422020-02-08 Tom Tromey <tom@tromey.com>
4243
4244 * dwarf2/read.c (dwarf2_section_size): Remove.
4245 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
4246 Update.
4247 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
4248
4075cb26
TT
42492020-02-08 Tom Tromey <tom@tromey.com>
4250
4251 * dwarf2/read.c (read_initial_length): Move to leb.c.
4252 * dwarf2/leb.h (read_initial_length): Declare.
4253 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
4254 handle_nonstd parameter.
4255 * dwarf2/frame.c (read_initial_length): Remove.
4256 (decode_frame_entry_1): Update.
4257
09ba997f
TT
42582020-02-08 Tom Tromey <tom@tromey.com>
4259
4260 * dwarf2/loc.c (dwarf2_find_location_expression)
4261 (dwarf_evaluate_loc_desc::get_tls_address)
4262 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
4263 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
4264 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
4265 (dwarf2_compile_property_to_c)
4266 (dwarf2_loc_desc_get_symbol_read_needs)
4267 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
4268 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
4269 (loclist_describe_location, loclist_tracepoint_var_ref)
4270 (loclist_generate_c_location): Update.
4271 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
4272 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
4273 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
4274 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
4275 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
4276 (dwarf2_per_cu_data::addr_size)
4277 (dwarf2_per_cu_data::ref_addr_size)
4278 (dwarf2_per_cu_data::text_offset)
4279 (dwarf2_per_cu_data::addr_type): Now methods.
4280 (per_cu_header_read_in): Make per_cu "const".
4281 (dwarf2_version): Remove.
4282 (dwarf2_per_cu_data::int_type): Now a method.
4283 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
4284 (set_die_type, read_array_type, read_subrange_index_type)
4285 (read_tag_string_type, read_subrange_type): Update.
4286 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
4287 offset_size, ref_addr_size, text_offset, addr_type, version,
4288 objfile, int_type, addr_sized_int_type>: Declare methods.
4289
96c738c0
TT
42902020-02-08 Tom Tromey <tom@tromey.com>
4291
4292 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
4293 Move earlier.
4294
8fdd972c
TT
42952020-02-08 Tom Tromey <tom@tromey.com>
4296
4297 * dwarf2/read.h (dwarf_line_debug): Declare.
4298 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
4299 * dwarf2/read.c: Move line_header code to new files.
4300 (dwarf_line_debug): No longer static.
4301 * dwarf2/line-header.c: New file.
4302 * dwarf2/line-header.h: New file.
4303
03075812
TT
43042020-02-08 Tom Tromey <tom@tromey.com>
4305
4306 * dwarf2/read.c (struct line_header) <file_full_name,
4307 file_file_name>: Return unique_xmalloc_ptr.
4308 (line_header::file_file_name): Update.
4309 (line_header::file_full_name): Update.
4310 (dw2_get_file_names_reader): Update.
4311 (macro_start_file): Update.
4312
bb822404
TT
43132020-02-08 Tom Tromey <tom@tromey.com>
4314
4315 * dwarf2/read.c (struct line_header) <file_full_name,
4316 file_file_name>: Declare methods.
4317 (dw2_get_file_names_reader): Update.
4318 (file_file_name): Now a method.
4319 (file_full_name): Likewise.
4320 (macro_start_file): Update.
4321
009b64fc
TT
43222020-02-08 Tom Tromey <tom@tromey.com>
4323
4324 * dwarf2/read.c (dwarf_always_disassemble)
4325 (show_dwarf_always_disassemble): Move to loc.c.
4326 (_initialize_dwarf2_read): Move "always-disassemble" registration
4327 to loc.c.
4328 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
4329 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
4330 static.
4331 (show_dwarf_always_disassemble): Move from read.c.
4332 (_initialize_dwarf2loc): Move always-disassemble from read.c.
4333
5895093f
TT
43342020-02-08 Tom Tromey <tom@tromey.com>
4335
4336 * dwarf2/read.c (~dwarf2_per_objfile): Update.
4337 (create_quick_file_names_table): Return htab_up.
4338 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
4339 Update.
4340 * dwarf2/read.h (struct dwarf2_per_objfile)
4341 <quick_file_names_table>: Now htab_up.
4342
b3b32279
TT
43432020-02-08 Tom Tromey <tom@tromey.com>
4344
4345 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
4346
1d33d811
TT
43472020-02-08 Tom Tromey <tom@tromey.com>
4348
4349 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
4350 Rewrite.
4351 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
4352 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
4353 (abbrev_table::abbrev_table): No longer inline.
4354 (ABBREV_HASH_SIZE): Remove.
4355 (abbrev_table::m_abbrevs): Now an htab_up.
4356
86de1d91
TT
43572020-02-08 Tom Tromey <tom@tromey.com>
4358
4359 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
4360 (cutu_reader): Update.
4361 (build_type_psymtabs_1): Update.
4362 * dwarf2/abbrev.c (abbrev_table::read): Rename.
4363 (abbrev_table::alloc_abbrev): Update.
4364 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
4365 (abbrev_table::read): New static method, renamed from
4366 abbrev_table_read_table.
4367 (abbrev_table::alloc_abbrev)
4368 (abbrev_table::add_abbrev): Now private.
4369 (abbrev_table::abbrev_table): Now private.
4370 (abbrev_table::m_abbrev_obstack): Now private. Rename.
4371
0335378b
TT
43722020-02-08 Tom Tromey <tom@tromey.com>
4373
4374 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
4375 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
4376 htab_up.
4377
48b490f2
TT
43782020-02-08 Tom Tromey <tom@tromey.com>
4379
4380 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
4381 htab_up.
4382 (lookup_dwo_unit_in_dwp): Update.
4383 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
4384 on obstack.
4385
bc68fb19
TT
43862020-02-08 Tom Tromey <tom@tromey.com>
4387
4388 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
4389 obstack.
4390
d15acc42
TT
43912020-02-08 Tom Tromey <tom@tromey.com>
4392
4393 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
4394 line_header_hash.
4395 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
4396 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
4397 Change type to htab_up.
4398
eaa5fa8b
TT
43992020-02-08 Tom Tromey <tom@tromey.com>
4400
4401 * dwarf2/read.c (allocate_type_unit_groups_table): Return
4402 htab_up. Don't allocate on obstack.
4403 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
4404 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
4405 Change type to htab_up.
4406
b0b6a987
TT
44072020-02-08 Tom Tromey <tom@tromey.com>
4408
4409 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
4410 Change type to htab_up.
4411 * dwarf2/read.c (create_signatured_type_table_from_index)
4412 (create_signatured_type_table_from_debug_names)
4413 (create_all_type_units, add_type_unit)
4414 (lookup_dwo_signatured_type, lookup_signatured_type)
4415 (process_skeletonless_type_unit): Update.
4416 (create_debug_type_hash_table, create_debug_types_hash_table):
4417 Change type of types_htab.
4418 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
4419 htab_up. Don't allocate on obstack.
4420 (create_cus_hash_table): Change type of cus_htab parameter.
4421 (struct dwo_file) <cus, tus>: Now htab_up.
4422 (lookup_dwo_signatured_type, lookup_dwo_cutu)
4423 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
4424 (queue_and_load_all_dwo_tus): Update.
4425 * dwarf2/index-write.c (write_gdbindex): Update.
4426 (write_debug_names): Update.
4427
39856def
TT
44282020-02-08 Tom Tromey <tom@tromey.com>
4429
4430 * dwarf2/read.h (struct dwarf2_queue_item): Move from
4431 dwarf2/read.c. Remove "next" member. Add constructor ntad
4432 destructor.
4433 (struct dwarf2_per_objfile) <queue>: New member.
4434 * dwarf2/read.c (struct dwarf2_queue_item): Move to
4435 dwarf2/read.h.
4436 (dwarf2_queue, dwarf2_queue_tail): Remove.
4437 (class dwarf2_queue_guard): Add parameter to constructor. Use
4438 DISABLE_COPY_AND_ASSIGN.
4439 <m_per_objfile>: New member.
4440 <~dwarf2_queue_guard>: Rewrite.
4441 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
4442 Update.
4443 (~dwarf2_queue_item): New.
4444
3e225074
TT
44452020-02-08 Tom Tromey <tom@tromey.com>
4446
4447 * dwarf2/read.c (struct die_info) <has_children>: New member.
4448 (dw2_get_file_names_reader): Remove has_children.
4449 (dw2_get_file_names): Update.
4450 (read_cutu_die_from_dwo): Remove has_children.
4451 (cutu_reader::init_tu_and_read_dwo_dies)
4452 (cutu_reader::cutu_reader): Update.
4453 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
4454 Remove has_children.
4455 (build_type_psymtabs_1, process_skeletonless_type_unit)
4456 (load_partial_comp_unit, load_full_comp_unit): Update.
4457 (create_dwo_cu_reader): Remove has_children.
4458 (create_cus_hash_table, read_die_and_children): Update.
4459 (read_full_die_1,read_full_die): Remove has_children.
4460 (read_signatured_type): Update.
4461 (class cutu_reader) <has_children>: Remove.
4462
82ca8957
TT
44632020-02-08 Tom Tromey <tom@tromey.com>
4464
4465 * dwarf2/expr.c: Rename from dwarf2expr.c.
4466 * dwarf2/expr.h: Rename from dwarf2expr.h.
4467 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
4468 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
4469 * dwarf2/frame.c: Rename from dwarf2-frame.c.
4470 * dwarf2/frame.h: Rename from dwarf2-frame.h.
4471 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
4472 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
4473 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
4474 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
4475 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
4476 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
4477 * dwarf2/loc.c: Rename from dwarf2loc.c.
4478 * dwarf2/loc.h: Rename from dwarf2loc.h.
4479 * dwarf2/read.c: Rename from dwarf2read.c.
4480 * dwarf2/read.h: Rename from dwarf2read.h.
4481 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
4482 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
4483 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
4484 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
4485 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
4486 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
4487 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
4488 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
4489 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
4490 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
4491 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
4492 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
4493 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
4494 Update.
4495 * Makefile.in (COMMON_SFILES): Update.
4496 (HFILES_NO_SRCDIR): Update.
4497
9e35d499
TT
44982020-02-08 Tom Tromey <tom@tromey.com>
4499
4500 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
4501 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
4502
1eba2311
TT
45032020-02-08 Tom Tromey <tom@tromey.com>
4504
4505 * dwarf2read.h (struct die_info): Don't declare.
4506
e41c2da2
TT
45072020-02-08 Tom Tromey <tom@tromey.com>
4508
4509 * dwarf2read.h (die_info_ptr): Remove typedef.
4510
4fc6c0d5
TT
45112020-02-08 Tom Tromey <tom@tromey.com>
4512
4513 * dwarf2read.c (read_call_site_scope)
4514 (handle_data_member_location, dwarf2_add_member_fn)
4515 (mark_common_block_symbol_computed, read_common_block)
4516 (attr_to_dynamic_prop, partial_die_info::read)
4517 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
4518 (dwarf2_symbol_mark_computed, set_die_type): Update.
4519 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
4520 method.
4521 (attr_form_is_block): Don't declare.
4522 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
4523
cd6c91b4
TT
45242020-02-08 Tom Tromey <tom@tromey.com>
4525
4526 * dwarf2read.c (dwarf2_find_base_address, )
4527 (read_call_site_scope, rust_containing_type)
4528 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
4529 (handle_data_member_location, dwarf2_add_member_fn)
4530 (get_alignment, read_structure_type, process_structure_scope)
4531 (mark_common_block_symbol_computed, read_common_block)
4532 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
4533 (partial_die_info::read, read_attribute_value, new_symbol)
4534 (lookup_die_type, dwarf2_get_ref_die_offset)
4535 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
4536 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
4537 (dwarf2_symbol_mark_computed): Update.
4538 * dwarf2/attribute.h (struct attribute) <value_as_address,
4539 form_is_section_offset, form_is_constant, form_is_ref>: Declare
4540 methods.
4541 (value_as_address, attr_form_is_section_offset)
4542 (attr_form_is_constant, attr_form_is_ref): Don't declare.
4543 * dwarf2/attribute.c (attribute::value_as_address)
4544 (attribute::form_is_section_offset, attribute::form_is_constant)
4545 (attribute::form_is_ref): Now methods.
4546
162dce55
TT
45472020-02-08 Tom Tromey <tom@tromey.com>
4548
4549 * dwarf2read.c (struct attribute, DW_STRING)
4550 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
4551 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
4552 (attr_form_is_block, attr_form_is_section_offset)
4553 (attr_form_is_constant, attr_form_is_ref): Move.
4554 * dwarf2/attribute.h: New file.
4555 * dwarf2/attribute.c: New file, from dwarf2read.c.
4556 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
4557
3054dd54
TT
45582020-02-08 Tom Tromey <tom@tromey.com>
4559
4560 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
4561 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
4562 Move.
4563 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
4564 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
4565 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
4566 abbrev.c.
4567 * dwarf2/abbrev.h: New file.
4568 * dwarf2/abbrev.c: New file, from dwarf2read.c.
4569 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
4570
96b79293
TT
45712020-02-08 Tom Tromey <tom@tromey.com>
4572
4573 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
4574 (dwarf2_section_size, dwarf2_get_section_info)
4575 (create_signatured_type_table_from_debug_names)
4576 (create_addrmap_from_aranges, read_debug_names_from_section)
4577 (get_gdb_index_contents_from_section, read_comp_unit_head)
4578 (error_check_comp_unit_head, read_abbrev_offset)
4579 (create_debug_type_hash_table, init_cu_die_reader)
4580 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
4581 (read_comp_units_from_section, create_cus_hash_table)
4582 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
4583 (create_dwp_v2_section, dwarf2_rnglists_process)
4584 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
4585 (abbrev_table_read_table, read_indirect_string_at_offset_from)
4586 (read_indirect_string_from_dwz, read_addr_index_1)
4587 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
4588 (dwarf_decode_macro_bytes, dwarf_decode_macros)
4589 (fill_in_loclist_baton): Update.
4590 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
4591 get_containing_section, get_bfd_owner, get_bfd_section,
4592 get_file_name, get_id, get_flags, empty, read>: Declare methods.
4593 (dwarf2_read_section, get_section_name, get_section_file_name)
4594 (get_containing_section, get_section_bfd_owner)
4595 (get_section_bfd_section, get_section_name, get_section_file_name)
4596 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
4597 declare.
4598 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
4599 (dwarf2_section_info::get_bfd_owner)
4600 (dwarf2_section_info::get_bfd_section)
4601 (dwarf2_section_info::get_name)
4602 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
4603 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
4604 (dwarf2_section_info::read): Now methods.
4605 * dwarf-index-write.c (class debug_names): Update.
4606
2c86cff9
TT
46072020-02-08 Tom Tromey <tom@tromey.com>
4608
4609 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
4610 Move to dwarf2/section.h.
4611 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
4612 (get_section_bfd_section, get_section_name)
4613 (get_section_file_name, get_section_id, get_section_flags)
4614 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
4615 dwarf2/section.c.
4616 * dwarf2/section.h: New file.
4617 * dwarf2/section.c: New file, from dwarf2read.c.
4618 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
4619
f4382c45
TT
46202020-02-08 Tom Tromey <tom@tromey.com>
4621
4622 * dwarf2read.h (read_unsigned_leb128): Don't declare.
4623 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
4624 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
4625 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
4626 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
4627 * dwarf2/leb.h: New file, from dwarf2read.c.
4628 * dwarf2/leb.c: New file, from dwarf2read.c.
4629 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
4630 Remove.
4631 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
4632 (COMMON_SFILES): Add dwarf2/leb.c.
4633
01840b7a
JB
46342020-02-08 Joel Brobecker <brobecker@adacore.com>
4635
4636 GDB 9.1 released.
4637
dfcb27e4
IB
46382020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
4639
4640 PR gdb/25190:
aac66a4c
SM
4641 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
4642 * gdb/remote.c (remote_console_output): Update.
4643 * gdb/ui-file.c (fputs_unfiltered): Rename to...
4644 (ui_file_puts): ...this.
4645 * gdb/ui-file.h (ui_file_puts): Add declaration.
4646 * gdb/utils.c (emit_style_escape): Update.
4647 (flush_wrap_buffer): Update.
4648 (fputs_maybe_filtered): Update.
4649 (fputs_unfiltered): Add function.
dfcb27e4 4650
faa17681
IB
46512020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
4652
aac66a4c
SM
4653 * gdb/event-loop.c (gdb_wait_for_event): Update.
4654 * gdb/printcmd.c (printf_command): Update.
4655 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
4656 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
4657 (gdb_os_flush_stderr): Update.
4658 * gdb/remote.c (remote_console_output): Update.
4659 * gdb/ui-file.c (gdb_flush): Rename to...
4660 (ui_file_flush): ...this.
4661 (stderr_file::write): Update.
4662 (stderr_file::puts): Update.
4663 * gdb/ui-file.h (gdb_flush): Rename to...
4664 (ui_file_flush): ...this.
4665 * gdb/utils.c (gdb_flush): Add function.
4666 * gdb/utils.h (gdb_flush): Add declaration.
faa17681 4667
5abbbe1d
TT
46682020-02-07 Tom Tromey <tromey@adacore.com>
4669
4670 PR breakpoints/24915:
4671 * source.c (find_and_open_source): Do not check basenames_may_differ.
4672
919adfe8
TT
46732020-02-07 Tom Tromey <tom@tromey.com>
4674
4675 * README: Update gdbserver documentation.
4676 * gdbserver: Move to top level.
4677 * configure.tgt (build_gdbserver): Remove.
4678 * configure.ac: Remove --enable-gdbserver.
4679 * configure: Rebuild.
4680 * Makefile.in (distclean): Don't mention gdbserver.
4681
1d5d29e7
SV
46822020-02-06 Shahab Vahedi <shahab@synopsys.com>
4683
4684 * source-cache.c (source_cache::ensure): Surround
4685 get_plain_source_lines with a try/catch.
4686 (source_cache::get_line_charpos): Get rid of try/catch
4687 and only check for the return value of "ensure".
4688 * tui/tui-source.c (tui_source_window::set_contents):
4689 Simplify "nlines" calculation.
4690
6eb1129c
SV
46912020-02-06 Shahab Vahedi <shahab@synopsys.com>
4692
4693 * MAINTAINERS (Write After Approval): Add myself.
4694
c6a42d11
CB
46952020-02-05 Christian Biesinger <cbiesinger@google.com>
4696
4697 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
4698 function call.
4699
c8ecdda6
CB
47002020-02-05 Christian Biesinger <cbiesinger@google.com>
4701
4702 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
4703
f6480e70
MR
47042020-02-05 Maciej W. Rozycki <macro@wdc.com>
4705
4706 * nat/riscv-linux-tdesc.h: New file.
4707 * nat/riscv-linux-tdesc.c: New file, taking code from...
4708 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
4709 ... here.
4710 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
4711 NATDEPFILES.
4712
dcc9fbc6
AB
47132020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
4714
4715 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
4716 we don't set the fake simulator ptid to the null_ptid.
4717
719546c4
SM
47182020-02-03 Simon Marchi <simon.marchi@efficios.com>
4719
4720 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
4721 * gdbthread.h (class thread_info) <resumed>: Likewise.
4722 * infrun.c (resume_1): Likewise.
4723 (proceed): Likewise.
4724 (infrun_thread_stop_requested): Likewise.
4725 (stop_all_threads): Likewise.
4726 (handle_inferior_event): Likewise.
4727 (restart_threads): Likewise.
4728 (finish_step_over): Likewise.
4729 (keep_going_stepped_thread): Likewise.
4730 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
4731 (linux_handle_extended_wait): Likewise.
4732 * record-btrace.c (get_thread_current_frame_id): Likewise.
4733 * record-full.c (record_full_wait_1): Likewise.
4734 * remote.c (remote_target::process_initial_stop_replies): Likewise.
4735 * target.c (target_resume): Likewise.
4736 * thread.c (set_running_thread): Likewise.
4737
e409c542
AKS
47382020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
4739
4740 * f-valprint.c (f77_print_array_1): Changed datatype of index
4741 variable to LONGEST from int to enable it to contain bound
4742 values correctly.
4743
ee98c0da
MR
47442020-02-03 Maciej W. Rozycki <macro@wdc.com>
4745
4746 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
4747 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
4748 offsets according to FLEN determined.
4749 (riscv_linux_nat_target::read_description): Determine FLEN
4750 dynamically.
4751 (riscv_linux_nat_target::fetch_registers): Size regset buffer
4752 according to FLEN determined.
4753 (riscv_linux_nat_target::store_registers): Likewise.
4754
aa66aac4
SV
47552020-02-01 Shahab Vahedi <shahab@synopsys.com>
4756
4757 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
4758 when reg->group is empty and reggroup is not.
4759
fd9faca8
TT
47602020-01-31 Tom Tromey <tromey@adacore.com>
4761
4762 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
4763 Call beneath target's mourn_inferior after unpushing.
4764
42330a68
AB
47652020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
4766
4767 PR tui/9765
4768 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
4769 have enough lines to fill the screen, still return the lowest
4770 address we found.
4771
7a27a45b
AB
47722020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
4773
4774 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
4775 '-', '<', and '>' commands.
4776
c47f70e2
PA
47772020-01-29 Pedro Alves <palves@redhat.com>
4778 Sergio Durigan Junior <sergiodj@redhat.com>
4779
4780 * infcmd.c (construct_inferior_arguments): Assert that
4781 'argc' is greater than 0.
4782
5133a315
LM
47832020-01-29 Luis Machado <luis.machado@linaro.org>
4784
4785 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
4786 (BRK_INSN_MASK): Define to 0xd4200000.
4787 (aarch64_program_breakpoint_here_p): New function.
4788 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
4789 * arch-utils.c (default_program_breakpoint_here_p): Moved from
4790 breakpoint.c.
4791 * arch-utils.h (default_program_breakpoint_here_p): Moved from
4792 breakpoint.h
4793 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
4794 call gdbarch_program_breakpoint_here_p.
4795 (program_breakpoint_here): Moved to arch-utils.c, renamed to
4796 default_program_breakpoint_here_p, changed return type to bool and
4797 simplified.
4798 * breakpoint.h (program_breakpoint_here): Moved prototype to
4799 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
4800 return type to bool.
4801 * gdbarch.c: Regenerate.
4802 * gdbarch.h: Regenerate.
4803 * gdbarch.sh (program_breakpoint_here_p): New method.
4804 * infrun.c (handle_signal_stop): Call
4805 gdbarch_program_breakpoint_here_p.
4806
168f8c6b
TT
48072020-01-26 Tom Tromey <tom@tromey.com>
4808
4809 * ctfread.c (struct ctf_fp_info): Reindent.
4810 (_initialize_ctfread): Remove.
4811
128a391f
TT
48122020-01-26 Tom Tromey <tom@tromey.com>
4813
4814 * psymtab.c (partial_map_expand_apply)
4815 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
4816 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
4817 (psym_print_stats, psym_expand_symtabs_for_function)
4818 (psym_map_symbol_filenames, psym_map_matching_symbols)
4819 (psym_expand_symtabs_matching)
4820 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
4821 (maintenance_check_psymtabs): Use new methods.
4822 * psympriv.h (struct partial_symtab) <readin_p,
4823 get_compunit_symtab>: New methods.
4824 <readin, compunit_symtab>: Remove members.
4825 (struct standard_psymtab): New.
4826 (struct legacy_psymtab): Derive from standard_psymtab.
4827 * dwarf2read.h (struct dwarf2_psymtab): Derive from
4828 standard_psymtab.
4829 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
4830
0494dbec
TT
48312020-01-26 Tom Tromey <tom@tromey.com>
4832
4833 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
4834 read_dependencies. Add assert.
4835 * psymtab.c (partial_symtab::read_dependencies): New method.
4836 * psympriv.h (struct partial_symtab) <read_dependencies>: New
4837 method.
4838 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
4839 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
4840 read_dependencies.
4841 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
4842 Add assert.
4843
8566b89b
TT
48442020-01-26 Tom Tromey <tom@tromey.com>
4845
4846 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
4847 Call expand_psymtab.
4848 (xcoff_read_symtab): Call expand_psymtab.
4849 (xcoff_start_psymtab, xcoff_end_psymtab): Set
4850 legacy_expand_psymtab.
4851 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
4852 method.
4853 (struct legacy_psymtab) <expand_psymtab>: Implement.
4854 <legacy_expand_psymtab>: New member.
4855 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
4856 (parse_partial_symbols): Set legacy_expand_psymtab.
4857 (psymtab_to_symtab_1): Change argument order. Call
4858 expand_psymtab.
4859 (new_psymtab): Set legacy_expand_psymtab.
4860 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
4861 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
4862 expand_psymtab.
4863 (dwarf2_psymtab::expand_psymtab): Rename from
4864 psymtab_to_symtab_1. Call expand_psymtab.
4865 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
4866 (dbx_end_psymtab): Likewise.
4867 (dbx_psymtab_to_symtab_1): Change argument order. Call
4868 expand_psymtab.
4869 (dbx_read_symtab): Call expand_psymtab.
4870 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
4871 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
4872 (ctf_psymtab::read_symtab): Call expand_psymtab.
4873
077cbab2
TT
48742020-01-26 Tom Tromey <tom@tromey.com>
4875
4876 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
4877 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
4878 messages.
4879 * mdebugread.c (mdebug_read_symtab): Remove prints.
4880 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
4881 assert.
4882 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
4883
891813be
TT
48842020-01-26 Tom Tromey <tom@tromey.com>
4885
4886 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
4887 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
4888 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
4889 legacy_symtab.
4890 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
4891 * psymtab.c (psymtab_to_symtab): Call method.
4892 (dump_psymtab): Update.
4893 * psympriv.h (struct partial_symtab): Add virtual destructor.
4894 <read_symtab>: New method.
4895 (struct legacy_symtab): New.
4896 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
4897 (struct pst_map) <pst>: Now a legacy_psymtab.
4898 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
4899 (new_psymtab): Use legacy_psymtab.
4900 * dwarf2read.h (struct dwarf2_psymtab): New.
4901 (struct dwarf2_per_cu_data) <psymtab>: Use it.
4902 * dwarf2read.c (dwarf2_create_include_psymtab)
4903 (dwarf2_build_include_psymtabs, create_type_unit_group)
4904 (create_partial_symtab, process_psymtab_comp_unit_reader)
4905 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
4906 (set_partial_user): Use dwarf2_psymtab.
4907 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
4908 (psymtab_to_symtab_1, process_full_comp_unit)
4909 (process_full_type_unit, dwarf2_ranges_read)
4910 (dwarf2_get_pc_bounds, psymtab_include_file_name)
4911 (dwarf_decode_lines): Use dwarf2_psymtab.
4912 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
4913 (add_address_entry_worker, write_one_signatured_type)
4914 (recursively_count_psymbols, recursively_write_psymbols)
4915 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
4916 (write_debug_names): Likewise.
4917 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
4918 <pst>: Now a legacy_psymtab.
4919 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
4920 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
4921 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
4922 * ctfread.c (struct ctf_psymtab): New.
4923 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
4924 ctf_psymtab.
4925 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
4926 (create_partial_symtab): Return a ctf_psymtab.
4927 (scan_partial_symbols): Update.
4928
c3693a1d
TT
49292020-01-26 Tom Tromey <tom@tromey.com>
4930
4931 * xcoffread.c (xcoff_start_psymtab): Use new.
4932 * psymtab.c (partial_symtab::partial_symtab): New constructor,
4933 renamed from start_psymtab_common.
4934 * psympriv.h (struct partial_symtab): Add new constructor.
4935 (start_psymtab_common): Don't declare.
4936 * mdebugread.c (parse_partial_symbols): Use new.
4937 * dwarf2read.c (create_partial_symtab): Use new.
4938 * dbxread.c (start_psymtab): Use new.
4939 * ctfread.c (create_partial_symtab): Use new.
4940
32caafd0
TT
49412020-01-26 Tom Tromey <tom@tromey.com>
4942
4943 * xcoffread.c (xcoff_end_psymtab): Use new.
4944 * psymtab.c (start_psymtab_common): Use new.
4945 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
4946 Update.
4947 * psympriv.h (struct partial_symtab): Add parameters to
4948 constructor. Don't inline.
4949 (allocate_psymtab): Don't declare.
4950 * mdebugread.c (new_psymtab): Use new.
4951 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
4952 * dbxread.c (dbx_end_psymtab): Use new.
4953
abaa2f23
TT
49542020-01-26 Tom Tromey <tom@tromey.com>
4955
4956 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
4957 allocate_psymtab. Update documentation.
4958 * psymtab.c (psymtab_storage::install_psymtab): Rename from
4959 allocate_psymtab. Do not use new.
4960 (allocate_psymtab): Use new. Update.
4961
6d94535f
TT
49622020-01-26 Tom Tromey <tom@tromey.com>
4963
4964 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
4965 * psymtab.c (psym_print_stats): Update.
4966 * psympriv.h (struct partial_symtab) <readin,
4967 psymtabs_addrmap_supported, anonymous>: Now bool.
4968 * mdebugread.c (psymtab_to_symtab_1): Update.
4969 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
4970 (build_type_psymtabs_reader, psymtab_to_symtab_1)
4971 (process_full_comp_unit, process_full_type_unit): Update.
4972 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
4973 * ctfread.c (psymtab_to_symtab): Update.
4974
6f17252b
TT
49752020-01-26 Tom Tromey <tom@tromey.com>
4976
4977 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
4978 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
4979 * psymtab.c (psymtab_storage): Delete psymtabs.
4980 (psymtab_storage::allocate_psymtab): Use new.
4981 (psymtab_storage::discard_psymtab): Use delete.
4982 * psympriv.h (struct partial_symtab): Add constructor and
4983 initializers.
4984
f6f1cebc
TT
49852020-01-26 Tom Tromey <tom@tromey.com>
4986
4987 * machoread.c: Do not include psympriv.h.
4988
e47e48f6
PW
49892020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4990
4991 * NEWS: Mention the new option and the set/show commands.
4992
a2fedca9
PW
49932020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4994
4995 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
4996 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
4997 (validate_exec_file): New variables, enums, functions.
4998 (exec_file_locate_attach, print_section_info): Style the filenames.
4999 (_initialize_exec): Install show_exec_file_mismatch_command and
5000 set_exec_file_mismatch_command.
5001 * gdbcore.h (validate_exec_file): Declare.
5002 * infcmd.c (attach_command): Call validate_exec_file.
5003 * remote.c ( remote_target::remote_add_inferior): Likewise.
5004
7ffa82e1
AB
50052020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
5006
5007 * frame.c (find_frame_sal): Move call to get_next_frame into more
5008 inner scope.
5009 * inline-frame.c (inilne_state) <inline_state>: Update argument
5010 types.
5011 (inilne_state) <skipped_symbol>: Rename to...
5012 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
5013 (skip_inline_frames): Build vector of skipped symbols and use this
5014 to reate the inline_state.
5015 (inline_skipped_symbol): Add a comment and some assertions, fetch
5016 skipped symbol from the list.
5017
3d92a3e3
AB
50182020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
5019
5020 * buildsym.c (lte_is_less_than): Delete.
5021 (buildsym_compunit::end_symtab_with_blockvector): Create local
5022 lambda function to sort line table entries, and use
5023 std::stable_sort instead of std::sort.
5024 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
5025 markers when looking for a previous line.
5026
94a72be7
AB
50272020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
5028
5029 * dwarf2read.c (lnp_state_machine::record_line): Include
5030 end_sequence parameter in debug print out. Record the line if we
5031 are at an end_sequence marker even if it's not the start of a
5032 statement.
5033 * symmisc.c (maintenance_print_one_line_table): Print end of
5034 sequence markers with 'END' not '0'.
5035
53af73bf
PA
50362020-01-24 Pedro Alves <palves@redhat.com>
5037
5038 PR gdb/25410
5039 * thread.c (scoped_restore_current_thread::restore): Use
5040 switch_to_inferior_no_thread.
5041 * exec.c: Include "progspace-and-thread.h".
5042 (add_target_sections, remove_target_sections):
5043 scoped_restore_current_pspace_and_thread instead of
5044 scoped_restore_current_thread.
5045 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
5046 and aspace to the inferior before calling clone_program_space.
5047 Remove stale comment.
5048
3050c6f4
CB
50492020-01-24 Christian Biesinger <cbiesinger@google.com>
5050
5051 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
5052 (arm_netbsd_nat_target::fetch_registers): ...this.
5053 (arm_nbsd_nat_target::store_registers): Rename to...
5054 (arm_netbsd_nat_target::store_registers): ...this.
5055
73685c7e
CB
50562020-01-24 Christian Biesinger <cbiesinger@google.com>
5057
5058 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
5059 register_t.
5060
89203d40
CB
50612020-01-24 Christian Biesinger <cbiesinger@google.com>
5062
5063 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
5064 Update comment.
5065 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
5066 Likewise.
5067 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
5068 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
5069 the correct replacement (iterate_over_regset_sections).
5070 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
5071 Update comment.
5072
1ba1ac88
AB
50732020-01-24 Graham Markall <graham.markall@embecosm.com>
5074
5075 PR gdb/23718
5076 * gdb/python/python.c (execute_gdb_command): Call
5077 async_enable_stdin in catch block.
5078
f3364a6d
AB
50792020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
5080
5081 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
5082 SWITCH_THRU_ALL_UIS.
5083
733d0a67
AB
50842020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
5085
5086 PR tui/9765
5087 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
5088 comment, add extra parameter, and update to store previous symbol
5089 when appropriate.
5090 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
5091 add extra parameter.
5092 * tui/tui-disasm.c (tui_disassemble): Update header comment,
5093 remove unneeded parameter, add try/catch around gdb_print_insn,
5094 rewrite to add items to asm_lines vector.
5095 (tui_find_backward_disassembly_start_address): New function.
5096 (tui_find_disassembly_address): Updated throughout.
5097 (tui_disasm_window::set_contents): Update for changes to
5098 tui_disassemble.
5099 (tui_disasm_window::do_scroll_vertical): No need to adjust the
5100 number of lines to scroll.
5101
b3b3bada
SM
51022020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
5103
5104 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
5105 (SECT_OFF_DATA): Likewise.
5106 (SECT_OFF_RODATA): Likewise.
5107 (SECT_OFF_TEXT): Likewise.
5108 (SECT_OFF_BSS): Likewise.
5109 (struct objfile) <text_section_offset, data_section_offset>: New
5110 methods.
5111 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
5112 objfile::text_section_offset.
5113 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
5114 * coffread.c (coff_symtab_read): Likewise.
5115 (enter_linenos): Likewise.
5116 (process_coff_symbol): Likewise.
5117 * ctfread.c (get_objfile_text_range): Likewise.
5118 * dtrace-probe.c (dtrace_probe::get_relocated_address):
5119 Use objfile::data_section_offset.
5120 * dwarf2-frame.c (execute_cfa_program): Use
5121 objfile::text_section_offset.
5122 (dwarf2_frame_find_fde): Likewise.
5123 * dwarf2read.c (create_addrmap_from_index): Likewise.
5124 (create_addrmap_from_aranges): Likewise.
5125 (dw2_find_pc_sect_compunit_symtab): Likewise.
5126 (process_psymtab_comp_unit_reader): Likewise.
5127 (add_partial_symbol): Likewise.
5128 (add_partial_subprogram): Likewise.
5129 (process_full_comp_unit): Likewise.
5130 (read_file_scope): Likewise.
5131 (read_func_scope): Likewise.
5132 (read_lexical_block_scope): Likewise.
5133 (read_call_site_scope): Likewise.
5134 (dwarf2_rnglists_process): Likewise.
5135 (dwarf2_ranges_process): Likewise.
5136 (dwarf2_ranges_read): Likewise.
5137 (dwarf_decode_lines_1): Likewise.
5138 (new_symbol): Likewise.
5139 (dwarf2_fetch_die_loc_sect_off): Likewise.
5140 (dwarf2_per_cu_text_offset): Likewise.
5141 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
5142 * hppa-tdep.c (read_unwind_info): Likewise.
5143 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
5144 * psympriv.h (struct partial_symtab): Likewise.
5145 * psymtab.c (find_pc_sect_psymtab): Likewise.
5146 * solib-svr4.c (enable_break): Likewise.
5147 * stap-probe.c (relocate_address): Use
5148 objfile::data_section_offset.
5149 * xcoffread.c (enter_line_range): Use
5150 objfile::text_section_offset.
5151 (read_xcoff_symtab): Likewise.
5152
ab53f382
SM
51532020-01-23 Simon Marchi <simon.marchi@efficios.com>
5154
5155 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
5156 declaration to narrower scopes.
5157
e7eee665
SM
51582020-01-23 Simon Marchi <simon.marchi@efficios.com>
5159
5160 * darwin-nat.h (struct darwin_exception_msg, enum
5161 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
5162 Move up.
5163 (class darwin_nat_target) <wait_1, check_new_threads,
5164 decode_exception_message, decode_message, stop_inferior,
5165 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
5166 * darwin-nat.c (darwin_check_new_threads): Rename to...
5167 (darwin_nat_target::check_new_threads): ... this.
5168 (darwin_suspend_inferior_it): Remove.
5169 (darwin_decode_exception_message): Rename to...
5170 (darwin_nat_target::decode_exception_message): ... this.
5171 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
5172 (darwin_decode_message): Rename to...
5173 (darwin_nat_target::decode_message): ... this.
5174 (cancel_breakpoint): Rename to...
5175 (darwin_nat_target::cancel_breakpoint): ... this.
5176 (darwin_wait): Rename to...
5177 (darwin_nat_target::wait_1): ... this. Use range-based for loop
5178 instead of iterate_over_inferiors.
5179 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
5180 (darwin_stop_inferior): Rename to...
5181 (darwin_nat_target::stop_inferior): ... this.
5182 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
5183 (darwin_init_thread_list): Rename to...
5184 (darwin_nat_target::init_thread_list): ... this.
5185 (darwin_ptrace_him): Rename to...
5186 (darwin_nat_target::ptrace_him): ... this.
5187 (darwin_nat_target::create_inferior): Pass lambda function to
5188 fork_inferior.
5189 (darwin_nat_target::detach): Call stop_inferior instead of
5190 darwin_stop_inferior.
5191 * fork-inferior.h (fork_inferior): Change init_trace_fun
5192 parameter to gdb::function_view.
5193 * fork-inferior.c (fork_inferior): Likewise.
5194
c162ed3e
HD
51952020-01-23 Hannes Domani <ssbssa@yahoo.de>
5196
5197 * i386-cygwin-tdep.c (core_process_module_section): Update.
5198 * windows-nat.c (struct lm_info_windows): Add text_offset.
5199 (windows_xfer_shared_libraries): Update.
5200 * windows-tdep.c (windows_xfer_shared_library):
5201 Add text_offset_cached argument.
5202 * windows-tdep.h (windows_xfer_shared_library): Update.
5203
a1237872
SM
52042020-01-21 Simon Marchi <simon.marchi@efficios.com>
5205
5206 * gdbarch.sh: Add declaration for _initialize_gdbarch.
5207
b3ee6dd9
SM
52082020-01-21 Simon Marchi <simon.marchi@efficios.com>
5209
5210 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
5211 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
5212 replace with range-based for.
5213 (gdbsim_interrupt_inferior): Remove.
5214 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
5215 with a range-based for. Inline code from
5216 gdbsim_interrupt_inferior.
5217
f9fac3c8
SM
52182020-01-21 Simon Marchi <simon.marchi@efficios.com>
5219
5220 * infrun.c (proceed): Fix indentation.
5221
f6474de9
TT
52222020-01-21 Tom Tromey <tromey@adacore.com>
5223
5224 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
5225 * python/python.c (python_extension_ops): Update.
5226 (gdbpy_colorize): New function.
5227 * python/lib/gdb/__init__.py (colorize): New function.
5228 * extension.h (ext_lang_colorize): Declare.
5229 * extension.c (ext_lang_colorize): New function.
5230 * extension-priv.h (struct extension_language_ops) <colorize>: New
5231 member.
5232 * cli/cli-style.c (_initialize_cli_style): Update help text.
5233
f0c702d4
LM
52342020-01-21 Luis Machado <luis.machado@linaro.org>
5235
5236 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
5237 <cond>: Change type to bool.
5238 (aarch64_displaced_step_b_cond): Update cond to use bool type.
5239 (aarch64_displaced_step_cb): Likewise.
5240 (aarch64_displaced_step_tb): Likewise.
5241
1ab139e5
LM
52422020-01-21 Luis Machado <luis.machado@linaro.org>
5243
5244 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
5245 output.
5246
0c271889
LM
52472020-01-21 Luis Machado <luis.machado@linaro.org>
5248
5249 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
5250 <pc_adjust>: Adjust the documentation.
5251 (aarch64_displaced_step_fixup): Check if PC really moved before
5252 adjusting it.
5253
4d89c1c7
TT
52542020-01-19 Tom Tromey <tom@tromey.com>
5255
5256 * disasm.c (~gdb_disassembler): New destructor.
5257 (gdb_buffered_insn_length): Call disassemble_free_target.
5258 * disasm.h (class gdb_disassembler): Declare destructor. Use
5259 DISABLE_COPY_AND_ASSIGN.
5260
c0ab21c2
TT
52612020-01-19 Tom Tromey <tom@tromey.com>
5262
5263 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
5264 (die_reader_func_ftype): Remove.
5265 (cutu_reader): New class.
5266 (dw2_get_file_names_reader): Remove "data" parameter.
5267 (dw2_get_file_names): Use cutu_reader.
5268 (create_debug_type_hash_table): Update.
5269 (read_cutu_die_from_dwo): Update comment.
5270 (lookup_dwo_unit): Add dwo_name parameter.
5271 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
5272 die_reader_func_ftype and data parameters.
5273 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
5274 Remove die_reader_func_ftype and data parameters.
5275 (~cutu_reader): New; from init_cutu_and_read_dies.
5276 (cutu_reader::cutu_reader): Rename from
5277 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
5278 and data parameters.
5279 (init_cutu_and_read_dies_simple): Remove.
5280 (struct process_psymtab_comp_unit_data): Remove.
5281 (process_psymtab_comp_unit_reader): Remove data parameter; add
5282 want_partial_unit and pretend_language parameters.
5283 (process_psymtab_comp_unit): Use cutu_reader.
5284 (build_type_psymtabs_reader): Remove data parameter.
5285 (build_type_psymtabs_1): Use cutu_reader.
5286 (process_skeletonless_type_unit): Likewise.
5287 (load_partial_comp_unit_reader): Remove.
5288 (load_partial_comp_unit): Use cutu_reader.
5289 (load_full_comp_unit_reader): Remove.
5290 (load_full_comp_unit): Use cutu_reader.
5291 (struct create_dwo_cu_data): Remove.
5292 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
5293 dwo_unit parameters.
5294 (create_cus_hash_table): Use cutu_reader.
5295 (struct dwarf2_read_addr_index_data): Remove.
5296 (dwarf2_read_addr_index_reader): Remove.
5297 (dwarf2_read_addr_index): Use cutu_reader.
5298 (read_signatured_type_reader): Remove.
5299 (read_signatured_type): Use cutu_reader.
5300
45bbae5c
TT
53012020-01-19 Tom Tromey <tom@tromey.com>
5302
5303 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
5304 * tui/tui-wingeneral.h (class tui_suppress_output): New.
5305 (tui_wrefresh): Declare.
5306 * tui/tui-wingeneral.c (suppress_output): New global.
5307 (tui_suppress_output, ~tui_suppress_output): New constructor and
5308 destructor.
5309 (tui_wrefresh): New function.
5310 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
5311 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
5312 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
5313 method.
5314 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
5315 tui_wrefresh.
5316 (tui_data_window::no_refresh): New method.
5317 (tui_data_item_window::refresh_window): Call tui_wrefresh.
5318 (tui_reg_command): Use tui_suppress_output
5319 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
5320 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
5321 method.
5322 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
5323
4f13c1c0
TT
53242020-01-19 Tom Tromey <tom@tromey.com>
5325
5326 * tui/tui-winsource.c (tui_update_source_windows_with_line):
5327 Handle case where symtab is null.
5328
fa47e446
SM
53292020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
5330
5331 * linux-fork.c (one_fork_p): Simplify.
5332
26f42329
SM
53332020-01-17 Simon Marchi <simon.marchi@efficios.com>
5334
5335 * top.c (struct qt_args): Remove.
5336 (kill_or_detach): Change return type to void, replace `void *`
5337 parameter with a proper one.
5338 (print_inferior_quit_action): Likewise.
5339 (quit_confirm): Use range-based for loop to iterate over inferiors.
5340 (quit_force): Likewise.
5341
a9ac81b1
SM
53422020-01-17 Simon Marchi <simon.marchi@efficios.com>
5343
5344 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
5345 `void *` parameter with proper parameters.
5346 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
5347 (print_one_inferior): Change return type to void, replace `void *`
5348 parameter with proper parameters.
5349 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
5350 inferiors.
5351 (get_other_inferior): Remove.
5352 (mi_cmd_remove_inferior): Use range-based loop to iterate over
5353 inferiors.
5354
788eca49
SM
53552020-01-17 Simon Marchi <simon.marchi@efficios.com>
5356
5357 * mi/mi-interp.c (report_initial_inferior): Remove.
5358 (mi_interp::init): Use range-based for to iterate over inferiors.
5359
d9bc85b6
SM
53602020-01-17 Simon Marchi <simon.marchi@efficios.com>
5361
5362 * python/py-inferior.c (build_inferior_list): Remove.
5363 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
5364
40c94099
CB
53652020-01-16 Christian Biesinger <cbiesinger@google.com>
5366
5367 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
5368 (btrace_stitch_trace): Likewise.
5369 * charset.c (intermediate_encoding): Likewise (vaild).
5370 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
5371 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
5372 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
5373
e0cdfe3c
HD
53742020-01-16 Hannes Domani <ssbssa@yahoo.de>
5375
5376 * windows-tdep.c (windows_get_tlb_type):
5377 Add rtl_user_process_parameters type.
5378
790f1718 53792020-01-16 Pedro Alves <palves@redhat.com>
aac66a4c 5380 Norbert Lange <nolange79@gmail.com>
790f1718
PA
5381
5382 PR build/24805
5383 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
5384 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
5385 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
5386 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
5387 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
5388 (ps_plog): Redeclare exported functions with default visibility.
5389
3112ed97
NA
53902020-01-16 Nitika Achra <Nitika.Achra@amd.com>
5391
5392 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
5393 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
5394
8dc3273e
SM
53952020-01-15 Simon Marchi <simon.marchi@efficios.com>
5396
5397 * infcmd.c (post_create_inferior): Use get_thread_regcache
5398 instead of get_current_regcache.
5399
ff47f4f0
TT
54002020-01-14 Tom Tromey <tom@tromey.com>
5401
5402 PR symtab/12535:
5403 * python/python.c (gdbpy_decode_line): Treat empty string the same
5404 as no argument.
5405
975f45b7
TT
54062020-01-14 Tom Tromey <tom@tromey.com>
5407
5408 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
5409
25e57356
TT
54102020-01-14 Tom Tromey <tom@tromey.com>
5411
5412 * nat/linux-btrace.c: Don't include <config.h>.
5413 * nat/linux-ptrace.c: Don't include <config.h>.
5414 * nat/x86-linux-dregs.c: Don't include <config.h>.
5415
05ea2a05
TT
54162020-01-14 Tom Tromey <tom@tromey.com>
5417
5418 * configure: Rebuild.
5419 * configure.ac: Move many checks to ../gdbsupport/common.m4.
5420
01027315
TT
54212020-01-14 Tom Tromey <tom@tromey.com>
5422
5423 * nat/x86-linux-dregs.c: Include configh.h.
5424 * nat/linux-ptrace.c: Include configh.h.
5425 * nat/linux-btrace.c: Include configh.h.
5426 * defs.h: Include config.h, bfd.h.
5427 * configure.ac: Don't source common.host.
5428 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
5429 * configure: Rebuild.
5430 * acinclude.m4: Update path.
5431 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
5432 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
5433 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
5434 (CLIBS): Add LIBSUPPORT.
5435 (CDEPS): Likewise.
5436 (COMMON_SFILES): Remove gdbsupport files.
5437 (HFILES_NO_SRCDIR): Likewise.
5438 (stamp-version): Update path to create-version.sh.
5439 (ALLDEPFILES): Remove gdbsupport files.
5440
b2ceabe8
TT
54412020-01-14 Tom Tromey <tom@tromey.com>
5442
5443 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
5444 USE_WIN32API when needed.
5445 * configure.ac (USE_WIN32API): Don't define.
5446 (WIN32LIBS): Use WIN32APILIBS.
5447 * configure: Rebuild.
5448
25c51f71
TT
54492020-01-14 Tom Tromey <tom@tromey.com>
5450
5451 * configure: Rebuild.
5452 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
5453
717c684d
BE
54542020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
5455
5456 * skip.c (skip_function_command): Make skip w/o arguments use the
5457 name of the inlined function if pc is inside any inlined function.
5458
7da6a5b9
LM
54592020-01-14 Luis Machado <luis.machado@linaro.org>
5460
5461 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
5462 * infrun.c (resume_1): Likewise.
5463 (handle_inferior_event): Remove stale comment.
5464 * linux-nat.c (linux_nat_target::resume): Update comments.
5465 (save_stop_reason): Likewise.
5466 (linux_nat_filter_event): Likewise.
5467 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
5468
44e4c775
AB
54692020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
5470
5471 * elfread.c (record_minimal_symbol): Set section index to 0 for
5472 non-allocatable sections.
5473
18a8505e
AT
5474
54752020-01-13 Ali Tamur <tamur@google.com>
5476
5477 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
5478 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
5479 to gdb::optional. Update comments.
5480 (dwo_file): Update comments.
5481 (read_attribute): Update API to take an additional out parameter,
5482 need_reprocess. This is used to mark attributes that need other
5483 attributes (e.g. str_offsets_base) for correct computation which may not
5484 have been read yet.
5485 (read_attribute_reprocess): New function declaration.
5486 (read_addr_index): Likewise.
5487 (read_dwo_str_index): Likewise.
5488 (read_stub_str_index): Likewise.
5489 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
5490 (lookup_addr_base): New function definition.
5491 (lookup_ranges_base): Likewise.
5492 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
5493 lookup_ranges_base.
5494 (init_cutu_and_read_dies): Update comments.
5495 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
5496 unit. This is used to inherit parent's str_offsets_base and addr_base.
5497 Update comments.
5498 (init_cutu_and_read_dies_simple): Reflect API changes.
5499 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
5500 (create_cus_hash_table): Change API to take parent compile unit.
5501 Reflect API changes.
5502 (open_and_init_dwo_file): Reflect API changes.
5503 (dwarf2_get_pc_bounds): Update comments.
5504 (dwarf2_record_block_ranges): Likewise.
5505 (read_full_die_1): Change implementation to reprocess attributes that
5506 need str_offsets_base and addr_base.
5507 (partial_die_info::read): Likewise.
5508 (read_attribute_reprocess): New function definition.
5509 (read_attribute_value): Change API to take an additional out parameter,
5510 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
5511 when a non-dwo compile unit has index based attributes.
5512 (read_attribute): Reflect API changes.
5513 (read_addr_index_1): Reflect API changes. Update comments.
5514 (dwarf2_read_addr_index_data): Reflect API changes.
5515 (dwarf2_read_addr_index): Likewise.
5516 (read_str_index): Change API and implementation. This becomes a helper
5517 to be used by the new string index related methods. Update error
5518 message and comments.
5519 (read_dwo_str_index): New function definition.
5520 (read_stub_str_index): Likewise.
5521 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
5522 * symfile.h (dwarf2_debug_sections): Likewise.
5523 * xcoffread.c (dwarf2_debug_sections): Likewise.
5524
0cac9354
SM
55252020-01-13 Simon Marchi <simon.marchi@efficios.com>
5526
5527 * gdbcore.h (struct core_fns) <core_read_registers>: Change
5528 core_reg_sect type to gdb_byte *.
5529 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
5530 * cris-tdep.c (fetch_core_registers): Likewise.
5531 * corelow.c (core_target::get_core_register_section): Change
5532 type of `contents` to gdb::byte_vector.
5533
9a6d629c
AB
55342020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
5535
5536 * tui/tui-wingeneral.c (box_win): Position the title in the center
5537 of the border.
5538
d8b2f9e3
SM
55392020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
5540
5541 * corelow.c (core_target::get_core_register_section): Use
5542 std::vector instead of alloca.
5543
bb564c58
SM
55442020-01-13 Simon Marchi <simon.marchi@efficios.com>
5545
5546 * warning.m4: Add -Wmissing-declarations to build_warnings.
5547 * configure: Re-generate.
5548
6b366111
SM
55492020-01-13 Simon Marchi <simon.marchi@efficios.com>
5550
5551 * python/python.c (init__gdb_module): Add declaration.
5552
6c265988
SM
55532020-01-13 Simon Marchi <simon.marchi@efficios.com>
5554
5555 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
5556 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
5557 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
5558 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
5559 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
5560 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
5561 * ada-exp.y (_initialize_ada_exp): Add declaration.
5562 * ada-lang.c (_initialize_ada_language): Add declaration.
5563 * ada-tasks.c (_initialize_tasks): Add declaration.
5564 * agent.c (_initialize_agent): Add declaration.
5565 * aix-thread.c (_initialize_aix_thread): Add declaration.
5566 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
5567 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
5568 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
5569 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
5570 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
5571 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
5572 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
5573 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
5574 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
5575 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
5576 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
5577 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
5578 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
5579 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
5580 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
5581 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
5582 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
5583 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
5584 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
5585 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
5586 * annotate.c (_initialize_annotate): Add declaration.
5587 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
5588 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
5589 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
5590 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
5591 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
5592 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
5593 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
5594 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
5595 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
5596 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
5597 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
5598 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
5599 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
5600 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
5601 * auto-load.c (_initialize_auto_load): Add declaration.
5602 * auxv.c (_initialize_auxv): Add declaration.
5603 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
5604 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
5605 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
5606 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
5607 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
5608 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
5609 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
5610 * breakpoint.c (_initialize_breakpoint): Add declaration.
5611 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
5612 * btrace.c (_initialize_btrace): Add declaration.
5613 * charset.c (_initialize_charset): Add declaration.
5614 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
5615 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
5616 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
5617 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
5618 * cli/cli-script.c (_initialize_cli_script): Add declaration.
5619 * cli/cli-style.c (_initialize_cli_style): Add declaration.
5620 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
5621 * coffread.c (_initialize_coffread): Add declaration.
5622 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
5623 * compile/compile.c (_initialize_compile): Add declaration.
5624 * complaints.c (_initialize_complaints): Add declaration.
5625 * completer.c (_initialize_completer): Add declaration.
5626 * copying.c (_initialize_copying): Add declaration.
5627 * corefile.c (_initialize_core): Add declaration.
5628 * corelow.c (_initialize_corelow): Add declaration.
5629 * cp-abi.c (_initialize_cp_abi): Add declaration.
5630 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
5631 * cp-support.c (_initialize_cp_support): Add declaration.
5632 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
5633 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
5634 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
5635 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
5636 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
5637 * ctfread.c (_initialize_ctfread): Add declaration.
5638 * d-lang.c (_initialize_d_language): Add declaration.
5639 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
5640 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
5641 * dbxread.c (_initialize_dbxread): Add declaration.
5642 * dcache.c (_initialize_dcache): Add declaration.
5643 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
5644 * disasm.c (_initialize_disasm): Add declaration.
5645 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
5646 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
5647 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
5648 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
5649 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
5650 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
5651 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
5652 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
5653 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
5654 * elfread.c (_initialize_elfread): Add declaration.
5655 * exec.c (_initialize_exec): Add declaration.
5656 * extension.c (_initialize_extension): Add declaration.
5657 * f-lang.c (_initialize_f_language): Add declaration.
5658 * f-valprint.c (_initialize_f_valprint): Add declaration.
5659 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
5660 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
5661 * filesystem.c (_initialize_filesystem): Add declaration.
5662 * findcmd.c (_initialize_mem_search): Add declaration.
5663 * findvar.c (_initialize_findvar): Add declaration.
5664 * fork-child.c (_initialize_fork_child): Add declaration.
5665 * frame-base.c (_initialize_frame_base): Add declaration.
5666 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
5667 * frame.c (_initialize_frame): Add declaration.
5668 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
5669 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
5670 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
5671 * gcore.c (_initialize_gcore): Add declaration.
5672 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
5673 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
5674 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
5675 * gdbarch.c (_initialize_gdbarch): Add declaration.
5676 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
5677 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
5678 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
5679 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
5680 * go-lang.c (_initialize_go_language): Add declaration.
5681 * go32-nat.c (_initialize_go32_nat): Add declaration.
5682 * guile/guile.c (_initialize_guile): Add declaration.
5683 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
5684 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
5685 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
5686 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
5687 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
5688 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
5689 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
5690 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
5691 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
5692 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
5693 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
5694 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
5695 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
5696 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
5697 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
5698 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
5699 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
5700 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
5701 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
5702 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
5703 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
5704 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
5705 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
5706 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
5707 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
5708 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
5709 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
5710 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
5711 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
5712 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
5713 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
5714 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
5715 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
5716 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
5717 * infcall.c (_initialize_infcall): Add declaration.
5718 * infcmd.c (_initialize_infcmd): Add declaration.
5719 * inflow.c (_initialize_inflow): Add declaration.
5720 * infrun.c (_initialize_infrun): Add declaration.
5721 * interps.c (_initialize_interpreter): Add declaration.
5722 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
5723 * jit.c (_initialize_jit): Add declaration.
5724 * language.c (_initialize_language): Add declaration.
5725 * linux-fork.c (_initialize_linux_fork): Add declaration.
5726 * linux-nat.c (_initialize_linux_nat): Add declaration.
5727 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
5728 * linux-thread-db.c (_initialize_thread_db): Add declaration.
5729 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
5730 * m2-lang.c (_initialize_m2_language): Add declaration.
5731 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
5732 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
5733 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
5734 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
5735 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
5736 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
5737 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
5738 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
5739 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
5740 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
5741 * machoread.c (_initialize_machoread): Add declaration.
5742 * macrocmd.c (_initialize_macrocmd): Add declaration.
5743 * macroscope.c (_initialize_macroscope): Add declaration.
5744 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
5745 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
5746 * maint.c (_initialize_maint_cmds): Add declaration.
5747 * mdebugread.c (_initialize_mdebugread): Add declaration.
5748 * memattr.c (_initialize_mem): Add declaration.
5749 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
5750 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
5751 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
5752 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
5753 * mi/mi-main.c (_initialize_mi_main): Add declaration.
5754 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
5755 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
5756 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
5757 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
5758 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
5759 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
5760 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
5761 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
5762 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
5763 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
5764 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
5765 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
5766 * mipsread.c (_initialize_mipsread): Add declaration.
5767 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
5768 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
5769 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
5770 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
5771 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
5772 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
5773 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
5774 * nto-procfs.c (_initialize_procfs): Add declaration.
5775 * objc-lang.c (_initialize_objc_language): Add declaration.
5776 * observable.c (_initialize_observer): Add declaration.
5777 * opencl-lang.c (_initialize_opencl_language): Add declaration.
5778 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
5779 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
5780 * osabi.c (_initialize_gdb_osabi): Add declaration.
5781 * osdata.c (_initialize_osdata): Add declaration.
5782 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
5783 * parse.c (_initialize_parse): Add declaration.
5784 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
5785 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
5786 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
5787 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
5788 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
5789 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
5790 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
5791 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
5792 * printcmd.c (_initialize_printcmd): Add declaration.
5793 * probe.c (_initialize_probe): Add declaration.
5794 * proc-api.c (_initialize_proc_api): Add declaration.
5795 * proc-events.c (_initialize_proc_events): Add declaration.
5796 * proc-service.c (_initialize_proc_service): Add declaration.
5797 * procfs.c (_initialize_procfs): Add declaration.
5798 * producer.c (_initialize_producer): Add declaration.
5799 * psymtab.c (_initialize_psymtab): Add declaration.
5800 * python/python.c (_initialize_python): Add declaration.
5801 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
5802 * record-btrace.c (_initialize_record_btrace): Add declaration.
5803 * record-full.c (_initialize_record_full): Add declaration.
5804 * record.c (_initialize_record): Add declaration.
5805 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
5806 * regcache.c (_initialize_regcache): Add declaration.
5807 * reggroups.c (_initialize_reggroup): Add declaration.
5808 * remote-notif.c (_initialize_notif): Add declaration.
5809 * remote-sim.c (_initialize_remote_sim): Add declaration.
5810 * remote.c (_initialize_remote): Add declaration.
5811 * reverse.c (_initialize_reverse): Add declaration.
5812 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
5813 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
5814 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
5815 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
5816 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
5817 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
5818 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
5819 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
5820 Add declaration.
5821 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
5822 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
5823 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
5824 * rust-exp.y (_initialize_rust_exp): Add declaration.
5825 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
5826 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
5827 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
5828 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
5829 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
5830 * score-tdep.c (_initialize_score_tdep): Add declaration.
5831 * ser-go32.c (_initialize_ser_dos): Add declaration.
5832 * ser-mingw.c (_initialize_ser_windows): Add declaration.
5833 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
5834 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
5835 * ser-uds.c (_initialize_ser_socket): Add declaration.
5836 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
5837 * serial.c (_initialize_serial): Add declaration.
5838 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
5839 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
5840 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
5841 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
5842 * skip.c (_initialize_step_skip): Add declaration.
5843 * sol-thread.c (_initialize_sol_thread): Add declaration.
5844 * solib-aix.c (_initialize_solib_aix): Add declaration.
5845 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
5846 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
5847 * solib-frv.c (_initialize_frv_solib): Add declaration.
5848 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
5849 * solib-target.c (_initialize_solib_target): Add declaration.
5850 * solib.c (_initialize_solib): Add declaration.
5851 * source-cache.c (_initialize_source_cache): Add declaration.
5852 * source.c (_initialize_source): Add declaration.
5853 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
5854 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
5855 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
5856 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
5857 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
5858 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
5859 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
5860 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
5861 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
5862 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
5863 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
5864 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
5865 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
5866 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
5867 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
5868 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
5869 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
5870 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
5871 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
5872 * stabsread.c (_initialize_stabsread): Add declaration.
5873 * stack.c (_initialize_stack): Add declaration.
5874 * stap-probe.c (_initialize_stap_probe): Add declaration.
5875 * std-regs.c (_initialize_frame_reg): Add declaration.
5876 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
5877 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
5878 * symfile.c (_initialize_symfile): Add declaration.
5879 * symmisc.c (_initialize_symmisc): Add declaration.
5880 * symtab.c (_initialize_symtab): Add declaration.
5881 * target.c (_initialize_target): Add declaration.
5882 * target-connection.c (_initialize_target_connection): Add
5883 declaration.
5884 * target-dcache.c (_initialize_target_dcache): Add declaration.
5885 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
5886 * thread.c (_initialize_thread): Add declaration.
5887 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
5888 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
5889 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
5890 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
5891 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
5892 * tracectf.c (_initialize_ctf): Add declaration.
5893 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
5894 * tracefile.c (_initialize_tracefile): Add declaration.
5895 * tracepoint.c (_initialize_tracepoint): Add declaration.
5896 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
5897 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
5898 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
5899 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
5900 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
5901 * tui/tui-win.c (_initialize_tui_win): Add declaration.
5902 * tui/tui.c (_initialize_tui): Add declaration.
5903 * typeprint.c (_initialize_typeprint): Add declaration.
5904 * ui-style.c (_initialize_ui_style): Add declaration.
5905 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
5906 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
5907 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
5908 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
5909 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
5910 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
5911 * unittests/filtered_iterator-selftests.c
5912 (_initialize_filtered_iterator_selftests): Add declaration.
5913 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
5914 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
5915 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
5916 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
5917 * unittests/main-thread-selftests.c
5918 (_initialize_main_thread_selftests): Add declaration.
5919 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
5920 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
5921 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
5922 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
5923 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
5924 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
5925 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
5926 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
5927 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
5928 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
5929 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
5930 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
5931 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
5932 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
5933 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
5934 declaration.
5935 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
5936 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
5937 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
5938 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
5939 * user-regs.c (_initialize_user_regs): Add declaration.
5940 * utils.c (_initialize_utils): Add declaration.
5941 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
5942 * valops.c (_initialize_valops): Add declaration.
5943 * valprint.c (_initialize_valprint): Add declaration.
5944 * value.c (_initialize_values): Add declaration.
5945 * varobj.c (_initialize_varobj): Add declaration.
5946 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
5947 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
5948 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
5949 * windows-nat.c (_initialize_windows_nat): Add declaration.
5950 (_initialize_check_for_gdb_ini): Add declaration.
5951 (_initialize_loadable): Add declaration.
5952 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
5953 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
5954 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
5955 * xcoffread.c (_initialize_xcoffread): Add declaration.
5956 * xml-support.c (_initialize_xml_support): Add declaration.
5957 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
5958 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
5959 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
5960 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
5961
e2de1eec
SM
59622020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
5963
5964 * regformats/regdat.sh: Generate declaration for init function.
5965
e0037b4c
SM
59662020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
5967
5968 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
5969 up.
5970 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
5971 close_one_inferior>: New methods.
5972 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
5973 pass down target to find_inferior_pid.
5974 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
5975 Pass down target to find_inferior_ptid.
5976 (gdbsim_target::create_inferior): Pass down target to
5977 add_thread_silent.
5978 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
5979 target down to find_inferior_ptid and switch_to_thread.
5980 (gdbsim_target::close): Update to call close_one_inferior.
5981 (struct resume_data): Remove.
5982 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
5983 directly, rather than through a void pointer.
5984 (gdbsim_target::resume): Update to call resume_one_inferior.
5985
58920b5b
SM
59862020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
5987
5988 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
5989
4ec89149
PA
59902020-01-12 Pedro Alves <palves@redhat.com>
5991
5992 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
5993 directly for the current inferior instead of
5994 discard_all_inferiors.
5995 (discard_all_inferiors): Delete.
5996
7c392d1d
TT
59972020-01-11 Tom Tromey <tom@tromey.com>
5998
5999 * tui/tui-wingeneral.c (box_win): Check cli_styling.
6000 * tui/tui-winsource.c (tui_source_window_base::refill): Use
6001 deprecated_safe_get_selected_frame.
6002
d9ebdab7
TBA
60032020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6004
6005 * inferior.c (print_inferior): Switch inferior before printing it.
6006
f3c469b9
PA
60072020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
6008 Pedro Alves <palves@redhat.com>
6009
6010 * progspace-and-thread.c (switch_to_program_space_and_thread):
6011 Assert there's an inferior for PSPACE. Use
6012 switch_to_inferior_no_thread to switch the inferior too.
6013 * progspace.c (program_space::~program_space): Call
6014 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
6015 (program_space::free_all_objfiles): Don't call clear_symtab_users
6016 here.
6017 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
6018
65c574f6
PA
60192020-01-10 Pedro Alves <palves@redhat.com>
6020
6021 * NEWS: Mention multi-target debugging, "info connections", and
6022 "add-inferior -no-connection".
6023
2f4fcf00
PA
60242020-01-10 Pedro Alves <palves@redhat.com>
6025
6026 * infrun.c: Include "target-connection.h".
6027 (check_multi_target_resumption): New.
6028 (proceed): Call it.
6029 * target-connection.c (make_target_connection_string): Make
6030 extern.
6031 * target-connection.h (make_target_connection_string): Declare.
6032
121b3efd
PA
60332020-01-10 Pedro Alves <palves@redhat.com>
6034
6035 * Makefile.in (COMMON_SFILES): Add target-connection.c.
6036 * inferior.c (uiout_field_connection): New function.
6037 (print_inferior): Add new "connection-id" column.
6038 (add_inferior_command): Show connection number/string of added
6039 inferior.
6040 * process-stratum-target.h
6041 (process_stratum_target::connection_string): New virtual method.
6042 (process_stratum_target::connection_number): New field.
6043 * remote.c (remote_target::connection_string): New override.
6044 * target-connection.c: New file.
6045 * target-connection.h: New file.
6046 * target.c (decref_target): Remove process_stratum targets from
6047 the connection list.
6048 (target_stack::push): Add process_stratum targets to the
6049 connection list.
6050
4f837581
PA
60512020-01-10 Pedro Alves <palves@redhat.com>
6052
6053 Revert:
6054 2016-04-12 Pedro Alves <palves@redhat.com>
6055 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
6056 Remove references to name.
6057 * serial.h (struct serial) <name>: Delete.
6058
f4ec508e
PA
60592020-01-10 Pedro Alves <palves@redhat.com>
6060
6061 * gdbarch-selftests.c (register_to_value_test): Remove "target
6062 already pushed" check.
6063
5b6d1e4f
PA
60642020-01-10 Pedro Alves <palves@redhat.com>
6065 John Baldwin <jhb@FreeBSD.org>
6066
6067 * aarch64-linux-nat.c
6068 (aarch64_linux_nat_target::thread_architecture): Adjust.
6069 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
6070 (task_command_1): Likewise.
6071 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
6072 (aix_thread_target::wait, aix_thread_target::fetch_registers)
6073 (aix_thread_target::store_registers)
6074 (aix_thread_target::thread_alive): Adjust.
6075 * amd64-fbsd-tdep.c: Include "inferior.h".
6076 (amd64fbsd_get_thread_local_address): Pass down target.
6077 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
6078 thread's gdbarch instead of target_gdbarch.
6079 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
6080 get_last_target_status.
6081 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
6082 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
6083 inferiors.
6084 (update_inserted_breakpoint_locations): Skip if inferiors with no
6085 execution.
6086 (update_global_location_list): When handling moribund locations,
6087 find representative inferior for location's pspace, and use thread
6088 count of its process_stratum target.
6089 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
6090 * bsd-uthread.c (bsd_uthread_target::wait): Use
6091 as_process_stratum_target and adjust thread_change_ptid and
6092 add_thread calls.
6093 (bsd_uthread_target::update_thread_list): Use
6094 as_process_stratum_target and adjust find_thread_ptid,
6095 thread_change_ptid and add_thread calls.
6096 * btrace.c (maint_btrace_packet_history_cmd): Adjust
6097 find_thread_ptid call.
6098 * corelow.c (add_to_thread_list): Adjust add_thread call.
6099 (core_target_open): Adjust add_thread_silent and thread_count
6100 calls.
6101 (core_target::pid_to_str): Adjust find_inferior_ptid call.
6102 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
6103 * event-top.c (async_disconnect): Pop targets from all inferiors.
6104 * exec.c (add_target_sections): Push exec target on all inferiors
6105 sharing the program space.
6106 (remove_target_sections): Remove the exec target from all
6107 inferiors sharing the program space.
6108 (exec_on_vfork): New.
6109 * exec.h (exec_on_vfork): Declare.
6110 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
6111 Pass it down.
6112 (fbsd_nat_target::update_thread_list): Adjust.
6113 (fbsd_nat_target::resume): Adjust.
6114 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
6115 down.
6116 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
6117 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
6118 get_thread_arch_regcache call.
6119 * fork-child.c (gdb_startup_inferior): Pass target down to
6120 startup_inferior and set_executing.
6121 * gdbthread.h (struct process_stratum_target): Forward declare.
6122 (add_thread, add_thread_silent, add_thread_with_info)
6123 (in_thread_list): Add process_stratum_target parameter.
6124 (find_thread_ptid(inferior*, ptid_t)): New overload.
6125 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
6126 parameter.
6127 (all_threads()): Delete overload.
6128 (all_threads, all_non_exited_threads): Add process_stratum_target
6129 parameter.
6130 (all_threads_safe): Use brace initialization.
6131 (thread_count): Add process_stratum_target parameter.
6132 (set_resumed, set_running, set_stop_requested, set_executing)
6133 (threads_are_executing, finish_thread_state): Add
6134 process_stratum_target parameter.
6135 (switch_to_thread): Use is_current_thread.
6136 * i386-fbsd-tdep.c: Include "inferior.h".
6137 (i386fbsd_get_thread_local_address): Pass down target.
6138 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
6139 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
6140 have_inferiors check.
6141 * inf-ptrace.c (inf_ptrace_target::create_inferior)
6142 (inf_ptrace_target::attach): Adjust.
6143 * infcall.c (run_inferior_call): Adjust.
6144 * infcmd.c (run_command_1): Pass target to
6145 scoped_finish_thread_state.
6146 (proceed_thread_callback): Skip inferiors with no execution.
6147 (continue_command): Rename 'all_threads' local to avoid hiding
6148 'all_threads' function. Adjust get_last_target_status call.
6149 (prepare_one_step): Adjust set_running call.
6150 (signal_command): Use user_visible_resume_target. Compare thread
6151 pointers instead of inferior_ptid.
6152 (info_program_command): Adjust to pass down target.
6153 (attach_command): Mark target's 'thread_executing' flag.
6154 (stop_current_target_threads_ns): New, factored out from ...
6155 (interrupt_target_1): ... this. Switch inferior before making
6156 target calls.
6157 * inferior-iter.h
6158 (struct all_inferiors_iterator, struct all_inferiors_range)
6159 (struct all_inferiors_safe_range)
6160 (struct all_non_exited_inferiors_range): Filter on
6161 process_stratum_target too. Remove explicit.
6162 * inferior.c (inferior::inferior): Push dummy target on target
6163 stack.
6164 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
6165 Add process_stratum_target parameter, and pass it down.
6166 (have_live_inferiors): Adjust.
6167 (switch_to_inferior_and_push_target): New.
6168 (add_inferior_command, clone_inferior_command): Handle
6169 "-no-connection" parameter. Use
6170 switch_to_inferior_and_push_target.
6171 (_initialize_inferior): Mention "-no-connection" option in
6172 the help of "add-inferior" and "clone-inferior" commands.
6173 * inferior.h: Include "process-stratum-target.h".
6174 (interrupt_target_1): Use bool.
6175 (struct inferior) <push_target, unpush_target, target_is_pushed,
6176 find_target_beneath, top_target, process_target, target_at,
6177 m_stack>: New.
6178 (discard_all_inferiors): Delete.
6179 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
6180 (all_inferiors, all_non_exited_inferiors): Add
6181 process_stratum_target parameter.
6182 * infrun.c: Include "gdb_select.h" and <unordered_map>.
6183 (target_last_proc_target): New global.
6184 (follow_fork_inferior): Push target on new inferior. Pass target
6185 to add_thread_silent. Call exec_on_vfork. Handle target's
6186 reference count.
6187 (follow_fork): Adjust get_last_target_status call. Also consider
6188 target.
6189 (follow_exec): Push target on new inferior.
6190 (struct execution_control_state) <target>: New field.
6191 (user_visible_resume_target): New.
6192 (do_target_resume): Call target_async.
6193 (resume_1): Set target's threads_executing flag. Consider resume
6194 target.
6195 (commit_resume_all_targets): New.
6196 (proceed): Also consider resume target. Skip threads of inferiors
6197 with no execution. Commit resumtion in all targets.
6198 (start_remote): Pass current inferior to wait_for_inferior.
6199 (infrun_thread_stop_requested): Consider target as well. Pass
6200 thread_info pointer to clear_inline_frame_state instead of ptid.
6201 (infrun_thread_thread_exit): Consider target as well.
6202 (random_pending_event_thread): New inferior parameter. Use it.
6203 (do_target_wait): Rename to ...
6204 (do_target_wait_1): ... this. Add inferior parameter, and pass it
6205 down.
6206 (threads_are_resumed_pending_p, do_target_wait): New.
6207 (prepare_for_detach): Adjust calls.
6208 (wait_for_inferior): New inferior parameter. Handle it. Use
6209 do_target_wait_1 instead of do_target_wait.
6210 (fetch_inferior_event): Adjust. Switch to representative
6211 inferior. Pass target down.
6212 (set_last_target_status): Add process_stratum_target parameter.
6213 Save target in global.
6214 (get_last_target_status): Add process_stratum_target parameter and
6215 handle it.
6216 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
6217 (context_switch): Check inferior_ptid == null_ptid before calling
6218 inferior_thread().
6219 (get_inferior_stop_soon): Pass down target.
6220 (wait_one): Rename to ...
6221 (poll_one_curr_target): ... this.
6222 (struct wait_one_event): New.
6223 (wait_one): New.
6224 (stop_all_threads): Adjust.
6225 (handle_no_resumed, handle_inferior_event): Adjust to consider the
6226 event's target.
6227 (switch_back_to_stepped_thread): Also consider target.
6228 (print_stop_event): Update.
6229 (normal_stop): Update. Also consider the resume target.
6230 * infrun.h (wait_for_inferior): Remove declaration.
6231 (user_visible_resume_target): New declaration.
6232 (get_last_target_status, set_last_target_status): New
6233 process_stratum_target parameter.
6234 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
6235 process_stratum_target parameter, and use it.
6236 (clear_inline_frame_state (thread_info*)): New.
6237 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
6238 process_stratum_target parameter.
6239 (clear_inline_frame_state (thread_info*)): Declare.
6240 * linux-fork.c (delete_checkpoint_command): Pass target down to
6241 find_thread_ptid.
6242 (checkpoint_command): Adjust.
6243 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
6244 instead of just tweaking inferior_ptid.
6245 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
6246 (exit_lwp): Pass target down to find_thread_ptid.
6247 (attach_proc_task_lwp_callback): Pass target down to
6248 add_thread/set_running/set_executing.
6249 (linux_nat_target::attach): Pass target down to
6250 thread_change_ptid.
6251 (get_detach_signal): Pass target down to find_thread_ptid.
6252 Consider last target status's target.
6253 (linux_resume_one_lwp_throw, resume_lwp)
6254 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
6255 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
6256 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
6257 (linux_nat_target::async_wait_fd): New.
6258 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
6259 target down.
6260 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
6261 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
6262 * linux-thread-db.c (struct thread_db_info::process_target): New
6263 field.
6264 (add_thread_db_info): Save target.
6265 (get_thread_db_info): New process_stratum_target parameter. Also
6266 match target.
6267 (delete_thread_db_info): New process_stratum_target parameter.
6268 Also match target.
6269 (thread_from_lwp): Adjust to pass down target.
6270 (thread_db_notice_clone): Pass down target.
6271 (check_thread_db_callback): Pass down target.
6272 (try_thread_db_load_1): Always push the thread_db target.
6273 (try_thread_db_load, record_thread): Pass target down.
6274 (thread_db_target::detach): Pass target down. Always unpush the
6275 thread_db target.
6276 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
6277 target down. Always unpush the thread_db target.
6278 (find_new_threads_callback, thread_db_find_new_threads_2)
6279 (thread_db_target::update_thread_list): Pass target down.
6280 (thread_db_target::pid_to_str): Pass current inferior down.
6281 (thread_db_target::get_thread_local_address): Pass target down.
6282 (thread_db_target::resume, maintenance_check_libthread_db): Pass
6283 target down.
6284 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
6285 * procfs.c (procfs_target::procfs_init_inferior): Declare.
6286 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
6287 (procfs_init_inferior): Rename to ...
6288 (procfs_target::procfs_init_inferior): ... this and adjust.
6289 (procfs_target::create_inferior, procfs_notice_thread)
6290 (procfs_do_thread_registers): Adjust.
6291 * ppc-fbsd-tdep.c: Include "inferior.h".
6292 (ppcfbsd_get_thread_local_address): Pass down target.
6293 * proc-service.c (ps_xfer_memory): Switch current inferior and
6294 program space as well.
6295 (get_ps_regcache): Pass target down.
6296 * process-stratum-target.c
6297 (process_stratum_target::thread_address_space)
6298 (process_stratum_target::thread_architecture): Pass target down.
6299 * process-stratum-target.h
6300 (process_stratum_target::threads_executing): New field.
6301 (as_process_stratum_target): New.
6302 * ravenscar-thread.c
6303 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
6304 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
6305 down.
6306 * record-btrace.c (record_btrace_target::info_record): Adjust.
6307 (record_btrace_target::record_method)
6308 (record_btrace_target::record_is_replaying)
6309 (record_btrace_target::fetch_registers)
6310 (get_thread_current_frame_id, record_btrace_target::resume)
6311 (record_btrace_target::wait, record_btrace_target::stop): Pass
6312 target down.
6313 * record-full.c (record_full_wait_1): Switch to event thread.
6314 Pass target down.
6315 * regcache.c (regcache::regcache)
6316 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
6317 process_stratum_target parameter and handle it.
6318 (current_thread_target): New global.
6319 (get_thread_regcache): Add process_stratum_target parameter and
6320 handle it. Switch inferior before calling target method.
6321 (get_thread_regcache): Pass target down.
6322 (get_thread_regcache_for_ptid): Pass target down.
6323 (registers_changed_ptid): Add process_stratum_target parameter and
6324 handle it.
6325 (registers_changed_thread, registers_changed): Pass target down.
6326 (test_get_thread_arch_aspace_regcache): New.
6327 (current_regcache_test): Define a couple local test_target_ops
6328 instances and use them for testing.
6329 (readwrite_regcache): Pass process_stratum_target parameter.
6330 (cooked_read_test, cooked_write_test): Pass mock_target down.
6331 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
6332 (get_thread_arch_aspace_regcache): Add process_stratum_target
6333 parameter.
6334 (regcache::target): New method.
6335 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
6336 (regcache::registers_changed_ptid): Add process_stratum_target
6337 parameter.
6338 (regcache::m_target): New field.
6339 (registers_changed_ptid): Add process_stratum_target parameter.
6340 * remote.c (remote_state::supports_vCont_probed): New field.
6341 (remote_target::async_wait_fd): New method.
6342 (remote_unpush_and_throw): Add remote_target parameter.
6343 (get_current_remote_target): Adjust.
6344 (remote_target::remote_add_inferior): Push target.
6345 (remote_target::remote_add_thread)
6346 (remote_target::remote_notice_new_inferior)
6347 (get_remote_thread_info): Pass target down.
6348 (remote_target::update_thread_list): Skip threads of inferiors
6349 bound to other targets. (remote_target::close): Don't discard
6350 inferiors. (remote_target::add_current_inferior_and_thread)
6351 (remote_target::process_initial_stop_replies)
6352 (remote_target::start_remote)
6353 (remote_target::remote_serial_quit_handler): Pass down target.
6354 (remote_target::remote_unpush_target): New remote_target
6355 parameter. Unpush the target from all inferiors.
6356 (remote_target::remote_unpush_and_throw): New remote_target
6357 parameter. Pass it down.
6358 (remote_target::open_1): Check whether the current inferior has
6359 execution instead of checking whether any inferior is live. Pass
6360 target down.
6361 (remote_target::remote_detach_1): Pass down target. Use
6362 remote_unpush_target.
6363 (extended_remote_target::attach): Pass down target.
6364 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
6365 (remote_target::append_resumption): Pass down target.
6366 (remote_target::append_pending_thread_resumptions)
6367 (remote_target::remote_resume_with_hc, remote_target::resume)
6368 (remote_target::commit_resume): Pass down target.
6369 (remote_target::remote_stop_ns): Check supports_vCont_probed.
6370 (remote_target::interrupt_query)
6371 (remote_target::remove_new_fork_children)
6372 (remote_target::check_pending_events_prevent_wildcard_vcont)
6373 (remote_target::remote_parse_stop_reply)
6374 (remote_target::process_stop_reply): Pass down target.
6375 (first_remote_resumed_thread): New remote_target parameter. Pass
6376 it down.
6377 (remote_target::wait_as): Pass down target.
6378 (unpush_and_perror): New remote_target parameter. Pass it down.
6379 (remote_target::readchar, remote_target::remote_serial_write)
6380 (remote_target::getpkt_or_notif_sane_1)
6381 (remote_target::kill_new_fork_children, remote_target::kill): Pass
6382 down target.
6383 (remote_target::mourn_inferior): Pass down target. Use
6384 remote_unpush_target.
6385 (remote_target::core_of_thread)
6386 (remote_target::remote_btrace_maybe_reopen): Pass down target.
6387 (remote_target::pid_to_exec_file)
6388 (remote_target::thread_handle_to_thread_info): Pass down target.
6389 (remote_target::async_wait_fd): New.
6390 * riscv-fbsd-tdep.c: Include "inferior.h".
6391 (riscv_fbsd_get_thread_local_address): Pass down target.
6392 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
6393 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
6394 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
6395 Adjust.
6396 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
6397 * solib-svr4.c (enable_break): Pass down target.
6398 * spu-multiarch.c (parse_spufs_run): Pass down target.
6399 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
6400 * target-delegates.c: Regenerate.
6401 * target.c (g_target_stack): Delete.
6402 (current_top_target): Return the current inferior's top target.
6403 (target_has_execution_1): Refer to the passed-in inferior's top
6404 target.
6405 (target_supports_terminal_ours): Check whether the initial
6406 inferior was already created.
6407 (decref_target): New.
6408 (target_stack::push): Incref/decref the target.
6409 (push_target, push_target, unpush_target): Adjust.
6410 (target_stack::unpush): Defref target.
6411 (target_is_pushed): Return bool. Adjust to refer to the current
6412 inferior's target stack.
6413 (dispose_inferior): Delete, and inline parts ...
6414 (target_preopen): ... here. Only dispose of the current inferior.
6415 (target_detach): Hold strong target reference while detaching.
6416 Pass target down.
6417 (target_thread_name): Add assertion.
6418 (target_resume): Pass down target.
6419 (target_ops::beneath, find_target_at): Adjust to refer to the
6420 current inferior's target stack.
6421 (get_dummy_target): New.
6422 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
6423 has a thread running.
6424 (initialize_targets): Rename to ...
6425 (_initialize_target): ... this.
6426 * target.h: Include "gdbsupport/refcounted-object.h".
6427 (struct target_ops): Inherit refcounted_object.
6428 (target_ops::shortname, target_ops::longname): Make const.
6429 (target_ops::async_wait_fd): New method.
6430 (decref_target): Declare.
6431 (struct target_ops_ref_policy): New.
6432 (target_ops_ref): New typedef.
6433 (get_dummy_target): Declare function.
6434 (target_is_pushed): Return bool.
6435 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
6436 (all_matching_threads_iterator::all_matching_threads_iterator):
6437 Handle filter target.
6438 * thread-iter.h (struct all_matching_threads_iterator, struct
6439 all_matching_threads_range, class all_non_exited_threads_range):
6440 Filter by target too. Remove explicit.
6441 * thread.c (threads_executing): Delete.
6442 (inferior_thread): Pass down current inferior.
6443 (clear_thread_inferior_resources): Pass down thread pointer
6444 instead of ptid_t.
6445 (add_thread_silent, add_thread_with_info, add_thread): Add
6446 process_stratum_target parameter. Use it for thread and inferior
6447 searches.
6448 (is_current_thread): New.
6449 (thread_info::deletable): Use it.
6450 (find_thread_ptid, thread_count, in_thread_list)
6451 (thread_change_ptid, set_resumed, set_running): New
6452 process_stratum_target parameter. Pass it down.
6453 (set_executing): New process_stratum_target parameter. Pass it
6454 down. Adjust reference to 'threads_executing'.
6455 (threads_are_executing): New process_stratum_target parameter.
6456 Adjust reference to 'threads_executing'.
6457 (set_stop_requested, finish_thread_state): New
6458 process_stratum_target parameter. Pass it down.
6459 (switch_to_thread): Also match inferior.
6460 (switch_to_thread): New process_stratum_target parameter. Pass it
6461 down.
6462 (update_threads_executing): Reimplement.
6463 * top.c (quit_force): Pop targets from all inferior.
6464 (gdb_init): Don't call initialize_targets.
6465 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
6466 Declare.
6467 (windows_add_thread, windows_delete_thread): Adjust.
6468 (get_windows_debug_event): Rename to ...
6469 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
6470 * tracefile-tfile.c (tfile_target_open): Pass down target.
6471 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
6472 Forward declare.
6473 (switch_to_thread): Add process_stratum_target parameter.
6474 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
6475 parameter. Use it.
6476 (mi_on_resume): Pass target down.
6477 * nat/fork-inferior.c (startup_inferior): Add
6478 process_stratum_target parameter. Pass it down.
6479 * nat/fork-inferior.h (startup_inferior): Add
6480 process_stratum_target parameter.
6481 * python/py-threadevent.c (py_get_event_thread): Pass target down.
6482
75c6c844
PA
64832020-01-10 Pedro Alves <palves@redhat.com>
6484
6485 * remote.c (remote_target::start_remote): Don't set inferior_ptid
6486 directly. Instead find the first thread in the thread list and
6487 use switch_to_thread.
6488
78f2c40a
PA
64892020-01-10 Pedro Alves <palves@redhat.com>
6490
6491 * remote.c (remote_target::remote_add_inferior): Don't bind a
6492 process to the current inferior if the current inferior is already
6493 bound to a process.
6494
e7af6c70
TBA
64952020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6496 Pedro Alves <palves@redhat.com>
6497
6498 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
6499 If no process is specified, return null_ptid instead of
6500 inferior_ptid.
6501 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
6502 TARGET_WAITKIND_SIGNALLED with no pid.
6503
31ba933e
PA
65042020-01-10 Pedro Alves <palves@redhat.com>
6505
6506 * remote.c (first_remote_resumed_thread): New.
6507 (remote_target::wait_as): Use it as default event_ptid instead of
6508 inferior_ptid.
6509
735fc2ca
PA
65102020-01-10 Pedro Alves <palves@redhat.com>
6511
6512 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
6513
c17e02e1
PA
65142020-01-10 Pedro Alves <palves@redhat.com>
6515
6516 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
6517 not -1.
6518
ab1ddbcf
PA
65192020-01-10 Pedro Alves <palves@redhat.com>
6520
6521 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
6522 ptid to get_last_target_status.
6523 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
6524 ptid to get_last_target_status.
6525 * infcmd.c (continue_command): Don't pass a target_waitstatus to
6526 get_last_target_status.
6527 (info_program_command): Don't pass a target_waitstatus to
6528 get_last_target_status.
6529 * infrun.c (init_wait_for_inferior): Use
6530 nullify_last_target_wait_ptid.
6531 (get_last_target_status): Handle nullptr arguments.
6532 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
6533 (print_stop_event): Don't pass a ptid to get_last_target_status.
6534 (normal_stop): Don't pass a ptid to get_last_target_status.
6535 * infrun.h (get_last_target_status, set_last_target_status): Move
6536 comments here and update.
6537 (nullify_last_target_wait_ptid): Declare.
6538 * linux-fork.c (fork_load_infrun_state): Remove local extern
6539 declaration of nullify_last_target_wait_ptid.
6540 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
6541 to get_last_target_status.
6542
f3f8ece4
PA
65432020-01-10 Pedro Alves <palves@redhat.com>
6544
6545 * gdbthread.h (scoped_restore_current_thread)
6546 <dont_restore, restore, m_dont_restore>: Declare.
6547 * thread.c (thread_alive): Add assertion. Return bool.
6548 (switch_to_thread_if_alive): New.
6549 (prune_threads): Switch inferior/thread.
6550 (print_thread_info_1): Switch thread before calling target methods.
6551 (scoped_restore_current_thread::restore): New, factored out from
6552 ...
6553 (scoped_restore_current_thread::~scoped_restore_current_thread):
6554 ... this.
6555 (scoped_restore_current_thread::scoped_restore_current_thread):
6556 Add assertion.
6557 (thread_apply_all_command, thread_select): Use
6558 switch_to_thread_if_alive.
6559 * infrun.c (proceed, restart_threads, handle_signal_stop)
6560 (switch_back_to_stepped_thread): Switch current thread before
6561 calling target methods.
6562
db2d40f7
PA
65632020-01-10 Pedro Alves <palves@redhat.com>
6564
6565 * inferior.c (switch_to_inferior_no_thread): New function,
6566 factored out from ...
6567 (inferior_command): ... here.
6568 * inferior.h (switch_to_inferior_no_thread): Declare.
6569 * mi/mi-main.c (run_one_inferior): Use
6570 switch_to_inferior_no_thread.
6571
bd420a2d
PA
65722020-01-10 Pedro Alves <palves@redhat.com>
6573
6574 * infcmd.c (kill_command): Remove dead code.
6575
ddf5db90
PA
65762020-01-10 Pedro Alves <palves@redhat.com>
6577
6578 * remote.c (remote_target::mourn_inferior): No longer check
6579 whether the target is running.
6580
5018ce90
PA
65812020-01-10 Pedro Alves <palves@redhat.com>
6582
6583 * corelow.c (core_target::has_execution): Change parameter type to
6584 inferior pointer.
6585 * inferior.c (number_of_live_inferiors): Use
6586 inferior::has_execution instead of target_has_execution_1.
6587 * inferior.h (inferior::has_execution): New.
6588 * linux-thread-db.c (thread_db_target::update_thread_list): Use
6589 inferior::has_execution instead of target_has_execution_1.
6590 * process-stratum-target.c
6591 (process_stratum_target::has_execution): Change parameter type to
6592 inferior pointer. Check the inferior's PID instead of
6593 inferior_ptid.
6594 * process-stratum-target.h
6595 (process_stratum_target::has_execution): Change parameter type to
6596 inferior pointer.
6597 * record-full.c (record_full_core_target::has_execution): Change
6598 parameter type to inferior pointer.
6599 * target.c (target_has_execution_1): Change parameter type to
6600 inferior pointer.
6601 (target_has_execution_current): Adjust.
6602 * target.h (target_ops::has_execution): Change parameter type to
6603 inferior pointer.
6604 (target_has_execution_1): Change parameter type to inferior
6605 pointer. Change return type to bool.
6606 * tracefile.h (tracefile_target::has_execution): Change parameter
6607 type to inferior pointer.
6608
74375d18
PA
66092020-01-10 Pedro Alves <palves@redhat.com>
6610
6611 * exceptions.c (print_flush): Remove current_top_target() check.
6612
acdf84a6
PA
66132020-01-10 Pedro Alves <palves@redhat.com>
6614
6615 * remote.c (show_remote_exec_file): Show the current inferior's
6616 exec-file instead of the command variable's value.
6617
ec506636
PA
66182020-01-10 Pedro Alves <palves@redhat.com>
6619
6620 * record-full.c (record_full_resume_ptid): New global.
6621 (record_full_target::resume): Set it.
6622 (record_full_wait_1): Use record_full_resume_ptid instead of
6623 inferior_ptid.
6624
873657b9
PA
66252020-01-10 Pedro Alves <palves@redhat.com>
6626
6627 * gdbthread.h (scoped_restore_current_thread)
6628 <dont_restore, restore, m_dont_restore>: Declare.
6629 * thread.c (thread_alive): Add assertion. Return bool.
6630 (switch_to_thread_if_alive): New.
6631 (prune_threads): Switch inferior/thread.
6632 (print_thread_info_1): Switch thread before calling target methods.
6633 (scoped_restore_current_thread::restore): New, factored out from
6634 ...
6635 (scoped_restore_current_thread::~scoped_restore_current_thread):
6636 ... this.
6637 (scoped_restore_current_thread::scoped_restore_current_thread):
6638 Add assertion.
6639 (thread_apply_all_command, thread_select): Use
6640 switch_to_thread_if_alive.
6641
7f0ae84c
GB
66422020-01-10 George Barrett <bob@bob131.so>
6643
6644 * stap-probe.c (stap_modify_semaphore): Don't check for null
6645 semaphores.
6646 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
6647 for null semaphores.
6648
f5a7c406
AB
66492020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
6650
6651 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
6652 all source windows, and maintain horizontal scroll status while
6653 doing so.
6654
9ae6bf64
TT
66552020-01-09 Tom Tromey <tom@tromey.com>
6656
6657 PR tui/18932:
6658 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
6659 update_source_window, not print_source_lines.
6660
b2efe70c
AB
66612020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
6662
6663 * tui/tui.c (tui_enable): Register tui hooks after calling
6664 tui_display_main.
6665
5f23a082
CB
66662020-01-09 Christian Biesinger <cbiesinger@google.com>
6667
6668 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
6669
3061113b
SM
66702020-01-08 Simon Marchi <simon.marchi@efficios.com>
6671
6672 * thread.c (print_thread_info_1): Fix indentation.
6673
57d75002
CB
66742020-01-09 Christian Biesinger <cbiesinger@google.com>
6675
6676 * symtab.c (general_symbol_info::compute_and_set_names): Move the
6677 unique_xmalloc_ptr outside the if to always free the demangled name.
6678
6a053cb1
TT
66792020-01-08 Tom Tromey <tromey@adacore.com>
6680
6681 * xcoffread.c (enter_line_range, read_xcoff_symtab)
6682 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
6683 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
6684 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
6685 Remove.
6686 (section_offsets): New typedef.
6687 * symtab.c (fixup_section, get_msymbol_address): Update.
6688 * symmisc.c (dump_msymbols): Update.
6689 * symfile.h (relative_addr_info_to_section_offsets)
6690 (symfile_map_offsets_to_segments): Update.
6691 * symfile.c (build_section_addr_info_from_objfile)
6692 (init_objfile_sect_indices): Update.
6693 (struct place_section_arg): Change type of "offsets".
6694 (place_section): Update.
6695 (relative_addr_info_to_section_offsets): Change type of
6696 "section_offsets". Remove "num_sections" parameter.
6697 (default_symfile_offsets, syms_from_objfile_1)
6698 (set_objfile_default_section_offset): Update.
6699 (reread_symbols): No need to preserve section offsets by hand.
6700 (symfile_map_offsets_to_segments): Change type of "offsets".
6701 * stap-probe.c (relocate_address): Update.
6702 * stabsread.h (process_one_symbol): Update.
6703 * solib-target.c (struct lm_info_target) <offsets>: Change type.
6704 (solib_target_relocate_section_addresses): Update.
6705 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
6706 Update.
6707 * solib-frv.c (frv_relocate_main_executable): Update.
6708 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
6709 * solib-aix.c (solib_aix_get_section_offsets): Change return
6710 type.
6711 (solib_aix_solib_create_inferior_hook): Update.
6712 * remote.c (remote_target::get_offsets): Update.
6713 * psymtab.c (find_pc_sect_psymtab): Update.
6714 * psympriv.h (struct partial_symbol) <address, text_low,
6715 text_high>: Update.
6716 * objfiles.h (obj_section_offset): Update.
6717 (struct objfile) <section_offsets>: Change type.
6718 <num_sections>: Remove.
6719 (objfile_relocate): Update.
6720 * objfiles.c (entry_point_address_query): Update
6721 (relocate_one_symbol): Change type of "section_offsets".
6722 (objfile_relocate1, objfile_relocate1): Change type of
6723 "new_offsets".
6724 (objfile_rebase1): Update.
6725 * mipsread.c (mipscoff_symfile_read): Update.
6726 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
6727 parameter.
6728 * mdebugread.c (parse_symbol): Change type of "section_offsets".
6729 (parse_external, psymtab_to_symtab_1): Update.
6730 * machoread.c (macho_symfile_offsets): Update.
6731 * ia64-tdep.c (ia64_find_unwind_table): Update.
6732 * hppa-tdep.c (read_unwind_info): Update.
6733 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
6734 * dwarf2read.c (create_addrmap_from_index)
6735 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
6736 (process_psymtab_comp_unit_reader, add_partial_symbol)
6737 (add_partial_subprogram, process_full_comp_unit)
6738 (read_file_scope, read_func_scope, read_lexical_block_scope)
6739 (read_call_site_scope, dwarf2_rnglists_process)
6740 (dwarf2_ranges_process, dwarf2_ranges_read)
6741 (dwarf_decode_lines_1, var_decode_location, new_symbol)
6742 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
6743 Update.
6744 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
6745 Update.
6746 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
6747 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
6748 (process_one_symbol): Change type of "section_offsets".
6749 * ctfread.c (get_objfile_text_range): Update.
6750 * coffread.c (coff_symtab_read, enter_linenos)
6751 (process_coff_symbol): Update.
6752 * coff-pe-read.c (add_pe_forwarded_sym): Update.
6753 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
6754
456e800a
TT
67552020-01-08 Tom Tromey <tromey@adacore.com>
6756
6757 * dwarf2read.c (parse_macro_definition): Use std::string.
6758 (parse_macro_definition): Likewise.
6759
6dfa2fc2
TT
67602020-01-08 Tom Tromey <tromey@adacore.com>
6761
6762 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
6763 (ATTR_ALLOC_CHUNK): Remove.
6764
421d1616
TT
67652020-01-08 Tom Tromey <tromey@adacore.com>
6766
6767 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
6768
43816ebc
TT
67692020-01-08 Tom Tromey <tromey@adacore.com>
6770
6771 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
6772 (dwarf2_compute_name, open_dwo_file): Likewise.
6773 (process_enumeration_scope): Use std::vector.
6774 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
6775 (partial_die_info::fixup, dwarf2_start_subfile)
6776 (guess_full_die_structure_name, dwarf2_name): Likewise.
6777 (determine_prefix): Update.
6778 (guess_full_die_structure_name): Make return type const.
6779 (partial_die_full_name): Return unique_xmalloc_ptr.
6780 (DW_FIELD_ALLOC_CHUNK): Remove.
6781
4212d509
TT
67822020-01-07 Tom Tromey <tromey@adacore.com>
6783
6784 PR build/24937:
6785 * stap-probe.c (class stap_static_probe_ops): Add constructor.
6786
06a6207a
JT
67872020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
6788
6789 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
6790
153d79c4
AB
67912020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
6792
6793 * stack.c (print_frame_info): Move disassemble_next_line code
6794 inside source_print block.
6795
66182876
EZ
67962020-01-06 Eli Zaretskii <eliz@gnu.org>
6797
6798 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
6799 gdb/signals.h, as we are now using native signal symbols.
6800
cbfa8581
SV
68012020-01-06 Shahab Vahedi <shahab@synopsys.com>
6802
6803 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
6804 overflow by an early check of content vs threshold.
aac66a4c 6805 * tui/tui-source.c (tui_source_window::line_is_displayed):
cbfa8581
SV
6806 Likewise.
6807
3f602821
EZ
68082020-01-06 Eli Zaretskii <eliz@gnu.org>
6809
6810 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
6811
a08c904d
JT
68122020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
6813
6814 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
6815 export table if no section contains it's RVA.
6816
89a65580
EZ
68172020-01-06 Eli Zaretskii <eliz@gnu.org>
6818
6819 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
6820
8b7fcda2
HD
68212020-01-06 Hannes Domani <ssbssa@yahoo.de>
6822
6823 * source.c (print_source_lines_base): Set last_line_listed.
6824
a61b4f69
SV
68252020-01-06 Shahab Vahedi <shahab@synopsys.com>
6826
6827 * tui/tui-disasm.c: Remove trailing spaces.
6828
559e7e50
EZ
68292020-01-06 Eli Zaretskii <eliz@gnu.org>
6830 Pedro Alves <palves@redhat.com>
6831
6832 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
6833 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
6834 (windows_gdb_signal_to_target): New function, uses the above
6835 enumeration to convert GDB internal signal codes to equivalent
6836 Windows codes.
6837 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
6838 * windows-nat.c: Include "gdb_wait.h".
6839 (get_windows_debug_event): Extract the fatal exception from the
6840 exit status and convert to the equivalent Posix signal number.
6841 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
6842 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
6843 * gdbsupport/gdb_wait.c: New file, implements
6844 windows_status_to_termsig.
6845 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
6846 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
6847
f2302a34
AB
68482020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
6849
6850 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
6851 show_layout.
6852
6a5206eb
LM
68532020-01-05 Luis Machado <luis.machado@linaro.org>
6854
6855 * aarch64-linux-nat.c
6856 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
6857 and bfd_mach_aarch64.
6858
6ec1d75e
PW
68592020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6860
6861 * ui-file.c (stdio_file::can_emit_style_escape)
6862 (tee_file::can_emit_style_escape): Ensure style is used also on
6863 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
6864 to gdb_stdout.
6865 * main.c (set_gdb_data_directory): Use file style to output the
6866 warning that the given pathname is not a directory.
6867 * top.c (show_history_filename, gdb_safe_append_history)
6868 (show_gdb_datadir): Use file style.
6869
44f81a76
HD
68702020-01-03 Hannes Domani <ssbssa@yahoo.de>
6871
6872 * solib-target.c (struct lm_info_target):
6873 Change offsets to be a unique_xmalloc_ptr.
6874 (solib_target_relocate_section_addresses): Update.
6875
25057eb0
HD
68762020-01-03 Hannes Domani <ssbssa@yahoo.de>
6877
6878 * windows-nat.c (windows_clear_solib): Free so_list linked list.
6879
6e2118f5
BE
68802020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
6881
6882 * MAINTAINERS (Write After Approval): Add myself.
6883
8133c7dc
LM
68842020-01-02 Luis Machado <luis.machado@linaro.org>
6885
6886 * proc-service.c (get_ps_regcache): Remove reference to obsolete
6887 Cell BE architecture.
6888 * target.h (struct target_ops) <thread_architecture>: Likewise.
6889
48189bec
HD
68902020-01-01 Hannes Domani <ssbssa@yahoo.de>
6891
6892 * Makefile.in: Use INSTALL_PROGRAM_ENV.
6893
ead1063b
HD
68942020-01-01 Hannes Domani <ssbssa@yahoo.de>
6895
6896 * MAINTAINERS (Write After Approval): Add myself.
6897
e5d78223
JB
68982020-01-01 Joel Brobecker <brobecker@adacore.com>
6899
6900 * gdbarch.sh: Update copyright year range of generated files.
6901
b811d2c2
JB
69022020-01-01 Joel Brobecker <brobecker@adacore.com>
6903
6904 Update copyright year range in all GDB files.
6905
5f4def5c
JB
69062020-01-01 Joel Brobecker <brobecker@adacore.com>
6907
6908 * copyright.py: Convert to Python 3.
6909
51fd4002
JB
69102020-01-01 Joel Brobecker <brobecker@adacore.com>
6911
6912 * copyright.py: Adapt after move of gnulib directory from gdb
6913 directory to toplevel directory.
6914
5fb651f2
JB
69152020-01-01 Joel Brobecker <brobecker@adacore.com>
6916
6917 * copyright.py (main): Exit if run from the wrong directory.
6918
5dd8bf88
JB
69192020-01-01 Joel Brobecker <brobecker@adacore.com>
6920
6921 * top.c (print_gdb_version): Change copyright year to 2020.
6922
9f71dacb 69232020-01-01 Joel Brobecker <brobecker@adacore.com>
3d34df0a 6924
9f71dacb 6925 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
3d34df0a 6926
9f71dacb 6927For older changes see ChangeLog-2019.
c906108c
SS
6928\f
6929Local Variables:
6930mode: change-log
6931left-margin: 8
6932fill-column: 74
6933version-control: never
57da7796 6934coding: utf-8
c906108c 6935End:
This page took 2.822016 seconds and 4 git commands to generate.