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