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