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