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