]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/ChangeLog
Fix latent bug in target_pass_ctrlc
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
43667cc6
PA
12020-07-10 Pedro Alves <pedro@palves.net>
2
3 PR gdb/26199
4 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
5 threads, not all threads.
6
96118d11
PA
72020-07-10 Pedro Alves <pedro@palves.net>
8
9 PR gdb/26199
10 * remote.c (remote_target::open_1): Pass remote target pointer as
11 data to create_async_event_handler.
12 (remote_async_inferior_event_handler): Mark async event handler
13 before returning if the remote target still has either pending
14 events or unacknowledged notifications.
15
54904d81
JB
162020-07-10 John Baldwin <jhb@FreeBSD.org>
17
18 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
19 declaration.
20 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
21 function.
22
f37e5866
JB
232020-07-09 John Baldwin <jhb@FreeBSD.org>
24
25 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
26 inferior_ptid.
27
fc238d4a
JB
282020-07-09 John Baldwin <jhb@FreeBSD.org>
29
30 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
31 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
32 AT_FREEBSD_PS_STRINGS.
33
6e2469ff
HD
342020-07-08 Hannes Domani <ssbssa@yahoo.de>
35
36 * auto-load.c (auto_load_objfile_script_1): Convert drive part
37 of debugfile path on Windows.
38
d1076c41
JB
392020-07-08 John Baldwin <jhb@FreeBSD.org>
40
41 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
42 argument to 'data'.
43
15f3b077
TT
442020-07-08 Tom Tromey <tromey@adacore.com>
45
46 * ada-lang.c (ada_exception_message_1): Use read_memory.
47
9fc501fd
AB
482020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
49
50 PR python/22748
51 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
52 special handling for inline frames.
53 * findvar.c (value_of_register_lazy): Skip inline frames when
54 creating lazy register values.
55 * frame.c (frame_id_computed_p): Delete definition.
56 * frame.h (frame_id_computed_p): Delete declaration.
57
64cb3757
AB
582020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
59
60 * NEWS: Mention additions to Python API.
61 * python/py-arch.c (archpy_register_groups): New function.
62 (arch_object_methods): Add 'register_groups' method.
63 * python/py-registers.c (reggroup_iterator_object): New struct.
64 (reggroup_object): New struct.
65 (gdbpy_new_reggroup): New function.
66 (gdbpy_reggroup_to_string): New function.
67 (gdbpy_reggroup_name): New function.
68 (gdbpy_reggroup_iter): New function.
69 (gdbpy_reggroup_iter_next): New function.
70 (gdbpy_new_reggroup_iterator): New function
71 (gdbpy_initialize_registers): Register new types.
72 (reggroup_iterator_object_type): Define new Python type.
73 (gdbpy_reggroup_getset): New static global.
74 (reggroup_object_type): Define new Python type.
75 * python/python-internal.h
76
0f767f94
AB
772020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
78
79 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
80 * python/py-arch.c (archpy_registers): New function.
81 (arch_object_methods): Add 'registers' method.
82 * python/py-registers.c: New file.
83 * python/python-internal.h
84 (gdbpy_new_register_descriptor_iterator): Declare.
85 (gdbpy_initialize_registers): Declare.
86 * python/python.c (do_start_initialization): Call
87 gdbpy_initialize_registers.
88 * NEWS: Mention additions to the Python API.
89
87dbc774
AB
902020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
91
92 * NEWS: Mention new Python API method.
93 * python/py-unwind.c (pending_framepy_architecture): New function.
94 (pending_frame_object_methods): Add architecture method.
95
3bc98c0c
AB
962020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
97
98 * gdbarch.c: Regenerate.
99 * gdbarch.h: Regenerate.
100 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
101 (gdbarch_data): Use internal_error for the case where
102 deprecated_set_gdbarch_data was originally needed.
103 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
104 and use passed in obstack.
105 (libunwind_frame_set_descr): Should no longer get back NULL from
106 gdbarch_data.
107 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
108 type.
109 * user-regs.c (user_regs_init): Update parameters, and use passed
110 in obstack.
111 (user_reg_add): Should no longer get back NULL from gdbarch_data.
112 (_initialize_user_regs): Register as a pre-init gdbarch data type.
113
d8cc8af6
TV
1142020-07-06 Tom de Vries <tdevries@suse.de>
115
116 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
117 End-Of-Sequence in lte_is_less_than.
118 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
119 "gdb: Don't reorder line table entries too much when sorting".
120
947f7597
TV
1212020-07-06 Tom de Vries <tdevries@suse.de>
122
123 PR tui/26205
124 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
125
1e7c1b22
TV
1262020-07-05 Tom de Vries <tdevries@suse.de>
127
128 PR build/26187
129 * inferior.h (struct infcall_suspend_state_deleter): If available, use
130 std::uncaught_exceptions instead of deprecated
131 std::uncaught_exception.
132
a36158ec
SM
1332020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
134
135 * macroexp.h (macro_stringify): Return
136 gdb::unique_xmalloc_ptr<char>.
137 * macroexp.c (macro_stringify): Likewise.
138 * macrotab.c (fixup_definition): Update.
139
14d960c8
SM
1402020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
141
142 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
143 (lex_one_token): Update.
144 * macroexp.c (struct macro_buffer) <release>: Return
145 gdb::unique_xmalloc_ptr<char>.
146 (macro_stringify): Update.
147 (macro_expand): Update.
148 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
149 * macroexp.h (macro_expand_next): Likewise.
150
211d5b1c
SM
1512020-07-02 Simon Marchi <simon.marchi@efficios.com>
152
153 * macroexp.h (macro_lookup_ftype): Remove.
154 (macro_expand, macro_expand_once, macro_expand_next): Remove
155 lookup function parameters, add scope parameter.
156 * macroexp.c (scan, substitute_args, expand, maybe_expand,
157 macro_expand, macro_expand_once, macro_expand_next): Likewise.
158 * macroscope.h (standard_macro_lookup): Change parameter type
159 to macro_scope.
160 * macroscope.c (standard_macro_lookup): Likewise.
161 * c-exp.y (lex_one_token): Update.
162 * macrocmd.c (macro_expand_command): Likewise.
163 (macro_expand_once_command): Likewise.
164
b1a35af2
SM
1652020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
166
167 * inf-loop.c (inferior_event_handler): Remove client_data param.
168 * inf-loop.h (inferior_event_handler): Likewise.
169 * infcmd.c (step_1): Adjust.
170 * infrun.c (proceed): Adjust.
171 (fetch_inferior_event): Remove client_data param.
172 (infrun_async_inferior_event_handler): Adjust.
173 * infrun.h (fetch_inferior_event): Remove `void *` param.
174 * linux-nat.c (handle_target_event): Adjust.
175 * record-btrace.c (record_btrace_handle_async_inferior_event):
176 Adjust.
177 * record-full.c (record_full_async_inferior_event_handler):
178 Adjust.
179 * remote.c (remote_async_inferior_event_handler): Adjust.
180
1cdf9e33
TT
1812020-07-01 Tom Tromey <tom@tromey.com>
182
183 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
184 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
185
32c1e210
TT
1862020-07-01 Tom Tromey <tom@tromey.com>
187
188 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
189 tui_gen_win_info.
190 (tui_win_info::make_window): Merge with
191 tui_gen_win_info::make_window.
192 (tui_win_info::make_visible): Move from tui_gen_win_info.
193 * tui/tui-win.c (tui_win_info::max_width): Move from
194 tui_gen_win_info.
195 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
196 type.
197 <window_factory>: Likewise.
198 * tui/tui-layout.c (tui_win_info::resize): Move from
199 tui_gen_win_info.
200 (make_standard_window): Change return type.
201 (get_locator_window, tui_get_window_by_name): Likewise.
202 (tui_layout_window::apply): Remove a cast.
203 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
204 (struct tui_win_info): Merge with tui_gen_win_info.
205 (struct tui_gen_win_info): Remove.
206
a30cb6da
TT
2072020-07-01 Tom Tromey <tom@tromey.com>
208
209 * tui/tui-stack.h (struct tui_locator_window): Derive from
210 tui_win_info.
211 <do_scroll_horizontal, do_scroll_vertical>: New methods.
212 <can_box>: New method.
213
1eb2161f
TT
2142020-07-01 Tom Tromey <tom@tromey.com>
215
216 * tui/tui-stack.h (struct tui_locator_window): Remove body.
217
7134f2eb
TT
2182020-07-01 Tom Tromey <tom@tromey.com>
219
220 * tui/tui-regs.c (tui_data_window::display_registers_from)
221 (tui_data_window::display_registers_from)
222 (tui_data_window::first_data_item_displayed)
223 (tui_data_window::delete_data_content_windows): Update.
224 (tui_data_window::refresh_window, tui_data_window::no_refresh):
225 Remove.
226 (tui_data_window::check_register_values): Update.
227 (tui_data_item_window::rerender): Add parameters. Update.
228 (tui_data_item_window::refresh_window): Remove.
229 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
230 virtual.
231 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
232 tui_gen_win_info.
233 <refresh_window, max_height, min_height>: Remove.
234 <rerender>: Add parameters.
235 <x, y, visible>: New members.
236 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
237 <m_item_width>: New member.
238
22b7b041
TT
2392020-07-01 Tom Tromey <tom@tromey.com>
240
241 * tui/tui-regs.c (tui_data_window::show_register_group)
242 (tui_data_window::check_register_values): Update.
243 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
244 from item_no.
245
c9753adb
TT
2462020-07-01 Tom Tromey <tom@tromey.com>
247
248 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
249 useless "if".
250
9ab26b4a
TT
2512020-07-01 Tom Tromey <tom@tromey.com>
252
253 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
254 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
255
e555083f
TT
2562020-07-01 Tom Tromey <tom@tromey.com>
257
258 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
259 * tui/tui-winsource.h (enum tui_line_or_address_kind)
260 (struct tui_line_or_address): Move from tui-data.h.
261 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
262 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
263 (tui_cmd_window, tui_source_window_base, tui_source_window)
264 (tui_disasm_window): Don't declare.
265 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
266 to tui-winsource.h.
267 (SINGLE_KEY): Move to tui-stack.c.
268
7a02bab7
TT
2692020-07-01 Tom Tromey <tom@tromey.com>
270
271 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
272 std::string.
273 * tui/tui-regs.c (class tab_expansion_file): New.
274 (tab_expansion_file::write): New method.
275 (tui_register_format): Change return type. Use
276 tab_expansion_file.
277 (tui_get_register, tui_data_window::display_registers_from)
278 (tui_data_item_window::rerender): Update.
279 * tui/tui-io.h (tui_expand_tabs): Don't declare.
280 * tui/tui-io.c (tui_expand_tabs): Remove.
281
ea68593b
TT
2822020-07-01 Tom Tromey <tom@tromey.com>
283
284 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
285
a8caed5d
FS
2862020-07-01 Fangrui Song <maskray@google.com>
287
288 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
289
9cdf9820
AKS
2902020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
291
292 * dwarf2/read.c (set_die_type): Removed conditions to restrict
293 forms for DW_AT_associated and DW_AT_allocated attributes,
294 which is already checked in function attr_to_dynamic_prop.
295
a1520ad8
TT
2962020-06-30 Tom Tromey <tromey@adacore.com>
297
298 * dwarf2/read.c (quirk_rust_enum): Correctly call
299 alloc_rust_variant for default-less enum.
300
5ac58899
TT
3012020-06-30 Tom Tromey <tromey@adacore.com>
302
303 PR build/26183:
304 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
305 gdb::to_string.
306
19b187a9
SM
3072020-06-29 Simon Marchi <simon.marchi@efficios.com>
308
309 * gdbarch.sh (displaced_step_copy_insn): Update doc.
310 * gdbarch.h: Re-generate.
311
cd4c4c07
TT
3122020-06-28 Tom Tromey <tom@tromey.com>
313
314 * command.h (cmd_types): Remove.
315 (cmd_type): Don't declare.
316 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
317 typedef.
318 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
319 * cli/cli-decode.c (cmd_type): Remove.
320
05779d57
PA
3212020-06-27 Pedro Alves <palves@redhat.com>
322
323 * fork-child.c (prefork_hook): Adjust.
324 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
325 Delete.
326 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
327 * inferior.c (inferior::set_tty, inferior::tty): New methods.
328 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
329 Remove declarations.
330 (struct inferior) <set_tty, tty>: New methods.
331 (struct inferior) <terminal>: Rename to ...
332 (struct inferior) <m_terminal>: ... this and make private.
333 * main.c (captured_main_1): Adjust.
334 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
335 (mi_cmd_inferior_tty_show): Adjust.
336 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
337 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
338
1776e3e5
NA
3392020-06-26 Nick Alcock <nick.alcock@oracle.com>
340
341 * configure.ac: Add --enable-libctf: handle --disable-static
342 properly.
343 * acinclude.m4: sinclude ../config/enable.m4.
344 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
345 (LIBCTF): Substitute in.
346 (CTF_DEPS): New, likewise.
347 (CLIBS): libctf needs symbols from libbfd: move earlier.
348 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
349 flags.
350 * ctfread.c: Surround in ENABLE_LIBCTF.
351 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
352 * configure: Regenerate.
353 * config.in: Likewise.
354
58373b80
SM
3552020-06-25 Simon Marchi <simon.marchi@efficios.com>
356
357 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
358
277474ee
SM
3592020-06-25 Simon Marchi <simon.marchi@efficios.com>
360
361 * inferior.h (struct inferior) <terminal>: Change type to
362 gdb::unique_xmalloc_ptr<char>.
363 * inferior.c (inferior::~inferior): Don't free inf->terminal.
364 * infcmd.c (set_inferior_io_terminal): Don't free terminal
365 field, adjust to unique pointer.
366 (get_inferior_io_terminal): Adjust to unique pointer.
367
6d74da72
AB
3682020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
369
370 * riscv-tdep.c (riscv_print_registers_info): Loop over all
371 registers, not just the known core set of registers.
372
2e52d038
AB
3732020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
374
375 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
376 fflags, frm, and fcsr registers.
377 (riscv_register_reggroup_p): Remove unknown CSRs from save and
378 restore groups.
379 (riscv_tdesc_unknown_reg): New function.
380 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
381 tdesc_use_registers.
382 * riscv-tdep.h (struct gdbarch_tdep): Add
383 unknown_csrs_first_regnum, unknown_csrs_count,
384 duplicate_fflags_regnum, duplicate_frm_regnum, and
385 duplicate_fcsr_regnum fields.
386
be64fd07
AB
3872020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
388
389 * target-descriptions.c (tdesc_use_registers): Add new parameter a
390 callback, use the callback (when not null) to help number unknown
391 registers.
392 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
393 (tdesc_use_registers): Add extra parameter to declaration.
394
3b9fce96
AB
3952020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
396
397 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
398 in the file.
399 (class riscv_pending_register_alias): Likewise.
400 (riscv_register_feature::register_info): Change 'required_p' field
401 to 'required', and change its type. Add 'check' member function.
402 (riscv_register_feature::register_info::check): Define new member
403 function.
404 (riscv_xreg_feature): Change initialisation of 'required' field.
405 (riscv_freg_feature): Likewise.
406 (riscv_virtual_feature): Likewise.
407 (riscv_csr_feature): Likewise.
408 (riscv_check_tdesc_feature): Take extra parameter, the csr
409 tdesc_feature, rewrite the function to use the new
410 riscv_register_feature::register_info::check function.
411 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
412
865bad26
AB
4132020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
414
415 * features/Makefile: Remove all references to the deleted files
416 below.
417 * features/riscv/32bit-csr.c: Deleted.
418 * features/riscv/32bit-csr.xml: Deleted.
419 * features/riscv/64bit-csr.c: Deleted.
420 * features/riscv/64bit-csr.xml: Deleted.
421 * features/riscv/rebuild-csr-xml.sh: Deleted.
422
ed69cbc8
AB
4232020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
424
425 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
426 whitespace error for declaration of names member variable.
427 (struct riscv_register_feature): Add new prefer_first_name member
428 variable, and fix whitespace error in declaration of registers.
429 (riscv_xreg_feature): Initialize prefer_first_name field.
430 (riscv_freg_feature): Likewise.
431 (riscv_virtual_feature): Likewise.
432 (riscv_csr_feature): Likewise.
433 (riscv_register_name): Expand on comments. Remove register name
434 modifications for CSR and virtual registers.
435
4445e8f5
AB
4362020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
437
438 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
439 errors.
440
767a879e
AB
4412020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
442
443 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
444 riscv-opc.h.
445 (class riscv_pending_register_alias): New class.
446 (riscv_check_tdesc_feature): Take vector of pending aliases and
447 populate it as appropriate.
448 (riscv_setup_register_aliases): Delete.
449 (riscv_gdbarch_init): Create vector of pending aliases and pass it
450 to riscv_check_tdesc_feature in all cases. Use the vector to
451 create the register aliases.
452
bb6e55f3
RO
4532020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
454
455 * sol2-tdep.c (sol2_static_transform_name): Remove.
456 (sol2_init_abi): Don't register it.
457 * gdbarch.sh (static_transform_name): Remove.
458 * gdbarch.c, gdbarch.h: Regenerate.
459
460 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
461 gdbarch_static_transform_name.
462 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
463 * stabsread.c (define_symbol) <'X'>: Remove.
464 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
465 handling.
466 <'V'>: Likewise.
467 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
468 <'S'>: Remove call to gdbarch_static_transform_name.
469
c6d36836
RO
4702020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
471
472 * procfs.c (procfs_pre_trace): New function.
473 (procfs_target::create_inferior): Pass it to fork_inferior.
474
a7e6196b
RO
4752020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
476
477 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
478 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
479 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
480 sol2-tdep.o, sparc-sol2-tdep.o.
481 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
482 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
483 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
484 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
485
d412e696
RO
4862020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
487
488 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
489 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
490 Call sol2_init_abi.
491 Remove calls to set_gdbarch_skip_solib_resolver,
492 set_gdbarch_core_pid_to_str.
493 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
494 (i386_sol2_static_transform_name): Remove.
495 (i386_sol2_init_abi): Call sol2_init_abi.
496 Remove calls to set_gdbarch_sofun_address_maybe_missing,
497 set_gdbarch_static_transform_name,
498 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
499 Use sol2_sigtramp_p.
500 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
501 (sol2_sigtramp_p): New function.
502 (sol2_static_transform_name): New function.
503 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
504 (sol2_init_abi): New function.
505 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
506 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
507 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
508 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
509 (sparc_sol2_static_transform_name): Remove.
510 (sparc32_sol2_init_abi): Call sol2_init_abi.
511 Remove calls to set_gdbarch_sofun_address_maybe_missing,
512 set_gdbarch_static_transform_name,
513 set_gdbarch_skip_solib_resolver,
514 set_gdbarch_core_pid_to_str.
515 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
516 (sparc_sol2_static_transform_name): Remove
517 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
518 call sol2_sigtramp_p.
519 (sparc64_sol2_init_abi): Call sol2_init_abi.
520 Remove calls to set_gdbarch_sofun_address_maybe_missing,
521 set_gdbarch_static_transform_name,
522 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
523
a8654e7d
PW
5242020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
525
526 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
527 * exec.c (validate_exec_file): If from_tty, set both
528 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
529 * symfile.c (symbol_file_add_with_addrs): if always_confirm
530 and from_tty, unconditionally ask a confirmation.
531
caa7fd04
AB
5322020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
533
534 * target-descriptions.c (tdesc_architecture_name): Protect against
535 NULL pointer dereference.
536 (maint_print_xml_tdesc_cmd): New function.
537 (_initialize_target_descriptions): Register new 'maint print
538 xml-tdesc' command and give it the filename completer.
539 * NEWS: Mention new 'maint print xml-tdesc' command.
540
fbf42f4e
AB
5412020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
542
543 * target-descriptions.c (class tdesc_compatible_info): New class.
544 (struct target_desc): Change type of compatible vector.
545 (tdesc_compatible_p): Update for change in type of
546 target_desc::compatible.
547 (tdesc_compatible_info_list): New function.
548 (tdesc_compatible_info_arch_name): New function.
549 (tdesc_add_compatible): Update for change in type of
550 target_desc::compatible.
551 (print_c_tdesc::visit_pre): Likewise.
552
20821f4e
AB
5532020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
554
555 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
556 whitespace to underscore.
557 (maint_print_c_tdesc_cmd): Use fake filename for target
558 descriptions that came from the target.
559 (_initialize_target_descriptions): Add filename command completion
560 for 'maint print c-tdesc'.
561
1fb5ee62
SM
5622020-06-23 Simon Marchi <simon.marchi@efficios.com>
563
564 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
565 lines.
566
fc3ecb3e
SM
5672020-06-23 Simon Marchi <simon.marchi@efficios.com>
568
569 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
570 lines.
571 (dwarf2_find_location_expression): Likewise.
572 (call_site_parameter_matches): Likewise.
573 (dwarf2_compile_expr_to_ax): Likewise.
574 (disassemble_dwarf_expression): Likewise.
575 (loclist_describe_location): Likewise.
576
236ef034
PA
5772020-06-23 Pedro Alves <palves@redhat.com>
578
579 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
580 progspace-and-thread.h. Include scoped-mock-context.h instead.
581 (register_to_value_test): Use scoped_mock_context.
582 * regcache.c: Include "scoped-mock-context.h".
583 (cooked_read_test): Don't error out if a target is already pushed.
584 Use scoped_mock_context. Adjust.
585 * scoped-mock-context.h: New file.
586
39e7ecca
AB
5872020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
588
589 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
590 initializer.
591 (ada_language::is_string_type_p): New member function.
592 * c-lang.c (c_language_data): Delete la_is_string_type_p
593 initializer.
594 (cplus_language_data): Likewise.
595 (asm_language_data): Likewise.
596 (minimal_language_data): Likewise.
597 * d-lang.c (d_language_data): Likewise.
598 * f-lang.c (f_is_string_type_p): Delete function, implementation
599 moved to f_language::is_string_type_p.
600 (f_language_data): Delete la_is_string_type_p initializer.
601 (f_language::is_string_type_p): New member function,
602 implementation from f_is_string_type_p.
603 * go-lang.c (go_is_string_type_p): Delete function, implementation
604 moved to go_language::is_string_type_p.
605 (go_language_data): Delete la_is_string_type_p initializer.
606 (go_language::is_string_type_p): New member function,
607 implementation from go_is_string_type_p.
608 * language.c (language_defn::is_string_type_p): Define new member
609 function.
610 (default_is_string_type_p): Make static, add comment copied from
611 header file.
612 (unknown_language_data): Delete la_is_string_type_p initializer.
613 (unknown_language::is_string_type_p): New member function.
614 (auto_language_data): Delete la_is_string_type_p initializer.
615 (auto_language::is_string_type_p): New member function.
616 * language.h (language_data): Delete la_is_string_type_p field.
617 (language_defn::is_string_type_p): Declare new function.
618 (default_is_string_type_p): Delete desclaration, move comment to
619 definition.
620 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
621 moved to m2_language::is_string_type_p.
622 (m2_language_data): Delete la_is_string_type_p initializer.
623 (m2_language::is_string_type_p): New member function,
624 implementation from m2_is_string_type_p.
625 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
626 initializer.
627 * opencl-lang.c (opencl_language_data): Likewise.
628 * p-lang.c (pascal_is_string_type_p): Delete function,
629 implementation moved to pascal_language::is_string_type_p.
630 (pascal_language_data): Delete la_is_string_type_p initializer.
631 (pascal_language::is_string_type_p): New member function,
632 implementation from pascal_is_string_type_p.
633 * rust-lang.c (rust_is_string_type_p): Delete function,
634 implementation moved to rust_language::is_string_type_p.
635 (rust_language_data): Delete la_is_string_type_p initializer.
636 (rust_language::is_string_type_p): New member function,
637 implementation from rust_is_string_type_p.
638 * valprint.c (val_print_scalar_or_string_type_p): Update call to
639 is_string_type_p.
640
4ffc13fb
AB
6412020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
642
643 * ada-lang.c (ada_language_data): Delete la_print_typedef
644 initializer.
645 (ada_language::print_typedef): New member function.
646 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
647 (cplus_language_data): Likewise.
648 (asm_language_data): Likewise.
649 (minimal_language_data): Likewise.
650 * d-lang.c (d_language_data): Likewise.
651 * f-lang.c (f_language_data): Likewise.
652 (f_language::print_typedef): New member function.
653 * go-lang.c (go_language_data): Delete la_print_typedef
654 initializer.
655 * language.c (language_defn::print_typedef): Define member
656 function.
657 (unknown_language_data): Delete la_print_typedef initializer.
658 (unknown_language::print_typedef): New member function.
659 (auto_language_data): Delete la_print_typedef initializer.
660 (auto_language::print_typedef): New member function.
661 * language.h (language_data): Delete la_print_typedef field.
662 (language_defn::print_typedef): Declare new member function.
663 (LA_PRINT_TYPEDEF): Update call to print_typedef.
664 (default_print_typedef): Delete declaration.
665 * m2-lang.c (m2_language_data): Delete la_print_typedef
666 initializer.
667 (m2_language::print_typedef): New member function.
668 * objc-lang.c (objc_language_data): Delete la_print_typedef
669 initializer.
670 * opencl-lang.c (opencl_language_data): Likewise.
671 * p-lang.c (pascal_language_data): Likewise.
672 (pascal_language::print_typedef): New member function.
673 * rust-lang.c (rust_print_typedef): Delete function,
674 implementation moved to rust_language::print_typedef.
675 (rust_language): Delete la_print_typedef initializer.
676 (rust_language::print_typedef): New member function,
677 implementation from rust_print_typedef.
678 * typeprint.c (default_print_typedef): Delete.
679
d711ee67
AB
6802020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
681
682 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
683 (ada_language::printstr): New member function.
684 * c-lang.c (c_language_data): Delete la_printstr initializer.
685 (cplus_language_data): Likewise.
686 (asm_language_data): Likewise.
687 (minimal_language_data): Likewise.
688 * d-lang.c (d_language_data): Likewise.
689 * f-lang.c (f_printstr): Rename to f_language::printstr.
690 (f_language_data): Delete la_printstr initializer.
691 (f_language::printstr): New member function, implementation from
692 f_printstr.
693 * go-lang.c (go_language_data): Delete la_printstr initializer.
694 * language.c (language_defn::printstr): Define new member
695 function.
696 (unk_lang_printstr): Delete.
697 (unknown_language_data): Delete la_printstr initializer.
698 (unknown_language::printstr): New member function.
699 (auto_language_data): Delete la_printstr initializer.
700 (auto_language::printstr): New member function.
701 * language.h (language_data): Delete la_printstr field.
702 (language_defn::printstr): Declare new member function.
703 (LA_PRINT_STRING): Update call to printstr.
704 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
705 (m2_language_data): Delete la_printstr initializer.
706 (m2_language::printstr): New member function, implementation from
707 m2_printstr.
708 * objc-lang.c (objc_language_data): Delete la_printstr
709 initializer.
710 * opencl-lang.c (opencl_language_data): Likewise.
711 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
712 (pascal_language_data): Delete la_printstr initializer.
713 (pascal_language::printstr): New member function, implementation
714 from pascal_printstr.
715 * p-lang.h (pascal_printstr): Delete declaration.
716 * rust-lang.c (rust_printstr): Update header comment.
717 (rust_language_data): Delete la_printstr initializer.
718 (rust_language::printstr): New member function.
719
52b50f2c
AB
7202020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
721
722 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
723 (ada_language::printchar): New member function.
724 * c-lang.c (c_language_data): Delete la_printchar initializer.
725 (cplus_language_data): Likewise.
726 (asm_language_data): Likewise.
727 (minimal_language_data): Likewise.
728 * d-lang.c (d_language_data): Likewise.
729 * f-lang.c (f_printchar): Rename to f_language::printchar.
730 (f_language_data): Delete la_printchar initializer.
731 (f_language::printchar): New member function, implementation from
732 f_printchar.
733 * go-lang.c (go_language_data): Delete la_printchar initializer.
734 * language.c (unk_lang_printchar): Delete.
735 (language_defn::printchar): Define new member function.
736 (unknown_language_data): Delete la_printchar initializer.
737 (unknown_language::printchar): New member function.
738 (auto_language_data): Delete la_printchar initializer.
739 (auto_language::printchar): New member function.
740 * language.h (language_data): Delete la_printchar field.
741 (language_defn::printchar): Declare new member function.
742 (LA_PRINT_CHAR): Update call to printchar.
743 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
744 (m2_language::printchar): New member function.
745 * objc-lang.c (objc_language_data): Delete la_printchar
746 initializer.
747 * opencl-lang.c (opencl_language_data): Likewise.
748 * p-lang.c (pascal_language_data): Delete la_printchar
749 initializer.
750 (pascal_language::printchar): New member function.
751 * rust-lang.c (rust_printchar): Rename to
752 rust_language::printchar.
753 (rust_language_data): Delete la_printchar initializer.
754 (rust_language::printchar): New member function, implementation
755 from rust_printchar.
756
ec8cec5b
AB
7572020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
758
759 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
760 (ada_language_data): Delete la_emitchar initializer.
761 (ada_language::emitchar): New member function, implementation from
762 emit_char.
763 * c-lang.c (c_language_data): Delete la_emitchar initializer.
764 (cplus_language_data): Likewise.
765 (asm_language_data): Likewise.
766 (minimal_language_data): Likewise.
767 * d-lang.c (d_language_data): Likewise.
768 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
769 (f_language_data): Delete la_emitchar initializer.
770 (f_language::emitchar): New member function, implementation from
771 f_emit_char.
772 * go-lang.c (go_language_data): Delete la_emitchar initializer.
773 * language.c (unk_lang_emit_char): Delete.
774 (language_defn::emitchar): New member function definition.
775 (unknown_language_data): Delete la_emitchar initializer.
776 (unknown_language::emitchar): New member function.
777 (auto_language_data): Delete la_emitchar initializer.
778 (auto_language::emitchar): New member function.
779 * language.h (language_data): Delete la_emitchar field.
780 (language_defn::emitchar): New member field declaration.
781 (LA_EMIT_CHAR): Update call to emitchar.
782 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
783 (m2_language_data): Delete la_emitchar initializer.
784 (m2_language::emitchar): New member function, implementation from
785 m2_emit_char.
786 * objc-lang.c (objc_language_data): Delete la_emitchar
787 initializer.
788 * opencl-lang.c (opencl_language_data): Likewise.
789 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
790 (pascal_language_data): Delete la_emitchar initializer.
791 (pascal_language::emitchar): New member function, implementation
792 from pascal_emit_char.
793 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
794 (rust_language_data): Delete la_emitchar initializer.
795 (rust_language::emitchar): New member function, implementation
796 from rust_emitchar.
797
1bf9c363
AB
7982020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
799
800 * ada-lang.c (resolve): Rename to ada_language::post_parser.
801 (ada_language_data): Delete la_post_parser initializer.
802 (ada_language::post_parser): New member function.
803 * c-lang.c (c_language_data): Delete la_post_parser initializer.
804 (cplus_language_data): Likewise.
805 (asm_language_data): Likewise.
806 (minimal_language_data): Likewise.
807 * d-lang.c (d_language_data): Likewise.
808 * f-lang.c (f_language_data): Likewise.
809 * go-lang.c (go_language_data): Likewise.
810 * language.c (unknown_language_data): Likewise.
811 (auto_language_data): Likewise.
812 * language.h (language_data): Delete la_post_parser field.
813 (language_defn::post_parser): New member function.
814 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
815 * objc-lang.c (objc_language_data): Likewise.
816 * opencl-lang.c (opencl_language_data): Likewise.
817 * p-lang.c (pascal_language_data): Likewise.
818 * parse.c (parse_exp_in_context): Update call to post_parser.
819 (null_post_parser): Delete definition.
820 * parser-defs.h (null_post_parser): Delete declaration.
821 * rust-lang.c (rust_language_data): Delete la_post_parser
822 initializer.
823
87afa652
AB
8242020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
825
826 * ada-lang.c (parse): Rename to ada_language::parser.
827 (ada_language_data): Delete la_parser initializer.
828 (ada_language::parser): New member function, implementation from
829 parse.
830 * c-lang.c (c_language_data): Delete la_parser initializer.
831 (cplus_language_data): Likewise.
832 (asm_language_data): Likewise.
833 (minimal_language_data): Likewise.
834 * d-lang.c (d_language_data): Likewise.
835 (d_language::parser): New member function.
836 * f-lang.c (f_language_data): Delete la_parser initializer.
837 (f_language::parser): New member function.
838 * go-lang.c (go_language_data): Delete la_parser initializer.
839 (go_language::parser): New member function.
840 * language.c (unk_lang_parser): Delete.
841 (language_defn::parser): Define new member function.
842 (unknown_language_data): Delete la_parser initializer.
843 (unknown_language::parser): New member function.
844 (auto_language_data): Delete la_parser initializer.
845 (auto_language::parser): New member function.
846 * language.h (language_data): Delete la_parser field.
847 (language_defn::parser): Declare new member function.
848 * m2-lang.c (m2_language_data): Delete la_parser initializer.
849 (m2_language::parser): New member function.
850 * objc-lang.c (objc_language_data): Delete la_parser initializer.
851 * opencl-lang.c (opencl_language_data): Likewise.
852 * p-lang.c (pascal_language_data): Likewise.
853 (pascal_language::parser): New member function.
854 * parse.c (parse_exp_in_context): Update call to parser.
855 * rust-lang.c (rust_language_data): Delete la_parser initializer.
856 (rust_language::parser): New member function.
857
37825800
AB
8582020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
859
860 * top.c (print_gdb_configuration): Print --with-python-libdir
861 configuration value.
862
5b860c93
PW
8632020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
864
865 * NEWS: Mention change to the alias command.
866
cf00cd6f
PW
8672020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
868
869 * cli/cli-cmds.c (lookup_cmd_for_default_args)
870 (alias_command_completer)
871 (make_alias_options_def_group): New functions.
872 (alias_opts, alias_option_defs): New struct and array.
873 (alias_usage_error): Update usage.
874 (alias_command): Handles optional DEFAULT-ARGS... arguments.
875 Use option framework.
876 (_initialize_cli_cmds): Update alias command help.
877 Update aliases command help.
878 (show_user):
879 Add NULL for new default_args lookup_cmd argument.
880 (valid_command_p): Rename to validate_aliased_command.
881 Add NULL for new default_args lookup_cmd argument. Verify that the
882 aliased_command has no default args.
883 * cli/cli-decode.c (help_cmd): Show aliases definitions.
884 (lookup_cmd_1, lookup_cmd): New argument default_args.
885 (add_alias_cmd):
886 Add NULL for new default_args lookup_cmd argument.
887 (print_help_for_command): Show default args under the layout
888 alias some_alias = some_aliased_cmd some_alias_default_arg.
889 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
890 xfree default_args in destructor.
891 * cli/cli-script.c (process_next_line, do_define_command):
892 Add NULL for new default_args lookup_cmd argument.
893 * command.h: Declare new default_args argument in lookup_cmd
894 and lookup_cmd_1.
895 * completer.c (complete_line_internal_1):
896 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
897 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
898 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
899 Likewise.
900 * infcmd.c (_initialize_infcmd): Likewise.
901 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
902 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
903 * python/py-param.c (add_setshow_generic): Likewise.
904 * remote.c (_initialize_remote): Likewise.
905 * top.c (execute_command): Prepend default_args if command has some.
906 (set_verbose):
907 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
908 * tracepoint.c (validate_actionline, encode_actions_1):
909 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
910
bd920864
TBA
9112020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
912
913 * jit.c (jit_read_descriptor): Use bool as the return type.
914 (jit_breakpoint_re_set_internal): Use bool as the return type.
915 Invert the return value logic; return true if the jit breakpoint
916 has been successfully initialized.
917 (jit_inferior_init): Update the call to
918 jit_breakpoint_re_set_internal.
919
f8098322
PA
9202020-06-22 Pedro Alves <palves@redhat.com>
921
922 PR gdb/25939
923 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
924 Use the current inferior instead. Don't return
925 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
926 wait again.
927 * sol-thread.c (sol_thread_target::wait): Don't reference
928 inferior_ptid.
929 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
930 (sol_update_thread_list_callback): Use the current inferior's pid
931 instead of inferior_ptid.
932
196535a6
RO
9332020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
934
935 * procfs.c: Cleanup many comments.
936
937 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
938 (AFTER_WATCHFLAG): Replace by value.
939
940 (MAIN_PROC_NAME_FORMAT): Inline ...
941 (create_procinfo): ... here.
942
943 (procfs_debug_inferior): Remove SYS_exec handling.
944 (syscall_is_exec): Likewise.
945 (procfs_set_exec_trap): Likewise.
946
947 (syscall_is_lwp_exit): Inline in callers.
948 (syscall_is_exit): Likewise.
949 (syscall_is_exec): Likewise.
950 (syscall_is_lwp_create): Likewise.
951
952 (invalidate_cache): Remove #if 0 code.
953
954 (make_signal_thread_runnable): Remove.
955 (procfs_target::resume): Remove #if 0 code.
956
cf6f3e86
RO
9572020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
958
959 PR gdb/25939
960 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
961 call ...
962 (procfs_target::create_inferior): ... here.
963
48e9cc84
PW
9642020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
965
966 * exec.c (validate_exec_file): Ensure the build-id is up to
967 date by calling reopen_exec_file (that checks file timestamp
968 to decide to re-read the file).
969
3922b302
PA
9702020-06-18 Pedro Alves <palves@redhat.com>
971
972 PR gdb/25412
973 * gdbthread.h (delete_thread, delete_thread_silent)
974 (find_thread_ptid): Update comments.
975 * thread.c (current_thread_): New global.
976 (is_current_thread): Move higher, and reimplement.
977 (inferior_thread): Reimplement.
978 (set_thread_exited): Use bool. Add assertions.
979 (add_thread_silent): Simplify thread-reuse handling by always
980 calling delete_thread.
981 (delete_thread): Remove intro comment.
982 (find_thread_ptid): Skip exited threads.
983 (switch_to_thread_no_regs): Write to current_thread_.
984 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
985 INFERIOR_PTID. Clear current_thread_.
986
6dbdab44
PA
9872020-06-18 Pedro Alves <palves@redhat.com>
988
989 * aix-thread.c (pd_update): Use switch_to_thread.
990
2da4b788
PA
9912020-06-18 Pedro Alves <palves@redhat.com>
992
993 * ravenscar-thread.c (ravenscar_thread_target): Update.
994 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
995 (ravenscar_thread_target::add_active_thread): ... this. Don't
996 set m_base_ptid here. Update to avoid referencing inferior_ptid.
997 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
998
50838d1b
PA
9992020-06-18 Pedro Alves <palves@redhat.com>
1000
1001 * nat/windows-nat.c (current_windows_thread): Remove.
1002 * nat/windows-nat.h (current_windows_thread): Remove.
1003 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
1004 Adjust.
1005 (display_selectors): Adjust to fetch the current
1006 windows_thread_info based on inferior_ptid.
1007 (fake_create_process): No longer write to current_windows_thread.
1008 (windows_nat_target::get_windows_debug_event):
1009 Don't set inferior_ptid or current_windows_thread.
1010 (windows_nat_target::wait): Adjust to not rely on
1011 current_windows_thread.
1012 (do_initial_windows_stuff): Now a method of windows_nat_target.
1013 Switch to the last_ptid thread.
1014 (windows_nat_target::attach): Adjust.
1015 (windows_nat_target::detach): Use switch_to_no_thread instead of
1016 writing to inferior_ptid directly.
1017 (windows_nat_target::create_inferior): Adjust.
1018
31ce04e9
PA
10192020-06-18 Pedro Alves <palves@redhat.com>
1020
1021 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
1022
1ee1a363
PA
10232020-06-18 Pedro Alves <palves@redhat.com>
1024
1025 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
1026 after creating it, instead of writing to inferior_ptid. Don't
1027 write to inferior_ptid.
1028
6d350754
PA
10292020-06-18 Pedro Alves <palves@redhat.com>
1030
1031 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
1032
5d971d48
PA
10332020-06-18 Pedro Alves <palves@redhat.com>
1034
1035 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
1036 it, instead of writing to inferior_ptid.
1037
86e57d1b
PA
10382020-06-18 Pedro Alves <palves@redhat.com>
1039
1040 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
1041 to inferior_ptid.
1042
f2e1c129
PA
10432020-06-18 Pedro Alves <palves@redhat.com>
1044
1045 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
1046 instead of writing to inferior_ptid directly.
1047
60db1b85
PA
10482020-06-18 Pedro Alves <palves@redhat.com>
1049
1050 * corelow.c (core_target::close): Use switch_to_no_thread instead
1051 of writing to inferior_ptid directly.
1052 (add_to_thread_list, core_target_open): Use switch_to_thread
1053 instead of writing to inferior_ptid directly.
1054
fe7d6a8d
PA
10552020-06-18 Pedro Alves <palves@redhat.com>
1056
1057 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
1058 inferior_ptid.
1059 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
1060 inferior_ptid.
1061 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
1062 inferior_ptid directly.
1063 (darwin_nat_target::init_thread_list): Switch to thread, instead
1064 of writing to inferior_ptid.
1065 (darwin_nat_target::attach): Don't write to inferior_ptid.
1066 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
1067
975f8708
PA
10682020-06-18 Pedro Alves <palves@redhat.com>
1069
1070 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
1071 thread.
1072 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
1073 Instead use switch_to_thread.
1074 (gnu_nat_target::detach): Use switch_to_no_thread
1075 instead of writing to inferior_ptid directly. Used passed-in
1076 inferior instead of looking up the inferior by pid.
1077
1a204730
PA
10782020-06-18 Pedro Alves <palves@redhat.com>
1079
1080 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
1081 inferior_ptid.
1082
ebe84f23
PA
10832020-06-18 Pedro Alves <palves@redhat.com>
1084
1085 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
1086 inferior_ptid.
1087 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
1088 thread.
1089 (nto_procfs_target::detach): Avoid referencing
1090 inferior_ptid. Use switch_to_no_thread instead of writing to
1091 inferior_ptid directly.
1092 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
1093 instead of writing to inferior_ptid directly.
1094 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
1095 to thread.
1096
191f02e5
PA
10972020-06-18 Pedro Alves <palves@redhat.com>
1098
1099 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
1100 after creating it, instead of writing to inferior_ptid.
1101 (gdbsim_target_open): Use switch_to_no_thread instead of writing
1102 to inferior_ptid directly.
1103 (gdbsim_target::wait): Don't write to inferior_ptid.
1104
0ac55310
PA
11052020-06-18 Pedro Alves <palves@redhat.com>
1106
1107 * remote.c (remote_target::remote_notice_new_inferior): Use
1108 switch_to_thread instead of writing to inferior_ptid directly.
1109 (remote_target::add_current_inferior_and_thread): Use
1110 switch_to_no_thread instead of writing to inferior_ptid directly.
1111 (extended_remote_target::attach): Use switch_to_inferior_no_thread
1112 and switch_to_thread instead of using set_current_inferior or
1113 writing to inferior_ptid directly.
1114
5233f39b
PA
11152020-06-18 Pedro Alves <palves@redhat.com>
1116
1117 * tracectf.c (ctf_target_open): Switch to added thread instead of
1118 writing to inferior_ptid directly.
1119 (ctf_target::close): Use switch_to_no_thread instead of writing to
1120 inferior_ptid directly.
1121
087e161b
PA
11222020-06-18 Pedro Alves <palves@redhat.com>
1123
1124 * tracefile-tfile.c (tfile_target_open): Don't write to
1125 inferior_ptid directly, instead switch to added thread.
1126 (tfile_target::close): Use switch_to_no_thread instead of writing
1127 to inferior_ptid directly.
1128
7fb43e53
PA
11292020-06-18 Pedro Alves <palves@redhat.com>
1130
1131 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
1132 (procfs_target::detach): Use switch_to_no_thread
1133 instead of writing to inferior_ptid directly.
1134 (do_attach): Change return type to void. Switch to the added
1135 thread.
1136 (procfs_target::create_inferior): Switch to the added thread.
1137 (procfs_do_thread_registers): Don't write to inferior_ptid.
1138
18493a00
PA
11392020-06-18 Pedro Alves <palves@redhat.com>
1140
1141 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
1142 of writing to inferior_ptid.
1143 (scoped_restore_exited_inferior): Delete.
1144 (handle_vfork_child_exec_or_exit): Simplify using
1145 scoped_restore_current_pspace_and_thread. Use switch_to_thread
1146 instead of writing to inferior_ptid.
1147 (THREAD_STOPPED_BY): Delete.
1148 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
1149 (thread_stopped_by_hw_breakpoint): Delete.
1150 (save_waitstatus): Use
1151 scoped_restore_current_thread+switch_to_thread, and call
1152 target_stopped_by_watchpoint instead of
1153 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
1154 instead of thread_stopped_by_sw_breakpoint, and
1155 target_stopped_by_hw_breakpoint instead of
1156 thread_stopped_by_hw_breakpoint.
1157 (handle_inferior_event)
1158 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
1159 inferior_ptid directly, nor
1160 set_current_inferior/set_current_program_space. Use
1161 switch_to_thread / switch_to_inferior_no_thread instead.
1162
a0776b13
PA
11632020-06-18 Pedro Alves <palves@redhat.com>
1164
1165 * target.c (generic_mourn_inferior): Use switch_to_no_thread
1166 instead of writing to inferior_ptid.
1167
6155c136
PA
11682020-06-18 Pedro Alves <palves@redhat.com>
1169
1170 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
1171 added thread.
1172 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
1173 to the added thread.
1174 (inf_ptrace_target::detach_success): Use switch_to_no_thread
1175 instead of writing to inferior_ptid.
1176
c5316fc6
PA
11772020-06-18 Pedro Alves <palves@redhat.com>
1178
1179 * gdbarch-selftests.c: Include "progspace-and-thread.h".
1180 (register_to_value_test): Mock a program_space too. Heap-allocate
1181 the address space. Don't write to inferior_ptid. Use
1182 switch_to_thread instead.
1183
8df01799
PA
11842020-06-18 Pedro Alves <palves@redhat.com>
1185
1186 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
1187 Delete.
1188 (find_signalled_thread()): New, factored out from
1189 linux_make_corefile_notes and adjusted to handle exited threads.
1190 (linux_make_corefile_notes): Adjust to use the new
1191 find_signalled_thread.
1192
41792d68
PA
11932020-06-18 Pedro Alves <palves@redhat.com>
1194
1195 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
1196 of saving/restoring inferior_ptid.
1197
612f258a
TT
11982020-06-17 Tom Tromey <tom@tromey.com>
1199
1200 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
1201 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
1202 declare.
1203 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
1204
efb763a5
SM
12052020-06-15 Simon Marchi <simon.marchi@efficios.com>
1206
1207 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
1208 of partial symtabs.
1209
2951f6c0
SM
12102020-06-17 Simon Marchi <simon.marchi@efficios.com>
1211
1212 * regformats/reg-arm.dat: Remove.
1213 * regformats/reg-bfin.dat: Remove.
1214 * regformats/reg-cris.dat: Remove.
1215 * regformats/reg-crisv32.dat: Remove.
1216 * regformats/reg-m32r.dat: Remove.
1217 * regformats/reg-tilegx.dat: Remove.
1218 * regformats/reg-tilegx32.dat: Remove.
1219
7d458ea5
SM
12202020-06-17 Simon Marchi <simon.marchi@efficios.com>
1221
1222 * features/Makefile (WHICH): Remove arm files.
1223 * regformats/arm/arm-with-iwmmxt.dat: Remove.
1224 * regformats/arm/arm-with-neon.dat: Remove.
1225 * regformats/arm/arm-with-vfpv2.dat: Remove.
1226 * regformats/arm/arm-with-vfpv3.dat: Remove.
1227
3af96c0d
SM
12282020-06-17 Simon Marchi <simon.marchi@efficios.com>
1229
1230 * features/Makefile (XMLTOC): Remove rx.xml.
1231
b25e22fd
PA
12322020-06-17 Pedro Alves <palves@redhat.com>
1233
1234 * gdbthread.h (thread_control_state) <trap_expected> Update
1235 comments.
1236
a78a19b1
AB
12372020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1238
1239 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
1240 ada_language::lookup_symbol_nonlocal.
1241 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
1242 (ada_language::lookup_symbol_nonlocal): New member function,
1243 implementation from ada_lookup_symbol_nonlocal.
1244 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
1245 initializer.
1246 (cplus_language_data): Delete la_lookup_symbol_nonlocal
1247 initializer.
1248 (cplus_language::lookup_symbol_nonlocal): New member function.
1249 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
1250 (minimal_language_data) Likewise.
1251 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
1252 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
1253 initializer.
1254 (d_language::lookup_symbol_nonlocal): New member function.
1255 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
1256 initializer.
1257 (f_language::lookup_symbol_nonlocal): New member function.
1258 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
1259 initializer.
1260 * language.c (unknown_language_data): Likewise.
1261 (auto_language_data): Likewise.
1262 * language.h (language_data): Delete la_lookup_symbol_nonlocal
1263 field.
1264 (language_defn::lookup_symbol_nonlocal): New member function.
1265 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
1266 initializer.
1267 * objc-lang.c (objc_language_data): Likewise.
1268 * opencl-lang.c (opencl_language_data): Likewise.
1269 * p-lang.c (pascal_language_data): Likewise.
1270 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
1271 rust_language::lookup_symbol_nonlocal.
1272 (rust_language_data): Delete la_lookup_symbol_nonlocal
1273 initializer.
1274 (rust_language::lookup_symbol_nonlocal): New member function,
1275 implementation from rust_lookup_symbol_nonlocal.
1276 * symtab.c (lookup_symbol_aux): Update call to
1277 lookup_symbol_nonlocal.
1278 (basic_lookup_symbol_nonlocal): Rename to...
1279 (language_defn::lookup_symbol_nonlocal): ...this, and update
1280 header comment. Remove language_defn parameter, and replace with
1281 uses of `this'.
1282 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
1283
ebe2334e
AB
12842020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1285
1286 * ada-lang.c (ada_language_data): Delete la_value_print_inner
1287 initializer.
1288 (ada_language::value_print_inner): New member function.
1289 * c-lang.c (c_language_data): Delete la_value_print_inner
1290 initializer.
1291 (cplus_language_data): Likewise.
1292 (asm_language_data): Likewise.
1293 (minimal_language_data): Likewise.
1294 * d-lang.c (d_language_data): Likewise.
1295 (d_language::value_print_inner): New member function.
1296 * f-lang.c (f_language_data): Delete la_value_print_inner
1297 initializer.
1298 (f_language::value_print_inner): New member function.
1299 * f-lang.h (f_value_print_innner): Rename to...
1300 (f_value_print_inner): ...this (note spelling of 'inner').
1301 * f-valprint.c (f_value_print_innner): Rename to...
1302 (f_value_print_inner): ...this (note spelling of 'inner').
1303 * go-lang.c (go_language_data): Delete la_value_print_inner
1304 initializer.
1305 (go_language::value_print_inner): New member function.
1306 * language.c (language_defn::value_print_inner): Define new member
1307 function.
1308 (unk_lang_value_print_inner): Delete.
1309 (unknown_language_data): Delete la_value_print_inner initializer.
1310 (unknown_language::value_print_inner): New member function.
1311 (auto_language_data): Delete la_value_print_inner initializer.
1312 (auto_language::value_print_inner): New member function.
1313 * language.h (language_data): Delete la_value_print_inner field.
1314 (language_defn::value_print_inner): Delcare new member function.
1315 * m2-lang.c (m2_language_data): Delete la_value_print_inner
1316 initializer.
1317 (m2_language::value_print_inner): New member function.
1318 * objc-lang.c (objc_language_data): Delete la_value_print_inner
1319 initializer.
1320 * opencl-lang.c (opencl_language_data): Likewise.
1321 * p-lang.c (pascal_language_data): Likewise.
1322 (pascal_language::value_print_inner): New member function.
1323 * rust-lang.c (rust_language_data): Delete la_value_print_inner
1324 initializer.
1325 (rust_language::value_print_inner): New member function.
1326 * valprint.c (do_val_print): Update call to value_print_inner.
1327
a1d1fa3e
AB
13282020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1329
1330 * ada-lang.c (ada_language_data): Delete la_value_print
1331 initializer.
1332 (ada_language::value_print): New member function.
1333 * c-lang.c (c_language_data): Delete la_value_print initializer.
1334 (cplus_language_data): Likewise.
1335 (asm_language_data): Likewise.
1336 (minimal_language_data): Likewise.
1337 * d-lang.c (d_language_data): Likewise.
1338 * f-lang.c (f_language_data): Likewise.
1339 * go-lang.c (go_language_data): Likewise.
1340 * language.c (unk_lang_value_print): Delete.
1341 (language_defn::value_print): Define new member function.
1342 (unknown_language_data): Delete la_value_print initializer.
1343 (unknown_language::value_print): New member function.
1344 (auto_language_data): Delete la_value_print initializer.
1345 (auto_language::value_print): New member function.
1346 * language.h (language_data): Delete la_value_print field.
1347 (language_defn::value_print): Declare new member function.
1348 (LA_VALUE_PRINT): Update call to value_print.
1349 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
1350 * objc-lang.c (objc_language_data): Likewise.
1351 * opencl-lang.c (opencl_language_data): Likewise.
1352 * p-lang.c (pascal_language_data): Likewise.
1353 (pascal_language::value_print): New member function.
1354 * rust-lang.c (rust_language_data): Delete la_value_print
1355 initializer.
1356
f16a9f57
AB
13572020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1358
1359 * ada-lang.c (ada_watch_location_expression): Rename to
1360 ada_language::watch_location_expression.
1361 (ada_language_data): Delete la_watch_location_expression
1362 initializer.
1363 (ada_language::watch_location_expression): New member function,
1364 implementation from ada_watch_location_expression.
1365 * breakpoint.c (watch_command_1): Update call to
1366 watch_location_expression.
1367 * c-lang.c (c_watch_location_expression): Rename to
1368 language_defn::watch_location_expression.
1369 (c_language_data): Delete la_watch_location_expression
1370 initializer.
1371 (cplus_language_data): Likewise.
1372 (asm_language_data): Likewise.
1373 (minimal_language_data): Likewise.
1374 * c-lang.h (c_watch_location_expression): Delete declaration.
1375 * d-lang.c (d_language_data): Delete la_watch_location_expression
1376 initializer.
1377 * f-lang.c (f_language_data): Likewise.
1378 * go-lang.c (go_language_data): Likewise.
1379 * language.c (language_defn::watch_location_expression): Member
1380 function implementation from c_watch_location_expression.
1381 (unknown_language_data): Delete la_watch_location_expression
1382 initializer.
1383 (auto_language_data): Likewise.
1384 * language.h (language_data): Delete la_watch_location_expression
1385 field.
1386 (language_defn::watch_location_expression): Declare new member
1387 function.
1388 * m2-lang.c (m2_language_data): Delete
1389 la_watch_location_expression initializer.
1390 * objc-lang.c (objc_language_data): Likewise.
1391 * opencl-lang.c (opencl_language_data): Likewise.
1392 * p-lang.c (pascal_language_data): Likewise.
1393 * rust-lang.c (rust_watch_location_expression): Rename to
1394 rust_language::watch_location_expression.
1395 (rust_language_data): Delete la_watch_location_expression
1396 initializer.
1397 (rust_language::watch_location_expression): New member function,
1398 implementation from rust_watch_location_expression.
1399
7e56227d
AB
14002020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1401
1402 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
1403 ada_language::collect_symbol_completion_matches.
1404 (ada_language_data): Delete la_collect_symbol_completion_matches
1405 initializer.
1406 (ada_language::collect_symbol_completion_matches): New member
1407 function, implementation from
1408 ada_collect_symbol_completion_matches.
1409 * c-lang.c (c_language_data): Delete
1410 la_collect_symbol_completion_matches initializer.
1411 (cplus_language_data): Likewise.
1412 (asm_language_data): Likewise.
1413 (minimal_language_data): Likewise.
1414 * d-lang.c (d_language_data): Likewise.
1415 * f-lang.c (f_collect_symbol_completion_matches): Rename to
1416 f_language::collect_symbol_completion_matches.
1417 (f_language_data): Delete la_collect_symbol_completion_matches
1418 initializer.
1419 (f_language::collect_symbol_completion_matches) New member
1420 function, implementation from f_collect_symbol_completion_matches.
1421 * go-lang.c (go_language_data): Delete
1422 la_collect_symbol_completion_matches initializer.
1423 * language.c (unknown_language_data): Likewise.
1424 (auto_language_data): Likewise.
1425 * language.h (language_data): Delete
1426 la_collect_symbol_completion_matches field.
1427 (language_defn::collect_symbol_completion_matches): New member
1428 function.
1429 * m2-lang.c (m2_language_data): Delete
1430 la_collect_symbol_completion_matches initializer.
1431 * objc-lang.c (objc_language_data): Likewise.
1432 * opencl-lang.c (opencl_language_data): Likewise.
1433 * p-lang.c (pascal_language_data): Likewise.
1434 * rust-lang.c (rust_language_data): Likewise.
1435 * symtab.c (default_collect_symbol_completion_matches): Delete.
1436 (collect_symbol_completion_matches): Update call to
1437 collect_symbol_completion_matches.
1438 (collect_symbol_completion_matches_type): Likewise.
1439 * symtab.h (default_collect_symbol_completion_matches): Delete
1440 declaration.
1441
53fc67f8
AB
14422020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1443
1444 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
1445 (ada_language_data): Delete la_word_break_characters initializer.
1446 (ada_language::word_break_characters): New member function.
1447 * c-lang.c (c_language_data): Delete la_word_break_characters
1448 initializer.
1449 (cplus_language_data): Likewise.
1450 (asm_language_data): Likewise.
1451 (minimal_language_data): Likewise.
1452 * completer.c: Update global comment.
1453 (advance_to_expression_complete_word_point): Update call to
1454 word_break_characters.
1455 (complete_files_symbols): Likewise.
1456 (complete_line_internal_1): Likewise.
1457 (default_completer_handle_brkchars): Likewise.
1458 (skip_quoted_chars): Likewise.
1459 * d-lang.c (d_language_data): Delete la_word_break_characters
1460 initializer.
1461 * f-lang.c (f_word_break_characters): Delete.
1462 (f_language_data): Delete la_word_break_characters initializer.
1463 (f_language::word_break_characters): New member function.
1464 * go-lang.c (go_language_data): Delete la_word_break_characters
1465 initializer.
1466 * language.c (unknown_language_data): Likewise.
1467 (auto_language_data): Likewise.
1468 * language.h (default_word_break_characters): Move declaration to
1469 earlier in the file.
1470 (language_data): Delete la_word_break_characters field.
1471 (language_defn::word_break_characters): New member function.
1472 * m2-lang.c (m2_language_data): Delete la_word_break_characters
1473 initializer.
1474 * objc-lang.c (objc_language_data): Likewise.
1475 * opencl-lang.c (opencl_language_data): Likewise.
1476 * p-lang.c (pascal_language_data): Likewise.
1477 * rust-lang.c (rust_language_data): Likewise.
1478
c9debfb9
AB
14792020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1480
1481 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
1482 (ada_language_data): Delete la_get_symbol_name_matcher
1483 initializer.
1484 (language_defn::get_symbol_name_matcher_inner): New member
1485 function.
1486 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
1487 initializer.
1488 (cplus_language_data): Likewise.
1489 (cplus_language::get_symbol_name_matcher_inner): New member
1490 function.
1491 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
1492 (minimal_language_data): Likewise.
1493 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
1494 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
1495 initializer.
1496 * dictionary.c (iter_match_first_hashed): Update call to
1497 get_symbol_name_matcher.
1498 (iter_match_next_hashed): Likewise.
1499 (iter_match_next_linear): Likewise.
1500 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
1501 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
1502 initializer.
1503 (f_language::get_symbol_name_matcher_inner): New member function.
1504 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
1505 initializer.
1506 * language.c (default_symbol_name_matcher): Update header comment,
1507 make static.
1508 (language_defn::get_symbol_name_matcher): New definition.
1509 (language_defn::get_symbol_name_matcher_inner): Likewise.
1510 (get_symbol_name_matcher): Delete.
1511 (unknown_language_data): Delete la_get_symbol_name_matcher
1512 initializer.
1513 (auto_language_data): Likewise.
1514 * language.h (language_data): Delete la_get_symbol_name_matcher
1515 field.
1516 (language_defn::get_symbol_name_matcher): New member function.
1517 (language_defn::get_symbol_name_matcher_inner): Likewise.
1518 (default_symbol_name_matcher): Delete declaration.
1519 * linespec.c (find_methods): Update call to
1520 get_symbol_name_matcher.
1521 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
1522 initializer.
1523 * minsyms.c (lookup_minimal_symbol): Update call to
1524 get_symbol_name_matcher.
1525 (iterate_over_minimal_symbols): Likewise.
1526 * objc-lang.c (objc_language_data): Delete
1527 la_get_symbol_name_matcher initializer.
1528 * opencl-lang.c (opencl_language_data): Likewise.
1529 * p-lang.c (pascal_language_data): Likewise.
1530 * psymtab.c (psymbol_name_matches): Update call to
1531 get_symbol_name_matcher.
1532 * rust-lang.c (rust_language_data): Delete
1533 la_get_symbol_name_matcher initializer.
1534 * symtab.c (symbol_matches_search_name): Update call to
1535 get_symbol_name_matcher.
1536 (compare_symbol_name): Likewise.
1537
9a49ad8c
AB
15382020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1539
1540 * ada-lang.c (ada_language_data): Delete la_compute_program
1541 initializer.
1542 * c-lang.c (c_language_data): Likewise.
1543 (c_language::compute_program): New member function.
1544 (cplus_language_data): Delete la_compute_program initializer.
1545 (cplus_language::compute_program): New member function.
1546 (asm_language_data): Delete la_compute_program initializer.
1547 (minimal_language_data): Likewise.
1548 * c-lang.h (c_compute_program): Update comment.
1549 (cplus_compute_program): Likewise.
1550 * compile/compile-c-support.c (c_compute_program): Likewise.
1551 (cplus_compute_program): Likewise.
1552 * compile/compile.c (compile_to_object): Update call to
1553 la_compute_program.
1554 * d-lang.c (d_language_data): Delete la_compute_program
1555 initializer.
1556 * f-lang.c (f_language_data): Likewise.
1557 * go-lang.c (go_language_data): Likewise.
1558 * language.c (unknown_language_data): Likewise.
1559 (auto_language_data): Likewise.
1560 * language.h (language_data): Delete la_compute_program field.
1561 (language_defn::compute_program): New member function.
1562 * m2-lang.c (m2_language_data): Delete la_compute_program
1563 initializer.
1564 * objc-lang.c (objc_language_data): Likewise.
1565 * opencl-lang.c (opencl_language_data): Likewise.
1566 * p-lang.c (pascal_language_data): Likewise.
1567 * rust-lang.c (rust_language_data): Likewise.
1568
eff93b4d
AB
15692020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1570
1571 * ada-lang.c (ada_language_data) Delete
1572 la_class_name_from_physname initializer.
1573 * c-lang.c (c_language_data): Likewise.
1574 (cplus_language_data): Likewise.
1575 (cplus_language::class_name_from_physname): New member function.
1576 (asm_language_data): Delete la_class_name_from_physname
1577 initializer.
1578 (minimal_language_data): Likewise.
1579 * d-lang.c (d_language_data): Likewise.
1580 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
1581 method on language_defn class.
1582 (guess_full_die_structure_name): Likewise.
1583 * f-lang.c (f_language_data): Delete la_class_name_from_physname
1584 initializer.
1585 * go-lang.c (go_language_data): Likewise.
1586 * language.c (language_class_name_from_physname): Delete.
1587 (unk_lang_class_name): Delete.
1588 (unknown_language_data): Delete la_class_name_from_physname
1589 initializer.
1590 (auto_language_data): Likewise.
1591 * language.h (language_data): Delete la_class_name_from_physname
1592 field.
1593 (language_defn::class_name_from_physname): New function.
1594 (language_class_name_from_physname): Delete declaration.
1595 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
1596 initializer.
1597 * objc-lang.c (objc_language_data): Likewise.
1598 * opencl-lang.c (opencl_language_data): Likewise.
1599 * p-lang.c (pascal_language_data): Likewise.
1600 * rust-lang.c (rust_language_data): Likewise.
1601
de543742
TT
16022020-06-16 Tom Tromey <tom@tromey.com>
1603
1604 * tui/tui-data.h (STATUS_NAME): New macro.
1605 * tui/tui-layout.c (tui_remove_some_windows)
1606 (initialize_known_windows, tui_register_window)
1607 (tui_layout_split::remove_windows, initialize_layouts)
1608 (tui_new_layout_command): Don't use hard-coded window names.
1609
a350efd4
TT
16102020-06-16 Tom Tromey <tom@tromey.com>
1611
1612 PR tui/25348:
1613 * tui/tui.c (tui_ensure_readline_initialized): Rename from
1614 tui_initialize_readline. Only run once. Call rl_initialize.
1615 * tui/tui.h (tui_ensure_readline_initialized): Rename from
1616 tui_initialize_readline.
1617 * tui/tui-io.c (tui_setup_io): Call
1618 tui_ensure_readline_initialized.
1619 * tui/tui-interp.c (tui_interp::init): Update.
1620
39ec0490
TT
16212020-06-16 Tom Tromey <tom@tromey.com>
1622
1623 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
1624 Also preserve the status window.
1625
d2d1ea20
TT
16262020-06-16 Tom Tromey <tom@tromey.com>
1627
1628 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
1629 where m_window==nullptr.
1630
66920317
TT
16312020-06-15 Tom Tromey <tromey@adacore.com>
1632
1633 * windows-nat.c (windows_nat::handle_output_debug_string):
1634 Update.
1635 (windows_nat::handle_ms_vc_exception): Update.
1636 * target.h (target_read_string): Change API.
1637 * target.c (target_read_string): Change API.
1638 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
1639 Update.
1640 * solib-frv.c (frv_current_sos): Update.
1641 * solib-dsbt.c (dsbt_current_sos): Update.
1642 * solib-darwin.c (darwin_current_sos): Update.
1643 * linux-thread-db.c (inferior_has_bug): Update.
1644 * expprint.c (print_subexp_standard): Update.
1645 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
1646 (ada_exception_message_1): Update.
1647
a5d871dd
TT
16482020-06-15 Tom Tromey <tromey@adacore.com>
1649
1650 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
1651
670e35fa
TT
16522020-06-15 Tom Tromey <tromey@adacore.com>
1653
1654 * valprint.c (read_string): Update comment.
1655 * target.c (MIN): Remove.
1656 (target_read_string): Rewrite.
1657
f5272a3b
TT
16582020-06-15 Tom Tromey <tromey@adacore.com>
1659
1660 * corefile.c (read_memory_string): Remove.
1661 * ada-valprint.c (ada_value_print_ptr): Update.
1662 * ada-lang.h (ada_tag_name): Change return type.
1663 * ada-lang.c (type_from_tag): Update.
1664 (ada_tag_name_from_tsd): Change return type. Use
1665 target_read_string.
1666 (ada_tag_name): Likewise.
1667 * gdbcore.h (read_memory_string): Don't declare.
1668
2c074f49
HD
16692020-06-14 Hannes Domani <ssbssa@yahoo.de>
1670
1671 * symtab.c (rbreak_command): Ignore Windows drive colon.
1672
6a17d503
SM
16732020-06-12 Simon Marchi <simon.marchi@efficios.com>
1674
1675 * NEWS: Mention removed GDBserver host support.
1676
453c733f
NC
16772020-06-12 Nelson Chu <nelson.chu@sifive.com>
1678
1679 * features/riscv/rebuild-csr-xml.sh: Updated.
1680
2b4e6a3f
TT
16812020-06-11 Tom Tromey <tom@tromey.com>
1682
1683 PR gdb/18318:
1684 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
1685
4412332f
JG
16862020-06-09 Jonny Grant <jg@jguk.org>
16872020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
1688
1689 * main.c (captured_main_1): Don't print new line after help.
1690 (print_gdb_help): add mailing list and IRC channel information
1691 to --help. Add new lines between items in the footer. Remove
1692 quotes around bug url.
1693
2f33032a
KS
16942020-06-11 Keith Seitz <keiths@redhat.com>
1695
1696 PR gdb/21356
1697 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
1698 Resolve typedefs for type length calculations.
1699
7ab96794
TV
17002020-06-10 Tom de Vries <tdevries@suse.de>
1701
1702 PR ada/24713
1703 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
1704 (write_psymbols): Enable .gdb_index for ada.
1705 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
1706 ada.
1707
e5f3ece2
TV
17082020-06-10 Tom de Vries <tdevries@suse.de>
1709
1710 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
1711 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
1712 namei" instead of "const char *name" argument.
1713 (dw2_map_matching_symbols): Use "offset_type namei" variant of
1714 dw2_symtab_iter_init.
1715
940da03e
SM
17162020-06-08 Simon Marchi <simon.marchi@efficios.com>
1717
1718 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
1719 to use type::field and field::type instead.
1720
b6cdac4b
SM
17212020-06-08 Simon Marchi <simon.marchi@efficios.com>
1722
1723 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
1724 to use field::type instead.
1725
5d14b6e5
SM
17262020-06-08 Simon Marchi <simon.marchi@efficios.com>
1727
1728 * gdbtypes.h (struct field) <type, set_type>: New methods.
1729 Rename `type` field to...
1730 <m_type>: ... this. Change references throughout to use type or
1731 set_type methods.
1732 (FIELD_TYPE): Use field::type. Change call sites that modify
1733 the field's type to use field::set_type instead.
1734
3d967001
SM
17352020-06-08 Simon Marchi <simon.marchi@efficios.com>
1736
1737 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
1738 to use type::index_type instead.
1739
262abc0d
SM
17402020-06-08 Simon Marchi <simon.marchi@efficios.com>
1741
1742 * gdbtypes.h (struct type) <index_type, set_index_type>: New
1743 methods.
1744 (TYPE_INDEX_TYPE): Use type::index_type.
1745 * gdbtypes.c (create_array_type_with_stride): Likewise.
1746
82836c92
TT
17472020-06-07 Tom Tromey <tom@tromey.com>
1748
1749 * valprint.c (generic_val_print_float): Remove "embedded_offset"
1750 parameter.
1751 (generic_value_print): Update.
1752
940dace9
AB
17532020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
1754
1755 Revert commit 982a38f60b0.
1756 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
1757
982a38f6
AB
17582020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
1759
1760 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
1761 avoid use after free.
1762
82f06518
TV
17632020-06-05 Tom de Vries <tdevries@suse.de>
1764
1765 * NEWS: Fix typos.
1766
f8c41851
SM
17672020-06-04 Simon Marchi <simon.marchi@efficios.com>
1768
1769 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
1770 the per_bfd object.
1771 (dwarf2_read_debug_names): Likewise.
1772 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
1773 object when re-using a per_bfd object with an index.
1774
f9b5d5ea
TV
17752020-06-03 Tom de Vries <tdevries@suse.de>
1776
1777 PR symtab/26046
1778 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
1779 children for C++.
1780 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
1781 DW_TAG_subprogram.
1782
f6eee2d0
AB
17832020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
1784
1785 * ada-lang.c (ada_language_data): Delete skip_trampoline
1786 initializer.
1787 * c-lang.c (c_language_data): Likewise.
1788 (cplus_language_data): Likewise.
1789 (cplus_language::skip_trampoline): New member function.
1790 (asm_language_data): Delete skip_trampoline initializer.
1791 (minimal_language_data): Likewise.
1792 * d-lang.c (d_language_data): Likewise.
1793 * f-lang.c (f_language_data): Likewise.
1794 * go-lang.c (go_language_data): Likewise.
1795 * language.c (unk_lang_trampoline): Delete function.
1796 (skip_language_trampoline): Update.
1797 (unknown_language_data): Delete skip_trampoline initializer.
1798 (auto_language_data): Likewise.
1799 * language.h (language_data): Delete skip_trampoline field.
1800 (language_defn::skip_trampoline): New function.
1801 * m2-lang.c (m2_language_data): Delete skip_trampoline
1802 initializer.
1803 * objc-lang.c (objc_skip_trampoline): Delete function, move
1804 implementation to objc_language::skip_trampoline.
1805 (objc_language_data): Delete skip_trampoline initializer.
1806 (objc_language::skip_trampoline): New member function with
1807 implementation from objc_skip_trampoline.
1808 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
1809 initializer.
1810 * p-lang.c (pascal_language_data): Likewise.
1811 * rust-lang.c (rust_language_data): Likewise.
1812
0a50df5d
AB
18132020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
1814
1815 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
1816 (ada_language::demangle): New member function.
1817 * c-lang.c (c_language_data): Delete la_demangle initializer.
1818 (cplus_language_data): Delete la_demangle initializer.
1819 (cplus_language::demangle): New member function.
1820 (asm_language_data): Delete la_demangle initializer.
1821 (minimal_language_data): Delete la_demangle initializer.
1822 * d-lang.c (d_language_data): Delete la_demangle initializer.
1823 (d_language::demangle): New member function.
1824 * f-lang.c (f_language_data): Delete la_demangle initializer.
1825 (f_language::demangle): New member function.
1826 * go-lang.c (go_language_data): Delete la_demangle initializer.
1827 (go_language::demangle): New member function.
1828 * language.c (language_demangle): Update.
1829 (unk_lang_demangle): Delete.
1830 (unknown_language_data): Delete la_demangle initializer.
1831 (unknown_language::demangle): New member function.
1832 (auto_language_data): Delete la_demangle initializer.
1833 (auto_language::demangle): New member function.
1834 * language.h (language_data): Delete la_demangle field.
1835 (language_defn::demangle): New function.
1836 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
1837 * objc-lang.c (objc_language_data): Delete la_demangle
1838 initializer.
1839 (objc_language::demangle): New member function.
1840 * opencl-lang.c (opencl_language_data): Delete la_demangle
1841 initializer.
1842 * p-lang.c (pascal_language_data): Likewise.
1843 * rust-lang.c (rust_language_data): Likewise.
1844 (rust_language::demangle): New member function.
1845
fbfb0a46
AB
18462020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
1847
1848 * ada-lang.c (ada_language_data): Delete la_print_type
1849 initializer.
1850 (ada_language::print_type): New member function.
1851 * c-lang.c (c_language_data): Delete la_print_type initializer.
1852 (c_language::print_type): New member function.
1853 (cplus_language_data): Delete la_print_type initializer.
1854 (cplus_language::print_type): New member function.
1855 (asm_language_data): Delete la_print_type initializer.
1856 (asm_language::print_type): New member function.
1857 (minimal_language_data): Delete la_print_type initializer.
1858 (minimal_language::print_type): New member function.
1859 * d-lang.c (d_language_data): Delete la_print_type initializer.
1860 (d_language::print_type): New member function.
1861 * f-lang.c (f_language_data): Delete la_print_type initializer.
1862 (f_language::print_type): New member function.
1863 * go-lang.c (go_language_data): Delete la_print_type initializer.
1864 (go_language::print_type): New member function.
1865 * language.c (unk_lang_print_type): Delete.
1866 (unknown_language_data): Delete la_print_type initializer.
1867 (unknown_language::print_type): New member function.
1868 (auto_language_data): Delete la_print_type initializer.
1869 (auto_language::print_type): New member function.
1870 * language.h (language_data): Delete la_print_type field.
1871 (language_defn::print_type): New function.
1872 (LA_PRINT_TYPE): Update.
1873 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
1874 (m2_language::print_type): New member function.
1875 * objc-lang.c (objc_language_data): Delete la_print_type
1876 initializer.
1877 (objc_language::print_type): New member function.
1878 * opencl-lang.c (opencl_print_type): Delete, implementation moved
1879 to opencl_language::print_type.
1880 (opencl_language_data): Delete la_print_type initializer.
1881 (opencl_language::print_type): New member function, implementation
1882 from opencl_print_type.
1883 * p-lang.c (pascal_language_data): Delete la_print_type
1884 initializer.
1885 (pascal_language::print_type): New member function.
1886 * rust-lang.c (rust_print_type): Delete, implementation moved to
1887 rust_language::print_type.
1888 (rust_language_data): Delete la_print_type initializer.
1889 (rust_language::print_type): New member function, implementation
1890 from rust_print_type.
1891
6f827019
AB
18922020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
1893
1894 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
1895 implementation moves to...
1896 (ada_language::sniff_from_mangled_name): ...here. Update return
1897 type.
1898 (ada_language_data): Delete la_sniff_from_mangled_name
1899 initializer.
1900 * c-lang.c (c_language_data): Likewise.
1901 (cplus_language_data): Likewise.
1902 (cplus_language::sniff_from_mangled_name): New member function,
1903 implementation taken from gdb_sniff_from_mangled_name.
1904 (asm_language_data): Delete la_sniff_from_mangled_name
1905 initializer.
1906 (minimal_language_data): Likewise.
1907 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
1908 implementation moves to cplus_language::sniff_from_mangled_name.
1909 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
1910 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
1911 moves to...
1912 (d_language::sniff_from_mangled_name): ...here.
1913 (d_language_data): Delete la_sniff_from_mangled_name initializer.
1914 * f-lang.c (f_language_data): Likewise.
1915 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
1916 moves to...
1917 (go_language::sniff_from_mangled_name): ...here.
1918 (go_language_data): Delete la_sniff_from_mangled_name initializer.
1919 * language.c (language_sniff_from_mangled_name): Delete.
1920 (unknown_language_data): Delete la_sniff_from_mangled_name
1921 initializer.
1922 (auto_language_data): Likewise.
1923 * language.h (language_data): Delete la_sniff_from_mangled_name
1924 field.
1925 (language_defn::sniff_from_mangled_name): New function.
1926 (language_sniff_from_mangled_name): Delete declaration.
1927 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
1928 field.
1929 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
1930 implementation moves to...
1931 (objc_language::sniff_from_mangled_name): ...here.
1932 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
1933 * opencl-lang.c (opencl_language_data): Likewise.
1934 * p-lang.c (pascal_language_data): Likewise.
1935 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
1936 implementation moves to...
1937 (rust_language::sniff_from_mangled_name): ...here.
1938 (rust_language_data): Delete la_sniff_from_mangled_name
1939 initializer.
1940 * symtab.c (symbol_find_demangled_name): Call
1941 sniff_from_mangled_name member function.
1942
fb8006fd
AB
19432020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
1944
1945 * ada-lang.c (ada_language_data): Delete la_search_name_hash
1946 initializer.
1947 * c-lang.c (c_language_data): Likewise.
1948 (cplus_language_data): Likewise.
1949 (cplus_language::search_name_hash): New member function.
1950 (asm_language_data): Delete la_search_name_hash initializer.
1951 (minimal_language_data): Likewise.
1952 * d-lang.c (d_language_data): Likewise.
1953 * dictionary.c (default_search_name_hash): Rename to...
1954 (language_defn::search_name_hash): ...this.
1955 * f-lang.c (f_language_data): Likewise.
1956 (f_language::search_name_hash): New member function.
1957 * go-lang.c (go_language_data): Delete la_search_name_hash
1958 initializer.
1959 * language.c (unknown_language_data): Likewise.
1960 (auto_language_data): Likewise.
1961 * language.h (struct language_data): Delete la_search_name_hash
1962 field.
1963 (language_defn::search_name_hash): Declare new member function.
1964 (default_search_name_hash): Delete declaration.
1965 * m2-lang.c (m2_language_data): Delete la_search_name_hash
1966 initializer.
1967 * objc-lang.c (objc_language_data): Likewise.
1968 * opencl-lang.c (opencl_language_data): Likewise.
1969 * p-lang.c (pascal_language_data): Likewise.
1970 * rust-lang.c (rust_language_data): Likewise.
1971 * symtab.c (search_name_hash): Update call.
1972
8e25bafe
AB
19732020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
1974
1975 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
1976 initializer.
1977 * c-lang.c (class compile_instance): Declare.
1978 (c_language_data): Delete la_get_compile_instance initializer.
1979 (c_language::get_compile_instance): New member function.
1980 (cplus_language_data): Delete la_get_compile_instance initializer.
1981 (cplus_language::get_compile_instance): New member function.
1982 (asm_language_data): Delete la_get_compile_instance initializer.
1983 (minimal_language_data): Likewise.
1984 * c-lang.h (c_get_compile_context): Update comment.
1985 (cplus_get_compile_context): Update comment.
1986 * compile/compile.c (compile_to_object): Update calls, don't rely
1987 on function pointer being NULL.
1988 * d-lang.c (d_language_data): Delete la_get_compile_instance
1989 initializer.
1990 * f-lang.c (f_language_data): Likewise.
1991 * go-lang.c (go_language_data): Likewise.
1992 * language.c (unknown_language_data): Likewise.
1993 (auto_language_data): Likewise.
1994 * language.h (language_data): Delete la_get_compile_instance field.
1995 (language_defn::get_compile_instance): New member function.
1996 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
1997 initializer.
1998 * objc-lang.c (objc_language_data): Likewise.
1999 * opencl-lang.c (opencl_language_data): Likewise.
2000 * p-lang.c (pascal_language_data): Likewise.
2001 * rust-lang.c (rust_language_data): Likewise.
2002
4009ee92
AB
20032020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2004
2005 * ada-lang.c (ada_add_all_symbols): Update comment.
2006 (ada_iterate_over_symbols): Delete, move implementation to...
2007 (ada_language::iterate_over_symbols): ...here, a new member
2008 function, rewrite to use range based for loop.
2009 (ada_language_data): Delete la_iterate_over_symbols initializer.
2010 * c-lang.c (c_language_data): Likewise.
2011 (cplus_language_data): Likewise.
2012 (asm_language_data): Likewise.
2013 (minimal_language_data): Likewise.
2014 * d-lang.c (d_language_data): Likewise.
2015 * f-lang.c (f_language_data): Likewise.
2016 * go-lang.c (go_language_data): Likewise.
2017 * language.c (unknown_language_data): Likewise.
2018 (auto_language_data): Likewise.
2019 * language.h (language_data): Delete la_iterate_over_symbols field.
2020 (language_defn::iterate_over_symbols): New member function.
2021 (LA_ITERATE_OVER_SYMBOLS): Update.
2022 * linespec.c (iterate_over_all_matching_symtabs): Update.
2023 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
2024 initializer.
2025 * objc-lang.c (objc_language_data): Likewise.
2026 * opencl-lang.c (opencl_language_data): Likewise.
2027 * p-lang.c (pascal_language_data): Likewise.
2028 * rust-lang.c (rust_language_data): Likewise.
2029
54f4ca46
AB
20302020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2031
2032 * ada-lang.c (ada_language_data): Delete
2033 la_lookup_transparent_type initializer.
2034 * c-lang.c (c_language_data): Likewise.
2035 (cplus_language_data): Likewise.
2036 (cplus_language::lookup_transparent_type): New member function.
2037 (asm_language_data): Delete la_lookup_transparent_type
2038 initializer.
2039 (minimal_language_data): Likewise.
2040 * d-lang.c (d_language_data): Likewise.
2041 * f-lang.c (f_language_data): Likewise.
2042 * go-lang.c (go_language_data): Likewise.
2043 * language.c (unknown_language_data): Likewise.
2044 (auto_language_data): Likewise.
2045 * language.h (struct language_data): Delete
2046 la_lookup_transparent_type field.
2047 (language_defn::lookup_transparent_type): New member function.
2048 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
2049 initializer.
2050 * objc-lang.c (objc_language_data): Likewise.
2051 * opencl-lang.c (opencl_language_data): Likewise.
2052 * p-lang.c (pascal_language_data): Likewise.
2053 * rust-lang.c (rust_language_data): Likewise.
2054 * symtab.c (symbol_matches_domain): Update call.
2055
1fb314aa
AB
20562020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2057
2058 * ada-lang.c (ada_language_arch_info): Delete function, move
2059 implementation to...
2060 (ada_language::language_arch_info): ...here, a new member
2061 function.
2062 (ada_language_data): Delete la_language_arch_info.
2063 * c-lang.c (c_language_data): Likewise.
2064 (c_language::language_arch_info): New member function.
2065 (cplus_language_arch_info): Delete function, move
2066 implementation to...
2067 (cplus_language::language_arch_info): ...here, a new member
2068 function.
2069 (cplus_language_data): Delete la_language_arch_info.
2070 (asm_language_data): Likewise.
2071 (asm_language::language_arch_info): New member function.
2072 (minimal_language_data): Delete la_language_arch_info.
2073 (minimal_language::language_arch_info): New member function.
2074 * d-lang.c (d_language_arch_info): Delete function, move
2075 implementation to...
2076 (d_language::language_arch_info): ...here, a new member
2077 function.
2078 (d_language_data): Delete la_language_arch_info.
2079 * f-lang.c (f_language_arch_info): Delete function, move
2080 implementation to...
2081 (f_language::language_arch_info): ...here, a new member
2082 function.
2083 (f_language_data): Delete la_language_arch_info.
2084 * go-lang.c (go_language_arch_info): Delete function, move
2085 implementation to...
2086 (go_language::language_arch_info): ...here, a new member
2087 function.
2088 (go_language_data): Delete la_language_arch_info.
2089 * language.c (unknown_language_data): Likewise.
2090 (unknown_language::language_arch_info): New member function.
2091 (auto_language_data): Delete la_language_arch_info.
2092 (auto_language::language_arch_info): New member function.
2093 (language_gdbarch_post_init): Update call to
2094 la_language_arch_info.
2095 * language.h (language_data): Delete la_language_arch_info
2096 function pointer.
2097 (language_defn::language_arch_info): New function.
2098 * m2-lang.c (m2_language_arch_info): Delete function, move
2099 implementation to...
2100 (m2_language::language_arch_info): ...here, a new member
2101 function.
2102 (m2_language_data): Delete la_language_arch_info.
2103 * objc-lang.c (objc_language_arch_info): Delete function, move
2104 implementation to...
2105 (objc_language::language_arch_info): ...here, a new member
2106 function.
2107 (objc_language_data): Delete la_language_arch_info.
2108 * opencl-lang.c (opencl_language_arch_info): Delete function, move
2109 implementation to...
2110 (opencl_language::language_arch_info): ...here, a new member
2111 function.
2112 (opencl_language_data): Delete la_language_arch_info.
2113 * p-lang.c (pascal_language_arch_info): Delete function, move
2114 implementation to...
2115 (pascal_language::language_arch_info): ...here, a new member
2116 function.
2117 (pascal_language_data): Delete la_language_arch_info.
2118 * rust-lang.c (rust_language_arch_info): Delete function, move
2119 implementation to...
2120 (rust_language::language_arch_info): ...here, a new member
2121 function.
2122 (rust_language_data): Delete la_language_arch_info.
2123
48448202
AB
21242020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2125
2126 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
2127 initializer.
2128 * c-lang.c (c_language_data): Likewise.
2129 (cplus_language_data): Likewise.
2130 (cplus_language::pass_by_reference_info): New method.
2131 (asm_language_data): Delete la_pass_by_reference initializer.
2132 (minimal_language_data): Likewise.
2133 * cp-abi.c (cp_pass_by_reference): Remove use of
2134 default_pass_by_reference.
2135 * d-lang.c (d_language_data): Likewise.
2136 * f-lang.c (f_language_data): Likewise.
2137 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
2138 default_pass_by_reference.
2139 * go-lang.c (go_language_data): Likewise.
2140 * language.c (language_pass_by_reference): Update.
2141 (default_pass_by_reference): Delete.
2142 (unknown_language_data): Delete la_pass_by_reference
2143 initializer.
2144 (auto_language_data): Likewise.
2145 * language.h (struct language_data): Delete la_pass_by_reference
2146 field.
2147 (language_defn::pass_by_reference_info): New member function.
2148 (default_pass_by_reference): Delete declaration.
2149 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
2150 initializer.
2151 * objc-lang.c (objc_language_data): Likewise.
2152 * opencl-lang.c (opencl_language_data): Likewise.
2153 * p-lang.c (pascal_language_data): Likewise.
2154 * rust-lang.c (rust_language_data): Likewise.
2155
15e5fd35
AB
21562020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2157
2158 * ada-lang.c (ada_read_var_value): Delete function, move
2159 implementation to...
2160 (ada_language::read_var_value): ...here.
2161 (ada_language_data): Delete la_read_var_value initializer.
2162 * c-lang.c (c_language_data): Likewise.
2163 (cplus_language_data): Likewise.
2164 (minimal_language_data): Likewise.
2165 * d-lang.c (d_language_data): Likewise.
2166 * f-lang.c (f_language_data): Likewise.
2167 * findvar.c (default_read_var_value): Rename to...
2168 (language_defn::read_var_value): ...this.
2169 * findvar.c (read_var_value): Update header comment, and change to
2170 call member function instead of function pointer.
2171 * go-lang.c (go_language_data): Likewise.
2172 * language.c (unknown_language_data): Delete la_read_var_value
2173 initializer.
2174 (auto_language_data): Likewise.
2175 * language.h (struct language_data): Delete la_read_var_value
2176 field.
2177 (language_defn::read_var_value): New member function.
2178 (default_read_var_value): Delete declaration.
2179 * m2-lang.c (m2_language_data): Delete la_read_var_value
2180 initializer.
2181 * objc-lang.c (objc_language_data): Likewise.
2182 * opencl-lang.c (opencl_language_data): Likewise.
2183 * p-lang.c (pascal_language_data): Likewise.
2184 * rust-lang.c (rust_language_data): Likewise.
2185 * value.h (default_read_var_value): Delete declaration.
2186
5bd40f2a
AB
21872020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2188
2189 * ada-lang.c (ada_print_array_index): Delete function, move
2190 implementation to...
2191 (ada_language::print_array_index): ...here.
2192 (ada_language_data): Delete la_print_array_index initializer.
2193 * c-lang.c (c_language_data): Likewise.
2194 (cplus_language_data): Likewise.
2195 (minimal_language_data): Likewise.
2196 * d-lang.c (d_language_data): Likewise.
2197 * f-lang.c (f_language_data): Likewise.
2198 * go-lang.c (go_language_data): Likewise.
2199 * language.c (default_print_array_index): Delete function, move
2200 implementation to...
2201 (language_defn::print_array_index): ...here.
2202 (unknown_language_data): Delete la_print_array_index initializer.
2203 (auto_language_data): Likewise.
2204 * language.h (struct language_data): Delete la_print_array_index
2205 field.
2206 (language_defn::print_array_index): New member function.
2207 (LA_PRINT_ARRAY_INDEX): Update.
2208 (default_print_array_index): Delete declaration.
2209 * m2-lang.c (m2_language_data): Delete la_print_array_index
2210 initializer.
2211 * objc-lang.c (objc_language_data): Likewise.
2212 * opencl-lang.c (opencl_language_data): Likewise.
2213 * p-lang.c (pascal_language_data): Likewise.
2214 * rust-lang.c (rust_language_data): Likewise.
2215
0874fd07
AB
22162020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2217
2218 * gdb/ada-lang.c (ada_language_defn): Convert to...
2219 (ada_language_data): ...this.
2220 (class ada_language): New class.
2221 (ada_language_defn): New static global.
2222 * gdb/c-lang.c (c_language_defn): Convert to...
2223 (c_language_data): ...this.
2224 (class c_language): New class.
2225 (c_language_defn): New static global.
2226 (cplus_language_defn): Convert to...
2227 (cplus_language_data): ...this.
2228 (class cplus_language): New class.
2229 (cplus_language_defn): New static global.
2230 (asm_language_defn): Convert to...
2231 (asm_language_data): ...this.
2232 (class asm_language): New class.
2233 (asm_language_defn): New static global.
2234 (minimal_language_defn): Convert to...
2235 (minimal_language_data): ...this.
2236 (class minimal_language): New class.
2237 (minimal_language_defn): New static global.
2238 * gdb/d-lang.c (d_language_defn): Convert to...
2239 (d_language_data): ...this.
2240 (class d_language): New class.
2241 (d_language_defn): New static global.
2242 * gdb/f-lang.c (f_language_defn): Convert to...
2243 (f_language_data): ...this.
2244 (class f_language): New class.
2245 (f_language_defn): New static global.
2246 * gdb/go-lang.c (go_language_defn): Convert to...
2247 (go_language_data): ...this.
2248 (class go_language): New class.
2249 (go_language_defn): New static global.
2250 * gdb/language.c (unknown_language_defn): Remove declaration.
2251 (current_language): Initialize to nullptr, real initialization is
2252 moved to _initialize_language.
2253 (languages): Delete global.
2254 (language_defn::languages): Define.
2255 (set_language_command): Use language_defn::languages.
2256 (set_language): Likewise.
2257 (range_error): Likewise.
2258 (language_enum): Likewise.
2259 (language_def): Likewise.
2260 (add_set_language_command): Use language_def::languages for the
2261 language list, and language_def to lookup language pointers.
2262 (skip_language_trampoline): Use language_defn::languages.
2263 (unknown_language_defn): Convert to...
2264 (unknown_language_data): ...this.
2265 (class unknown_language): New class.
2266 (unknown_language_defn): New static global.
2267 (auto_language_defn): Convert to...
2268 (auto_language_data): ...this.
2269 (class auto_language): New class.
2270 (auto_language_defn): New static global.
2271 (language_gdbarch_post_init): Use language_defn::languages.
2272 (_initialize_language): Initialize current_language.
2273 * gdb/language.h (struct language_defn): Rename to...
2274 (struct language_data): ...this.
2275 (struct language_defn): New.
2276 (auto_language_defn): Delete.
2277 (unknown_language_defn): Delete.
2278 (minimal_language_defn): Delete.
2279 (ada_language_defn): Delete.
2280 (asm_language_defn): Delete.
2281 (c_language_defn): Delete.
2282 (cplus_language_defn): Delete.
2283 (d_language_defn): Delete.
2284 (f_language_defn): Delete.
2285 (go_language_defn): Delete.
2286 (m2_language_defn): Delete.
2287 (objc_language_defn): Delete.
2288 (opencl_language_defn): Delete.
2289 (pascal_language_defn): Delete.
2290 (rust_language_defn): Delete.
2291 * gdb/m2-lang.c (m2_language_defn): Convert to...
2292 (m2_language_data): ...this.
2293 (class m2_language): New class.
2294 (m2_language_defn): New static global.
2295 * gdb/objc-lang.c (objc_language_defn): Convert to...
2296 (objc_language_data): ...this.
2297 (class objc_language): New class.
2298 (objc_language_defn): New static global.
2299 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
2300 (opencl_language_data): ...this.
2301 (class opencl_language): New class.
2302 (opencl_language_defn): New static global.
2303 * gdb/p-lang.c (pascal_language_defn): Convert to...
2304 (pascal_language_data): ...this.
2305 (class pascal_language): New class.
2306 (pascal_language_defn): New static global.
2307 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
2308 language pointer, update comment format.
2309 * gdb/rust-lang.c (rust_language_defn): Convert to...
2310 (rust_language_data): ...this.
2311 (class rust_language): New class.
2312 (rust_language_defn): New static global.
2313
1313c56e
AB
23142020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
2315
2316 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
2317 member variable.
2318 <m_stmt_at_address>: New member variable.
2319 (lnp_state_machine::record_line): Don't record some lines, update
2320 tracking of is_stmt at the same address.
2321 (lnp_state_machine::lnp_state_machine): Initialise new member
2322 variables.
2323
b7ed9f3d
ST
23242020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
2325
2326 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
2327 "-include gnu-nat-mig.h".
2328 * gnu-nat-mig.h: New file.
2329 * gnu-nat.c: Include "gnu-nat-mig.h".
2330 (exc_server, msg_reply_server, notify_server,
2331 process_reply_server): Remove declarations.
2332
14a8ad62
ST
23332020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2334
2335 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
2336 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
2337 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
2338 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
2339 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
2340 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
2341 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
2342 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
2343 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
2344 to gnu_nat_target class.
2345 * gnu-nat.c: Likewise.
2346 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
2347 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
2348 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
2349 object.
2350 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
2351 instead of `gnu_target'.
2352
0af5e106
ST
23532020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2354
2355 * i386-gnu-tdep.c: Include "gdbcore.h"
2356 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
2357 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
2358 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
2359 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
2360 i386_gnu_sigcontext_addr): New functions
2361 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
2362 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
2363 tdep.
2364
078f2fc9
ST
23652020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2366
2367 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
2368 before fork_inferior call. Avoid calling it if target_is_pushed returns
2369 true.
2370
53dff92c
ST
23712020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2372
2373 * gnu-nat.h (gnu_target): New variable declaration.
2374 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
2375 gnu_target.
2376 * gnu-nat.c (gnu_target): New variable.
2377 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
2378 add_thread_silent, and add_thread calls.
2379 (gnu_nat_target::create_inferior): Pass gnu_target to
2380 add_thread_silent, thread_change_ptid call.
2381 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
2382 call.
2383
5a8b8627
ST
23842020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2385
2386 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
2387 (gnu_nat_target::find_memory_regions): Remove unused
2388 `old_address' variable.
2389
366f550a
ST
23902020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2391
2392 * gnu-nat.c: Include "gdbarch.h".
2393
f14871bf
ST
23942020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2395
2396 * reply_mig_hack.awk (Error return): Cast function through
2397 void *, to bypass compiler function call check.
2398
c6887cfb
ST
23992020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2400
2401 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
2402 $(srcdir)/reply_mig_hack.awk.
2403
6930bffe
ST
24042020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2405
2406 * gnu-nat.h (gnu_debug_flag): Set type to bool.
2407
112c22ed
JG
24082020-05-30 Jonny Grant <jg@jguk.org>
2409
2410 * configure.ac (ACX_BUGURL): change bug URL to https.
2411
f68f85b5
PA
24122020-05-30 Pedro Alves <palves@redhat.com>
2413
2414 * cp-support.c (replace_typedefs_template): New.
2415 (replace_typedefs_qualified_name): Handle
2416 DEMANGLE_COMPONENT_TEMPLATE.
2417
976ca316
SM
24182020-05-29 Simon Marchi <simon.marchi@efficios.com>
2419
2420 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
2421 dwarf2/index-cache.h, dwarf2/index-write.c,
2422 dwarf2/index-write.h, dwarf2/line-header.c,
2423 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
2424 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
2425 variables and fields from `dwarf2_per_objfile` to just
2426 `per_objfile` throughout.
2427
989ade05
SM
24282020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
2429
2430 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
2431 <push_dwarf_reg_entry_value>: Add comment.
2432
c47bae85
KB
24332020-05-28 Kevin Buettner <kevinb@redhat.com>
2434 Keith Seitz <keiths@redhat.com>
2435
2436 * python/python.c (do_start_initialization): Call PyEval_SaveThread
2437 instead of PyEval_ReleaseLock.
2438 (class gdbpy_gil): Move to earlier in file.
2439 (finalize_python): Set gdb_python_initialized.
2440 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
2441 when not initialized.
2442
44486dcf
SM
24432020-05-28 Simon Marchi <simon.marchi@efficios.com>
2444
2445 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
2446 <push_dwarf_reg_entry_value>: Remove assert. Override
2447 per_objfile with caller_per_objfile.
2448
f030440d
TV
24492020-05-28 Tom de Vries <tdevries@suse.de>
2450
2451 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
2452 PR gold/15646 workaround to symbol kind "type".
2453
f0fbb768
TT
24542020-05-27 Tom Tromey <tromey@adacore.com>
2455
2456 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
2457
af0b2a3e
TT
24582020-05-27 Tom Tromey <tromey@adacore.com>
2459
2460 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
2461 Use htab_find_with_hash.
2462 <add_abbrev>: Remove "abbrev_number" parameter.
2463 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
2464 "abbrev_number" parameter. Use htab_find_slot_with_hash.
2465 (hash_abbrev): Add comment.
2466 (abbrev_table::lookup_abbrev): Move to header file.
2467 (abbrev_table::read): Update.
2468
7d00ffec
TT
24692020-05-27 Tom Tromey <tromey@adacore.com>
2470
2471 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
2472 method.
2473 <canonical_name>: New member.
2474 <raw_name>: Rename from "name".
2475 (partial_die_info): Initialize canonical_name.
2476 (scan_partial_symbols): Check raw_name.
2477 (partial_die_parent_scope, partial_die_full_name)
2478 (add_partial_symbol, add_partial_subprogram)
2479 (add_partial_enumeration, load_partial_dies): Use "name" method.
2480 (partial_die_info::name): New method.
2481 (partial_die_info::read, guess_partial_die_structure_name)
2482 (partial_die_info::fixup): Update.
2483
697bba18
TT
24842020-05-27 Tom Tromey <tromey@adacore.com>
2485
2486 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
2487 <get_ref_die_offset>: Inline.
2488 <get_ref_die_offset_complaint>: New method.
2489 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
2490 (attribute::get_ref_die_offset_complaint): Rename from
2491 get_ref_die_offset. Just issue complaint.
2492
c17ace43
HD
24932020-05-27 Hannes Domani <ssbssa@yahoo.de>
2494
2495 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
2496
96445f0b
HD
24972020-05-27 Hannes Domani <ssbssa@yahoo.de>
2498
2499 * exec.c (exec_file_attach): Use errno value of first openp failure.
2500
ac637ec3
HD
25012020-05-27 Hannes Domani <ssbssa@yahoo.de>
2502
2503 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
2504 Don't close thread handle.
2505
17ee85fc
TT
25062020-05-27 Tom Tromey <tom@tromey.com>
2507 Simon Marchi <simon.marchi@efficios.com>
2508
2509 * objfiles.h (struct objfile) <partial_symtabs>: Now a
2510 shared_ptr.
2511 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
2512 member.
2513 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
2514 dwarf2_per_bfd_objfile_data_key>: New globals.
2515 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
2516 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
2517 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
2518 shared.
2519 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
2520 short-circuit when sharing.
2521 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
2522 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
2523
39b16f87
SM
25242020-05-27 Simon Marchi <simon.marchi@efficios.com>
2525
2526 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
2527 to...
2528 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
2529 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
2530
fcf23d5b
SM
25312020-05-27 Simon Marchi <simon.marchi@efficios.com>
2532
2533 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
2534 build_name_components, find_name_components_bounds>:
2535 Add per_objfile parameter.
2536 (struct mapped_index) <symbol_name_at>: Likewise.
2537 (struct mapped_debug_names): Remove constructor.
2538 <dwarf2_per_objfile>: Remove field.
2539 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
2540 (mapped_index_base::find_name_components_bounds,
2541 mapped_index_base::build_name_components,
2542 dw2_expand_symtabs_matching_symbol): Likewise.
2543 (class mock_mapped_index) <symbol_name_at>: Likewise.
2544 (check_match): Likewise.
2545 (check_find_bounds_finds): Likewise.
2546 (test_mapped_index_find_name_component_bounds): Update.
2547 (CHECK_MATCH): Update.
2548 (dw2_expand_symtabs_matching): Update.
2549 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
2550 per_objfile parameter.
2551 <find_vec_in_debug_names>: Likewise.
2552 <m_per_objfile>: New field.
2553 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
2554 parameter.
2555 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
2556 (dw2_debug_names_iterator::next): Update.
2557 (dw2_debug_names_lookup_symbol): Update.
2558 (dw2_debug_names_expand_symtabs_for_function): Update.
2559 (dw2_debug_names_map_matching_symbols): Update.
2560 (dw2_debug_names_expand_symtabs_matching): Update.
2561 (dwarf2_read_debug_names): Update.
2562
7188ed02
SM
25632020-05-27 Simon Marchi <simon.marchi@efficios.com>
2564
2565 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
2566 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
2567 move to dwarf2_per_objfile.
2568 <read_in_chain>: Remove.
2569 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
2570 remove_all_cus, age_comp_units>: New methods.
2571 <m_dwarf2_cus>: New member.
2572 (struct dwarf2_per_cu_data) <cu>: Remove.
2573 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
2574 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
2575 moved to methods of dwarf2_per_objfile.
2576 (dwarf2_clear_marks): Remove.
2577 (dwarf2_queue_item::~dwarf2_queue_item): Update.
2578 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
2579 (dwarf2_per_bfd::free_cached_comp_units): Remove.
2580 (dwarf2_per_objfile::remove_all_cus): New.
2581 (class free_cached_comp_units) <~free_cached_comp_units>:
2582 Update.
2583 (load_cu): Update.
2584 (dw2_do_instantiate_symtab): Adjust.
2585 (fill_in_sig_entry_from_dwo_entry): Adjust.
2586 (cutu_reader::init_tu_and_read_dwo_dies): Update.
2587 (cutu_reader::cutu_reader): Likewise.
2588 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
2589 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
2590 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
2591 and dwarf2_per_objfile::age_comp_units.
2592 (load_partial_comp_unit): Update.
2593 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
2594 (process_queue): Likewise.
2595 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
2596 backlink.
2597 (dwarf2_read_addr_index): Likewise.
2598 (follow_die_offset): Likewise.
2599 (dwarf2_fetch_die_loc_sect_off): Likewise.
2600 (dwarf2_fetch_constant_bytes): Likewise.
2601 (dwarf2_fetch_die_type_sect_off): Likewise.
2602 (follow_die_sig_1): Likewise.
2603 (load_full_type_unit): Likewise.
2604 (read_signatured_type): Likewise.
2605 (dwarf2_cu::dwarf2_cu): Don't set cu field.
2606 (dwarf2_cu::~dwarf2_cu): Remove.
2607 (dwarf2_per_objfile::get_cu): New.
2608 (dwarf2_per_objfile::set_cu): New.
2609 (age_cached_comp_units): Rename to...
2610 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
2611 to std::unordered_map.
2612 (free_one_cached_comp_unit): Rename to...
2613 (dwarf2_per_objfile::remove_cu): ... this. Adjust
2614 to std::unordered_map.
2615 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
2616 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
2617 a dwarf2_per_objfile in data.
2618 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
2619 (dwarf2_clear_marks): Remove.
2620
2e671100
SM
26212020-05-27 Simon Marchi <simon.marchi@efficios.com>
2622
2623 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
2624 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
2625 (init_tu_and_read_dwo_dies): Likewise.
2626 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
2627 (cutu_reader::cutu_reader): Likewise.
2628 (load_partial_comp_unit): Likewise.
2629 (process_psymtab_comp_unit): Update.
2630 (build_type_psymtabs_1): Update.
2631 (process_skeletonless_type_unit): Update.
2632 (load_full_comp_unit): Update.
2633 (find_partial_die): Update.
2634 (dwarf2_read_addr_index): Update.
2635 (read_signatured_type): Update.
2636
2e6a9f79
SM
26372020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2638
2639 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
2640 m_header_read_in>: New fields.
2641 <get_header>: New method.
2642 * dwarf2/read.c (per_cu_header_read_in): Remove.
2643 (dwarf2_per_cu_data::get_header): New.
2644 (dwarf2_per_cu_data::addr_size): Update.
2645 (dwarf2_per_cu_data::offset_size): Update.
2646 (dwarf2_per_cu_data::ref_addr_size): Update.
2647
1b555f17
SM
26482020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2649
2650 * dwarf2/read.c (load_cu): Return dwarf2_cu.
2651 (dw2_do_instantiate_symtab): Update.
2652 (queue_and_load_all_dwo_tus): Change parameter from
2653 dwarf2_per_cu_data to dwarf2_cu.
2654 (dwarf2_fetch_die_loc_sect_off): Update.
2655 (dwarf2_fetch_constant_bytes): Update.
2656 (dwarf2_fetch_die_type_sect_off): Update.
2657
8fc0b21d
SM
26582020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2659
2660 * dwarf2/read.c (process_full_comp_unit,
2661 process_full_type_unit): Remove per_cu, per_objfile paramters.
2662 Add dwarf2_cu parameter.
2663 (process_queue): Update.
2664
168c9250
SM
26652020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2666
2667 * dwarf2/read.c (create_cu_from_index_list): Replace
2668 dwarf2_per_objfile parameter with dwarf2_per_bfd.
2669 (create_cus_from_index_list): Likewise.
2670 (create_cus_from_index): Likewise.
2671 (create_signatured_type_table_from_index): Likewise.
2672 (create_cus_from_debug_names_list): Likewise.
2673 (create_cus_from_debug_names): Likewise.
2674 (dwarf2_read_gdb_index): Update.
2675 (dwarf2_read_debug_names): Update.
2676
e286671b
TT
26772020-05-27 Tom Tromey <tom@tromey.com>
2678 Simon Marchi <simon.marchi@efficios.com>
2679
2680 * dwarf2/read.h (struct dwarf2_per_objfile)
2681 <get_type_for_signatured_type, set_type_for_signatured_type>:
2682 New methods.
2683 <m_type_map>: New member.
2684 (struct signatured_type) <type>: Remove.
2685 * dwarf2/read.c
2686 (dwarf2_per_objfile::get_type_for_signatured_type,
2687 dwarf2_per_objfile::set_type_for_signatured_type): New.
2688 (get_signatured_type): Use new methods.
2689
8adb8487
TT
26902020-05-27 Tom Tromey <tom@tromey.com>
2691 Simon Marchi <simon.marchi@efficios.com>
2692
2693 * dwarf2/read.h (struct type_unit_group_unshareable): New.
2694 (struct dwarf2_per_objfile) <type_units>: New member.
2695 <get_type_unit_group_unshareable>: New method.
2696 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
2697 num_symtabs, symtabs>: Remove; move to
2698 type_unit_group_unshareable.
2699 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
2700 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
2701 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
2702
127bbf4b
SM
27032020-05-27 Simon Marchi <simon.marchi@efficios.com>
2704
2705 * dwarf2/read.h (struct dwarf2_per_cu_data):
2706 <dwarf2_per_objfile>: Remove.
2707 * dwarf2/read.c (create_cu_from_index_list): Don't assign
2708 dwarf2_per_objfile.
2709 (create_signatured_type_table_from_index): Likewise.
2710 (create_signatured_type_table_from_debug_names): Likewise.
2711 (create_debug_type_hash_table): Likewise.
2712 (fill_in_sig_entry_from_dwo_entry): Likewise.
2713 (create_type_unit_group): Likewise.
2714 (read_comp_units_from_section): Likewise.
2715 (create_cus_hash_table): Likewise.
2716
f6e649dd
SM
27172020-05-27 Simon Marchi <simon.marchi@efficios.com>
2718
2719 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
2720 dwarf2_per_cu_data::dwarf2_per_objfile.
2721 (compute_compunit_symtab_includes): Likewise.
2722 (dwarf2_cu::start_symtab): Likewise.
2723
aa66c379
SM
27242020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2725
2726 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
2727 parameter.
2728 * dwarf2/read.c (get_die_type_at_offset): Likewise.
2729 (read_namespace_alias): Update.
2730 (lookup_die_type): Update.
2731 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
2732 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
2733 Update.
2734 (disassemble_dwarf_expression): Update.
2735
120ce1b5
SM
27362020-05-27 Simon Marchi <simon.marchi@efficios.com>
2737
2738 * dwarf2/read.h (struct dwarf2_queue_item): Add
2739 dwarf2_per_objfile parameter, assign new parameter.
2740 <per_objfile>: New field.
2741 * dwarf2/read.c (free_one_cached_comp_unit): Add
2742 dwarf2_per_objfile parameter.
2743 (queue_comp_unit): Likewise.
2744 (dw2_do_instantiate_symtab): Update.
2745 (process_psymtab_comp_unit): Update.
2746 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
2747 (process_imported_unit_die): Update.
2748 (queue_and_load_dwo_tu): Update.
2749 (follow_die_offset): Update.
2750 (follow_die_sig_1): Update.
2751
9f47c707
SM
27522020-05-27 Simon Marchi <simon.marchi@efficios.com>
2753
2754 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
2755 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
2756 (read_call_site_scope): Assign per_objfile.
2757 (dwarf2_per_cu_data::objfile): Remove.
2758 * gdbtypes.h (struct call_site) <per_objfile>: New member.
2759 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
2760 dwarf2_per_objfile parameter.
2761 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
2762 dwarf2_per_objfile parameter.
2763 (dwarf_expr_reg_to_entry_parameter): Add output
2764 dwarf2_per_objfile parameter.
2765 (locexpr_get_frame_base): Update.
2766 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
2767 <push_dwarf_reg_entry_value>: Update.
2768 <call_site_to_target_addr>: Update.
2769 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
2770 parameter.
2771 (value_of_dwarf_reg_entry): Update.
2772 (rw_pieced_value): Update.
2773 (indirect_synthetic_pointer): Update.
2774 (dwarf2_evaluate_property): Update.
2775 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
2776 parameter.
2777 (locexpr_read_variable): Update.
2778 (locexpr_get_symbol_read_needs): Update.
2779 (loclist_read_variable): Update.
2780
14095eb3
SM
27812020-05-27 Simon Marchi <simon.marchi@efficios.com>
2782
2783 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
2784 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
2785 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
2786 parameter.
2787 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
2788 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
2789 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
2790 parameter.
2791 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
2792 sect_variable_value): Add dwarf2_per_objfile parameter.
2793 (class dwarf_evaluate_loc_desc) <dwarf_call,
2794 dwarf_variable_value>: Update.
2795 (fetch_const_value_from_synthetic_pointer): Add
2796 dwarf2_per_objfile parameter.
2797 (fetch_const_value_from_synthetic_pointer): Update.
2798 (coerced_pieced_ref): Update.
2799 (class symbol_needs_eval_context) <dwarf_call,
2800 dwarf_variable_value>: Update.
2801 (dwarf2_compile_expr_to_ax): Update.
2802
3c3cd3d4
SM
28032020-05-27 Simon Marchi <simon.marchi@efficios.com>
2804
2805 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
2806 parameter.
2807 (dwarf2_evaluate_loc_desc_full): Update.
2808
82ca3f51
SM
28092020-05-27 Simon Marchi <simon.marchi@efficios.com>
2810
2811 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
2812 parameter.
2813 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
2814 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
2815 dwarf2_per_objfile parameter.
2816 (decode_debug_loc_dwo_addresses): Likewise.
2817 (dwarf2_find_location_expression): Update.
2818 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
2819 (locexpr_describe_location_piece): Add dwarf2_per_objfile
2820 parameter.
2821 (disassemble_dwarf_expression): Add dwarf2_per_objfile
2822 parameter.
2823 (locexpr_describe_location_1): Likewise.
2824 (locexpr_describe_location): Update.
2825
4b167ea1
SM
28262020-05-27 Simon Marchi <simon.marchi@efficios.com>
2827
2828 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
2829 Remove.
2830 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
2831 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
2832 (dwarf2_compile_property_to_c): Update.
2833 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
2834 use text offset from objfile.
2835 (locexpr_tracepoint_var_ref): Update.
2836 (locexpr_generate_c_location): Update.
2837 (loclist_describe_location): Update.
2838 (loclist_tracepoint_var_ref): Update.
2839 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
2840 dwarf2_per_objfile parameter.
2841 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
2842 use text offset from objfile.
2843 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
2844
89b07335
SM
28452020-05-27 Simon Marchi <simon.marchi@efficios.com>
2846
2847 * dwarf2/expr.h (struct dwarf_expr_context)
2848 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
2849 <offset>: Remove.
2850 <per_objfile>: New member.
2851 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
2852 dwarf2_per_objfile parameter. Don't set offset, set
2853 per_objfile.
2854 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
2855 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
2856 a dwarf2_per_objfile object instead of an offset.
2857 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
2858 constructor.
2859 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
2860 to dwarf2_expr_executor constructor. Don't set offset.
2861 (dwarf2_fetch_cfa_info): Update.
2862 (struct dwarf2_frame_cache) <text_offset>: Remove.
2863 <per_objfile>: New field.
2864 (dwarf2_frame_cache): Update.
2865 (dwarf2_frame_prev_register): Update.
2866 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
2867 <dwarf_evaluate_loc_desc>: Add constructor.
2868 (dwarf2_evaluate_loc_desc_full): Update.
2869 (dwarf2_locexpr_baton_eval): Update.
2870 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
2871 Add constructor.
2872 (dwarf2_loc_desc_get_symbol_read_needs): Update.
2873
293e7e51
SM
28742020-05-27 Simon Marchi <simon.marchi@efficios.com>
2875
2876 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
2877 addr_sized_int_type>: Move to dwarf2_cu.
2878 <int_type>: Move to dwarf2_per_objfile.
2879 (struct dwarf2_per_objfile) <int_type>: Move here.
2880 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
2881 addr_sized_int_type>: Move here.
2882 (read_func_scope): Update.
2883 (read_array_type): Update.
2884 (read_tag_string_type): Update.
2885 (attr_to_dynamic_prop): Update.
2886 (dwarf2_per_cu_data::int_type): Rename to...
2887 (dwarf2_per_objfile::int_type): ... this.
2888 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
2889 (dwarf2_cu::addr_sized_int_type): ... this.
2890 (read_subrange_type): Update.
2891 (dwarf2_per_cu_data::addr_type): Rename to...
2892 (dwarf2_cu::addr_type): ... this.
2893 (set_die_type): Update.
2894
64874a40
SM
28952020-05-27 Simon Marchi <simon.marchi@efficios.com>
2896
2897 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
2898 data through per_cu->cu.
2899
4ab09049
SM
29002020-05-27 Simon Marchi <simon.marchi@efficios.com>
2901
2902 * dwarf2/read.c (lookup_dwo_comp_unit): Change
2903 dwarf2_per_cu_data parameter fo dwarf2_cu.
2904 (lookup_dwo_type_unit): Likewise.
2905 (read_cutu_die_from_dwo): Likewise.
2906 (lookup_dwo_unit): Likewise.
2907 (open_and_init_dwo_file): Likewise.
2908 (lookup_dwo_cutu): Likewise.
2909 (lookup_dwo_comp_unit): Likewise.
2910 (lookup_dwo_type_unit): Likewise.
2911 (cutu_reader::init_tu_and_read_dwo_dies): Update.
2912 (cutu_reader::cutu_reader): Update.
2913
47b14e86
SM
29142020-05-27 Simon Marchi <simon.marchi@efficios.com>
2915
2916 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
2917 parameter.
2918 (process_full_type_unit): Likewise.
2919 (process_queue): Update.
2920
43182c09
SM
29212020-05-27 Simon Marchi <simon.marchi@efficios.com>
2922
2923 * dwarf2/read.c (recursively_compute_inclusions): Add
2924 dwarf2_per_objfile parameter.
2925 (compute_compunit_symtab_includes): Likewise.
2926 (process_cu_includes): Update.
2927
7aa104c4
SM
29282020-05-27 Simon Marchi <simon.marchi@efficios.com>
2929
2930 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
2931 parameter.
2932 (create_type_unit_group): Update.
2933 (process_psymtab_comp_unit_reader): Update.
2934 (build_type_psymtabs_reader): Update.
2935
e3beb21d
SM
29362020-05-27 Simon Marchi <simon.marchi@efficios.com>
2937
2938 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
2939 object through m_this_cu->cu.
2940
d460f660
SM
29412020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2942
2943 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
2944 the info parameter.
2945 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
2946
ab432490
SM
29472020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2948
2949 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
2950 per_objfile parameter.
2951 (load_full_type_unit): Add per_objfile parameter.
2952 (read_signatured_type): Likewise.
2953 (load_full_comp_unit): Likewise.
2954 (load_cu): Likewise.
2955 (dw2_do_instantiate_symtab): Likewise.
2956 (dw2_get_file_names): Likewise.
2957 (dw2_map_symtabs_matching_filename): Update.
2958 (dw_expand_symtabs_matching_file_matcher): Update.
2959 (dw2_map_symbol_filenames): Update.
2960 (process_psymtab_comp_unit): Add per_objfile parameter.
2961 (build_type_psymtabs_1): Update.
2962 (process_skeletonless_type_unit): Update.
2963 (dwarf2_build_psymtabs_hard): Update.
2964 (load_partial_comp_unit): Add per_objfile parameter.
2965 (scan_partial_symbols): Update.
2966 (load_full_comp_unit): Add per_objfile parameter.
2967 (process_imported_unit_die): Update.
2968 (create_cus_hash_table): Update.
2969 (find_partial_die): Update.
2970 (dwarf2_read_addr_index): Update.
2971 (follow_die_offset): Update.
2972 (dwarf2_fetch_die_loc_sect_off): Update.
2973 (dwarf2_fetch_constant_bytes): Update.
2974 (dwarf2_fetch_die_type_sect_off): Update.
2975 (follow_die_sig_1): Update.
2976 (load_full_type_unit): Add per_objfile parameter.
2977 (read_signatured_type): Likewise.
2978
313bad1b
SM
29792020-05-27 Simon Marchi <simon.marchi@efficios.com>
2980
2981 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
2982 of objfile_name.
2983
c3699833
SM
29842020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2985
2986 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
2987 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
2988 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
2989 field.
2990 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
2991 (create_cus_from_index): Update.
2992 (dwarf2_read_gdb_index): Update.
2993 (create_cus_from_debug_names): Update.
2994 (dwarf2_read_debug_names): Update.
2995 (get_abbrev_section_for_cu): Update.
2996 (create_all_comp_units): Update.
2997 (read_attribute_value): Update.
2998 (get_debug_line_section): Update.
2999 * dwarf2/index-cache.c (index_cache::store): Update.
3000 * dwarf2/index-write.c (save_gdb_index_command): Update.
3001 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
3002
1859c670
SM
30032020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3004
3005 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
3006 member.
3007 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
3008 dwarf2_per_cu_data::per_bfd.
3009 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
3010 (create_type_unit_group): Likewise.
3011 (queue_comp_unit): Remove reference to
3012 per_cu->dwarf2_per_objfile.
3013 (maybe_queue_comp_unit): Likewise.
3014 (fill_in_sig_entry_from_dwo_entry): Assign new field.
3015 (create_cus_hash_table): Assign new field.
3016
5e22e966
SM
30172020-05-27 Simon Marchi <simon.marchi@efficios.com>
3018
3019 * dwarf2/read.c: Replace
3020 dwarf2_cu->per_cu->dwarf2_per_objfile references with
3021 dwarf2_cu->per_objfile throughout.
3022
97a1449a
SM
30232020-05-27 Simon Marchi <simon.marchi@efficios.com>
3024
3025 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
3026 parameter, don't use per_cu->dwarf2_per_objfile.
3027 (dw2_instantiate_symtab): Likewise.
3028 (dw2_find_last_source_symtab): Update.
3029 (dw2_map_expand_apply): Update.
3030 (dw2_lookup_symbol): Update.
3031 (dw2_expand_symtabs_for_function): Update.
3032 (dw2_expand_all_symtabs): Update.
3033 (dw2_expand_symtabs_with_fullname): Update.
3034 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
3035 don't use per_cu->dwarf2_per_objfile.
3036 (dw2_expand_marked_cus): Update.
3037 (dw2_find_pc_sect_compunit_symtab): Update.
3038 (dw2_debug_names_lookup_symbol): Update.
3039 (dw2_debug_names_expand_symtabs_for_function): Update.
3040 (dw2_debug_names_map_matching_symbols): Update.
3041 (dwarf2_psymtab::expand_psymtab): Update.
3042
9e021579
SM
30432020-05-27 Simon Marchi <simon.marchi@efficios.com>
3044
3045 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
3046 <per_objfile>: New member.
3047 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
3048 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
3049 call to dwarf2_cu.
3050 (cutu_reader::cutu_reader): Update.
3051 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
3052
ae090bdb
SM
30532020-05-27 Simon Marchi <simon.marchi@efficios.com>
3054
3055 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
3056 struct dwarf2_per_objfile.
3057 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
3058 dwarf2_per_bfd.
3059 * dwarf2/read.c (set_die_type): Update.
3060 (get_die_type_at_offset): Update.
3061
af758d11
SM
30622020-05-27 Tom Tromey <tom@tromey.com>
3063 Simon Marchi <simon.marchi@efficios.com>
3064
3065 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
3066 method.
3067 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
3068 get_symtab, set_symtab>: New methods.
3069 <m_symtabs>: New field.
3070 (struct dwarf2_psymtab): Derive from partial_symtab.
3071 <readin_p, get_compunit_symtab>: Declare methods.
3072 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
3073 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
3074 New methods.
3075 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
3076 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
3077 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
3078 (dw2_symtab_iter_next, dw2_print_stats)
3079 (dw2_expand_symtabs_with_fullname)
3080 (dw2_expand_symtabs_matching_one)
3081 (dw_expand_symtabs_matching_file_matcher)
3082 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
3083 (dw2_debug_names_iterator::next)
3084 (dw2_debug_names_map_matching_symbols)
3085 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
3086 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
3087 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
3088 New methods.
3089 (get_compunit_symtab, process_full_comp_unit)
3090 (process_full_type_unit): Update.
3091 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
3092
5989a64e
SM
30932020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3094
3095 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
3096 then introduce a new dwarf2_per_objfile type.
3097 <read_line_string>: Move to the new dwarf2_per_objfile type.
3098 <objfile>: Likewise.
3099 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
3100 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
3101 dwarf2_per_objfile->per_bfd.
3102 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
3103 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
3104 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
3105 (dwarf2_per_bfd::free_cached_comp_units): ... this.
3106 (dwarf2_has_info): Allocate dwarf2_per_bfd.
3107 (dwarf2_per_objfile::locate_sections): Rename to...
3108 (dwarf2_per_bfd::locate_sections): ... this.
3109 (dwarf2_per_objfile::get_cutu): Rename to...
3110 (dwarf2_per_bfd::get_cutu): ... this.
3111 (dwarf2_per_objfile::get_cu): Rename to...
3112 (dwarf2_per_bfd::get_cu): ... this.
3113 (dwarf2_per_objfile::get_tu): Rename to...
3114 (dwarf2_per_bfd::get_tu): ... this.
3115 (dwarf2_per_objfile::allocate_per_cu): Rename to...
3116 (dwarf2_per_bfd::allocate_per_cu): ... this.
3117 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
3118 (dwarf2_per_bfd::allocate_signatured_type): ... this.
3119 (get_gdb_index_contents_ftype): Change parameter from
3120 dwarf2_per_objfile to dwarf2_per_bfd.
3121 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
3122 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
3123
a50264ba
TT
31242020-05-27 Tom Tromey <tom@tromey.com>
3125 Simon Marchi <simon.marchi@efficios.com>
3126
3127 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
3128 (allocate_piece_closure): Set "per_objfile" member.
3129 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
3130 (locexpr_describe_location, loclist_describe_location): Use new
3131 member.
3132 * dwarf2/read.c (read_call_site_scope)
3133 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
3134 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
3135 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
3136 handle_data_member_location): Set per_objfile member.
3137 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
3138 member.
3139 (struct dwarf2_loclist_baton) <per_objfile>: New member.
3140
d3473f0c
TT
31412020-05-27 Tom Tromey <tom@tromey.com>
3142
3143 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
3144 allocate_signatured_type>: Declare new methods.
3145 <m_num_psymtabs>: New member.
3146 (struct dwarf2_per_cu_data) <index>: New member.
3147 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
3148 (dwarf2_per_objfile::allocate_signatured_type): New methods.
3149 (create_cu_from_index_list): Use allocate_per_cu.
3150 (create_signatured_type_table_from_index)
3151 (create_signatured_type_table_from_debug_names)
3152 (create_debug_type_hash_table, add_type_unit)
3153 (read_comp_units_from_section): Use allocate_signatured_type.
3154
5717c425
TT
31552020-05-27 Tom Tromey <tom@tromey.com>
3156
3157 * psymtab.c (partial_map_expand_apply)
3158 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
3159 (psym_lookup_global_symbol_language)
3160 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
3161 (psym_print_stats, psym_expand_symtabs_for_function)
3162 (psym_map_symbol_filenames, psym_map_matching_symbols)
3163 (psym_expand_symtabs_matching)
3164 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
3165 (maintenance_check_psymtabs): Update.
3166 * psympriv.h (struct partial_symtab) <readin_p,
3167 get_compunit_symtab>: Add objfile parameter.
3168 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
3169 Likewise.
3170 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
3171 get_compunit_symtab>: Likewise.
3172 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
3173
45940949
TT
31742020-05-27 Tom Tromey <tom@tromey.com>
3175
3176 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
3177 member.
3178 * dwarf2/read.c (delete_file_name_entry): Fix comment.
3179 (create_cu_from_index_list)
3180 (create_signatured_type_table_from_index)
3181 (create_signatured_type_table_from_debug_names)
3182 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
3183 (dwarf2_create_include_psymtab)
3184 (create_debug_type_hash_table, add_type_unit)
3185 (create_type_unit_group, read_comp_units_from_section)
3186 (dwarf2_compute_name, create_cus_hash_table)
3187 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
3188 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
3189 obstack.
3190 (dw2_get_real_path): Likewise. Change argument to
3191 dwarf2_per_objfile.
3192
f8c6d152
LM
31932020-05-27 Luis Machado <luis.machado@linaro.org>
3194
3195 PR tdep/26000
3196 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
3197 for ldrd (immediate).
3198
e98d2e6d
PW
31992020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3200
3201 * command.h: Add comment giving the name of class_tui.
3202 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
3203 create the fake command for the help for class_tui.
3204
53a47a3e
TT
32052020-05-26 Tom Tromey <tromey@adacore.com>
3206
3207 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
3208 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
3209 (val_atr): New function.
3210 (value_val_atr): Use it.
3211 * ada-valprint.c (print_optional_low_bound): Change low bound
3212 handling for enums.
3213 (val_print_packed_array_elements): Don't call discrete_position.
3214 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
3215 discrete_position for enum types.
3216 * language.c (default_print_array_index): Change type.
3217 * language.h (struct language_defn) <la_print_array_index>: Add
3218 index_type parameter, change type of index_value.
3219 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
3220 (default_print_array_index): Update.
3221 * valprint.c (maybe_print_array_index): Don't call
3222 value_from_longest. Update.
3223 (value_print_array_elements): Don't call discrete_position.
3224
0bc2354b
TT
32252020-05-26 Tom Tromey <tromey@adacore.com>
3226
3227 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
3228 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
3229
1218a4bf
CDA
32302020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
3231
3232 PR gdb/13519
3233 * avr-tdep.c (avr_integer_to_address): Return data or code
3234 address accordingly to the second 'type' argument of the
3235 function.
3236
92651b1d
MW
32372020-05-25 Michael Weghorn <m.weghorn@posteo.de>
3238
3239 * infcmd.c, inferior.h: (construct_inferior_arguments):
3240 Moved function from here to gdbsupport/common-inferior.{h,cc}
3241
0a4f5f8c
TT
32422020-05-23 Tom Tromey <tom@tromey.com>
3243
3244 Revert commit eca1f90c:
3245 * NEWS: Remove entry for completion styling.
3246 * completer.c (_rl_completion_prefix_display_length): Move
3247 declaration later.
3248 (gdb_fnprint): Revert.
3249 (gdb_display_match_list_1): Likewise.
3250 * cli/cli-style.c (completion_prefix_style)
3251 (completion_difference_style, completion_suffix_style): Remove.
3252 (_initialize_cli_style): Revert.
3253 * cli/cli-style.h (completion_prefix_style)
3254 (completion_difference_style, completion_suffix_style): Don't
3255 declare.
3256
e08bd6c5
PA
32572020-05-24 Pedro Alves <palves@redhat.com>
3258
3259 * symtab.c (completion_list_add_name): Return boolean indication
3260 of whether the symbol matched.
3261 (completion_list_add_symbol): Don't try to remove C++ aliases if
3262 the symbol didn't match in the first place.
3263 * symtab.h (completion_list_add_name): Return bool.
3264
ceacbf6e
SM
32652020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
3266
3267 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
3268 type::field.
3269
26f16254
JB
32702020-05-23 Joel Brobecker <brobecker@adacore.com>
3271
3272 GDB 9.2 released.
3273
eca1f90c
TT
32742020-05-23 Tom Tromey <tom@tromey.com>
3275
3276 * NEWS: Add entry for completion styling.
3277 * completer.c (_rl_completion_prefix_display_length): Move
3278 declaration earlier.
3279 (gdb_fnprint): Use completion_style.
3280 (gdb_display_match_list_1): Likewise.
3281 * cli/cli-style.c (completion_prefix_style)
3282 (completion_difference_style, completion_suffix_style): New
3283 globals.
3284 (_initialize_cli_style): Register new globals.
3285 * cli/cli-style.h (completion_prefix_style)
3286 (completion_difference_style, completion_suffix_style): Declare.
3287
51e2cfa2
PA
32882020-05-23 Pedro Alves <palves@redhat.com>
3289
3290 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
3291 (parse_escape): Use ISDIGIT instead of isdigit.
3292 (puts_debug): Use gdb_isprint instead of isprint.
3293 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
3294 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
3295 ISSPACE instead of isspace.
3296 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
3297 instead of isspace.
3298 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
3299 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
3300 instead of isxdigit and ISDIGIT instead of isdigit.
3301
80fc5e77
SM
33022020-05-22 Simon Marchi <simon.marchi@efficios.com>
3303
3304 * gdbtypes.h (struct type) <field>: New method.
3305 (TYPE_FIELDS): Remove, replace all uses with either type::fields
3306 or type::field.
3307
3cabb6b0
SM
33082020-05-22 Simon Marchi <simon.marchi@efficios.com>
3309
3310 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
3311 (TYPE_FIELDS): Use type::fields. Change all call sites that
3312 modify the propery to use type::set_fields instead.
3313
1f704f76
SM
33142020-05-22 Simon Marchi <simon.marchi@efficios.com>
3315
3316 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
3317 type::num_fields instead.
3318
5e33d5f4
SM
33192020-05-22 Simon Marchi <simon.marchi@efficios.com>
3320
3321 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
3322 methods.
3323 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
3324 that modify the number of fields to use type::set_num_fields
3325 instead.
3326
9392ebb3
TT
33272020-05-22 Tom Tromey <tromey@adacore.com>
3328
3329 * compile/compile-object-load.h (munmap_list_free): Don't
3330 declare.
3331
7c13f4e8
AB
33322020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
3333
3334 * annotate.c (annotate_source_line): Update return type, add call
3335 to update current symtab and line.
3336 * annotate.h (annotate_source_line): Update return type, and
3337 extend header comment.
3338 * source.c (info_line_command): Check annotation_level before
3339 calling annotate_source_line.
3340 * stack.c (print_frame_info): If calling annotate_source_line
3341 returns true, then don't print any other source line information.
3342
aa370940
SM
33432020-05-21 Simon Marchi <simon.marchi@efficios.com>
3344
3345 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
3346
84d53fa9
SM
33472020-05-21 Simon Marchi <simon.marchi@efficios.com>
3348
3349 * coffread.c (patch_type): Remove NULL check before xfree.
3350 * corefile.c (set_gnutarget): Likewise.
3351 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
3352 * exec.c (build_section_table): Likewise.
3353 * remote.c (remote_target::pass_signals): Likewise.
3354 * utils.c (n_spaces): Likewise.
3355 * cli/cli-script.c (document_command): Likewise.
3356 * i386-windows-tdep.c (core_process_module_section): Likewise.
3357 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
3358
9d428aae
SM
33592020-05-20 Simon Marchi <simon.marchi@efficios.com>
3360
3361 * symfile.c (reread_symbols): Clear objfile's section_offsets
3362 vector and section indices, re-compute them by calling
3363 sym_offsets.
3364
250106a7
TT
33652020-05-20 Tom Tromey <tromey@adacore.com>
3366
3367 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
ec16513e 3368 (desc_one_bound, desc_index_type): Compute field name.
250106a7 3369
9a0bacfb
TV
33702020-05-20 Tom de Vries <tdevries@suse.de>
3371
3372 PR symtab/25833
3373 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
3374
7b958a48
AM
33752020-05-20 Alan Modra <amodra@gmail.com>
3376
3377 PR 25993
3378 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
3379 bfd_set_filename.
3380 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
3381 passed to bfd_set_filename.
3382 * symfile-mem.c (add_vsyscall_page): Likewise for string
3383 passed to symbol_file_add_from_memory.
3384 (symbol_file_add_from_memory): Make name param a const char* and
3385 don't strdup.
3386
c7e97679
AM
33872020-05-20 Alan Modra <amodra@gmail.com>
3388
3389 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
3390 rather than accessing bfd->filename directly.
3391 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
3392 and use bfd_section_name.
3393 * dwarf2/frame.c (decode_frame_entry): Likewise.
3394 * exec.c (exec_set_section_address): Likewise.
3395 * solib-aix.c (solib_aix_bfd_open): Likewise.
3396 * stap-probe.c (get_stap_base_address): Likewise.
3397 * symfile.c (reread_symbols): Likewise.
3398
563c591b
TT
33992020-05-19 Tom Tromey <tromey@adacore.com>
3400
3401 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
3402
f408d82c
SM
34032020-05-19 Simon Marchi <simon.marchi@efficios.com>
3404
3405 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
3406
98c59b52
PA
34072020-05-19 Pedro Alves <palves@redhat.com>
3408
3409 * NEWS (set exec-file-mismatch): Adjust entry.
3410 * exec.c: Include "build-id.h".
3411 (validate_exec_file): Try to match build IDs instead of filenames.
3412 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
3413 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
3414 and pass down 'warn_if_slow'.
3415 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
3416 gdb_bfd_open_closure to pass it down.
3417 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
3418
4111f652
PA
34192020-05-19 Pedro Alves <palves@redhat.com>
3420
3421 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
3422 * target.c (target_fileio_open_1): Rename to target_fileio_open
3423 and make extern. Use bool.
3424 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
3425 (target_fileio_read_alloc_1): Adjust.
3426 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
3427 (target_fileio_open_warn_if_slow): Delete declaration.
3428
ad80db5b
PA
34292020-05-19 Pedro Alves <palves@redhat.com>
3430
3431 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
3432 Adjust all callers.
3433
1d6ce4d3
YS
34342020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
3435
3436 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
3437 whether disp is negative.
3438
9005fbbb
SM
34392020-05-19 Simon Marchi <simon.marchi@efficios.com>
3440
3441 * symfile.h (struct symfile_segment_data)
3442 <~symfile_segment_data>: Remove.
3443 <segment_info>: Change to std::vector.
3444 * symfile.c (default_symfile_segments): Update.
3445 * elfread.c (elf_symfile_segments): Update.
3446
68b888ff
SM
34472020-05-19 Simon Marchi <simon.marchi@efficios.com>
3448
3449 * symfile.h (struct symfile_segment_data) <struct segment>: New.
3450 <segments>: New.
3451 <segment_bases, segment_sizes>: Remove.
3452 * symfile.c (default_symfile_segments): Update.
3453 * elfread.c (elf_symfile_segments): Update.
3454 * remote.c (remote_target::get_offsets): Update.
3455 * solib-target.c (solib_target_relocate_section_addresses):
3456 Update.
3457
62982abd
SM
34582020-05-19 Simon Marchi <simon.marchi@efficios.com>
3459
3460 * symfile.h (struct symfile_segment_data): Initialize fields.
3461 <~symfile_segment_data>: Add.
3462 (symfile_segment_data_up): New.
3463 (struct sym_fns) <sym_segments>: Return a
3464 symfile_segment_data_up.
3465 (default_symfile_segments): Return a symfile_segment_data_up.
3466 (free_symfile_segment_data): Remove.
3467 (get_symfile_segment_data): Return a symfile_segment_data_up.
3468 * symfile.c (default_symfile_segments): Likewise.
3469 (get_symfile_segment_data): Likewise.
3470 (free_symfile_segment_data): Remove.
3471 (symfile_find_segment_sections): Update.
3472 * elfread.c (elf_symfile_segments): Return a
3473 symfile_segment_data_up.
3474 * remote.c (remote_target::get_offsets): Update.
3475 * solib-target.c (solib_target_relocate_section_addresses):
3476 Update.
3477 * symfile-debug.c (debug_sym_segments): Return a
3478 symfile_segment_data_up.
3479
7f204339
RO
34802020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3481
e52a0f1b
RO
3482 PR build/25981
3483 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
3484 Hardcode register numbers.
3485
7f204339
RO
3486 PR build/25981
3487 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
3488 procfs_find_LDT_entry): Remove.
3489 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
3490 procfs_find_LDT_entry): Remove.
3491 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
3492 Remove.
3493
7f32a4d5
PA
34942020-05-17 Pedro Alves <palves@redhat.com>
3495 Andrew Burgess <andrew.burgess@embecosm.com>
3496 Keno Fischer <keno@juliacomputing.com>
3497
3498 PR gdb/25741
3499 * breakpoint.c (build_target_condition_list): Update comments.
3500 (build_target_command_list): Update comments and skip matching
3501 locations.
3502 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
3503 a separate function. Simplify "set breakpoint auto-hw off"
3504 handling.
3505 (insert_breakpoints): Update comment.
3506 (tracepoint_locations_match): New parameter. For breakpoints,
3507 compare location types too, if the caller wants to.
3508 (handle_automatic_hardware_breakpoints): New functions.
3509 (bp_location_is_less_than): Also sort by location type and
3510 hardware breakpoint length.
3511 (update_global_location_list): Handle "set breakpoint auto-hw on"
3512 here.
3513 (update_breakpoint_locations): Ask breakpoint_locations_match to
3514 ignore location types.
3515
7d93a1e0
SM
35162020-05-16 Simon Marchi <simon.marchi@efficios.com>
3517
3518 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
3519 type::name instead.
3520
d0e39ea2
SM
35212020-05-16 Simon Marchi <simon.marchi@efficios.com>
3522
3523 * gdbtypes.h (struct type) <name, set_name>: New methods.
3524 (TYPE_CODE): Use type::name. Change all call sites used to set
3525 the name to use type::set_name instead.
3526
2dab0c7b
TT
35272020-05-16 Tom Tromey <tom@tromey.com>
3528
3529 * top.c (quit_force): Update.
3530 * infrun.c (handle_no_resumed): Update.
3531 * top.h (all_uis): New function.
3532 (ALL_UIS): Remove.
3533
59f7bd8d
SM
35342020-05-16 Simon Marchi <simon.marchi@efficios.com>
3535
3536 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
3537
9bf058f0
PA
35382020-05-16 Pedro Alves <palves@redhat.com>
3539
3540 * ia64-linux-nat.c
3541 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
3542 Declare method.
3543 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
3544
8f86ae1a
SM
35452020-05-15 Simon Marchi <simon.marchi@efficios.com>
3546
3547 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
3548 (sparc64_adi_info): Likewise.
3549
d6bc0792
TT
35502020-05-15 Tom Tromey <tom@tromey.com>
3551
3552 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
3553 block_objfile.
3554 (lookup_objfile_from_block): Remove.
3555 (lookup_symbol_in_block, lookup_symbol_in_static_block)
3556 (lookup_global_symbol): Use block_objfile.
3557 * symtab.h (lookup_objfile_from_block): Don't declare.
3558 * printcmd.c (clear_dangling_display_expressions): Use
3559 block_objfile.
3560 * parse.c (operator_check_standard): Use block_objfile.
3561
8c14c3a3
TT
35622020-05-15 Tom Tromey <tom@tromey.com>
3563
3564 * language.c (language_alloc_type_symbol): Set
3565 SYMBOL_SECTION.
3566 * symtab.c (initialize_objfile_symbol): Remove.
3567 (allocate_symbol): Remove.
3568 (allocate_template_symbol): Remove.
3569 * dwarf2/read.c (fixup_go_packaging): Use "new".
3570 (new_symbol): Use "new".
3571 (read_variable): Don't call initialize_objfile_symbol. Use
3572 "new".
3573 (read_func_scope): Use "new".
3574 * xcoffread.c (process_xcoff_symbol): Don't call
3575 initialize_objfile_symbol.
3576 (SYMBOL_DUP): Remove.
3577 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
3578 "new".
3579 * symtab.h (allocate_symbol, initialize_objfile_symbol)
3580 (allocate_template_symbol): Don't declare.
3581 (struct symbol): Add copy constructor. Change defaults.
3582 * jit.c (finalize_symtab): Use "new".
3583 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
3584 Use "new".
3585 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
3586 (common_block_end): Use "new".
3587 * mdebugread.c (parse_symbol): Use "new".
3588 (new_symbol): Likewise.
3589
5b4a1a8d
PW
35902020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3591
3592 * NEWS: Mention changes to help and apropos.
3593
57b4f16e
PW
35942020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3595
3596 * command.h (enum command_class): Improve comments, document
3597 that class_alias is for user-defined aliases, give the class
3598 name for each class, remove unused class_xdb.
3599 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
3600 * breakpoint.c (_initialize_breakpoint): Replace class_alias
3601 by a precise class.
3602 * infcmd.c (_initialize_infcmd): Likewise.
3603 * reverse.c (_initialize_reverse): Likewise.
3604 * stack.c (_initialize_stack): Likewise.
3605 * symfile.c (_initialize_symfile): Likewise.
3606 * tracepoint.c (_initialize_tracepoint): Likewise.
3607
7c05caf7
PW
36082020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3609
3610 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
3611 when their aliased command is traversed.
3612 (help_cmd): Add fput_command_names_styled call to
3613 output command name and aliases when command has an alias.
3614
3b3aaacb
PW
36152020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3616
3617 * cli/cli-decode.h (help_cmd_list): Remove declaration.
3618 * cli/cli-decode.c (help_cmd_list): Declare as static,
3619 remove prefix argument, use bool for recurse arg, rework to show the aliases of
3620 a command together with the command.
3621 (fput_command_name_styled, fput_command_names_styled): New functions.
3622 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
3623 fput_command_name_styled.
3624 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
3625 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
3626
7aa1b46f
PW
36272020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3628
3629 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
3630 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
3631 * command.h (cmd_show_list): Likewise.
3632 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
3633 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
3634
89bcba74
PW
36352020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3636
3637 * unittests/command-def-selftests.c (traverse_command_structure):
3638 Verify all commands of a list have the same prefix command and
3639 that only the top cmdlist commands have a null prefix.
3640
3f4d92eb
PW
36412020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3642
3643 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
3644 as prefix, not one of its aliases.
3645 (set_cmd_prefix): Remove.
3646 (do_add_cmd): Centralize the setting of the prefix of a command, when
3647 command is defined after its full chain of prefix commands.
3648 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
3649 (add_setshow_cmd_full): Likewise.
3650 (update_prefix_field_of_prefixed_commands): New function.
3651 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
3652 update_prefix_field_of_prefixed_commands.
3653 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
3654 addresses of remote_set_cmdlist and remote_show_cmdlist given
3655 as argument, not the address of an argument.
3656 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
3657 * gdb/remote.c (_initialize_remote): Likewise.
3658
0605465f
PW
36592020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3660
3661 * cli/cli-cmds.c (alias_command): Check for an existing alias
3662 using lookup_cmd_composition, as valid_command_p is too strict
3663 and forbids aliases that are the prefix of an existing alias
3664 or command.
3665 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
3666 command is properly recognised as a valid command.
3667
58e6ac70
PW
36682020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3669
3670 * unittests/help-doc-selftests.c: Rename to
3671 unittests/command-def-selftests.c
3672 * unittests/command-def-selftests.c (help_doc_tests): Update some
3673 comments.
3674 (command_structure_tests, traverse_command_structure): New namespace
3675 and function.
3676 (command_structure_invariants_tests): New function.
3677 (_initialize_command_def_selftests) Renamed from
3678 _initialize_help_doc_selftests, register command_structure_invariants
3679 selftest.
3680
a7b9ceb8
PW
36812020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3682
3683 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
3684 an alias of 'show'.
3685
b2188a06
JB
36862020-05-15 Joel Brobecker <brobecker@adacore.com>
3687
3688 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
3689 ada_is_fixed_point_type. Update all callers.
3690 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
3691 all callers.
3692 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
3693 Update all callers.
3694 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
3695 print_fixed_point_type. Update all callers.
3696 * ada-valprint.c (ada_value_print_num): Replace call to
3697 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
3698
a51951c2
KB
36992020-05-14 Kevin Buettner <kevinb@redhat.com>
3700
3701 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
3702 processors.
3703 (cpu_supports_bts): Add CV_AMD case.
3704
29d6859f
LM
37052020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
3706 Simon Marchi <simon.marchi@efficios.com>
3707
3708 * infrun.c (stop_all_threads): Collect multiple wait events at
3709 each pass.
3710
78134374
SM
37112020-05-14 Simon Marchi <simon.marchi@efficios.com>
3712
3713 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
3714 type::code instead.
3715
67607e24
SM
37162020-05-14 Simon Marchi <simon.marchi@efficios.com>
3717
3718 * gdbtypes.h (struct type) <code, set_code>: New methods.
3719 (TYPE_CODE): Use type::code. Change all call sites used to set
3720 the code to use type::set_code instead.
3721
a05575d3
TBA
37222020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3723 Tom de Vries <tdevries@suse.de>
3724 Pedro Alves <palves@redhat.com>
3725
3726 PR threads/25478
3727 * infrun.c (stop_all_threads): Do NOT ignore
3728 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
3729 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
3730 received.
3731 (handle_no_resumed): Remove code handling a live inferior with no
3732 threads.
3733 * remote.c (has_single_non_exited_thread): New.
3734 (remote_target::update_thread_list): Do not delete a thread if is
3735 the last thread of the process.
3736 * thread.c (thread_select): Call delete_exited_threads instead of
3737 prune_threads.
3738
6ad82919
TBA
37392020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3740
3741 * infrun.c (stop_all_threads): Enable/disable thread events of all
3742 targets. Move a debug message denoting the end of the function
3743 into the SCOPED_EXIT block.
3744
d890404b
TBA
37452020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3746
3747 * process-stratum-target.h: Include <set>.
3748 (all_non_exited_process_targets, switch_to_target_no_thread): New
3749 function declarations.
3750 * process-stratum-target.c (all_non_exited_process_targets)
3751 (switch_to_target_no_thread): New function implementations.
3752
293b3ebc
TBA
37532020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3754
3755 * infrun.c (handle_inferior_event): Extract out a piece of code
3756 into...
3757 (mark_non_executing_threads): ...this new function.
3758
7ca9b62a
TBA
37592020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3760
3761 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
3762 use.
3763
fc75c28b
TBA
37642020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3765
3766 * regcache.c (regcache_read_pc_protected): New function
3767 implementation that returns 0 if the PC cannot read via
3768 'regcache_read_pc'.
3769 * infrun.c (proceed): Call 'regcache_read_pc_protected'
3770 instead of 'regcache_read_pc'.
3771 (keep_going_pass_signal): Ditto.
3772
a89febbd
TT
37732020-05-13 Tom Tromey <tromey@adacore.com>
3774
3775 * ada-lang.c (align_value): Remove.
3776 (ada_template_to_fixed_record_type_1): Use align_up.
3777
f7e23710
TBA
37782020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3779
3780 * async-event.c: Update the copyright year.
3781 * async-event.h: Update the copyright year.
3782
02ff80c2
SM
37832020-05-12 Simon Marchi <simon.marchi@efficios.com>
3784
3785 * objfiles.h (is_addr_in_objfile,
3786 shared_objfile_contains_address_p): Return bool.
3787 * objfile.c (is_addr_in_objfile,
3788 shared_objfile_contains_address_p): Return bool.
3789
4fd6c7e8
TT
37902020-05-11 Tom Tromey <tromey@adacore.com>
3791
3792 * cli/cli-cmds.c (info_command): Restore.
3793 (_initialize_cli_cmds): Use add_prefix_command for "info".
3794 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
3795
5eb68a39
TT
37962020-05-11 Tom Tromey <tromey@adacore.com>
3797
3798 * ada-lang.c (ada_value_primitive_field): Now public.
3799 * ada-lang.h (ada_value_primitive_field): Declare.
3800 * ada-valprint.c (print_field_values): Use
3801 ada_value_primitive_field for wrapper fields.
3802
7666722f
TV
38032020-05-11 Tom de Vries <tdevries@suse.de>
3804
3805 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
3806 MODULE_DOMAIN.
3807
3ee6bb11
TV
38082020-05-11 Tom de Vries <tdevries@suse.de>
3809
3810 PR symtab/25941
3811 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
3812 with length 0, if not gdb-produced.
3813 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
3814
43434996
TV
38152020-05-09 Tom de Vries <tdevries@suse.de>
3816
3817 PR gdb/25955
3818 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
3819 calculation.
3820
2f78cffc
TT
38212020-05-09 Tom Tromey <tom@tromey.com>
3822
3823 * top.c (server_command): Now bool.
3824 * top.h (server_command): Now bool.
3825
4f7bc5ed
TT
38262020-05-08 Tom Tromey <tromey@adacore.com>
3827
3828 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
3829 already being processed.
3830
8be4b118
TT
38312020-05-08 Tom Tromey <tom@tromey.com>
3832
3833 * printcmd.c (struct display) <next>: Remove.
3834 <display>: New constructor.
3835 <exp_string>: Now a std::string.
3836 <enabled_p>: Now a bool.
3837 (display_number): Move definition earlier.
3838 (displays): Rename from display_chain. Now a std::vector.
3839 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
3840 (display_command): Update.
3841 (do_one_display, disable_display)
3842 (enable_disable_display_command, do_enable_disable_display):
3843 Update.
3844 (free_display): Remove.
3845 (clear_displays): Rewrite.
3846 (delete_display): Update.
3847 (map_display_numbers): Use function_view. Remove "data"
3848 parameter. Update.
3849 (do_delete_display): Remove.
3850 (undisplay_command): Update.
3851 (do_one_display, do_displays, disable_display)
3852 (info_display_command): Update.
3853 (do_enable_disable_display): Remove.
3854 (enable_disable_display_command)
3855 (clear_dangling_display_expressions): Update.
3856
94c93c35
TT
38572020-05-08 Tom Tromey <tom@tromey.com>
3858
3859 * symtab.c (set_symbol_cache_size)
3860 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
3861 (maintenance_print_symbol_cache_statistics): Update.
3862 * symmisc.c (print_symbol_bcache_statistics)
3863 (print_objfile_statistics, maintenance_print_objfiles)
3864 (maintenance_info_symtabs, maintenance_check_symtabs)
3865 (maintenance_expand_symtabs, maintenance_info_line_tables):
3866 Update.
3867 * symfile-debug.c (set_debug_symfile): Update.
3868 * source.c (forget_cached_source_info): Update.
3869 * python/python.c (gdbpy_progspaces): Update.
3870 * psymtab.c (maintenance_info_psymtabs): Update.
3871 * probe.c (parse_probes): Update.
3872 * linespec.c (iterate_over_all_matching_symtabs)
3873 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
3874 * guile/scm-progspace.c (gdbscm_progspaces): Update.
3875 * exec.c (exec_target::close): Update.
3876 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
3877 * breakpoint.c (print_one_breakpoint_location)
3878 (create_longjmp_master_breakpoint)
3879 (create_std_terminate_master_breakpoint): Update.
3880 * progspace.c (program_spaces): Now a std::vector.
3881 (maybe_new_address_space): Update.
3882 (add_program_space): Remove.
3883 (program_space::program_space): Update.
3884 (remove_program_space): Update.
3885 (number_of_program_spaces): Remove.
3886 (print_program_space, update_address_spaces): Update.
3887 * progspace.h (program_spaces): Change type.
3888 (ALL_PSPACES): Remove.
3889 (number_of_program_spaces): Don't declare.
3890 (struct program_space) <next>: Remove.
3891
a1fd1ac9
TT
38922020-05-08 Tom Tromey <tom@tromey.com>
3893
3894 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
3895 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
3896 (enable_break): Update.
3897 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
3898 (frv_fdpic_find_canonical_descriptor): Update.
3899 (frv_fetch_objfile_link_map): Update.
3900 * progspace.c (program_space::free_all_objfiles): Update.
3901 (program_space::solibs): New method.
3902 * progspace.h (struct program_space) <solibs>: New method.
3903 * solist.h (master_so_list): Don't declare.
3904 (ALL_SO_LIBS): Remove.
3905 * solib.h (so_list_head): Remove.
3906 (update_solib_list): Update comment.
3907 * solib.c (master_so_list): Remove.
3908 (solib_used, update_solib_list, solib_add)
3909 (info_sharedlibrary_command, clear_solib)
3910 (reload_shared_libraries_1, remove_user_added_objfile): Update.
3911
38eae084
TT
39122020-05-08 Tom Tromey <tom@tromey.com>
3913
3914 * extension.c (extension_languages): Now a std::array.
3915 (ALL_EXTENSION_LANGUAGES): Remove.
3916 (get_ext_lang_defn, get_ext_lang_of_file)
3917 (eval_ext_lang_from_control_command): Update.
3918 (finish_ext_lang_initialization)
3919 (auto_load_ext_lang_scripts_for_objfile)
3920 (ext_lang_type_printers::ext_lang_type_printers)
3921 (apply_ext_lang_type_printers)
3922 (ext_lang_type_printers::~ext_lang_type_printers)
3923 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
3924 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
3925 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
3926 (get_matching_xmethod_workers, ext_lang_colorize)
3927 (ext_lang_before_prompt): Update.
3928 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
3929
596dc4ad
TT
39302020-05-08 Tom Tromey <tom@tromey.com>
3931
3932 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
3933 overload.
3934 <swap_string, m_string>: Remove.
3935 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
3936 Update.
3937 * stabsread.c (define_symbol, read_type): Update.
3938 * linespec.c (find_linespec_symbols): Update.
3939 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
3940 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
3941 * dbxread.c (read_dbx_symtab): Update.
3942 * cp-support.h (cp_canonicalize_string_full)
3943 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
3944 Return unique_xmalloc_ptr.
3945 * cp-support.c (inspect_type): Update.
3946 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
3947 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
3948 Likewise.
3949 * c-typeprint.c (print_name_maybe_canonical): Update.
3950 * break-catch-throw.c (check_status_exception_catchpoint):
3951 Update.
3952
bf4cb9be
TV
39532020-05-08 Tom de Vries <tdevries@suse.de>
3954
3955 * infrun.c (follow_fork): Copy current_line and current_symtab to
3956 child thread.
3957
a1b68f28
SM
39582020-05-07 Simon Marchi <simon.marchi@efficios.com>
3959
3960 * async-event.c (struct async_signal_handler, struct
3961 async_event_handler): Reformat, remove typedef.
3962
98d48915
SM
39632020-05-07 Simon Marchi <simon.marchi@efficios.com>
3964
3965 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
3966 access thistype->main_type->dyn_prop_list directly.
3967
7aa91313
SM
39682020-05-07 Simon Marchi <simon.marchi@efficios.com>
3969
3970 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
3971 (remove_dyn_prop): Remove. Update all users to use
3972 type::remove_dyn_prop.
3973 * gdbtypes.c (remove_dyn_prop): Rename to...
3974 (type::remove_dyn_prop): ... this.
3975
5c54719c
SM
39762020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
3977
3978 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
3979 (add_dyn_prop): Remove. Update all users to use
3980 type::add_dyn_prop.
3981 * gdbtypes.c (add_dyn_prop): Rename to...
3982 (type::add_dyn_prop): ... this.
3983
24e99c6c
SM
39842020-05-07 Simon Marchi <simon.marchi@efficios.com>
3985
3986 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
3987 (get_dyn_prop): Remove. Update all users to use
3988 type::dyn_prop.
3989 * gdbtypes.c (get_dyn_prop): Rename to...
3990 (type::dyn_prop): ... this.
3991
0d4bf016
SM
39922020-05-06 Simon Marchi <simon.marchi@efficios.com>
3993
3994 * gdbtypes.h (struct main_type) <flag_static>: Remove.
3995
ac4a4f1c
SM
39962020-05-06 Simon Marchi <simon.marchi@efficios.com>
3997
3998 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
3999 instruction, skip it if it's there.
4000
a3bbacc1
SM
40012020-05-05 Simon Marchi <simon.marchi@efficios.com>
4002
4003 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
4004
c3236f84
SM
40052020-05-04 Simon Marchi <simon.marchi@efficios.com>
4006
4007 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
4008 * gdbtypes.c (recursive_dump_type): Remove use of
4009 TYPE_INCOMPLETE.
4010
3b6acaee
TT
40112020-05-03 Tom Tromey <tom@tromey.com>
4012
4013 * breakpoint.c (catch_command, tcatch_command): Remove.
4014 (_initialize_breakpoint): Use add_basic_prefix_cmd,
4015 add_show_prefix_cmd.
4016 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
4017 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
4018 Remove.
4019 (add_internal_problem_command): Use add_basic_prefix_cmd,
4020 add_show_prefix_cmd.
4021 * mips-tdep.c (set_mipsfpu_command): Remove.
4022 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
4023 * dwarf2/index-cache.c (set_index_cache_command): Remove.
4024 (_initialize_index_cache): Use add_basic_prefix_cmd.
4025 * memattr.c (dummy_cmd): Remove.
4026 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
4027 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
4028 (_initialize_tui_win): Use add_basic_prefix_cmd,
4029 add_show_prefix_cmd.
4030 * cli/cli-logging.c (set_logging_command): Remove.
4031 (_initialize_cli_logging): Use add_basic_prefix_cmd,
4032 add_show_prefix_cmd.
4033 (show_logging_command): Remove.
4034 * target.c (target_command): Remove.
4035 (add_target): Use add_basic_prefix_cmd.
4036
a51119cd
HD
40372020-05-02 Hannes Domani <ssbssa@yahoo.de>
4038
4039 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
4040
652fc23a 40412020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 4042
652fc23a
PW
4043 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
4044 info_command.
4045
117539e6
KR
40462020-04-30 Kamil Rytarowski <n54@gmx.com>
4047
4048 * nbsd-nat.c (nbsd_enable_proc_events)
4049 (nbsd_nat_target::post_startup_inferior): Add.
4050 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
4051 (nbsd_nat_target::update_thread_list): Rewrite.
4052 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
4053 "PTRACE_LWP_CREATE".
4054 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
4055
102e38eb 40562020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 4057
102e38eb
PW
4058 * stack.c (_initialize_stack): Remove duplicated creation
4059 of "frame" command and "f" alias.
4060
ee9d1e5f
HD
40612020-04-30 Hannes Domani <ssbssa@yahoo.de>
4062
4063 PR gdb/18706
4064 * gdbtypes.c (check_typedef): Calculate size of array of
4065 stubbed type.
4066
627c7fb8
HD
40672020-04-30 Hannes Domani <ssbssa@yahoo.de>
4068
4069 PR gdb/15559
4070 * i386-tdep.c (i386_push_dummy_call): Call
4071 i386_thiscall_push_dummy_call.
4072 (i386_thiscall_push_dummy_call): New function.
4073 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
4074 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
4075 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
4076
ffc2844e
SM
40772020-04-29 Simon Marchi <simon.marchi@efficios.com>
4078
4079 * gdbarch.sh (do_read): Add shellcheck disable directive for
4080 warning SC2162.
4081
1207375d
SM
40822020-04-29 Simon Marchi <simon.marchi@efficios.com>
4083
4084 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
4085 "referenced but not assigned" warning.
4086
9fdb2916
SM
40872020-04-29 Simon Marchi <simon.marchi@efficios.com>
4088
4089 * gdbarch.sh: Remove code that sets fallbackdefault.
4090
759cea5e
SM
40912020-04-29 Simon Marchi <simon.marchi@efficios.com>
4092
4093 * gdbarch.sh: Use shell operators && and || instead of
4094 -a and -o.
4095
cb02ab24
SM
40962020-04-29 Simon Marchi <simon.marchi@efficios.com>
4097
4098 * gdbarch.sh: Use $(...) instead of `...`.
4099
a6fc5ffc
SM
41002020-04-29 Simon Marchi <simon.marchi@efficios.com>
4101
4102 * gdbarch.sh: Use double quotes around variables.
4103
8d113d13
SM
41042020-04-29 Simon Marchi <simon.marchi@efficios.com>
4105
4106 * gdbarch.sh: Use %s with printf, instead of variables in the
4107 format string.
4108
ed6acedd
TT
41092020-04-29 Tom Tromey <tromey@adacore.com>
4110
4111 PR ada/25875:
4112 * dwarf2/read.c (update_enumeration_type_from_children): Compute
4113 type fields here.
4114 (read_enumeration_type): Call
4115 update_enumeration_type_from_children later. Update comments.
4116 (process_enumeration_scope): Don't create type fields.
4117
b68b1b58
KR
41182020-04-29 Kamil Rytarowski <n54@gmx.com>
4119
4120 * nbsd-tdep.c: Include "xml-syscall.h".
4121 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
4122
f94b2e03
KR
41232020-04-29 Kamil Rytarowski <n54@gmx.com>
4124
4125 * nbsd-nat.c: Include "sys/wait.h".
4126 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
4127 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
4128 (nbsd_nat_target::remove_exec_catchpoint)
4129 (nbsd_nat_target::set_syscall_catchpoint): Add.
4130 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
4131 (nbsd_nat_target::insert_exec_catchpoint)
4132 (nbsd_nat_target::remove_exec_catchpoint)
4133 (nbsd_nat_target::set_syscall_catchpoint): Add.
4134 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
4135 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
4136 `nbsd_get_syscall_number'.
4137
fc49bc72
TT
41382020-04-29 Tom Tromey <tom@tromey.com>
4139
4140 * stack.c (print_block_frame_labels): Remove.
4141
d642b692
HD
41422020-04-29 Hannes Domani <ssbssa@yahoo.de>
4143
4144 PR gdb/17320
4145 * ada-valprint.c (val_print_packed_array_elements): Move array
4146 end bracket to new line.
4147 (ada_val_print_string): Remove extra spaces before first array
4148 element.
4149 * c-valprint.c (c_value_print_array): Likewise.
4150 * m2-valprint.c (m2_print_array_contents): Likewise.
4151 (m2_value_print_inner): Likewise.
4152 * p-valprint.c (pascal_value_print_inner): Likewise.
4153 * valprint.c (generic_val_print_array): Likewise.
4154 (value_print_array_elements): Move first array element and array
4155 end bracket to new line.
4156
ea90f227
TV
41572020-04-29 Tom de Vries <tdevries@suse.de>
4158
4159 PR symtab/25889
4160 * linespec.c (find_method): Fix ix calculation.
4161
4498ef4f
KR
41622020-04-28 Kamil Rytarowski <n54@gmx.com>
4163
4164 * syscalls/update-netbsd.sh: New file.
4165 * syscalls/netbsd.xml: Regenerate.
4166 * data-directory/Makefile.in: Register `netbsd.xml' in
4167 `SYSCALLS_FILES'.
4168
a55e30b5
SM
41692020-04-28 Simon Marchi <simon.marchi@efficios.com>
4170
4171 * syscalls/update-freebsd.sh: Add double quotes.
4172
2b2fbab8
TT
41732020-04-28 Tom Tromey <tom@tromey.com>
4174
4175 * NEWS: Update.
4176 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
4177 (cmdpy_init): Allow class_tui.
4178
a65189c9
TV
41792020-04-28 Mark Williams <mark@myosotissp.com>
4180
4181 PR gdb/24480
4182 * dwarf2read.c: Add missing assingments to list_in_scope when
4183 start_symtab was already called.
4184
1b95cdb7
SM
41852020-04-28 Simon Marchi <simon.marchi@efficios.com>
4186
4187 PR gdb/25881
4188 * dwarf2/read.c (offset_map_type): Use
4189 gdb:hash_enum<sect_offset> as hash function.
4190
15cd93d0
TV
41912020-04-28 Tom de Vries <tdevries@suse.de>
4192
4193 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
4194 with DW_AT_signature.
4195
1eb39914
SM
41962020-04-27 Simon Marchi <simon.marchi@efficios.com>
4197
4198 * configure.ac: Remove check for fs_base/gs_base in
4199 user_regs_struct.
4200 * configure: Re-generate.
4201 * config.in: Re-generate.
4202 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
4203 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
4204 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
4205
991a3e2e
LM
42062020-04-27 Luis Machado <luis.machado@linaro.org>
4207
4208 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
4209 problematic inline frame unwinding situation.
4210 * frame.c (frame_id_computed_p): New function.
4211 * frame.h (frame_id_computed_p): New prototype.
4212
361ba0e8
TT
42132020-04-26 Tom Tromey <tom@tromey.com>
4214
4215 * command.h (enum command_class) <class_pseudo>: Remove.
4216
bc3609fd
PW
42172020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4218
4219 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
4220 and whitespace.
4221
b9771db7
KR
42222020-04-25 Kamil Rytarowski <n54@gmx.com>
4223
ec16513e
SM
4224 * inf-ptrace.c (inf_ptrace_target::wait): Remove
4225 `PT_GET_PROCESS_STATE' block.
b9771db7 4226
7151c1af
TT
42272020-04-24 Tom Tromey <tom@tromey.com>
4228
4229 * symtab.h (symbol_get_demangled_name): Don't declare.
4230 * symtab.c (symbol_get_demangled_name): Remove.
4231 (general_symbol_info::natural_name)
4232 (general_symbol_info::demangled_name): Update.
4233
906bb4c5
TT
42342020-04-24 Tom Tromey <tom@tromey.com>
4235
4236 PR rust/25025:
4237 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
4238
bcfe6157
TT
42392020-04-24 Tom Tromey <tom@tromey.com>
4240
4241 PR symtab/12707:
4242 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
4243 exists.
4244 (new_symbol): Likewise.
4245 * compile/compile-object-load.c (get_out_value_type): Use
4246 symbol_matches_search_name.
4247
f049a313
TT
42482020-04-24 Tom Tromey <tom@tromey.com>
4249
4250 * dwarf2/read.c (add_partial_symbol): Do not call
4251 compute_and_set_names.
4252
76e288d1
TT
42532020-04-24 Tom Tromey <tom@tromey.com>
4254
4255 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
4256 overload.
4257
2467f4f6
TT
42582020-04-24 Tom Tromey <tom@tromey.com>
4259
4260 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
4261 (add_psymbol_to_list): New overload. Make old overload call new
4262 one.
4263 * psympriv.h (add_psymbol_to_list): New overload.
4264
e61108c9
TT
42652020-04-24 Tom Tromey <tom@tromey.com>
4266
4267 * dwarf2/read.c (partial_die_info::read) <case
4268 DW_AT_linkage_name>: Use value_as_string.
4269 (dwarf2_string_attr): Use value_as_string.
4270 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
4271 method.
4272 * dwarf2/attribute.c (attribute::value_as_string): New method.
4273
8c87a452
TT
42742020-04-24 Tom Tromey <tom@tromey.com>
4275
4276 * symtab.c (general_symbol_info::natural_name)
4277 (general_symbol_info::demangled_name): Check for language_rust.
4278
787de330
TT
42792020-04-24 Tom Tromey <tom@tromey.com>
4280
4281 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
4282 (dwarf2_physname): ... from here.
4283 (partial_die_info::read): Add Rust "{" hack.
4284
ff985671
TT
42852020-04-24 Tom Tromey <tom@tromey.com>
4286
4287 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
4288 method.
4289 (symbol_set_demangled_name): Don't declare.
4290 * symtab.c (general_symbol_info::set_demangled_name): Rename from
4291 symbol_set_demangled_name.
4292 (general_symbol_info::set_language)
4293 (general_symbol_info::compute_and_set_names): Update.
4294 * minsyms.c (minimal_symbol_reader::install): Update.
4295 * dwarf2/read.c (new_symbol): Update.
4296
1acda803
TT
42972020-04-24 Tom Tromey <tromey@adacore.com>
4298
4299 PR python/23662:
4300 * python/py-type.c (convert_field): Handle
4301 FIELD_LOC_KIND_DWARF_BLOCK.
4302 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
4303 (typy_get_dynamic): Nw function.
4304 (type_object_getset): Add "dynamic".
4305 * NEWS: Add entry.
4306
d656f129
TT
43072020-04-24 Tom Tromey <tromey@adacore.com>
4308
4309 * ada-typeprint.c (print_choices, print_variant_part)
4310 (print_record_field_types_dynamic): New functions.
4311 (print_record_field_types): Use print_record_field_types_dynamic.
4312
7d79de9a
TT
43132020-04-24 Tom Tromey <tromey@adacore.com>
4314
4315 * dwarf2/read.c (handle_data_member_location): New overload.
4316 (dwarf2_add_field): Use it.
4317 (decode_locdesc): Add "computed" parameter. Update comment.
4318 * gdbtypes.c (is_dynamic_type_internal): Also look for
4319 FIELD_LOC_KIND_DWARF_BLOCK.
4320 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
4321 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
4322 virtual base classes.
4323 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
4324 FIELD_LOC_KIND_DWARF_BLOCK.
4325
f8e89861
TT
43262020-04-24 Tom Tromey <tromey@adacore.com>
4327
4328 * dwarf2/read.c (read_structure_type): Handle dynamic length.
4329 * gdbtypes.c (is_dynamic_type_internal): Check
4330 TYPE_HAS_DYNAMIC_LENGTH.
4331 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
4332 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
4333 New macros.
4334 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
4335 constant.
4336
9c6a1327
TT
43372020-04-24 Tom Tromey <tromey@adacore.com>
4338
4339 * dwarf2/read.c (struct variant_field): Rewrite.
4340 (struct variant_part_builder): New.
4341 (struct nextfield): Remove "variant" field. Add "offset".
4342 (struct field_info): Add "current_variant_part" and
4343 "variant_parts".
4344 (alloc_discriminant_info): Remove.
4345 (alloc_rust_variant): New function.
4346 (quirk_rust_enum): Update.
4347 (dwarf2_add_field): Set "offset" member. Don't handle
4348 DW_TAG_variant_part.
4349 (offset_map_type): New typedef.
4350 (convert_variant_range, create_one_variant)
4351 (create_one_variant_part, create_variant_parts)
4352 (add_variant_property): New functions.
4353 (dwarf2_attach_fields_to_type): Call add_variant_property.
4354 (read_structure_type): Don't handle DW_TAG_variant_part.
4355 (handle_variant_part, handle_variant): New functions.
4356 (handle_struct_member_die): Use them.
4357 (process_structure_scope): Don't handle variant parts.
4358 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
4359 (struct discriminant_info): Remove.
4360 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
4361 (struct main_type) <flag_discriminated_union>: Remove.
4362 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
4363 (rust_enum_variant): Return int. Remove "contents". Rewrite.
4364 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
4365 Update.
4366 * valops.c (value_union_variant): Remove.
4367 * value.h (value_union_variant): Don't declare.
4368
b249d2c2
TT
43692020-04-24 Tom Tromey <tromey@adacore.com>
4370
4371 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
4372 (ada_value_primitive_packed_val): Update.
4373 * ada-valprint.c (ada_value_print_1): Update.
4374 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
4375 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
4376 just an address. Use evaluate_for_locexpr_baton.
4377 (dwarf2_evaluate_property): Update.
4378 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
4379 array_view.
4380 * findvar.c (default_read_var_value): Update.
4381 * gdbtypes.c (compute_variant_fields_inner)
4382 (resolve_dynamic_type_internal): Update.
4383 (resolve_dynamic_type): Change type of valaddr parameter.
4384 * gdbtypes.h (resolve_dynamic_type): Update.
4385 * valarith.c (value_subscripted_rvalue): Update.
4386 * value.c (value_from_contents_and_address): Update.
4387
61122aa9
TT
43882020-04-24 Tom Tromey <tromey@adacore.com>
4389
4390 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
4391 "push_initial_value" parameter.
4392 (dwarf2_evaluate_property): Likewise.
4393 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
4394
ef83a141
TT
43952020-04-24 Tom Tromey <tromey@adacore.com>
4396
4397 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
4398 (variant::matches, compute_variant_fields_recurse)
4399 (compute_variant_fields_inner, compute_variant_fields): New
4400 functions.
4401 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
4402 Use resolved_type after type is made.
4403 (operator==): Add new cases.
4404 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
4405 (struct discriminant_range, struct variant, struct variant_part):
4406 New.
4407 (union dynamic_prop_data) <variant_parts, original_type>: New
4408 members.
4409 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
4410 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
4411 constants.
4412 * value.c (unpack_bits_as_long): Now public.
4413 * value.h (unpack_bits_as_long): Declare.
4414
675127ec
TT
44152020-04-24 Tom Tromey <tromey@adacore.com>
4416
4417 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
4418 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
4419
9852ceef
HD
44202020-04-24 Hannes Domani <ssbssa@yahoo.de>
4421
4422 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
4423
7632c6ce
KR
44242020-04-24 Kamil Rytarowski <n54@gmx.com>
4425
4426 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
4427 (remove_fork_catchpoint, post_startup_inferior)
4428 (post_attach): Move...
4429 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
4430 (remove_fork_catchpoint, post_startup_inferior)
4431 (post_attach): ...here.
4432 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
4433 (remove_fork_catchpoint, post_startup_inferior)
4434 (post_attach): Move...
4435 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
4436 (remove_fork_catchpoint, post_startup_inferior)
4437 (post_attach): ...here.
4438
7be2bb4f
TT
44392020-04-24 Tom Tromey <tromey@adacore.com>
4440
4441 * nat/windows-nat.h (struct windows_thread_info)
4442 <pc_adjusted>: New member.
4443 * windows-nat.c (windows_fetch_one_register): Check
4444 pc_adjusted.
4445 (windows_nat_target::get_windows_debug_event)
4446 (windows_nat_target::wait): Set pc_adjusted.
4447
f80cb3b4
TV
44482020-04-24 Tom de Vries <tdevries@suse.de>
4449
4450 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
4451 Run gdb-add-index inside temp dir.
4452
29514b87
TT
44532020-04-23 Tom Tromey <tromey@adacore.com>
4454
4455 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
4456 in loop.
4457
5939967b
LM
44582020-04-23 Luis Machado <luis.machado@linaro.org>
4459
4460 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
4461 get_frame_register instead of gdbarch_unwind_pc.
4462
70bc38f5
TV
44632020-04-23 Tom de Vries <tdevries@suse.de>
4464
4465 * symtab.c (lookup_global_symbol): Prefer def over decl.
4466
de82891c
TV
44672020-04-23 Tom de Vries <tdevries@suse.de>
4468
4469 PR symtab/25807
4470 * block.c (best_symbol, better_symbol): Promote to external.
4471 * block.h (best_symbol, better_symbol): Declare.
4472 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
4473 decl.
4474
ecc6c606
TT
44752020-04-23 Tom Tromey <tromey@adacore.com>
4476
4477 PR ada/25837:
4478 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
4479 "const char *", not a "const std::string &".
4480 <name_and_matcher::operator==>: Update.
4481 * unittests/lookup_name_info-selftests.c: Change type of
4482 "result".
4483
740480b8
TT
44842020-04-23 Tom Tromey <tom@tromey.com>
4485
4486 * inferior.h (iterate_over_inferiors): Don't declare.
4487 * inferior.c (iterate_over_inferiors): Remove.
4488 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
4489 Remove.
4490 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
4491 use iterate_over_inferiors.
4492 (darwin_resume_inferior_it)
4493 (struct resume_inferior_threads_param)
4494 (darwin_resume_inferior_threads_it): Remove.
4495 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
4496
ae3ab1f0
TV
44972020-04-23 Tom de Vries <tdevries@suse.de>
4498
4499 * blockframe.c (find_pc_partial_function): Use
4500 find_pc_sect_compunit_symtab rather than
4501 objfile->sf->qf->find_pc_sect_compunit_symtab.
4502
317d2668
TV
45032020-04-22 Tom de Vries <tdevries@suse.de>
4504
4505 PR symtab/25764
4506 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
4507 in psymtabs.
4508
eea9e357
TV
45092020-04-22 Tom de Vries <tdevries@suse.de>
4510
4511 PR symtab/25801
4512 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
4513 symtabs.
4514
3d5afab3
TV
45152020-04-22 Tom de Vries <tdevries@suse.de>
4516
4517 PR symtab/25700
4518 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
4519 CU if already created.
4520
d43b7a2d
TBA
45212020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4522
4523 * infrun.c (displaced_step_fixup): Switch to the event_thread
4524 before calling displaced_step_restore, not after.
4525
d89edf9b
MM
45262020-04-21 Markus Metzger <markus.t.metzger@intel.com>
4527
4528 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
4529 its inferior is not recorded by us.
4530 (record_btrace_target_open): Replace call to
4531 all_non_exited_threads () with call to current_inferior
4532 ()->non_exited_threads ().
4533 (record_btrace_target::stop_recording): Likewise.
4534 (record_btrace_target::close): Likewise.
4535 (record_btrace_target::wait): Likewise.
4536 (record_btrace_target::record_stop_replaying): Likewise.
4537
5897fd49
MM
45382020-04-21 Markus Metzger <markus.t.metzger@intel.com>
4539
4540 * btrace.c (btrace_enable): Throw an error on double enables and
4541 when enabling recording fails.
4542 (btrace_disable): Throw an error if the thread is not recorded.
4543
1a476b6d
MM
45442020-04-21 Markus Metzger <markus.t.metzger@intel.com>
4545
4546 * record-btrace.c (record_btrace_target::fetch_registers): Forward
4547 request if we do not have a thread_info.
4548
4778a5f8
TV
45492020-04-21 Tom de Vries <tdevries@suse.de>
4550
4551 PR gdb/25471
4552 * thread.c
4553 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
4554 exception in get_frame_id.
4555
0fa7617d
TT
45562020-04-20 Tom Tromey <tromey@adacore.com>
4557
4558 * python/python.c (struct gdbpy_event): Mark move constructor as
4559 noexcept.
4560 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
4561 constructor as noexcept.
4562 * completer.h (struct completion_result): Mark move constructor as
4563 noexcept.
4564 * completer.c (completion_result::completion_result): Use
4565 initialization style. Don't call reset_match_list.
4566
ad23bda0
MS
45672020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
4568
4569 * MAINTAINERS (Write After Approval): Add myself.
4570
45e1f031
TT
45712020-04-18 Tom Tromey <tom@tromey.com>
4572
4573 * windows-tdep.c (init_w32_command_list)
4574 (w32_prefix_command_valid): Restore.
4575 (_initialize_windows_tdep): Call init_w32_command_list.
4576
08feed99
TT
45772020-04-18 Tom Tromey <tom@tromey.com>
4578
4579 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
4580 * value.c (value_fn_field): Update.
4581 * valops.c (find_function_in_inferior)
4582 (value_allocate_space_in_inferior): Update.
4583 * tui/tui-winsource.c (tui_update_source_windows_with_line):
4584 Update.
4585 * tui/tui-source.c (tui_source_window::set_contents): Update.
4586 * symtab.c (lookup_global_or_static_symbol)
4587 (find_function_start_sal_1, skip_prologue_sal)
4588 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
4589 * symmisc.c (dump_msymbols, dump_symtab_1)
4590 (maintenance_print_one_line_table): Update.
4591 * symfile.c (init_entry_point_info, section_is_mapped)
4592 (list_overlays_command, simple_read_overlay_table)
4593 (simple_overlay_update_1): Update.
4594 * stap-probe.c (handle_stap_probe): Update.
4595 * stabsread.c (dbx_init_float_type, define_symbol)
4596 (read_one_struct_field, read_enum_type, read_range_type): Update.
4597 * source.c (info_line_command): Update.
4598 * python/python.c (gdbpy_source_objfile_script)
4599 (gdbpy_execute_objfile_script): Update.
4600 * python/py-type.c (save_objfile_types): Update.
4601 * python/py-objfile.c (py_free_objfile): Update.
4602 * python/py-inferior.c (python_new_objfile): Update.
4603 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
4604 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
4605 (maintenance_check_psymtabs): Update.
4606 * printcmd.c (info_address_command): Update.
4607 * objfiles.h (struct objfile) <arch>: New method, from
4608 get_objfile_arch.
4609 (get_objfile_arch): Don't declare.
4610 * objfiles.c (get_objfile_arch): Remove.
4611 (filter_overlapping_sections): Update.
4612 * minsyms.c (msymbol_is_function): Update.
4613 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
4614 (output_nondebug_symbol): Update.
4615 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
4616 (mdebug_expand_psymtab): Update.
4617 * machoread.c (macho_add_oso_symfile): Update.
4618 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
4619 Update.
4620 * linux-fork.c (checkpoint_command): Update.
4621 * linespec.c (convert_linespec_to_sals): Update.
4622 * jit.c (finalize_symtab): Update.
4623 * infrun.c (insert_exception_resume_from_probe): Update.
4624 * ia64-tdep.c (ia64_find_unwind_table): Update.
4625 * hppa-tdep.c (internalize_unwinds): Update.
4626 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
4627 Update.
4628 * gcore.c (call_target_sbrk): Update.
4629 * elfread.c (record_minimal_symbol, elf_symtab_read)
4630 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
4631 (elf_gnu_ifunc_resolve_by_got): Update.
4632 * dwarf2/read.c (create_addrmap_from_index)
4633 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
4634 (read_debug_names_from_section)
4635 (process_psymtab_comp_unit_reader, add_partial_symbol)
4636 (add_partial_subprogram, process_full_comp_unit)
4637 (read_file_scope, read_func_scope, read_lexical_block_scope)
4638 (read_call_site_scope, dwarf2_ranges_read)
4639 (dwarf2_record_block_ranges, dwarf2_add_field)
4640 (mark_common_block_symbol_computed, read_tag_pointer_type)
4641 (read_tag_string_type, dwarf2_init_float_type)
4642 (dwarf2_init_complex_target_type, read_base_type)
4643 (partial_die_info::read, partial_die_info::read)
4644 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
4645 (dwarf2_fetch_die_loc_sect_off): Update.
4646 * dwarf2/loc.c (dwarf2_find_location_expression)
4647 (class dwarf_evaluate_loc_desc, rw_pieced_value)
4648 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
4649 (dwarf2_loc_desc_get_symbol_read_needs)
4650 (locexpr_describe_location_piece, locexpr_describe_location_1)
4651 (loclist_describe_location): Update.
4652 * dwarf2/index-write.c (write_debug_names): Update.
4653 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
4654 * dtrace-probe.c (dtrace_process_dof): Update.
4655 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
4656 (process_one_symbol): Update.
4657 * ctfread.c (ctf_init_float_type, read_base_type): Update.
4658 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
4659 (coff_read_enum_type): Update.
4660 * cli/cli-cmds.c (edit_command, list_command): Update.
4661 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
4662 * breakpoint.c (create_overlay_event_breakpoint)
4663 (create_longjmp_master_breakpoint)
4664 (create_std_terminate_master_breakpoint)
4665 (create_exception_master_breakpoint, get_sal_arch): Update.
4666 * block.c (block_gdbarch): Update.
4667 * annotate.c (annotate_source_line): Update.
4668
0743fc83
TT
46692020-04-17 Tom Tromey <tromey@adacore.com>
4670
4671 * auto-load.c (show_auto_load_cmd): Remove.
4672 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
4673 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
4674 (maintenance_print_arc_command): Remove.
4675 * tui/tui-win.c (tui_command): Remove.
4676 (tui_get_cmd_list): Use add_basic_prefix_cmd.
4677 * tui/tui-layout.c (tui_layout_command): Remove.
4678 (_initialize_tui_layout): Use add_basic_prefix_cmd.
4679 * python/python.c (user_set_python, user_show_python): Remove.
4680 (_initialize_python): Use add_basic_prefix_cmd,
4681 add_show_prefix_cmd.
4682 * guile/guile.c (set_guile_command, show_guile_command): Remove.
4683 (install_gdb_commands): Use add_basic_prefix_cmd,
4684 add_show_prefix_cmd.
4685 (info_guile_command): Remove.
4686 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
4687 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
4688 add_show_prefix_cmd.
4689 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
4690 Remove do_set and do_show parameters.
4691 * cli/cli-style.c (set_style, show_style): Remove.
4692 (_initialize_cli_style): Use add_basic_prefix_cmd,
4693 add_show_prefix_cmd.
4694 (cli_style_option::add_setshow_commands): Remove do_set and
4695 do_show parameters.
4696 (cli_style_option::add_setshow_commands): Use
4697 add_basic_prefix_cmd, add_show_prefix_cmd.
4698 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
4699 (set_style_name): Remove.
4700 * cli/cli-dump.c (dump_command, append_command): Remove.
4701 (srec_dump_command, ihex_dump_command, verilog_dump_command)
4702 (tekhex_dump_command, binary_dump_command)
4703 (binary_append_command): Remove.
4704 (_initialize_cli_dump): Use add_basic_prefix_cmd.
4705 * windows-tdep.c (w32_prefix_command_valid): Remove global.
4706 (init_w32_command_list): Remove; move into ...
4707 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
4708 * valprint.c (set_print, show_print, set_print_raw)
4709 (show_print_raw): Remove.
4710 (_initialize_valprint): Use add_basic_prefix_cmd,
4711 add_show_prefix_cmd.
4712 * typeprint.c (set_print_type, show_print_type): Remove.
4713 (_initialize_typeprint): Use add_basic_prefix_cmd,
4714 add_show_prefix_cmd.
4715 * record.c (set_record_command, show_record_command): Remove.
4716 (_initialize_record): Use add_basic_prefix_cmd,
4717 add_show_prefix_cmd.
4718 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
4719 add_show_prefix_cmd.
4720 (info_command, show_command, set_debug, show_debug): Remove.
4721 * top.h (set_history, show_history): Don't declare.
4722 * top.c (set_history, show_history): Remove.
4723 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
4724 (unset_tdesc_cmd): Remove.
4725 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
4726 add_show_prefix_cmd.
4727 * symtab.c (info_module_command): Remove.
4728 (_initialize_symtab): Use add_basic_prefix_cmd.
4729 * symfile.c (overlay_command): Remove.
4730 (_initialize_symfile): Use add_basic_prefix_cmd.
4731 * sparc64-tdep.c (info_adi_command): Remove.
4732 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
4733 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
4734 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
4735 add_show_prefix_cmd.
4736 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
4737 (_initialize_serial): Use add_basic_prefix_cmd,
4738 add_show_prefix_cmd.
4739 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
4740 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
4741 add_show_prefix_cmd.
4742 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
4743 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
4744 add_show_prefix_cmd.
4745 * riscv-tdep.c (show_riscv_command, set_riscv_command)
4746 (show_debug_riscv_command, set_debug_riscv_command): Remove.
4747 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
4748 add_show_prefix_cmd.
4749 * remote.c (remote_command, set_remote_cmd): Remove.
4750 (_initialize_remote): Use add_basic_prefix_cmd.
4751 * record-full.c (set_record_full_command)
4752 (show_record_full_command): Remove.
4753 (_initialize_record_full): Use add_basic_prefix_cmd,
4754 add_show_prefix_cmd.
4755 * record-btrace.c (cmd_set_record_btrace)
4756 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
4757 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
4758 (cmd_show_record_btrace_pt): Remove.
4759 (_initialize_record_btrace): Use add_basic_prefix_cmd,
4760 add_show_prefix_cmd.
4761 * ravenscar-thread.c (set_ravenscar_command)
4762 (show_ravenscar_command): Remove.
4763 (_initialize_ravenscar): Use add_basic_prefix_cmd,
4764 add_show_prefix_cmd.
4765 * mips-tdep.c (show_mips_command, set_mips_command)
4766 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
4767 add_show_prefix_cmd.
4768 * maint.c (maintenance_command, maintenance_info_command)
4769 (maintenance_check_command, maintenance_print_command)
4770 (maintenance_set_cmd, maintenance_show_cmd): Remove.
4771 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
4772 add_show_prefix_cmd.
4773 (show_per_command_cmd): Remove.
4774 * maint-test-settings.c (maintenance_set_test_settings_cmd):
4775 Remove.
4776 (maintenance_show_test_settings_cmd): Remove.
4777 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
4778 add_show_prefix_cmd.
4779 * maint-test-options.c (maintenance_test_options_command):
4780 Remove.
4781 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
4782 * macrocmd.c (macro_command): Remove
4783 (_initialize_macrocmd): Use add_basic_prefix_cmd.
4784 * language.c (set_check, show_check): Remove.
4785 (_initialize_language): Use add_basic_prefix_cmd,
4786 add_show_prefix_cmd.
4787 * infcmd.c (unset_command): Remove.
4788 (_initialize_infcmd): Use add_basic_prefix_cmd.
4789 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
4790 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
4791 add_show_prefix_cmd.
4792 * go32-nat.c (go32_info_dos_command): Remove.
4793 (_initialize_go32_nat): Use add_basic_prefix_cmd.
4794 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
4795 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
4796 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
4797 (_initialize_frame): Use add_basic_prefix_cmd,
4798 add_show_prefix_cmd.
4799 * dcache.c (set_dcache_command, show_dcache_command): Remove.
4800 (_initialize_dcache): Use add_basic_prefix_cmd,
4801 add_show_prefix_cmd.
4802 * cp-support.c (maint_cplus_command): Remove.
4803 (_initialize_cp_support): Use add_basic_prefix_cmd.
4804 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
4805 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
4806 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
4807 add_basic_prefix_cmd, add_show_prefix_cmd.
4808 * breakpoint.c (save_command): Remove.
4809 (_initialize_breakpoint): Use add_basic_prefix_cmd.
4810 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
4811 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
4812 add_show_prefix_cmd.
4813 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
4814 (set_ada_command, show_ada_command): Remove.
4815 (_initialize_ada_language): Use add_basic_prefix_cmd,
4816 add_show_prefix_cmd.
4817 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
4818
3557f442
KR
48192020-04-16 Kamil Rytarowski <n54@gmx.com>
4820
4821 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
4822 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
4823
16197208
SM
48242020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
4825
4826 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
4827 warning messages.
4828
00ac85d3
SM
48292020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
4830
4831 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
4832 import table is not at beginning of .idata section.
4833
381ce63f
PA
48342020-04-16 Pedro Alves <palves@redhat.com>
4835
4836 * inferior.c (delete_inferior): Use delete operator directly
4837 instead of delete_program_space.
4838 * progspace.c (add_program_space): New, factored out from
4839 program_space::program_space.
4840 (remove_program_space): New, factored out from
4841 delete_program_space.
4842 (program_space::program_space): Remove intro comment. Rewrite.
4843 (program_space::~program_space): Remove intro comment. Call
4844 remove_program_space.
4845 (delete_program_space): Delete.
4846 * progspace.h (program_space::program_space): Make explicit. Move
4847 intro comment here, adjusted.
4848 (program_space::~program_space): Move intro comment here,
4849 adjusted.
4850 (delete_program_space): Remove.
4851
a010605f
TT
48522020-04-16 Tom Tromey <tromey@adacore.com>
4853
4854 * windows-nat.c (windows_nat::handle_access_violation): New
4855 function.
4856 * nat/windows-nat.h (handle_access_violation): Declare.
4857 * nat/windows-nat.c (handle_exception): Move Cygwin code to
4858 windows-nat.c. Call handle_access_violation.
4859
efba5c23
TV
48602020-04-16 Tom de Vries <tdevries@suse.de>
4861
4862 PR symtab/25791
4863 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
4864 CUs without psymtab.
4865
97ed802d
KB
48662020-04-16 Kevin Buettner <kevinb@redhat.com>
4867
4868 * python/python.c (do_start_initialization): Don't call
4869 PyEval_InitThreads for Python 3.9 and beyond.
4870
c7d64809
KR
48712020-04-15 Kamil Rytarowski <n54@gmx.com>
4872
4873 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
4874 thread functions.
4875 (obsd_nat_target::wait): Likewise.
4876
ce127a96
TT
48772020-04-15 Tom Tromey <tromey@adacore.com>
4878
4879 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
4880 (DEBUG_EXCEPT): Use debug_printf.
4881
99f1bc6a
AB
48822020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
4883
4884 * completer.c (class completion_tracker::completion_hash_entry)
4885 <hash_name>: New member function.
4886 (completion_tracker::discard_completions): New callback to hash a
4887 completion_hash_entry, pass this to htab_create_alloc.
4888
a0e9b532
JT
48892016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
4890
4891 * windows-nat.c (windows_make_so): Warn rather than stopping with
4892 an error if realpath() fails.
4893
06ca5dd4
KR
48942020-04-14 Kamil Rytarowski <n54@gmx.com>
4895
4896 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
4897 (nbsd_nat_target::info_proc): Add do_status.
4898
194d088f
TV
48992020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
4900 Tom de Vries <tdevries@suse.de>
4901
4902 PR symtab/25718
4903 * psympriv.h (struct partial_symtab::read_symtab)
4904 (struct partial_symtab::expand_psymtab)
4905 (struct partial_symtab::read_dependencies): Update comments.
4906 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
4907 read_symtab for includer.
4908 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
4909 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
4910 (struct dwarf2_include_psymtab::m_readin): Remove.
4911 (struct dwarf2_include_psymtab::includer): New member function.
4912 (dwarf2_psymtab::expand_psymtab): Assert !readin.
4913
c1a66c06
TV
49142020-04-14 Tom de Vries <tdevries@suse.de>
4915
4916 PR symtab/25720
4917 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
4918 with NULL symbol_matcher and lookup_name.
4919 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
4920 and lookup_name.
4921 * dwarf2/read.c (dw2_expand_symtabs_matching)
4922 (dw2_debug_names_expand_symtabs_matching): Same.
4923 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
4924 Make lookup_name a pointer. Update comment.
4925 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
4926 lookup_name being a pointer.
4927 * symfile.c (expand_symtabs_matching): Same.
4928 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
4929 * linespec.c (iterate_over_all_matching_symtabs): Same.
4930
400b5eca
TT
49312020-04-13 Tom Tromey <tom@tromey.com>
4932
4933 * run-on-main-thread.c: Update include.
4934 * unittests/main-thread-selftests.c: Update include.
4935 * tui/tui-win.c: Update include.
4936 * tui/tui-io.c: Update include.
4937 * tui/tui-interp.c: Update include.
4938 * tui/tui-hooks.c: Update include.
4939 * top.h: Update include.
4940 * top.c: Update include.
4941 * ser-base.c: Update include.
4942 * remote.c: Update include.
4943 * remote-notif.c: Update include.
4944 * remote-fileio.c: Update include.
4945 * record-full.c: Update include.
4946 * record-btrace.c: Update include.
4947 * python/python.c: Update include.
4948 * posix-hdep.c: Update include.
4949 * mingw-hdep.c: Update include.
4950 * mi/mi-main.c: Update include.
4951 * mi/mi-interp.c: Update include.
4952 * main.c: Update include.
4953 * linux-nat.c: Update include.
4954 * interps.c: Update include.
4955 * infrun.c: Update include.
4956 * inf-loop.c: Update include.
4957 * event-top.c: Update include.
4958 * event-loop.c: Move to ../gdbsupport/.
4959 * event-loop.h: Move to ../gdbsupport/.
4960 * async-event.h: Update include.
4961 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
4962
93b54c8e
TT
49632020-04-13 Tom Tromey <tom@tromey.com>
4964
4965 * tui/tui-win.c: Include async-event.h.
4966 * remote.c: Include async-event.h.
4967 * remote-notif.c: Include async-event.h.
4968 * record-full.c: Include async-event.h.
4969 * record-btrace.c: Include async-event.h.
4970 * infrun.c: Include async-event.h.
4971 * event-top.c: Include async-event.h.
4972 * event-loop.h: Move some declarations to async-event.h.
4973 * event-loop.c: Don't include ser-event.h or top.h. Move some
4974 code to async-event.c.
4975 * async-event.h: New file.
4976 * async-event.c: New file.
4977 * Makefile.in (COMMON_SFILES): Add async-event.c.
4978 (HFILES_NO_SRCDIR): Add async-event.h.
4979
c1cd3163
TT
49802020-04-13 Tom Tromey <tom@tromey.com>
4981
4982 * utils.c (flush_streams): New function.
4983 * event-loop.c (gdb_wait_for_event): Call flush_streams.
4984
29f2bf4f
TT
49852020-04-13 Tom Tromey <tom@tromey.com>
4986
4987 * event-loop.c (handle_file_event): Use warning, not
4988 printf_unfiltered.
4989
98029d02
TT
49902020-04-13 Tom Tromey <tom@tromey.com>
4991
4992 * event-loop.c: Include <chrono>.
4993
06cc9596
TT
49942020-04-13 Tom Tromey <tom@tromey.com>
4995
4996 * gdb_select.h: Move to ../gdbsupport/.
4997 * event-loop.c: Update include path.
4998 * top.c: Update include path.
4999 * ser-base.c: Update include path.
5000 * ui-file.c: Update include path.
5001 * ser-tcp.c: Update include path.
5002 * guile/scm-ports.c: Update include path.
5003 * posix-hdep.c: Update include path.
5004 * ser-unix.c: Update include path.
5005 * gdb_usleep.c: Update include path.
5006 * mingw-hdep.c: Update include path.
5007 * inflow.c: Update include path.
5008 * infrun.c: Update include path.
5009 * event-top.c: Update include path.
5010
8ae8e197
TT
50112020-04-13 Tom Tromey <tom@tromey.com>
5012
5013 * configure: Rebuild.
5014 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
5015
58cf28e8
TT
50162020-04-13 Tom Tromey <tom@tromey.com>
5017
5018 * event-loop.h (start_event_loop): Don't declare.
5019 * event-loop.c (start_event_loop): Move...
5020 * main.c (start_event_loop): ...here. Now static.
5021
b7f999ae
SDJ
50222020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
5023
5024 * MAINTAINERS: Update my email address.
5025
1085dfd4
KR
50262020-04-12 Kamil Rytarowski <n54@gmx.com>
5027
5028 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
5029 IP_ALL.
5030
49d1d1f5
KR
50312020-04-12 Kamil Rytarowski <n54@gmx.com>
5032
5033 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
aac66a4c 5034 (nbsd_nat_target::info_proc): Add do_cmdline.
49d1d1f5 5035
b4848d2a
KR
50362020-04-12 Kamil Rytarowski <n54@gmx.com>
5037
5038 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
aac66a4c 5039 (nbsd_nat_target::info_proc): Add do_cwd.
b4848d2a 5040
51c133d5
KR
50412020-04-12 Kamil Rytarowski <n54@gmx.com>
5042
5043 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
5044
54b8cbd0
KR
50452020-04-11 Kamil Rytarowski <n54@gmx.com>
5046
5047 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
5048 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
5049 (nbsd_nat_target::info_proc): New functions.
5050 * nbsd-nat.c (kinfo_get_vmmap): New function.
5051 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
5052 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
5053 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
5054 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
5055 functions.
5056 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
5057 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
5058 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
5059 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
5060 (KINFO_VME_FLAG_GROWS_DOWN): New.
5061
cf83625d
AS
50622020-04-10 Artur Shepilko <nomadbyte@gmail.com>
5063
5064 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
5065 bit shift.
5066
0c4311ab
TT
50672020-04-10 Tom Tromey <tromey@adacore.com>
5068
5069 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
5070
3e65b3e9
TT
50712020-04-10 Tom Tromey <tromey@adacore.com>
5072
5073 * symtab.c (get_symbol_address, get_msymbol_address): Skip
5074 separate debug files.
5075
13302e95
HD
50762020-04-10 Hannes Domani <ssbssa@yahoo.de>
5077
5078 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
5079 Move to...
5080 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
5081 ... here.
5082 * windows-nat.c (windows_nat_target::get_windows_debug_event):
5083 Check for STATUS_WX86_BREAKPOINT.
5084 (windows_nat_target::wait): Same.
5085
bdfc1e8a
TV
50862020-04-10 Tom de Vries <tdevries@suse.de>
5087
5088 PR cli/25808
5089 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
5090
f4460aec
SM
50912020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
5092
5093 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
5094 (Write After Approval): Remove Tom de Vries.
5095
a25198bb
BE
50962020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
5097
5098 revert partially:
5099 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
5100
aac66a4c
SM
5101 * buildsym.c (record_line): Fix undefined behavior and preserve
5102 lines at eof.
a25198bb 5103
206c98a6
KR
51042020-04-09 Kamil Rytarowski <n54@gmx.com>
5105
5106 * auxv.h (svr4_auxv_parse): New.
5107 * auxv.c (default_auxv_parse): Split into default_auxv_parse
5108 and generic_auxv_parse.
5109 (svr4_auxv_parse): Add.
5110 * obsd-tdep.c: Include "auxv.h".
5111 (obsd_auxv_parse): Remove.
5112 (obsd_init_abi): Remove comment.
5113 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
5114 from `obsd_auxv_parse' to `svr4_auxv_parse'.
5115 * nbsd-tdep.c: Include "auxv.h".
5116 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
5117
71fbdbaf
TT
51182020-04-08 Tom Tromey <tromey@adacore.com>
5119
5120 * nat/windows-nat.h (last_wait_event): Don't declare.
5121 (wait_for_debug_event): Update comment.
5122 * nat/windows-nat.c (last_wait_event): Now static.
5123
2c1d95e8
TT
51242020-04-08 Tom Tromey <tromey@adacore.com>
5125
5126 * windows-nat.c (wait_for_debug_event): Move to
5127 nat/windows-nat.c.
5128 * nat/windows-nat.h (wait_for_debug_event): Declare.
5129 * nat/windows-nat.c (wait_for_debug_event): Move from
5130 windows-nat.c. No longer static.
5131
d2977bc4
TT
51322020-04-08 Tom Tromey <tromey@adacore.com>
5133
5134 * windows-nat.c (get_windows_debug_event): Use
5135 fetch_pending_stop.
5136 * nat/windows-nat.h (fetch_pending_stop): Declare.
5137 * nat/windows-nat.c (fetch_pending_stop): New function.
5138
e758e19c
TT
51392020-04-08 Tom Tromey <tromey@adacore.com>
5140
5141 * windows-nat.c (windows_continue): Use matching_pending_stop and
5142 continue_last_debug_event.
5143 * nat/windows-nat.h (matching_pending_stop)
5144 (continue_last_debug_event): Declare.
5145 * nat/windows-nat.c (DEBUG_EVENTS): New define.
5146 (matching_pending_stop, continue_last_debug_event): New
5147 functions.
5148
8d30e395
TT
51492020-04-08 Tom Tromey <tromey@adacore.com>
5150
5151 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
5152 (handle_exception_result): Move to nat/windows-nat.h.
5153 (DEBUG_EXCEPTION_SIMPLE): Remove.
5154 (windows_nat::handle_ms_vc_exception): New function.
5155 (handle_exception): Move to nat/windows-nat.c.
5156 (get_windows_debug_event): Update.
5157 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
5158 nat/windows-nat.c.
5159 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
5160 (handle_exception_result): Move from windows-nat.c.
5161 (handle_exception): Declare.
5162 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
5163 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
5164 windows-nat.c.
5165
29de418d
TT
51662020-04-08 Tom Tromey <tromey@adacore.com>
5167
5168 * windows-nat.c (exception_count, event_count): Remove.
5169 (handle_exception, get_windows_debug_event)
5170 (do_initial_windows_stuff): Update.
5171
a816ba18
TT
51722020-04-08 Tom Tromey <tromey@adacore.com>
5173
5174 * windows-nat.c (windows_nat::handle_load_dll)
5175 (windows_nat::handle_unload_dll): Rename. No longer static.
5176 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
5177 Declare.
5178
a00caa12
TT
51792020-04-08 Tom Tromey <tromey@adacore.com>
5180
5181 * complaints.h (stop_whining): Declare at top-level.
5182 (complaint): Don't declare stop_whining.
5183
d41b524f
TT
51842020-04-08 Tom Tromey <tromey@adacore.com>
5185
5186 * windows-nat.c (windows_nat::handle_output_debug_string):
5187 Rename. No longer static.
5188 * nat/windows-nat.h (handle_output_debug_string): Declare.
5189
3c76026d
TT
51902020-04-08 Tom Tromey <tromey@adacore.com>
5191
5192 * windows-nat.c (current_process_handle, current_process_id)
5193 (main_thread_id, last_sig, current_event, last_wait_event)
5194 (current_windows_thread, desired_stop_thread_id, pending_stops)
5195 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
5196 (display_selectors, fake_create_process)
5197 (get_windows_debug_event): Update.
5198 * nat/windows-nat.h (current_process_handle, current_process_id)
5199 (main_thread_id, last_sig, current_event, last_wait_event)
5200 (current_windows_thread, desired_stop_thread_id, pending_stops)
5201 (struct pending_stop, siginfo_er): Move from windows-nat.c.
5202 * nat/windows-nat.c (current_process_handle, current_process_id)
5203 (main_thread_id, last_sig, current_event, last_wait_event)
5204 (current_windows_thread, desired_stop_thread_id, pending_stops)
5205 (siginfo_er): New globals. Move from windows-nat.c.
5206
9d8679cc
TT
52072020-04-08 Tom Tromey <tromey@adacore.com>
5208
5209 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
5210 (handle_load_dll): Update.
5211 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
5212
28688adf
TT
52132020-04-08 Tom Tromey <tromey@adacore.com>
5214
5215 * windows-nat.c (enum thread_disposition_type): Move to
5216 nat/windows-nat.h.
5217 (windows_nat::thread_rec): Rename from thread_rec. No longer
5218 static.
5219 (windows_add_thread, windows_nat_target::fetch_registers)
5220 (windows_nat_target::store_registers, handle_exception)
5221 (windows_nat_target::resume, get_windows_debug_event)
5222 (windows_nat_target::get_tib_address)
5223 (windows_nat_target::thread_name)
5224 (windows_nat_target::thread_alive): Update.
5225 * nat/windows-nat.h (enum thread_disposition_type): Move from
5226 windows-nat.c.
5227 (thread_rec): Declare.
5228
4834dad0
TT
52292020-04-08 Tom Tromey <tromey@adacore.com>
5230
5231 * windows-nat.c: Add "using namespace".
5232 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
5233 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
5234
65bafd5b
TT
52352020-04-08 Tom Tromey <tromey@adacore.com>
5236
5237 * nat/windows-nat.h (struct windows_thread_info): Declare
5238 destructor.
5239 * nat/windows-nat.c (~windows_thread_info): New.
5240
0a4afda3
TT
52412020-04-08 Tom Tromey <tromey@adacore.com>
5242
5243 PR gdb/22992
5244 * windows-nat.c (current_event): Update comment.
5245 (last_wait_event, desired_stop_thread_id): New globals.
5246 (struct pending_stop): New.
5247 (pending_stops): New global.
5248 (windows_nat_target) <stopped_by_sw_breakpoint>
5249 <supports_stopped_by_sw_breakpoint>: New methods.
5250 (windows_fetch_one_register): Add assertions. Adjust PC.
5251 (windows_continue): Handle pending stops. Suspend other threads
5252 when stepping. Use last_wait_event
5253 (wait_for_debug_event): New function.
5254 (get_windows_debug_event): Use wait_for_debug_event. Handle
5255 pending stops. Queue spurious stops.
5256 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
5257 (windows_nat_target::kill): Use wait_for_debug_event.
5258 * nat/windows-nat.h (struct windows_thread_info)
5259 <stopped_at_software_breakpoint>: New field.
5260 * nat/windows-nat.c (windows_thread_info::resume): Clear
5261 stopped_at_software_breakpoint.
5262
8e61ebec
TT
52632020-04-08 Tom Tromey <tromey@adacore.com>
5264
5265 * windows-nat.c (enum thread_disposition_type): New.
5266 (thread_rec): Replace "get_context" parameter with "disposition";
5267 change type.
5268 (windows_add_thread, windows_nat_target::fetch_registers)
5269 (windows_nat_target::store_registers, handle_exception)
5270 (windows_nat_target::resume, get_windows_debug_event)
5271 (windows_nat_target::get_tib_address)
5272 (windows_nat_target::thread_name)
5273 (windows_nat_target::thread_alive): Update.
5274
98a03287
TT
52752020-04-08 Tom Tromey <tromey@adacore.com>
5276
5277 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
5278 (windows_continue): Use windows_continue::resume.
5279 * nat/windows-nat.h (struct windows_thread_info) <suspend,
5280 resume>: Declare new methods.
5281 * nat/windows-nat.c: New file.
5282 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
5283
7c7411bc
TT
52842020-04-08 Tom Tromey <tromey@adacore.com>
5285
5286 * windows-nat.c (windows_add_thread, windows_delete_thread)
5287 (windows_nat_target::fetch_registers)
5288 (windows_nat_target::store_registers, fake_create_process)
5289 (windows_nat_target::resume, windows_nat_target::resume)
5290 (get_windows_debug_event, windows_nat_target::wait)
5291 (windows_nat_target::pid_to_str)
5292 (windows_nat_target::get_tib_address)
5293 (windows_nat_target::get_ada_task_ptid)
5294 (windows_nat_target::thread_name)
5295 (windows_nat_target::thread_alive): Use lwp, not tid.
5296
2950fdf7
TT
52972020-04-08 Tom Tromey <tromey@adacore.com>
5298
5299 * windows-nat.c (handle_exception)
5300 (windows_nat_target::thread_name): Update.
5301 * nat/windows-nat.h (windows_thread_info): Remove destructor.
5302 <name>: Now unique_xmalloc_ptr.
5303
62fe396b
TT
53042020-04-08 Tom Tromey <tromey@adacore.com>
5305
5306 * windows-nat.c (thread_rec)
5307 (windows_nat_target::fetch_registers): Update.
5308 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
5309 Update comment.
5310 <debug_registers_changed, reload_context>: Now bool.
5311
e9534bd2
TT
53122020-04-08 Tom Tromey <tromey@adacore.com>
5313
5314 * windows-nat.c (windows_add_thread): Use new.
5315 (windows_init_thread_list, windows_delete_thread): Use delete.
5316 (get_windows_debug_event): Update.
5317 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
5318 destructor, and initializers.
5319
ae1f8880
TT
53202020-04-08 Tom Tromey <tromey@adacore.com>
5321
5322 * windows-nat.c (struct windows_thread_info): Remove.
5323 * nat/windows-nat.h: New file.
5324
55a1e039
TT
53252020-04-08 Tom Tromey <tromey@adacore.com>
5326
5327 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
5328 (thread_rec, windows_add_thread, windows_delete_thread)
5329 (windows_continue): Update.
5330
93366324
TT
53312020-04-08 Tom Tromey <tromey@adacore.com>
5332
5333 * windows-nat.c (struct windows_thread_info): Remove typedef.
5334 (thread_head): Remove.
5335 (thread_list): New global.
5336 (thread_rec, windows_add_thread, windows_init_thread_list)
5337 (windows_delete_thread, windows_continue): Update.
5338
0f2265e2
SM
53392020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
5340
5341 * windows-tdep.h (windows_init_abi): Add comment.
5342 (cygwin_init_abi): New declaration.
5343 * windows-tdep.c: Split signal enumeration in two, one for
5344 Windows and one for Cygwin.
5345 (windows_gdb_signal_to_target): Only deal with signal of the
5346 Windows OS ABI.
5347 (cygwin_gdb_signal_to_target): New function.
5348 (windows_init_abi): Rename to windows_init_abi_common, don't set
5349 gdb_signal_to_target gdbarch method. Add new new function with
5350 this name.
5351 (cygwin_init_abi): New function.
5352 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
5353 comment. Don't call windows_init_abi.
5354 (amd64_windows_init_abi): Add comment, call windows_init_abi.
5355 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
5356 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
5357 i386_windows_init_abi_common, don't call windows_init_abi. Add
5358 a new function of this name.
5359 (i386_cygwin_init_abi): New function.
5360 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
5361 OS ABI Cygwin.
5362
3810f182
SM
53632020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
5364
5365 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
5366 parameter.c.
5367 (dwarf2_read_gdb_index): Update.
5368
063f8e80
KR
53692020-04-07 Kamil Rytarowski <n54@gmx.com>
5370
5371 * nbsd-tdep.c: Include "objfiles.h".
5372 (nbsd_skip_solib_resolver): New.
5373 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
5374
85a9510c 53752020-04-07 Nitika Achra <Nitika.Achra@amd.com>
5376
5377 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
5378 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
5379 with DW_LLE_base_addressx are being emitted in DWARFv5.
5380 Add the newly added kind DW_LOC_OFFSET_PAIR also.
5381 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
5382 unsigned integer.
5383
9fc3eaae 53842020-04-07 Nitika Achra <Nitika.Achra@amd.com>
5385
5386 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
5387 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
5388 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
5389 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
5390 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
5391 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
5392 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
5393
5394
41144253 53952020-04-07 Nitika Achra <Nitika.Achra@amd.com>
5396
5397 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
5398 (read_loclist_index): New function definition.
5399 (lookup_loclist_base): New function definition.
5400 (read_loclist_header): New function definition.
5401 (dwarf2_cu): Add loclist_base and loclist_header field.
5402 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
5403 (read_full_die_1): Read the value of DW_AT_loclists_base.
5404 (read_attribute_reprocess): Handle DW_FORM_loclistx.
5405 (read_attribute_value): Handle DW_FORM_loclistx.
5406 (skip_one_die): Handle DW_FORM_loclistx.
5407 (loclist_header): New structure declaration.
5408 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
5409
9f4e76a4
SM
54102020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
5411
5412 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
5413 constructor. Remove `addr` parameter from other constructor and
5414 add `per_cu` parameter.
5415 * dwarf2/read.c (create_partial_symtab): Update.
5416
25c11aca
TV
54172020-04-07 Tom de Vries <tdevries@suse.de>
5418
5419 PR symtab/25796
5420 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
5421 (partial_die_info::fixup): Inherit has_const_value.
5422
5707e24b
TV
54232020-04-07 Tom de Vries <tdevries@suse.de>
5424
5425 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
5426 symbols without address.
5427
05f00e22
KR
54282020-04-06 Kamil Rytarowski <n54@gmx.com>
5429
5430 * nbsd-nat.h (struct thread_info): Add forward declaration.
5431 (nbsd_nat_target::thread_alive): Add.
5432 (nbsd_nat_target::thread_name): Likewise.
5433 (nbsd_nat_target::update_thread_list): Likewise.
5434 (update_thread_list::post_attach): Likewise.
5435 (post_attach::pid_to_str): Likewise.
5436 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
5437 (nbsd_thread_lister): Add.
5438 (nbsd_nat_target::thread_alive): Likewise.
5439 (nbsd_nat_target::thread_name): Likewise.
5440 (nbsd_add_threads): Likewise.
5441 (update_thread_list::post_attach): Likewise.
5442 (nbsd_nat_target::update_thread_list): Likewise.
5443 (post_attach::pid_to_str): Likewise.
5444
6ee448cc
TT
54452020-04-06 Tom Tromey <tromey@adacore.com>
5446
5447 * ada-valprint.c (print_variant_part): Extract the variant field.
5448 (print_field_values): Use the field as the outer value when
5449 recursing.
5450
dea34e8c
TT
54512020-04-06 Tom Tromey <tromey@adacore.com>
5452
5453 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
5454 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
5455 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
5456 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
5457 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
5458
93689ce9
TT
54592020-04-06 Tom Tromey <tromey@adacore.com>
5460
5461 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
5462 TYPE_CODE_ERROR.
5463
79743962
KR
54642020-04-06 Kamil Rytarowski <n54@gmx.com>
5465
5466 * nbsd-tdep.c: Include "gdbarch.h".
5467 Define enum with NetBSD signal numbers.
5468 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
5469 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
5470 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
5471 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
5472 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
5473 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
5474 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
5475 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
5476 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
5477 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
5478 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
5479 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
5480
9e7c9a03
HD
54812020-04-03 Hannes Domani <ssbssa@yahoo.de>
5482
5483 PR gdb/25325
5484 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
5485
d9e49b61
TT
54862020-04-03 Tom Tromey <tromey@adacore.com>
5487
5488 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
5489 Read constant block.
5490
e0fc5c3f
SM
54912020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
5492
5493 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
5494 (gdb_bfd_get_full_section_contents): New declaration.
5495 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
5496 * windows-tdep.c (is_linked_with_cygwin_dll): Use
5497 gdb_bfd_get_full_section_contents.
5498
e2ff18a0
SM
54992020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
5500
5501 * exec.c (build_section_table): Replace internal_error with
5502 gdb_assert.
5503 (section_table_xfer_memory_partial): Likewise.
5504 * mdebugread.c (parse_partial_symbols): Likewise.
5505 * psymtab.c (lookup_partial_symbol): Likewise.
5506 * utils.c (wrap_here): Likewise.
5507
0830d301
TT
55082020-04-02 Tom Tromey <tromey@adacore.com>
5509
5510 * f-lang.c (build_fortran_types): Use arch_type to initialize
5511 builtin_complex_s32 in the TYPE_CODE_ERROR case.
5512
e7da7f8f
TT
55132020-04-02 Tom Tromey <tromey@adacore.com>
5514
5515 * dwarf2/read.c (partial_die_info::read): Do not create a vector
5516 of attributes.
5517
c90d28ac
AB
55182020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
5519 Bernd Edlinger <bernd.edlinger@hotmail.de>
5520 Tom Tromey <tromey@adacore.com>
5521
5522 * buildsym.c (buildsym_compunit::record_line): Remove
5523 deduplication code.
5524
1aa98955
TV
55252020-04-02 Tom de Vries <tdevries@suse.de>
5526
5527 PR ada/24671
5528 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
5529
d3214198
TV
55302020-04-02 Tom de Vries <tdevries@suse.de>
5531
5532 * dwarf2/read.c (dwarf2_gdb_index_functions,
5533 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
5534 NULL.
5535 * psymtab.c (psym_lookup_global_symbol_language): New function.
5536 (psym_functions): Init psym_lookup_global_symbol_language with
5537 psym_lookup_global_symbol_language.
5538 * symfile-debug.c (debug_sym_quick_functions): Init
5539 lookup_global_symbol_language with NULL.
5540 * symfile.c (set_initial_language): Remove fixme comment.
5541 * symfile.h (struct quick_symbol_functions): Add
5542 lookup_global_symbol_language.
5543 * symtab.c (find_quick_global_symbol_language): New function.
5544 (find_main_name): Use find_quick_global_symbol_language.
5545
2836752f
SM
55462020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
5547
5548 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
5549
64dc2d4b
BE
55502020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
5551
5552 * buildsym.c (record_line): Fix undefined behavior and preserve
5553 lines at eof.
5554
bbe3dc41
BE
55552020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
5556
5557 * buildsym.c (record_line): Fix the resizing condition.
5558
6b4a335b
TT
55592020-04-01 Tom Tromey <tom@tromey.com>
5560
5561 * value.h (value_literal_complex): Add comment.
5562 * valops.c (value_literal_complex): Refer to value.h.
5563
3638a098
TT
55642020-04-01 Tom Tromey <tom@tromey.com>
5565
5566 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
5567 (scalar_type): New rule, from typebase.
5568 (typebase): Use scalar_type. Recognize complex types.
5569 (field_name): Handle FLOAT_KEYWORD.
5570 (ident_tokens): Add _Complex and __complex__.
5571
c34e8714
TT
55722020-04-01 Tom Tromey <tom@tromey.com>
5573
5574 PR exp/25299:
5575 * valarith.c (promotion_type, complex_binop): New functions.
5576 (scalar_binop): Handle complex numbers. Use promotion_type.
5577 (value_pos, value_neg, value_complement): Handle complex numbers.
5578
fa649bb7
TT
55792020-04-01 Tom Tromey <tom@tromey.com>
5580
5581 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
5582 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
5583 (parse_number): Handle complex numbers.
5584
981c08ce
TT
55852020-04-01 Tom Tromey <tom@tromey.com>
5586
5587 * c-valprint.c (c_decorations): Change complex suffix to "i".
5588
4c99290d
TT
55892020-04-01 Tom Tromey <tom@tromey.com>
5590
5591 * valprint.c (generic_value_print_complex): Use accessors.
5592 * value.h (value_real_part, value_imaginary_part): Declare.
5593 * valops.c (value_real_part, value_imaginary_part): New
5594 functions.
5595 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
5596
5b930b45
TT
55972020-04-01 Tom Tromey <tom@tromey.com>
5598
5599 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
5600 (read_range_type): Update.
5601 * mdebugread.c (basic_type): Update.
5602 * go-lang.c (build_go_types): Use init_complex_type.
5603 * gdbtypes.h (struct main_type) <complex_type>: New member.
5604 (init_complex_type): Update.
5605 (arch_complex_type): Don't declare.
5606 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
5607 Make name if none given. Use alloc_type_copy. Look for cached
5608 complex type.
5609 (arch_complex_type): Remove.
5610 (gdbtypes_post_init): Use init_complex_type.
5611 * f-lang.c (build_fortran_types): Use init_complex_type.
5612 * dwarf2/read.c (read_base_type): Update.
5613 * d-lang.c (build_d_types): Use init_complex_type.
5614 * ctfread.c (read_base_type): Update.
5615
53cccef1
TBA
56162020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5617
5618 * infrun.c (stop_all_threads): Update assertion, plus when
5619 stopping threads, take into account that we might be trying
5620 to stop an all-stop target.
5621 (stop_waiting): Call 'stop_all_threads' if there exists a
5622 non-stop target.
5623
a0714d30
TBA
56242020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5625
5626 * target.h (exists_non_stop_target): New function declaration.
5627 * target.c (exists_non_stop_target): New function.
5628
60e22c1e
HD
56292020-04-01 Hannes Domani <ssbssa@yahoo.de>
5630
5631 PR gdb/24789
5632 * eval.c (is_integral_or_integral_reference): New function.
5633 (evaluate_subexp_standard): Allow integer references in
5634 pointer arithmetic.
5635
e139a727
TBA
56362020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5637
5638 * remote.c (remote_target::remote_parse_stop_reply): Remove the
5639 check for no ptid in the stop reply when the target is non-stop.
5640
e0802d59
TT
56412020-04-01 Tom Tromey <tromey@adacore.com>
5642
5643 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
5644 "name" parameter to rvalue reference. Initialize m_name_holder.
5645 <lookup_name_info>: New overloads.
5646 <name>: Return gdb::string_view.
5647 <c_str>: New method.
5648 <make_ignore_params>: Update.
5649 <search_name_hash>: Update.
5650 <language_lookup_name>: Return const char *.
5651 <m_name>: Change type.
5652 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
5653 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
5654 (lookup_name_info::match_any): Update.
5655 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
5656 Update.
5657 * minsyms.c (linkage_name_str): Update.
5658 * language.c (default_symbol_name_matcher): Update.
5659 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
5660 Update.
5661 * ada-lang.c (ada_fold_name): Change parameter to string_view.
5662 (ada_lookup_name_info::ada_lookup_name_info): Update.
5663 (literal_symbol_name_matcher): Update.
5664
8c072cb6
TT
56652020-04-01 Tom Tromey <tromey@adacore.com>
5666
5667 * psymtab.c (psymtab_search_name): Remove function.
5668 (psym_lookup_symbol): Create search name and lookup name here.
5669 (lookup_partial_symbol): Remove "name" parameter; add
5670 lookup_name.
5671 (psym_expand_symtabs_for_function): Update.
5672
6f29a534
TT
56732020-03-31 Joel Jones <joelkevinjones@gmail.com>
5674
5675 PR tui/25597:
5676 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
5677
af62665e
TT
56782020-03-31 Tom Tromey <tromey@adacore.com>
5679
5680 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
5681 memcpy.
5682
d1a89da5
NC
56832020-03-30 Nelson Chu <nelson.chu@sifive.com>
5684
5685 * features/riscv/32bit-csr.xml: Regenerated.
5686 * features/riscv/64bit-csr.xml: Regenerated.
5687
d8af9068
TT
56882020-03-30 Tom Tromey <tromey@adacore.com>
5689
5690 * ada-valprint.c (print_variant_part): Update.
5691 * ada-lang.h (ada_which_variant_applies): Update.
5692 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
5693 outer_valaddr parameters; replace with "outer" value parameter.
5694 (to_fixed_variant_branch_type): Update.
5695
227c0bf4
PFC
56962020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5697
5698 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
5699 <list>. Remove inclusion of observable.h.
5700 (PPC_DEBUG_CURRENT_VERSION): Move up define.
5701 (struct arch_lwp_info): New struct.
5702 (class ppc_linux_dreg_interface): New class.
5703 (struct ppc_linux_process_info): New struct.
5704 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
5705 <low_new_clone, low_forget_process, low_prepare_to_resume>
5706 <copy_thread_dreg_state, mark_thread_stale>
5707 <mark_debug_registers_changed, register_hw_breakpoint>
5708 <clear_hw_breakpoint, register_wp, clear_wp>
5709 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
5710 <num_memory_accesses, get_trigger_type>
5711 <create_watchpoint_request, hwdebug_point_cmp>
5712 <init_arch_lwp_info, get_arch_lwp_info>
5713 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
5714 methods.
5715 <struct ptid_hash>: New inner struct.
5716 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
5717 members.
5718 (saved_dabr_value, hwdebug_info, max_slots_number)
5719 (struct hw_break_tuple, struct thread_points, ppc_threads)
5720 (have_ptrace_hwdebug_interface)
5721 (hwdebug_find_thread_points_by_tid)
5722 (hwdebug_insert_point, hwdebug_remove_point): Remove.
5723 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
5724 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
5725 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
5726 use m_dreg_interface.
5727 (hwdebug_point_cmp): Change to...
5728 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
5729 reference arguments instead of pointers.
5730 (ppc_linux_nat_target::ranged_break_num_registers): Use
5731 m_dreg_interface.
5732 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
5733 m_dreg_interface. Call register_hw_breakpoint.
5734 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
5735 m_dreg_interface. Call clear_hw_breakpoint.
5736 (get_trigger_type): Change to...
5737 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
5738 comment.
5739 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
5740 use m_dreg_interface. Call register_hw_breakpoint.
5741 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
5742 use m_dreg_interface. Call clear_hw_breakpoint.
5743 (can_use_watchpoint_cond_accel): Change to...
5744 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
5745 method. Update comment, use m_dreg_interface and
5746 m_process_info.
5747 (calculate_dvc): Change to...
5748 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
5749 m_dreg_interface.
5750 (num_memory_accesses): Change to...
5751 (ppc_linux_nat_target::num_memory_accesses): ...this method.
5752 (check_condition): Change to...
5753 (ppc_linux_nat_target::check_condition): ...this method.
5754 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
5755 comment, use m_dreg_interface.
5756 (create_watchpoint_request): Change to...
5757 (ppc_linux_nat_target::create_watchpoint_request): ...this
5758 method. Use m_dreg_interface.
5759 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
5760 m_dreg_interface. Call register_hw_breakpoint or register_wp.
5761 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
5762 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
5763 (ppc_linux_nat_target::low_forget_process)
5764 (ppc_linux_nat_target::low_new_fork)
5765 (ppc_linux_nat_target::low_new_clone)
5766 (ppc_linux_nat_target::low_delete_thread)
5767 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
5768 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
5769 only call mark_thread_stale.
5770 (ppc_linux_thread_exit): Remove.
5771 (ppc_linux_nat_target::stopped_data_address): Change to...
5772 (ppc_linux_nat_target::low_stopped_data_address): This. Add
5773 comment, use m_dreg_interface and m_thread_hw_breakpoints.
5774 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
5775 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
5776 comment. Call low_stopped_data_address.
5777 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
5778 m_dreg_interface.
5779 (ppc_linux_nat_target::masked_watch_num_registers): Use
5780 m_dreg_interface.
5781 (ppc_linux_nat_target::copy_thread_dreg_state)
5782 (ppc_linux_nat_target::mark_thread_stale)
5783 (ppc_linux_nat_target::mark_debug_registers_changed)
5784 (ppc_linux_nat_target::register_hw_breakpoint)
5785 (ppc_linux_nat_target::clear_hw_breakpoint)
5786 (ppc_linux_nat_target::register_wp)
5787 (ppc_linux_nat_target::clear_wp)
5788 (ppc_linux_nat_target::init_arch_lwp_info)
5789 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
5790 (_initialize_ppc_linux_nat): Remove observer callback.
5791
4db10d8f
PFC
57922020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5793
5794 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
5795 (ppc_linux_nat_target::auxv_parse)
5796 (ppc_linux_nat_target::read_description)
5797 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
5798 Move up.
5799
1310c1b0
PFC
58002020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5801
5802 * linux-nat.h (low_new_clone): New method.
5803 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
5804
69b037c3
SM
58052020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
5806
5807 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
5808 (dbx_expand_psymtab): ... this.
5809 (start_psymtab): Update.
5810 * mdebugread.c (psymtab_to_symtab_1): Rename to...
5811 (mdebug_expand_psymtab): ... this.
5812 (parse_partial_symbols): Update.
5813 (new_psymtab): Update.
5814 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
5815 (xcoff_expand_psymtab): ... this.
5816 (xcoff_start_psymtab): Update.
5817
48993951
SM
58182020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
5819
5820 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
5821 <expand_dependencies>: ... this.
5822 * psymtab.c (partial_symtab::read_dependencies): Rename to...
5823 (partial_symtab::expand_dependencies): ... this.
5824 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
5825 Update.
5826 (dwarf2_psymtab::expand_psymtab): Update.
5827 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
5828 * mdebugread.c (psymtab_to_symtab_1): Update.
5829 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
5830
3ad83046
SM
58312020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
5832
5833 * psympriv.h (discard_psymtab): Remove.
5834 * dbxread.c (dbx_end_psymtab): Update.
5835 * xcoffread.c (xcoff_end_psymtab): Update.
5836
4d1b9ab6
TT
58372020-03-28 Tom Tromey <tom@tromey.com>
5838
5839 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
5840 comment.
5841
f1749218
TT
58422020-03-28 Tom Tromey <tom@tromey.com>
5843
5844 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
5845
ebea7626
HD
58462020-03-27 Hannes Domani <ssbssa@yahoo.de>
5847
5848 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
5849
a879b4d5
JB
58502020-03-26 John Baldwin <jhb@FreeBSD.org>
5851
5852 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
5853
0826b30a
TT
58542020-03-26 Tom Tromey <tom@tromey.com>
5855
5856 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
5857 (mark_common_block_symbol_computed, read_tag_string_type)
5858 (attr_to_dynamic_prop, read_subrange_type): Update.
5859 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
5860 to be methods on struct attribute.
5861 (skip_one_die, process_imported_unit_die, read_namespace_alias)
5862 (read_call_site_scope, partial_die_info::read)
5863 (partial_die_info::read, lookup_die_type, follow_die_ref):
5864 Update.
5865 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
5866 from dwarf2_get_ref_die_offset.
5867 (attribute::constant_value): New method, from
5868 dwarf2_get_attr_constant_value.
5869 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
5870 Declare method.
5871 <constant_value>: New method.
5872
2b2558bf
TT
58732020-03-26 Tom Tromey <tom@tromey.com>
5874
5875 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
5876 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
5877 (dwarf_type_encoding_name): Move to stringify.c.
5878 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
5879 * dwarf2/stringify.c: New file.
5880 * dwarf2/stringify.h: New file.
5881
eeb64781
TT
58822020-03-26 Tom Tromey <tom@tromey.com>
5883
5884 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
5885 Rewrite.
5886
a39fdb41
TT
58872020-03-26 Tom Tromey <tom@tromey.com>
5888
5889 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
5890 methods.
5891 * dwarf2/read.c (lookup_addr_base): Move to die.h.
5892 (lookup_ranges_base): Likewise.
5893 (read_cutu_die_from_dwo, read_full_die_1): Update.
5894
436c571c
TT
58952020-03-26 Tom Tromey <tom@tromey.com>
5896
5897 * dwarf2/read.c (read_import_statement, read_file_scope)
5898 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
5899 (read_lexical_block_scope, read_call_site_scope)
5900 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
5901 (handle_struct_member_die, process_structure_scope)
5902 (update_enumeration_type_from_children)
5903 (process_enumeration_scope, read_array_type, read_common_block)
5904 (read_namespace, read_module, read_subroutine_type): Update.
5905 (sibling_die): Remove.
5906
052c8bb8
TT
59072020-03-26 Tom Tromey <tom@tromey.com>
5908
5909 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
5910 (build_type_psymtabs_reader, read_structure_type)
5911 (read_enumeration_type, read_full_die_1): Update.
5912 (dwarf2_attr_no_follow): Move to die.h.
5913 * dwarf2/die.h (struct die_info) <attr>: New method.
5914
2b24b6e4
TT
59152020-03-26 Tom Tromey <tom@tromey.com>
5916
5917 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
5918 <base_address>: Now an optional.
5919 (dwarf2_find_base_address, dwarf2_rnglists_process)
5920 (dwarf2_ranges_process, fill_in_loclist_baton)
5921 (dwarf2_symbol_mark_computed): Update.
5922
c2d50fd0
TT
59232020-03-26 Tom Tromey <tom@tromey.com>
5924
5925 * dwarf2/read.c (struct die_info): Move to die.h.
5926 * dwarf2/die.h: New file.
5927
0df7ad3a
TT
59282020-03-26 Tom Tromey <tom@tromey.com>
5929
5930 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
5931 * dwarf2/read.c
5932 (dwarf2_statement_list_fits_in_line_number_section_complaint):
5933 Move to line-header.c.
5934 (read_checked_initial_length_and_offset, read_formatted_entries):
5935 Likewise.
5936 (dwarf_decode_line_header): Split into two.
5937 * dwarf2/line-header.c
5938 (dwarf2_statement_list_fits_in_line_number_section_complaint):
5939 Move from read.c.
5940 (read_checked_initial_length_and_offset, read_formatted_entries):
5941 Likewise.
5942 (dwarf_decode_line_header): New function, split from read.c.
5943
86c0bb4c
TT
59442020-03-26 Tom Tromey <tom@tromey.com>
5945
5946 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
5947 Declare method.
5948 * dwarf2/read.c (read_attribute_value): Update.
5949 (dwarf2_per_objfile::read_line_string): Rename from
5950 read_indirect_line_string.
5951 (read_formatted_entries): Update.
5952
2ef46c2f
TT
59532020-03-26 Tom Tromey <tom@tromey.com>
5954
5955 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
5956 variable.
5957
4f9c1eda
TT
59582020-03-26 Tom Tromey <tom@tromey.com>
5959
5960 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
5961 const.
5962 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
5963 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
5964 parameter const.
5965
5a0e026f
TT
59662020-03-26 Tom Tromey <tom@tromey.com>
5967
5968 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
5969 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
5970 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
5971 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
5972
8844c11b
TT
59732020-03-26 Tom Tromey <tom@tromey.com>
5974
5975 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
5976 file_names_size, file_full_name, file_file_name>: Use const.
5977 <file_name_at, file_names>: Add const overload.
5978 * dwarf2/line-header.c (line_header::file_file_name)
5979 (line_header::file_full_name): Update.
5980
c90ec28a
TT
59812020-03-26 Tom Tromey <tom@tromey.com>
5982
5983 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
5984 (macro_start_file, consume_improper_spaces)
5985 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
5986 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
5987 (dwarf_decode_macros): Move to macro.c.
5988 * dwarf2/macro.c: New file.
5989 * dwarf2/macro.h: New file.
5990 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
5991
4f44ae6c
TT
59922020-03-26 Tom Tromey <tom@tromey.com>
5993
5994 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
5995 method.
5996 * dwarf2/section.c: New method. From
5997 read_indirect_string_at_offset_from.
5998 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
5999 (read_indirect_string_at_offset_from): Move to section.c.
6000 (read_indirect_string_at_offset): Rewrite.
6001 (read_indirect_line_string_at_offset): Remove.
6002 (read_indirect_string, read_indirect_line_string)
6003 (dwarf_decode_macro_bytes): Update.
6004
a0194fa8
TT
60052020-03-26 Tom Tromey <tom@tromey.com>
6006
6007 * dwarf2/section.h (struct dwarf2_section_info)
6008 <overload_complaint>: Declare.
6009 (dwarf2_section_buffer_overflow_complaint): Don't declare.
6010 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
6011 Rename from dwarf2_section_buffer_overflow_complaint.
6012 * dwarf2/read.c (skip_one_die, partial_die_info::read)
6013 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
6014
3d27bbdb
TT
60152020-03-26 Tom Tromey <tom@tromey.com>
6016
6017 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
6018 Declare.
6019 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
6020 Move from read.c.
6021 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
6022 to section.c.
6023
9eac9650
TT
60242020-03-26 Tom Tromey <tom@tromey.com>
6025
6026 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
6027
bf80d710
TT
60282020-03-26 Tom Tromey <tom@tromey.com>
6029
6030 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
6031 "builder".
6032 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
6033 parameter.
6034 (dwarf_decode_macros): Update.
6035
0314b390
TT
60362020-03-26 Tom Tromey <tom@tromey.com>
6037
6038 * dwarf2/read.c (read_attribute_value): Update.
6039 (read_indirect_string_from_dwz): Move to dwz.c; change into
6040 method.
6041 (dwarf_decode_macro_bytes): Update.
6042 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
6043 * dwarf2/dwz.c: New file.
6044 * Makefile.in (COMMON_SFILES): Add dwz.c.
6045
9fda78b6
TT
60462020-03-26 Tom Tromey <tom@tromey.com>
6047
6048 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
6049 * dwarf2/read.c: Add include.
6050 * dwarf2/index-write.c: Add include.
6051 * dwarf2/index-cache.c: Add include.
6052 * dwarf2/dwz.h: New file.
6053
33aa3c10
TT
60542020-03-25 Tom Tromey <tom@tromey.com>
6055
6056 * compile/compile-object-load.c (get_out_value_type): Mention
6057 correct symbol name in error message.
6058
d503b685
HD
60592020-03-25 Hannes Domani <ssbssa@yahoo.de>
6060
6061 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
6062
7b1eff95
TV
60632020-03-25 Tom de Vries <tdevries@suse.de>
6064
6065 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
6066 * symmisc.c (dump_symtab_1): Print user and includes fields.
6067 (maintenance_info_symtabs): Same.
6068
dd895392
AB
60692020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
6070
6071 PR gdb/25534
6072 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
6073 (riscv_regcache_cooked_write): New function.
6074 (riscv_push_dummy_call): Use new function.
6075 (riscv_return_value): Likewise.
6076
5ab2fbf1
SM
60772020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
6078
6079 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
6080 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
6081 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
6082 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
6083 * infrun.c (follow_fork): Likewise.
6084 (follow_fork_inferior): Likewise.
6085 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
6086 * linux-nat.h (class linux_nat_target): Likewise.
6087 * remote.c (class remote_target) <follow_fork>: Likewise.
6088 (remote_target::follow_fork): Likewise.
6089 * target-delegates.c: Re-generate.
6090 * target.c (default_follow_fork): Likewise.
6091 (target_follow_fork): Likewise.
6092 * target.h (struct target_ops) <follow_fork>: Likewise.
6093 (target_follow_fork): Likewise.
6094
a64fafb5
TV
60952020-03-24 Tom de Vries <tdevries@suse.de>
6096
6097 * psymtab.c (maintenance_info_psymtabs): Print user field.
6098
fe26d3a3
TT
60992020-03-20 Tom Tromey <tromey@adacore.com>
6100
6101 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
6102 const.
6103 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
6104 const.
6105
c884cc46
SM
61062020-03-20 Simon Marchi <simon.marchi@efficios.com>
6107
6108 * ptrace.m4: Don't check for ptrace declaration.
6109 * config.in: Re-generate.
6110 * configure: Re-generate.
6111 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
6112 not defined.
6113
1ff700c2
KR
61142020-03-20 Kamil Rytarowski <n54@gmx.com>
6115
6116 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
6117 `PTRACE_TYPE_RET'.
6118 * i386-bsd-nat.c (gdb_ptrace): Likewise.
6119 * sparc-nat.c (gdb_ptrace): Likewise.
6120 * x86-bsd-nat.c (gdb_ptrace): Likewise.
6121
f7d4f0b1
TT
61222020-03-20 Tom Tromey <tromey@adacore.com>
6123
6124 * c-exp.y (lex_one_token): Fix assert.
6125
f67210ff
TT
61262020-03-20 Tom Tromey <tromey@adacore.com>
6127
6128 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
6129 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
6130 strncpy call.
6131
1773be9e
TT
61322020-03-20 Tom Tromey <tromey@adacore.com>
6133
6134 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
6135
70304be9
TT
61362020-03-20 Tom Tromey <tromey@adacore.com>
6137
6138 * ada-valprint.c (print_variant_part): Remove parameters; switch
6139 to value-based API.
6140 (print_field_values): Likewise.
6141 (ada_val_print_struct_union): Likewise.
6142 (ada_value_print_1): Update.
6143
9faa006d
KR
61442020-03-20 Kamil Rytarowski <n54@gmx.com>
6145
6146 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
6147 nbsd_nat_target instead of inf_ptrace_target.
6148 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
6149 nbsd_nat_target.
6150
4a90f062
KR
61512020-03-20 Kamil Rytarowski <n54@gmx.com>
6152
6153 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
6154 it to the ptrace call.
6155 * (store_registers): Likewise.
6156
61572020-03-20 Kamil Rytarowski <n54@gmx.com>
c7da12c7
KR
6158
6159 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
6160 it to the ptrace call.
6161 * (store_registers): Likewise.
6162
2d07da27
LM
61632020-03-19 Luis Machado <luis.machado@linaro.org>
6164
6165 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
6166 valid, fetch vg value from ptrace.
6167
f09db380
KR
61682020-03-19 Kamil Rytarowski <n54@gmx.com>
6169 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
6170 * inf-ptrace.c: Likewise.
6171 * (gdb_ptrace): Add.
6172 * (inf_ptrace_target::resume): Update.
6173 * (inf_ptrace_target::xfer_partial): Likewise.
6174 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
6175 * (inf_ptrace_peek_poke): Update.
6176
fcc7376e
KR
61772020-03-19 Kamil Rytarowski <n54@gmx.com>
6178
6179 * x86-bsd-nat.c (gdb_ptrace): New.
6180 * (x86bsd_dr_set): Add new argument `ptid'.
6181 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
6182 x86bsd_dr_set_addr): Update.
6183
cada5fc9
AB
61842020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
6185
6186 * remote.c (remote_target::process_stop_reply): Handle events for
6187 all threads differently.
6188
19a2740f
AB
61892020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
6190
6191 * completer.c (completion_tracker::remove_completion): Define new
6192 function.
6193 * completer.h (completion_tracker::remove_completion): Declare new
6194 function.
6195 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
6196 when adding a C++ function symbol.
6197
724fd9ba
AB
61982020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
6199
6200 * completer.c (completion_tracker::completion_hash_entry): Define
6201 new class.
6202 (advance_to_filename_complete_word_point): Call
6203 recompute_lowest_common_denominator.
6204 (completion_tracker::completion_tracker): Call discard_completions
6205 to setup the hash table.
6206 (completion_tracker::discard_completions): Allow for being called
6207 from the constructor, pass new equal function, and element deleter
6208 when constructing the hash table. Initialise new class member
6209 variables.
6210 (completion_tracker::maybe_add_completion): Remove use of
6211 m_entries_vec, and store more information into m_entries_hash.
6212 (completion_tracker::recompute_lcd_visitor): New function, most
6213 content taken from...
6214 (completion_tracker::recompute_lowest_common_denominator):
6215 ...here, this now just visits each item in the hash calling the
6216 above visitor.
6217 (completion_tracker::build_completion_result): Remove use of
6218 m_entries_vec, call recompute_lowest_common_denominator.
6219 * completer.h (completion_tracker::have_completions): Remove use
6220 of m_entries_vec.
6221 (completion_tracker::completion_hash_entry): Declare new class.
6222 (completion_tracker::recompute_lowest_common_denominator): Change
6223 function signature.
6224 (completion_tracker::recompute_lcd_visitor): Declare new function.
6225 (completion_tracker::m_entries_vec): Delete.
6226 (completion_tracker::m_entries_hash): Initialize to NULL.
6227 (completion_tracker::m_lowest_common_denominator_valid): New
6228 member variable.
6229 (completion_tracker::m_lowest_common_denominator_max_length): New
6230 member variable.
6231
5a82b8a1
KR
62322020-03-17 Kamil Rytarowski <n54@gmx.com>
6233
6234 * regformats/regdef.h: Put reg in gdb namespace.
6235
fb516a69
KR
62362020-03-17 Kamil Rytarowski <n54@gmx.com>
6237
6238 * i386-bsd-nat.c (gdb_ptrace): New.
6239 * (i386bsd_fetch_inferior_registers,
6240 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
6241 * (i386bsd_fetch_inferior_registers,
6242 i386bsd_store_inferior_registers) Use gdb_ptrace.
6243
1c0aa1fb
KR
62442020-03-17 Kamil Rytarowski <n54@gmx.com>
6245
6246 * amd64-bsd-nat.c (gdb_ptrace): New.
6247 * (amd64bsd_fetch_inferior_registers,
6248 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
6249 * (amd64bsd_fetch_inferior_registers,
6250 amd64bsd_store_inferior_registers) Use gdb_ptrace.
6251
5ccd2fb7
KR
62522020-03-17 Kamil Rytarowski <n54@gmx.com>
6253
6254 * user-regs.c (user_reg::read): Rename to...
6255 (user_reg::xread): ...this.
6256 * (append_user_reg): Rename argument `read' to `xread'.
6257 * (user_reg_add_builtin): Likewise.
6258 * (user_reg_add): Likewise.
6259 * (value_of_user_reg): Likewise.
6260
2108a63a
KR
62612020-03-17 Kamil Rytarowski <n54@gmx.com>
6262
6263 * sparc-nat.c (gdb_ptrace): New.
6264 * sparc-nat.c (sparc_fetch_inferior_registers)
6265 (sparc_store_inferior_registers) Remove obsolete comment.
6266 * sparc-nat.c (sparc_fetch_inferior_registers)
6267 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
6268 * sparc-nat.c (sparc_fetch_inferior_registers)
6269 (sparc_store_inferior_registers) Use gdb_ptrace.
6270
a225c9a8
KR
62712020-03-17 Kamil Rytarowski <n54@gmx.com>
6272
6273 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
6274 it to the ptrace call.
6275 * sh-nbsd-nat.c (store_registers): Likewise.
6276
98097623
KR
62772020-03-17 Kamil Rytarowski <n54@gmx.com>
6278
6279 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
6280 nbsd_nat_target instead of inf_ptrace_target.
6281 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
6282 nbsd_nat_target.
6283
9e38d619
KR
62842020-03-17 Kamil Rytarowski <n54@gmx.com>
6285
6286 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
6287
a2ecbe9f
KR
62882020-03-17 Kamil Rytarowski <n54@gmx.com>
6289
6290 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
6291 <sys/sysctl.h>.
6292 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
6293
58990295
TV
62942020-03-17 Tom de Vries <tdevries@suse.de>
6295
6296 PR gdb/23710
6297 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
6298 fields.
6299 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
6300 fields.
6301 (process_imported_unit_die): Skip import of c++ CUs.
6302
771dd3a8
TT
63032020-03-16 Tom Tromey <tom@tromey.com>
6304
6305 * p-valprint.c (pascal_object_print_value): Initialize
6306 base_value.
6307
817a7585
AK
63082020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
6309 Shahab Vahedi <shahab@synopsys.com>
6310
6311 * Makefile.in: Add arch/arc.o
6312 * configure.tgt: Likewise.
6313 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
6314 (_initialize_arc_tdep): Don't initialize old target descriptions.
aac66a4c 6315 (arc_read_description): New function to cache target descriptions.
817a7585
AK
6316 * arc-tdep.h (arc_read_description): Add proto type.
6317 * arch/arc.c: New file.
6318 * arch/arc.h: Likewise.
6319 * features/Makefile: Replace old target descriptions with new.
6320 * features/arc-arcompact.c: Remove.
6321 * features/arc-arcompact.xml: Likewise.
6322 * features/arc-v2.c: Likewise
6323 * features/arc-v2.xml: Likewise
6324 * features/arc/aux-arcompact.xml: New file.
6325 * features/arc/aux-v2.xml: Likewise.
6326 * features/arc/core-arcompact.xml: Likewise.
6327 * features/arc/core-v2.xml: Likewise.
6328 * features/arc/aux-arcompact.c: Generate.
6329 * features/arc/aux-v2.c: Likewise.
6330 * features/arc/core-arcompact.c: Likewise.
6331 * features/arc/core-v2.c: Likewise.
6332 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
6333
67430cd0
TT
63342020-03-16 Tom Tromey <tromey@adacore.com>
6335
6336 PR gdb/25663:
6337 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
6338 putting value into bcache.
6339
30efb6c7
SM
63402020-03-16 Simon Marchi <simon.marchi@efficios.com>
6341
6342 PR gdb/21500
6343 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
6344 to...
6345 (amd64_windows_init_abi_common): ... this. Don't set size of
6346 long type.
6347 (amd64_windows_init_abi): New function.
6348 (amd64_cygwin_init_abi): New function.
6349 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
6350 the Cygwin OS ABI.
6351 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
6352 comment.
6353
8db52437
SM
63542020-03-16 Simon Marchi <simon.marchi@efficios.com>
6355
6356 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
6357 * windows-tdep.c (CYGWIN_DLL_NAME): New.
6358 (pe_import_directory_entry): New struct type.
6359 (is_linked_with_cygwin_dll): New function.
6360 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
6361 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
6362 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
6363
5982a56a
SM
63642020-03-16 Simon Marchi <simon.marchi@efficios.com>
6365
6366 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
6367 i386_cygwin_core_osabi_sniffer.
6368
7a1998df
SM
63692020-03-16 Simon Marchi <simon.marchi@efficios.com>
6370
6371 * i386-cygwin-tdep.c: Rename to...
6372 * i386-windows-tdep.c: ... this.
6373 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
6374 i386-windows-tdep.c.
6375 * configure.tgt: Likewise.
6376
053205cc
SM
63772020-03-16 Simon Marchi <simon.marchi@efficios.com>
6378
6379 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
6380 * osabi.c (gdb_osabi_names): Add "Windows".
6381 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
6382 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
6383 (i386_cygwin_core_osabi_sniffer): New function, extracted from
6384 i386_cygwin_osabi_sniffer.
6385 (_initialize_i386_cygwin_tdep): Register OS ABI
6386 GDB_OSABI_WINDOWS for i386.
6387 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
6388 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
6389 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
6390 for x86-64.
6391 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
6392 when the target matches '*-*-mingw*'.
6393
fe4b2ee6
SM
63942020-03-16 Simon Marchi <simon.marchi@efficios.com>
6395
6396 * defs.h (enum gdb_osabi): Move to...
6397 * osabi.h (enum gdb_osabi): ... here.
6398 * gdbarch.sh: Include osabi.h in gdbarch.h.
6399 * gdbarch.h: Re-generate.
6400
cb9b645d
SM
64012020-03-16 Simon Marchi <simon.marchi@efficios.com>
6402
6403 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
6404 function.
6405 (_initialize_amd64_windows_tdep): Register osabi sniffer.
6406
3293bbaf
TT
64072020-03-14 Tom Tromey <tom@tromey.com>
6408
6409 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
6410 for C++.
6411 (c_type_print_modifier): Likewise. Add "language" parameter.
6412 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
6413 (c_type_print_base_1): Update.
6414 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
6415 constants.
6416 * type-stack.c (type_stack::insert): Handle tp_atomic and
6417 tp_restrict.
6418 (type_stack::follow_type_instance_flags): Likewise.
6419 (type_stack::follow_types): Likewise. Merge type-following code.
6420 * c-exp.y (RESTRICT, ATOMIC): New tokens.
6421 (space_identifier, cv_with_space_id)
6422 (const_or_volatile_or_space_identifier_noopt)
6423 (const_or_volatile_or_space_identifier): Remove.
6424 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
6425 rules.
6426 (ptr_operator, typebase): Update.
6427 (enum token_flag) <FLAG_C>: New constant.
6428 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
6429 "_Atomic".
6430 (lex_one_token): Handle FLAG_C.
6431
154151a6
KR
64322020-03-14 Kamil Rytarowski <n54@gmx.com>
6433
6434 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
6435 it to the ptrace call.
6436 * m68k-bsd-nat.c (store_registers): Likewise.
6437
bc107784
KR
64382020-03-14 Kamil Rytarowski <n54@gmx.com>
6439
6440 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
6441 gdb_byte *.
6442 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
6443 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
6444 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
6445
01a80117
KR
64462020-03-14 Kamil Rytarowski <n54@gmx.com>
6447
6448 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
6449 nbsd_nat_target instead of inf_ptrace_target.
6450 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
6451 nbsd_nat_target.
6452
f90280ca
KR
64532020-03-14 Kamil Rytarowski <n54@gmx.com>
6454
6455 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
6456 register_t.
6457
6def66f1
KR
64582020-03-14 Kamil Rytarowski <n54@gmx.com>
6459
6460 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
6461 it to the ptrace call.
6462 * alpha-bsd-nat.c (store_registers): Likewise.
6463
66eaca97
KR
64642020-03-14 Kamil Rytarowski <n54@gmx.com>
6465
6466 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
6467 includes.
6468 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
6469 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
6470 fill_fpregset): Likewise.
6471
4fed520b
KR
64722020-03-14 Kamil Rytarowski <n54@gmx.com>
6473
6474 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
6475 nbsd_nat_target instead of inf_ptrace_target.
6476 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
6477 nbsd_nat_target.
6478
2190cf06
KR
64792020-03-14 Kamil Rytarowski <n54@gmx.com>
6480
6481 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
6482 register_t.
6483
75c56d3d
KR
64842020-03-14 Kamil Rytarowski <n54@gmx.com>
6485
6486 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
6487 it to the ptrace call.
6488 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
6489 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
6490 * arm-nbsd-nat.c (store_register): Likewise.
6491 * arm-nbsd-nat.c (store_regs): Likewise.
6492 * arm-nbsd-nat.c (store_fp_register): Likewise.
6493 * arm-nbsd-nat.c (store_fp_regs): Likewise.
6494
6018d381
KR
64952020-03-14 Kamil Rytarowski <n54@gmx.com>
6496
6497 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
6498 nbsd_nat_target instead of inf_ptrace_target.
6499 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
6500 nbsd_nat_target.
6501
013f99f0
KR
65022020-03-14 Kamil Rytarowski <n54@gmx.com>
6503
6504 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
6505 it to the ptrace call.
6506 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
6507
12753073
KR
65082020-03-14 Kamil Rytarowski <n54@gmx.com>
6509
6227b330
KR
6510 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
6511 it to the ptrace call.
6512 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
6513
65142020-03-14 Kamil Rytarowski <n54@gmx.com>
6515
6516 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
6517 gdb_byte *.
12753073
KR
6518 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
6519
d5be5fa4
KR
65202020-03-14 Kamil Rytarowski <n54@gmx.com>
6521
6522 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
6523 instead of inf_ptrace_target.
6524 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
6525 nbsd_nat_target.
6526
8110f842
KR
65272020-03-14 Kamil Rytarowski <n54@gmx.com>
6528
6529 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
6530 register_t.
6531
52feded7
KR
65322020-03-14 Kamil Rytarowski <n54@gmx.com>
6533
6534 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
6535 register_t.
6536
25567eee
KR
65372020-03-14 Kamil Rytarowski <n54@gmx.com>
6538
6539 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
6540 register_t.
6541
426a9c18
TT
65422020-03-13 Tom Tromey <tom@tromey.com>
6543
6544 * value.h (val_print): Don't declare.
6545 * valprint.h (val_print_array_elements)
6546 (val_print_scalar_formatted, generic_val_print): Don't declare.
6547 * valprint.c (generic_val_print_array): Take a struct value.
6548 (generic_val_print_ptr, generic_val_print_memberptr)
6549 (generic_val_print_bool, generic_val_print_int)
6550 (generic_val_print_char, generic_val_print_complex)
6551 (generic_val_print): Remove.
6552 (generic_value_print): Update.
6553 (do_val_print): Remove unused parameters. Don't call
6554 la_val_print.
6555 (val_print): Remove.
6556 (common_val_print): Update. Don't call value_check_printable.
6557 (val_print_scalar_formatted, val_print_array_elements): Remove.
6558 * rust-lang.c (rust_val_print): Remove.
6559 (rust_language_defn): Update.
6560 * p-valprint.c (pascal_val_print): Remove.
6561 (pascal_value_print_inner): Update.
6562 (pascal_object_print_val_fields, pascal_object_print_val):
6563 Remove.
6564 (pascal_object_print_static_field): Update.
6565 * p-lang.h (pascal_val_print): Don't declare.
6566 * p-lang.c (pascal_language_defn): Update.
6567 * opencl-lang.c (opencl_language_defn): Update.
6568 * objc-lang.c (objc_language_defn): Update.
6569 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
6570 * m2-lang.h (m2_val_print): Don't declare.
6571 * m2-lang.c (m2_language_defn): Update.
6572 * language.h (struct language_defn) <la_val_print>: Remove.
6573 * language.c (unk_lang_value_print_inner): Rename. Change
6574 argument types.
6575 (unknown_language_defn, auto_language_defn): Update.
6576 * go-valprint.c (go_val_print): Remove.
6577 * go-lang.h (go_val_print): Don't declare.
6578 * go-lang.c (go_language_defn): Update.
6579 * f-valprint.c (f_val_print): Remove.
6580 * f-lang.h (f_value_print): Don't declare.
6581 * f-lang.c (f_language_defn): Update.
6582 * d-valprint.c (d_val_print): Remove.
6583 * d-lang.h (d_value_print): Don't declare.
6584 * d-lang.c (d_language_defn): Update.
6585 * cp-valprint.c (cp_print_value_fields)
6586 (cp_print_value_fields_rtti, cp_print_value): Remove.
6587 (cp_print_static_field): Update.
6588 * c-valprint.c (c_val_print_array, c_val_print_ptr)
6589 (c_val_print_struct, c_val_print_union, c_val_print_int)
6590 (c_val_print_memberptr, c_val_print): Remove.
6591 * c-lang.h (c_val_print_array, cp_print_value_fields)
6592 (cp_print_value_fields_rtti): Don't declare.
6593 * c-lang.c (c_language_defn, cplus_language_defn)
6594 (asm_language_defn, minimal_language_defn): Update.
6595 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
6596 (ada_val_print_enum): Take a struct value.
6597 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
6598 (ada_val_print): Remove.
6599 (ada_value_print_1): Update.
6600 (printable_val_type): Remove.
6601 * ada-lang.h (ada_val_print): Don't declare.
6602 * ada-lang.c (ada_language_defn): Update.
6603
42331a1e
TT
66042020-03-13 Tom Tromey <tom@tromey.com>
6605
6606 * valprint.c (do_val_print): Update.
6607 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
6608 a struct value.
6609 (value_to_value_object_no_release): Declare.
6610 * python/py-value.c (value_to_value_object_no_release): New
6611 function.
6612 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
6613 struct value.
6614 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
6615 function.
6616 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
6617 a struct value.
6618 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
6619 Declare.
6620 (gdbscm_apply_val_pretty_printer): Take a struct value.
6621 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
6622 value.
6623 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
6624 value.
6625 * extension-priv.h (struct extension_language_ops)
6626 <apply_val_pretty_printer>: Take a struct value.
6627 * cp-valprint.c (cp_print_value): Create a struct value.
6628 (cp_print_value): Update.
6629
3a916a97
TT
66302020-03-13 Tom Tromey <tom@tromey.com>
6631
6632 * ada-valprint.c (print_field_values): Call common_val_print.
6633
b59eac37
TT
66342020-03-13 Tom Tromey <tom@tromey.com>
6635
6636 * ada-valprint.c (val_print_packed_array_elements): Remove
6637 bitoffset and val parameters. Call common_val_print.
6638 (ada_val_print_string): Remove offset, address, and original_value
6639 parameters.
6640 (ada_val_print_array): Update.
6641 (ada_value_print_array): New function.
6642 (ada_value_print_1): Call it.
6643
03371129
TT
66442020-03-13 Tom Tromey <tom@tromey.com>
6645
6646 * ada-valprint.c (ada_value_print): Use common_val_print.
6647
2e088f8b
TT
66482020-03-13 Tom Tromey <tom@tromey.com>
6649
6650 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
6651
39ef85a8
TT
66522020-03-13 Tom Tromey <tom@tromey.com>
6653
6654 * ada-valprint.c (ada_value_print_num): New function.
6655 (ada_value_print_1): Use it.
6656
b9fa6e07
TT
66572020-03-13 Tom Tromey <tom@tromey.com>
6658
6659 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
6660
416595d6
TT
66612020-03-13 Tom Tromey <tom@tromey.com>
6662
6663 * ada-valprint.c (ada_value_print_ptr): New function.
6664 (ada_value_print_1): Use it.
6665
5b5e15ec
TT
66662020-03-13 Tom Tromey <tom@tromey.com>
6667
6668 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
6669 call common_val_print.
6670 (ada_val_print_1): Update.
6671 (ada_value_print_1): New function.
6672 (ada_value_print_inner): Rewrite.
6673
fbf54e75
TT
66742020-03-13 Tom Tromey <tom@tromey.com>
6675
6676 * cp-valprint.c (cp_print_value_fields): Update.
6677 (cp_print_value): New function.
6678
64b653ca
TT
66792020-03-13 Tom Tromey <tom@tromey.com>
6680
6681 * m2-valprint.c (m2_value_print_inner): Use
6682 cp_print_value_fields.
6683 * cp-valprint.c (cp_print_value_fields): New function.
6684 * c-valprint.c (c_value_print_struct): New function.
6685 (c_value_print_inner): Use c_value_print_struct.
6686 * c-lang.h (cp_print_value_fields): Declare.
6687
6999f067
TT
66882020-03-13 Tom Tromey <tom@tromey.com>
6689
6690 * c-valprint.c (c_value_print_array): New function.
6691 (c_value_print_inner): Use it.
6692
ce80b8bd
TT
66932020-03-13 Tom Tromey <tom@tromey.com>
6694
6695 * c-valprint.c (c_value_print_memberptr): New function.
6696 (c_value_print_inner): Use it.
6697
2faac269
TT
66982020-03-13 Tom Tromey <tom@tromey.com>
6699
6700 * c-valprint.c (c_value_print_int): New function.
6701 (c_value_print_inner): Use it.
6702
da3e2c29
TT
67032020-03-13 Tom Tromey <tom@tromey.com>
6704
6705 * c-valprint.c (c_value_print_ptr): New function.
6706 (c_value_print_inner): Use it.
6707
50836231
TT
67082020-03-13 Tom Tromey <tom@tromey.com>
6709
6710 * c-valprint.c (c_value_print_inner): Rewrite.
6711
4f412b6e
TT
67122020-03-13 Tom Tromey <tom@tromey.com>
6713
6714 * valprint.c (generic_value_print_complex): New function.
6715 (generic_value_print): Use it.
6716
f5354008
TT
67172020-03-13 Tom Tromey <tom@tromey.com>
6718
6719 * valprint.c (generic_val_print_float): Don't call
6720 val_print_scalar_formatted.
6721 (generic_val_print, generic_value_print): Update.
6722
3eec3b05
TT
67232020-03-13 Tom Tromey <tom@tromey.com>
6724
6725 * valprint.c (generic_value_print_char): New function
6726 (generic_value_print): Use it.
6727
fdddfccb
TT
67282020-03-13 Tom Tromey <tom@tromey.com>
6729
6730 * valprint.c (generic_value_print_int): New function.
6731 (generic_value_print): Use it.
6732
6dde7521
TT
67332020-03-13 Tom Tromey <tom@tromey.com>
6734
6735 * valprint.c (generic_value_print_bool): New function.
6736 (generic_value_print): Use it.
6737
4112d2e6
TT
67382020-03-13 Tom Tromey <tom@tromey.com>
6739
6740 * valprint.c (generic_val_print_func): Simplify.
6741 (generic_val_print, generic_value_print): Update.
6742
65786af6
TT
67432020-03-13 Tom Tromey <tom@tromey.com>
6744
6745 * valprint.c (generic_val_print_flags): Remove.
6746 (generic_val_print, generic_value_print): Update.
6747 (val_print_type_code_flags): Add original_value parameter.
6748
40f3ce18
TT
67492020-03-13 Tom Tromey <tom@tromey.com>
6750
6751 * valprint.c (generic_val_print): Update.
6752 (generic_value_print): Update.
6753 * valprint.c (generic_val_print_enum): Don't call
6754 val_print_scalar_formatted.
6755
2a5b130b
TT
67562020-03-13 Tom Tromey <tom@tromey.com>
6757
6758 * valprint.c (generic_value_print): Call generic_value_print_ptr.
6759 * valprint.c (generic_value_print_ptr): New function.
6760
abc66ce9
TT
67612020-03-13 Tom Tromey <tom@tromey.com>
6762
6763 * valprint.c (generic_value_print): Rewrite.
6764
07a32858
TT
67652020-03-13 Tom Tromey <tom@tromey.com>
6766
6767 * p-valprint.c (pascal_object_print_value_fields)
6768 (pascal_object_print_value): New functions.
6769
64d64d3a
TT
67702020-03-13 Tom Tromey <tom@tromey.com>
6771
6772 * p-valprint.c (pascal_value_print_inner): Rewrite.
6773
6a95a1f5
TT
67742020-03-13 Tom Tromey <tom@tromey.com>
6775
6776 * f-valprint.c (f_value_print_innner): Rewrite.
6777
59fcdac6
TT
67782020-03-13 Tom Tromey <tom@tromey.com>
6779
6780 * m2-valprint.c (m2_print_unbounded_array): New overload.
6781 (m2_print_unbounded_array): Update.
6782 (m2_print_array_contents): Take a struct value.
6783 (m2_value_print_inner): Rewrite.
6784
d133c3e1
TT
67852020-03-13 Tom Tromey <tom@tromey.com>
6786
6787 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
6788 (d_value_print_inner): New function.
6789 * d-lang.h (d_value_print_inner): Declare.
6790 * d-lang.c (d_language_defn): Use d_value_print_inner.
6791
23b0f06b
TT
67922020-03-13 Tom Tromey <tom@tromey.com>
6793
6794 * go-valprint.c (go_value_print_inner): New function.
6795 * go-lang.h (go_value_print_inner): Declare.
6796 * go-lang.c (go_language_defn): Use go_value_print_inner.
6797
5f56f7cb
TT
67982020-03-13 Tom Tromey <tom@tromey.com>
6799
6800 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
6801 API.
6802 (rust_val_print): Rewrite.
6803 (rust_value_print_inner): New function, from rust_val_print.
6804 (rust_language_defn): Use rust_value_print_inner.
6805
26792ee0
TT
68062020-03-13 Tom Tromey <tom@tromey.com>
6807
6808 * ada-valprint.c (ada_value_print_inner): New function.
6809 * ada-lang.h (ada_value_print_inner): Declare.
6810 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
6811
24051bbe
TT
68122020-03-13 Tom Tromey <tom@tromey.com>
6813
6814 * f-valprint.c (f_value_print_innner): New function.
6815 * f-lang.h (f_value_print_innner): Declare.
6816 * f-lang.c (f_language_defn): Use f_value_print_innner.
6817
c0941be6
TT
68182020-03-13 Tom Tromey <tom@tromey.com>
6819
6820 * p-valprint.c (pascal_value_print_inner): New function.
6821 * p-lang.h (pascal_value_print_inner): Declare.
6822 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
6823
62c4663d
TT
68242020-03-13 Tom Tromey <tom@tromey.com>
6825
6826 * m2-valprint.c (m2_value_print_inner): New function.
6827 * m2-lang.h (m2_value_print_inner): Declare.
6828 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
6829
62182190
TT
68302020-03-13 Tom Tromey <tom@tromey.com>
6831
6832 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
6833 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
6834 * c-valprint.c (c_value_print_inner): New function.
6835 * c-lang.h (c_value_print_inner): Declare.
6836 * c-lang.c (c_language_defn, cplus_language_defn)
6837 (asm_language_defn, minimal_language_defn): Use
6838 c_value_print_inner.
6839
1e592a8a
TT
68402020-03-13 Tom Tromey <tom@tromey.com>
6841
6842 * p-valprint.c (pascal_object_print_value_fields): Now static.
6843 * p-lang.h (pascal_object_print_value_fields): Don't declare.
6844
7fe471e9
TT
68452020-03-13 Tom Tromey <tom@tromey.com>
6846
6847 * c-valprint.c (c_val_print_array): Simplify.
6848
d121c6ce
TT
68492020-03-13 Tom Tromey <tom@tromey.com>
6850
6851 * valprint.c (value_print_array_elements): New function.
6852 * valprint.h (value_print_array_elements): Declare.
6853
4dba70ee
TT
68542020-03-13 Tom Tromey <tom@tromey.com>
6855
6856 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
6857 * mips-tdep.c (mips_print_register): Use
6858 value_print_scalar_formatted.
6859
4f9ae810
TT
68602020-03-13 Tom Tromey <tom@tromey.com>
6861
6862 * valprint.h (value_print_scalar_formatted): Declare.
6863 * valprint.c (value_print_scalar_formatted): New function.
6864
156bfec9
TT
68652020-03-13 Tom Tromey <tom@tromey.com>
6866
6867 * valprint.h (generic_value_print): Declare.
6868 * valprint.c (generic_value_print): New function.
6869
2b4e573d
TT
68702020-03-13 Tom Tromey <tom@tromey.com>
6871
6872 * valprint.c (do_val_print): Call la_value_print_inner, if
6873 available.
6874 * rust-lang.c (rust_language_defn): Update.
6875 * p-lang.c (pascal_language_defn): Update.
6876 * opencl-lang.c (opencl_language_defn): Update.
6877 * objc-lang.c (objc_language_defn): Update.
6878 * m2-lang.c (m2_language_defn): Update.
6879 * language.h (struct language_defn) <la_value_print_inner>: New
6880 member.
6881 * language.c (unknown_language_defn, auto_language_defn): Update.
6882 * go-lang.c (go_language_defn): Update.
6883 * f-lang.c (f_language_defn): Update.
6884 * d-lang.c (d_language_defn): Update.
6885 * c-lang.c (c_language_defn, cplus_language_defn)
6886 (asm_language_defn, minimal_language_defn): Update.
6887 * ada-lang.c (ada_language_defn): Update.
6888
a1f6a07c
TT
68892020-03-13 Tom Tromey <tom@tromey.com>
6890
6891 * c-valprint.c (c_value_print): Use common_val_print.
6892
410cf315
TT
68932020-03-13 Tom Tromey <tom@tromey.com>
6894
6895 * cp-valprint.c (cp_print_static_field): Use common_val_print.
6896
72a45c93
TT
68972020-03-13 Tom Tromey <tom@tromey.com>
6898
6899 * f-valprint.c (f77_print_array_1, f_val_print): Use
6900 common_val_print.
6901
040f66bd
TT
69022020-03-13 Tom Tromey <tom@tromey.com>
6903
6904 * riscv-tdep.c (riscv_print_one_register_info): Use
6905 common_val_print.
6906
a6e05a6c
TT
69072020-03-13 Tom Tromey <tom@tromey.com>
6908
6909 * mi/mi-main.c (output_register): Use common_val_print.
6910
3444c526
TT
69112020-03-13 Tom Tromey <tom@tromey.com>
6912
6913 * infcmd.c (default_print_one_register_info): Use
6914 common_val_print.
6915
c2a44efe
TT
69162020-03-13 Tom Tromey <tom@tromey.com>
6917
6918 * valprint.h (common_val_print_checked): Declare.
6919 * valprint.c (common_val_print_checked): New function.
6920 * stack.c (print_frame_arg): Use common_val_print_checked.
6921
b0c26e99
TT
69222020-03-13 Tom Tromey <tom@tromey.com>
6923
6924 * valprint.c (do_val_print): New function, from val_print.
6925 (val_print): Use do_val_print.
6926 (common_val_print): Use do_val_print.
6927
ce3acbe9
TT
69282020-03-13 Tom Tromey <tom@tromey.com>
6929
6930 * valprint.c (value_print): Use scoped_value_mark.
6931
96c7f873
TV
69322020-03-13 Tom de Vries <tdevries@suse.de>
6933
6934 PR symtab/25646
6935 * psymtab.c (partial_symtab::partial_symtab): Don't set
6936 globals_offset and statics_offset. Push element onto
6937 current_global_psymbols and current_static_psymbols stacks.
6938 (concat): New function.
6939 (end_psymtab_common): Set globals_offset and statics_offset. Pop
6940 element from current_global_psymbols and current_static_psymbols
6941 stacks. Concat popped elements to global_psymbols and
6942 static_symbols.
6943 (add_psymbol_to_list): Use current_global_psymbols and
6944 current_static_psymbols stacks.
6945 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
6946 current_static_psymbols fields.
6947
6ba0a321
CB
69482020-03-12 Christian Biesinger <cbiesinger@google.com>
6949
6950 * corelow.c (sniff_core_bfd): Remove.
6951 (class core_target) <m_core_vec>: Remove.
6952 (core_target::core_target): Update.
6953 (core_file_fns): Remove.
6954 (deprecated_add_core_fns): Remove.
6955 (default_core_sniffer): Remove.
6956 (sniff_core_bfd): Remove.
6957 (default_check_format): Remove.
6958 (gdb_check_format): Remove.
6959 (core_target_open): Update.
6960 (core_target::get_core_register_section): Update.
6961 (get_core_registers_cb): Update.
6962 (core_target::fetch_registers): Update.
6963 * gdbcore.h (struct core_fns): Remove.
6964 (deprecated_add_core_fns): Remove.
6965 (default_core_sniffer): Remove.
6966 (default_check_format): Remove.
6967
227031b2
TT
69682020-03-12 Tom Tromey <tom@tromey.com>
6969
6970 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
6971 CORE_ADDR.
6972 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
6973
53807e9f
TT
69742020-03-12 Tom Tromey <tom@tromey.com>
6975
6976 * remote.c (remote_target::download_tracepoint)
6977 (remote_target::enable_tracepoint)
6978 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
6979 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
6980 sprintf_vma.
6981
64f25102
TT
69822020-03-12 Tom Tromey <tom@tromey.com>
6983
6984 * symfile-mem.c: Update CORE_ADDR size assert.
6985
272cd5a3
SM
69862020-03-12 Simon Marchi <simon.marchi@efficios.com>
6987
6988 * selftest.m4: Move to gdbsupport/.
6989 * acinclude.m4: Update path to selftest.m4.
6990
74cd3f9d
SM
69912020-03-12 Simon Marchi <simon.marchi@efficios.com>
6992
6993 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
6994 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
6995 gdbarch-selfselftests.c and selftest-arch.c.
6996 (SUBDIR_UNITTESTS_OBS): Rename to...
6997 (SELFTESTS_OBS): ... this.
6998 (COMMON_SFILES): Remove disasm-selftests.c and
6999 gdbarch-selftests.c.
7000 * configure.ac: Don't add selftest-arch.{c,o} to
7001 CONFIG_{SRCS,OBS}.
7002 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
7003 preprocessor conditions.
7004
db6878ac
SM
70052020-03-12 Simon Marchi <simon.marchi@efficios.com>
7006
7007 * configure.ac: Don't source bfd/development.sh.
7008 * selftest.m4: Modify comment.
7009 * configure: Re-generate.
7010
4d696a5c
SM
70112020-03-12 Simon Marchi <simon.marchi@efficios.com>
7012
7013 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
7014 not "true" or "false".
7015 * configure: Re-generate.
7016
8dd8e1c7
CB
70172020-03-12 Christian Biesinger <cbiesinger@google.com>
7018
7019 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
7020 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
7021 renamed to arm_nbsd_supply_gregset.
7022 (fetch_register): Update to call arm_nbsd_supply_gregset.
7023 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
7024 (arm_netbsd_nat_target::fetch_registers): Update.
7025 (fetch_elfcore_registers): Removed.
7026 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
7027 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
7028 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
7029 not require NetBSD system headers.
7030 (arm_nbsd_regset): New struct.
7031 (arm_nbsd_iterate_over_regset_sections): New function.
7032 (arm_netbsd_init_abi_common): Updated to call
7033 set_gdbarch_iterate_over_regset_sections.
7034 * arm-nbsd-tdep.h: New file.
7035
dd69bf7a
KB
70362020-03-11 Kevin Buettner <kevinb@redhat.com>
7037
7038 * symtab.c (find_pc_sect_line): Add check which prevents infinite
7039 recursion.
7040
a0761e34
SM
70412020-03-11 Simon Marchi <simon.marchi@efficios.com>
7042
7043 * configure: Re-generate.
7044
e7a82140
TT
70452020-03-11 Tom Tromey <tromey@adacore.com>
7046
7047 * ada-typeprint.c (print_choices): Fix comment.
7048
dcc050c8
AB
70492020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
7050
7051 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
7052 previous item in the list, when the list has no items.
7053
1c33af77
TV
70542020-03-11 Tom de Vries <tdevries@suse.de>
7055
7056 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
7057 PROP_LOCLIST handling code.
7058
8c95582d
AB
70592020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
7060
7061 * buildsym-legacy.c (record_line): Pass extra parameter to
7062 record_line.
7063 * buildsym.c (buildsym_compunit::record_line): Take an extra
7064 parameter, reduce duplication in the line table, and record the
7065 is_stmt flag in the line table.
7066 * buildsym.h (buildsym_compunit::record_line): Add extra
7067 parameter.
7068 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
7069 non-statement lines.
7070 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
7071 this to the symtab builder.
7072 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
7073 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
7074 through to dwarf_record_line_1.
7075 * infrun.c (process_event_stop_test): When stepping, don't stop at
7076 a non-statement instruction, and only refresh the step info when
7077 we land in the middle of a line's range. Also add an extra
7078 comment.
7079 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
7080 field.
7081 * record-btrace.c (btrace_find_line_range): Only record lines
7082 marked as is-statement.
7083 * stack.c (frame_show_address): Show the frame address if we are
7084 in a non-statement sal.
7085 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
7086 (maintenance_print_one_line_table): Print a header for the is_stmt
7087 column, and include is_stmt information in the output.
7088 * symtab.c (find_pc_sect_line): Find lines marked as statements in
7089 preference to non-statements.
7090 (find_pcs_for_symtab_line): Prefer is-statement entries.
7091 (find_line_common): Likewise.
7092 * symtab.h (struct linetable_entry): Add is_stmt field.
7093 (struct symtab_and_line): Likewise.
7094 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
7095 arranging the line table.
7096
e4003a34
TV
70972020-03-07 Tom de Vries <tdevries@suse.de>
7098
7099 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
7100 DIE.
7101
e8932576
TT
71022020-03-07 Tom Tromey <tom@tromey.com>
7103
7104 * valops.c (value_literal_complex): Remove obsolete comment.
7105 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
7106 comment.
7107
29734269
SM
71082020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
7109
7110 * infrun.h: Forward-declare thread_info.
7111 (set_step_info): Add thread_info parameter, add doc.
7112 * infrun.c (set_step_info): Add thread_info parameter, move doc
7113 to header.
7114 * infrun.c (process_event_stop_test): Pass thread to
7115 set_step_info call.
7116 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
7117 set_step_info.
7118 (prepare_one_step): Add thread_info parameter, pass it to
7119 set_step_frame and prepare_one_step (recursive) call.
7120 (step_1): Pass thread to prepare_one_step call.
7121 (step_command_fsm::should_stop): Pass thread to
7122 prepare_one_step.
7123 (until_next_fsm): Pass thread to set_step_frame call.
7124 (finish_command): Pass thread to set_step_info call.
7125
b7d64b29
HD
71262020-03-06 Hannes Domani <ssbssa@yahoo.de>
7127
7128 * windows-tdep.c (windows_solib_create_inferior_hook):
7129 Check if inferior is running.
7130
09f2921c
TV
71312020-03-06 Tom de Vries <tdevries@suse.de>
7132
7133 * NEWS: Fix "the the".
7134 * ctfread.c: Same.
7135
fd760e79
TV
71362020-03-06 Tom de Vries <tdevries@suse.de>
7137
7138 * psymtab.c (psymtab_to_symtab): Don't print "done.".
7139
20ea4a60
AB
71402020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
7141
7142 * .dir-locals.el: Add a comment referencing the other copies of
7143 this file.
7144
0afbabf0
JB
71452020-03-05 John Baldwin <jhb@FreeBSD.org>
7146
7147 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
7148 psargs.
7149
842806cb
TBA
71502020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7151
7152 * .gitattributes: New file.
7153
be1e3d3e
TT
71542020-03-04 Tom Tromey <tom@tromey.com>
7155
7156 * symmisc.c (print_symbol_bcache_statistics)
7157 (print_objfile_statistics): Update.
7158 * symfile.c (allocate_symtab): Use intern.
7159 * psymtab.c (partial_symtab::partial_symtab): Use intern.
7160 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
7161 macro_cache>: Remove.
7162 <string_cache>: New member.
7163 (struct objfile) <intern>: New methods.
7164 * elfread.c (elf_symtab_read): Use intern.
7165 * dwarf2/read.c (fixup_go_packaging): Intern package name.
7166 (dwarf2_compute_name, dwarf2_physname)
7167 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
7168 names.
7169 (guess_partial_die_structure_name): Update.
7170 (partial_die_info::fixup): Intern name.
7171 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
7172 name.
7173 (dwarf2_name): Intern name. Update.
7174 * buildsym.c (buildsym_compunit::get_macro_table): Use
7175 string_cache.
7176
4e7625fd
TT
71772020-03-04 Tom Tromey <tom@tromey.com>
7178
7179 * jit.c (bfd_open_from_target_memory): Make "target" const.
7180 * corefile.c (gnutarget): Now const.
7181 * gdbcore.h (gnutarget): Now const.
7182
46f9f931
HD
71832020-03-04 Hannes Domani <ssbssa@yahoo.de>
7184
7185 * NEWS: Mention support for WOW64 processes.
7186 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
7187 (amd64_windows_segment_register_p): Remove static.
7188 (_initialize_amd64_windows_nat): Update.
7189 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
7190 * i386-windows-nat.c (context_offset): Update.
7191 (i386_mappings): Rename and remove static.
7192 (i386_windows_segment_register_p): Remove static.
7193 (_initialize_i386_windows_nat): Update.
7194 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
7195 (STATUS_WX86_SINGLE_STEP): New macro.
7196 (EnumProcessModulesEx): New macro.
7197 (Wow64SuspendThread): New macro.
7198 (Wow64GetThreadContext): New macro.
7199 (Wow64SetThreadContext): New macro.
7200 (Wow64GetThreadSelectorEntry): New macro.
7201 (windows_set_context_register_offsets): Add static.
7202 (windows_set_segment_register_p): Likewise.
7203 (windows_add_thread): Adapt for WOW64 processes.
7204 (windows_fetch_one_register): Likewise.
7205 (windows_nat_target::fetch_registers): Likewise.
7206 (windows_store_one_register): Likewise.
7207 (display_selector): Likewise.
7208 (display_selectors): Likewise.
7209 (handle_exception): Likewise.
7210 (windows_continue): Likewise.
7211 (windows_nat_target::resume): Likewise.
7212 (windows_add_all_dlls): Likewise.
7213 (do_initial_windows_stuff): Likewise.
7214 (windows_nat_target::attach): Likewise.
7215 (windows_get_exec_module_filename): Likewise.
7216 (windows_nat_target::create_inferior): Likewise.
7217 (windows_xfer_siginfo): Likewise.
7218 (_initialize_loadable): Initialize Wow64SuspendThread,
7219 Wow64GetThreadContext, Wow64SetThreadContext,
7220 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
7221 * windows-nat.h (windows_set_context_register_offsets):
7222 Remove declaration.
7223 (windows_set_segment_register_p): Likewise.
7224 (i386_windows_segment_register_p): Add declaration.
7225 (amd64_windows_segment_register_p): Likewise.
7226
440cf44e
LM
72272020-03-04 Luis Machado <luis.machado@linaro.org>
7228
7229 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
7230 in "info registers" for AArch64/ARM.
7231
7232 The change caused "info registers" to not print GPR's.
7233
7234 gdb/ChangeLog:
7235
7236 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
7237
7238 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
7239 when reg->group is empty and reggroup is not.
7240
1009d92f
TT
72412020-03-03 Tom Tromey <tromey@adacore.com>
7242
7243 * dwarf2/frame.c (struct dwarf2_frame_cache)
7244 <checked_tailcall_bottom, entry_cfa_sp_offset,
7245 entry_cfa_sp_offset_p>: Remove members.
7246 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
7247 (dwarf2_frame_prev_register): Don't call
7248 dwarf2_tailcall_sniffer_first.
7249 (dwarf2_append_unwinders): Don't append tailcall unwinder.
7250 * frame-unwind.c (add_unwinder): New fuction.
7251 (frame_unwind_init): Use it. Add tailcall unwinder.
7252
5e5d66b6
AB
72532020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
7254 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
7255
7256 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
7257 value should be printed as true.
7258
584cf46d
HD
72592020-03-03 Hannes Domani <ssbssa@yahoo.de>
7260
7261 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
7262 (windows_init_abi): Set and use windows_so_ops.
7263
7b973adc
SDJ
72642020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
7265
7266 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
7267 when verifying if dealing with a convenience variable.
7268
bb7b70ab
LM
72692020-03-03 Luis Machado <luis.machado@linaro.org>
7270
7271 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
7272
9822cb57
SM
72732020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
7274
7275 * infrun.c (gdbarch_supports_displaced_stepping): New.
7276 (use_displaced_stepping): Break up conditions in smaller pieces.
7277 Use gdbarch_supports_displaced_stepping.
7278 (displaced_step_prepare_throw): Use
7279 gdbarch_supports_displaced_stepping.
7280
63e163f2
AB
72812020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
7282
7283 * NEWS: Mention new behaviour of the history filename.
7284 * top.c (write_history_p): Add comment.
7285 (show_write_history_p): Add header comment, give a different
7286 message when history writing is on, but the history filename is
7287 empty.
7288 (history_filename): Add comment.
7289 (history_filename_empty): New function.
7290 (show_history_filename): Add header comment, give a different
7291 message when the filename is empty.
7292 (init_history): Compare history_filename against nullptr, and only
7293 read history if the filename is not empty.
7294 (set_history_filename): Add header comment, and only make
7295 non-empty filenames absolute.
7296 (init_main): Make the filename argument to 'set history filename'
7297 optional.
7298
81b86b97
CB
72992020-03-02 Christian Biesinger <cbiesinger@google.com>
7300
7301 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
7302 (arm_supply_vfpregset): ...this, and update to use VFP registers.
7303 (fetch_fp_register): Update.
7304 (fetch_fp_regs): Update.
7305 (store_fp_register): Update.
7306 (store_fp_regs): Update.
7307 (arm_netbsd_nat_target::read_description): New function.
7308 (fetch_elfcore_registers): Update.
7309
24ed6739
AB
73102020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
7311
7312 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
7313 general_thread if the stop reply is missing a thread-id.
7314 (remote_target::process_stop_reply): Use the first non-exited
7315 thread if the target didn't pass a thread-id.
7316 * infrun.c (do_target_wait): Move call to
7317 switch_to_inferior_no_thread to ....
7318 (do_target_wait_1): ... here.
7319
a84bb2a0
JT
73202020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
7321
7322 * debuginfod-support.c: Include defs.h first.
7323
658dadf0
TV
73242020-02-28 Tom de Vries <tdevries@suse.de>
7325
7326 * symfile.c (set_initial_language): Use default language for lookup.
7327
4ebe4877
SM
73282020-02-28 Simon Marchi <simon.marchi@efficios.com>
7329
7330 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
7331 reader variable, pass `this` to read_cutu_die_from_dwo.
7332
e5da1139
AM
73332020-02-27 Aaron Merey <amerey@redhat.com>
7334
7335 * source.c (open_source_file): Check for nullptr when computing
7336 srcpath.
7337
317f7127
TT
73382020-02-27 Tom Tromey <tromey@adacore.com>
7339
7340 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
7341 member.
7342 (dwarf2_add_field): Don't update nfields.
7343 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
7344
3104d9ee
AB
73452020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
7346
7347 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
7348 abs.
7349
b83470bf
TT
73502020-02-26 Tom Tromey <tom@tromey.com>
7351
7352 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
7353 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
7354 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
7355 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
7356 per_cu_data.
7357
edfe0a0c
TT
73582020-02-26 Tom Tromey <tom@tromey.com>
7359
7360 * dwarf2/index-write.c (psym_index_map): Change type.
7361 (add_address_entry_worker, write_one_signatured_type)
7362 (recursively_count_psymbols, recursively_write_psymbols)
7363 (class debug_names, psyms_seen_size, write_gdbindex)
7364 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
7365
0d79cdc4
AM
73662020-02-26 Aaron Merey <amerey@redhat.com>
7367
7368 * Makefile.in: Handle optional debuginfod support.
7369 * NEWS: Update.
7370 * README: Add --with-debuginfod summary.
7371 * config.in: Regenerate.
7372 * configure: Regenerate.
7373 * configure.ac: Handle optional debuginfod support.
7374 * debuginfod-support.c: debuginfod helper functions.
7375 * debuginfod-support.h: Ditto.
7376 * doc/gdb.texinfo: Add --with-debuginfod to configure options
7377 summary.
7378 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
7379 when a dwz file cannot be found.
7380 * elfread.c (elf_symfile_read): Query debuginfod servers when a
7381 debuginfo file cannot be found.
7382 * source.c (open_source_file): Query debuginfod servers when a
7383 source file cannot be found.
7384 * top.c (print_gdb_configuration): Include
7385 --{with,without}-debuginfod in the output.
7386
b65ce565
JG
73872020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
7388
7389 * thread.c (thr_try_catch_cmd): Print thread name.
7390
d4c9a4f8
SM
73912020-02-26 Simon Marchi <simon.marchi@efficios.com>
7392
7393 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
7394 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
7395 dwarf2_fetch_die_type_sect_off): Move to...
7396 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
7397 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
7398 dwarf2_fetch_die_type_sect_off): ... here.
7399 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
7400 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
7401 dwarf2_fetch_die_type_sect_off): Move doc to header file.
7402
0dce4280
TV
74032020-02-26 Tom de Vries <tdevries@suse.de>
7404
7405 PR gdb/25603
7406 * symfile.c (set_initial_language): Exit-early if
7407 language_mode == language_mode_manual.
7408
450a1bfc
SM
74092020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
7410
7411 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
7412 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
7413 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
7414
9e80cfa1
AB
74152020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
7416
7417 * gdbtypes.c (create_array_type_with_stride): Handle negative
7418 array strides.
7419 * valarith.c (value_subscripted_rvalue): Likewise.
7420
09624f1f
LM
74212020-02-25 Luis Machado <luis.machado@linaro.org>
7422
7423 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
7424
8cb5117c
SM
74252020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
7426
7427 * loc.h (dwarf2_get_die_type): Move to...
7428 * read.h (dwarf2_get_die_type): ... here.
7429 * read.c (dwarf2_get_die_type): Move doc to header.
7430
c325c44e
JB
74312020-02-25 Joel Brobecker <brobecker@adacore.com>
7432
7433 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
7434 'gnulib/Makefile.in' to the list.
7435
4ac93832
TT
74362020-02-24 Tom Tromey <tom@tromey.com>
7437
7438 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
7439 Remove.
7440 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
7441 XOBNEWVEC.
7442
197400e8
TT
74432020-02-24 Tom Tromey <tom@tromey.com>
7444
7445 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
7446 New method.
7447 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
7448 (dw2_do_instantiate_symtab, dw2_get_file_names)
7449 (build_type_psymtab_dependencies, load_full_type_unit): Update.
7450
76935768
TT
74512020-02-24 Tom Tromey <tom@tromey.com>
7452
7453 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
7454 make_scoped_restore.
7455 (dwarf2_psymtab::read_symtab): Don't clear
7456 reading_partial_symbols.
7457
a88ef40d
TV
74582020-02-24 Tom de Vries <tdevries@suse.de>
7459
7460 PR gdb/25592
7461 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
7462
c9af6521
TV
74632020-02-24 Tom de Vries <tdevries@suse.de>
7464
7465 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
7466 commands layout next/prev/regs.
7467
5707a07a
TT
74682020-02-22 Tom Tromey <tom@tromey.com>
7469
7470 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
7471 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
7472
3b0fb49e
TT
74732020-02-22 Tom Tromey <tom@tromey.com>
7474
7475 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
7476
283be8bf
TT
74772020-02-22 Tom Tromey <tom@tromey.com>
7478
7479 * tui/tui-win.c (_initialize_tui_win): Add usage text.
7480 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
7481 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
7482 * tui/tui.c (_initialize_tui): Add usage text.
7483
ca793b96
TT
74842020-02-22 Tom Tromey <tom@tromey.com>
7485
7486 * tui/tui-win.c (tui_set_focus_command)
7487 (tui_set_win_height_command): Use error_no_arg.
7488 (_initialize_tui_win): Update help text.
7489 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
7490
432b5c40
TT
74912020-02-22 Tom Tromey <tom@tromey.com>
7492
7493 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
7494 * tui/tui-disasm.h (struct tui_disasm_window)
7495 <display_start_addr>: Declare.
7496 * tui/tui-source.h (struct tui_source_window)
7497 <display_start_addr>: Declare.
7498 * tui/tui-winsource.h (struct tui_source_window_base)
7499 <show_source_line, display_start_addr>: New methods.
7500 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
7501 Rename and move to protected section.
7502 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
7503 (tui_source_window_base::do_erase_source_content): Update.
7504 (tui_source_window_base::show_source_line): Now a method.
7505 (tui_source_window_base::show_source_content)
7506 (tui_source_window_base::tui_source_window_base)
7507 (tui_source_window_base::rerender)
7508 (tui_source_window_base::refill)
7509 (tui_source_window_base::do_scroll_horizontal)
7510 (tui_source_window_base::set_is_exec_point_at)
7511 (tui_source_window_base::update_breakpoint_info)
7512 (tui_source_window_base::update_exec_info): Update.
7513 * tui/tui-source.c (tui_source_window::set_contents)
7514 (tui_source_window::showing_source_p)
7515 (tui_source_window::do_scroll_vertical)
7516 (tui_source_window::location_matches_p)
7517 (tui_source_window::line_is_displayed): Update.
7518 (tui_source_window::display_start_addr): New method.
7519 * tui/tui-disasm.c (tui_disasm_window::set_contents)
7520 (tui_disasm_window::do_scroll_vertical)
7521 (tui_disasm_window::location_matches_p): Update.
7522 (tui_disasm_window::display_start_addr): New method.
7523
01b1af32
TT
75242020-02-22 Tom Tromey <tom@tromey.com>
7525
7526 * NEWS: Add entry for gdb.register_window_type.
7527 * tui/tui-layout.h (window_factory): New typedef.
7528 (tui_register_window): Declare.
7529 * tui/tui-layout.c (saved_tui_windows): New global.
7530 (tui_apply_current_layout): Use it.
7531 (tui_register_window): New function.
7532 * python/python.c (do_start_initialization): Call
7533 gdbpy_initialize_tui.
7534 (python_GdbMethods): Add "register_window_type" function.
7535 * python/python-internal.h (gdbpy_register_tui_window)
7536 (gdbpy_initialize_tui): Declare.
7537 * python/py-tui.c: New file.
7538 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
7539
fc96d20b
TT
75402020-02-22 Tom Tromey <tom@tromey.com>
7541
7542 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
7543
935c78c0
TT
75442020-02-22 Tom Tromey <tom@tromey.com>
7545
7546 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
7547 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
7548 * tui/tui-data.c (tui_set_win_with_focus): Remove.
7549 (tui_set_win_focus_to): Move from tui-win.c.
7550
0240c8f1
TT
75512020-02-22 Tom Tromey <tom@tromey.com>
7552
7553 * tui/tui-layout.c (make_standard_window, get_locator_window): New
7554 functions.
7555 (known_window_types): New global.
7556 (tui_get_window_by_name): Reimplement.
7557 (initialize_known_windows): New function.
7558 (validate_window_name): Rewrite.
7559 (_initialize_tui_layout): Call initialize_known_windows.
7560
fdb01f0c
TT
75612020-02-22 Tom Tromey <tom@tromey.com>
7562
7563 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
7564 Remove constants.
7565 * tui/tui-winsource.h (struct tui_source_window_base)
7566 <tui_source_window_base>: Remove parameter.
7567 * tui/tui-winsource.c
7568 (tui_source_window_base::tui_source_window_base): Remove
7569 parameter.
7570 (tui_source_window_base::refill): Update.
7571 * tui/tui-stack.h (struct tui_locator_window)
7572 <tui_locator_window>: Update.
7573 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
7574 Default the constructor.
7575 * tui/tui-regs.h (struct tui_data_item_window)
7576 <tui_data_item_window>: Default the constructor.
7577 (struct tui_data_window) <tui_data_window>: Likewise.
7578 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
7579 Default the constructor.
7580 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
7581 Default the constructor.
7582 <type>: Remove.
7583 (struct tui_win_info) <tui_win_info>: Default the constructor.
7584 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
7585 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
7586 Default the constructor.
7587
865a5aec
TT
75882020-02-22 Tom Tromey <tom@tromey.com>
7589
7590 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
7591 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
7592 * tui/tui-win.c (tui_resize_all): Don't call
7593 tui_delete_invisible_windows.
7594 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
7595 done.
7596 (tui_set_layout): Update.
7597 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
7598 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
7599 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
7600
e098d18c
TT
76012020-02-22 Tom Tromey <tom@tromey.com>
7602
7603 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
7604 correctly.
7605
eb9c8874
TT
76062020-02-22 Tom Tromey <tom@tromey.com>
7607
7608 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
7609
7eed1a8e
TT
76102020-02-22 Tom Tromey <tom@tromey.com>
7611
7612 * tui/tui-winsource.h (struct tui_source_window_iterator)
7613 <inner_iterator>: New etytypedef.
7614 <tui_source_window_iterator>: Take "end" parameter.
7615 <tui_source_window_iterator>: Take iterator.
7616 <operator*, advance>: Update.
7617 <m_iter>: Change type.
7618 <m_end>: New field.
7619 (struct tui_source_windows) <begin, end>: Update.
7620 * tui/tui-layout.c (tui_windows): New global.
7621 (tui_apply_current_layout): Clear tui_windows.
7622 (tui_layout_window::apply): Update tui_windows.
7623 * tui/tui-data.h (tui_windows): Declare.
7624 (all_tui_windows): Now inline function.
7625 (class tui_window_iterator, struct all_tui_windows): Remove.
7626
7c043ba6
TT
76272020-02-22 Tom Tromey <tom@tromey.com>
7628
7629 PR tui/17850:
7630 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
7631 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
7632 "height" argument.
7633 (class tui_layout_window) <get_sizes>: Likewise.
7634 (class tui_layout_split) <tui_layout_split>: Add "vertical"
7635 argument.
7636 <get_sizes>: Add "height" argument.
7637 <m_vertical>: New field.
7638 * tui/tui-layout.c (tui_layout_split::clone): Update.
7639 (tui_layout_split::get_sizes): Add "height" argument.
7640 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
7641 (tui_new_layout_command): Parse "-horizontal".
7642 (_initialize_tui_layout): Update help string.
7643 (tui_layout_split::specification): Add "-horizontal" when needed.
7644 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
7645 argument.
7646 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
7647 New methods.
7648
6bc56648
TT
76492020-02-22 Tom Tromey <tom@tromey.com>
7650
7651 * tui/tui-layout.h (enum tui_adjust_result): New.
7652 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
7653 (class tui_layout_window) <adjust_size>: Return
7654 tui_adjust_result. Rewrite.
7655 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
7656 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
7657
c22fef7e
TT
76582020-02-22 Tom Tromey <tom@tromey.com>
7659
7660 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
7661 parameter and return types.
7662 (class tui_layout_base) <specification>: Add "depth".
7663 (class tui_layout_window) <specification>: Add "depth".
7664 (class tui_layout_split) <specification>: Add "depth".
7665 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
7666 and return types.
7667 (tui_new_layout_command): Parse sub-layouts.
7668 (_initialize_tui_layout): Update help string.
7669 (tui_layout_window::specification): Add "depth".
7670 (add_layout_command): Update.
7671
ee325b61
TT
76722020-02-22 Tom Tromey <tom@tromey.com>
7673
7674 * NEWS: Add "tui new-layout" item.
7675 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
7676 Add new-layout command to help text.
7677 (validate_window_name): New function.
7678 (tui_new_layout_command): New function.
7679 (_initialize_tui_layout): Register "new-layout".
7680 (tui_layout_window::specification): New method.
7681 (tui_layout_window::specification): New method.
7682 * tui/tui-layout.h (class tui_layout_base) <specification>: New
7683 method.
7684 (class tui_layout_window) <specification>: New method.
7685 (class tui_layout_split) <specification>: New method.
7686
416eb92d
TT
76872020-02-22 Tom Tromey <tom@tromey.com>
7688
7689 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
7690 * tui/tui-win.c (window_name_completer): Update comment.
7691 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
7692 Declare method.
7693 (class tui_layout_window) <replace_window>: Likewise.
7694 (class tui_layout_split) <replace_window>: Likewise.
7695 (tui_set_layout): Don't declare.
7696 (tui_set_initial_layout): Declare function.
7697 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
7698 (asm_regs_layout): New globals.
7699 (tui_current_layout, show_layout): Remove.
7700 (tui_set_layout, tui_add_win_to_layout): Rewrite.
7701 (find_layout, tui_apply_layout): New function.
7702 (layout_completer): Remove.
7703 (tui_next_layout): Reimplement.
7704 (tui_next_layout_command): New function.
7705 (tui_set_initial_layout, tui_prev_layout_command): New functions.
7706 (tui_regs_layout): Reimplement.
7707 (tui_regs_layout_command): New function.
7708 (extract_display_start_addr): Rewrite.
7709 (next_layout, prev_layout): Remove.
7710 (tui_layout_window::replace_window): New method.
7711 (tui_layout_split::replace_window): New method.
7712 (destroy_layout): New function.
7713 (layout_list): New global.
7714 (add_layout_command): New function.
7715 (initialize_layouts): Update.
7716 (tui_layout_command): New function.
7717 (_initialize_tui_layout): Install "layout" commands.
7718 * tui/tui-data.h (enum tui_layout_type): Remove.
7719 (tui_current_layout): Don't declare.
7720
0dbc2fc7
TT
77212020-02-22 Tom Tromey <tom@tromey.com>
7722
7723 * tui/tui-regs.c (tui_reg_layout): Remove.
7724 (tui_reg_command): Use tui_regs_layout.
7725 * tui/tui-layout.h (tui_reg_command): Declare.
7726 * tui/tui-layout.c (tui_reg_command): New function.
7727
5afe342e
TT
77282020-02-22 Tom Tromey <tom@tromey.com>
7729
7730 * tui/tui.c (tui_rl_delete_other_windows): Call
7731 tui_remove_some_windows.
7732 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
7733 Declare method.
7734 (class tui_layout_window) <remove_windows>: New method.
7735 (class tui_layout_split) <remove_windows>: Declare.
7736 (tui_remove_some_windows): Declare.
7737 * tui/tui-layout.c (tui_remove_some_windows): New function.
7738 (tui_layout_split::remove_windows): New method.
7739
427326a8
TT
77402020-02-22 Tom Tromey <tom@tromey.com>
7741
7742 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
7743 * tui/tui-layout.h (tui_next_layout): Declare.
7744 * tui/tui-layout.c (tui_next_layout): New function.
7745
3fe12b6d
TT
77462020-02-22 Tom Tromey <tom@tromey.com>
7747
7748 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
7749 correct coordinates.
7750
59b8b5d2
TT
77512020-02-22 Tom Tromey <tom@tromey.com>
7752
7753 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
7754 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
7755 DATA_WIN case.
7756
2a3d458b
TT
77572020-02-22 Tom Tromey <tom@tromey.com>
7758
7759 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
7760 TUI_DISASM_WIN, not tui_win_list.
7761
3f0cbb04
TT
77622020-02-22 Tom Tromey <tom@tromey.com>
7763
7764 * valprint.c (generic_val_print_enum_1)
7765 (val_print_type_code_flags): Style member names.
7766 * rust-lang.c (val_print_struct, rust_print_enum)
7767 (rust_print_struct_def, rust_internal_print_type): Style member
7768 names.
7769 * p-valprint.c (pascal_object_print_value_fields): Style member
7770 names. Only call fprintf_symbol_filtered for static members.
7771 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
7772 * f-valprint.c (f_val_print): Style member names.
7773 * f-typeprint.c (f_type_print_base): Style member names.
7774 * cp-valprint.c (cp_print_value_fields): Style member names. Only
7775 call fprintf_symbol_filtered for static members.
7776 (cp_print_class_member): Style member names.
7777 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
7778 member names.
7779 * ada-valprint.c (ada_print_scalar): Style enum names.
7780 (ada_val_print_enum): Likewise.
7781 * ada-typeprint.c (print_enum_type): Style enum names.
7782
d4d947ae
TT
77832020-02-21 Tom Tromey <tom@tromey.com>
7784
7785 * psympriv.h (struct partial_symtab): Update comment.
7786
e94e944b
TT
77872020-02-21 Tom Tromey <tromey@adacore.com>
7788
7789 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
7790 type is CORE_ADDR.
7791
1eb73179
TV
77922020-02-21 Tom de Vries <tdevries@suse.de>
7793
7794 PR gdb/25534
7795 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
7796 if dependencies[i]->user != NULL.
7797
4f180d53
AT
77982020-02-21 Ali Tamur <tamur@google.com>
7799
7800 * dwarf2/read.c (dwarf2_name): Add null check.
7801
22b6cd70
TT
78022020-02-20 Tom Tromey <tom@tromey.com>
7803
7804 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
7805 ">=", in binary search.
7806 (dwarf2_find_containing_comp_unit): New overload.
7807 (run_test): New self-test.
7808 (_initialize_dwarf2_read): Register new test.
7809
bd0cf5a6
NC
78102020-02-20 Nelson Chu <nelson.chu@sifive.com>
7811
7812 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
7813 * riscv-tdep.h: Likewise.
7814 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
7815 rv32-only CSR.
7816 * features/riscv/64bit-csr.xml: Regenerated.
7817
3f702acd
SDJ
78182020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
7819 Tom Tromey <tom@tromey.com>
7820
7821 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
7822 of 'fputc_unfiltered'.
7823 (putchar_unfiltered): Call 'fputc_unfiltered'.
7824 (fputc_unfiltered): Call 'fputs_unfiltered'.
7825
d13c7322
AB
78262020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
7827
7828 * config.in: Regenerate.
7829 * configure: Regenerate.
7830 * configure.ac: Add --with-python-libdir option.
7831 * main.c: Use WITH_PYTHON_LIBDIR.
7832
869d8950
TT
78332020-02-19 Tom Tromey <tom@tromey.com>
7834
7835 * symtab.c (general_symbol_info::compute_and_set_names): Use
7836 obstack_strndup. Simplify call to symbol_set_demangled_name.
7837
298e9637
SM
78382020-02-19 Simon Marchi <simon.marchi@efficios.com>
7839
7840 * dwarf2/read.c (allocate_signatured_type_table,
7841 allocate_dwo_unit_table, allocate_type_unit_groups_table,
7842 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
7843 Remove objfile parameter, update all callers.
7844
08410482
DE
78452020-02-19 Doug Evans <dje@google.com>
7846
7847 PR rust/25535
7848 * rust-lang.c (rust_print_enum): Apply embedded_offset to
7849 rust_enum_variant calculation.
7850
dfdeeca1
TT
78512020-02-19 Tom Tromey <tromey@adacore.com>
7852
7853 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
7854
2ef5453b
TT
78552020-02-19 Tom Tromey <tromey@adacore.com>
7856
7857 * ada-lang.c (cache_symbol): Use obstack_strdup.
7858
9f1528a1
AB
78592020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
7860
7861 * configure: Regenerate.
7862
d3c22fa8
TT
78632020-02-19 Tom Tromey <tromey@adacore.com>
7864
7865 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
7866 NULL check.
7867
bf84f706
MR
78682020-02-19 Maciej W. Rozycki <macro@wdc.com>
7869
7870 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
7871
d1c9b20f
AB
78722020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
7873
7874 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
7875 if GDBSERVER is not defined.
7876 (riscv_tdesc_cache): Likewise, also store const target_desc.
7877 (STATIC_IN_GDB): Define.
7878 (riscv_create_target_description): Update declaration with
7879 STATIC_IN_GDB.
7880 (riscv_lookup_target_description): New function, only define if
7881 GDBSERVER is not defined.
7882 * arch/riscv.h (riscv_create_target_description): Declare only
7883 when GDBSERVER is defined.
7884 (riscv_lookup_target_description): New declaration when GDBSERVER
7885 is not defined.
7886 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
7887 (riscv_linux_read_features): ...this, and return
7888 riscv_gdbarch_features instead of target_desc.
7889 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
7890 (riscv_linux_read_description): Rename to...
7891 (riscv_linux_read_features): ...this.
7892 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
7893 Update to use riscv_gdbarch_features and
7894 riscv_lookup_target_description.
7895 * riscv-tdep.c (riscv_find_default_target_description): Use
7896 riscv_lookup_target_description instead of
7897 riscv_create_target_description.
7898
373d7ac0
SM
78992020-02-18 Simon Marchi <simon.marchi@efficios.com>
7900
7901 * valprint.c (generic_val_print_enum_1): When printing a flag
7902 enum with value 0 and there is no enumerator with value 0, print
7903 just "0" instead of "(unknown: 0x0)".
7904
b29a2df0
SM
79052020-02-18 Simon Marchi <simon.marchi@efficios.com>
7906
7907 * valprint.c (generic_val_print_enum_1): Print unknown part of
7908 flag enum in hex.
7909
6740f0cc
SM
79102020-02-18 Simon Marchi <simon.marchi@efficios.com>
7911
7912 * dwarf2/read.c (update_enumeration_type_from_children): Allow
7913 flag enums to contain duplicate enumerators.
7914 * valprint.c (generic_val_print_enum_1): Update comment.
7915
edd45eb0
SM
79162020-02-18 Simon Marchi <simon.marchi@efficios.com>
7917
7918 * dwarf2/read.c: Include "count-one-bits.h".
7919 (update_enumeration_type_from_children): If an enumerator has
7920 multiple bits set, don't treat the enumeration as a "flag enum".
7921 * valprint.c (generic_val_print_enum_1): Assert that enumerators
7922 of flag enums have 0 or 1 bit set.
7923
6d0cf446
BE
79242020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
7925
7926 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
7927 conversion.
7928 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
7929 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
7930 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
7931 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
7932 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
7933
7001c1b7
SM
79342020-02-18 Simon Marchi <simon.marchi@efficios.com>
7935
7936 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
7937
fdb61c6c
SM
79382020-02-14 Simon Marchi <simon.marchi@efficios.com>
7939
7940 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
7941 displaced_step_closure_up.
7942 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
7943 (struct displaced_step_closure_up):
7944 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
7945 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
7946 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
7947 Likewise.
7948 * gdbarch.sh (displaced_step_copy_insn): Likewise.
7949 * gdbarch.c, gdbarch.h: Re-generate.
7950 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
7951 displaced_step_closure_up.
7952 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
7953 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
7954 * infrun.h (displaced_step_closure_up): New type alias.
7955 (struct displaced_step_inferior_state) <step_closure>: Change
7956 type to displaced_step_closure_up.
7957 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
7958 displaced_step_closure_up.
7959 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
7960
a4a38eb4
TT
79612020-02-14 Tom Tromey <tom@tromey.com>
7962
7963 * minidebug.c (gnu_debug_key): New global.
7964 (find_separate_debug_file_in_section): Use it.
7965
e8217e61
SM
79662020-02-14 Simon Marchi <simon.marchi@efficios.com>
7967
7968 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
7969 std::unique_ptr.
7970 * gdbarch.c: Re-generate.
7971 * gdbarch.h: Re-generate.
7972 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
7973 change.
7974 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
7975 type to std::unique_ptr.
7976 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
7977 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
7978 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
7979 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
7980 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
7981 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
7982 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
7983 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
7984 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
7985
d8d83535
SM
79862020-02-14 Simon Marchi <simon.marchi@efficios.com>
7987
7988 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
7989 std::unique_ptr.
7990 (displaced_step_clear): Rename to...
7991 (displaced_step_reset): ... this. Just call displaced->reset ().
7992 (displaced_step_clear_cleanup): Rename to...
7993 (displaced_step_reset_cleanup): ... this.
7994 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
7995 (displaced_step_fixup): Likewise.
7996 (resume_1): Likewise.
7997 (handle_inferior_event): Restore child's memory before calling
7998 displaced_step_fixup on the parent.
7999 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
8000 to std::unique_ptr.
8001 <step_closure>: Change type to std::unique_ptr.
8002
5f661e03
SM
80032020-02-14 Simon Marchi <simon.marchi@efficios.com>
8004
8005 * arm-tdep.c: Include count-one-bits.h.
8006 (cleanup_block_store_pc): Use count_one_bits.
8007 (cleanup_block_load_pc): Use count_one_bits.
8008 (arm_copy_block_xfer): Use count_one_bits.
8009 (thumb2_copy_block_xfer): Use count_one_bits.
8010 (thumb_copy_pop_pc_16bit): Use count_one_bits.
8011 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
8012 (thumb_get_next_pcs_raw): Use count_one_bits.
8013 (arm_get_next_pcs_raw): Use count_one_bits_l.
8014 * arch/arm.c (bitcount): Remove.
8015 * arch/arm.h (bitcount): Remove.
8016
8084e579
TT
80172020-02-14 Tom Tromey <tromey@adacore.com>
8018
8019 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
8020 Update.
8021 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
8022 * dwarf2/loc.c (call_site_find_chain_1): Return
8023 unique_xmalloc_ptr.
8024 (call_site_find_chain): Likewise.
8025
258bf0ee
RB
80262020-02-14 Richard Biener <rguenther@suse.de>
8027
8028 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
8029 on expression with division operators.
8030
f98a8458
AKS
80312020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
8032
8033 * MAINTAINERS (Write After Approval): Adding myself.
8034
d1437c0e
TT
80352020-02-12 Tom Tromey <tom@tromey.com>
8036
8037 * event-loop.c (event_data, gdb_event, event_handler_func):
8038 Remove.
8039
3d4560f7
TT
80402020-02-12 Tom Tromey <tom@tromey.com>
8041
8042 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
8043 (dwarf2_frame_objfile_data): Add comment.
8044 (find_comp_unit, set_comp_unit): New functions.
8045 (dwarf2_frame_find_fde): Use find_comp_unit.
8046 (dwarf2_build_frame_info): Use set_comp_unit.
8047
21982304
TT
80482020-02-12 Tom Tromey <tom@tromey.com>
8049
8050 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
8051 (comp_unit): Don't initialize objfile.
8052 (execute_cfa_program): Add text_offset parameter.
8053 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
8054 (dwarf2_frame_cache): Update.
8055 (dwarf2_build_frame_info): Don't set "objfile" member.
8056
4debb237
TT
80572020-02-12 Tom Tromey <tom@tromey.com>
8058
8059 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
8060 (decode_frame_entry): Likewise.
8061 (dwarf2_build_frame_info): Update.
8062
0d404d44
TT
80632020-02-12 Tom Tromey <tom@tromey.com>
8064
8065 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
8066 (decode_frame_entry_1): Use the comp_unit obstack.
8067
a7a3ae5c
TT
80682020-02-12 Tom Tromey <tom@tromey.com>
8069
8070 * dwarf2/frame.c (struct comp_unit): Add initializers and
8071 constructor.
8072 (dwarf2_frame_objfile_data): Store a comp_unit.
8073 (dwarf2_frame_find_fde): Update.
8074 (dwarf2_build_frame_info): Use "new".
8075
a9d65418
TT
80762020-02-12 Tom Tromey <tom@tromey.com>
8077
8078 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
8079 (dwarf2_fde_table): Typedef for std::vector.
8080 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
8081 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
8082 (decode_frame_entry): Update.
8083 (dwarf2_build_frame_info): Use "new".
8084
7559c217
CB
80852020-02-12 Christian Biesinger <cbiesinger@google.com>
8086
8087 * arm-tdep.c (arm_gdbarch_init): Update.
8088 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
8089 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
8090 have_neon, is_m>: Change to bool.
8091
aeefc73c
CB
80922020-02-12 Christian Biesinger <cbiesinger@google.com>
8093
8094 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
8095
d27b8e5f
TT
80962020-02-12 Tom Tromey <tom@tromey.com>
8097
8098 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
8099
cd5900f3
HD
81002020-02-12 Hannes Domani <ssbssa@yahoo.de>
8101
8102 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
8103 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
8104
f056b22b
TT
81052020-02-11 Tom Tromey <tom@tromey.com>
8106
8107 * psymtab.h: Update comment.
8108
f92ff6b5
TT
81092020-02-11 Tom Tromey <tom@tromey.com>
8110
8111 * gdb_obstack.h (struct auto_obstack): Use
8112 DISABLE_COPY_AND_ASSIGN.
8113
3fd6912b
TT
81142020-02-11 Tom Tromey <tom@tromey.com>
8115
8116 * dwarf2/frame.h (struct objfile): Don't forward declare.
8117
69ed9b74
CB
81182020-02-11 Christian Biesinger <cbiesinger@google.com>
8119
8120 * cris-tdep.c (cris_supply_gregset): Change signature to match
8121 what struct regset expects.
8122 (cris_regset): New struct.
8123 (fetch_core_registers): Remove.
8124 (cris_iterate_over_regset_sections): New function.
8125 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
8126 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
8127
bda874f6
CB
81282020-02-11 Christian Biesinger <cbiesinger@google.com>
8129
8130 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
8131 registers.
8132
754e1564
CB
81332020-02-11 Christian Biesinger <cbiesinger@google.com>
8134
8135 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
8136
8ddd8e0e
SM
81372020-02-11 Simon Marchi <simon.marchi@efficios.com>
8138
8139 * configure: Re-generate.
8140
898e7f60
SM
81412020-02-11 Simon Marchi <simon.marchi@efficios.com>
8142
8143 * configure: Re-generate.
8144
58df732b
SM
81452020-02-11 Simon Marchi <simon.marchi@efficios.com>
8146
8147 * acinclude: Update warning.m4 path.
8148 * warning.m4: Move to gdbsupport.
8149
da5bd37e
TT
81502020-02-11 Tom Tromey <tromey@adacore.com>
8151
8152 * remote.c (remote_console_output): Update.
8153 * printcmd.c (printf_command): Update.
8154 * event-loop.c (gdb_wait_for_event): Update.
8155 * linux-nat.c (sigchld_handler): Update.
8156 * remote-sim.c (gdb_os_write_stdout): Update.
8157 (gdb_os_flush_stdout): Update.
8158 (gdb_os_flush_stderr): Update.
8159 (gdb_os_write_stderr): Update.
8160 * exceptions.c (print_exception): Update.
8161 * remote-fileio.c (remote_fileio_func_read): Update.
8162 (remote_fileio_func_write): Update.
8163 * tui/tui.c (tui_enable): Update.
8164 * tui/tui-interp.c (tui_interp::init): Update.
8165 * utils.c (init_page_info): Update.
8166 (putchar_unfiltered, fputc_unfiltered): Update.
8167 (gdb_flush): Update.
8168 (emit_style_escape): Update.
8169 (flush_wrap_buffer, fputs_maybe_filtered): Update.
8170 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
8171 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
8172 (stderr_file::write): Update.
8173 (stderr_file::puts): Update.
8174 * ui-file.h (ui_file_isatty, ui_file_write)
8175 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
8176 (ui_file_puts): Don't declare.
8177
85f0dd3c
TV
81782020-02-10 Tom de Vries <tdevries@suse.de>
8179
8180 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
8181 sentinel to char *.
8182
2e927613
TV
81832020-02-09 Tom de Vries <tdevries@suse.de>
8184
8185 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
8186 filename if it matches "<artificial>".
8187
6bafc845
HD
81882020-02-09 Hannes Domani <ssbssa@yahoo.de>
8189
8190 * windows-tdep.c (struct enum_value_name): New struct.
8191 (create_enum): New function.
8192 (windows_get_siginfo_type): Create and use enum types.
8193
7928d571
HD
81942020-02-09 Hannes Domani <ssbssa@yahoo.de>
8195
8196 * NEWS: Mention $_siginfo support for Windows.
8197 * windows-nat.c (handle_exception): Set siginfo_er.
8198 (windows_nat_target::mourn_inferior): Reset siginfo_er.
8199 (windows_xfer_siginfo): New function.
8200 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
8201 * windows-tdep.c (struct windows_gdbarch_data): New struct.
8202 (init_windows_gdbarch_data): New function.
8203 (get_windows_gdbarch_data): New function.
8204 (windows_get_siginfo_type): New function.
8205 (windows_init_abi): Register windows_get_siginfo_type.
8206 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
8207
6751ebae
TT
82082020-02-08 Tom Tromey <tom@tromey.com>
8209
8210 * dwarf2/read.c (class cutu_reader) <cutu_reader,
8211 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
8212 <keep>: Declare method.
8213 <m_keep>: Remove member.
8214 <~cutu_reader>: Remove.
8215 (cutu_reader::init_tu_and_read_dwo_dies): Update.
8216 (cutu_reader::cutu_reader): Update.
8217 (cutu_reader::keep): Rename from ~cutu_reader.
8218 (process_psymtab_comp_unit, build_type_psymtabs_1)
8219 (process_skeletonless_type_unit, load_partial_comp_unit)
8220 (load_full_comp_unit, dwarf2_read_addr_index)
8221 (read_signatured_type): Update.
8222
135f5437
TT
82232020-02-08 Tom Tromey <tom@tromey.com>
8224
8225 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
8226 "want_partial_unit" parameter.
8227 (process_psymtab_comp_unit): Change want_partial_unit to bool.
8228 Inline check for DW_TAG_partial_unit.
8229 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
8230
9f66ff1c
TT
82312020-02-08 Tom Tromey <tom@tromey.com>
8232
8233 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
8234 read.c.
8235 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
8236 read.c.
8237
c8a7a66f
TT
82382020-02-08 Tom Tromey <tom@tromey.com>
8239
8240 * dwarf2/read.c (read_address): Move to comp-unit.c.
8241 (dwarf2_rnglists_process, dwarf2_ranges_process)
8242 (read_attribute_value, dwarf_decode_lines_1)
8243 (var_decode_location, decode_locdesc): Update.
8244 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
8245 read.c. Remove "cu" parameter.
8246 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
8247 method.
8248
8266302d
TT
82492020-02-08 Tom Tromey <tom@tromey.com>
8250
8251 * dwarf2/read.c (read_attribute_value, read_indirect_string)
8252 (read_indirect_line_string): Update.
8253 * dwarf2/comp-unit.c (read_offset): Remove.
8254 (read_comp_unit_head): Update.
8255 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
8256 method.
8257 (read_offset): Don't declare.
8258
4057dfde
TT
82592020-02-08 Tom Tromey <tom@tromey.com>
8260
8261 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
8262 * dwarf2/read.c (struct comp_unit_head): Move to
8263 dwarf2/comp-unit.h.
8264 (enum class rcuh_kind): Move to comp-unit.h.
8265 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
8266 (read_comp_unit_head, error_check_comp_unit_head)
8267 (read_and_check_comp_unit_head): Move to comp-unit.c.
8268 (read_offset, dwarf_unit_type_name): Likewise.
8269 (create_debug_type_hash_table, read_cutu_die_from_dwo)
8270 (cutu_reader::cutu_reader, read_call_site_scope)
8271 (find_partial_die, follow_die_offset): Update.
8272 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
8273
24aa364d
TT
82742020-02-08 Tom Tromey <tom@tromey.com>
8275
8276 * dwarf2/read.c (read_offset_1): Move to leb.c.
8277 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
8278 (dwarf_decode_macro_bytes): Update.
8279 * dwarf2/leb.c (read_offset): Rename; move from read.c.
8280 * dwarf2/leb.h (read_offset): Declare.
8281
2c7d5afc
TT
82822020-02-08 Tom Tromey <tom@tromey.com>
8283
8284 * dwarf2/read.c (dwarf2_section_size): Remove.
8285 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
8286 Update.
8287 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
8288
4075cb26
TT
82892020-02-08 Tom Tromey <tom@tromey.com>
8290
8291 * dwarf2/read.c (read_initial_length): Move to leb.c.
8292 * dwarf2/leb.h (read_initial_length): Declare.
8293 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
8294 handle_nonstd parameter.
8295 * dwarf2/frame.c (read_initial_length): Remove.
8296 (decode_frame_entry_1): Update.
8297
09ba997f
TT
82982020-02-08 Tom Tromey <tom@tromey.com>
8299
8300 * dwarf2/loc.c (dwarf2_find_location_expression)
8301 (dwarf_evaluate_loc_desc::get_tls_address)
8302 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
8303 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
8304 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
8305 (dwarf2_compile_property_to_c)
8306 (dwarf2_loc_desc_get_symbol_read_needs)
8307 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
8308 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
8309 (loclist_describe_location, loclist_tracepoint_var_ref)
8310 (loclist_generate_c_location): Update.
8311 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
8312 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
8313 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
8314 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
8315 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
8316 (dwarf2_per_cu_data::addr_size)
8317 (dwarf2_per_cu_data::ref_addr_size)
8318 (dwarf2_per_cu_data::text_offset)
8319 (dwarf2_per_cu_data::addr_type): Now methods.
8320 (per_cu_header_read_in): Make per_cu "const".
8321 (dwarf2_version): Remove.
8322 (dwarf2_per_cu_data::int_type): Now a method.
8323 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
8324 (set_die_type, read_array_type, read_subrange_index_type)
8325 (read_tag_string_type, read_subrange_type): Update.
8326 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
8327 offset_size, ref_addr_size, text_offset, addr_type, version,
8328 objfile, int_type, addr_sized_int_type>: Declare methods.
8329
96c738c0
TT
83302020-02-08 Tom Tromey <tom@tromey.com>
8331
8332 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
8333 Move earlier.
8334
8fdd972c
TT
83352020-02-08 Tom Tromey <tom@tromey.com>
8336
8337 * dwarf2/read.h (dwarf_line_debug): Declare.
8338 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
8339 * dwarf2/read.c: Move line_header code to new files.
8340 (dwarf_line_debug): No longer static.
8341 * dwarf2/line-header.c: New file.
8342 * dwarf2/line-header.h: New file.
8343
03075812
TT
83442020-02-08 Tom Tromey <tom@tromey.com>
8345
8346 * dwarf2/read.c (struct line_header) <file_full_name,
8347 file_file_name>: Return unique_xmalloc_ptr.
8348 (line_header::file_file_name): Update.
8349 (line_header::file_full_name): Update.
8350 (dw2_get_file_names_reader): Update.
8351 (macro_start_file): Update.
8352
bb822404
TT
83532020-02-08 Tom Tromey <tom@tromey.com>
8354
8355 * dwarf2/read.c (struct line_header) <file_full_name,
8356 file_file_name>: Declare methods.
8357 (dw2_get_file_names_reader): Update.
8358 (file_file_name): Now a method.
8359 (file_full_name): Likewise.
8360 (macro_start_file): Update.
8361
009b64fc
TT
83622020-02-08 Tom Tromey <tom@tromey.com>
8363
8364 * dwarf2/read.c (dwarf_always_disassemble)
8365 (show_dwarf_always_disassemble): Move to loc.c.
8366 (_initialize_dwarf2_read): Move "always-disassemble" registration
8367 to loc.c.
8368 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
8369 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
8370 static.
8371 (show_dwarf_always_disassemble): Move from read.c.
8372 (_initialize_dwarf2loc): Move always-disassemble from read.c.
8373
5895093f
TT
83742020-02-08 Tom Tromey <tom@tromey.com>
8375
8376 * dwarf2/read.c (~dwarf2_per_objfile): Update.
8377 (create_quick_file_names_table): Return htab_up.
8378 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
8379 Update.
8380 * dwarf2/read.h (struct dwarf2_per_objfile)
8381 <quick_file_names_table>: Now htab_up.
8382
b3b32279
TT
83832020-02-08 Tom Tromey <tom@tromey.com>
8384
8385 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
8386
1d33d811
TT
83872020-02-08 Tom Tromey <tom@tromey.com>
8388
8389 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
8390 Rewrite.
8391 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
8392 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
8393 (abbrev_table::abbrev_table): No longer inline.
8394 (ABBREV_HASH_SIZE): Remove.
8395 (abbrev_table::m_abbrevs): Now an htab_up.
8396
86de1d91
TT
83972020-02-08 Tom Tromey <tom@tromey.com>
8398
8399 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
8400 (cutu_reader): Update.
8401 (build_type_psymtabs_1): Update.
8402 * dwarf2/abbrev.c (abbrev_table::read): Rename.
8403 (abbrev_table::alloc_abbrev): Update.
8404 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
8405 (abbrev_table::read): New static method, renamed from
8406 abbrev_table_read_table.
8407 (abbrev_table::alloc_abbrev)
8408 (abbrev_table::add_abbrev): Now private.
8409 (abbrev_table::abbrev_table): Now private.
8410 (abbrev_table::m_abbrev_obstack): Now private. Rename.
8411
0335378b
TT
84122020-02-08 Tom Tromey <tom@tromey.com>
8413
8414 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
8415 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
8416 htab_up.
8417
48b490f2
TT
84182020-02-08 Tom Tromey <tom@tromey.com>
8419
8420 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
8421 htab_up.
8422 (lookup_dwo_unit_in_dwp): Update.
8423 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
8424 on obstack.
8425
bc68fb19
TT
84262020-02-08 Tom Tromey <tom@tromey.com>
8427
8428 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
8429 obstack.
8430
d15acc42
TT
84312020-02-08 Tom Tromey <tom@tromey.com>
8432
8433 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
8434 line_header_hash.
8435 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
8436 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
8437 Change type to htab_up.
8438
eaa5fa8b
TT
84392020-02-08 Tom Tromey <tom@tromey.com>
8440
8441 * dwarf2/read.c (allocate_type_unit_groups_table): Return
8442 htab_up. Don't allocate on obstack.
8443 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
8444 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
8445 Change type to htab_up.
8446
b0b6a987
TT
84472020-02-08 Tom Tromey <tom@tromey.com>
8448
8449 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
8450 Change type to htab_up.
8451 * dwarf2/read.c (create_signatured_type_table_from_index)
8452 (create_signatured_type_table_from_debug_names)
8453 (create_all_type_units, add_type_unit)
8454 (lookup_dwo_signatured_type, lookup_signatured_type)
8455 (process_skeletonless_type_unit): Update.
8456 (create_debug_type_hash_table, create_debug_types_hash_table):
8457 Change type of types_htab.
8458 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
8459 htab_up. Don't allocate on obstack.
8460 (create_cus_hash_table): Change type of cus_htab parameter.
8461 (struct dwo_file) <cus, tus>: Now htab_up.
8462 (lookup_dwo_signatured_type, lookup_dwo_cutu)
8463 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
8464 (queue_and_load_all_dwo_tus): Update.
8465 * dwarf2/index-write.c (write_gdbindex): Update.
8466 (write_debug_names): Update.
8467
39856def
TT
84682020-02-08 Tom Tromey <tom@tromey.com>
8469
8470 * dwarf2/read.h (struct dwarf2_queue_item): Move from
8471 dwarf2/read.c. Remove "next" member. Add constructor ntad
8472 destructor.
8473 (struct dwarf2_per_objfile) <queue>: New member.
8474 * dwarf2/read.c (struct dwarf2_queue_item): Move to
8475 dwarf2/read.h.
8476 (dwarf2_queue, dwarf2_queue_tail): Remove.
8477 (class dwarf2_queue_guard): Add parameter to constructor. Use
8478 DISABLE_COPY_AND_ASSIGN.
8479 <m_per_objfile>: New member.
8480 <~dwarf2_queue_guard>: Rewrite.
8481 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
8482 Update.
8483 (~dwarf2_queue_item): New.
8484
3e225074
TT
84852020-02-08 Tom Tromey <tom@tromey.com>
8486
8487 * dwarf2/read.c (struct die_info) <has_children>: New member.
8488 (dw2_get_file_names_reader): Remove has_children.
8489 (dw2_get_file_names): Update.
8490 (read_cutu_die_from_dwo): Remove has_children.
8491 (cutu_reader::init_tu_and_read_dwo_dies)
8492 (cutu_reader::cutu_reader): Update.
8493 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
8494 Remove has_children.
8495 (build_type_psymtabs_1, process_skeletonless_type_unit)
8496 (load_partial_comp_unit, load_full_comp_unit): Update.
8497 (create_dwo_cu_reader): Remove has_children.
8498 (create_cus_hash_table, read_die_and_children): Update.
8499 (read_full_die_1,read_full_die): Remove has_children.
8500 (read_signatured_type): Update.
8501 (class cutu_reader) <has_children>: Remove.
8502
82ca8957
TT
85032020-02-08 Tom Tromey <tom@tromey.com>
8504
8505 * dwarf2/expr.c: Rename from dwarf2expr.c.
8506 * dwarf2/expr.h: Rename from dwarf2expr.h.
8507 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
8508 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
8509 * dwarf2/frame.c: Rename from dwarf2-frame.c.
8510 * dwarf2/frame.h: Rename from dwarf2-frame.h.
8511 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
8512 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
8513 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
8514 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
8515 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
8516 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
8517 * dwarf2/loc.c: Rename from dwarf2loc.c.
8518 * dwarf2/loc.h: Rename from dwarf2loc.h.
8519 * dwarf2/read.c: Rename from dwarf2read.c.
8520 * dwarf2/read.h: Rename from dwarf2read.h.
8521 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
8522 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
8523 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
8524 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
8525 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
8526 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
8527 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
8528 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
8529 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
8530 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
8531 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
8532 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
8533 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
8534 Update.
8535 * Makefile.in (COMMON_SFILES): Update.
8536 (HFILES_NO_SRCDIR): Update.
8537
9e35d499
TT
85382020-02-08 Tom Tromey <tom@tromey.com>
8539
8540 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
8541 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
8542
1eba2311
TT
85432020-02-08 Tom Tromey <tom@tromey.com>
8544
8545 * dwarf2read.h (struct die_info): Don't declare.
8546
e41c2da2
TT
85472020-02-08 Tom Tromey <tom@tromey.com>
8548
8549 * dwarf2read.h (die_info_ptr): Remove typedef.
8550
4fc6c0d5
TT
85512020-02-08 Tom Tromey <tom@tromey.com>
8552
8553 * dwarf2read.c (read_call_site_scope)
8554 (handle_data_member_location, dwarf2_add_member_fn)
8555 (mark_common_block_symbol_computed, read_common_block)
8556 (attr_to_dynamic_prop, partial_die_info::read)
8557 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
8558 (dwarf2_symbol_mark_computed, set_die_type): Update.
8559 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
8560 method.
8561 (attr_form_is_block): Don't declare.
8562 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
8563
cd6c91b4
TT
85642020-02-08 Tom Tromey <tom@tromey.com>
8565
8566 * dwarf2read.c (dwarf2_find_base_address, )
8567 (read_call_site_scope, rust_containing_type)
8568 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
8569 (handle_data_member_location, dwarf2_add_member_fn)
8570 (get_alignment, read_structure_type, process_structure_scope)
8571 (mark_common_block_symbol_computed, read_common_block)
8572 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
8573 (partial_die_info::read, read_attribute_value, new_symbol)
8574 (lookup_die_type, dwarf2_get_ref_die_offset)
8575 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
8576 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
8577 (dwarf2_symbol_mark_computed): Update.
8578 * dwarf2/attribute.h (struct attribute) <value_as_address,
8579 form_is_section_offset, form_is_constant, form_is_ref>: Declare
8580 methods.
8581 (value_as_address, attr_form_is_section_offset)
8582 (attr_form_is_constant, attr_form_is_ref): Don't declare.
8583 * dwarf2/attribute.c (attribute::value_as_address)
8584 (attribute::form_is_section_offset, attribute::form_is_constant)
8585 (attribute::form_is_ref): Now methods.
8586
162dce55
TT
85872020-02-08 Tom Tromey <tom@tromey.com>
8588
8589 * dwarf2read.c (struct attribute, DW_STRING)
8590 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
8591 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
8592 (attr_form_is_block, attr_form_is_section_offset)
8593 (attr_form_is_constant, attr_form_is_ref): Move.
8594 * dwarf2/attribute.h: New file.
8595 * dwarf2/attribute.c: New file, from dwarf2read.c.
8596 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
8597
3054dd54
TT
85982020-02-08 Tom Tromey <tom@tromey.com>
8599
8600 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
8601 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
8602 Move.
8603 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
8604 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
8605 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
8606 abbrev.c.
8607 * dwarf2/abbrev.h: New file.
8608 * dwarf2/abbrev.c: New file, from dwarf2read.c.
8609 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
8610
96b79293
TT
86112020-02-08 Tom Tromey <tom@tromey.com>
8612
8613 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
8614 (dwarf2_section_size, dwarf2_get_section_info)
8615 (create_signatured_type_table_from_debug_names)
8616 (create_addrmap_from_aranges, read_debug_names_from_section)
8617 (get_gdb_index_contents_from_section, read_comp_unit_head)
8618 (error_check_comp_unit_head, read_abbrev_offset)
8619 (create_debug_type_hash_table, init_cu_die_reader)
8620 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
8621 (read_comp_units_from_section, create_cus_hash_table)
8622 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
8623 (create_dwp_v2_section, dwarf2_rnglists_process)
8624 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
8625 (abbrev_table_read_table, read_indirect_string_at_offset_from)
8626 (read_indirect_string_from_dwz, read_addr_index_1)
8627 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
8628 (dwarf_decode_macro_bytes, dwarf_decode_macros)
8629 (fill_in_loclist_baton): Update.
8630 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
8631 get_containing_section, get_bfd_owner, get_bfd_section,
8632 get_file_name, get_id, get_flags, empty, read>: Declare methods.
8633 (dwarf2_read_section, get_section_name, get_section_file_name)
8634 (get_containing_section, get_section_bfd_owner)
8635 (get_section_bfd_section, get_section_name, get_section_file_name)
8636 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
8637 declare.
8638 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
8639 (dwarf2_section_info::get_bfd_owner)
8640 (dwarf2_section_info::get_bfd_section)
8641 (dwarf2_section_info::get_name)
8642 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
8643 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
8644 (dwarf2_section_info::read): Now methods.
8645 * dwarf-index-write.c (class debug_names): Update.
8646
2c86cff9
TT
86472020-02-08 Tom Tromey <tom@tromey.com>
8648
8649 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
8650 Move to dwarf2/section.h.
8651 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
8652 (get_section_bfd_section, get_section_name)
8653 (get_section_file_name, get_section_id, get_section_flags)
8654 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
8655 dwarf2/section.c.
8656 * dwarf2/section.h: New file.
8657 * dwarf2/section.c: New file, from dwarf2read.c.
8658 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
8659
f4382c45
TT
86602020-02-08 Tom Tromey <tom@tromey.com>
8661
8662 * dwarf2read.h (read_unsigned_leb128): Don't declare.
8663 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
8664 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
8665 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
8666 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
8667 * dwarf2/leb.h: New file, from dwarf2read.c.
8668 * dwarf2/leb.c: New file, from dwarf2read.c.
8669 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
8670 Remove.
8671 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
8672 (COMMON_SFILES): Add dwarf2/leb.c.
8673
01840b7a
JB
86742020-02-08 Joel Brobecker <brobecker@adacore.com>
8675
8676 GDB 9.1 released.
8677
dfcb27e4
IB
86782020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
8679
8680 PR gdb/25190:
aac66a4c
SM
8681 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
8682 * gdb/remote.c (remote_console_output): Update.
8683 * gdb/ui-file.c (fputs_unfiltered): Rename to...
8684 (ui_file_puts): ...this.
8685 * gdb/ui-file.h (ui_file_puts): Add declaration.
8686 * gdb/utils.c (emit_style_escape): Update.
8687 (flush_wrap_buffer): Update.
8688 (fputs_maybe_filtered): Update.
8689 (fputs_unfiltered): Add function.
dfcb27e4 8690
faa17681
IB
86912020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
8692
aac66a4c
SM
8693 * gdb/event-loop.c (gdb_wait_for_event): Update.
8694 * gdb/printcmd.c (printf_command): Update.
8695 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
8696 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
8697 (gdb_os_flush_stderr): Update.
8698 * gdb/remote.c (remote_console_output): Update.
8699 * gdb/ui-file.c (gdb_flush): Rename to...
8700 (ui_file_flush): ...this.
8701 (stderr_file::write): Update.
8702 (stderr_file::puts): Update.
8703 * gdb/ui-file.h (gdb_flush): Rename to...
8704 (ui_file_flush): ...this.
8705 * gdb/utils.c (gdb_flush): Add function.
8706 * gdb/utils.h (gdb_flush): Add declaration.
faa17681 8707
5abbbe1d
TT
87082020-02-07 Tom Tromey <tromey@adacore.com>
8709
8710 PR breakpoints/24915:
8711 * source.c (find_and_open_source): Do not check basenames_may_differ.
8712
919adfe8
TT
87132020-02-07 Tom Tromey <tom@tromey.com>
8714
8715 * README: Update gdbserver documentation.
8716 * gdbserver: Move to top level.
8717 * configure.tgt (build_gdbserver): Remove.
8718 * configure.ac: Remove --enable-gdbserver.
8719 * configure: Rebuild.
8720 * Makefile.in (distclean): Don't mention gdbserver.
8721
1d5d29e7
SV
87222020-02-06 Shahab Vahedi <shahab@synopsys.com>
8723
8724 * source-cache.c (source_cache::ensure): Surround
8725 get_plain_source_lines with a try/catch.
8726 (source_cache::get_line_charpos): Get rid of try/catch
8727 and only check for the return value of "ensure".
8728 * tui/tui-source.c (tui_source_window::set_contents):
8729 Simplify "nlines" calculation.
8730
6eb1129c
SV
87312020-02-06 Shahab Vahedi <shahab@synopsys.com>
8732
8733 * MAINTAINERS (Write After Approval): Add myself.
8734
c6a42d11
CB
87352020-02-05 Christian Biesinger <cbiesinger@google.com>
8736
8737 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
8738 function call.
8739
c8ecdda6
CB
87402020-02-05 Christian Biesinger <cbiesinger@google.com>
8741
8742 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
8743
f6480e70
MR
87442020-02-05 Maciej W. Rozycki <macro@wdc.com>
8745
8746 * nat/riscv-linux-tdesc.h: New file.
8747 * nat/riscv-linux-tdesc.c: New file, taking code from...
8748 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
8749 ... here.
8750 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
8751 NATDEPFILES.
8752
dcc9fbc6
AB
87532020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
8754
8755 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
8756 we don't set the fake simulator ptid to the null_ptid.
8757
719546c4
SM
87582020-02-03 Simon Marchi <simon.marchi@efficios.com>
8759
8760 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
8761 * gdbthread.h (class thread_info) <resumed>: Likewise.
8762 * infrun.c (resume_1): Likewise.
8763 (proceed): Likewise.
8764 (infrun_thread_stop_requested): Likewise.
8765 (stop_all_threads): Likewise.
8766 (handle_inferior_event): Likewise.
8767 (restart_threads): Likewise.
8768 (finish_step_over): Likewise.
8769 (keep_going_stepped_thread): Likewise.
8770 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
8771 (linux_handle_extended_wait): Likewise.
8772 * record-btrace.c (get_thread_current_frame_id): Likewise.
8773 * record-full.c (record_full_wait_1): Likewise.
8774 * remote.c (remote_target::process_initial_stop_replies): Likewise.
8775 * target.c (target_resume): Likewise.
8776 * thread.c (set_running_thread): Likewise.
8777
e409c542
AKS
87782020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
8779
8780 * f-valprint.c (f77_print_array_1): Changed datatype of index
8781 variable to LONGEST from int to enable it to contain bound
8782 values correctly.
8783
ee98c0da
MR
87842020-02-03 Maciej W. Rozycki <macro@wdc.com>
8785
8786 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
8787 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
8788 offsets according to FLEN determined.
8789 (riscv_linux_nat_target::read_description): Determine FLEN
8790 dynamically.
8791 (riscv_linux_nat_target::fetch_registers): Size regset buffer
8792 according to FLEN determined.
8793 (riscv_linux_nat_target::store_registers): Likewise.
8794
aa66aac4
SV
87952020-02-01 Shahab Vahedi <shahab@synopsys.com>
8796
8797 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
8798 when reg->group is empty and reggroup is not.
8799
fd9faca8
TT
88002020-01-31 Tom Tromey <tromey@adacore.com>
8801
8802 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
8803 Call beneath target's mourn_inferior after unpushing.
8804
42330a68
AB
88052020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
8806
8807 PR tui/9765
8808 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
8809 have enough lines to fill the screen, still return the lowest
8810 address we found.
8811
7a27a45b
AB
88122020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
8813
8814 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
8815 '-', '<', and '>' commands.
8816
c47f70e2
PA
88172020-01-29 Pedro Alves <palves@redhat.com>
8818 Sergio Durigan Junior <sergiodj@redhat.com>
8819
8820 * infcmd.c (construct_inferior_arguments): Assert that
8821 'argc' is greater than 0.
8822
5133a315
LM
88232020-01-29 Luis Machado <luis.machado@linaro.org>
8824
8825 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
8826 (BRK_INSN_MASK): Define to 0xd4200000.
8827 (aarch64_program_breakpoint_here_p): New function.
8828 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
8829 * arch-utils.c (default_program_breakpoint_here_p): Moved from
8830 breakpoint.c.
8831 * arch-utils.h (default_program_breakpoint_here_p): Moved from
8832 breakpoint.h
8833 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
8834 call gdbarch_program_breakpoint_here_p.
8835 (program_breakpoint_here): Moved to arch-utils.c, renamed to
8836 default_program_breakpoint_here_p, changed return type to bool and
8837 simplified.
8838 * breakpoint.h (program_breakpoint_here): Moved prototype to
8839 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
8840 return type to bool.
8841 * gdbarch.c: Regenerate.
8842 * gdbarch.h: Regenerate.
8843 * gdbarch.sh (program_breakpoint_here_p): New method.
8844 * infrun.c (handle_signal_stop): Call
8845 gdbarch_program_breakpoint_here_p.
8846
168f8c6b
TT
88472020-01-26 Tom Tromey <tom@tromey.com>
8848
8849 * ctfread.c (struct ctf_fp_info): Reindent.
8850 (_initialize_ctfread): Remove.
8851
128a391f
TT
88522020-01-26 Tom Tromey <tom@tromey.com>
8853
8854 * psymtab.c (partial_map_expand_apply)
8855 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
8856 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
8857 (psym_print_stats, psym_expand_symtabs_for_function)
8858 (psym_map_symbol_filenames, psym_map_matching_symbols)
8859 (psym_expand_symtabs_matching)
8860 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
8861 (maintenance_check_psymtabs): Use new methods.
8862 * psympriv.h (struct partial_symtab) <readin_p,
8863 get_compunit_symtab>: New methods.
8864 <readin, compunit_symtab>: Remove members.
8865 (struct standard_psymtab): New.
8866 (struct legacy_psymtab): Derive from standard_psymtab.
8867 * dwarf2read.h (struct dwarf2_psymtab): Derive from
8868 standard_psymtab.
8869 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
8870
0494dbec
TT
88712020-01-26 Tom Tromey <tom@tromey.com>
8872
8873 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
8874 read_dependencies. Add assert.
8875 * psymtab.c (partial_symtab::read_dependencies): New method.
8876 * psympriv.h (struct partial_symtab) <read_dependencies>: New
8877 method.
8878 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
8879 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
8880 read_dependencies.
8881 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
8882 Add assert.
8883
8566b89b
TT
88842020-01-26 Tom Tromey <tom@tromey.com>
8885
8886 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
8887 Call expand_psymtab.
8888 (xcoff_read_symtab): Call expand_psymtab.
8889 (xcoff_start_psymtab, xcoff_end_psymtab): Set
8890 legacy_expand_psymtab.
8891 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
8892 method.
8893 (struct legacy_psymtab) <expand_psymtab>: Implement.
8894 <legacy_expand_psymtab>: New member.
8895 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
8896 (parse_partial_symbols): Set legacy_expand_psymtab.
8897 (psymtab_to_symtab_1): Change argument order. Call
8898 expand_psymtab.
8899 (new_psymtab): Set legacy_expand_psymtab.
8900 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
8901 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
8902 expand_psymtab.
8903 (dwarf2_psymtab::expand_psymtab): Rename from
8904 psymtab_to_symtab_1. Call expand_psymtab.
8905 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
8906 (dbx_end_psymtab): Likewise.
8907 (dbx_psymtab_to_symtab_1): Change argument order. Call
8908 expand_psymtab.
8909 (dbx_read_symtab): Call expand_psymtab.
8910 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
8911 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
8912 (ctf_psymtab::read_symtab): Call expand_psymtab.
8913
077cbab2
TT
89142020-01-26 Tom Tromey <tom@tromey.com>
8915
8916 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
8917 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
8918 messages.
8919 * mdebugread.c (mdebug_read_symtab): Remove prints.
8920 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
8921 assert.
8922 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
8923
891813be
TT
89242020-01-26 Tom Tromey <tom@tromey.com>
8925
8926 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
8927 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
8928 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
8929 legacy_symtab.
8930 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
8931 * psymtab.c (psymtab_to_symtab): Call method.
8932 (dump_psymtab): Update.
8933 * psympriv.h (struct partial_symtab): Add virtual destructor.
8934 <read_symtab>: New method.
8935 (struct legacy_symtab): New.
8936 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
8937 (struct pst_map) <pst>: Now a legacy_psymtab.
8938 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
8939 (new_psymtab): Use legacy_psymtab.
8940 * dwarf2read.h (struct dwarf2_psymtab): New.
8941 (struct dwarf2_per_cu_data) <psymtab>: Use it.
8942 * dwarf2read.c (dwarf2_create_include_psymtab)
8943 (dwarf2_build_include_psymtabs, create_type_unit_group)
8944 (create_partial_symtab, process_psymtab_comp_unit_reader)
8945 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
8946 (set_partial_user): Use dwarf2_psymtab.
8947 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
8948 (psymtab_to_symtab_1, process_full_comp_unit)
8949 (process_full_type_unit, dwarf2_ranges_read)
8950 (dwarf2_get_pc_bounds, psymtab_include_file_name)
8951 (dwarf_decode_lines): Use dwarf2_psymtab.
8952 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
8953 (add_address_entry_worker, write_one_signatured_type)
8954 (recursively_count_psymbols, recursively_write_psymbols)
8955 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
8956 (write_debug_names): Likewise.
8957 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
8958 <pst>: Now a legacy_psymtab.
8959 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
8960 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
8961 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
8962 * ctfread.c (struct ctf_psymtab): New.
8963 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
8964 ctf_psymtab.
8965 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
8966 (create_partial_symtab): Return a ctf_psymtab.
8967 (scan_partial_symbols): Update.
8968
c3693a1d
TT
89692020-01-26 Tom Tromey <tom@tromey.com>
8970
8971 * xcoffread.c (xcoff_start_psymtab): Use new.
8972 * psymtab.c (partial_symtab::partial_symtab): New constructor,
8973 renamed from start_psymtab_common.
8974 * psympriv.h (struct partial_symtab): Add new constructor.
8975 (start_psymtab_common): Don't declare.
8976 * mdebugread.c (parse_partial_symbols): Use new.
8977 * dwarf2read.c (create_partial_symtab): Use new.
8978 * dbxread.c (start_psymtab): Use new.
8979 * ctfread.c (create_partial_symtab): Use new.
8980
32caafd0
TT
89812020-01-26 Tom Tromey <tom@tromey.com>
8982
8983 * xcoffread.c (xcoff_end_psymtab): Use new.
8984 * psymtab.c (start_psymtab_common): Use new.
8985 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
8986 Update.
8987 * psympriv.h (struct partial_symtab): Add parameters to
8988 constructor. Don't inline.
8989 (allocate_psymtab): Don't declare.
8990 * mdebugread.c (new_psymtab): Use new.
8991 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
8992 * dbxread.c (dbx_end_psymtab): Use new.
8993
abaa2f23
TT
89942020-01-26 Tom Tromey <tom@tromey.com>
8995
8996 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
8997 allocate_psymtab. Update documentation.
8998 * psymtab.c (psymtab_storage::install_psymtab): Rename from
8999 allocate_psymtab. Do not use new.
9000 (allocate_psymtab): Use new. Update.
9001
6d94535f
TT
90022020-01-26 Tom Tromey <tom@tromey.com>
9003
9004 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
9005 * psymtab.c (psym_print_stats): Update.
9006 * psympriv.h (struct partial_symtab) <readin,
9007 psymtabs_addrmap_supported, anonymous>: Now bool.
9008 * mdebugread.c (psymtab_to_symtab_1): Update.
9009 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
9010 (build_type_psymtabs_reader, psymtab_to_symtab_1)
9011 (process_full_comp_unit, process_full_type_unit): Update.
9012 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
9013 * ctfread.c (psymtab_to_symtab): Update.
9014
6f17252b
TT
90152020-01-26 Tom Tromey <tom@tromey.com>
9016
9017 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
9018 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
9019 * psymtab.c (psymtab_storage): Delete psymtabs.
9020 (psymtab_storage::allocate_psymtab): Use new.
9021 (psymtab_storage::discard_psymtab): Use delete.
9022 * psympriv.h (struct partial_symtab): Add constructor and
9023 initializers.
9024
f6f1cebc
TT
90252020-01-26 Tom Tromey <tom@tromey.com>
9026
9027 * machoread.c: Do not include psympriv.h.
9028
e47e48f6
PW
90292020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9030
9031 * NEWS: Mention the new option and the set/show commands.
9032
a2fedca9
PW
90332020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9034
9035 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
9036 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
9037 (validate_exec_file): New variables, enums, functions.
9038 (exec_file_locate_attach, print_section_info): Style the filenames.
9039 (_initialize_exec): Install show_exec_file_mismatch_command and
9040 set_exec_file_mismatch_command.
9041 * gdbcore.h (validate_exec_file): Declare.
9042 * infcmd.c (attach_command): Call validate_exec_file.
9043 * remote.c ( remote_target::remote_add_inferior): Likewise.
9044
7ffa82e1
AB
90452020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9046
9047 * frame.c (find_frame_sal): Move call to get_next_frame into more
9048 inner scope.
9049 * inline-frame.c (inilne_state) <inline_state>: Update argument
9050 types.
9051 (inilne_state) <skipped_symbol>: Rename to...
9052 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
9053 (skip_inline_frames): Build vector of skipped symbols and use this
9054 to reate the inline_state.
9055 (inline_skipped_symbol): Add a comment and some assertions, fetch
9056 skipped symbol from the list.
9057
3d92a3e3
AB
90582020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9059
9060 * buildsym.c (lte_is_less_than): Delete.
9061 (buildsym_compunit::end_symtab_with_blockvector): Create local
9062 lambda function to sort line table entries, and use
9063 std::stable_sort instead of std::sort.
9064 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
9065 markers when looking for a previous line.
9066
94a72be7
AB
90672020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9068
9069 * dwarf2read.c (lnp_state_machine::record_line): Include
9070 end_sequence parameter in debug print out. Record the line if we
9071 are at an end_sequence marker even if it's not the start of a
9072 statement.
9073 * symmisc.c (maintenance_print_one_line_table): Print end of
9074 sequence markers with 'END' not '0'.
9075
53af73bf
PA
90762020-01-24 Pedro Alves <palves@redhat.com>
9077
9078 PR gdb/25410
9079 * thread.c (scoped_restore_current_thread::restore): Use
9080 switch_to_inferior_no_thread.
9081 * exec.c: Include "progspace-and-thread.h".
9082 (add_target_sections, remove_target_sections):
9083 scoped_restore_current_pspace_and_thread instead of
9084 scoped_restore_current_thread.
9085 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
9086 and aspace to the inferior before calling clone_program_space.
9087 Remove stale comment.
9088
3050c6f4
CB
90892020-01-24 Christian Biesinger <cbiesinger@google.com>
9090
9091 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
9092 (arm_netbsd_nat_target::fetch_registers): ...this.
9093 (arm_nbsd_nat_target::store_registers): Rename to...
9094 (arm_netbsd_nat_target::store_registers): ...this.
9095
73685c7e
CB
90962020-01-24 Christian Biesinger <cbiesinger@google.com>
9097
9098 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
9099 register_t.
9100
89203d40
CB
91012020-01-24 Christian Biesinger <cbiesinger@google.com>
9102
9103 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
9104 Update comment.
9105 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
9106 Likewise.
9107 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
9108 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
9109 the correct replacement (iterate_over_regset_sections).
9110 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
9111 Update comment.
9112
1ba1ac88
AB
91132020-01-24 Graham Markall <graham.markall@embecosm.com>
9114
9115 PR gdb/23718
9116 * gdb/python/python.c (execute_gdb_command): Call
9117 async_enable_stdin in catch block.
9118
f3364a6d
AB
91192020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9120
9121 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
9122 SWITCH_THRU_ALL_UIS.
9123
733d0a67
AB
91242020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9125
9126 PR tui/9765
9127 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
9128 comment, add extra parameter, and update to store previous symbol
9129 when appropriate.
9130 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
9131 add extra parameter.
9132 * tui/tui-disasm.c (tui_disassemble): Update header comment,
9133 remove unneeded parameter, add try/catch around gdb_print_insn,
9134 rewrite to add items to asm_lines vector.
9135 (tui_find_backward_disassembly_start_address): New function.
9136 (tui_find_disassembly_address): Updated throughout.
9137 (tui_disasm_window::set_contents): Update for changes to
9138 tui_disassemble.
9139 (tui_disasm_window::do_scroll_vertical): No need to adjust the
9140 number of lines to scroll.
9141
b3b3bada
SM
91422020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
9143
9144 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
9145 (SECT_OFF_DATA): Likewise.
9146 (SECT_OFF_RODATA): Likewise.
9147 (SECT_OFF_TEXT): Likewise.
9148 (SECT_OFF_BSS): Likewise.
9149 (struct objfile) <text_section_offset, data_section_offset>: New
9150 methods.
9151 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
9152 objfile::text_section_offset.
9153 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
9154 * coffread.c (coff_symtab_read): Likewise.
9155 (enter_linenos): Likewise.
9156 (process_coff_symbol): Likewise.
9157 * ctfread.c (get_objfile_text_range): Likewise.
9158 * dtrace-probe.c (dtrace_probe::get_relocated_address):
9159 Use objfile::data_section_offset.
9160 * dwarf2-frame.c (execute_cfa_program): Use
9161 objfile::text_section_offset.
9162 (dwarf2_frame_find_fde): Likewise.
9163 * dwarf2read.c (create_addrmap_from_index): Likewise.
9164 (create_addrmap_from_aranges): Likewise.
9165 (dw2_find_pc_sect_compunit_symtab): Likewise.
9166 (process_psymtab_comp_unit_reader): Likewise.
9167 (add_partial_symbol): Likewise.
9168 (add_partial_subprogram): Likewise.
9169 (process_full_comp_unit): Likewise.
9170 (read_file_scope): Likewise.
9171 (read_func_scope): Likewise.
9172 (read_lexical_block_scope): Likewise.
9173 (read_call_site_scope): Likewise.
9174 (dwarf2_rnglists_process): Likewise.
9175 (dwarf2_ranges_process): Likewise.
9176 (dwarf2_ranges_read): Likewise.
9177 (dwarf_decode_lines_1): Likewise.
9178 (new_symbol): Likewise.
9179 (dwarf2_fetch_die_loc_sect_off): Likewise.
9180 (dwarf2_per_cu_text_offset): Likewise.
9181 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
9182 * hppa-tdep.c (read_unwind_info): Likewise.
9183 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
9184 * psympriv.h (struct partial_symtab): Likewise.
9185 * psymtab.c (find_pc_sect_psymtab): Likewise.
9186 * solib-svr4.c (enable_break): Likewise.
9187 * stap-probe.c (relocate_address): Use
9188 objfile::data_section_offset.
9189 * xcoffread.c (enter_line_range): Use
9190 objfile::text_section_offset.
9191 (read_xcoff_symtab): Likewise.
9192
ab53f382
SM
91932020-01-23 Simon Marchi <simon.marchi@efficios.com>
9194
9195 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
9196 declaration to narrower scopes.
9197
e7eee665
SM
91982020-01-23 Simon Marchi <simon.marchi@efficios.com>
9199
9200 * darwin-nat.h (struct darwin_exception_msg, enum
9201 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
9202 Move up.
9203 (class darwin_nat_target) <wait_1, check_new_threads,
9204 decode_exception_message, decode_message, stop_inferior,
9205 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
9206 * darwin-nat.c (darwin_check_new_threads): Rename to...
9207 (darwin_nat_target::check_new_threads): ... this.
9208 (darwin_suspend_inferior_it): Remove.
9209 (darwin_decode_exception_message): Rename to...
9210 (darwin_nat_target::decode_exception_message): ... this.
9211 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
9212 (darwin_decode_message): Rename to...
9213 (darwin_nat_target::decode_message): ... this.
9214 (cancel_breakpoint): Rename to...
9215 (darwin_nat_target::cancel_breakpoint): ... this.
9216 (darwin_wait): Rename to...
9217 (darwin_nat_target::wait_1): ... this. Use range-based for loop
9218 instead of iterate_over_inferiors.
9219 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
9220 (darwin_stop_inferior): Rename to...
9221 (darwin_nat_target::stop_inferior): ... this.
9222 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
9223 (darwin_init_thread_list): Rename to...
9224 (darwin_nat_target::init_thread_list): ... this.
9225 (darwin_ptrace_him): Rename to...
9226 (darwin_nat_target::ptrace_him): ... this.
9227 (darwin_nat_target::create_inferior): Pass lambda function to
9228 fork_inferior.
9229 (darwin_nat_target::detach): Call stop_inferior instead of
9230 darwin_stop_inferior.
9231 * fork-inferior.h (fork_inferior): Change init_trace_fun
9232 parameter to gdb::function_view.
9233 * fork-inferior.c (fork_inferior): Likewise.
9234
c162ed3e
HD
92352020-01-23 Hannes Domani <ssbssa@yahoo.de>
9236
9237 * i386-cygwin-tdep.c (core_process_module_section): Update.
9238 * windows-nat.c (struct lm_info_windows): Add text_offset.
9239 (windows_xfer_shared_libraries): Update.
9240 * windows-tdep.c (windows_xfer_shared_library):
9241 Add text_offset_cached argument.
9242 * windows-tdep.h (windows_xfer_shared_library): Update.
9243
a1237872
SM
92442020-01-21 Simon Marchi <simon.marchi@efficios.com>
9245
9246 * gdbarch.sh: Add declaration for _initialize_gdbarch.
9247
b3ee6dd9
SM
92482020-01-21 Simon Marchi <simon.marchi@efficios.com>
9249
9250 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
9251 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
9252 replace with range-based for.
9253 (gdbsim_interrupt_inferior): Remove.
9254 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
9255 with a range-based for. Inline code from
9256 gdbsim_interrupt_inferior.
9257
f9fac3c8
SM
92582020-01-21 Simon Marchi <simon.marchi@efficios.com>
9259
9260 * infrun.c (proceed): Fix indentation.
9261
f6474de9
TT
92622020-01-21 Tom Tromey <tromey@adacore.com>
9263
9264 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
9265 * python/python.c (python_extension_ops): Update.
9266 (gdbpy_colorize): New function.
9267 * python/lib/gdb/__init__.py (colorize): New function.
9268 * extension.h (ext_lang_colorize): Declare.
9269 * extension.c (ext_lang_colorize): New function.
9270 * extension-priv.h (struct extension_language_ops) <colorize>: New
9271 member.
9272 * cli/cli-style.c (_initialize_cli_style): Update help text.
9273
f0c702d4
LM
92742020-01-21 Luis Machado <luis.machado@linaro.org>
9275
9276 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
9277 <cond>: Change type to bool.
9278 (aarch64_displaced_step_b_cond): Update cond to use bool type.
9279 (aarch64_displaced_step_cb): Likewise.
9280 (aarch64_displaced_step_tb): Likewise.
9281
1ab139e5
LM
92822020-01-21 Luis Machado <luis.machado@linaro.org>
9283
9284 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
9285 output.
9286
0c271889
LM
92872020-01-21 Luis Machado <luis.machado@linaro.org>
9288
9289 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
9290 <pc_adjust>: Adjust the documentation.
9291 (aarch64_displaced_step_fixup): Check if PC really moved before
9292 adjusting it.
9293
4d89c1c7
TT
92942020-01-19 Tom Tromey <tom@tromey.com>
9295
9296 * disasm.c (~gdb_disassembler): New destructor.
9297 (gdb_buffered_insn_length): Call disassemble_free_target.
9298 * disasm.h (class gdb_disassembler): Declare destructor. Use
9299 DISABLE_COPY_AND_ASSIGN.
9300
c0ab21c2
TT
93012020-01-19 Tom Tromey <tom@tromey.com>
9302
9303 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
9304 (die_reader_func_ftype): Remove.
9305 (cutu_reader): New class.
9306 (dw2_get_file_names_reader): Remove "data" parameter.
9307 (dw2_get_file_names): Use cutu_reader.
9308 (create_debug_type_hash_table): Update.
9309 (read_cutu_die_from_dwo): Update comment.
9310 (lookup_dwo_unit): Add dwo_name parameter.
9311 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
9312 die_reader_func_ftype and data parameters.
9313 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
9314 Remove die_reader_func_ftype and data parameters.
9315 (~cutu_reader): New; from init_cutu_and_read_dies.
9316 (cutu_reader::cutu_reader): Rename from
9317 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
9318 and data parameters.
9319 (init_cutu_and_read_dies_simple): Remove.
9320 (struct process_psymtab_comp_unit_data): Remove.
9321 (process_psymtab_comp_unit_reader): Remove data parameter; add
9322 want_partial_unit and pretend_language parameters.
9323 (process_psymtab_comp_unit): Use cutu_reader.
9324 (build_type_psymtabs_reader): Remove data parameter.
9325 (build_type_psymtabs_1): Use cutu_reader.
9326 (process_skeletonless_type_unit): Likewise.
9327 (load_partial_comp_unit_reader): Remove.
9328 (load_partial_comp_unit): Use cutu_reader.
9329 (load_full_comp_unit_reader): Remove.
9330 (load_full_comp_unit): Use cutu_reader.
9331 (struct create_dwo_cu_data): Remove.
9332 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
9333 dwo_unit parameters.
9334 (create_cus_hash_table): Use cutu_reader.
9335 (struct dwarf2_read_addr_index_data): Remove.
9336 (dwarf2_read_addr_index_reader): Remove.
9337 (dwarf2_read_addr_index): Use cutu_reader.
9338 (read_signatured_type_reader): Remove.
9339 (read_signatured_type): Use cutu_reader.
9340
45bbae5c
TT
93412020-01-19 Tom Tromey <tom@tromey.com>
9342
9343 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
9344 * tui/tui-wingeneral.h (class tui_suppress_output): New.
9345 (tui_wrefresh): Declare.
9346 * tui/tui-wingeneral.c (suppress_output): New global.
9347 (tui_suppress_output, ~tui_suppress_output): New constructor and
9348 destructor.
9349 (tui_wrefresh): New function.
9350 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
9351 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
9352 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
9353 method.
9354 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
9355 tui_wrefresh.
9356 (tui_data_window::no_refresh): New method.
9357 (tui_data_item_window::refresh_window): Call tui_wrefresh.
9358 (tui_reg_command): Use tui_suppress_output
9359 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
9360 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
9361 method.
9362 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
9363
4f13c1c0
TT
93642020-01-19 Tom Tromey <tom@tromey.com>
9365
9366 * tui/tui-winsource.c (tui_update_source_windows_with_line):
9367 Handle case where symtab is null.
9368
fa47e446
SM
93692020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
9370
9371 * linux-fork.c (one_fork_p): Simplify.
9372
26f42329
SM
93732020-01-17 Simon Marchi <simon.marchi@efficios.com>
9374
9375 * top.c (struct qt_args): Remove.
9376 (kill_or_detach): Change return type to void, replace `void *`
9377 parameter with a proper one.
9378 (print_inferior_quit_action): Likewise.
9379 (quit_confirm): Use range-based for loop to iterate over inferiors.
9380 (quit_force): Likewise.
9381
a9ac81b1
SM
93822020-01-17 Simon Marchi <simon.marchi@efficios.com>
9383
9384 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
9385 `void *` parameter with proper parameters.
9386 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
9387 (print_one_inferior): Change return type to void, replace `void *`
9388 parameter with proper parameters.
9389 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
9390 inferiors.
9391 (get_other_inferior): Remove.
9392 (mi_cmd_remove_inferior): Use range-based loop to iterate over
9393 inferiors.
9394
788eca49
SM
93952020-01-17 Simon Marchi <simon.marchi@efficios.com>
9396
9397 * mi/mi-interp.c (report_initial_inferior): Remove.
9398 (mi_interp::init): Use range-based for to iterate over inferiors.
9399
d9bc85b6
SM
94002020-01-17 Simon Marchi <simon.marchi@efficios.com>
9401
9402 * python/py-inferior.c (build_inferior_list): Remove.
9403 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
9404
40c94099
CB
94052020-01-16 Christian Biesinger <cbiesinger@google.com>
9406
9407 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
9408 (btrace_stitch_trace): Likewise.
9409 * charset.c (intermediate_encoding): Likewise (vaild).
9410 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
9411 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
9412 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
9413
e0cdfe3c
HD
94142020-01-16 Hannes Domani <ssbssa@yahoo.de>
9415
9416 * windows-tdep.c (windows_get_tlb_type):
9417 Add rtl_user_process_parameters type.
9418
790f1718 94192020-01-16 Pedro Alves <palves@redhat.com>
aac66a4c 9420 Norbert Lange <nolange79@gmail.com>
790f1718
PA
9421
9422 PR build/24805
9423 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
9424 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
9425 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
9426 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
9427 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
9428 (ps_plog): Redeclare exported functions with default visibility.
9429
3112ed97
NA
94302020-01-16 Nitika Achra <Nitika.Achra@amd.com>
9431
9432 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
9433 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
9434
8dc3273e
SM
94352020-01-15 Simon Marchi <simon.marchi@efficios.com>
9436
9437 * infcmd.c (post_create_inferior): Use get_thread_regcache
9438 instead of get_current_regcache.
9439
ff47f4f0
TT
94402020-01-14 Tom Tromey <tom@tromey.com>
9441
9442 PR symtab/12535:
9443 * python/python.c (gdbpy_decode_line): Treat empty string the same
9444 as no argument.
9445
975f45b7
TT
94462020-01-14 Tom Tromey <tom@tromey.com>
9447
9448 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
9449
25e57356
TT
94502020-01-14 Tom Tromey <tom@tromey.com>
9451
9452 * nat/linux-btrace.c: Don't include <config.h>.
9453 * nat/linux-ptrace.c: Don't include <config.h>.
9454 * nat/x86-linux-dregs.c: Don't include <config.h>.
9455
05ea2a05
TT
94562020-01-14 Tom Tromey <tom@tromey.com>
9457
9458 * configure: Rebuild.
9459 * configure.ac: Move many checks to ../gdbsupport/common.m4.
9460
01027315
TT
94612020-01-14 Tom Tromey <tom@tromey.com>
9462
9463 * nat/x86-linux-dregs.c: Include configh.h.
9464 * nat/linux-ptrace.c: Include configh.h.
9465 * nat/linux-btrace.c: Include configh.h.
9466 * defs.h: Include config.h, bfd.h.
9467 * configure.ac: Don't source common.host.
9468 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
9469 * configure: Rebuild.
9470 * acinclude.m4: Update path.
9471 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
9472 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
9473 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
9474 (CLIBS): Add LIBSUPPORT.
9475 (CDEPS): Likewise.
9476 (COMMON_SFILES): Remove gdbsupport files.
9477 (HFILES_NO_SRCDIR): Likewise.
9478 (stamp-version): Update path to create-version.sh.
9479 (ALLDEPFILES): Remove gdbsupport files.
9480
b2ceabe8
TT
94812020-01-14 Tom Tromey <tom@tromey.com>
9482
9483 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
9484 USE_WIN32API when needed.
9485 * configure.ac (USE_WIN32API): Don't define.
9486 (WIN32LIBS): Use WIN32APILIBS.
9487 * configure: Rebuild.
9488
25c51f71
TT
94892020-01-14 Tom Tromey <tom@tromey.com>
9490
9491 * configure: Rebuild.
9492 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
9493
717c684d
BE
94942020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
9495
9496 * skip.c (skip_function_command): Make skip w/o arguments use the
9497 name of the inlined function if pc is inside any inlined function.
9498
7da6a5b9
LM
94992020-01-14 Luis Machado <luis.machado@linaro.org>
9500
9501 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
9502 * infrun.c (resume_1): Likewise.
9503 (handle_inferior_event): Remove stale comment.
9504 * linux-nat.c (linux_nat_target::resume): Update comments.
9505 (save_stop_reason): Likewise.
9506 (linux_nat_filter_event): Likewise.
9507 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
9508
44e4c775
AB
95092020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
9510
9511 * elfread.c (record_minimal_symbol): Set section index to 0 for
9512 non-allocatable sections.
9513
18a8505e
AT
9514
95152020-01-13 Ali Tamur <tamur@google.com>
9516
9517 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
9518 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
9519 to gdb::optional. Update comments.
9520 (dwo_file): Update comments.
9521 (read_attribute): Update API to take an additional out parameter,
9522 need_reprocess. This is used to mark attributes that need other
9523 attributes (e.g. str_offsets_base) for correct computation which may not
9524 have been read yet.
9525 (read_attribute_reprocess): New function declaration.
9526 (read_addr_index): Likewise.
9527 (read_dwo_str_index): Likewise.
9528 (read_stub_str_index): Likewise.
9529 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
9530 (lookup_addr_base): New function definition.
9531 (lookup_ranges_base): Likewise.
9532 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
9533 lookup_ranges_base.
9534 (init_cutu_and_read_dies): Update comments.
9535 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
9536 unit. This is used to inherit parent's str_offsets_base and addr_base.
9537 Update comments.
9538 (init_cutu_and_read_dies_simple): Reflect API changes.
9539 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
9540 (create_cus_hash_table): Change API to take parent compile unit.
9541 Reflect API changes.
9542 (open_and_init_dwo_file): Reflect API changes.
9543 (dwarf2_get_pc_bounds): Update comments.
9544 (dwarf2_record_block_ranges): Likewise.
9545 (read_full_die_1): Change implementation to reprocess attributes that
9546 need str_offsets_base and addr_base.
9547 (partial_die_info::read): Likewise.
9548 (read_attribute_reprocess): New function definition.
9549 (read_attribute_value): Change API to take an additional out parameter,
9550 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
9551 when a non-dwo compile unit has index based attributes.
9552 (read_attribute): Reflect API changes.
9553 (read_addr_index_1): Reflect API changes. Update comments.
9554 (dwarf2_read_addr_index_data): Reflect API changes.
9555 (dwarf2_read_addr_index): Likewise.
9556 (read_str_index): Change API and implementation. This becomes a helper
9557 to be used by the new string index related methods. Update error
9558 message and comments.
9559 (read_dwo_str_index): New function definition.
9560 (read_stub_str_index): Likewise.
9561 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
9562 * symfile.h (dwarf2_debug_sections): Likewise.
9563 * xcoffread.c (dwarf2_debug_sections): Likewise.
9564
0cac9354
SM
95652020-01-13 Simon Marchi <simon.marchi@efficios.com>
9566
9567 * gdbcore.h (struct core_fns) <core_read_registers>: Change
9568 core_reg_sect type to gdb_byte *.
9569 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
9570 * cris-tdep.c (fetch_core_registers): Likewise.
9571 * corelow.c (core_target::get_core_register_section): Change
9572 type of `contents` to gdb::byte_vector.
9573
9a6d629c
AB
95742020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
9575
9576 * tui/tui-wingeneral.c (box_win): Position the title in the center
9577 of the border.
9578
d8b2f9e3
SM
95792020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
9580
9581 * corelow.c (core_target::get_core_register_section): Use
9582 std::vector instead of alloca.
9583
bb564c58
SM
95842020-01-13 Simon Marchi <simon.marchi@efficios.com>
9585
9586 * warning.m4: Add -Wmissing-declarations to build_warnings.
9587 * configure: Re-generate.
9588
6b366111
SM
95892020-01-13 Simon Marchi <simon.marchi@efficios.com>
9590
9591 * python/python.c (init__gdb_module): Add declaration.
9592
6c265988
SM
95932020-01-13 Simon Marchi <simon.marchi@efficios.com>
9594
9595 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
9596 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
9597 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
9598 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
9599 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
9600 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
9601 * ada-exp.y (_initialize_ada_exp): Add declaration.
9602 * ada-lang.c (_initialize_ada_language): Add declaration.
9603 * ada-tasks.c (_initialize_tasks): Add declaration.
9604 * agent.c (_initialize_agent): Add declaration.
9605 * aix-thread.c (_initialize_aix_thread): Add declaration.
9606 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
9607 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
9608 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
9609 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
9610 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
9611 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
9612 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
9613 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
9614 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
9615 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
9616 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
9617 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
9618 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
9619 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
9620 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
9621 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
9622 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
9623 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
9624 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
9625 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
9626 * annotate.c (_initialize_annotate): Add declaration.
9627 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
9628 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
9629 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
9630 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
9631 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
9632 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
9633 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
9634 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
9635 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
9636 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
9637 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
9638 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
9639 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
9640 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
9641 * auto-load.c (_initialize_auto_load): Add declaration.
9642 * auxv.c (_initialize_auxv): Add declaration.
9643 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
9644 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
9645 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
9646 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
9647 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
9648 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
9649 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
9650 * breakpoint.c (_initialize_breakpoint): Add declaration.
9651 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
9652 * btrace.c (_initialize_btrace): Add declaration.
9653 * charset.c (_initialize_charset): Add declaration.
9654 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
9655 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
9656 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
9657 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
9658 * cli/cli-script.c (_initialize_cli_script): Add declaration.
9659 * cli/cli-style.c (_initialize_cli_style): Add declaration.
9660 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
9661 * coffread.c (_initialize_coffread): Add declaration.
9662 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
9663 * compile/compile.c (_initialize_compile): Add declaration.
9664 * complaints.c (_initialize_complaints): Add declaration.
9665 * completer.c (_initialize_completer): Add declaration.
9666 * copying.c (_initialize_copying): Add declaration.
9667 * corefile.c (_initialize_core): Add declaration.
9668 * corelow.c (_initialize_corelow): Add declaration.
9669 * cp-abi.c (_initialize_cp_abi): Add declaration.
9670 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
9671 * cp-support.c (_initialize_cp_support): Add declaration.
9672 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
9673 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
9674 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
9675 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
9676 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
9677 * ctfread.c (_initialize_ctfread): Add declaration.
9678 * d-lang.c (_initialize_d_language): Add declaration.
9679 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
9680 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
9681 * dbxread.c (_initialize_dbxread): Add declaration.
9682 * dcache.c (_initialize_dcache): Add declaration.
9683 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
9684 * disasm.c (_initialize_disasm): Add declaration.
9685 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
9686 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
9687 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
9688 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
9689 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
9690 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
9691 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
9692 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
9693 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
9694 * elfread.c (_initialize_elfread): Add declaration.
9695 * exec.c (_initialize_exec): Add declaration.
9696 * extension.c (_initialize_extension): Add declaration.
9697 * f-lang.c (_initialize_f_language): Add declaration.
9698 * f-valprint.c (_initialize_f_valprint): Add declaration.
9699 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
9700 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
9701 * filesystem.c (_initialize_filesystem): Add declaration.
9702 * findcmd.c (_initialize_mem_search): Add declaration.
9703 * findvar.c (_initialize_findvar): Add declaration.
9704 * fork-child.c (_initialize_fork_child): Add declaration.
9705 * frame-base.c (_initialize_frame_base): Add declaration.
9706 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
9707 * frame.c (_initialize_frame): Add declaration.
9708 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
9709 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
9710 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
9711 * gcore.c (_initialize_gcore): Add declaration.
9712 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
9713 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
9714 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
9715 * gdbarch.c (_initialize_gdbarch): Add declaration.
9716 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
9717 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
9718 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
9719 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
9720 * go-lang.c (_initialize_go_language): Add declaration.
9721 * go32-nat.c (_initialize_go32_nat): Add declaration.
9722 * guile/guile.c (_initialize_guile): Add declaration.
9723 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
9724 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
9725 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
9726 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
9727 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
9728 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
9729 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
9730 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
9731 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
9732 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
9733 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
9734 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
9735 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
9736 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
9737 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
9738 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
9739 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
9740 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
9741 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
9742 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
9743 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
9744 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
9745 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
9746 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
9747 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
9748 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
9749 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
9750 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
9751 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
9752 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
9753 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
9754 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
9755 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
9756 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
9757 * infcall.c (_initialize_infcall): Add declaration.
9758 * infcmd.c (_initialize_infcmd): Add declaration.
9759 * inflow.c (_initialize_inflow): Add declaration.
9760 * infrun.c (_initialize_infrun): Add declaration.
9761 * interps.c (_initialize_interpreter): Add declaration.
9762 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
9763 * jit.c (_initialize_jit): Add declaration.
9764 * language.c (_initialize_language): Add declaration.
9765 * linux-fork.c (_initialize_linux_fork): Add declaration.
9766 * linux-nat.c (_initialize_linux_nat): Add declaration.
9767 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
9768 * linux-thread-db.c (_initialize_thread_db): Add declaration.
9769 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
9770 * m2-lang.c (_initialize_m2_language): Add declaration.
9771 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
9772 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
9773 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
9774 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
9775 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
9776 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
9777 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
9778 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
9779 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
9780 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
9781 * machoread.c (_initialize_machoread): Add declaration.
9782 * macrocmd.c (_initialize_macrocmd): Add declaration.
9783 * macroscope.c (_initialize_macroscope): Add declaration.
9784 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
9785 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
9786 * maint.c (_initialize_maint_cmds): Add declaration.
9787 * mdebugread.c (_initialize_mdebugread): Add declaration.
9788 * memattr.c (_initialize_mem): Add declaration.
9789 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
9790 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
9791 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
9792 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
9793 * mi/mi-main.c (_initialize_mi_main): Add declaration.
9794 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
9795 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
9796 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
9797 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
9798 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
9799 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
9800 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
9801 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
9802 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
9803 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
9804 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
9805 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
9806 * mipsread.c (_initialize_mipsread): Add declaration.
9807 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
9808 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
9809 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
9810 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
9811 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
9812 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
9813 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
9814 * nto-procfs.c (_initialize_procfs): Add declaration.
9815 * objc-lang.c (_initialize_objc_language): Add declaration.
9816 * observable.c (_initialize_observer): Add declaration.
9817 * opencl-lang.c (_initialize_opencl_language): Add declaration.
9818 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
9819 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
9820 * osabi.c (_initialize_gdb_osabi): Add declaration.
9821 * osdata.c (_initialize_osdata): Add declaration.
9822 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
9823 * parse.c (_initialize_parse): Add declaration.
9824 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
9825 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
9826 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
9827 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
9828 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
9829 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
9830 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
9831 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
9832 * printcmd.c (_initialize_printcmd): Add declaration.
9833 * probe.c (_initialize_probe): Add declaration.
9834 * proc-api.c (_initialize_proc_api): Add declaration.
9835 * proc-events.c (_initialize_proc_events): Add declaration.
9836 * proc-service.c (_initialize_proc_service): Add declaration.
9837 * procfs.c (_initialize_procfs): Add declaration.
9838 * producer.c (_initialize_producer): Add declaration.
9839 * psymtab.c (_initialize_psymtab): Add declaration.
9840 * python/python.c (_initialize_python): Add declaration.
9841 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
9842 * record-btrace.c (_initialize_record_btrace): Add declaration.
9843 * record-full.c (_initialize_record_full): Add declaration.
9844 * record.c (_initialize_record): Add declaration.
9845 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
9846 * regcache.c (_initialize_regcache): Add declaration.
9847 * reggroups.c (_initialize_reggroup): Add declaration.
9848 * remote-notif.c (_initialize_notif): Add declaration.
9849 * remote-sim.c (_initialize_remote_sim): Add declaration.
9850 * remote.c (_initialize_remote): Add declaration.
9851 * reverse.c (_initialize_reverse): Add declaration.
9852 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
9853 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
9854 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
9855 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
9856 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
9857 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
9858 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
9859 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
9860 Add declaration.
9861 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
9862 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
9863 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
9864 * rust-exp.y (_initialize_rust_exp): Add declaration.
9865 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
9866 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
9867 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
9868 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
9869 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
9870 * score-tdep.c (_initialize_score_tdep): Add declaration.
9871 * ser-go32.c (_initialize_ser_dos): Add declaration.
9872 * ser-mingw.c (_initialize_ser_windows): Add declaration.
9873 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
9874 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
9875 * ser-uds.c (_initialize_ser_socket): Add declaration.
9876 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
9877 * serial.c (_initialize_serial): Add declaration.
9878 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
9879 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
9880 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
9881 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
9882 * skip.c (_initialize_step_skip): Add declaration.
9883 * sol-thread.c (_initialize_sol_thread): Add declaration.
9884 * solib-aix.c (_initialize_solib_aix): Add declaration.
9885 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
9886 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
9887 * solib-frv.c (_initialize_frv_solib): Add declaration.
9888 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
9889 * solib-target.c (_initialize_solib_target): Add declaration.
9890 * solib.c (_initialize_solib): Add declaration.
9891 * source-cache.c (_initialize_source_cache): Add declaration.
9892 * source.c (_initialize_source): Add declaration.
9893 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
9894 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
9895 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
9896 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
9897 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
9898 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
9899 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
9900 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
9901 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
9902 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
9903 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
9904 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
9905 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
9906 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
9907 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
9908 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
9909 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
9910 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
9911 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
9912 * stabsread.c (_initialize_stabsread): Add declaration.
9913 * stack.c (_initialize_stack): Add declaration.
9914 * stap-probe.c (_initialize_stap_probe): Add declaration.
9915 * std-regs.c (_initialize_frame_reg): Add declaration.
9916 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
9917 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
9918 * symfile.c (_initialize_symfile): Add declaration.
9919 * symmisc.c (_initialize_symmisc): Add declaration.
9920 * symtab.c (_initialize_symtab): Add declaration.
9921 * target.c (_initialize_target): Add declaration.
9922 * target-connection.c (_initialize_target_connection): Add
9923 declaration.
9924 * target-dcache.c (_initialize_target_dcache): Add declaration.
9925 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
9926 * thread.c (_initialize_thread): Add declaration.
9927 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
9928 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
9929 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
9930 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
9931 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
9932 * tracectf.c (_initialize_ctf): Add declaration.
9933 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
9934 * tracefile.c (_initialize_tracefile): Add declaration.
9935 * tracepoint.c (_initialize_tracepoint): Add declaration.
9936 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
9937 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
9938 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
9939 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
9940 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
9941 * tui/tui-win.c (_initialize_tui_win): Add declaration.
9942 * tui/tui.c (_initialize_tui): Add declaration.
9943 * typeprint.c (_initialize_typeprint): Add declaration.
9944 * ui-style.c (_initialize_ui_style): Add declaration.
9945 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
9946 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
9947 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
9948 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
9949 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
9950 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
9951 * unittests/filtered_iterator-selftests.c
9952 (_initialize_filtered_iterator_selftests): Add declaration.
9953 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
9954 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
9955 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
9956 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
9957 * unittests/main-thread-selftests.c
9958 (_initialize_main_thread_selftests): Add declaration.
9959 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
9960 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
9961 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
9962 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
9963 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
9964 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
9965 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
9966 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
9967 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
9968 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
9969 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
9970 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
9971 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
9972 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
9973 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
9974 declaration.
9975 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
9976 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
9977 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
9978 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
9979 * user-regs.c (_initialize_user_regs): Add declaration.
9980 * utils.c (_initialize_utils): Add declaration.
9981 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
9982 * valops.c (_initialize_valops): Add declaration.
9983 * valprint.c (_initialize_valprint): Add declaration.
9984 * value.c (_initialize_values): Add declaration.
9985 * varobj.c (_initialize_varobj): Add declaration.
9986 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
9987 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
9988 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
9989 * windows-nat.c (_initialize_windows_nat): Add declaration.
9990 (_initialize_check_for_gdb_ini): Add declaration.
9991 (_initialize_loadable): Add declaration.
9992 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
9993 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
9994 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
9995 * xcoffread.c (_initialize_xcoffread): Add declaration.
9996 * xml-support.c (_initialize_xml_support): Add declaration.
9997 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
9998 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
9999 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
10000 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
10001
e2de1eec
SM
100022020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
10003
10004 * regformats/regdat.sh: Generate declaration for init function.
10005
e0037b4c
SM
100062020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
10007
10008 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
10009 up.
10010 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
10011 close_one_inferior>: New methods.
10012 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
10013 pass down target to find_inferior_pid.
10014 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
10015 Pass down target to find_inferior_ptid.
10016 (gdbsim_target::create_inferior): Pass down target to
10017 add_thread_silent.
10018 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
10019 target down to find_inferior_ptid and switch_to_thread.
10020 (gdbsim_target::close): Update to call close_one_inferior.
10021 (struct resume_data): Remove.
10022 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
10023 directly, rather than through a void pointer.
10024 (gdbsim_target::resume): Update to call resume_one_inferior.
10025
58920b5b
SM
100262020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
10027
10028 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
10029
4ec89149
PA
100302020-01-12 Pedro Alves <palves@redhat.com>
10031
10032 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
10033 directly for the current inferior instead of
10034 discard_all_inferiors.
10035 (discard_all_inferiors): Delete.
10036
7c392d1d
TT
100372020-01-11 Tom Tromey <tom@tromey.com>
10038
10039 * tui/tui-wingeneral.c (box_win): Check cli_styling.
10040 * tui/tui-winsource.c (tui_source_window_base::refill): Use
10041 deprecated_safe_get_selected_frame.
10042
d9ebdab7
TBA
100432020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10044
10045 * inferior.c (print_inferior): Switch inferior before printing it.
10046
f3c469b9
PA
100472020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
10048 Pedro Alves <palves@redhat.com>
10049
10050 * progspace-and-thread.c (switch_to_program_space_and_thread):
10051 Assert there's an inferior for PSPACE. Use
10052 switch_to_inferior_no_thread to switch the inferior too.
10053 * progspace.c (program_space::~program_space): Call
10054 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
10055 (program_space::free_all_objfiles): Don't call clear_symtab_users
10056 here.
10057 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
10058
65c574f6
PA
100592020-01-10 Pedro Alves <palves@redhat.com>
10060
10061 * NEWS: Mention multi-target debugging, "info connections", and
10062 "add-inferior -no-connection".
10063
2f4fcf00
PA
100642020-01-10 Pedro Alves <palves@redhat.com>
10065
10066 * infrun.c: Include "target-connection.h".
10067 (check_multi_target_resumption): New.
10068 (proceed): Call it.
10069 * target-connection.c (make_target_connection_string): Make
10070 extern.
10071 * target-connection.h (make_target_connection_string): Declare.
10072
121b3efd
PA
100732020-01-10 Pedro Alves <palves@redhat.com>
10074
10075 * Makefile.in (COMMON_SFILES): Add target-connection.c.
10076 * inferior.c (uiout_field_connection): New function.
10077 (print_inferior): Add new "connection-id" column.
10078 (add_inferior_command): Show connection number/string of added
10079 inferior.
10080 * process-stratum-target.h
10081 (process_stratum_target::connection_string): New virtual method.
10082 (process_stratum_target::connection_number): New field.
10083 * remote.c (remote_target::connection_string): New override.
10084 * target-connection.c: New file.
10085 * target-connection.h: New file.
10086 * target.c (decref_target): Remove process_stratum targets from
10087 the connection list.
10088 (target_stack::push): Add process_stratum targets to the
10089 connection list.
10090
4f837581
PA
100912020-01-10 Pedro Alves <palves@redhat.com>
10092
10093 Revert:
10094 2016-04-12 Pedro Alves <palves@redhat.com>
10095 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
10096 Remove references to name.
10097 * serial.h (struct serial) <name>: Delete.
10098
f4ec508e
PA
100992020-01-10 Pedro Alves <palves@redhat.com>
10100
10101 * gdbarch-selftests.c (register_to_value_test): Remove "target
10102 already pushed" check.
10103
5b6d1e4f
PA
101042020-01-10 Pedro Alves <palves@redhat.com>
10105 John Baldwin <jhb@FreeBSD.org>
10106
10107 * aarch64-linux-nat.c
10108 (aarch64_linux_nat_target::thread_architecture): Adjust.
10109 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
10110 (task_command_1): Likewise.
10111 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
10112 (aix_thread_target::wait, aix_thread_target::fetch_registers)
10113 (aix_thread_target::store_registers)
10114 (aix_thread_target::thread_alive): Adjust.
10115 * amd64-fbsd-tdep.c: Include "inferior.h".
10116 (amd64fbsd_get_thread_local_address): Pass down target.
10117 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
10118 thread's gdbarch instead of target_gdbarch.
10119 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
10120 get_last_target_status.
10121 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
10122 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
10123 inferiors.
10124 (update_inserted_breakpoint_locations): Skip if inferiors with no
10125 execution.
10126 (update_global_location_list): When handling moribund locations,
10127 find representative inferior for location's pspace, and use thread
10128 count of its process_stratum target.
10129 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
10130 * bsd-uthread.c (bsd_uthread_target::wait): Use
10131 as_process_stratum_target and adjust thread_change_ptid and
10132 add_thread calls.
10133 (bsd_uthread_target::update_thread_list): Use
10134 as_process_stratum_target and adjust find_thread_ptid,
10135 thread_change_ptid and add_thread calls.
10136 * btrace.c (maint_btrace_packet_history_cmd): Adjust
10137 find_thread_ptid call.
10138 * corelow.c (add_to_thread_list): Adjust add_thread call.
10139 (core_target_open): Adjust add_thread_silent and thread_count
10140 calls.
10141 (core_target::pid_to_str): Adjust find_inferior_ptid call.
10142 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
10143 * event-top.c (async_disconnect): Pop targets from all inferiors.
10144 * exec.c (add_target_sections): Push exec target on all inferiors
10145 sharing the program space.
10146 (remove_target_sections): Remove the exec target from all
10147 inferiors sharing the program space.
10148 (exec_on_vfork): New.
10149 * exec.h (exec_on_vfork): Declare.
10150 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
10151 Pass it down.
10152 (fbsd_nat_target::update_thread_list): Adjust.
10153 (fbsd_nat_target::resume): Adjust.
10154 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
10155 down.
10156 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
10157 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
10158 get_thread_arch_regcache call.
10159 * fork-child.c (gdb_startup_inferior): Pass target down to
10160 startup_inferior and set_executing.
10161 * gdbthread.h (struct process_stratum_target): Forward declare.
10162 (add_thread, add_thread_silent, add_thread_with_info)
10163 (in_thread_list): Add process_stratum_target parameter.
10164 (find_thread_ptid(inferior*, ptid_t)): New overload.
10165 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
10166 parameter.
10167 (all_threads()): Delete overload.
10168 (all_threads, all_non_exited_threads): Add process_stratum_target
10169 parameter.
10170 (all_threads_safe): Use brace initialization.
10171 (thread_count): Add process_stratum_target parameter.
10172 (set_resumed, set_running, set_stop_requested, set_executing)
10173 (threads_are_executing, finish_thread_state): Add
10174 process_stratum_target parameter.
10175 (switch_to_thread): Use is_current_thread.
10176 * i386-fbsd-tdep.c: Include "inferior.h".
10177 (i386fbsd_get_thread_local_address): Pass down target.
10178 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
10179 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
10180 have_inferiors check.
10181 * inf-ptrace.c (inf_ptrace_target::create_inferior)
10182 (inf_ptrace_target::attach): Adjust.
10183 * infcall.c (run_inferior_call): Adjust.
10184 * infcmd.c (run_command_1): Pass target to
10185 scoped_finish_thread_state.
10186 (proceed_thread_callback): Skip inferiors with no execution.
10187 (continue_command): Rename 'all_threads' local to avoid hiding
10188 'all_threads' function. Adjust get_last_target_status call.
10189 (prepare_one_step): Adjust set_running call.
10190 (signal_command): Use user_visible_resume_target. Compare thread
10191 pointers instead of inferior_ptid.
10192 (info_program_command): Adjust to pass down target.
10193 (attach_command): Mark target's 'thread_executing' flag.
10194 (stop_current_target_threads_ns): New, factored out from ...
10195 (interrupt_target_1): ... this. Switch inferior before making
10196 target calls.
10197 * inferior-iter.h
10198 (struct all_inferiors_iterator, struct all_inferiors_range)
10199 (struct all_inferiors_safe_range)
10200 (struct all_non_exited_inferiors_range): Filter on
10201 process_stratum_target too. Remove explicit.
10202 * inferior.c (inferior::inferior): Push dummy target on target
10203 stack.
10204 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
10205 Add process_stratum_target parameter, and pass it down.
10206 (have_live_inferiors): Adjust.
10207 (switch_to_inferior_and_push_target): New.
10208 (add_inferior_command, clone_inferior_command): Handle
10209 "-no-connection" parameter. Use
10210 switch_to_inferior_and_push_target.
10211 (_initialize_inferior): Mention "-no-connection" option in
10212 the help of "add-inferior" and "clone-inferior" commands.
10213 * inferior.h: Include "process-stratum-target.h".
10214 (interrupt_target_1): Use bool.
10215 (struct inferior) <push_target, unpush_target, target_is_pushed,
10216 find_target_beneath, top_target, process_target, target_at,
10217 m_stack>: New.
10218 (discard_all_inferiors): Delete.
10219 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
10220 (all_inferiors, all_non_exited_inferiors): Add
10221 process_stratum_target parameter.
10222 * infrun.c: Include "gdb_select.h" and <unordered_map>.
10223 (target_last_proc_target): New global.
10224 (follow_fork_inferior): Push target on new inferior. Pass target
10225 to add_thread_silent. Call exec_on_vfork. Handle target's
10226 reference count.
10227 (follow_fork): Adjust get_last_target_status call. Also consider
10228 target.
10229 (follow_exec): Push target on new inferior.
10230 (struct execution_control_state) <target>: New field.
10231 (user_visible_resume_target): New.
10232 (do_target_resume): Call target_async.
10233 (resume_1): Set target's threads_executing flag. Consider resume
10234 target.
10235 (commit_resume_all_targets): New.
10236 (proceed): Also consider resume target. Skip threads of inferiors
10237 with no execution. Commit resumtion in all targets.
10238 (start_remote): Pass current inferior to wait_for_inferior.
10239 (infrun_thread_stop_requested): Consider target as well. Pass
10240 thread_info pointer to clear_inline_frame_state instead of ptid.
10241 (infrun_thread_thread_exit): Consider target as well.
10242 (random_pending_event_thread): New inferior parameter. Use it.
10243 (do_target_wait): Rename to ...
10244 (do_target_wait_1): ... this. Add inferior parameter, and pass it
10245 down.
10246 (threads_are_resumed_pending_p, do_target_wait): New.
10247 (prepare_for_detach): Adjust calls.
10248 (wait_for_inferior): New inferior parameter. Handle it. Use
10249 do_target_wait_1 instead of do_target_wait.
10250 (fetch_inferior_event): Adjust. Switch to representative
10251 inferior. Pass target down.
10252 (set_last_target_status): Add process_stratum_target parameter.
10253 Save target in global.
10254 (get_last_target_status): Add process_stratum_target parameter and
10255 handle it.
10256 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
10257 (context_switch): Check inferior_ptid == null_ptid before calling
10258 inferior_thread().
10259 (get_inferior_stop_soon): Pass down target.
10260 (wait_one): Rename to ...
10261 (poll_one_curr_target): ... this.
10262 (struct wait_one_event): New.
10263 (wait_one): New.
10264 (stop_all_threads): Adjust.
10265 (handle_no_resumed, handle_inferior_event): Adjust to consider the
10266 event's target.
10267 (switch_back_to_stepped_thread): Also consider target.
10268 (print_stop_event): Update.
10269 (normal_stop): Update. Also consider the resume target.
10270 * infrun.h (wait_for_inferior): Remove declaration.
10271 (user_visible_resume_target): New declaration.
10272 (get_last_target_status, set_last_target_status): New
10273 process_stratum_target parameter.
10274 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
10275 process_stratum_target parameter, and use it.
10276 (clear_inline_frame_state (thread_info*)): New.
10277 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
10278 process_stratum_target parameter.
10279 (clear_inline_frame_state (thread_info*)): Declare.
10280 * linux-fork.c (delete_checkpoint_command): Pass target down to
10281 find_thread_ptid.
10282 (checkpoint_command): Adjust.
10283 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
10284 instead of just tweaking inferior_ptid.
10285 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
10286 (exit_lwp): Pass target down to find_thread_ptid.
10287 (attach_proc_task_lwp_callback): Pass target down to
10288 add_thread/set_running/set_executing.
10289 (linux_nat_target::attach): Pass target down to
10290 thread_change_ptid.
10291 (get_detach_signal): Pass target down to find_thread_ptid.
10292 Consider last target status's target.
10293 (linux_resume_one_lwp_throw, resume_lwp)
10294 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
10295 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
10296 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
10297 (linux_nat_target::async_wait_fd): New.
10298 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
10299 target down.
10300 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
10301 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
10302 * linux-thread-db.c (struct thread_db_info::process_target): New
10303 field.
10304 (add_thread_db_info): Save target.
10305 (get_thread_db_info): New process_stratum_target parameter. Also
10306 match target.
10307 (delete_thread_db_info): New process_stratum_target parameter.
10308 Also match target.
10309 (thread_from_lwp): Adjust to pass down target.
10310 (thread_db_notice_clone): Pass down target.
10311 (check_thread_db_callback): Pass down target.
10312 (try_thread_db_load_1): Always push the thread_db target.
10313 (try_thread_db_load, record_thread): Pass target down.
10314 (thread_db_target::detach): Pass target down. Always unpush the
10315 thread_db target.
10316 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
10317 target down. Always unpush the thread_db target.
10318 (find_new_threads_callback, thread_db_find_new_threads_2)
10319 (thread_db_target::update_thread_list): Pass target down.
10320 (thread_db_target::pid_to_str): Pass current inferior down.
10321 (thread_db_target::get_thread_local_address): Pass target down.
10322 (thread_db_target::resume, maintenance_check_libthread_db): Pass
10323 target down.
10324 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
10325 * procfs.c (procfs_target::procfs_init_inferior): Declare.
10326 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
10327 (procfs_init_inferior): Rename to ...
10328 (procfs_target::procfs_init_inferior): ... this and adjust.
10329 (procfs_target::create_inferior, procfs_notice_thread)
10330 (procfs_do_thread_registers): Adjust.
10331 * ppc-fbsd-tdep.c: Include "inferior.h".
10332 (ppcfbsd_get_thread_local_address): Pass down target.
10333 * proc-service.c (ps_xfer_memory): Switch current inferior and
10334 program space as well.
10335 (get_ps_regcache): Pass target down.
10336 * process-stratum-target.c
10337 (process_stratum_target::thread_address_space)
10338 (process_stratum_target::thread_architecture): Pass target down.
10339 * process-stratum-target.h
10340 (process_stratum_target::threads_executing): New field.
10341 (as_process_stratum_target): New.
10342 * ravenscar-thread.c
10343 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
10344 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
10345 down.
10346 * record-btrace.c (record_btrace_target::info_record): Adjust.
10347 (record_btrace_target::record_method)
10348 (record_btrace_target::record_is_replaying)
10349 (record_btrace_target::fetch_registers)
10350 (get_thread_current_frame_id, record_btrace_target::resume)
10351 (record_btrace_target::wait, record_btrace_target::stop): Pass
10352 target down.
10353 * record-full.c (record_full_wait_1): Switch to event thread.
10354 Pass target down.
10355 * regcache.c (regcache::regcache)
10356 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
10357 process_stratum_target parameter and handle it.
10358 (current_thread_target): New global.
10359 (get_thread_regcache): Add process_stratum_target parameter and
10360 handle it. Switch inferior before calling target method.
10361 (get_thread_regcache): Pass target down.
10362 (get_thread_regcache_for_ptid): Pass target down.
10363 (registers_changed_ptid): Add process_stratum_target parameter and
10364 handle it.
10365 (registers_changed_thread, registers_changed): Pass target down.
10366 (test_get_thread_arch_aspace_regcache): New.
10367 (current_regcache_test): Define a couple local test_target_ops
10368 instances and use them for testing.
10369 (readwrite_regcache): Pass process_stratum_target parameter.
10370 (cooked_read_test, cooked_write_test): Pass mock_target down.
10371 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
10372 (get_thread_arch_aspace_regcache): Add process_stratum_target
10373 parameter.
10374 (regcache::target): New method.
10375 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
10376 (regcache::registers_changed_ptid): Add process_stratum_target
10377 parameter.
10378 (regcache::m_target): New field.
10379 (registers_changed_ptid): Add process_stratum_target parameter.
10380 * remote.c (remote_state::supports_vCont_probed): New field.
10381 (remote_target::async_wait_fd): New method.
10382 (remote_unpush_and_throw): Add remote_target parameter.
10383 (get_current_remote_target): Adjust.
10384 (remote_target::remote_add_inferior): Push target.
10385 (remote_target::remote_add_thread)
10386 (remote_target::remote_notice_new_inferior)
10387 (get_remote_thread_info): Pass target down.
10388 (remote_target::update_thread_list): Skip threads of inferiors
10389 bound to other targets. (remote_target::close): Don't discard
10390 inferiors. (remote_target::add_current_inferior_and_thread)
10391 (remote_target::process_initial_stop_replies)
10392 (remote_target::start_remote)
10393 (remote_target::remote_serial_quit_handler): Pass down target.
10394 (remote_target::remote_unpush_target): New remote_target
10395 parameter. Unpush the target from all inferiors.
10396 (remote_target::remote_unpush_and_throw): New remote_target
10397 parameter. Pass it down.
10398 (remote_target::open_1): Check whether the current inferior has
10399 execution instead of checking whether any inferior is live. Pass
10400 target down.
10401 (remote_target::remote_detach_1): Pass down target. Use
10402 remote_unpush_target.
10403 (extended_remote_target::attach): Pass down target.
10404 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
10405 (remote_target::append_resumption): Pass down target.
10406 (remote_target::append_pending_thread_resumptions)
10407 (remote_target::remote_resume_with_hc, remote_target::resume)
10408 (remote_target::commit_resume): Pass down target.
10409 (remote_target::remote_stop_ns): Check supports_vCont_probed.
10410 (remote_target::interrupt_query)
10411 (remote_target::remove_new_fork_children)
10412 (remote_target::check_pending_events_prevent_wildcard_vcont)
10413 (remote_target::remote_parse_stop_reply)
10414 (remote_target::process_stop_reply): Pass down target.
10415 (first_remote_resumed_thread): New remote_target parameter. Pass
10416 it down.
10417 (remote_target::wait_as): Pass down target.
10418 (unpush_and_perror): New remote_target parameter. Pass it down.
10419 (remote_target::readchar, remote_target::remote_serial_write)
10420 (remote_target::getpkt_or_notif_sane_1)
10421 (remote_target::kill_new_fork_children, remote_target::kill): Pass
10422 down target.
10423 (remote_target::mourn_inferior): Pass down target. Use
10424 remote_unpush_target.
10425 (remote_target::core_of_thread)
10426 (remote_target::remote_btrace_maybe_reopen): Pass down target.
10427 (remote_target::pid_to_exec_file)
10428 (remote_target::thread_handle_to_thread_info): Pass down target.
10429 (remote_target::async_wait_fd): New.
10430 * riscv-fbsd-tdep.c: Include "inferior.h".
10431 (riscv_fbsd_get_thread_local_address): Pass down target.
10432 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
10433 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
10434 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
10435 Adjust.
10436 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
10437 * solib-svr4.c (enable_break): Pass down target.
10438 * spu-multiarch.c (parse_spufs_run): Pass down target.
10439 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
10440 * target-delegates.c: Regenerate.
10441 * target.c (g_target_stack): Delete.
10442 (current_top_target): Return the current inferior's top target.
10443 (target_has_execution_1): Refer to the passed-in inferior's top
10444 target.
10445 (target_supports_terminal_ours): Check whether the initial
10446 inferior was already created.
10447 (decref_target): New.
10448 (target_stack::push): Incref/decref the target.
10449 (push_target, push_target, unpush_target): Adjust.
10450 (target_stack::unpush): Defref target.
10451 (target_is_pushed): Return bool. Adjust to refer to the current
10452 inferior's target stack.
10453 (dispose_inferior): Delete, and inline parts ...
10454 (target_preopen): ... here. Only dispose of the current inferior.
10455 (target_detach): Hold strong target reference while detaching.
10456 Pass target down.
10457 (target_thread_name): Add assertion.
10458 (target_resume): Pass down target.
10459 (target_ops::beneath, find_target_at): Adjust to refer to the
10460 current inferior's target stack.
10461 (get_dummy_target): New.
10462 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
10463 has a thread running.
10464 (initialize_targets): Rename to ...
10465 (_initialize_target): ... this.
10466 * target.h: Include "gdbsupport/refcounted-object.h".
10467 (struct target_ops): Inherit refcounted_object.
10468 (target_ops::shortname, target_ops::longname): Make const.
10469 (target_ops::async_wait_fd): New method.
10470 (decref_target): Declare.
10471 (struct target_ops_ref_policy): New.
10472 (target_ops_ref): New typedef.
10473 (get_dummy_target): Declare function.
10474 (target_is_pushed): Return bool.
10475 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
10476 (all_matching_threads_iterator::all_matching_threads_iterator):
10477 Handle filter target.
10478 * thread-iter.h (struct all_matching_threads_iterator, struct
10479 all_matching_threads_range, class all_non_exited_threads_range):
10480 Filter by target too. Remove explicit.
10481 * thread.c (threads_executing): Delete.
10482 (inferior_thread): Pass down current inferior.
10483 (clear_thread_inferior_resources): Pass down thread pointer
10484 instead of ptid_t.
10485 (add_thread_silent, add_thread_with_info, add_thread): Add
10486 process_stratum_target parameter. Use it for thread and inferior
10487 searches.
10488 (is_current_thread): New.
10489 (thread_info::deletable): Use it.
10490 (find_thread_ptid, thread_count, in_thread_list)
10491 (thread_change_ptid, set_resumed, set_running): New
10492 process_stratum_target parameter. Pass it down.
10493 (set_executing): New process_stratum_target parameter. Pass it
10494 down. Adjust reference to 'threads_executing'.
10495 (threads_are_executing): New process_stratum_target parameter.
10496 Adjust reference to 'threads_executing'.
10497 (set_stop_requested, finish_thread_state): New
10498 process_stratum_target parameter. Pass it down.
10499 (switch_to_thread): Also match inferior.
10500 (switch_to_thread): New process_stratum_target parameter. Pass it
10501 down.
10502 (update_threads_executing): Reimplement.
10503 * top.c (quit_force): Pop targets from all inferior.
10504 (gdb_init): Don't call initialize_targets.
10505 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
10506 Declare.
10507 (windows_add_thread, windows_delete_thread): Adjust.
10508 (get_windows_debug_event): Rename to ...
10509 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
10510 * tracefile-tfile.c (tfile_target_open): Pass down target.
10511 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
10512 Forward declare.
10513 (switch_to_thread): Add process_stratum_target parameter.
10514 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
10515 parameter. Use it.
10516 (mi_on_resume): Pass target down.
10517 * nat/fork-inferior.c (startup_inferior): Add
10518 process_stratum_target parameter. Pass it down.
10519 * nat/fork-inferior.h (startup_inferior): Add
10520 process_stratum_target parameter.
10521 * python/py-threadevent.c (py_get_event_thread): Pass target down.
10522
75c6c844
PA
105232020-01-10 Pedro Alves <palves@redhat.com>
10524
10525 * remote.c (remote_target::start_remote): Don't set inferior_ptid
10526 directly. Instead find the first thread in the thread list and
10527 use switch_to_thread.
10528
78f2c40a
PA
105292020-01-10 Pedro Alves <palves@redhat.com>
10530
10531 * remote.c (remote_target::remote_add_inferior): Don't bind a
10532 process to the current inferior if the current inferior is already
10533 bound to a process.
10534
e7af6c70
TBA
105352020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10536 Pedro Alves <palves@redhat.com>
10537
10538 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
10539 If no process is specified, return null_ptid instead of
10540 inferior_ptid.
10541 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
10542 TARGET_WAITKIND_SIGNALLED with no pid.
10543
31ba933e
PA
105442020-01-10 Pedro Alves <palves@redhat.com>
10545
10546 * remote.c (first_remote_resumed_thread): New.
10547 (remote_target::wait_as): Use it as default event_ptid instead of
10548 inferior_ptid.
10549
735fc2ca
PA
105502020-01-10 Pedro Alves <palves@redhat.com>
10551
10552 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
10553
c17e02e1
PA
105542020-01-10 Pedro Alves <palves@redhat.com>
10555
10556 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
10557 not -1.
10558
ab1ddbcf
PA
105592020-01-10 Pedro Alves <palves@redhat.com>
10560
10561 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
10562 ptid to get_last_target_status.
10563 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
10564 ptid to get_last_target_status.
10565 * infcmd.c (continue_command): Don't pass a target_waitstatus to
10566 get_last_target_status.
10567 (info_program_command): Don't pass a target_waitstatus to
10568 get_last_target_status.
10569 * infrun.c (init_wait_for_inferior): Use
10570 nullify_last_target_wait_ptid.
10571 (get_last_target_status): Handle nullptr arguments.
10572 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
10573 (print_stop_event): Don't pass a ptid to get_last_target_status.
10574 (normal_stop): Don't pass a ptid to get_last_target_status.
10575 * infrun.h (get_last_target_status, set_last_target_status): Move
10576 comments here and update.
10577 (nullify_last_target_wait_ptid): Declare.
10578 * linux-fork.c (fork_load_infrun_state): Remove local extern
10579 declaration of nullify_last_target_wait_ptid.
10580 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
10581 to get_last_target_status.
10582
f3f8ece4
PA
105832020-01-10 Pedro Alves <palves@redhat.com>
10584
10585 * gdbthread.h (scoped_restore_current_thread)
10586 <dont_restore, restore, m_dont_restore>: Declare.
10587 * thread.c (thread_alive): Add assertion. Return bool.
10588 (switch_to_thread_if_alive): New.
10589 (prune_threads): Switch inferior/thread.
10590 (print_thread_info_1): Switch thread before calling target methods.
10591 (scoped_restore_current_thread::restore): New, factored out from
10592 ...
10593 (scoped_restore_current_thread::~scoped_restore_current_thread):
10594 ... this.
10595 (scoped_restore_current_thread::scoped_restore_current_thread):
10596 Add assertion.
10597 (thread_apply_all_command, thread_select): Use
10598 switch_to_thread_if_alive.
10599 * infrun.c (proceed, restart_threads, handle_signal_stop)
10600 (switch_back_to_stepped_thread): Switch current thread before
10601 calling target methods.
10602
db2d40f7
PA
106032020-01-10 Pedro Alves <palves@redhat.com>
10604
10605 * inferior.c (switch_to_inferior_no_thread): New function,
10606 factored out from ...
10607 (inferior_command): ... here.
10608 * inferior.h (switch_to_inferior_no_thread): Declare.
10609 * mi/mi-main.c (run_one_inferior): Use
10610 switch_to_inferior_no_thread.
10611
bd420a2d
PA
106122020-01-10 Pedro Alves <palves@redhat.com>
10613
10614 * infcmd.c (kill_command): Remove dead code.
10615
ddf5db90
PA
106162020-01-10 Pedro Alves <palves@redhat.com>
10617
10618 * remote.c (remote_target::mourn_inferior): No longer check
10619 whether the target is running.
10620
5018ce90
PA
106212020-01-10 Pedro Alves <palves@redhat.com>
10622
10623 * corelow.c (core_target::has_execution): Change parameter type to
10624 inferior pointer.
10625 * inferior.c (number_of_live_inferiors): Use
10626 inferior::has_execution instead of target_has_execution_1.
10627 * inferior.h (inferior::has_execution): New.
10628 * linux-thread-db.c (thread_db_target::update_thread_list): Use
10629 inferior::has_execution instead of target_has_execution_1.
10630 * process-stratum-target.c
10631 (process_stratum_target::has_execution): Change parameter type to
10632 inferior pointer. Check the inferior's PID instead of
10633 inferior_ptid.
10634 * process-stratum-target.h
10635 (process_stratum_target::has_execution): Change parameter type to
10636 inferior pointer.
10637 * record-full.c (record_full_core_target::has_execution): Change
10638 parameter type to inferior pointer.
10639 * target.c (target_has_execution_1): Change parameter type to
10640 inferior pointer.
10641 (target_has_execution_current): Adjust.
10642 * target.h (target_ops::has_execution): Change parameter type to
10643 inferior pointer.
10644 (target_has_execution_1): Change parameter type to inferior
10645 pointer. Change return type to bool.
10646 * tracefile.h (tracefile_target::has_execution): Change parameter
10647 type to inferior pointer.
10648
74375d18
PA
106492020-01-10 Pedro Alves <palves@redhat.com>
10650
10651 * exceptions.c (print_flush): Remove current_top_target() check.
10652
acdf84a6
PA
106532020-01-10 Pedro Alves <palves@redhat.com>
10654
10655 * remote.c (show_remote_exec_file): Show the current inferior's
10656 exec-file instead of the command variable's value.
10657
ec506636
PA
106582020-01-10 Pedro Alves <palves@redhat.com>
10659
10660 * record-full.c (record_full_resume_ptid): New global.
10661 (record_full_target::resume): Set it.
10662 (record_full_wait_1): Use record_full_resume_ptid instead of
10663 inferior_ptid.
10664
873657b9
PA
106652020-01-10 Pedro Alves <palves@redhat.com>
10666
10667 * gdbthread.h (scoped_restore_current_thread)
10668 <dont_restore, restore, m_dont_restore>: Declare.
10669 * thread.c (thread_alive): Add assertion. Return bool.
10670 (switch_to_thread_if_alive): New.
10671 (prune_threads): Switch inferior/thread.
10672 (print_thread_info_1): Switch thread before calling target methods.
10673 (scoped_restore_current_thread::restore): New, factored out from
10674 ...
10675 (scoped_restore_current_thread::~scoped_restore_current_thread):
10676 ... this.
10677 (scoped_restore_current_thread::scoped_restore_current_thread):
10678 Add assertion.
10679 (thread_apply_all_command, thread_select): Use
10680 switch_to_thread_if_alive.
10681
7f0ae84c
GB
106822020-01-10 George Barrett <bob@bob131.so>
10683
10684 * stap-probe.c (stap_modify_semaphore): Don't check for null
10685 semaphores.
10686 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
10687 for null semaphores.
10688
f5a7c406
AB
106892020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
10690
10691 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
10692 all source windows, and maintain horizontal scroll status while
10693 doing so.
10694
9ae6bf64
TT
106952020-01-09 Tom Tromey <tom@tromey.com>
10696
10697 PR tui/18932:
10698 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
10699 update_source_window, not print_source_lines.
10700
b2efe70c
AB
107012020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
10702
10703 * tui/tui.c (tui_enable): Register tui hooks after calling
10704 tui_display_main.
10705
5f23a082
CB
107062020-01-09 Christian Biesinger <cbiesinger@google.com>
10707
10708 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
10709
3061113b
SM
107102020-01-08 Simon Marchi <simon.marchi@efficios.com>
10711
10712 * thread.c (print_thread_info_1): Fix indentation.
10713
57d75002
CB
107142020-01-09 Christian Biesinger <cbiesinger@google.com>
10715
10716 * symtab.c (general_symbol_info::compute_and_set_names): Move the
10717 unique_xmalloc_ptr outside the if to always free the demangled name.
10718
6a053cb1
TT
107192020-01-08 Tom Tromey <tromey@adacore.com>
10720
10721 * xcoffread.c (enter_line_range, read_xcoff_symtab)
10722 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
10723 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
10724 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
10725 Remove.
10726 (section_offsets): New typedef.
10727 * symtab.c (fixup_section, get_msymbol_address): Update.
10728 * symmisc.c (dump_msymbols): Update.
10729 * symfile.h (relative_addr_info_to_section_offsets)
10730 (symfile_map_offsets_to_segments): Update.
10731 * symfile.c (build_section_addr_info_from_objfile)
10732 (init_objfile_sect_indices): Update.
10733 (struct place_section_arg): Change type of "offsets".
10734 (place_section): Update.
10735 (relative_addr_info_to_section_offsets): Change type of
10736 "section_offsets". Remove "num_sections" parameter.
10737 (default_symfile_offsets, syms_from_objfile_1)
10738 (set_objfile_default_section_offset): Update.
10739 (reread_symbols): No need to preserve section offsets by hand.
10740 (symfile_map_offsets_to_segments): Change type of "offsets".
10741 * stap-probe.c (relocate_address): Update.
10742 * stabsread.h (process_one_symbol): Update.
10743 * solib-target.c (struct lm_info_target) <offsets>: Change type.
10744 (solib_target_relocate_section_addresses): Update.
10745 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
10746 Update.
10747 * solib-frv.c (frv_relocate_main_executable): Update.
10748 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
10749 * solib-aix.c (solib_aix_get_section_offsets): Change return
10750 type.
10751 (solib_aix_solib_create_inferior_hook): Update.
10752 * remote.c (remote_target::get_offsets): Update.
10753 * psymtab.c (find_pc_sect_psymtab): Update.
10754 * psympriv.h (struct partial_symbol) <address, text_low,
10755 text_high>: Update.
10756 * objfiles.h (obj_section_offset): Update.
10757 (struct objfile) <section_offsets>: Change type.
10758 <num_sections>: Remove.
10759 (objfile_relocate): Update.
10760 * objfiles.c (entry_point_address_query): Update
10761 (relocate_one_symbol): Change type of "section_offsets".
10762 (objfile_relocate1, objfile_relocate1): Change type of
10763 "new_offsets".
10764 (objfile_rebase1): Update.
10765 * mipsread.c (mipscoff_symfile_read): Update.
10766 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
10767 parameter.
10768 * mdebugread.c (parse_symbol): Change type of "section_offsets".
10769 (parse_external, psymtab_to_symtab_1): Update.
10770 * machoread.c (macho_symfile_offsets): Update.
10771 * ia64-tdep.c (ia64_find_unwind_table): Update.
10772 * hppa-tdep.c (read_unwind_info): Update.
10773 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
10774 * dwarf2read.c (create_addrmap_from_index)
10775 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
10776 (process_psymtab_comp_unit_reader, add_partial_symbol)
10777 (add_partial_subprogram, process_full_comp_unit)
10778 (read_file_scope, read_func_scope, read_lexical_block_scope)
10779 (read_call_site_scope, dwarf2_rnglists_process)
10780 (dwarf2_ranges_process, dwarf2_ranges_read)
10781 (dwarf_decode_lines_1, var_decode_location, new_symbol)
10782 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
10783 Update.
10784 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
10785 Update.
10786 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
10787 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
10788 (process_one_symbol): Change type of "section_offsets".
10789 * ctfread.c (get_objfile_text_range): Update.
10790 * coffread.c (coff_symtab_read, enter_linenos)
10791 (process_coff_symbol): Update.
10792 * coff-pe-read.c (add_pe_forwarded_sym): Update.
10793 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
10794
456e800a
TT
107952020-01-08 Tom Tromey <tromey@adacore.com>
10796
10797 * dwarf2read.c (parse_macro_definition): Use std::string.
10798 (parse_macro_definition): Likewise.
10799
6dfa2fc2
TT
108002020-01-08 Tom Tromey <tromey@adacore.com>
10801
10802 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
10803 (ATTR_ALLOC_CHUNK): Remove.
10804
421d1616
TT
108052020-01-08 Tom Tromey <tromey@adacore.com>
10806
10807 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
10808
43816ebc
TT
108092020-01-08 Tom Tromey <tromey@adacore.com>
10810
10811 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
10812 (dwarf2_compute_name, open_dwo_file): Likewise.
10813 (process_enumeration_scope): Use std::vector.
10814 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
10815 (partial_die_info::fixup, dwarf2_start_subfile)
10816 (guess_full_die_structure_name, dwarf2_name): Likewise.
10817 (determine_prefix): Update.
10818 (guess_full_die_structure_name): Make return type const.
10819 (partial_die_full_name): Return unique_xmalloc_ptr.
10820 (DW_FIELD_ALLOC_CHUNK): Remove.
10821
4212d509
TT
108222020-01-07 Tom Tromey <tromey@adacore.com>
10823
10824 PR build/24937:
10825 * stap-probe.c (class stap_static_probe_ops): Add constructor.
10826
06a6207a
JT
108272020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
10828
10829 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
10830
153d79c4
AB
108312020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
10832
10833 * stack.c (print_frame_info): Move disassemble_next_line code
10834 inside source_print block.
10835
66182876
EZ
108362020-01-06 Eli Zaretskii <eliz@gnu.org>
10837
10838 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
10839 gdb/signals.h, as we are now using native signal symbols.
10840
cbfa8581
SV
108412020-01-06 Shahab Vahedi <shahab@synopsys.com>
10842
10843 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
10844 overflow by an early check of content vs threshold.
aac66a4c 10845 * tui/tui-source.c (tui_source_window::line_is_displayed):
cbfa8581
SV
10846 Likewise.
10847
3f602821
EZ
108482020-01-06 Eli Zaretskii <eliz@gnu.org>
10849
10850 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
10851
a08c904d
JT
108522020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
10853
10854 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
10855 export table if no section contains it's RVA.
10856
89a65580
EZ
108572020-01-06 Eli Zaretskii <eliz@gnu.org>
10858
10859 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
10860
8b7fcda2
HD
108612020-01-06 Hannes Domani <ssbssa@yahoo.de>
10862
10863 * source.c (print_source_lines_base): Set last_line_listed.
10864
a61b4f69
SV
108652020-01-06 Shahab Vahedi <shahab@synopsys.com>
10866
10867 * tui/tui-disasm.c: Remove trailing spaces.
10868
559e7e50
EZ
108692020-01-06 Eli Zaretskii <eliz@gnu.org>
10870 Pedro Alves <palves@redhat.com>
10871
10872 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
10873 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
10874 (windows_gdb_signal_to_target): New function, uses the above
10875 enumeration to convert GDB internal signal codes to equivalent
10876 Windows codes.
10877 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
10878 * windows-nat.c: Include "gdb_wait.h".
10879 (get_windows_debug_event): Extract the fatal exception from the
10880 exit status and convert to the equivalent Posix signal number.
10881 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
10882 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
10883 * gdbsupport/gdb_wait.c: New file, implements
10884 windows_status_to_termsig.
10885 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
10886 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
10887
f2302a34
AB
108882020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
10889
10890 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
10891 show_layout.
10892
6a5206eb
LM
108932020-01-05 Luis Machado <luis.machado@linaro.org>
10894
10895 * aarch64-linux-nat.c
10896 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
10897 and bfd_mach_aarch64.
10898
6ec1d75e
PW
108992020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10900
10901 * ui-file.c (stdio_file::can_emit_style_escape)
10902 (tee_file::can_emit_style_escape): Ensure style is used also on
10903 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
10904 to gdb_stdout.
10905 * main.c (set_gdb_data_directory): Use file style to output the
10906 warning that the given pathname is not a directory.
10907 * top.c (show_history_filename, gdb_safe_append_history)
10908 (show_gdb_datadir): Use file style.
10909
44f81a76
HD
109102020-01-03 Hannes Domani <ssbssa@yahoo.de>
10911
10912 * solib-target.c (struct lm_info_target):
10913 Change offsets to be a unique_xmalloc_ptr.
10914 (solib_target_relocate_section_addresses): Update.
10915
25057eb0
HD
109162020-01-03 Hannes Domani <ssbssa@yahoo.de>
10917
10918 * windows-nat.c (windows_clear_solib): Free so_list linked list.
10919
6e2118f5
BE
109202020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
10921
10922 * MAINTAINERS (Write After Approval): Add myself.
10923
8133c7dc
LM
109242020-01-02 Luis Machado <luis.machado@linaro.org>
10925
10926 * proc-service.c (get_ps_regcache): Remove reference to obsolete
10927 Cell BE architecture.
10928 * target.h (struct target_ops) <thread_architecture>: Likewise.
10929
48189bec
HD
109302020-01-01 Hannes Domani <ssbssa@yahoo.de>
10931
10932 * Makefile.in: Use INSTALL_PROGRAM_ENV.
10933
ead1063b
HD
109342020-01-01 Hannes Domani <ssbssa@yahoo.de>
10935
10936 * MAINTAINERS (Write After Approval): Add myself.
10937
e5d78223
JB
109382020-01-01 Joel Brobecker <brobecker@adacore.com>
10939
10940 * gdbarch.sh: Update copyright year range of generated files.
10941
b811d2c2
JB
109422020-01-01 Joel Brobecker <brobecker@adacore.com>
10943
10944 Update copyright year range in all GDB files.
10945
5f4def5c
JB
109462020-01-01 Joel Brobecker <brobecker@adacore.com>
10947
10948 * copyright.py: Convert to Python 3.
10949
51fd4002
JB
109502020-01-01 Joel Brobecker <brobecker@adacore.com>
10951
10952 * copyright.py: Adapt after move of gnulib directory from gdb
10953 directory to toplevel directory.
10954
5fb651f2
JB
109552020-01-01 Joel Brobecker <brobecker@adacore.com>
10956
10957 * copyright.py (main): Exit if run from the wrong directory.
10958
5dd8bf88
JB
109592020-01-01 Joel Brobecker <brobecker@adacore.com>
10960
10961 * top.c (print_gdb_version): Change copyright year to 2020.
10962
9f71dacb 109632020-01-01 Joel Brobecker <brobecker@adacore.com>
3d34df0a 10964
9f71dacb 10965 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
3d34df0a 10966
9f71dacb 10967For older changes see ChangeLog-2019.
c906108c
SS
10968\f
10969Local Variables:
10970mode: change-log
10971left-margin: 8
10972fill-column: 74
10973version-control: never
57da7796 10974coding: utf-8
c906108c 10975End: