Commit: Fix GOLD testsuite failures for 2.35 branch.
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
9fc501fd
AB
12020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
2
3 PR python/22748
4 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
5 special handling for inline frames.
6 * findvar.c (value_of_register_lazy): Skip inline frames when
7 creating lazy register values.
8 * frame.c (frame_id_computed_p): Delete definition.
9 * frame.h (frame_id_computed_p): Delete declaration.
10
64cb3757
AB
112020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
12
13 * NEWS: Mention additions to Python API.
14 * python/py-arch.c (archpy_register_groups): New function.
15 (arch_object_methods): Add 'register_groups' method.
16 * python/py-registers.c (reggroup_iterator_object): New struct.
17 (reggroup_object): New struct.
18 (gdbpy_new_reggroup): New function.
19 (gdbpy_reggroup_to_string): New function.
20 (gdbpy_reggroup_name): New function.
21 (gdbpy_reggroup_iter): New function.
22 (gdbpy_reggroup_iter_next): New function.
23 (gdbpy_new_reggroup_iterator): New function
24 (gdbpy_initialize_registers): Register new types.
25 (reggroup_iterator_object_type): Define new Python type.
26 (gdbpy_reggroup_getset): New static global.
27 (reggroup_object_type): Define new Python type.
28 * python/python-internal.h
29
0f767f94
AB
302020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
31
32 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
33 * python/py-arch.c (archpy_registers): New function.
34 (arch_object_methods): Add 'registers' method.
35 * python/py-registers.c: New file.
36 * python/python-internal.h
37 (gdbpy_new_register_descriptor_iterator): Declare.
38 (gdbpy_initialize_registers): Declare.
39 * python/python.c (do_start_initialization): Call
40 gdbpy_initialize_registers.
41 * NEWS: Mention additions to the Python API.
42
87dbc774
AB
432020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
44
45 * NEWS: Mention new Python API method.
46 * python/py-unwind.c (pending_framepy_architecture): New function.
47 (pending_frame_object_methods): Add architecture method.
48
3bc98c0c
AB
492020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
50
51 * gdbarch.c: Regenerate.
52 * gdbarch.h: Regenerate.
53 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
54 (gdbarch_data): Use internal_error for the case where
55 deprecated_set_gdbarch_data was originally needed.
56 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
57 and use passed in obstack.
58 (libunwind_frame_set_descr): Should no longer get back NULL from
59 gdbarch_data.
60 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
61 type.
62 * user-regs.c (user_regs_init): Update parameters, and use passed
63 in obstack.
64 (user_reg_add): Should no longer get back NULL from gdbarch_data.
65 (_initialize_user_regs): Register as a pre-init gdbarch data type.
66
d8cc8af6
TV
672020-07-06 Tom de Vries <tdevries@suse.de>
68
69 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
70 End-Of-Sequence in lte_is_less_than.
71 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
72 "gdb: Don't reorder line table entries too much when sorting".
73
947f7597
TV
742020-07-06 Tom de Vries <tdevries@suse.de>
75
76 PR tui/26205
77 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
78
1e7c1b22
TV
792020-07-05 Tom de Vries <tdevries@suse.de>
80
81 PR build/26187
82 * inferior.h (struct infcall_suspend_state_deleter): If available, use
83 std::uncaught_exceptions instead of deprecated
84 std::uncaught_exception.
85
a36158ec
SM
862020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
87
88 * macroexp.h (macro_stringify): Return
89 gdb::unique_xmalloc_ptr<char>.
90 * macroexp.c (macro_stringify): Likewise.
91 * macrotab.c (fixup_definition): Update.
92
14d960c8
SM
932020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
94
95 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
96 (lex_one_token): Update.
97 * macroexp.c (struct macro_buffer) <release>: Return
98 gdb::unique_xmalloc_ptr<char>.
99 (macro_stringify): Update.
100 (macro_expand): Update.
101 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
102 * macroexp.h (macro_expand_next): Likewise.
103
211d5b1c
SM
1042020-07-02 Simon Marchi <simon.marchi@efficios.com>
105
106 * macroexp.h (macro_lookup_ftype): Remove.
107 (macro_expand, macro_expand_once, macro_expand_next): Remove
108 lookup function parameters, add scope parameter.
109 * macroexp.c (scan, substitute_args, expand, maybe_expand,
110 macro_expand, macro_expand_once, macro_expand_next): Likewise.
111 * macroscope.h (standard_macro_lookup): Change parameter type
112 to macro_scope.
113 * macroscope.c (standard_macro_lookup): Likewise.
114 * c-exp.y (lex_one_token): Update.
115 * macrocmd.c (macro_expand_command): Likewise.
116 (macro_expand_once_command): Likewise.
117
b1a35af2
SM
1182020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
119
120 * inf-loop.c (inferior_event_handler): Remove client_data param.
121 * inf-loop.h (inferior_event_handler): Likewise.
122 * infcmd.c (step_1): Adjust.
123 * infrun.c (proceed): Adjust.
124 (fetch_inferior_event): Remove client_data param.
125 (infrun_async_inferior_event_handler): Adjust.
126 * infrun.h (fetch_inferior_event): Remove `void *` param.
127 * linux-nat.c (handle_target_event): Adjust.
128 * record-btrace.c (record_btrace_handle_async_inferior_event):
129 Adjust.
130 * record-full.c (record_full_async_inferior_event_handler):
131 Adjust.
132 * remote.c (remote_async_inferior_event_handler): Adjust.
133
1cdf9e33
TT
1342020-07-01 Tom Tromey <tom@tromey.com>
135
136 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
137 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
138
32c1e210
TT
1392020-07-01 Tom Tromey <tom@tromey.com>
140
141 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
142 tui_gen_win_info.
143 (tui_win_info::make_window): Merge with
144 tui_gen_win_info::make_window.
145 (tui_win_info::make_visible): Move from tui_gen_win_info.
146 * tui/tui-win.c (tui_win_info::max_width): Move from
147 tui_gen_win_info.
148 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
149 type.
150 <window_factory>: Likewise.
151 * tui/tui-layout.c (tui_win_info::resize): Move from
152 tui_gen_win_info.
153 (make_standard_window): Change return type.
154 (get_locator_window, tui_get_window_by_name): Likewise.
155 (tui_layout_window::apply): Remove a cast.
156 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
157 (struct tui_win_info): Merge with tui_gen_win_info.
158 (struct tui_gen_win_info): Remove.
159
a30cb6da
TT
1602020-07-01 Tom Tromey <tom@tromey.com>
161
162 * tui/tui-stack.h (struct tui_locator_window): Derive from
163 tui_win_info.
164 <do_scroll_horizontal, do_scroll_vertical>: New methods.
165 <can_box>: New method.
166
1eb2161f
TT
1672020-07-01 Tom Tromey <tom@tromey.com>
168
169 * tui/tui-stack.h (struct tui_locator_window): Remove body.
170
7134f2eb
TT
1712020-07-01 Tom Tromey <tom@tromey.com>
172
173 * tui/tui-regs.c (tui_data_window::display_registers_from)
174 (tui_data_window::display_registers_from)
175 (tui_data_window::first_data_item_displayed)
176 (tui_data_window::delete_data_content_windows): Update.
177 (tui_data_window::refresh_window, tui_data_window::no_refresh):
178 Remove.
179 (tui_data_window::check_register_values): Update.
180 (tui_data_item_window::rerender): Add parameters. Update.
181 (tui_data_item_window::refresh_window): Remove.
182 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
183 virtual.
184 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
185 tui_gen_win_info.
186 <refresh_window, max_height, min_height>: Remove.
187 <rerender>: Add parameters.
188 <x, y, visible>: New members.
189 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
190 <m_item_width>: New member.
191
22b7b041
TT
1922020-07-01 Tom Tromey <tom@tromey.com>
193
194 * tui/tui-regs.c (tui_data_window::show_register_group)
195 (tui_data_window::check_register_values): Update.
196 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
197 from item_no.
198
c9753adb
TT
1992020-07-01 Tom Tromey <tom@tromey.com>
200
201 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
202 useless "if".
203
9ab26b4a
TT
2042020-07-01 Tom Tromey <tom@tromey.com>
205
206 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
207 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
208
e555083f
TT
2092020-07-01 Tom Tromey <tom@tromey.com>
210
211 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
212 * tui/tui-winsource.h (enum tui_line_or_address_kind)
213 (struct tui_line_or_address): Move from tui-data.h.
214 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
215 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
216 (tui_cmd_window, tui_source_window_base, tui_source_window)
217 (tui_disasm_window): Don't declare.
218 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
219 to tui-winsource.h.
220 (SINGLE_KEY): Move to tui-stack.c.
221
7a02bab7
TT
2222020-07-01 Tom Tromey <tom@tromey.com>
223
224 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
225 std::string.
226 * tui/tui-regs.c (class tab_expansion_file): New.
227 (tab_expansion_file::write): New method.
228 (tui_register_format): Change return type. Use
229 tab_expansion_file.
230 (tui_get_register, tui_data_window::display_registers_from)
231 (tui_data_item_window::rerender): Update.
232 * tui/tui-io.h (tui_expand_tabs): Don't declare.
233 * tui/tui-io.c (tui_expand_tabs): Remove.
234
ea68593b
TT
2352020-07-01 Tom Tromey <tom@tromey.com>
236
237 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
238
a8caed5d
FS
2392020-07-01 Fangrui Song <maskray@google.com>
240
241 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
242
9cdf9820
AKS
2432020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
244
245 * dwarf2/read.c (set_die_type): Removed conditions to restrict
246 forms for DW_AT_associated and DW_AT_allocated attributes,
247 which is already checked in function attr_to_dynamic_prop.
248
a1520ad8
TT
2492020-06-30 Tom Tromey <tromey@adacore.com>
250
251 * dwarf2/read.c (quirk_rust_enum): Correctly call
252 alloc_rust_variant for default-less enum.
253
5ac58899
TT
2542020-06-30 Tom Tromey <tromey@adacore.com>
255
256 PR build/26183:
257 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
258 gdb::to_string.
259
19b187a9
SM
2602020-06-29 Simon Marchi <simon.marchi@efficios.com>
261
262 * gdbarch.sh (displaced_step_copy_insn): Update doc.
263 * gdbarch.h: Re-generate.
264
cd4c4c07
TT
2652020-06-28 Tom Tromey <tom@tromey.com>
266
267 * command.h (cmd_types): Remove.
268 (cmd_type): Don't declare.
269 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
270 typedef.
271 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
272 * cli/cli-decode.c (cmd_type): Remove.
273
05779d57
PA
2742020-06-27 Pedro Alves <palves@redhat.com>
275
276 * fork-child.c (prefork_hook): Adjust.
277 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
278 Delete.
279 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
280 * inferior.c (inferior::set_tty, inferior::tty): New methods.
281 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
282 Remove declarations.
283 (struct inferior) <set_tty, tty>: New methods.
284 (struct inferior) <terminal>: Rename to ...
285 (struct inferior) <m_terminal>: ... this and make private.
286 * main.c (captured_main_1): Adjust.
287 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
288 (mi_cmd_inferior_tty_show): Adjust.
289 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
290 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
291
1776e3e5
NA
2922020-06-26 Nick Alcock <nick.alcock@oracle.com>
293
294 * configure.ac: Add --enable-libctf: handle --disable-static
295 properly.
296 * acinclude.m4: sinclude ../config/enable.m4.
297 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
298 (LIBCTF): Substitute in.
299 (CTF_DEPS): New, likewise.
300 (CLIBS): libctf needs symbols from libbfd: move earlier.
301 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
302 flags.
303 * ctfread.c: Surround in ENABLE_LIBCTF.
304 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
305 * configure: Regenerate.
306 * config.in: Likewise.
307
58373b80
SM
3082020-06-25 Simon Marchi <simon.marchi@efficios.com>
309
310 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
311
277474ee
SM
3122020-06-25 Simon Marchi <simon.marchi@efficios.com>
313
314 * inferior.h (struct inferior) <terminal>: Change type to
315 gdb::unique_xmalloc_ptr<char>.
316 * inferior.c (inferior::~inferior): Don't free inf->terminal.
317 * infcmd.c (set_inferior_io_terminal): Don't free terminal
318 field, adjust to unique pointer.
319 (get_inferior_io_terminal): Adjust to unique pointer.
320
6d74da72
AB
3212020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
322
323 * riscv-tdep.c (riscv_print_registers_info): Loop over all
324 registers, not just the known core set of registers.
325
2e52d038
AB
3262020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
327
328 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
329 fflags, frm, and fcsr registers.
330 (riscv_register_reggroup_p): Remove unknown CSRs from save and
331 restore groups.
332 (riscv_tdesc_unknown_reg): New function.
333 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
334 tdesc_use_registers.
335 * riscv-tdep.h (struct gdbarch_tdep): Add
336 unknown_csrs_first_regnum, unknown_csrs_count,
337 duplicate_fflags_regnum, duplicate_frm_regnum, and
338 duplicate_fcsr_regnum fields.
339
be64fd07
AB
3402020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
341
342 * target-descriptions.c (tdesc_use_registers): Add new parameter a
343 callback, use the callback (when not null) to help number unknown
344 registers.
345 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
346 (tdesc_use_registers): Add extra parameter to declaration.
347
3b9fce96
AB
3482020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
349
350 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
351 in the file.
352 (class riscv_pending_register_alias): Likewise.
353 (riscv_register_feature::register_info): Change 'required_p' field
354 to 'required', and change its type. Add 'check' member function.
355 (riscv_register_feature::register_info::check): Define new member
356 function.
357 (riscv_xreg_feature): Change initialisation of 'required' field.
358 (riscv_freg_feature): Likewise.
359 (riscv_virtual_feature): Likewise.
360 (riscv_csr_feature): Likewise.
361 (riscv_check_tdesc_feature): Take extra parameter, the csr
362 tdesc_feature, rewrite the function to use the new
363 riscv_register_feature::register_info::check function.
364 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
365
865bad26
AB
3662020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
367
368 * features/Makefile: Remove all references to the deleted files
369 below.
370 * features/riscv/32bit-csr.c: Deleted.
371 * features/riscv/32bit-csr.xml: Deleted.
372 * features/riscv/64bit-csr.c: Deleted.
373 * features/riscv/64bit-csr.xml: Deleted.
374 * features/riscv/rebuild-csr-xml.sh: Deleted.
375
ed69cbc8
AB
3762020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
377
378 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
379 whitespace error for declaration of names member variable.
380 (struct riscv_register_feature): Add new prefer_first_name member
381 variable, and fix whitespace error in declaration of registers.
382 (riscv_xreg_feature): Initialize prefer_first_name field.
383 (riscv_freg_feature): Likewise.
384 (riscv_virtual_feature): Likewise.
385 (riscv_csr_feature): Likewise.
386 (riscv_register_name): Expand on comments. Remove register name
387 modifications for CSR and virtual registers.
388
4445e8f5
AB
3892020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
390
391 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
392 errors.
393
767a879e
AB
3942020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
395
396 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
397 riscv-opc.h.
398 (class riscv_pending_register_alias): New class.
399 (riscv_check_tdesc_feature): Take vector of pending aliases and
400 populate it as appropriate.
401 (riscv_setup_register_aliases): Delete.
402 (riscv_gdbarch_init): Create vector of pending aliases and pass it
403 to riscv_check_tdesc_feature in all cases. Use the vector to
404 create the register aliases.
405
bb6e55f3
RO
4062020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
407
408 * sol2-tdep.c (sol2_static_transform_name): Remove.
409 (sol2_init_abi): Don't register it.
410 * gdbarch.sh (static_transform_name): Remove.
411 * gdbarch.c, gdbarch.h: Regenerate.
412
413 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
414 gdbarch_static_transform_name.
415 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
416 * stabsread.c (define_symbol) <'X'>: Remove.
417 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
418 handling.
419 <'V'>: Likewise.
420 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
421 <'S'>: Remove call to gdbarch_static_transform_name.
422
c6d36836
RO
4232020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
424
425 * procfs.c (procfs_pre_trace): New function.
426 (procfs_target::create_inferior): Pass it to fork_inferior.
427
a7e6196b
RO
4282020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
429
430 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
431 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
432 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
433 sol2-tdep.o, sparc-sol2-tdep.o.
434 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
435 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
436 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
437 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
438
d412e696
RO
4392020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
440
441 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
442 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
443 Call sol2_init_abi.
444 Remove calls to set_gdbarch_skip_solib_resolver,
445 set_gdbarch_core_pid_to_str.
446 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
447 (i386_sol2_static_transform_name): Remove.
448 (i386_sol2_init_abi): Call sol2_init_abi.
449 Remove calls to set_gdbarch_sofun_address_maybe_missing,
450 set_gdbarch_static_transform_name,
451 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
452 Use sol2_sigtramp_p.
453 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
454 (sol2_sigtramp_p): New function.
455 (sol2_static_transform_name): New function.
456 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
457 (sol2_init_abi): New function.
458 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
459 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
460 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
461 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
462 (sparc_sol2_static_transform_name): Remove.
463 (sparc32_sol2_init_abi): Call sol2_init_abi.
464 Remove calls to set_gdbarch_sofun_address_maybe_missing,
465 set_gdbarch_static_transform_name,
466 set_gdbarch_skip_solib_resolver,
467 set_gdbarch_core_pid_to_str.
468 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
469 (sparc_sol2_static_transform_name): Remove
470 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
471 call sol2_sigtramp_p.
472 (sparc64_sol2_init_abi): Call sol2_init_abi.
473 Remove calls to set_gdbarch_sofun_address_maybe_missing,
474 set_gdbarch_static_transform_name,
475 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
476
a8654e7d
PW
4772020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
478
479 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
480 * exec.c (validate_exec_file): If from_tty, set both
481 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
482 * symfile.c (symbol_file_add_with_addrs): if always_confirm
483 and from_tty, unconditionally ask a confirmation.
484
caa7fd04
AB
4852020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
486
487 * target-descriptions.c (tdesc_architecture_name): Protect against
488 NULL pointer dereference.
489 (maint_print_xml_tdesc_cmd): New function.
490 (_initialize_target_descriptions): Register new 'maint print
491 xml-tdesc' command and give it the filename completer.
492 * NEWS: Mention new 'maint print xml-tdesc' command.
493
fbf42f4e
AB
4942020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
495
496 * target-descriptions.c (class tdesc_compatible_info): New class.
497 (struct target_desc): Change type of compatible vector.
498 (tdesc_compatible_p): Update for change in type of
499 target_desc::compatible.
500 (tdesc_compatible_info_list): New function.
501 (tdesc_compatible_info_arch_name): New function.
502 (tdesc_add_compatible): Update for change in type of
503 target_desc::compatible.
504 (print_c_tdesc::visit_pre): Likewise.
505
20821f4e
AB
5062020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
507
508 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
509 whitespace to underscore.
510 (maint_print_c_tdesc_cmd): Use fake filename for target
511 descriptions that came from the target.
512 (_initialize_target_descriptions): Add filename command completion
513 for 'maint print c-tdesc'.
514
1fb5ee62
SM
5152020-06-23 Simon Marchi <simon.marchi@efficios.com>
516
517 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
518 lines.
519
fc3ecb3e
SM
5202020-06-23 Simon Marchi <simon.marchi@efficios.com>
521
522 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
523 lines.
524 (dwarf2_find_location_expression): Likewise.
525 (call_site_parameter_matches): Likewise.
526 (dwarf2_compile_expr_to_ax): Likewise.
527 (disassemble_dwarf_expression): Likewise.
528 (loclist_describe_location): Likewise.
529
236ef034
PA
5302020-06-23 Pedro Alves <palves@redhat.com>
531
532 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
533 progspace-and-thread.h. Include scoped-mock-context.h instead.
534 (register_to_value_test): Use scoped_mock_context.
535 * regcache.c: Include "scoped-mock-context.h".
536 (cooked_read_test): Don't error out if a target is already pushed.
537 Use scoped_mock_context. Adjust.
538 * scoped-mock-context.h: New file.
539
39e7ecca
AB
5402020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
541
542 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
543 initializer.
544 (ada_language::is_string_type_p): New member function.
545 * c-lang.c (c_language_data): Delete la_is_string_type_p
546 initializer.
547 (cplus_language_data): Likewise.
548 (asm_language_data): Likewise.
549 (minimal_language_data): Likewise.
550 * d-lang.c (d_language_data): Likewise.
551 * f-lang.c (f_is_string_type_p): Delete function, implementation
552 moved to f_language::is_string_type_p.
553 (f_language_data): Delete la_is_string_type_p initializer.
554 (f_language::is_string_type_p): New member function,
555 implementation from f_is_string_type_p.
556 * go-lang.c (go_is_string_type_p): Delete function, implementation
557 moved to go_language::is_string_type_p.
558 (go_language_data): Delete la_is_string_type_p initializer.
559 (go_language::is_string_type_p): New member function,
560 implementation from go_is_string_type_p.
561 * language.c (language_defn::is_string_type_p): Define new member
562 function.
563 (default_is_string_type_p): Make static, add comment copied from
564 header file.
565 (unknown_language_data): Delete la_is_string_type_p initializer.
566 (unknown_language::is_string_type_p): New member function.
567 (auto_language_data): Delete la_is_string_type_p initializer.
568 (auto_language::is_string_type_p): New member function.
569 * language.h (language_data): Delete la_is_string_type_p field.
570 (language_defn::is_string_type_p): Declare new function.
571 (default_is_string_type_p): Delete desclaration, move comment to
572 definition.
573 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
574 moved to m2_language::is_string_type_p.
575 (m2_language_data): Delete la_is_string_type_p initializer.
576 (m2_language::is_string_type_p): New member function,
577 implementation from m2_is_string_type_p.
578 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
579 initializer.
580 * opencl-lang.c (opencl_language_data): Likewise.
581 * p-lang.c (pascal_is_string_type_p): Delete function,
582 implementation moved to pascal_language::is_string_type_p.
583 (pascal_language_data): Delete la_is_string_type_p initializer.
584 (pascal_language::is_string_type_p): New member function,
585 implementation from pascal_is_string_type_p.
586 * rust-lang.c (rust_is_string_type_p): Delete function,
587 implementation moved to rust_language::is_string_type_p.
588 (rust_language_data): Delete la_is_string_type_p initializer.
589 (rust_language::is_string_type_p): New member function,
590 implementation from rust_is_string_type_p.
591 * valprint.c (val_print_scalar_or_string_type_p): Update call to
592 is_string_type_p.
593
4ffc13fb
AB
5942020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
595
596 * ada-lang.c (ada_language_data): Delete la_print_typedef
597 initializer.
598 (ada_language::print_typedef): New member function.
599 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
600 (cplus_language_data): Likewise.
601 (asm_language_data): Likewise.
602 (minimal_language_data): Likewise.
603 * d-lang.c (d_language_data): Likewise.
604 * f-lang.c (f_language_data): Likewise.
605 (f_language::print_typedef): New member function.
606 * go-lang.c (go_language_data): Delete la_print_typedef
607 initializer.
608 * language.c (language_defn::print_typedef): Define member
609 function.
610 (unknown_language_data): Delete la_print_typedef initializer.
611 (unknown_language::print_typedef): New member function.
612 (auto_language_data): Delete la_print_typedef initializer.
613 (auto_language::print_typedef): New member function.
614 * language.h (language_data): Delete la_print_typedef field.
615 (language_defn::print_typedef): Declare new member function.
616 (LA_PRINT_TYPEDEF): Update call to print_typedef.
617 (default_print_typedef): Delete declaration.
618 * m2-lang.c (m2_language_data): Delete la_print_typedef
619 initializer.
620 (m2_language::print_typedef): New member function.
621 * objc-lang.c (objc_language_data): Delete la_print_typedef
622 initializer.
623 * opencl-lang.c (opencl_language_data): Likewise.
624 * p-lang.c (pascal_language_data): Likewise.
625 (pascal_language::print_typedef): New member function.
626 * rust-lang.c (rust_print_typedef): Delete function,
627 implementation moved to rust_language::print_typedef.
628 (rust_language): Delete la_print_typedef initializer.
629 (rust_language::print_typedef): New member function,
630 implementation from rust_print_typedef.
631 * typeprint.c (default_print_typedef): Delete.
632
d711ee67
AB
6332020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
634
635 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
636 (ada_language::printstr): New member function.
637 * c-lang.c (c_language_data): Delete la_printstr initializer.
638 (cplus_language_data): Likewise.
639 (asm_language_data): Likewise.
640 (minimal_language_data): Likewise.
641 * d-lang.c (d_language_data): Likewise.
642 * f-lang.c (f_printstr): Rename to f_language::printstr.
643 (f_language_data): Delete la_printstr initializer.
644 (f_language::printstr): New member function, implementation from
645 f_printstr.
646 * go-lang.c (go_language_data): Delete la_printstr initializer.
647 * language.c (language_defn::printstr): Define new member
648 function.
649 (unk_lang_printstr): Delete.
650 (unknown_language_data): Delete la_printstr initializer.
651 (unknown_language::printstr): New member function.
652 (auto_language_data): Delete la_printstr initializer.
653 (auto_language::printstr): New member function.
654 * language.h (language_data): Delete la_printstr field.
655 (language_defn::printstr): Declare new member function.
656 (LA_PRINT_STRING): Update call to printstr.
657 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
658 (m2_language_data): Delete la_printstr initializer.
659 (m2_language::printstr): New member function, implementation from
660 m2_printstr.
661 * objc-lang.c (objc_language_data): Delete la_printstr
662 initializer.
663 * opencl-lang.c (opencl_language_data): Likewise.
664 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
665 (pascal_language_data): Delete la_printstr initializer.
666 (pascal_language::printstr): New member function, implementation
667 from pascal_printstr.
668 * p-lang.h (pascal_printstr): Delete declaration.
669 * rust-lang.c (rust_printstr): Update header comment.
670 (rust_language_data): Delete la_printstr initializer.
671 (rust_language::printstr): New member function.
672
52b50f2c
AB
6732020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
674
675 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
676 (ada_language::printchar): New member function.
677 * c-lang.c (c_language_data): Delete la_printchar initializer.
678 (cplus_language_data): Likewise.
679 (asm_language_data): Likewise.
680 (minimal_language_data): Likewise.
681 * d-lang.c (d_language_data): Likewise.
682 * f-lang.c (f_printchar): Rename to f_language::printchar.
683 (f_language_data): Delete la_printchar initializer.
684 (f_language::printchar): New member function, implementation from
685 f_printchar.
686 * go-lang.c (go_language_data): Delete la_printchar initializer.
687 * language.c (unk_lang_printchar): Delete.
688 (language_defn::printchar): Define new member function.
689 (unknown_language_data): Delete la_printchar initializer.
690 (unknown_language::printchar): New member function.
691 (auto_language_data): Delete la_printchar initializer.
692 (auto_language::printchar): New member function.
693 * language.h (language_data): Delete la_printchar field.
694 (language_defn::printchar): Declare new member function.
695 (LA_PRINT_CHAR): Update call to printchar.
696 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
697 (m2_language::printchar): New member function.
698 * objc-lang.c (objc_language_data): Delete la_printchar
699 initializer.
700 * opencl-lang.c (opencl_language_data): Likewise.
701 * p-lang.c (pascal_language_data): Delete la_printchar
702 initializer.
703 (pascal_language::printchar): New member function.
704 * rust-lang.c (rust_printchar): Rename to
705 rust_language::printchar.
706 (rust_language_data): Delete la_printchar initializer.
707 (rust_language::printchar): New member function, implementation
708 from rust_printchar.
709
ec8cec5b
AB
7102020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
711
712 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
713 (ada_language_data): Delete la_emitchar initializer.
714 (ada_language::emitchar): New member function, implementation from
715 emit_char.
716 * c-lang.c (c_language_data): Delete la_emitchar initializer.
717 (cplus_language_data): Likewise.
718 (asm_language_data): Likewise.
719 (minimal_language_data): Likewise.
720 * d-lang.c (d_language_data): Likewise.
721 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
722 (f_language_data): Delete la_emitchar initializer.
723 (f_language::emitchar): New member function, implementation from
724 f_emit_char.
725 * go-lang.c (go_language_data): Delete la_emitchar initializer.
726 * language.c (unk_lang_emit_char): Delete.
727 (language_defn::emitchar): New member function definition.
728 (unknown_language_data): Delete la_emitchar initializer.
729 (unknown_language::emitchar): New member function.
730 (auto_language_data): Delete la_emitchar initializer.
731 (auto_language::emitchar): New member function.
732 * language.h (language_data): Delete la_emitchar field.
733 (language_defn::emitchar): New member field declaration.
734 (LA_EMIT_CHAR): Update call to emitchar.
735 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
736 (m2_language_data): Delete la_emitchar initializer.
737 (m2_language::emitchar): New member function, implementation from
738 m2_emit_char.
739 * objc-lang.c (objc_language_data): Delete la_emitchar
740 initializer.
741 * opencl-lang.c (opencl_language_data): Likewise.
742 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
743 (pascal_language_data): Delete la_emitchar initializer.
744 (pascal_language::emitchar): New member function, implementation
745 from pascal_emit_char.
746 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
747 (rust_language_data): Delete la_emitchar initializer.
748 (rust_language::emitchar): New member function, implementation
749 from rust_emitchar.
750
1bf9c363
AB
7512020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
752
753 * ada-lang.c (resolve): Rename to ada_language::post_parser.
754 (ada_language_data): Delete la_post_parser initializer.
755 (ada_language::post_parser): New member function.
756 * c-lang.c (c_language_data): Delete la_post_parser initializer.
757 (cplus_language_data): Likewise.
758 (asm_language_data): Likewise.
759 (minimal_language_data): Likewise.
760 * d-lang.c (d_language_data): Likewise.
761 * f-lang.c (f_language_data): Likewise.
762 * go-lang.c (go_language_data): Likewise.
763 * language.c (unknown_language_data): Likewise.
764 (auto_language_data): Likewise.
765 * language.h (language_data): Delete la_post_parser field.
766 (language_defn::post_parser): New member function.
767 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
768 * objc-lang.c (objc_language_data): Likewise.
769 * opencl-lang.c (opencl_language_data): Likewise.
770 * p-lang.c (pascal_language_data): Likewise.
771 * parse.c (parse_exp_in_context): Update call to post_parser.
772 (null_post_parser): Delete definition.
773 * parser-defs.h (null_post_parser): Delete declaration.
774 * rust-lang.c (rust_language_data): Delete la_post_parser
775 initializer.
776
87afa652
AB
7772020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
778
779 * ada-lang.c (parse): Rename to ada_language::parser.
780 (ada_language_data): Delete la_parser initializer.
781 (ada_language::parser): New member function, implementation from
782 parse.
783 * c-lang.c (c_language_data): Delete la_parser initializer.
784 (cplus_language_data): Likewise.
785 (asm_language_data): Likewise.
786 (minimal_language_data): Likewise.
787 * d-lang.c (d_language_data): Likewise.
788 (d_language::parser): New member function.
789 * f-lang.c (f_language_data): Delete la_parser initializer.
790 (f_language::parser): New member function.
791 * go-lang.c (go_language_data): Delete la_parser initializer.
792 (go_language::parser): New member function.
793 * language.c (unk_lang_parser): Delete.
794 (language_defn::parser): Define new member function.
795 (unknown_language_data): Delete la_parser initializer.
796 (unknown_language::parser): New member function.
797 (auto_language_data): Delete la_parser initializer.
798 (auto_language::parser): New member function.
799 * language.h (language_data): Delete la_parser field.
800 (language_defn::parser): Declare new member function.
801 * m2-lang.c (m2_language_data): Delete la_parser initializer.
802 (m2_language::parser): New member function.
803 * objc-lang.c (objc_language_data): Delete la_parser initializer.
804 * opencl-lang.c (opencl_language_data): Likewise.
805 * p-lang.c (pascal_language_data): Likewise.
806 (pascal_language::parser): New member function.
807 * parse.c (parse_exp_in_context): Update call to parser.
808 * rust-lang.c (rust_language_data): Delete la_parser initializer.
809 (rust_language::parser): New member function.
810
37825800
AB
8112020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
812
813 * top.c (print_gdb_configuration): Print --with-python-libdir
814 configuration value.
815
5b860c93
PW
8162020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
817
818 * NEWS: Mention change to the alias command.
819
cf00cd6f
PW
8202020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
821
822 * cli/cli-cmds.c (lookup_cmd_for_default_args)
823 (alias_command_completer)
824 (make_alias_options_def_group): New functions.
825 (alias_opts, alias_option_defs): New struct and array.
826 (alias_usage_error): Update usage.
827 (alias_command): Handles optional DEFAULT-ARGS... arguments.
828 Use option framework.
829 (_initialize_cli_cmds): Update alias command help.
830 Update aliases command help.
831 (show_user):
832 Add NULL for new default_args lookup_cmd argument.
833 (valid_command_p): Rename to validate_aliased_command.
834 Add NULL for new default_args lookup_cmd argument. Verify that the
835 aliased_command has no default args.
836 * cli/cli-decode.c (help_cmd): Show aliases definitions.
837 (lookup_cmd_1, lookup_cmd): New argument default_args.
838 (add_alias_cmd):
839 Add NULL for new default_args lookup_cmd argument.
840 (print_help_for_command): Show default args under the layout
841 alias some_alias = some_aliased_cmd some_alias_default_arg.
842 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
843 xfree default_args in destructor.
844 * cli/cli-script.c (process_next_line, do_define_command):
845 Add NULL for new default_args lookup_cmd argument.
846 * command.h: Declare new default_args argument in lookup_cmd
847 and lookup_cmd_1.
848 * completer.c (complete_line_internal_1):
849 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
850 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
851 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
852 Likewise.
853 * infcmd.c (_initialize_infcmd): Likewise.
854 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
855 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
856 * python/py-param.c (add_setshow_generic): Likewise.
857 * remote.c (_initialize_remote): Likewise.
858 * top.c (execute_command): Prepend default_args if command has some.
859 (set_verbose):
860 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
861 * tracepoint.c (validate_actionline, encode_actions_1):
862 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
863
bd920864
TBA
8642020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
865
866 * jit.c (jit_read_descriptor): Use bool as the return type.
867 (jit_breakpoint_re_set_internal): Use bool as the return type.
868 Invert the return value logic; return true if the jit breakpoint
869 has been successfully initialized.
870 (jit_inferior_init): Update the call to
871 jit_breakpoint_re_set_internal.
872
f8098322
PA
8732020-06-22 Pedro Alves <palves@redhat.com>
874
875 PR gdb/25939
876 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
877 Use the current inferior instead. Don't return
878 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
879 wait again.
880 * sol-thread.c (sol_thread_target::wait): Don't reference
881 inferior_ptid.
882 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
883 (sol_update_thread_list_callback): Use the current inferior's pid
884 instead of inferior_ptid.
885
196535a6
RO
8862020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
887
888 * procfs.c: Cleanup many comments.
889
890 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
891 (AFTER_WATCHFLAG): Replace by value.
892
893 (MAIN_PROC_NAME_FORMAT): Inline ...
894 (create_procinfo): ... here.
895
896 (procfs_debug_inferior): Remove SYS_exec handling.
897 (syscall_is_exec): Likewise.
898 (procfs_set_exec_trap): Likewise.
899
900 (syscall_is_lwp_exit): Inline in callers.
901 (syscall_is_exit): Likewise.
902 (syscall_is_exec): Likewise.
903 (syscall_is_lwp_create): Likewise.
904
905 (invalidate_cache): Remove #if 0 code.
906
907 (make_signal_thread_runnable): Remove.
908 (procfs_target::resume): Remove #if 0 code.
909
cf6f3e86
RO
9102020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
911
912 PR gdb/25939
913 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
914 call ...
915 (procfs_target::create_inferior): ... here.
916
48e9cc84
PW
9172020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
918
919 * exec.c (validate_exec_file): Ensure the build-id is up to
920 date by calling reopen_exec_file (that checks file timestamp
921 to decide to re-read the file).
922
3922b302
PA
9232020-06-18 Pedro Alves <palves@redhat.com>
924
925 PR gdb/25412
926 * gdbthread.h (delete_thread, delete_thread_silent)
927 (find_thread_ptid): Update comments.
928 * thread.c (current_thread_): New global.
929 (is_current_thread): Move higher, and reimplement.
930 (inferior_thread): Reimplement.
931 (set_thread_exited): Use bool. Add assertions.
932 (add_thread_silent): Simplify thread-reuse handling by always
933 calling delete_thread.
934 (delete_thread): Remove intro comment.
935 (find_thread_ptid): Skip exited threads.
936 (switch_to_thread_no_regs): Write to current_thread_.
937 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
938 INFERIOR_PTID. Clear current_thread_.
939
6dbdab44
PA
9402020-06-18 Pedro Alves <palves@redhat.com>
941
942 * aix-thread.c (pd_update): Use switch_to_thread.
943
2da4b788
PA
9442020-06-18 Pedro Alves <palves@redhat.com>
945
946 * ravenscar-thread.c (ravenscar_thread_target): Update.
947 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
948 (ravenscar_thread_target::add_active_thread): ... this. Don't
949 set m_base_ptid here. Update to avoid referencing inferior_ptid.
950 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
951
50838d1b
PA
9522020-06-18 Pedro Alves <palves@redhat.com>
953
954 * nat/windows-nat.c (current_windows_thread): Remove.
955 * nat/windows-nat.h (current_windows_thread): Remove.
956 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
957 Adjust.
958 (display_selectors): Adjust to fetch the current
959 windows_thread_info based on inferior_ptid.
960 (fake_create_process): No longer write to current_windows_thread.
961 (windows_nat_target::get_windows_debug_event):
962 Don't set inferior_ptid or current_windows_thread.
963 (windows_nat_target::wait): Adjust to not rely on
964 current_windows_thread.
965 (do_initial_windows_stuff): Now a method of windows_nat_target.
966 Switch to the last_ptid thread.
967 (windows_nat_target::attach): Adjust.
968 (windows_nat_target::detach): Use switch_to_no_thread instead of
969 writing to inferior_ptid directly.
970 (windows_nat_target::create_inferior): Adjust.
971
31ce04e9
PA
9722020-06-18 Pedro Alves <palves@redhat.com>
973
974 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
975
1ee1a363
PA
9762020-06-18 Pedro Alves <palves@redhat.com>
977
978 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
979 after creating it, instead of writing to inferior_ptid. Don't
980 write to inferior_ptid.
981
6d350754
PA
9822020-06-18 Pedro Alves <palves@redhat.com>
983
984 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
985
5d971d48
PA
9862020-06-18 Pedro Alves <palves@redhat.com>
987
988 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
989 it, instead of writing to inferior_ptid.
990
86e57d1b
PA
9912020-06-18 Pedro Alves <palves@redhat.com>
992
993 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
994 to inferior_ptid.
995
f2e1c129
PA
9962020-06-18 Pedro Alves <palves@redhat.com>
997
998 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
999 instead of writing to inferior_ptid directly.
1000
60db1b85
PA
10012020-06-18 Pedro Alves <palves@redhat.com>
1002
1003 * corelow.c (core_target::close): Use switch_to_no_thread instead
1004 of writing to inferior_ptid directly.
1005 (add_to_thread_list, core_target_open): Use switch_to_thread
1006 instead of writing to inferior_ptid directly.
1007
fe7d6a8d
PA
10082020-06-18 Pedro Alves <palves@redhat.com>
1009
1010 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
1011 inferior_ptid.
1012 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
1013 inferior_ptid.
1014 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
1015 inferior_ptid directly.
1016 (darwin_nat_target::init_thread_list): Switch to thread, instead
1017 of writing to inferior_ptid.
1018 (darwin_nat_target::attach): Don't write to inferior_ptid.
1019 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
1020
975f8708
PA
10212020-06-18 Pedro Alves <palves@redhat.com>
1022
1023 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
1024 thread.
1025 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
1026 Instead use switch_to_thread.
1027 (gnu_nat_target::detach): Use switch_to_no_thread
1028 instead of writing to inferior_ptid directly. Used passed-in
1029 inferior instead of looking up the inferior by pid.
1030
1a204730
PA
10312020-06-18 Pedro Alves <palves@redhat.com>
1032
1033 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
1034 inferior_ptid.
1035
ebe84f23
PA
10362020-06-18 Pedro Alves <palves@redhat.com>
1037
1038 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
1039 inferior_ptid.
1040 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
1041 thread.
1042 (nto_procfs_target::detach): Avoid referencing
1043 inferior_ptid. Use switch_to_no_thread instead of writing to
1044 inferior_ptid directly.
1045 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
1046 instead of writing to inferior_ptid directly.
1047 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
1048 to thread.
1049
191f02e5
PA
10502020-06-18 Pedro Alves <palves@redhat.com>
1051
1052 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
1053 after creating it, instead of writing to inferior_ptid.
1054 (gdbsim_target_open): Use switch_to_no_thread instead of writing
1055 to inferior_ptid directly.
1056 (gdbsim_target::wait): Don't write to inferior_ptid.
1057
0ac55310
PA
10582020-06-18 Pedro Alves <palves@redhat.com>
1059
1060 * remote.c (remote_target::remote_notice_new_inferior): Use
1061 switch_to_thread instead of writing to inferior_ptid directly.
1062 (remote_target::add_current_inferior_and_thread): Use
1063 switch_to_no_thread instead of writing to inferior_ptid directly.
1064 (extended_remote_target::attach): Use switch_to_inferior_no_thread
1065 and switch_to_thread instead of using set_current_inferior or
1066 writing to inferior_ptid directly.
1067
5233f39b
PA
10682020-06-18 Pedro Alves <palves@redhat.com>
1069
1070 * tracectf.c (ctf_target_open): Switch to added thread instead of
1071 writing to inferior_ptid directly.
1072 (ctf_target::close): Use switch_to_no_thread instead of writing to
1073 inferior_ptid directly.
1074
087e161b
PA
10752020-06-18 Pedro Alves <palves@redhat.com>
1076
1077 * tracefile-tfile.c (tfile_target_open): Don't write to
1078 inferior_ptid directly, instead switch to added thread.
1079 (tfile_target::close): Use switch_to_no_thread instead of writing
1080 to inferior_ptid directly.
1081
7fb43e53
PA
10822020-06-18 Pedro Alves <palves@redhat.com>
1083
1084 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
1085 (procfs_target::detach): Use switch_to_no_thread
1086 instead of writing to inferior_ptid directly.
1087 (do_attach): Change return type to void. Switch to the added
1088 thread.
1089 (procfs_target::create_inferior): Switch to the added thread.
1090 (procfs_do_thread_registers): Don't write to inferior_ptid.
1091
18493a00
PA
10922020-06-18 Pedro Alves <palves@redhat.com>
1093
1094 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
1095 of writing to inferior_ptid.
1096 (scoped_restore_exited_inferior): Delete.
1097 (handle_vfork_child_exec_or_exit): Simplify using
1098 scoped_restore_current_pspace_and_thread. Use switch_to_thread
1099 instead of writing to inferior_ptid.
1100 (THREAD_STOPPED_BY): Delete.
1101 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
1102 (thread_stopped_by_hw_breakpoint): Delete.
1103 (save_waitstatus): Use
1104 scoped_restore_current_thread+switch_to_thread, and call
1105 target_stopped_by_watchpoint instead of
1106 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
1107 instead of thread_stopped_by_sw_breakpoint, and
1108 target_stopped_by_hw_breakpoint instead of
1109 thread_stopped_by_hw_breakpoint.
1110 (handle_inferior_event)
1111 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
1112 inferior_ptid directly, nor
1113 set_current_inferior/set_current_program_space. Use
1114 switch_to_thread / switch_to_inferior_no_thread instead.
1115
a0776b13
PA
11162020-06-18 Pedro Alves <palves@redhat.com>
1117
1118 * target.c (generic_mourn_inferior): Use switch_to_no_thread
1119 instead of writing to inferior_ptid.
1120
6155c136
PA
11212020-06-18 Pedro Alves <palves@redhat.com>
1122
1123 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
1124 added thread.
1125 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
1126 to the added thread.
1127 (inf_ptrace_target::detach_success): Use switch_to_no_thread
1128 instead of writing to inferior_ptid.
1129
c5316fc6
PA
11302020-06-18 Pedro Alves <palves@redhat.com>
1131
1132 * gdbarch-selftests.c: Include "progspace-and-thread.h".
1133 (register_to_value_test): Mock a program_space too. Heap-allocate
1134 the address space. Don't write to inferior_ptid. Use
1135 switch_to_thread instead.
1136
8df01799
PA
11372020-06-18 Pedro Alves <palves@redhat.com>
1138
1139 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
1140 Delete.
1141 (find_signalled_thread()): New, factored out from
1142 linux_make_corefile_notes and adjusted to handle exited threads.
1143 (linux_make_corefile_notes): Adjust to use the new
1144 find_signalled_thread.
1145
41792d68
PA
11462020-06-18 Pedro Alves <palves@redhat.com>
1147
1148 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
1149 of saving/restoring inferior_ptid.
1150
612f258a
TT
11512020-06-17 Tom Tromey <tom@tromey.com>
1152
1153 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
1154 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
1155 declare.
1156 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
1157
efb763a5
SM
11582020-06-15 Simon Marchi <simon.marchi@efficios.com>
1159
1160 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
1161 of partial symtabs.
1162
2951f6c0
SM
11632020-06-17 Simon Marchi <simon.marchi@efficios.com>
1164
1165 * regformats/reg-arm.dat: Remove.
1166 * regformats/reg-bfin.dat: Remove.
1167 * regformats/reg-cris.dat: Remove.
1168 * regformats/reg-crisv32.dat: Remove.
1169 * regformats/reg-m32r.dat: Remove.
1170 * regformats/reg-tilegx.dat: Remove.
1171 * regformats/reg-tilegx32.dat: Remove.
1172
7d458ea5
SM
11732020-06-17 Simon Marchi <simon.marchi@efficios.com>
1174
1175 * features/Makefile (WHICH): Remove arm files.
1176 * regformats/arm/arm-with-iwmmxt.dat: Remove.
1177 * regformats/arm/arm-with-neon.dat: Remove.
1178 * regformats/arm/arm-with-vfpv2.dat: Remove.
1179 * regformats/arm/arm-with-vfpv3.dat: Remove.
1180
3af96c0d
SM
11812020-06-17 Simon Marchi <simon.marchi@efficios.com>
1182
1183 * features/Makefile (XMLTOC): Remove rx.xml.
1184
b25e22fd
PA
11852020-06-17 Pedro Alves <palves@redhat.com>
1186
1187 * gdbthread.h (thread_control_state) <trap_expected> Update
1188 comments.
1189
a78a19b1
AB
11902020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1191
1192 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
1193 ada_language::lookup_symbol_nonlocal.
1194 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
1195 (ada_language::lookup_symbol_nonlocal): New member function,
1196 implementation from ada_lookup_symbol_nonlocal.
1197 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
1198 initializer.
1199 (cplus_language_data): Delete la_lookup_symbol_nonlocal
1200 initializer.
1201 (cplus_language::lookup_symbol_nonlocal): New member function.
1202 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
1203 (minimal_language_data) Likewise.
1204 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
1205 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
1206 initializer.
1207 (d_language::lookup_symbol_nonlocal): New member function.
1208 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
1209 initializer.
1210 (f_language::lookup_symbol_nonlocal): New member function.
1211 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
1212 initializer.
1213 * language.c (unknown_language_data): Likewise.
1214 (auto_language_data): Likewise.
1215 * language.h (language_data): Delete la_lookup_symbol_nonlocal
1216 field.
1217 (language_defn::lookup_symbol_nonlocal): New member function.
1218 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
1219 initializer.
1220 * objc-lang.c (objc_language_data): Likewise.
1221 * opencl-lang.c (opencl_language_data): Likewise.
1222 * p-lang.c (pascal_language_data): Likewise.
1223 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
1224 rust_language::lookup_symbol_nonlocal.
1225 (rust_language_data): Delete la_lookup_symbol_nonlocal
1226 initializer.
1227 (rust_language::lookup_symbol_nonlocal): New member function,
1228 implementation from rust_lookup_symbol_nonlocal.
1229 * symtab.c (lookup_symbol_aux): Update call to
1230 lookup_symbol_nonlocal.
1231 (basic_lookup_symbol_nonlocal): Rename to...
1232 (language_defn::lookup_symbol_nonlocal): ...this, and update
1233 header comment. Remove language_defn parameter, and replace with
1234 uses of `this'.
1235 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
1236
ebe2334e
AB
12372020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1238
1239 * ada-lang.c (ada_language_data): Delete la_value_print_inner
1240 initializer.
1241 (ada_language::value_print_inner): New member function.
1242 * c-lang.c (c_language_data): Delete la_value_print_inner
1243 initializer.
1244 (cplus_language_data): Likewise.
1245 (asm_language_data): Likewise.
1246 (minimal_language_data): Likewise.
1247 * d-lang.c (d_language_data): Likewise.
1248 (d_language::value_print_inner): New member function.
1249 * f-lang.c (f_language_data): Delete la_value_print_inner
1250 initializer.
1251 (f_language::value_print_inner): New member function.
1252 * f-lang.h (f_value_print_innner): Rename to...
1253 (f_value_print_inner): ...this (note spelling of 'inner').
1254 * f-valprint.c (f_value_print_innner): Rename to...
1255 (f_value_print_inner): ...this (note spelling of 'inner').
1256 * go-lang.c (go_language_data): Delete la_value_print_inner
1257 initializer.
1258 (go_language::value_print_inner): New member function.
1259 * language.c (language_defn::value_print_inner): Define new member
1260 function.
1261 (unk_lang_value_print_inner): Delete.
1262 (unknown_language_data): Delete la_value_print_inner initializer.
1263 (unknown_language::value_print_inner): New member function.
1264 (auto_language_data): Delete la_value_print_inner initializer.
1265 (auto_language::value_print_inner): New member function.
1266 * language.h (language_data): Delete la_value_print_inner field.
1267 (language_defn::value_print_inner): Delcare new member function.
1268 * m2-lang.c (m2_language_data): Delete la_value_print_inner
1269 initializer.
1270 (m2_language::value_print_inner): New member function.
1271 * objc-lang.c (objc_language_data): Delete la_value_print_inner
1272 initializer.
1273 * opencl-lang.c (opencl_language_data): Likewise.
1274 * p-lang.c (pascal_language_data): Likewise.
1275 (pascal_language::value_print_inner): New member function.
1276 * rust-lang.c (rust_language_data): Delete la_value_print_inner
1277 initializer.
1278 (rust_language::value_print_inner): New member function.
1279 * valprint.c (do_val_print): Update call to value_print_inner.
1280
a1d1fa3e
AB
12812020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1282
1283 * ada-lang.c (ada_language_data): Delete la_value_print
1284 initializer.
1285 (ada_language::value_print): New member function.
1286 * c-lang.c (c_language_data): Delete la_value_print initializer.
1287 (cplus_language_data): Likewise.
1288 (asm_language_data): Likewise.
1289 (minimal_language_data): Likewise.
1290 * d-lang.c (d_language_data): Likewise.
1291 * f-lang.c (f_language_data): Likewise.
1292 * go-lang.c (go_language_data): Likewise.
1293 * language.c (unk_lang_value_print): Delete.
1294 (language_defn::value_print): Define new member function.
1295 (unknown_language_data): Delete la_value_print initializer.
1296 (unknown_language::value_print): New member function.
1297 (auto_language_data): Delete la_value_print initializer.
1298 (auto_language::value_print): New member function.
1299 * language.h (language_data): Delete la_value_print field.
1300 (language_defn::value_print): Declare new member function.
1301 (LA_VALUE_PRINT): Update call to value_print.
1302 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
1303 * objc-lang.c (objc_language_data): Likewise.
1304 * opencl-lang.c (opencl_language_data): Likewise.
1305 * p-lang.c (pascal_language_data): Likewise.
1306 (pascal_language::value_print): New member function.
1307 * rust-lang.c (rust_language_data): Delete la_value_print
1308 initializer.
1309
f16a9f57
AB
13102020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1311
1312 * ada-lang.c (ada_watch_location_expression): Rename to
1313 ada_language::watch_location_expression.
1314 (ada_language_data): Delete la_watch_location_expression
1315 initializer.
1316 (ada_language::watch_location_expression): New member function,
1317 implementation from ada_watch_location_expression.
1318 * breakpoint.c (watch_command_1): Update call to
1319 watch_location_expression.
1320 * c-lang.c (c_watch_location_expression): Rename to
1321 language_defn::watch_location_expression.
1322 (c_language_data): Delete la_watch_location_expression
1323 initializer.
1324 (cplus_language_data): Likewise.
1325 (asm_language_data): Likewise.
1326 (minimal_language_data): Likewise.
1327 * c-lang.h (c_watch_location_expression): Delete declaration.
1328 * d-lang.c (d_language_data): Delete la_watch_location_expression
1329 initializer.
1330 * f-lang.c (f_language_data): Likewise.
1331 * go-lang.c (go_language_data): Likewise.
1332 * language.c (language_defn::watch_location_expression): Member
1333 function implementation from c_watch_location_expression.
1334 (unknown_language_data): Delete la_watch_location_expression
1335 initializer.
1336 (auto_language_data): Likewise.
1337 * language.h (language_data): Delete la_watch_location_expression
1338 field.
1339 (language_defn::watch_location_expression): Declare new member
1340 function.
1341 * m2-lang.c (m2_language_data): Delete
1342 la_watch_location_expression initializer.
1343 * objc-lang.c (objc_language_data): Likewise.
1344 * opencl-lang.c (opencl_language_data): Likewise.
1345 * p-lang.c (pascal_language_data): Likewise.
1346 * rust-lang.c (rust_watch_location_expression): Rename to
1347 rust_language::watch_location_expression.
1348 (rust_language_data): Delete la_watch_location_expression
1349 initializer.
1350 (rust_language::watch_location_expression): New member function,
1351 implementation from rust_watch_location_expression.
1352
7e56227d
AB
13532020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1354
1355 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
1356 ada_language::collect_symbol_completion_matches.
1357 (ada_language_data): Delete la_collect_symbol_completion_matches
1358 initializer.
1359 (ada_language::collect_symbol_completion_matches): New member
1360 function, implementation from
1361 ada_collect_symbol_completion_matches.
1362 * c-lang.c (c_language_data): Delete
1363 la_collect_symbol_completion_matches initializer.
1364 (cplus_language_data): Likewise.
1365 (asm_language_data): Likewise.
1366 (minimal_language_data): Likewise.
1367 * d-lang.c (d_language_data): Likewise.
1368 * f-lang.c (f_collect_symbol_completion_matches): Rename to
1369 f_language::collect_symbol_completion_matches.
1370 (f_language_data): Delete la_collect_symbol_completion_matches
1371 initializer.
1372 (f_language::collect_symbol_completion_matches) New member
1373 function, implementation from f_collect_symbol_completion_matches.
1374 * go-lang.c (go_language_data): Delete
1375 la_collect_symbol_completion_matches initializer.
1376 * language.c (unknown_language_data): Likewise.
1377 (auto_language_data): Likewise.
1378 * language.h (language_data): Delete
1379 la_collect_symbol_completion_matches field.
1380 (language_defn::collect_symbol_completion_matches): New member
1381 function.
1382 * m2-lang.c (m2_language_data): Delete
1383 la_collect_symbol_completion_matches initializer.
1384 * objc-lang.c (objc_language_data): Likewise.
1385 * opencl-lang.c (opencl_language_data): Likewise.
1386 * p-lang.c (pascal_language_data): Likewise.
1387 * rust-lang.c (rust_language_data): Likewise.
1388 * symtab.c (default_collect_symbol_completion_matches): Delete.
1389 (collect_symbol_completion_matches): Update call to
1390 collect_symbol_completion_matches.
1391 (collect_symbol_completion_matches_type): Likewise.
1392 * symtab.h (default_collect_symbol_completion_matches): Delete
1393 declaration.
1394
53fc67f8
AB
13952020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1396
1397 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
1398 (ada_language_data): Delete la_word_break_characters initializer.
1399 (ada_language::word_break_characters): New member function.
1400 * c-lang.c (c_language_data): Delete la_word_break_characters
1401 initializer.
1402 (cplus_language_data): Likewise.
1403 (asm_language_data): Likewise.
1404 (minimal_language_data): Likewise.
1405 * completer.c: Update global comment.
1406 (advance_to_expression_complete_word_point): Update call to
1407 word_break_characters.
1408 (complete_files_symbols): Likewise.
1409 (complete_line_internal_1): Likewise.
1410 (default_completer_handle_brkchars): Likewise.
1411 (skip_quoted_chars): Likewise.
1412 * d-lang.c (d_language_data): Delete la_word_break_characters
1413 initializer.
1414 * f-lang.c (f_word_break_characters): Delete.
1415 (f_language_data): Delete la_word_break_characters initializer.
1416 (f_language::word_break_characters): New member function.
1417 * go-lang.c (go_language_data): Delete la_word_break_characters
1418 initializer.
1419 * language.c (unknown_language_data): Likewise.
1420 (auto_language_data): Likewise.
1421 * language.h (default_word_break_characters): Move declaration to
1422 earlier in the file.
1423 (language_data): Delete la_word_break_characters field.
1424 (language_defn::word_break_characters): New member function.
1425 * m2-lang.c (m2_language_data): Delete la_word_break_characters
1426 initializer.
1427 * objc-lang.c (objc_language_data): Likewise.
1428 * opencl-lang.c (opencl_language_data): Likewise.
1429 * p-lang.c (pascal_language_data): Likewise.
1430 * rust-lang.c (rust_language_data): Likewise.
1431
c9debfb9
AB
14322020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1433
1434 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
1435 (ada_language_data): Delete la_get_symbol_name_matcher
1436 initializer.
1437 (language_defn::get_symbol_name_matcher_inner): New member
1438 function.
1439 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
1440 initializer.
1441 (cplus_language_data): Likewise.
1442 (cplus_language::get_symbol_name_matcher_inner): New member
1443 function.
1444 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
1445 (minimal_language_data): Likewise.
1446 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
1447 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
1448 initializer.
1449 * dictionary.c (iter_match_first_hashed): Update call to
1450 get_symbol_name_matcher.
1451 (iter_match_next_hashed): Likewise.
1452 (iter_match_next_linear): Likewise.
1453 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
1454 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
1455 initializer.
1456 (f_language::get_symbol_name_matcher_inner): New member function.
1457 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
1458 initializer.
1459 * language.c (default_symbol_name_matcher): Update header comment,
1460 make static.
1461 (language_defn::get_symbol_name_matcher): New definition.
1462 (language_defn::get_symbol_name_matcher_inner): Likewise.
1463 (get_symbol_name_matcher): Delete.
1464 (unknown_language_data): Delete la_get_symbol_name_matcher
1465 initializer.
1466 (auto_language_data): Likewise.
1467 * language.h (language_data): Delete la_get_symbol_name_matcher
1468 field.
1469 (language_defn::get_symbol_name_matcher): New member function.
1470 (language_defn::get_symbol_name_matcher_inner): Likewise.
1471 (default_symbol_name_matcher): Delete declaration.
1472 * linespec.c (find_methods): Update call to
1473 get_symbol_name_matcher.
1474 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
1475 initializer.
1476 * minsyms.c (lookup_minimal_symbol): Update call to
1477 get_symbol_name_matcher.
1478 (iterate_over_minimal_symbols): Likewise.
1479 * objc-lang.c (objc_language_data): Delete
1480 la_get_symbol_name_matcher initializer.
1481 * opencl-lang.c (opencl_language_data): Likewise.
1482 * p-lang.c (pascal_language_data): Likewise.
1483 * psymtab.c (psymbol_name_matches): Update call to
1484 get_symbol_name_matcher.
1485 * rust-lang.c (rust_language_data): Delete
1486 la_get_symbol_name_matcher initializer.
1487 * symtab.c (symbol_matches_search_name): Update call to
1488 get_symbol_name_matcher.
1489 (compare_symbol_name): Likewise.
1490
9a49ad8c
AB
14912020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1492
1493 * ada-lang.c (ada_language_data): Delete la_compute_program
1494 initializer.
1495 * c-lang.c (c_language_data): Likewise.
1496 (c_language::compute_program): New member function.
1497 (cplus_language_data): Delete la_compute_program initializer.
1498 (cplus_language::compute_program): New member function.
1499 (asm_language_data): Delete la_compute_program initializer.
1500 (minimal_language_data): Likewise.
1501 * c-lang.h (c_compute_program): Update comment.
1502 (cplus_compute_program): Likewise.
1503 * compile/compile-c-support.c (c_compute_program): Likewise.
1504 (cplus_compute_program): Likewise.
1505 * compile/compile.c (compile_to_object): Update call to
1506 la_compute_program.
1507 * d-lang.c (d_language_data): Delete la_compute_program
1508 initializer.
1509 * f-lang.c (f_language_data): Likewise.
1510 * go-lang.c (go_language_data): Likewise.
1511 * language.c (unknown_language_data): Likewise.
1512 (auto_language_data): Likewise.
1513 * language.h (language_data): Delete la_compute_program field.
1514 (language_defn::compute_program): New member function.
1515 * m2-lang.c (m2_language_data): Delete la_compute_program
1516 initializer.
1517 * objc-lang.c (objc_language_data): Likewise.
1518 * opencl-lang.c (opencl_language_data): Likewise.
1519 * p-lang.c (pascal_language_data): Likewise.
1520 * rust-lang.c (rust_language_data): Likewise.
1521
eff93b4d
AB
15222020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1523
1524 * ada-lang.c (ada_language_data) Delete
1525 la_class_name_from_physname initializer.
1526 * c-lang.c (c_language_data): Likewise.
1527 (cplus_language_data): Likewise.
1528 (cplus_language::class_name_from_physname): New member function.
1529 (asm_language_data): Delete la_class_name_from_physname
1530 initializer.
1531 (minimal_language_data): Likewise.
1532 * d-lang.c (d_language_data): Likewise.
1533 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
1534 method on language_defn class.
1535 (guess_full_die_structure_name): Likewise.
1536 * f-lang.c (f_language_data): Delete la_class_name_from_physname
1537 initializer.
1538 * go-lang.c (go_language_data): Likewise.
1539 * language.c (language_class_name_from_physname): Delete.
1540 (unk_lang_class_name): Delete.
1541 (unknown_language_data): Delete la_class_name_from_physname
1542 initializer.
1543 (auto_language_data): Likewise.
1544 * language.h (language_data): Delete la_class_name_from_physname
1545 field.
1546 (language_defn::class_name_from_physname): New function.
1547 (language_class_name_from_physname): Delete declaration.
1548 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
1549 initializer.
1550 * objc-lang.c (objc_language_data): Likewise.
1551 * opencl-lang.c (opencl_language_data): Likewise.
1552 * p-lang.c (pascal_language_data): Likewise.
1553 * rust-lang.c (rust_language_data): Likewise.
1554
de543742
TT
15552020-06-16 Tom Tromey <tom@tromey.com>
1556
1557 * tui/tui-data.h (STATUS_NAME): New macro.
1558 * tui/tui-layout.c (tui_remove_some_windows)
1559 (initialize_known_windows, tui_register_window)
1560 (tui_layout_split::remove_windows, initialize_layouts)
1561 (tui_new_layout_command): Don't use hard-coded window names.
1562
a350efd4
TT
15632020-06-16 Tom Tromey <tom@tromey.com>
1564
1565 PR tui/25348:
1566 * tui/tui.c (tui_ensure_readline_initialized): Rename from
1567 tui_initialize_readline. Only run once. Call rl_initialize.
1568 * tui/tui.h (tui_ensure_readline_initialized): Rename from
1569 tui_initialize_readline.
1570 * tui/tui-io.c (tui_setup_io): Call
1571 tui_ensure_readline_initialized.
1572 * tui/tui-interp.c (tui_interp::init): Update.
1573
39ec0490
TT
15742020-06-16 Tom Tromey <tom@tromey.com>
1575
1576 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
1577 Also preserve the status window.
1578
d2d1ea20
TT
15792020-06-16 Tom Tromey <tom@tromey.com>
1580
1581 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
1582 where m_window==nullptr.
1583
66920317
TT
15842020-06-15 Tom Tromey <tromey@adacore.com>
1585
1586 * windows-nat.c (windows_nat::handle_output_debug_string):
1587 Update.
1588 (windows_nat::handle_ms_vc_exception): Update.
1589 * target.h (target_read_string): Change API.
1590 * target.c (target_read_string): Change API.
1591 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
1592 Update.
1593 * solib-frv.c (frv_current_sos): Update.
1594 * solib-dsbt.c (dsbt_current_sos): Update.
1595 * solib-darwin.c (darwin_current_sos): Update.
1596 * linux-thread-db.c (inferior_has_bug): Update.
1597 * expprint.c (print_subexp_standard): Update.
1598 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
1599 (ada_exception_message_1): Update.
1600
a5d871dd
TT
16012020-06-15 Tom Tromey <tromey@adacore.com>
1602
1603 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
1604
670e35fa
TT
16052020-06-15 Tom Tromey <tromey@adacore.com>
1606
1607 * valprint.c (read_string): Update comment.
1608 * target.c (MIN): Remove.
1609 (target_read_string): Rewrite.
1610
f5272a3b
TT
16112020-06-15 Tom Tromey <tromey@adacore.com>
1612
1613 * corefile.c (read_memory_string): Remove.
1614 * ada-valprint.c (ada_value_print_ptr): Update.
1615 * ada-lang.h (ada_tag_name): Change return type.
1616 * ada-lang.c (type_from_tag): Update.
1617 (ada_tag_name_from_tsd): Change return type. Use
1618 target_read_string.
1619 (ada_tag_name): Likewise.
1620 * gdbcore.h (read_memory_string): Don't declare.
1621
2c074f49
HD
16222020-06-14 Hannes Domani <ssbssa@yahoo.de>
1623
1624 * symtab.c (rbreak_command): Ignore Windows drive colon.
1625
6a17d503
SM
16262020-06-12 Simon Marchi <simon.marchi@efficios.com>
1627
1628 * NEWS: Mention removed GDBserver host support.
1629
453c733f
NC
16302020-06-12 Nelson Chu <nelson.chu@sifive.com>
1631
1632 * features/riscv/rebuild-csr-xml.sh: Updated.
1633
2b4e6a3f
TT
16342020-06-11 Tom Tromey <tom@tromey.com>
1635
1636 PR gdb/18318:
1637 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
1638
4412332f
JG
16392020-06-09 Jonny Grant <jg@jguk.org>
16402020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
1641
1642 * main.c (captured_main_1): Don't print new line after help.
1643 (print_gdb_help): add mailing list and IRC channel information
1644 to --help. Add new lines between items in the footer. Remove
1645 quotes around bug url.
1646
2f33032a
KS
16472020-06-11 Keith Seitz <keiths@redhat.com>
1648
1649 PR gdb/21356
1650 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
1651 Resolve typedefs for type length calculations.
1652
7ab96794
TV
16532020-06-10 Tom de Vries <tdevries@suse.de>
1654
1655 PR ada/24713
1656 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
1657 (write_psymbols): Enable .gdb_index for ada.
1658 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
1659 ada.
1660
e5f3ece2
TV
16612020-06-10 Tom de Vries <tdevries@suse.de>
1662
1663 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
1664 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
1665 namei" instead of "const char *name" argument.
1666 (dw2_map_matching_symbols): Use "offset_type namei" variant of
1667 dw2_symtab_iter_init.
1668
940da03e
SM
16692020-06-08 Simon Marchi <simon.marchi@efficios.com>
1670
1671 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
1672 to use type::field and field::type instead.
1673
b6cdac4b
SM
16742020-06-08 Simon Marchi <simon.marchi@efficios.com>
1675
1676 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
1677 to use field::type instead.
1678
5d14b6e5
SM
16792020-06-08 Simon Marchi <simon.marchi@efficios.com>
1680
1681 * gdbtypes.h (struct field) <type, set_type>: New methods.
1682 Rename `type` field to...
1683 <m_type>: ... this. Change references throughout to use type or
1684 set_type methods.
1685 (FIELD_TYPE): Use field::type. Change call sites that modify
1686 the field's type to use field::set_type instead.
1687
3d967001
SM
16882020-06-08 Simon Marchi <simon.marchi@efficios.com>
1689
1690 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
1691 to use type::index_type instead.
1692
262abc0d
SM
16932020-06-08 Simon Marchi <simon.marchi@efficios.com>
1694
1695 * gdbtypes.h (struct type) <index_type, set_index_type>: New
1696 methods.
1697 (TYPE_INDEX_TYPE): Use type::index_type.
1698 * gdbtypes.c (create_array_type_with_stride): Likewise.
1699
82836c92
TT
17002020-06-07 Tom Tromey <tom@tromey.com>
1701
1702 * valprint.c (generic_val_print_float): Remove "embedded_offset"
1703 parameter.
1704 (generic_value_print): Update.
1705
940dace9
AB
17062020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
1707
1708 Revert commit 982a38f60b0.
1709 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
1710
982a38f6
AB
17112020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
1712
1713 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
1714 avoid use after free.
1715
82f06518
TV
17162020-06-05 Tom de Vries <tdevries@suse.de>
1717
1718 * NEWS: Fix typos.
1719
f8c41851
SM
17202020-06-04 Simon Marchi <simon.marchi@efficios.com>
1721
1722 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
1723 the per_bfd object.
1724 (dwarf2_read_debug_names): Likewise.
1725 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
1726 object when re-using a per_bfd object with an index.
1727
f9b5d5ea
TV
17282020-06-03 Tom de Vries <tdevries@suse.de>
1729
1730 PR symtab/26046
1731 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
1732 children for C++.
1733 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
1734 DW_TAG_subprogram.
1735
f6eee2d0
AB
17362020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
1737
1738 * ada-lang.c (ada_language_data): Delete skip_trampoline
1739 initializer.
1740 * c-lang.c (c_language_data): Likewise.
1741 (cplus_language_data): Likewise.
1742 (cplus_language::skip_trampoline): New member function.
1743 (asm_language_data): Delete skip_trampoline initializer.
1744 (minimal_language_data): Likewise.
1745 * d-lang.c (d_language_data): Likewise.
1746 * f-lang.c (f_language_data): Likewise.
1747 * go-lang.c (go_language_data): Likewise.
1748 * language.c (unk_lang_trampoline): Delete function.
1749 (skip_language_trampoline): Update.
1750 (unknown_language_data): Delete skip_trampoline initializer.
1751 (auto_language_data): Likewise.
1752 * language.h (language_data): Delete skip_trampoline field.
1753 (language_defn::skip_trampoline): New function.
1754 * m2-lang.c (m2_language_data): Delete skip_trampoline
1755 initializer.
1756 * objc-lang.c (objc_skip_trampoline): Delete function, move
1757 implementation to objc_language::skip_trampoline.
1758 (objc_language_data): Delete skip_trampoline initializer.
1759 (objc_language::skip_trampoline): New member function with
1760 implementation from objc_skip_trampoline.
1761 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
1762 initializer.
1763 * p-lang.c (pascal_language_data): Likewise.
1764 * rust-lang.c (rust_language_data): Likewise.
1765
0a50df5d
AB
17662020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
1767
1768 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
1769 (ada_language::demangle): New member function.
1770 * c-lang.c (c_language_data): Delete la_demangle initializer.
1771 (cplus_language_data): Delete la_demangle initializer.
1772 (cplus_language::demangle): New member function.
1773 (asm_language_data): Delete la_demangle initializer.
1774 (minimal_language_data): Delete la_demangle initializer.
1775 * d-lang.c (d_language_data): Delete la_demangle initializer.
1776 (d_language::demangle): New member function.
1777 * f-lang.c (f_language_data): Delete la_demangle initializer.
1778 (f_language::demangle): New member function.
1779 * go-lang.c (go_language_data): Delete la_demangle initializer.
1780 (go_language::demangle): New member function.
1781 * language.c (language_demangle): Update.
1782 (unk_lang_demangle): Delete.
1783 (unknown_language_data): Delete la_demangle initializer.
1784 (unknown_language::demangle): New member function.
1785 (auto_language_data): Delete la_demangle initializer.
1786 (auto_language::demangle): New member function.
1787 * language.h (language_data): Delete la_demangle field.
1788 (language_defn::demangle): New function.
1789 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
1790 * objc-lang.c (objc_language_data): Delete la_demangle
1791 initializer.
1792 (objc_language::demangle): New member function.
1793 * opencl-lang.c (opencl_language_data): Delete la_demangle
1794 initializer.
1795 * p-lang.c (pascal_language_data): Likewise.
1796 * rust-lang.c (rust_language_data): Likewise.
1797 (rust_language::demangle): New member function.
1798
fbfb0a46
AB
17992020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
1800
1801 * ada-lang.c (ada_language_data): Delete la_print_type
1802 initializer.
1803 (ada_language::print_type): New member function.
1804 * c-lang.c (c_language_data): Delete la_print_type initializer.
1805 (c_language::print_type): New member function.
1806 (cplus_language_data): Delete la_print_type initializer.
1807 (cplus_language::print_type): New member function.
1808 (asm_language_data): Delete la_print_type initializer.
1809 (asm_language::print_type): New member function.
1810 (minimal_language_data): Delete la_print_type initializer.
1811 (minimal_language::print_type): New member function.
1812 * d-lang.c (d_language_data): Delete la_print_type initializer.
1813 (d_language::print_type): New member function.
1814 * f-lang.c (f_language_data): Delete la_print_type initializer.
1815 (f_language::print_type): New member function.
1816 * go-lang.c (go_language_data): Delete la_print_type initializer.
1817 (go_language::print_type): New member function.
1818 * language.c (unk_lang_print_type): Delete.
1819 (unknown_language_data): Delete la_print_type initializer.
1820 (unknown_language::print_type): New member function.
1821 (auto_language_data): Delete la_print_type initializer.
1822 (auto_language::print_type): New member function.
1823 * language.h (language_data): Delete la_print_type field.
1824 (language_defn::print_type): New function.
1825 (LA_PRINT_TYPE): Update.
1826 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
1827 (m2_language::print_type): New member function.
1828 * objc-lang.c (objc_language_data): Delete la_print_type
1829 initializer.
1830 (objc_language::print_type): New member function.
1831 * opencl-lang.c (opencl_print_type): Delete, implementation moved
1832 to opencl_language::print_type.
1833 (opencl_language_data): Delete la_print_type initializer.
1834 (opencl_language::print_type): New member function, implementation
1835 from opencl_print_type.
1836 * p-lang.c (pascal_language_data): Delete la_print_type
1837 initializer.
1838 (pascal_language::print_type): New member function.
1839 * rust-lang.c (rust_print_type): Delete, implementation moved to
1840 rust_language::print_type.
1841 (rust_language_data): Delete la_print_type initializer.
1842 (rust_language::print_type): New member function, implementation
1843 from rust_print_type.
1844
6f827019
AB
18452020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
1846
1847 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
1848 implementation moves to...
1849 (ada_language::sniff_from_mangled_name): ...here. Update return
1850 type.
1851 (ada_language_data): Delete la_sniff_from_mangled_name
1852 initializer.
1853 * c-lang.c (c_language_data): Likewise.
1854 (cplus_language_data): Likewise.
1855 (cplus_language::sniff_from_mangled_name): New member function,
1856 implementation taken from gdb_sniff_from_mangled_name.
1857 (asm_language_data): Delete la_sniff_from_mangled_name
1858 initializer.
1859 (minimal_language_data): Likewise.
1860 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
1861 implementation moves to cplus_language::sniff_from_mangled_name.
1862 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
1863 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
1864 moves to...
1865 (d_language::sniff_from_mangled_name): ...here.
1866 (d_language_data): Delete la_sniff_from_mangled_name initializer.
1867 * f-lang.c (f_language_data): Likewise.
1868 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
1869 moves to...
1870 (go_language::sniff_from_mangled_name): ...here.
1871 (go_language_data): Delete la_sniff_from_mangled_name initializer.
1872 * language.c (language_sniff_from_mangled_name): Delete.
1873 (unknown_language_data): Delete la_sniff_from_mangled_name
1874 initializer.
1875 (auto_language_data): Likewise.
1876 * language.h (language_data): Delete la_sniff_from_mangled_name
1877 field.
1878 (language_defn::sniff_from_mangled_name): New function.
1879 (language_sniff_from_mangled_name): Delete declaration.
1880 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
1881 field.
1882 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
1883 implementation moves to...
1884 (objc_language::sniff_from_mangled_name): ...here.
1885 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
1886 * opencl-lang.c (opencl_language_data): Likewise.
1887 * p-lang.c (pascal_language_data): Likewise.
1888 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
1889 implementation moves to...
1890 (rust_language::sniff_from_mangled_name): ...here.
1891 (rust_language_data): Delete la_sniff_from_mangled_name
1892 initializer.
1893 * symtab.c (symbol_find_demangled_name): Call
1894 sniff_from_mangled_name member function.
1895
fb8006fd
AB
18962020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
1897
1898 * ada-lang.c (ada_language_data): Delete la_search_name_hash
1899 initializer.
1900 * c-lang.c (c_language_data): Likewise.
1901 (cplus_language_data): Likewise.
1902 (cplus_language::search_name_hash): New member function.
1903 (asm_language_data): Delete la_search_name_hash initializer.
1904 (minimal_language_data): Likewise.
1905 * d-lang.c (d_language_data): Likewise.
1906 * dictionary.c (default_search_name_hash): Rename to...
1907 (language_defn::search_name_hash): ...this.
1908 * f-lang.c (f_language_data): Likewise.
1909 (f_language::search_name_hash): New member function.
1910 * go-lang.c (go_language_data): Delete la_search_name_hash
1911 initializer.
1912 * language.c (unknown_language_data): Likewise.
1913 (auto_language_data): Likewise.
1914 * language.h (struct language_data): Delete la_search_name_hash
1915 field.
1916 (language_defn::search_name_hash): Declare new member function.
1917 (default_search_name_hash): Delete declaration.
1918 * m2-lang.c (m2_language_data): Delete la_search_name_hash
1919 initializer.
1920 * objc-lang.c (objc_language_data): Likewise.
1921 * opencl-lang.c (opencl_language_data): Likewise.
1922 * p-lang.c (pascal_language_data): Likewise.
1923 * rust-lang.c (rust_language_data): Likewise.
1924 * symtab.c (search_name_hash): Update call.
1925
8e25bafe
AB
19262020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
1927
1928 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
1929 initializer.
1930 * c-lang.c (class compile_instance): Declare.
1931 (c_language_data): Delete la_get_compile_instance initializer.
1932 (c_language::get_compile_instance): New member function.
1933 (cplus_language_data): Delete la_get_compile_instance initializer.
1934 (cplus_language::get_compile_instance): New member function.
1935 (asm_language_data): Delete la_get_compile_instance initializer.
1936 (minimal_language_data): Likewise.
1937 * c-lang.h (c_get_compile_context): Update comment.
1938 (cplus_get_compile_context): Update comment.
1939 * compile/compile.c (compile_to_object): Update calls, don't rely
1940 on function pointer being NULL.
1941 * d-lang.c (d_language_data): Delete la_get_compile_instance
1942 initializer.
1943 * f-lang.c (f_language_data): Likewise.
1944 * go-lang.c (go_language_data): Likewise.
1945 * language.c (unknown_language_data): Likewise.
1946 (auto_language_data): Likewise.
1947 * language.h (language_data): Delete la_get_compile_instance field.
1948 (language_defn::get_compile_instance): New member function.
1949 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
1950 initializer.
1951 * objc-lang.c (objc_language_data): Likewise.
1952 * opencl-lang.c (opencl_language_data): Likewise.
1953 * p-lang.c (pascal_language_data): Likewise.
1954 * rust-lang.c (rust_language_data): Likewise.
1955
4009ee92
AB
19562020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
1957
1958 * ada-lang.c (ada_add_all_symbols): Update comment.
1959 (ada_iterate_over_symbols): Delete, move implementation to...
1960 (ada_language::iterate_over_symbols): ...here, a new member
1961 function, rewrite to use range based for loop.
1962 (ada_language_data): Delete la_iterate_over_symbols initializer.
1963 * c-lang.c (c_language_data): Likewise.
1964 (cplus_language_data): Likewise.
1965 (asm_language_data): Likewise.
1966 (minimal_language_data): Likewise.
1967 * d-lang.c (d_language_data): Likewise.
1968 * f-lang.c (f_language_data): Likewise.
1969 * go-lang.c (go_language_data): Likewise.
1970 * language.c (unknown_language_data): Likewise.
1971 (auto_language_data): Likewise.
1972 * language.h (language_data): Delete la_iterate_over_symbols field.
1973 (language_defn::iterate_over_symbols): New member function.
1974 (LA_ITERATE_OVER_SYMBOLS): Update.
1975 * linespec.c (iterate_over_all_matching_symtabs): Update.
1976 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
1977 initializer.
1978 * objc-lang.c (objc_language_data): Likewise.
1979 * opencl-lang.c (opencl_language_data): Likewise.
1980 * p-lang.c (pascal_language_data): Likewise.
1981 * rust-lang.c (rust_language_data): Likewise.
1982
54f4ca46
AB
19832020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
1984
1985 * ada-lang.c (ada_language_data): Delete
1986 la_lookup_transparent_type initializer.
1987 * c-lang.c (c_language_data): Likewise.
1988 (cplus_language_data): Likewise.
1989 (cplus_language::lookup_transparent_type): New member function.
1990 (asm_language_data): Delete la_lookup_transparent_type
1991 initializer.
1992 (minimal_language_data): Likewise.
1993 * d-lang.c (d_language_data): Likewise.
1994 * f-lang.c (f_language_data): Likewise.
1995 * go-lang.c (go_language_data): Likewise.
1996 * language.c (unknown_language_data): Likewise.
1997 (auto_language_data): Likewise.
1998 * language.h (struct language_data): Delete
1999 la_lookup_transparent_type field.
2000 (language_defn::lookup_transparent_type): New member function.
2001 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
2002 initializer.
2003 * objc-lang.c (objc_language_data): Likewise.
2004 * opencl-lang.c (opencl_language_data): Likewise.
2005 * p-lang.c (pascal_language_data): Likewise.
2006 * rust-lang.c (rust_language_data): Likewise.
2007 * symtab.c (symbol_matches_domain): Update call.
2008
1fb314aa
AB
20092020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2010
2011 * ada-lang.c (ada_language_arch_info): Delete function, move
2012 implementation to...
2013 (ada_language::language_arch_info): ...here, a new member
2014 function.
2015 (ada_language_data): Delete la_language_arch_info.
2016 * c-lang.c (c_language_data): Likewise.
2017 (c_language::language_arch_info): New member function.
2018 (cplus_language_arch_info): Delete function, move
2019 implementation to...
2020 (cplus_language::language_arch_info): ...here, a new member
2021 function.
2022 (cplus_language_data): Delete la_language_arch_info.
2023 (asm_language_data): Likewise.
2024 (asm_language::language_arch_info): New member function.
2025 (minimal_language_data): Delete la_language_arch_info.
2026 (minimal_language::language_arch_info): New member function.
2027 * d-lang.c (d_language_arch_info): Delete function, move
2028 implementation to...
2029 (d_language::language_arch_info): ...here, a new member
2030 function.
2031 (d_language_data): Delete la_language_arch_info.
2032 * f-lang.c (f_language_arch_info): Delete function, move
2033 implementation to...
2034 (f_language::language_arch_info): ...here, a new member
2035 function.
2036 (f_language_data): Delete la_language_arch_info.
2037 * go-lang.c (go_language_arch_info): Delete function, move
2038 implementation to...
2039 (go_language::language_arch_info): ...here, a new member
2040 function.
2041 (go_language_data): Delete la_language_arch_info.
2042 * language.c (unknown_language_data): Likewise.
2043 (unknown_language::language_arch_info): New member function.
2044 (auto_language_data): Delete la_language_arch_info.
2045 (auto_language::language_arch_info): New member function.
2046 (language_gdbarch_post_init): Update call to
2047 la_language_arch_info.
2048 * language.h (language_data): Delete la_language_arch_info
2049 function pointer.
2050 (language_defn::language_arch_info): New function.
2051 * m2-lang.c (m2_language_arch_info): Delete function, move
2052 implementation to...
2053 (m2_language::language_arch_info): ...here, a new member
2054 function.
2055 (m2_language_data): Delete la_language_arch_info.
2056 * objc-lang.c (objc_language_arch_info): Delete function, move
2057 implementation to...
2058 (objc_language::language_arch_info): ...here, a new member
2059 function.
2060 (objc_language_data): Delete la_language_arch_info.
2061 * opencl-lang.c (opencl_language_arch_info): Delete function, move
2062 implementation to...
2063 (opencl_language::language_arch_info): ...here, a new member
2064 function.
2065 (opencl_language_data): Delete la_language_arch_info.
2066 * p-lang.c (pascal_language_arch_info): Delete function, move
2067 implementation to...
2068 (pascal_language::language_arch_info): ...here, a new member
2069 function.
2070 (pascal_language_data): Delete la_language_arch_info.
2071 * rust-lang.c (rust_language_arch_info): Delete function, move
2072 implementation to...
2073 (rust_language::language_arch_info): ...here, a new member
2074 function.
2075 (rust_language_data): Delete la_language_arch_info.
2076
48448202
AB
20772020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2078
2079 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
2080 initializer.
2081 * c-lang.c (c_language_data): Likewise.
2082 (cplus_language_data): Likewise.
2083 (cplus_language::pass_by_reference_info): New method.
2084 (asm_language_data): Delete la_pass_by_reference initializer.
2085 (minimal_language_data): Likewise.
2086 * cp-abi.c (cp_pass_by_reference): Remove use of
2087 default_pass_by_reference.
2088 * d-lang.c (d_language_data): Likewise.
2089 * f-lang.c (f_language_data): Likewise.
2090 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
2091 default_pass_by_reference.
2092 * go-lang.c (go_language_data): Likewise.
2093 * language.c (language_pass_by_reference): Update.
2094 (default_pass_by_reference): Delete.
2095 (unknown_language_data): Delete la_pass_by_reference
2096 initializer.
2097 (auto_language_data): Likewise.
2098 * language.h (struct language_data): Delete la_pass_by_reference
2099 field.
2100 (language_defn::pass_by_reference_info): New member function.
2101 (default_pass_by_reference): Delete declaration.
2102 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
2103 initializer.
2104 * objc-lang.c (objc_language_data): Likewise.
2105 * opencl-lang.c (opencl_language_data): Likewise.
2106 * p-lang.c (pascal_language_data): Likewise.
2107 * rust-lang.c (rust_language_data): Likewise.
2108
15e5fd35
AB
21092020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2110
2111 * ada-lang.c (ada_read_var_value): Delete function, move
2112 implementation to...
2113 (ada_language::read_var_value): ...here.
2114 (ada_language_data): Delete la_read_var_value initializer.
2115 * c-lang.c (c_language_data): Likewise.
2116 (cplus_language_data): Likewise.
2117 (minimal_language_data): Likewise.
2118 * d-lang.c (d_language_data): Likewise.
2119 * f-lang.c (f_language_data): Likewise.
2120 * findvar.c (default_read_var_value): Rename to...
2121 (language_defn::read_var_value): ...this.
2122 * findvar.c (read_var_value): Update header comment, and change to
2123 call member function instead of function pointer.
2124 * go-lang.c (go_language_data): Likewise.
2125 * language.c (unknown_language_data): Delete la_read_var_value
2126 initializer.
2127 (auto_language_data): Likewise.
2128 * language.h (struct language_data): Delete la_read_var_value
2129 field.
2130 (language_defn::read_var_value): New member function.
2131 (default_read_var_value): Delete declaration.
2132 * m2-lang.c (m2_language_data): Delete la_read_var_value
2133 initializer.
2134 * objc-lang.c (objc_language_data): Likewise.
2135 * opencl-lang.c (opencl_language_data): Likewise.
2136 * p-lang.c (pascal_language_data): Likewise.
2137 * rust-lang.c (rust_language_data): Likewise.
2138 * value.h (default_read_var_value): Delete declaration.
2139
5bd40f2a
AB
21402020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2141
2142 * ada-lang.c (ada_print_array_index): Delete function, move
2143 implementation to...
2144 (ada_language::print_array_index): ...here.
2145 (ada_language_data): Delete la_print_array_index initializer.
2146 * c-lang.c (c_language_data): Likewise.
2147 (cplus_language_data): Likewise.
2148 (minimal_language_data): Likewise.
2149 * d-lang.c (d_language_data): Likewise.
2150 * f-lang.c (f_language_data): Likewise.
2151 * go-lang.c (go_language_data): Likewise.
2152 * language.c (default_print_array_index): Delete function, move
2153 implementation to...
2154 (language_defn::print_array_index): ...here.
2155 (unknown_language_data): Delete la_print_array_index initializer.
2156 (auto_language_data): Likewise.
2157 * language.h (struct language_data): Delete la_print_array_index
2158 field.
2159 (language_defn::print_array_index): New member function.
2160 (LA_PRINT_ARRAY_INDEX): Update.
2161 (default_print_array_index): Delete declaration.
2162 * m2-lang.c (m2_language_data): Delete la_print_array_index
2163 initializer.
2164 * objc-lang.c (objc_language_data): Likewise.
2165 * opencl-lang.c (opencl_language_data): Likewise.
2166 * p-lang.c (pascal_language_data): Likewise.
2167 * rust-lang.c (rust_language_data): Likewise.
2168
0874fd07
AB
21692020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2170
2171 * gdb/ada-lang.c (ada_language_defn): Convert to...
2172 (ada_language_data): ...this.
2173 (class ada_language): New class.
2174 (ada_language_defn): New static global.
2175 * gdb/c-lang.c (c_language_defn): Convert to...
2176 (c_language_data): ...this.
2177 (class c_language): New class.
2178 (c_language_defn): New static global.
2179 (cplus_language_defn): Convert to...
2180 (cplus_language_data): ...this.
2181 (class cplus_language): New class.
2182 (cplus_language_defn): New static global.
2183 (asm_language_defn): Convert to...
2184 (asm_language_data): ...this.
2185 (class asm_language): New class.
2186 (asm_language_defn): New static global.
2187 (minimal_language_defn): Convert to...
2188 (minimal_language_data): ...this.
2189 (class minimal_language): New class.
2190 (minimal_language_defn): New static global.
2191 * gdb/d-lang.c (d_language_defn): Convert to...
2192 (d_language_data): ...this.
2193 (class d_language): New class.
2194 (d_language_defn): New static global.
2195 * gdb/f-lang.c (f_language_defn): Convert to...
2196 (f_language_data): ...this.
2197 (class f_language): New class.
2198 (f_language_defn): New static global.
2199 * gdb/go-lang.c (go_language_defn): Convert to...
2200 (go_language_data): ...this.
2201 (class go_language): New class.
2202 (go_language_defn): New static global.
2203 * gdb/language.c (unknown_language_defn): Remove declaration.
2204 (current_language): Initialize to nullptr, real initialization is
2205 moved to _initialize_language.
2206 (languages): Delete global.
2207 (language_defn::languages): Define.
2208 (set_language_command): Use language_defn::languages.
2209 (set_language): Likewise.
2210 (range_error): Likewise.
2211 (language_enum): Likewise.
2212 (language_def): Likewise.
2213 (add_set_language_command): Use language_def::languages for the
2214 language list, and language_def to lookup language pointers.
2215 (skip_language_trampoline): Use language_defn::languages.
2216 (unknown_language_defn): Convert to...
2217 (unknown_language_data): ...this.
2218 (class unknown_language): New class.
2219 (unknown_language_defn): New static global.
2220 (auto_language_defn): Convert to...
2221 (auto_language_data): ...this.
2222 (class auto_language): New class.
2223 (auto_language_defn): New static global.
2224 (language_gdbarch_post_init): Use language_defn::languages.
2225 (_initialize_language): Initialize current_language.
2226 * gdb/language.h (struct language_defn): Rename to...
2227 (struct language_data): ...this.
2228 (struct language_defn): New.
2229 (auto_language_defn): Delete.
2230 (unknown_language_defn): Delete.
2231 (minimal_language_defn): Delete.
2232 (ada_language_defn): Delete.
2233 (asm_language_defn): Delete.
2234 (c_language_defn): Delete.
2235 (cplus_language_defn): Delete.
2236 (d_language_defn): Delete.
2237 (f_language_defn): Delete.
2238 (go_language_defn): Delete.
2239 (m2_language_defn): Delete.
2240 (objc_language_defn): Delete.
2241 (opencl_language_defn): Delete.
2242 (pascal_language_defn): Delete.
2243 (rust_language_defn): Delete.
2244 * gdb/m2-lang.c (m2_language_defn): Convert to...
2245 (m2_language_data): ...this.
2246 (class m2_language): New class.
2247 (m2_language_defn): New static global.
2248 * gdb/objc-lang.c (objc_language_defn): Convert to...
2249 (objc_language_data): ...this.
2250 (class objc_language): New class.
2251 (objc_language_defn): New static global.
2252 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
2253 (opencl_language_data): ...this.
2254 (class opencl_language): New class.
2255 (opencl_language_defn): New static global.
2256 * gdb/p-lang.c (pascal_language_defn): Convert to...
2257 (pascal_language_data): ...this.
2258 (class pascal_language): New class.
2259 (pascal_language_defn): New static global.
2260 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
2261 language pointer, update comment format.
2262 * gdb/rust-lang.c (rust_language_defn): Convert to...
2263 (rust_language_data): ...this.
2264 (class rust_language): New class.
2265 (rust_language_defn): New static global.
2266
1313c56e
AB
22672020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
2268
2269 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
2270 member variable.
2271 <m_stmt_at_address>: New member variable.
2272 (lnp_state_machine::record_line): Don't record some lines, update
2273 tracking of is_stmt at the same address.
2274 (lnp_state_machine::lnp_state_machine): Initialise new member
2275 variables.
2276
b7ed9f3d
ST
22772020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
2278
2279 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
2280 "-include gnu-nat-mig.h".
2281 * gnu-nat-mig.h: New file.
2282 * gnu-nat.c: Include "gnu-nat-mig.h".
2283 (exc_server, msg_reply_server, notify_server,
2284 process_reply_server): Remove declarations.
2285
14a8ad62
ST
22862020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2287
2288 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
2289 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
2290 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
2291 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
2292 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
2293 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
2294 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
2295 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
2296 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
2297 to gnu_nat_target class.
2298 * gnu-nat.c: Likewise.
2299 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
2300 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
2301 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
2302 object.
2303 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
2304 instead of `gnu_target'.
2305
0af5e106
ST
23062020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2307
2308 * i386-gnu-tdep.c: Include "gdbcore.h"
2309 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
2310 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
2311 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
2312 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
2313 i386_gnu_sigcontext_addr): New functions
2314 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
2315 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
2316 tdep.
2317
078f2fc9
ST
23182020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2319
2320 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
2321 before fork_inferior call. Avoid calling it if target_is_pushed returns
2322 true.
2323
53dff92c
ST
23242020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2325
2326 * gnu-nat.h (gnu_target): New variable declaration.
2327 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
2328 gnu_target.
2329 * gnu-nat.c (gnu_target): New variable.
2330 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
2331 add_thread_silent, and add_thread calls.
2332 (gnu_nat_target::create_inferior): Pass gnu_target to
2333 add_thread_silent, thread_change_ptid call.
2334 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
2335 call.
2336
5a8b8627
ST
23372020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2338
2339 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
2340 (gnu_nat_target::find_memory_regions): Remove unused
2341 `old_address' variable.
2342
366f550a
ST
23432020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2344
2345 * gnu-nat.c: Include "gdbarch.h".
2346
f14871bf
ST
23472020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2348
2349 * reply_mig_hack.awk (Error return): Cast function through
2350 void *, to bypass compiler function call check.
2351
c6887cfb
ST
23522020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2353
2354 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
2355 $(srcdir)/reply_mig_hack.awk.
2356
6930bffe
ST
23572020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2358
2359 * gnu-nat.h (gnu_debug_flag): Set type to bool.
2360
112c22ed
JG
23612020-05-30 Jonny Grant <jg@jguk.org>
2362
2363 * configure.ac (ACX_BUGURL): change bug URL to https.
2364
f68f85b5
PA
23652020-05-30 Pedro Alves <palves@redhat.com>
2366
2367 * cp-support.c (replace_typedefs_template): New.
2368 (replace_typedefs_qualified_name): Handle
2369 DEMANGLE_COMPONENT_TEMPLATE.
2370
976ca316
SM
23712020-05-29 Simon Marchi <simon.marchi@efficios.com>
2372
2373 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
2374 dwarf2/index-cache.h, dwarf2/index-write.c,
2375 dwarf2/index-write.h, dwarf2/line-header.c,
2376 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
2377 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
2378 variables and fields from `dwarf2_per_objfile` to just
2379 `per_objfile` throughout.
2380
989ade05
SM
23812020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
2382
2383 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
2384 <push_dwarf_reg_entry_value>: Add comment.
2385
c47bae85
KB
23862020-05-28 Kevin Buettner <kevinb@redhat.com>
2387 Keith Seitz <keiths@redhat.com>
2388
2389 * python/python.c (do_start_initialization): Call PyEval_SaveThread
2390 instead of PyEval_ReleaseLock.
2391 (class gdbpy_gil): Move to earlier in file.
2392 (finalize_python): Set gdb_python_initialized.
2393 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
2394 when not initialized.
2395
44486dcf
SM
23962020-05-28 Simon Marchi <simon.marchi@efficios.com>
2397
2398 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
2399 <push_dwarf_reg_entry_value>: Remove assert. Override
2400 per_objfile with caller_per_objfile.
2401
f030440d
TV
24022020-05-28 Tom de Vries <tdevries@suse.de>
2403
2404 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
2405 PR gold/15646 workaround to symbol kind "type".
2406
f0fbb768
TT
24072020-05-27 Tom Tromey <tromey@adacore.com>
2408
2409 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
2410
af0b2a3e
TT
24112020-05-27 Tom Tromey <tromey@adacore.com>
2412
2413 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
2414 Use htab_find_with_hash.
2415 <add_abbrev>: Remove "abbrev_number" parameter.
2416 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
2417 "abbrev_number" parameter. Use htab_find_slot_with_hash.
2418 (hash_abbrev): Add comment.
2419 (abbrev_table::lookup_abbrev): Move to header file.
2420 (abbrev_table::read): Update.
2421
7d00ffec
TT
24222020-05-27 Tom Tromey <tromey@adacore.com>
2423
2424 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
2425 method.
2426 <canonical_name>: New member.
2427 <raw_name>: Rename from "name".
2428 (partial_die_info): Initialize canonical_name.
2429 (scan_partial_symbols): Check raw_name.
2430 (partial_die_parent_scope, partial_die_full_name)
2431 (add_partial_symbol, add_partial_subprogram)
2432 (add_partial_enumeration, load_partial_dies): Use "name" method.
2433 (partial_die_info::name): New method.
2434 (partial_die_info::read, guess_partial_die_structure_name)
2435 (partial_die_info::fixup): Update.
2436
697bba18
TT
24372020-05-27 Tom Tromey <tromey@adacore.com>
2438
2439 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
2440 <get_ref_die_offset>: Inline.
2441 <get_ref_die_offset_complaint>: New method.
2442 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
2443 (attribute::get_ref_die_offset_complaint): Rename from
2444 get_ref_die_offset. Just issue complaint.
2445
c17ace43
HD
24462020-05-27 Hannes Domani <ssbssa@yahoo.de>
2447
2448 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
2449
96445f0b
HD
24502020-05-27 Hannes Domani <ssbssa@yahoo.de>
2451
2452 * exec.c (exec_file_attach): Use errno value of first openp failure.
2453
ac637ec3
HD
24542020-05-27 Hannes Domani <ssbssa@yahoo.de>
2455
2456 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
2457 Don't close thread handle.
2458
17ee85fc
TT
24592020-05-27 Tom Tromey <tom@tromey.com>
2460 Simon Marchi <simon.marchi@efficios.com>
2461
2462 * objfiles.h (struct objfile) <partial_symtabs>: Now a
2463 shared_ptr.
2464 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
2465 member.
2466 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
2467 dwarf2_per_bfd_objfile_data_key>: New globals.
2468 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
2469 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
2470 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
2471 shared.
2472 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
2473 short-circuit when sharing.
2474 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
2475 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
2476
39b16f87
SM
24772020-05-27 Simon Marchi <simon.marchi@efficios.com>
2478
2479 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
2480 to...
2481 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
2482 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
2483
fcf23d5b
SM
24842020-05-27 Simon Marchi <simon.marchi@efficios.com>
2485
2486 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
2487 build_name_components, find_name_components_bounds>:
2488 Add per_objfile parameter.
2489 (struct mapped_index) <symbol_name_at>: Likewise.
2490 (struct mapped_debug_names): Remove constructor.
2491 <dwarf2_per_objfile>: Remove field.
2492 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
2493 (mapped_index_base::find_name_components_bounds,
2494 mapped_index_base::build_name_components,
2495 dw2_expand_symtabs_matching_symbol): Likewise.
2496 (class mock_mapped_index) <symbol_name_at>: Likewise.
2497 (check_match): Likewise.
2498 (check_find_bounds_finds): Likewise.
2499 (test_mapped_index_find_name_component_bounds): Update.
2500 (CHECK_MATCH): Update.
2501 (dw2_expand_symtabs_matching): Update.
2502 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
2503 per_objfile parameter.
2504 <find_vec_in_debug_names>: Likewise.
2505 <m_per_objfile>: New field.
2506 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
2507 parameter.
2508 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
2509 (dw2_debug_names_iterator::next): Update.
2510 (dw2_debug_names_lookup_symbol): Update.
2511 (dw2_debug_names_expand_symtabs_for_function): Update.
2512 (dw2_debug_names_map_matching_symbols): Update.
2513 (dw2_debug_names_expand_symtabs_matching): Update.
2514 (dwarf2_read_debug_names): Update.
2515
7188ed02
SM
25162020-05-27 Simon Marchi <simon.marchi@efficios.com>
2517
2518 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
2519 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
2520 move to dwarf2_per_objfile.
2521 <read_in_chain>: Remove.
2522 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
2523 remove_all_cus, age_comp_units>: New methods.
2524 <m_dwarf2_cus>: New member.
2525 (struct dwarf2_per_cu_data) <cu>: Remove.
2526 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
2527 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
2528 moved to methods of dwarf2_per_objfile.
2529 (dwarf2_clear_marks): Remove.
2530 (dwarf2_queue_item::~dwarf2_queue_item): Update.
2531 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
2532 (dwarf2_per_bfd::free_cached_comp_units): Remove.
2533 (dwarf2_per_objfile::remove_all_cus): New.
2534 (class free_cached_comp_units) <~free_cached_comp_units>:
2535 Update.
2536 (load_cu): Update.
2537 (dw2_do_instantiate_symtab): Adjust.
2538 (fill_in_sig_entry_from_dwo_entry): Adjust.
2539 (cutu_reader::init_tu_and_read_dwo_dies): Update.
2540 (cutu_reader::cutu_reader): Likewise.
2541 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
2542 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
2543 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
2544 and dwarf2_per_objfile::age_comp_units.
2545 (load_partial_comp_unit): Update.
2546 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
2547 (process_queue): Likewise.
2548 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
2549 backlink.
2550 (dwarf2_read_addr_index): Likewise.
2551 (follow_die_offset): Likewise.
2552 (dwarf2_fetch_die_loc_sect_off): Likewise.
2553 (dwarf2_fetch_constant_bytes): Likewise.
2554 (dwarf2_fetch_die_type_sect_off): Likewise.
2555 (follow_die_sig_1): Likewise.
2556 (load_full_type_unit): Likewise.
2557 (read_signatured_type): Likewise.
2558 (dwarf2_cu::dwarf2_cu): Don't set cu field.
2559 (dwarf2_cu::~dwarf2_cu): Remove.
2560 (dwarf2_per_objfile::get_cu): New.
2561 (dwarf2_per_objfile::set_cu): New.
2562 (age_cached_comp_units): Rename to...
2563 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
2564 to std::unordered_map.
2565 (free_one_cached_comp_unit): Rename to...
2566 (dwarf2_per_objfile::remove_cu): ... this. Adjust
2567 to std::unordered_map.
2568 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
2569 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
2570 a dwarf2_per_objfile in data.
2571 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
2572 (dwarf2_clear_marks): Remove.
2573
2e671100
SM
25742020-05-27 Simon Marchi <simon.marchi@efficios.com>
2575
2576 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
2577 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
2578 (init_tu_and_read_dwo_dies): Likewise.
2579 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
2580 (cutu_reader::cutu_reader): Likewise.
2581 (load_partial_comp_unit): Likewise.
2582 (process_psymtab_comp_unit): Update.
2583 (build_type_psymtabs_1): Update.
2584 (process_skeletonless_type_unit): Update.
2585 (load_full_comp_unit): Update.
2586 (find_partial_die): Update.
2587 (dwarf2_read_addr_index): Update.
2588 (read_signatured_type): Update.
2589
2e6a9f79
SM
25902020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2591
2592 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
2593 m_header_read_in>: New fields.
2594 <get_header>: New method.
2595 * dwarf2/read.c (per_cu_header_read_in): Remove.
2596 (dwarf2_per_cu_data::get_header): New.
2597 (dwarf2_per_cu_data::addr_size): Update.
2598 (dwarf2_per_cu_data::offset_size): Update.
2599 (dwarf2_per_cu_data::ref_addr_size): Update.
2600
1b555f17
SM
26012020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2602
2603 * dwarf2/read.c (load_cu): Return dwarf2_cu.
2604 (dw2_do_instantiate_symtab): Update.
2605 (queue_and_load_all_dwo_tus): Change parameter from
2606 dwarf2_per_cu_data to dwarf2_cu.
2607 (dwarf2_fetch_die_loc_sect_off): Update.
2608 (dwarf2_fetch_constant_bytes): Update.
2609 (dwarf2_fetch_die_type_sect_off): Update.
2610
8fc0b21d
SM
26112020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2612
2613 * dwarf2/read.c (process_full_comp_unit,
2614 process_full_type_unit): Remove per_cu, per_objfile paramters.
2615 Add dwarf2_cu parameter.
2616 (process_queue): Update.
2617
168c9250
SM
26182020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2619
2620 * dwarf2/read.c (create_cu_from_index_list): Replace
2621 dwarf2_per_objfile parameter with dwarf2_per_bfd.
2622 (create_cus_from_index_list): Likewise.
2623 (create_cus_from_index): Likewise.
2624 (create_signatured_type_table_from_index): Likewise.
2625 (create_cus_from_debug_names_list): Likewise.
2626 (create_cus_from_debug_names): Likewise.
2627 (dwarf2_read_gdb_index): Update.
2628 (dwarf2_read_debug_names): Update.
2629
e286671b
TT
26302020-05-27 Tom Tromey <tom@tromey.com>
2631 Simon Marchi <simon.marchi@efficios.com>
2632
2633 * dwarf2/read.h (struct dwarf2_per_objfile)
2634 <get_type_for_signatured_type, set_type_for_signatured_type>:
2635 New methods.
2636 <m_type_map>: New member.
2637 (struct signatured_type) <type>: Remove.
2638 * dwarf2/read.c
2639 (dwarf2_per_objfile::get_type_for_signatured_type,
2640 dwarf2_per_objfile::set_type_for_signatured_type): New.
2641 (get_signatured_type): Use new methods.
2642
8adb8487
TT
26432020-05-27 Tom Tromey <tom@tromey.com>
2644 Simon Marchi <simon.marchi@efficios.com>
2645
2646 * dwarf2/read.h (struct type_unit_group_unshareable): New.
2647 (struct dwarf2_per_objfile) <type_units>: New member.
2648 <get_type_unit_group_unshareable>: New method.
2649 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
2650 num_symtabs, symtabs>: Remove; move to
2651 type_unit_group_unshareable.
2652 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
2653 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
2654 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
2655
127bbf4b
SM
26562020-05-27 Simon Marchi <simon.marchi@efficios.com>
2657
2658 * dwarf2/read.h (struct dwarf2_per_cu_data):
2659 <dwarf2_per_objfile>: Remove.
2660 * dwarf2/read.c (create_cu_from_index_list): Don't assign
2661 dwarf2_per_objfile.
2662 (create_signatured_type_table_from_index): Likewise.
2663 (create_signatured_type_table_from_debug_names): Likewise.
2664 (create_debug_type_hash_table): Likewise.
2665 (fill_in_sig_entry_from_dwo_entry): Likewise.
2666 (create_type_unit_group): Likewise.
2667 (read_comp_units_from_section): Likewise.
2668 (create_cus_hash_table): Likewise.
2669
f6e649dd
SM
26702020-05-27 Simon Marchi <simon.marchi@efficios.com>
2671
2672 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
2673 dwarf2_per_cu_data::dwarf2_per_objfile.
2674 (compute_compunit_symtab_includes): Likewise.
2675 (dwarf2_cu::start_symtab): Likewise.
2676
aa66c379
SM
26772020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2678
2679 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
2680 parameter.
2681 * dwarf2/read.c (get_die_type_at_offset): Likewise.
2682 (read_namespace_alias): Update.
2683 (lookup_die_type): Update.
2684 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
2685 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
2686 Update.
2687 (disassemble_dwarf_expression): Update.
2688
120ce1b5
SM
26892020-05-27 Simon Marchi <simon.marchi@efficios.com>
2690
2691 * dwarf2/read.h (struct dwarf2_queue_item): Add
2692 dwarf2_per_objfile parameter, assign new parameter.
2693 <per_objfile>: New field.
2694 * dwarf2/read.c (free_one_cached_comp_unit): Add
2695 dwarf2_per_objfile parameter.
2696 (queue_comp_unit): Likewise.
2697 (dw2_do_instantiate_symtab): Update.
2698 (process_psymtab_comp_unit): Update.
2699 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
2700 (process_imported_unit_die): Update.
2701 (queue_and_load_dwo_tu): Update.
2702 (follow_die_offset): Update.
2703 (follow_die_sig_1): Update.
2704
9f47c707
SM
27052020-05-27 Simon Marchi <simon.marchi@efficios.com>
2706
2707 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
2708 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
2709 (read_call_site_scope): Assign per_objfile.
2710 (dwarf2_per_cu_data::objfile): Remove.
2711 * gdbtypes.h (struct call_site) <per_objfile>: New member.
2712 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
2713 dwarf2_per_objfile parameter.
2714 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
2715 dwarf2_per_objfile parameter.
2716 (dwarf_expr_reg_to_entry_parameter): Add output
2717 dwarf2_per_objfile parameter.
2718 (locexpr_get_frame_base): Update.
2719 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
2720 <push_dwarf_reg_entry_value>: Update.
2721 <call_site_to_target_addr>: Update.
2722 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
2723 parameter.
2724 (value_of_dwarf_reg_entry): Update.
2725 (rw_pieced_value): Update.
2726 (indirect_synthetic_pointer): Update.
2727 (dwarf2_evaluate_property): Update.
2728 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
2729 parameter.
2730 (locexpr_read_variable): Update.
2731 (locexpr_get_symbol_read_needs): Update.
2732 (loclist_read_variable): Update.
2733
14095eb3
SM
27342020-05-27 Simon Marchi <simon.marchi@efficios.com>
2735
2736 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
2737 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
2738 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
2739 parameter.
2740 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
2741 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
2742 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
2743 parameter.
2744 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
2745 sect_variable_value): Add dwarf2_per_objfile parameter.
2746 (class dwarf_evaluate_loc_desc) <dwarf_call,
2747 dwarf_variable_value>: Update.
2748 (fetch_const_value_from_synthetic_pointer): Add
2749 dwarf2_per_objfile parameter.
2750 (fetch_const_value_from_synthetic_pointer): Update.
2751 (coerced_pieced_ref): Update.
2752 (class symbol_needs_eval_context) <dwarf_call,
2753 dwarf_variable_value>: Update.
2754 (dwarf2_compile_expr_to_ax): Update.
2755
3c3cd3d4
SM
27562020-05-27 Simon Marchi <simon.marchi@efficios.com>
2757
2758 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
2759 parameter.
2760 (dwarf2_evaluate_loc_desc_full): Update.
2761
82ca3f51
SM
27622020-05-27 Simon Marchi <simon.marchi@efficios.com>
2763
2764 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
2765 parameter.
2766 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
2767 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
2768 dwarf2_per_objfile parameter.
2769 (decode_debug_loc_dwo_addresses): Likewise.
2770 (dwarf2_find_location_expression): Update.
2771 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
2772 (locexpr_describe_location_piece): Add dwarf2_per_objfile
2773 parameter.
2774 (disassemble_dwarf_expression): Add dwarf2_per_objfile
2775 parameter.
2776 (locexpr_describe_location_1): Likewise.
2777 (locexpr_describe_location): Update.
2778
4b167ea1
SM
27792020-05-27 Simon Marchi <simon.marchi@efficios.com>
2780
2781 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
2782 Remove.
2783 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
2784 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
2785 (dwarf2_compile_property_to_c): Update.
2786 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
2787 use text offset from objfile.
2788 (locexpr_tracepoint_var_ref): Update.
2789 (locexpr_generate_c_location): Update.
2790 (loclist_describe_location): Update.
2791 (loclist_tracepoint_var_ref): Update.
2792 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
2793 dwarf2_per_objfile parameter.
2794 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
2795 use text offset from objfile.
2796 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
2797
89b07335
SM
27982020-05-27 Simon Marchi <simon.marchi@efficios.com>
2799
2800 * dwarf2/expr.h (struct dwarf_expr_context)
2801 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
2802 <offset>: Remove.
2803 <per_objfile>: New member.
2804 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
2805 dwarf2_per_objfile parameter. Don't set offset, set
2806 per_objfile.
2807 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
2808 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
2809 a dwarf2_per_objfile object instead of an offset.
2810 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
2811 constructor.
2812 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
2813 to dwarf2_expr_executor constructor. Don't set offset.
2814 (dwarf2_fetch_cfa_info): Update.
2815 (struct dwarf2_frame_cache) <text_offset>: Remove.
2816 <per_objfile>: New field.
2817 (dwarf2_frame_cache): Update.
2818 (dwarf2_frame_prev_register): Update.
2819 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
2820 <dwarf_evaluate_loc_desc>: Add constructor.
2821 (dwarf2_evaluate_loc_desc_full): Update.
2822 (dwarf2_locexpr_baton_eval): Update.
2823 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
2824 Add constructor.
2825 (dwarf2_loc_desc_get_symbol_read_needs): Update.
2826
293e7e51
SM
28272020-05-27 Simon Marchi <simon.marchi@efficios.com>
2828
2829 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
2830 addr_sized_int_type>: Move to dwarf2_cu.
2831 <int_type>: Move to dwarf2_per_objfile.
2832 (struct dwarf2_per_objfile) <int_type>: Move here.
2833 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
2834 addr_sized_int_type>: Move here.
2835 (read_func_scope): Update.
2836 (read_array_type): Update.
2837 (read_tag_string_type): Update.
2838 (attr_to_dynamic_prop): Update.
2839 (dwarf2_per_cu_data::int_type): Rename to...
2840 (dwarf2_per_objfile::int_type): ... this.
2841 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
2842 (dwarf2_cu::addr_sized_int_type): ... this.
2843 (read_subrange_type): Update.
2844 (dwarf2_per_cu_data::addr_type): Rename to...
2845 (dwarf2_cu::addr_type): ... this.
2846 (set_die_type): Update.
2847
64874a40
SM
28482020-05-27 Simon Marchi <simon.marchi@efficios.com>
2849
2850 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
2851 data through per_cu->cu.
2852
4ab09049
SM
28532020-05-27 Simon Marchi <simon.marchi@efficios.com>
2854
2855 * dwarf2/read.c (lookup_dwo_comp_unit): Change
2856 dwarf2_per_cu_data parameter fo dwarf2_cu.
2857 (lookup_dwo_type_unit): Likewise.
2858 (read_cutu_die_from_dwo): Likewise.
2859 (lookup_dwo_unit): Likewise.
2860 (open_and_init_dwo_file): Likewise.
2861 (lookup_dwo_cutu): Likewise.
2862 (lookup_dwo_comp_unit): Likewise.
2863 (lookup_dwo_type_unit): Likewise.
2864 (cutu_reader::init_tu_and_read_dwo_dies): Update.
2865 (cutu_reader::cutu_reader): Update.
2866
47b14e86
SM
28672020-05-27 Simon Marchi <simon.marchi@efficios.com>
2868
2869 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
2870 parameter.
2871 (process_full_type_unit): Likewise.
2872 (process_queue): Update.
2873
43182c09
SM
28742020-05-27 Simon Marchi <simon.marchi@efficios.com>
2875
2876 * dwarf2/read.c (recursively_compute_inclusions): Add
2877 dwarf2_per_objfile parameter.
2878 (compute_compunit_symtab_includes): Likewise.
2879 (process_cu_includes): Update.
2880
7aa104c4
SM
28812020-05-27 Simon Marchi <simon.marchi@efficios.com>
2882
2883 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
2884 parameter.
2885 (create_type_unit_group): Update.
2886 (process_psymtab_comp_unit_reader): Update.
2887 (build_type_psymtabs_reader): Update.
2888
e3beb21d
SM
28892020-05-27 Simon Marchi <simon.marchi@efficios.com>
2890
2891 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
2892 object through m_this_cu->cu.
2893
d460f660
SM
28942020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2895
2896 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
2897 the info parameter.
2898 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
2899
ab432490
SM
29002020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2901
2902 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
2903 per_objfile parameter.
2904 (load_full_type_unit): Add per_objfile parameter.
2905 (read_signatured_type): Likewise.
2906 (load_full_comp_unit): Likewise.
2907 (load_cu): Likewise.
2908 (dw2_do_instantiate_symtab): Likewise.
2909 (dw2_get_file_names): Likewise.
2910 (dw2_map_symtabs_matching_filename): Update.
2911 (dw_expand_symtabs_matching_file_matcher): Update.
2912 (dw2_map_symbol_filenames): Update.
2913 (process_psymtab_comp_unit): Add per_objfile parameter.
2914 (build_type_psymtabs_1): Update.
2915 (process_skeletonless_type_unit): Update.
2916 (dwarf2_build_psymtabs_hard): Update.
2917 (load_partial_comp_unit): Add per_objfile parameter.
2918 (scan_partial_symbols): Update.
2919 (load_full_comp_unit): Add per_objfile parameter.
2920 (process_imported_unit_die): Update.
2921 (create_cus_hash_table): Update.
2922 (find_partial_die): Update.
2923 (dwarf2_read_addr_index): Update.
2924 (follow_die_offset): Update.
2925 (dwarf2_fetch_die_loc_sect_off): Update.
2926 (dwarf2_fetch_constant_bytes): Update.
2927 (dwarf2_fetch_die_type_sect_off): Update.
2928 (follow_die_sig_1): Update.
2929 (load_full_type_unit): Add per_objfile parameter.
2930 (read_signatured_type): Likewise.
2931
313bad1b
SM
29322020-05-27 Simon Marchi <simon.marchi@efficios.com>
2933
2934 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
2935 of objfile_name.
2936
c3699833
SM
29372020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2938
2939 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
2940 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
2941 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
2942 field.
2943 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
2944 (create_cus_from_index): Update.
2945 (dwarf2_read_gdb_index): Update.
2946 (create_cus_from_debug_names): Update.
2947 (dwarf2_read_debug_names): Update.
2948 (get_abbrev_section_for_cu): Update.
2949 (create_all_comp_units): Update.
2950 (read_attribute_value): Update.
2951 (get_debug_line_section): Update.
2952 * dwarf2/index-cache.c (index_cache::store): Update.
2953 * dwarf2/index-write.c (save_gdb_index_command): Update.
2954 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
2955
1859c670
SM
29562020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2957
2958 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
2959 member.
2960 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
2961 dwarf2_per_cu_data::per_bfd.
2962 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
2963 (create_type_unit_group): Likewise.
2964 (queue_comp_unit): Remove reference to
2965 per_cu->dwarf2_per_objfile.
2966 (maybe_queue_comp_unit): Likewise.
2967 (fill_in_sig_entry_from_dwo_entry): Assign new field.
2968 (create_cus_hash_table): Assign new field.
2969
5e22e966
SM
29702020-05-27 Simon Marchi <simon.marchi@efficios.com>
2971
2972 * dwarf2/read.c: Replace
2973 dwarf2_cu->per_cu->dwarf2_per_objfile references with
2974 dwarf2_cu->per_objfile throughout.
2975
97a1449a
SM
29762020-05-27 Simon Marchi <simon.marchi@efficios.com>
2977
2978 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
2979 parameter, don't use per_cu->dwarf2_per_objfile.
2980 (dw2_instantiate_symtab): Likewise.
2981 (dw2_find_last_source_symtab): Update.
2982 (dw2_map_expand_apply): Update.
2983 (dw2_lookup_symbol): Update.
2984 (dw2_expand_symtabs_for_function): Update.
2985 (dw2_expand_all_symtabs): Update.
2986 (dw2_expand_symtabs_with_fullname): Update.
2987 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
2988 don't use per_cu->dwarf2_per_objfile.
2989 (dw2_expand_marked_cus): Update.
2990 (dw2_find_pc_sect_compunit_symtab): Update.
2991 (dw2_debug_names_lookup_symbol): Update.
2992 (dw2_debug_names_expand_symtabs_for_function): Update.
2993 (dw2_debug_names_map_matching_symbols): Update.
2994 (dwarf2_psymtab::expand_psymtab): Update.
2995
9e021579
SM
29962020-05-27 Simon Marchi <simon.marchi@efficios.com>
2997
2998 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
2999 <per_objfile>: New member.
3000 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
3001 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
3002 call to dwarf2_cu.
3003 (cutu_reader::cutu_reader): Update.
3004 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
3005
ae090bdb
SM
30062020-05-27 Simon Marchi <simon.marchi@efficios.com>
3007
3008 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
3009 struct dwarf2_per_objfile.
3010 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
3011 dwarf2_per_bfd.
3012 * dwarf2/read.c (set_die_type): Update.
3013 (get_die_type_at_offset): Update.
3014
af758d11
SM
30152020-05-27 Tom Tromey <tom@tromey.com>
3016 Simon Marchi <simon.marchi@efficios.com>
3017
3018 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
3019 method.
3020 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
3021 get_symtab, set_symtab>: New methods.
3022 <m_symtabs>: New field.
3023 (struct dwarf2_psymtab): Derive from partial_symtab.
3024 <readin_p, get_compunit_symtab>: Declare methods.
3025 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
3026 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
3027 New methods.
3028 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
3029 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
3030 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
3031 (dw2_symtab_iter_next, dw2_print_stats)
3032 (dw2_expand_symtabs_with_fullname)
3033 (dw2_expand_symtabs_matching_one)
3034 (dw_expand_symtabs_matching_file_matcher)
3035 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
3036 (dw2_debug_names_iterator::next)
3037 (dw2_debug_names_map_matching_symbols)
3038 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
3039 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
3040 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
3041 New methods.
3042 (get_compunit_symtab, process_full_comp_unit)
3043 (process_full_type_unit): Update.
3044 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
3045
5989a64e
SM
30462020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3047
3048 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
3049 then introduce a new dwarf2_per_objfile type.
3050 <read_line_string>: Move to the new dwarf2_per_objfile type.
3051 <objfile>: Likewise.
3052 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
3053 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
3054 dwarf2_per_objfile->per_bfd.
3055 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
3056 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
3057 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
3058 (dwarf2_per_bfd::free_cached_comp_units): ... this.
3059 (dwarf2_has_info): Allocate dwarf2_per_bfd.
3060 (dwarf2_per_objfile::locate_sections): Rename to...
3061 (dwarf2_per_bfd::locate_sections): ... this.
3062 (dwarf2_per_objfile::get_cutu): Rename to...
3063 (dwarf2_per_bfd::get_cutu): ... this.
3064 (dwarf2_per_objfile::get_cu): Rename to...
3065 (dwarf2_per_bfd::get_cu): ... this.
3066 (dwarf2_per_objfile::get_tu): Rename to...
3067 (dwarf2_per_bfd::get_tu): ... this.
3068 (dwarf2_per_objfile::allocate_per_cu): Rename to...
3069 (dwarf2_per_bfd::allocate_per_cu): ... this.
3070 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
3071 (dwarf2_per_bfd::allocate_signatured_type): ... this.
3072 (get_gdb_index_contents_ftype): Change parameter from
3073 dwarf2_per_objfile to dwarf2_per_bfd.
3074 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
3075 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
3076
a50264ba
TT
30772020-05-27 Tom Tromey <tom@tromey.com>
3078 Simon Marchi <simon.marchi@efficios.com>
3079
3080 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
3081 (allocate_piece_closure): Set "per_objfile" member.
3082 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
3083 (locexpr_describe_location, loclist_describe_location): Use new
3084 member.
3085 * dwarf2/read.c (read_call_site_scope)
3086 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
3087 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
3088 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
3089 handle_data_member_location): Set per_objfile member.
3090 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
3091 member.
3092 (struct dwarf2_loclist_baton) <per_objfile>: New member.
3093
d3473f0c
TT
30942020-05-27 Tom Tromey <tom@tromey.com>
3095
3096 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
3097 allocate_signatured_type>: Declare new methods.
3098 <m_num_psymtabs>: New member.
3099 (struct dwarf2_per_cu_data) <index>: New member.
3100 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
3101 (dwarf2_per_objfile::allocate_signatured_type): New methods.
3102 (create_cu_from_index_list): Use allocate_per_cu.
3103 (create_signatured_type_table_from_index)
3104 (create_signatured_type_table_from_debug_names)
3105 (create_debug_type_hash_table, add_type_unit)
3106 (read_comp_units_from_section): Use allocate_signatured_type.
3107
5717c425
TT
31082020-05-27 Tom Tromey <tom@tromey.com>
3109
3110 * psymtab.c (partial_map_expand_apply)
3111 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
3112 (psym_lookup_global_symbol_language)
3113 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
3114 (psym_print_stats, psym_expand_symtabs_for_function)
3115 (psym_map_symbol_filenames, psym_map_matching_symbols)
3116 (psym_expand_symtabs_matching)
3117 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
3118 (maintenance_check_psymtabs): Update.
3119 * psympriv.h (struct partial_symtab) <readin_p,
3120 get_compunit_symtab>: Add objfile parameter.
3121 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
3122 Likewise.
3123 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
3124 get_compunit_symtab>: Likewise.
3125 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
3126
45940949
TT
31272020-05-27 Tom Tromey <tom@tromey.com>
3128
3129 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
3130 member.
3131 * dwarf2/read.c (delete_file_name_entry): Fix comment.
3132 (create_cu_from_index_list)
3133 (create_signatured_type_table_from_index)
3134 (create_signatured_type_table_from_debug_names)
3135 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
3136 (dwarf2_create_include_psymtab)
3137 (create_debug_type_hash_table, add_type_unit)
3138 (create_type_unit_group, read_comp_units_from_section)
3139 (dwarf2_compute_name, create_cus_hash_table)
3140 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
3141 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
3142 obstack.
3143 (dw2_get_real_path): Likewise. Change argument to
3144 dwarf2_per_objfile.
3145
f8c6d152
LM
31462020-05-27 Luis Machado <luis.machado@linaro.org>
3147
3148 PR tdep/26000
3149 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
3150 for ldrd (immediate).
3151
e98d2e6d
PW
31522020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3153
3154 * command.h: Add comment giving the name of class_tui.
3155 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
3156 create the fake command for the help for class_tui.
3157
53a47a3e
TT
31582020-05-26 Tom Tromey <tromey@adacore.com>
3159
3160 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
3161 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
3162 (val_atr): New function.
3163 (value_val_atr): Use it.
3164 * ada-valprint.c (print_optional_low_bound): Change low bound
3165 handling for enums.
3166 (val_print_packed_array_elements): Don't call discrete_position.
3167 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
3168 discrete_position for enum types.
3169 * language.c (default_print_array_index): Change type.
3170 * language.h (struct language_defn) <la_print_array_index>: Add
3171 index_type parameter, change type of index_value.
3172 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
3173 (default_print_array_index): Update.
3174 * valprint.c (maybe_print_array_index): Don't call
3175 value_from_longest. Update.
3176 (value_print_array_elements): Don't call discrete_position.
3177
0bc2354b
TT
31782020-05-26 Tom Tromey <tromey@adacore.com>
3179
3180 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
3181 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
3182
1218a4bf
CDA
31832020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
3184
3185 PR gdb/13519
3186 * avr-tdep.c (avr_integer_to_address): Return data or code
3187 address accordingly to the second 'type' argument of the
3188 function.
3189
92651b1d
MW
31902020-05-25 Michael Weghorn <m.weghorn@posteo.de>
3191
3192 * infcmd.c, inferior.h: (construct_inferior_arguments):
3193 Moved function from here to gdbsupport/common-inferior.{h,cc}
3194
0a4f5f8c
TT
31952020-05-23 Tom Tromey <tom@tromey.com>
3196
3197 Revert commit eca1f90c:
3198 * NEWS: Remove entry for completion styling.
3199 * completer.c (_rl_completion_prefix_display_length): Move
3200 declaration later.
3201 (gdb_fnprint): Revert.
3202 (gdb_display_match_list_1): Likewise.
3203 * cli/cli-style.c (completion_prefix_style)
3204 (completion_difference_style, completion_suffix_style): Remove.
3205 (_initialize_cli_style): Revert.
3206 * cli/cli-style.h (completion_prefix_style)
3207 (completion_difference_style, completion_suffix_style): Don't
3208 declare.
3209
e08bd6c5
PA
32102020-05-24 Pedro Alves <palves@redhat.com>
3211
3212 * symtab.c (completion_list_add_name): Return boolean indication
3213 of whether the symbol matched.
3214 (completion_list_add_symbol): Don't try to remove C++ aliases if
3215 the symbol didn't match in the first place.
3216 * symtab.h (completion_list_add_name): Return bool.
3217
ceacbf6e
SM
32182020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
3219
3220 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
3221 type::field.
3222
26f16254
JB
32232020-05-23 Joel Brobecker <brobecker@adacore.com>
3224
3225 GDB 9.2 released.
3226
eca1f90c
TT
32272020-05-23 Tom Tromey <tom@tromey.com>
3228
3229 * NEWS: Add entry for completion styling.
3230 * completer.c (_rl_completion_prefix_display_length): Move
3231 declaration earlier.
3232 (gdb_fnprint): Use completion_style.
3233 (gdb_display_match_list_1): Likewise.
3234 * cli/cli-style.c (completion_prefix_style)
3235 (completion_difference_style, completion_suffix_style): New
3236 globals.
3237 (_initialize_cli_style): Register new globals.
3238 * cli/cli-style.h (completion_prefix_style)
3239 (completion_difference_style, completion_suffix_style): Declare.
3240
51e2cfa2
PA
32412020-05-23 Pedro Alves <palves@redhat.com>
3242
3243 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
3244 (parse_escape): Use ISDIGIT instead of isdigit.
3245 (puts_debug): Use gdb_isprint instead of isprint.
3246 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
3247 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
3248 ISSPACE instead of isspace.
3249 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
3250 instead of isspace.
3251 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
3252 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
3253 instead of isxdigit and ISDIGIT instead of isdigit.
3254
80fc5e77
SM
32552020-05-22 Simon Marchi <simon.marchi@efficios.com>
3256
3257 * gdbtypes.h (struct type) <field>: New method.
3258 (TYPE_FIELDS): Remove, replace all uses with either type::fields
3259 or type::field.
3260
3cabb6b0
SM
32612020-05-22 Simon Marchi <simon.marchi@efficios.com>
3262
3263 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
3264 (TYPE_FIELDS): Use type::fields. Change all call sites that
3265 modify the propery to use type::set_fields instead.
3266
1f704f76
SM
32672020-05-22 Simon Marchi <simon.marchi@efficios.com>
3268
3269 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
3270 type::num_fields instead.
3271
5e33d5f4
SM
32722020-05-22 Simon Marchi <simon.marchi@efficios.com>
3273
3274 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
3275 methods.
3276 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
3277 that modify the number of fields to use type::set_num_fields
3278 instead.
3279
9392ebb3
TT
32802020-05-22 Tom Tromey <tromey@adacore.com>
3281
3282 * compile/compile-object-load.h (munmap_list_free): Don't
3283 declare.
3284
7c13f4e8
AB
32852020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
3286
3287 * annotate.c (annotate_source_line): Update return type, add call
3288 to update current symtab and line.
3289 * annotate.h (annotate_source_line): Update return type, and
3290 extend header comment.
3291 * source.c (info_line_command): Check annotation_level before
3292 calling annotate_source_line.
3293 * stack.c (print_frame_info): If calling annotate_source_line
3294 returns true, then don't print any other source line information.
3295
aa370940
SM
32962020-05-21 Simon Marchi <simon.marchi@efficios.com>
3297
3298 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
3299
84d53fa9
SM
33002020-05-21 Simon Marchi <simon.marchi@efficios.com>
3301
3302 * coffread.c (patch_type): Remove NULL check before xfree.
3303 * corefile.c (set_gnutarget): Likewise.
3304 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
3305 * exec.c (build_section_table): Likewise.
3306 * remote.c (remote_target::pass_signals): Likewise.
3307 * utils.c (n_spaces): Likewise.
3308 * cli/cli-script.c (document_command): Likewise.
3309 * i386-windows-tdep.c (core_process_module_section): Likewise.
3310 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
3311
9d428aae
SM
33122020-05-20 Simon Marchi <simon.marchi@efficios.com>
3313
3314 * symfile.c (reread_symbols): Clear objfile's section_offsets
3315 vector and section indices, re-compute them by calling
3316 sym_offsets.
3317
250106a7
TT
33182020-05-20 Tom Tromey <tromey@adacore.com>
3319
3320 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
ec16513e 3321 (desc_one_bound, desc_index_type): Compute field name.
250106a7 3322
9a0bacfb
TV
33232020-05-20 Tom de Vries <tdevries@suse.de>
3324
3325 PR symtab/25833
3326 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
3327
7b958a48
AM
33282020-05-20 Alan Modra <amodra@gmail.com>
3329
3330 PR 25993
3331 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
3332 bfd_set_filename.
3333 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
3334 passed to bfd_set_filename.
3335 * symfile-mem.c (add_vsyscall_page): Likewise for string
3336 passed to symbol_file_add_from_memory.
3337 (symbol_file_add_from_memory): Make name param a const char* and
3338 don't strdup.
3339
c7e97679
AM
33402020-05-20 Alan Modra <amodra@gmail.com>
3341
3342 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
3343 rather than accessing bfd->filename directly.
3344 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
3345 and use bfd_section_name.
3346 * dwarf2/frame.c (decode_frame_entry): Likewise.
3347 * exec.c (exec_set_section_address): Likewise.
3348 * solib-aix.c (solib_aix_bfd_open): Likewise.
3349 * stap-probe.c (get_stap_base_address): Likewise.
3350 * symfile.c (reread_symbols): Likewise.
3351
563c591b
TT
33522020-05-19 Tom Tromey <tromey@adacore.com>
3353
3354 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
3355
f408d82c
SM
33562020-05-19 Simon Marchi <simon.marchi@efficios.com>
3357
3358 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
3359
98c59b52
PA
33602020-05-19 Pedro Alves <palves@redhat.com>
3361
3362 * NEWS (set exec-file-mismatch): Adjust entry.
3363 * exec.c: Include "build-id.h".
3364 (validate_exec_file): Try to match build IDs instead of filenames.
3365 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
3366 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
3367 and pass down 'warn_if_slow'.
3368 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
3369 gdb_bfd_open_closure to pass it down.
3370 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
3371
4111f652
PA
33722020-05-19 Pedro Alves <palves@redhat.com>
3373
3374 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
3375 * target.c (target_fileio_open_1): Rename to target_fileio_open
3376 and make extern. Use bool.
3377 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
3378 (target_fileio_read_alloc_1): Adjust.
3379 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
3380 (target_fileio_open_warn_if_slow): Delete declaration.
3381
ad80db5b
PA
33822020-05-19 Pedro Alves <palves@redhat.com>
3383
3384 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
3385 Adjust all callers.
3386
1d6ce4d3
YS
33872020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
3388
3389 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
3390 whether disp is negative.
3391
9005fbbb
SM
33922020-05-19 Simon Marchi <simon.marchi@efficios.com>
3393
3394 * symfile.h (struct symfile_segment_data)
3395 <~symfile_segment_data>: Remove.
3396 <segment_info>: Change to std::vector.
3397 * symfile.c (default_symfile_segments): Update.
3398 * elfread.c (elf_symfile_segments): Update.
3399
68b888ff
SM
34002020-05-19 Simon Marchi <simon.marchi@efficios.com>
3401
3402 * symfile.h (struct symfile_segment_data) <struct segment>: New.
3403 <segments>: New.
3404 <segment_bases, segment_sizes>: Remove.
3405 * symfile.c (default_symfile_segments): Update.
3406 * elfread.c (elf_symfile_segments): Update.
3407 * remote.c (remote_target::get_offsets): Update.
3408 * solib-target.c (solib_target_relocate_section_addresses):
3409 Update.
3410
62982abd
SM
34112020-05-19 Simon Marchi <simon.marchi@efficios.com>
3412
3413 * symfile.h (struct symfile_segment_data): Initialize fields.
3414 <~symfile_segment_data>: Add.
3415 (symfile_segment_data_up): New.
3416 (struct sym_fns) <sym_segments>: Return a
3417 symfile_segment_data_up.
3418 (default_symfile_segments): Return a symfile_segment_data_up.
3419 (free_symfile_segment_data): Remove.
3420 (get_symfile_segment_data): Return a symfile_segment_data_up.
3421 * symfile.c (default_symfile_segments): Likewise.
3422 (get_symfile_segment_data): Likewise.
3423 (free_symfile_segment_data): Remove.
3424 (symfile_find_segment_sections): Update.
3425 * elfread.c (elf_symfile_segments): Return a
3426 symfile_segment_data_up.
3427 * remote.c (remote_target::get_offsets): Update.
3428 * solib-target.c (solib_target_relocate_section_addresses):
3429 Update.
3430 * symfile-debug.c (debug_sym_segments): Return a
3431 symfile_segment_data_up.
3432
7f204339
RO
34332020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3434
e52a0f1b
RO
3435 PR build/25981
3436 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
3437 Hardcode register numbers.
3438
7f204339
RO
3439 PR build/25981
3440 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
3441 procfs_find_LDT_entry): Remove.
3442 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
3443 procfs_find_LDT_entry): Remove.
3444 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
3445 Remove.
3446
7f32a4d5
PA
34472020-05-17 Pedro Alves <palves@redhat.com>
3448 Andrew Burgess <andrew.burgess@embecosm.com>
3449 Keno Fischer <keno@juliacomputing.com>
3450
3451 PR gdb/25741
3452 * breakpoint.c (build_target_condition_list): Update comments.
3453 (build_target_command_list): Update comments and skip matching
3454 locations.
3455 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
3456 a separate function. Simplify "set breakpoint auto-hw off"
3457 handling.
3458 (insert_breakpoints): Update comment.
3459 (tracepoint_locations_match): New parameter. For breakpoints,
3460 compare location types too, if the caller wants to.
3461 (handle_automatic_hardware_breakpoints): New functions.
3462 (bp_location_is_less_than): Also sort by location type and
3463 hardware breakpoint length.
3464 (update_global_location_list): Handle "set breakpoint auto-hw on"
3465 here.
3466 (update_breakpoint_locations): Ask breakpoint_locations_match to
3467 ignore location types.
3468
7d93a1e0
SM
34692020-05-16 Simon Marchi <simon.marchi@efficios.com>
3470
3471 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
3472 type::name instead.
3473
d0e39ea2
SM
34742020-05-16 Simon Marchi <simon.marchi@efficios.com>
3475
3476 * gdbtypes.h (struct type) <name, set_name>: New methods.
3477 (TYPE_CODE): Use type::name. Change all call sites used to set
3478 the name to use type::set_name instead.
3479
2dab0c7b
TT
34802020-05-16 Tom Tromey <tom@tromey.com>
3481
3482 * top.c (quit_force): Update.
3483 * infrun.c (handle_no_resumed): Update.
3484 * top.h (all_uis): New function.
3485 (ALL_UIS): Remove.
3486
59f7bd8d
SM
34872020-05-16 Simon Marchi <simon.marchi@efficios.com>
3488
3489 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
3490
9bf058f0
PA
34912020-05-16 Pedro Alves <palves@redhat.com>
3492
3493 * ia64-linux-nat.c
3494 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
3495 Declare method.
3496 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
3497
8f86ae1a
SM
34982020-05-15 Simon Marchi <simon.marchi@efficios.com>
3499
3500 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
3501 (sparc64_adi_info): Likewise.
3502
d6bc0792
TT
35032020-05-15 Tom Tromey <tom@tromey.com>
3504
3505 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
3506 block_objfile.
3507 (lookup_objfile_from_block): Remove.
3508 (lookup_symbol_in_block, lookup_symbol_in_static_block)
3509 (lookup_global_symbol): Use block_objfile.
3510 * symtab.h (lookup_objfile_from_block): Don't declare.
3511 * printcmd.c (clear_dangling_display_expressions): Use
3512 block_objfile.
3513 * parse.c (operator_check_standard): Use block_objfile.
3514
8c14c3a3
TT
35152020-05-15 Tom Tromey <tom@tromey.com>
3516
3517 * language.c (language_alloc_type_symbol): Set
3518 SYMBOL_SECTION.
3519 * symtab.c (initialize_objfile_symbol): Remove.
3520 (allocate_symbol): Remove.
3521 (allocate_template_symbol): Remove.
3522 * dwarf2/read.c (fixup_go_packaging): Use "new".
3523 (new_symbol): Use "new".
3524 (read_variable): Don't call initialize_objfile_symbol. Use
3525 "new".
3526 (read_func_scope): Use "new".
3527 * xcoffread.c (process_xcoff_symbol): Don't call
3528 initialize_objfile_symbol.
3529 (SYMBOL_DUP): Remove.
3530 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
3531 "new".
3532 * symtab.h (allocate_symbol, initialize_objfile_symbol)
3533 (allocate_template_symbol): Don't declare.
3534 (struct symbol): Add copy constructor. Change defaults.
3535 * jit.c (finalize_symtab): Use "new".
3536 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
3537 Use "new".
3538 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
3539 (common_block_end): Use "new".
3540 * mdebugread.c (parse_symbol): Use "new".
3541 (new_symbol): Likewise.
3542
5b4a1a8d
PW
35432020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3544
3545 * NEWS: Mention changes to help and apropos.
3546
57b4f16e
PW
35472020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3548
3549 * command.h (enum command_class): Improve comments, document
3550 that class_alias is for user-defined aliases, give the class
3551 name for each class, remove unused class_xdb.
3552 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
3553 * breakpoint.c (_initialize_breakpoint): Replace class_alias
3554 by a precise class.
3555 * infcmd.c (_initialize_infcmd): Likewise.
3556 * reverse.c (_initialize_reverse): Likewise.
3557 * stack.c (_initialize_stack): Likewise.
3558 * symfile.c (_initialize_symfile): Likewise.
3559 * tracepoint.c (_initialize_tracepoint): Likewise.
3560
7c05caf7
PW
35612020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3562
3563 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
3564 when their aliased command is traversed.
3565 (help_cmd): Add fput_command_names_styled call to
3566 output command name and aliases when command has an alias.
3567
3b3aaacb
PW
35682020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3569
3570 * cli/cli-decode.h (help_cmd_list): Remove declaration.
3571 * cli/cli-decode.c (help_cmd_list): Declare as static,
3572 remove prefix argument, use bool for recurse arg, rework to show the aliases of
3573 a command together with the command.
3574 (fput_command_name_styled, fput_command_names_styled): New functions.
3575 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
3576 fput_command_name_styled.
3577 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
3578 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
3579
7aa1b46f
PW
35802020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3581
3582 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
3583 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
3584 * command.h (cmd_show_list): Likewise.
3585 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
3586 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
3587
89bcba74
PW
35882020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3589
3590 * unittests/command-def-selftests.c (traverse_command_structure):
3591 Verify all commands of a list have the same prefix command and
3592 that only the top cmdlist commands have a null prefix.
3593
3f4d92eb
PW
35942020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3595
3596 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
3597 as prefix, not one of its aliases.
3598 (set_cmd_prefix): Remove.
3599 (do_add_cmd): Centralize the setting of the prefix of a command, when
3600 command is defined after its full chain of prefix commands.
3601 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
3602 (add_setshow_cmd_full): Likewise.
3603 (update_prefix_field_of_prefixed_commands): New function.
3604 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
3605 update_prefix_field_of_prefixed_commands.
3606 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
3607 addresses of remote_set_cmdlist and remote_show_cmdlist given
3608 as argument, not the address of an argument.
3609 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
3610 * gdb/remote.c (_initialize_remote): Likewise.
3611
0605465f
PW
36122020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3613
3614 * cli/cli-cmds.c (alias_command): Check for an existing alias
3615 using lookup_cmd_composition, as valid_command_p is too strict
3616 and forbids aliases that are the prefix of an existing alias
3617 or command.
3618 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
3619 command is properly recognised as a valid command.
3620
58e6ac70
PW
36212020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3622
3623 * unittests/help-doc-selftests.c: Rename to
3624 unittests/command-def-selftests.c
3625 * unittests/command-def-selftests.c (help_doc_tests): Update some
3626 comments.
3627 (command_structure_tests, traverse_command_structure): New namespace
3628 and function.
3629 (command_structure_invariants_tests): New function.
3630 (_initialize_command_def_selftests) Renamed from
3631 _initialize_help_doc_selftests, register command_structure_invariants
3632 selftest.
3633
a7b9ceb8
PW
36342020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3635
3636 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
3637 an alias of 'show'.
3638
b2188a06
JB
36392020-05-15 Joel Brobecker <brobecker@adacore.com>
3640
3641 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
3642 ada_is_fixed_point_type. Update all callers.
3643 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
3644 all callers.
3645 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
3646 Update all callers.
3647 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
3648 print_fixed_point_type. Update all callers.
3649 * ada-valprint.c (ada_value_print_num): Replace call to
3650 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
3651
a51951c2
KB
36522020-05-14 Kevin Buettner <kevinb@redhat.com>
3653
3654 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
3655 processors.
3656 (cpu_supports_bts): Add CV_AMD case.
3657
29d6859f
LM
36582020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
3659 Simon Marchi <simon.marchi@efficios.com>
3660
3661 * infrun.c (stop_all_threads): Collect multiple wait events at
3662 each pass.
3663
78134374
SM
36642020-05-14 Simon Marchi <simon.marchi@efficios.com>
3665
3666 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
3667 type::code instead.
3668
67607e24
SM
36692020-05-14 Simon Marchi <simon.marchi@efficios.com>
3670
3671 * gdbtypes.h (struct type) <code, set_code>: New methods.
3672 (TYPE_CODE): Use type::code. Change all call sites used to set
3673 the code to use type::set_code instead.
3674
a05575d3
TBA
36752020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3676 Tom de Vries <tdevries@suse.de>
3677 Pedro Alves <palves@redhat.com>
3678
3679 PR threads/25478
3680 * infrun.c (stop_all_threads): Do NOT ignore
3681 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
3682 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
3683 received.
3684 (handle_no_resumed): Remove code handling a live inferior with no
3685 threads.
3686 * remote.c (has_single_non_exited_thread): New.
3687 (remote_target::update_thread_list): Do not delete a thread if is
3688 the last thread of the process.
3689 * thread.c (thread_select): Call delete_exited_threads instead of
3690 prune_threads.
3691
6ad82919
TBA
36922020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3693
3694 * infrun.c (stop_all_threads): Enable/disable thread events of all
3695 targets. Move a debug message denoting the end of the function
3696 into the SCOPED_EXIT block.
3697
d890404b
TBA
36982020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3699
3700 * process-stratum-target.h: Include <set>.
3701 (all_non_exited_process_targets, switch_to_target_no_thread): New
3702 function declarations.
3703 * process-stratum-target.c (all_non_exited_process_targets)
3704 (switch_to_target_no_thread): New function implementations.
3705
293b3ebc
TBA
37062020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3707
3708 * infrun.c (handle_inferior_event): Extract out a piece of code
3709 into...
3710 (mark_non_executing_threads): ...this new function.
3711
7ca9b62a
TBA
37122020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3713
3714 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
3715 use.
3716
fc75c28b
TBA
37172020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3718
3719 * regcache.c (regcache_read_pc_protected): New function
3720 implementation that returns 0 if the PC cannot read via
3721 'regcache_read_pc'.
3722 * infrun.c (proceed): Call 'regcache_read_pc_protected'
3723 instead of 'regcache_read_pc'.
3724 (keep_going_pass_signal): Ditto.
3725
a89febbd
TT
37262020-05-13 Tom Tromey <tromey@adacore.com>
3727
3728 * ada-lang.c (align_value): Remove.
3729 (ada_template_to_fixed_record_type_1): Use align_up.
3730
f7e23710
TBA
37312020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3732
3733 * async-event.c: Update the copyright year.
3734 * async-event.h: Update the copyright year.
3735
02ff80c2
SM
37362020-05-12 Simon Marchi <simon.marchi@efficios.com>
3737
3738 * objfiles.h (is_addr_in_objfile,
3739 shared_objfile_contains_address_p): Return bool.
3740 * objfile.c (is_addr_in_objfile,
3741 shared_objfile_contains_address_p): Return bool.
3742
4fd6c7e8
TT
37432020-05-11 Tom Tromey <tromey@adacore.com>
3744
3745 * cli/cli-cmds.c (info_command): Restore.
3746 (_initialize_cli_cmds): Use add_prefix_command for "info".
3747 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
3748
5eb68a39
TT
37492020-05-11 Tom Tromey <tromey@adacore.com>
3750
3751 * ada-lang.c (ada_value_primitive_field): Now public.
3752 * ada-lang.h (ada_value_primitive_field): Declare.
3753 * ada-valprint.c (print_field_values): Use
3754 ada_value_primitive_field for wrapper fields.
3755
7666722f
TV
37562020-05-11 Tom de Vries <tdevries@suse.de>
3757
3758 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
3759 MODULE_DOMAIN.
3760
3ee6bb11
TV
37612020-05-11 Tom de Vries <tdevries@suse.de>
3762
3763 PR symtab/25941
3764 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
3765 with length 0, if not gdb-produced.
3766 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
3767
43434996
TV
37682020-05-09 Tom de Vries <tdevries@suse.de>
3769
3770 PR gdb/25955
3771 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
3772 calculation.
3773
2f78cffc
TT
37742020-05-09 Tom Tromey <tom@tromey.com>
3775
3776 * top.c (server_command): Now bool.
3777 * top.h (server_command): Now bool.
3778
4f7bc5ed
TT
37792020-05-08 Tom Tromey <tromey@adacore.com>
3780
3781 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
3782 already being processed.
3783
8be4b118
TT
37842020-05-08 Tom Tromey <tom@tromey.com>
3785
3786 * printcmd.c (struct display) <next>: Remove.
3787 <display>: New constructor.
3788 <exp_string>: Now a std::string.
3789 <enabled_p>: Now a bool.
3790 (display_number): Move definition earlier.
3791 (displays): Rename from display_chain. Now a std::vector.
3792 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
3793 (display_command): Update.
3794 (do_one_display, disable_display)
3795 (enable_disable_display_command, do_enable_disable_display):
3796 Update.
3797 (free_display): Remove.
3798 (clear_displays): Rewrite.
3799 (delete_display): Update.
3800 (map_display_numbers): Use function_view. Remove "data"
3801 parameter. Update.
3802 (do_delete_display): Remove.
3803 (undisplay_command): Update.
3804 (do_one_display, do_displays, disable_display)
3805 (info_display_command): Update.
3806 (do_enable_disable_display): Remove.
3807 (enable_disable_display_command)
3808 (clear_dangling_display_expressions): Update.
3809
94c93c35
TT
38102020-05-08 Tom Tromey <tom@tromey.com>
3811
3812 * symtab.c (set_symbol_cache_size)
3813 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
3814 (maintenance_print_symbol_cache_statistics): Update.
3815 * symmisc.c (print_symbol_bcache_statistics)
3816 (print_objfile_statistics, maintenance_print_objfiles)
3817 (maintenance_info_symtabs, maintenance_check_symtabs)
3818 (maintenance_expand_symtabs, maintenance_info_line_tables):
3819 Update.
3820 * symfile-debug.c (set_debug_symfile): Update.
3821 * source.c (forget_cached_source_info): Update.
3822 * python/python.c (gdbpy_progspaces): Update.
3823 * psymtab.c (maintenance_info_psymtabs): Update.
3824 * probe.c (parse_probes): Update.
3825 * linespec.c (iterate_over_all_matching_symtabs)
3826 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
3827 * guile/scm-progspace.c (gdbscm_progspaces): Update.
3828 * exec.c (exec_target::close): Update.
3829 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
3830 * breakpoint.c (print_one_breakpoint_location)
3831 (create_longjmp_master_breakpoint)
3832 (create_std_terminate_master_breakpoint): Update.
3833 * progspace.c (program_spaces): Now a std::vector.
3834 (maybe_new_address_space): Update.
3835 (add_program_space): Remove.
3836 (program_space::program_space): Update.
3837 (remove_program_space): Update.
3838 (number_of_program_spaces): Remove.
3839 (print_program_space, update_address_spaces): Update.
3840 * progspace.h (program_spaces): Change type.
3841 (ALL_PSPACES): Remove.
3842 (number_of_program_spaces): Don't declare.
3843 (struct program_space) <next>: Remove.
3844
a1fd1ac9
TT
38452020-05-08 Tom Tromey <tom@tromey.com>
3846
3847 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
3848 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
3849 (enable_break): Update.
3850 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
3851 (frv_fdpic_find_canonical_descriptor): Update.
3852 (frv_fetch_objfile_link_map): Update.
3853 * progspace.c (program_space::free_all_objfiles): Update.
3854 (program_space::solibs): New method.
3855 * progspace.h (struct program_space) <solibs>: New method.
3856 * solist.h (master_so_list): Don't declare.
3857 (ALL_SO_LIBS): Remove.
3858 * solib.h (so_list_head): Remove.
3859 (update_solib_list): Update comment.
3860 * solib.c (master_so_list): Remove.
3861 (solib_used, update_solib_list, solib_add)
3862 (info_sharedlibrary_command, clear_solib)
3863 (reload_shared_libraries_1, remove_user_added_objfile): Update.
3864
38eae084
TT
38652020-05-08 Tom Tromey <tom@tromey.com>
3866
3867 * extension.c (extension_languages): Now a std::array.
3868 (ALL_EXTENSION_LANGUAGES): Remove.
3869 (get_ext_lang_defn, get_ext_lang_of_file)
3870 (eval_ext_lang_from_control_command): Update.
3871 (finish_ext_lang_initialization)
3872 (auto_load_ext_lang_scripts_for_objfile)
3873 (ext_lang_type_printers::ext_lang_type_printers)
3874 (apply_ext_lang_type_printers)
3875 (ext_lang_type_printers::~ext_lang_type_printers)
3876 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
3877 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
3878 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
3879 (get_matching_xmethod_workers, ext_lang_colorize)
3880 (ext_lang_before_prompt): Update.
3881 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
3882
596dc4ad
TT
38832020-05-08 Tom Tromey <tom@tromey.com>
3884
3885 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
3886 overload.
3887 <swap_string, m_string>: Remove.
3888 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
3889 Update.
3890 * stabsread.c (define_symbol, read_type): Update.
3891 * linespec.c (find_linespec_symbols): Update.
3892 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
3893 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
3894 * dbxread.c (read_dbx_symtab): Update.
3895 * cp-support.h (cp_canonicalize_string_full)
3896 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
3897 Return unique_xmalloc_ptr.
3898 * cp-support.c (inspect_type): Update.
3899 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
3900 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
3901 Likewise.
3902 * c-typeprint.c (print_name_maybe_canonical): Update.
3903 * break-catch-throw.c (check_status_exception_catchpoint):
3904 Update.
3905
bf4cb9be
TV
39062020-05-08 Tom de Vries <tdevries@suse.de>
3907
3908 * infrun.c (follow_fork): Copy current_line and current_symtab to
3909 child thread.
3910
a1b68f28
SM
39112020-05-07 Simon Marchi <simon.marchi@efficios.com>
3912
3913 * async-event.c (struct async_signal_handler, struct
3914 async_event_handler): Reformat, remove typedef.
3915
98d48915
SM
39162020-05-07 Simon Marchi <simon.marchi@efficios.com>
3917
3918 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
3919 access thistype->main_type->dyn_prop_list directly.
3920
7aa91313
SM
39212020-05-07 Simon Marchi <simon.marchi@efficios.com>
3922
3923 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
3924 (remove_dyn_prop): Remove. Update all users to use
3925 type::remove_dyn_prop.
3926 * gdbtypes.c (remove_dyn_prop): Rename to...
3927 (type::remove_dyn_prop): ... this.
3928
5c54719c
SM
39292020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
3930
3931 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
3932 (add_dyn_prop): Remove. Update all users to use
3933 type::add_dyn_prop.
3934 * gdbtypes.c (add_dyn_prop): Rename to...
3935 (type::add_dyn_prop): ... this.
3936
24e99c6c
SM
39372020-05-07 Simon Marchi <simon.marchi@efficios.com>
3938
3939 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
3940 (get_dyn_prop): Remove. Update all users to use
3941 type::dyn_prop.
3942 * gdbtypes.c (get_dyn_prop): Rename to...
3943 (type::dyn_prop): ... this.
3944
0d4bf016
SM
39452020-05-06 Simon Marchi <simon.marchi@efficios.com>
3946
3947 * gdbtypes.h (struct main_type) <flag_static>: Remove.
3948
ac4a4f1c
SM
39492020-05-06 Simon Marchi <simon.marchi@efficios.com>
3950
3951 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
3952 instruction, skip it if it's there.
3953
a3bbacc1
SM
39542020-05-05 Simon Marchi <simon.marchi@efficios.com>
3955
3956 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
3957
c3236f84
SM
39582020-05-04 Simon Marchi <simon.marchi@efficios.com>
3959
3960 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
3961 * gdbtypes.c (recursive_dump_type): Remove use of
3962 TYPE_INCOMPLETE.
3963
3b6acaee
TT
39642020-05-03 Tom Tromey <tom@tromey.com>
3965
3966 * breakpoint.c (catch_command, tcatch_command): Remove.
3967 (_initialize_breakpoint): Use add_basic_prefix_cmd,
3968 add_show_prefix_cmd.
3969 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
3970 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
3971 Remove.
3972 (add_internal_problem_command): Use add_basic_prefix_cmd,
3973 add_show_prefix_cmd.
3974 * mips-tdep.c (set_mipsfpu_command): Remove.
3975 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
3976 * dwarf2/index-cache.c (set_index_cache_command): Remove.
3977 (_initialize_index_cache): Use add_basic_prefix_cmd.
3978 * memattr.c (dummy_cmd): Remove.
3979 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
3980 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
3981 (_initialize_tui_win): Use add_basic_prefix_cmd,
3982 add_show_prefix_cmd.
3983 * cli/cli-logging.c (set_logging_command): Remove.
3984 (_initialize_cli_logging): Use add_basic_prefix_cmd,
3985 add_show_prefix_cmd.
3986 (show_logging_command): Remove.
3987 * target.c (target_command): Remove.
3988 (add_target): Use add_basic_prefix_cmd.
3989
a51119cd
HD
39902020-05-02 Hannes Domani <ssbssa@yahoo.de>
3991
3992 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
3993
652fc23a 39942020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 3995
652fc23a
PW
3996 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
3997 info_command.
3998
117539e6
KR
39992020-04-30 Kamil Rytarowski <n54@gmx.com>
4000
4001 * nbsd-nat.c (nbsd_enable_proc_events)
4002 (nbsd_nat_target::post_startup_inferior): Add.
4003 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
4004 (nbsd_nat_target::update_thread_list): Rewrite.
4005 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
4006 "PTRACE_LWP_CREATE".
4007 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
4008
102e38eb 40092020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 4010
102e38eb
PW
4011 * stack.c (_initialize_stack): Remove duplicated creation
4012 of "frame" command and "f" alias.
4013
ee9d1e5f
HD
40142020-04-30 Hannes Domani <ssbssa@yahoo.de>
4015
4016 PR gdb/18706
4017 * gdbtypes.c (check_typedef): Calculate size of array of
4018 stubbed type.
4019
627c7fb8
HD
40202020-04-30 Hannes Domani <ssbssa@yahoo.de>
4021
4022 PR gdb/15559
4023 * i386-tdep.c (i386_push_dummy_call): Call
4024 i386_thiscall_push_dummy_call.
4025 (i386_thiscall_push_dummy_call): New function.
4026 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
4027 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
4028 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
4029
ffc2844e
SM
40302020-04-29 Simon Marchi <simon.marchi@efficios.com>
4031
4032 * gdbarch.sh (do_read): Add shellcheck disable directive for
4033 warning SC2162.
4034
1207375d
SM
40352020-04-29 Simon Marchi <simon.marchi@efficios.com>
4036
4037 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
4038 "referenced but not assigned" warning.
4039
9fdb2916
SM
40402020-04-29 Simon Marchi <simon.marchi@efficios.com>
4041
4042 * gdbarch.sh: Remove code that sets fallbackdefault.
4043
759cea5e
SM
40442020-04-29 Simon Marchi <simon.marchi@efficios.com>
4045
4046 * gdbarch.sh: Use shell operators && and || instead of
4047 -a and -o.
4048
cb02ab24
SM
40492020-04-29 Simon Marchi <simon.marchi@efficios.com>
4050
4051 * gdbarch.sh: Use $(...) instead of `...`.
4052
a6fc5ffc
SM
40532020-04-29 Simon Marchi <simon.marchi@efficios.com>
4054
4055 * gdbarch.sh: Use double quotes around variables.
4056
8d113d13
SM
40572020-04-29 Simon Marchi <simon.marchi@efficios.com>
4058
4059 * gdbarch.sh: Use %s with printf, instead of variables in the
4060 format string.
4061
ed6acedd
TT
40622020-04-29 Tom Tromey <tromey@adacore.com>
4063
4064 PR ada/25875:
4065 * dwarf2/read.c (update_enumeration_type_from_children): Compute
4066 type fields here.
4067 (read_enumeration_type): Call
4068 update_enumeration_type_from_children later. Update comments.
4069 (process_enumeration_scope): Don't create type fields.
4070
b68b1b58
KR
40712020-04-29 Kamil Rytarowski <n54@gmx.com>
4072
4073 * nbsd-tdep.c: Include "xml-syscall.h".
4074 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
4075
f94b2e03
KR
40762020-04-29 Kamil Rytarowski <n54@gmx.com>
4077
4078 * nbsd-nat.c: Include "sys/wait.h".
4079 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
4080 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
4081 (nbsd_nat_target::remove_exec_catchpoint)
4082 (nbsd_nat_target::set_syscall_catchpoint): Add.
4083 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
4084 (nbsd_nat_target::insert_exec_catchpoint)
4085 (nbsd_nat_target::remove_exec_catchpoint)
4086 (nbsd_nat_target::set_syscall_catchpoint): Add.
4087 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
4088 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
4089 `nbsd_get_syscall_number'.
4090
fc49bc72
TT
40912020-04-29 Tom Tromey <tom@tromey.com>
4092
4093 * stack.c (print_block_frame_labels): Remove.
4094
d642b692
HD
40952020-04-29 Hannes Domani <ssbssa@yahoo.de>
4096
4097 PR gdb/17320
4098 * ada-valprint.c (val_print_packed_array_elements): Move array
4099 end bracket to new line.
4100 (ada_val_print_string): Remove extra spaces before first array
4101 element.
4102 * c-valprint.c (c_value_print_array): Likewise.
4103 * m2-valprint.c (m2_print_array_contents): Likewise.
4104 (m2_value_print_inner): Likewise.
4105 * p-valprint.c (pascal_value_print_inner): Likewise.
4106 * valprint.c (generic_val_print_array): Likewise.
4107 (value_print_array_elements): Move first array element and array
4108 end bracket to new line.
4109
ea90f227
TV
41102020-04-29 Tom de Vries <tdevries@suse.de>
4111
4112 PR symtab/25889
4113 * linespec.c (find_method): Fix ix calculation.
4114
4498ef4f
KR
41152020-04-28 Kamil Rytarowski <n54@gmx.com>
4116
4117 * syscalls/update-netbsd.sh: New file.
4118 * syscalls/netbsd.xml: Regenerate.
4119 * data-directory/Makefile.in: Register `netbsd.xml' in
4120 `SYSCALLS_FILES'.
4121
a55e30b5
SM
41222020-04-28 Simon Marchi <simon.marchi@efficios.com>
4123
4124 * syscalls/update-freebsd.sh: Add double quotes.
4125
2b2fbab8
TT
41262020-04-28 Tom Tromey <tom@tromey.com>
4127
4128 * NEWS: Update.
4129 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
4130 (cmdpy_init): Allow class_tui.
4131
a65189c9
TV
41322020-04-28 Mark Williams <mark@myosotissp.com>
4133
4134 PR gdb/24480
4135 * dwarf2read.c: Add missing assingments to list_in_scope when
4136 start_symtab was already called.
4137
1b95cdb7
SM
41382020-04-28 Simon Marchi <simon.marchi@efficios.com>
4139
4140 PR gdb/25881
4141 * dwarf2/read.c (offset_map_type): Use
4142 gdb:hash_enum<sect_offset> as hash function.
4143
15cd93d0
TV
41442020-04-28 Tom de Vries <tdevries@suse.de>
4145
4146 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
4147 with DW_AT_signature.
4148
1eb39914
SM
41492020-04-27 Simon Marchi <simon.marchi@efficios.com>
4150
4151 * configure.ac: Remove check for fs_base/gs_base in
4152 user_regs_struct.
4153 * configure: Re-generate.
4154 * config.in: Re-generate.
4155 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
4156 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
4157 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
4158
991a3e2e
LM
41592020-04-27 Luis Machado <luis.machado@linaro.org>
4160
4161 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
4162 problematic inline frame unwinding situation.
4163 * frame.c (frame_id_computed_p): New function.
4164 * frame.h (frame_id_computed_p): New prototype.
4165
361ba0e8
TT
41662020-04-26 Tom Tromey <tom@tromey.com>
4167
4168 * command.h (enum command_class) <class_pseudo>: Remove.
4169
bc3609fd
PW
41702020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4171
4172 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
4173 and whitespace.
4174
b9771db7
KR
41752020-04-25 Kamil Rytarowski <n54@gmx.com>
4176
ec16513e
SM
4177 * inf-ptrace.c (inf_ptrace_target::wait): Remove
4178 `PT_GET_PROCESS_STATE' block.
b9771db7 4179
7151c1af
TT
41802020-04-24 Tom Tromey <tom@tromey.com>
4181
4182 * symtab.h (symbol_get_demangled_name): Don't declare.
4183 * symtab.c (symbol_get_demangled_name): Remove.
4184 (general_symbol_info::natural_name)
4185 (general_symbol_info::demangled_name): Update.
4186
906bb4c5
TT
41872020-04-24 Tom Tromey <tom@tromey.com>
4188
4189 PR rust/25025:
4190 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
4191
bcfe6157
TT
41922020-04-24 Tom Tromey <tom@tromey.com>
4193
4194 PR symtab/12707:
4195 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
4196 exists.
4197 (new_symbol): Likewise.
4198 * compile/compile-object-load.c (get_out_value_type): Use
4199 symbol_matches_search_name.
4200
f049a313
TT
42012020-04-24 Tom Tromey <tom@tromey.com>
4202
4203 * dwarf2/read.c (add_partial_symbol): Do not call
4204 compute_and_set_names.
4205
76e288d1
TT
42062020-04-24 Tom Tromey <tom@tromey.com>
4207
4208 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
4209 overload.
4210
2467f4f6
TT
42112020-04-24 Tom Tromey <tom@tromey.com>
4212
4213 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
4214 (add_psymbol_to_list): New overload. Make old overload call new
4215 one.
4216 * psympriv.h (add_psymbol_to_list): New overload.
4217
e61108c9
TT
42182020-04-24 Tom Tromey <tom@tromey.com>
4219
4220 * dwarf2/read.c (partial_die_info::read) <case
4221 DW_AT_linkage_name>: Use value_as_string.
4222 (dwarf2_string_attr): Use value_as_string.
4223 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
4224 method.
4225 * dwarf2/attribute.c (attribute::value_as_string): New method.
4226
8c87a452
TT
42272020-04-24 Tom Tromey <tom@tromey.com>
4228
4229 * symtab.c (general_symbol_info::natural_name)
4230 (general_symbol_info::demangled_name): Check for language_rust.
4231
787de330
TT
42322020-04-24 Tom Tromey <tom@tromey.com>
4233
4234 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
4235 (dwarf2_physname): ... from here.
4236 (partial_die_info::read): Add Rust "{" hack.
4237
ff985671
TT
42382020-04-24 Tom Tromey <tom@tromey.com>
4239
4240 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
4241 method.
4242 (symbol_set_demangled_name): Don't declare.
4243 * symtab.c (general_symbol_info::set_demangled_name): Rename from
4244 symbol_set_demangled_name.
4245 (general_symbol_info::set_language)
4246 (general_symbol_info::compute_and_set_names): Update.
4247 * minsyms.c (minimal_symbol_reader::install): Update.
4248 * dwarf2/read.c (new_symbol): Update.
4249
1acda803
TT
42502020-04-24 Tom Tromey <tromey@adacore.com>
4251
4252 PR python/23662:
4253 * python/py-type.c (convert_field): Handle
4254 FIELD_LOC_KIND_DWARF_BLOCK.
4255 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
4256 (typy_get_dynamic): Nw function.
4257 (type_object_getset): Add "dynamic".
4258 * NEWS: Add entry.
4259
d656f129
TT
42602020-04-24 Tom Tromey <tromey@adacore.com>
4261
4262 * ada-typeprint.c (print_choices, print_variant_part)
4263 (print_record_field_types_dynamic): New functions.
4264 (print_record_field_types): Use print_record_field_types_dynamic.
4265
7d79de9a
TT
42662020-04-24 Tom Tromey <tromey@adacore.com>
4267
4268 * dwarf2/read.c (handle_data_member_location): New overload.
4269 (dwarf2_add_field): Use it.
4270 (decode_locdesc): Add "computed" parameter. Update comment.
4271 * gdbtypes.c (is_dynamic_type_internal): Also look for
4272 FIELD_LOC_KIND_DWARF_BLOCK.
4273 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
4274 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
4275 virtual base classes.
4276 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
4277 FIELD_LOC_KIND_DWARF_BLOCK.
4278
f8e89861
TT
42792020-04-24 Tom Tromey <tromey@adacore.com>
4280
4281 * dwarf2/read.c (read_structure_type): Handle dynamic length.
4282 * gdbtypes.c (is_dynamic_type_internal): Check
4283 TYPE_HAS_DYNAMIC_LENGTH.
4284 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
4285 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
4286 New macros.
4287 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
4288 constant.
4289
9c6a1327
TT
42902020-04-24 Tom Tromey <tromey@adacore.com>
4291
4292 * dwarf2/read.c (struct variant_field): Rewrite.
4293 (struct variant_part_builder): New.
4294 (struct nextfield): Remove "variant" field. Add "offset".
4295 (struct field_info): Add "current_variant_part" and
4296 "variant_parts".
4297 (alloc_discriminant_info): Remove.
4298 (alloc_rust_variant): New function.
4299 (quirk_rust_enum): Update.
4300 (dwarf2_add_field): Set "offset" member. Don't handle
4301 DW_TAG_variant_part.
4302 (offset_map_type): New typedef.
4303 (convert_variant_range, create_one_variant)
4304 (create_one_variant_part, create_variant_parts)
4305 (add_variant_property): New functions.
4306 (dwarf2_attach_fields_to_type): Call add_variant_property.
4307 (read_structure_type): Don't handle DW_TAG_variant_part.
4308 (handle_variant_part, handle_variant): New functions.
4309 (handle_struct_member_die): Use them.
4310 (process_structure_scope): Don't handle variant parts.
4311 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
4312 (struct discriminant_info): Remove.
4313 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
4314 (struct main_type) <flag_discriminated_union>: Remove.
4315 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
4316 (rust_enum_variant): Return int. Remove "contents". Rewrite.
4317 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
4318 Update.
4319 * valops.c (value_union_variant): Remove.
4320 * value.h (value_union_variant): Don't declare.
4321
b249d2c2
TT
43222020-04-24 Tom Tromey <tromey@adacore.com>
4323
4324 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
4325 (ada_value_primitive_packed_val): Update.
4326 * ada-valprint.c (ada_value_print_1): Update.
4327 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
4328 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
4329 just an address. Use evaluate_for_locexpr_baton.
4330 (dwarf2_evaluate_property): Update.
4331 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
4332 array_view.
4333 * findvar.c (default_read_var_value): Update.
4334 * gdbtypes.c (compute_variant_fields_inner)
4335 (resolve_dynamic_type_internal): Update.
4336 (resolve_dynamic_type): Change type of valaddr parameter.
4337 * gdbtypes.h (resolve_dynamic_type): Update.
4338 * valarith.c (value_subscripted_rvalue): Update.
4339 * value.c (value_from_contents_and_address): Update.
4340
61122aa9
TT
43412020-04-24 Tom Tromey <tromey@adacore.com>
4342
4343 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
4344 "push_initial_value" parameter.
4345 (dwarf2_evaluate_property): Likewise.
4346 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
4347
ef83a141
TT
43482020-04-24 Tom Tromey <tromey@adacore.com>
4349
4350 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
4351 (variant::matches, compute_variant_fields_recurse)
4352 (compute_variant_fields_inner, compute_variant_fields): New
4353 functions.
4354 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
4355 Use resolved_type after type is made.
4356 (operator==): Add new cases.
4357 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
4358 (struct discriminant_range, struct variant, struct variant_part):
4359 New.
4360 (union dynamic_prop_data) <variant_parts, original_type>: New
4361 members.
4362 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
4363 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
4364 constants.
4365 * value.c (unpack_bits_as_long): Now public.
4366 * value.h (unpack_bits_as_long): Declare.
4367
675127ec
TT
43682020-04-24 Tom Tromey <tromey@adacore.com>
4369
4370 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
4371 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
4372
9852ceef
HD
43732020-04-24 Hannes Domani <ssbssa@yahoo.de>
4374
4375 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
4376
7632c6ce
KR
43772020-04-24 Kamil Rytarowski <n54@gmx.com>
4378
4379 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
4380 (remove_fork_catchpoint, post_startup_inferior)
4381 (post_attach): Move...
4382 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
4383 (remove_fork_catchpoint, post_startup_inferior)
4384 (post_attach): ...here.
4385 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
4386 (remove_fork_catchpoint, post_startup_inferior)
4387 (post_attach): Move...
4388 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
4389 (remove_fork_catchpoint, post_startup_inferior)
4390 (post_attach): ...here.
4391
7be2bb4f
TT
43922020-04-24 Tom Tromey <tromey@adacore.com>
4393
4394 * nat/windows-nat.h (struct windows_thread_info)
4395 <pc_adjusted>: New member.
4396 * windows-nat.c (windows_fetch_one_register): Check
4397 pc_adjusted.
4398 (windows_nat_target::get_windows_debug_event)
4399 (windows_nat_target::wait): Set pc_adjusted.
4400
f80cb3b4
TV
44012020-04-24 Tom de Vries <tdevries@suse.de>
4402
4403 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
4404 Run gdb-add-index inside temp dir.
4405
29514b87
TT
44062020-04-23 Tom Tromey <tromey@adacore.com>
4407
4408 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
4409 in loop.
4410
5939967b
LM
44112020-04-23 Luis Machado <luis.machado@linaro.org>
4412
4413 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
4414 get_frame_register instead of gdbarch_unwind_pc.
4415
70bc38f5
TV
44162020-04-23 Tom de Vries <tdevries@suse.de>
4417
4418 * symtab.c (lookup_global_symbol): Prefer def over decl.
4419
de82891c
TV
44202020-04-23 Tom de Vries <tdevries@suse.de>
4421
4422 PR symtab/25807
4423 * block.c (best_symbol, better_symbol): Promote to external.
4424 * block.h (best_symbol, better_symbol): Declare.
4425 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
4426 decl.
4427
ecc6c606
TT
44282020-04-23 Tom Tromey <tromey@adacore.com>
4429
4430 PR ada/25837:
4431 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
4432 "const char *", not a "const std::string &".
4433 <name_and_matcher::operator==>: Update.
4434 * unittests/lookup_name_info-selftests.c: Change type of
4435 "result".
4436
740480b8
TT
44372020-04-23 Tom Tromey <tom@tromey.com>
4438
4439 * inferior.h (iterate_over_inferiors): Don't declare.
4440 * inferior.c (iterate_over_inferiors): Remove.
4441 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
4442 Remove.
4443 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
4444 use iterate_over_inferiors.
4445 (darwin_resume_inferior_it)
4446 (struct resume_inferior_threads_param)
4447 (darwin_resume_inferior_threads_it): Remove.
4448 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
4449
ae3ab1f0
TV
44502020-04-23 Tom de Vries <tdevries@suse.de>
4451
4452 * blockframe.c (find_pc_partial_function): Use
4453 find_pc_sect_compunit_symtab rather than
4454 objfile->sf->qf->find_pc_sect_compunit_symtab.
4455
317d2668
TV
44562020-04-22 Tom de Vries <tdevries@suse.de>
4457
4458 PR symtab/25764
4459 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
4460 in psymtabs.
4461
eea9e357
TV
44622020-04-22 Tom de Vries <tdevries@suse.de>
4463
4464 PR symtab/25801
4465 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
4466 symtabs.
4467
3d5afab3
TV
44682020-04-22 Tom de Vries <tdevries@suse.de>
4469
4470 PR symtab/25700
4471 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
4472 CU if already created.
4473
d43b7a2d
TBA
44742020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4475
4476 * infrun.c (displaced_step_fixup): Switch to the event_thread
4477 before calling displaced_step_restore, not after.
4478
d89edf9b
MM
44792020-04-21 Markus Metzger <markus.t.metzger@intel.com>
4480
4481 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
4482 its inferior is not recorded by us.
4483 (record_btrace_target_open): Replace call to
4484 all_non_exited_threads () with call to current_inferior
4485 ()->non_exited_threads ().
4486 (record_btrace_target::stop_recording): Likewise.
4487 (record_btrace_target::close): Likewise.
4488 (record_btrace_target::wait): Likewise.
4489 (record_btrace_target::record_stop_replaying): Likewise.
4490
5897fd49
MM
44912020-04-21 Markus Metzger <markus.t.metzger@intel.com>
4492
4493 * btrace.c (btrace_enable): Throw an error on double enables and
4494 when enabling recording fails.
4495 (btrace_disable): Throw an error if the thread is not recorded.
4496
1a476b6d
MM
44972020-04-21 Markus Metzger <markus.t.metzger@intel.com>
4498
4499 * record-btrace.c (record_btrace_target::fetch_registers): Forward
4500 request if we do not have a thread_info.
4501
4778a5f8
TV
45022020-04-21 Tom de Vries <tdevries@suse.de>
4503
4504 PR gdb/25471
4505 * thread.c
4506 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
4507 exception in get_frame_id.
4508
0fa7617d
TT
45092020-04-20 Tom Tromey <tromey@adacore.com>
4510
4511 * python/python.c (struct gdbpy_event): Mark move constructor as
4512 noexcept.
4513 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
4514 constructor as noexcept.
4515 * completer.h (struct completion_result): Mark move constructor as
4516 noexcept.
4517 * completer.c (completion_result::completion_result): Use
4518 initialization style. Don't call reset_match_list.
4519
ad23bda0
MS
45202020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
4521
4522 * MAINTAINERS (Write After Approval): Add myself.
4523
45e1f031
TT
45242020-04-18 Tom Tromey <tom@tromey.com>
4525
4526 * windows-tdep.c (init_w32_command_list)
4527 (w32_prefix_command_valid): Restore.
4528 (_initialize_windows_tdep): Call init_w32_command_list.
4529
08feed99
TT
45302020-04-18 Tom Tromey <tom@tromey.com>
4531
4532 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
4533 * value.c (value_fn_field): Update.
4534 * valops.c (find_function_in_inferior)
4535 (value_allocate_space_in_inferior): Update.
4536 * tui/tui-winsource.c (tui_update_source_windows_with_line):
4537 Update.
4538 * tui/tui-source.c (tui_source_window::set_contents): Update.
4539 * symtab.c (lookup_global_or_static_symbol)
4540 (find_function_start_sal_1, skip_prologue_sal)
4541 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
4542 * symmisc.c (dump_msymbols, dump_symtab_1)
4543 (maintenance_print_one_line_table): Update.
4544 * symfile.c (init_entry_point_info, section_is_mapped)
4545 (list_overlays_command, simple_read_overlay_table)
4546 (simple_overlay_update_1): Update.
4547 * stap-probe.c (handle_stap_probe): Update.
4548 * stabsread.c (dbx_init_float_type, define_symbol)
4549 (read_one_struct_field, read_enum_type, read_range_type): Update.
4550 * source.c (info_line_command): Update.
4551 * python/python.c (gdbpy_source_objfile_script)
4552 (gdbpy_execute_objfile_script): Update.
4553 * python/py-type.c (save_objfile_types): Update.
4554 * python/py-objfile.c (py_free_objfile): Update.
4555 * python/py-inferior.c (python_new_objfile): Update.
4556 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
4557 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
4558 (maintenance_check_psymtabs): Update.
4559 * printcmd.c (info_address_command): Update.
4560 * objfiles.h (struct objfile) <arch>: New method, from
4561 get_objfile_arch.
4562 (get_objfile_arch): Don't declare.
4563 * objfiles.c (get_objfile_arch): Remove.
4564 (filter_overlapping_sections): Update.
4565 * minsyms.c (msymbol_is_function): Update.
4566 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
4567 (output_nondebug_symbol): Update.
4568 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
4569 (mdebug_expand_psymtab): Update.
4570 * machoread.c (macho_add_oso_symfile): Update.
4571 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
4572 Update.
4573 * linux-fork.c (checkpoint_command): Update.
4574 * linespec.c (convert_linespec_to_sals): Update.
4575 * jit.c (finalize_symtab): Update.
4576 * infrun.c (insert_exception_resume_from_probe): Update.
4577 * ia64-tdep.c (ia64_find_unwind_table): Update.
4578 * hppa-tdep.c (internalize_unwinds): Update.
4579 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
4580 Update.
4581 * gcore.c (call_target_sbrk): Update.
4582 * elfread.c (record_minimal_symbol, elf_symtab_read)
4583 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
4584 (elf_gnu_ifunc_resolve_by_got): Update.
4585 * dwarf2/read.c (create_addrmap_from_index)
4586 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
4587 (read_debug_names_from_section)
4588 (process_psymtab_comp_unit_reader, add_partial_symbol)
4589 (add_partial_subprogram, process_full_comp_unit)
4590 (read_file_scope, read_func_scope, read_lexical_block_scope)
4591 (read_call_site_scope, dwarf2_ranges_read)
4592 (dwarf2_record_block_ranges, dwarf2_add_field)
4593 (mark_common_block_symbol_computed, read_tag_pointer_type)
4594 (read_tag_string_type, dwarf2_init_float_type)
4595 (dwarf2_init_complex_target_type, read_base_type)
4596 (partial_die_info::read, partial_die_info::read)
4597 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
4598 (dwarf2_fetch_die_loc_sect_off): Update.
4599 * dwarf2/loc.c (dwarf2_find_location_expression)
4600 (class dwarf_evaluate_loc_desc, rw_pieced_value)
4601 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
4602 (dwarf2_loc_desc_get_symbol_read_needs)
4603 (locexpr_describe_location_piece, locexpr_describe_location_1)
4604 (loclist_describe_location): Update.
4605 * dwarf2/index-write.c (write_debug_names): Update.
4606 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
4607 * dtrace-probe.c (dtrace_process_dof): Update.
4608 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
4609 (process_one_symbol): Update.
4610 * ctfread.c (ctf_init_float_type, read_base_type): Update.
4611 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
4612 (coff_read_enum_type): Update.
4613 * cli/cli-cmds.c (edit_command, list_command): Update.
4614 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
4615 * breakpoint.c (create_overlay_event_breakpoint)
4616 (create_longjmp_master_breakpoint)
4617 (create_std_terminate_master_breakpoint)
4618 (create_exception_master_breakpoint, get_sal_arch): Update.
4619 * block.c (block_gdbarch): Update.
4620 * annotate.c (annotate_source_line): Update.
4621
0743fc83
TT
46222020-04-17 Tom Tromey <tromey@adacore.com>
4623
4624 * auto-load.c (show_auto_load_cmd): Remove.
4625 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
4626 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
4627 (maintenance_print_arc_command): Remove.
4628 * tui/tui-win.c (tui_command): Remove.
4629 (tui_get_cmd_list): Use add_basic_prefix_cmd.
4630 * tui/tui-layout.c (tui_layout_command): Remove.
4631 (_initialize_tui_layout): Use add_basic_prefix_cmd.
4632 * python/python.c (user_set_python, user_show_python): Remove.
4633 (_initialize_python): Use add_basic_prefix_cmd,
4634 add_show_prefix_cmd.
4635 * guile/guile.c (set_guile_command, show_guile_command): Remove.
4636 (install_gdb_commands): Use add_basic_prefix_cmd,
4637 add_show_prefix_cmd.
4638 (info_guile_command): Remove.
4639 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
4640 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
4641 add_show_prefix_cmd.
4642 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
4643 Remove do_set and do_show parameters.
4644 * cli/cli-style.c (set_style, show_style): Remove.
4645 (_initialize_cli_style): Use add_basic_prefix_cmd,
4646 add_show_prefix_cmd.
4647 (cli_style_option::add_setshow_commands): Remove do_set and
4648 do_show parameters.
4649 (cli_style_option::add_setshow_commands): Use
4650 add_basic_prefix_cmd, add_show_prefix_cmd.
4651 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
4652 (set_style_name): Remove.
4653 * cli/cli-dump.c (dump_command, append_command): Remove.
4654 (srec_dump_command, ihex_dump_command, verilog_dump_command)
4655 (tekhex_dump_command, binary_dump_command)
4656 (binary_append_command): Remove.
4657 (_initialize_cli_dump): Use add_basic_prefix_cmd.
4658 * windows-tdep.c (w32_prefix_command_valid): Remove global.
4659 (init_w32_command_list): Remove; move into ...
4660 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
4661 * valprint.c (set_print, show_print, set_print_raw)
4662 (show_print_raw): Remove.
4663 (_initialize_valprint): Use add_basic_prefix_cmd,
4664 add_show_prefix_cmd.
4665 * typeprint.c (set_print_type, show_print_type): Remove.
4666 (_initialize_typeprint): Use add_basic_prefix_cmd,
4667 add_show_prefix_cmd.
4668 * record.c (set_record_command, show_record_command): Remove.
4669 (_initialize_record): Use add_basic_prefix_cmd,
4670 add_show_prefix_cmd.
4671 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
4672 add_show_prefix_cmd.
4673 (info_command, show_command, set_debug, show_debug): Remove.
4674 * top.h (set_history, show_history): Don't declare.
4675 * top.c (set_history, show_history): Remove.
4676 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
4677 (unset_tdesc_cmd): Remove.
4678 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
4679 add_show_prefix_cmd.
4680 * symtab.c (info_module_command): Remove.
4681 (_initialize_symtab): Use add_basic_prefix_cmd.
4682 * symfile.c (overlay_command): Remove.
4683 (_initialize_symfile): Use add_basic_prefix_cmd.
4684 * sparc64-tdep.c (info_adi_command): Remove.
4685 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
4686 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
4687 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
4688 add_show_prefix_cmd.
4689 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
4690 (_initialize_serial): Use add_basic_prefix_cmd,
4691 add_show_prefix_cmd.
4692 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
4693 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
4694 add_show_prefix_cmd.
4695 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
4696 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
4697 add_show_prefix_cmd.
4698 * riscv-tdep.c (show_riscv_command, set_riscv_command)
4699 (show_debug_riscv_command, set_debug_riscv_command): Remove.
4700 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
4701 add_show_prefix_cmd.
4702 * remote.c (remote_command, set_remote_cmd): Remove.
4703 (_initialize_remote): Use add_basic_prefix_cmd.
4704 * record-full.c (set_record_full_command)
4705 (show_record_full_command): Remove.
4706 (_initialize_record_full): Use add_basic_prefix_cmd,
4707 add_show_prefix_cmd.
4708 * record-btrace.c (cmd_set_record_btrace)
4709 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
4710 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
4711 (cmd_show_record_btrace_pt): Remove.
4712 (_initialize_record_btrace): Use add_basic_prefix_cmd,
4713 add_show_prefix_cmd.
4714 * ravenscar-thread.c (set_ravenscar_command)
4715 (show_ravenscar_command): Remove.
4716 (_initialize_ravenscar): Use add_basic_prefix_cmd,
4717 add_show_prefix_cmd.
4718 * mips-tdep.c (show_mips_command, set_mips_command)
4719 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
4720 add_show_prefix_cmd.
4721 * maint.c (maintenance_command, maintenance_info_command)
4722 (maintenance_check_command, maintenance_print_command)
4723 (maintenance_set_cmd, maintenance_show_cmd): Remove.
4724 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
4725 add_show_prefix_cmd.
4726 (show_per_command_cmd): Remove.
4727 * maint-test-settings.c (maintenance_set_test_settings_cmd):
4728 Remove.
4729 (maintenance_show_test_settings_cmd): Remove.
4730 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
4731 add_show_prefix_cmd.
4732 * maint-test-options.c (maintenance_test_options_command):
4733 Remove.
4734 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
4735 * macrocmd.c (macro_command): Remove
4736 (_initialize_macrocmd): Use add_basic_prefix_cmd.
4737 * language.c (set_check, show_check): Remove.
4738 (_initialize_language): Use add_basic_prefix_cmd,
4739 add_show_prefix_cmd.
4740 * infcmd.c (unset_command): Remove.
4741 (_initialize_infcmd): Use add_basic_prefix_cmd.
4742 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
4743 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
4744 add_show_prefix_cmd.
4745 * go32-nat.c (go32_info_dos_command): Remove.
4746 (_initialize_go32_nat): Use add_basic_prefix_cmd.
4747 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
4748 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
4749 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
4750 (_initialize_frame): Use add_basic_prefix_cmd,
4751 add_show_prefix_cmd.
4752 * dcache.c (set_dcache_command, show_dcache_command): Remove.
4753 (_initialize_dcache): Use add_basic_prefix_cmd,
4754 add_show_prefix_cmd.
4755 * cp-support.c (maint_cplus_command): Remove.
4756 (_initialize_cp_support): Use add_basic_prefix_cmd.
4757 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
4758 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
4759 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
4760 add_basic_prefix_cmd, add_show_prefix_cmd.
4761 * breakpoint.c (save_command): Remove.
4762 (_initialize_breakpoint): Use add_basic_prefix_cmd.
4763 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
4764 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
4765 add_show_prefix_cmd.
4766 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
4767 (set_ada_command, show_ada_command): Remove.
4768 (_initialize_ada_language): Use add_basic_prefix_cmd,
4769 add_show_prefix_cmd.
4770 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
4771
3557f442
KR
47722020-04-16 Kamil Rytarowski <n54@gmx.com>
4773
4774 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
4775 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
4776
16197208
SM
47772020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
4778
4779 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
4780 warning messages.
4781
00ac85d3
SM
47822020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
4783
4784 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
4785 import table is not at beginning of .idata section.
4786
381ce63f
PA
47872020-04-16 Pedro Alves <palves@redhat.com>
4788
4789 * inferior.c (delete_inferior): Use delete operator directly
4790 instead of delete_program_space.
4791 * progspace.c (add_program_space): New, factored out from
4792 program_space::program_space.
4793 (remove_program_space): New, factored out from
4794 delete_program_space.
4795 (program_space::program_space): Remove intro comment. Rewrite.
4796 (program_space::~program_space): Remove intro comment. Call
4797 remove_program_space.
4798 (delete_program_space): Delete.
4799 * progspace.h (program_space::program_space): Make explicit. Move
4800 intro comment here, adjusted.
4801 (program_space::~program_space): Move intro comment here,
4802 adjusted.
4803 (delete_program_space): Remove.
4804
a010605f
TT
48052020-04-16 Tom Tromey <tromey@adacore.com>
4806
4807 * windows-nat.c (windows_nat::handle_access_violation): New
4808 function.
4809 * nat/windows-nat.h (handle_access_violation): Declare.
4810 * nat/windows-nat.c (handle_exception): Move Cygwin code to
4811 windows-nat.c. Call handle_access_violation.
4812
efba5c23
TV
48132020-04-16 Tom de Vries <tdevries@suse.de>
4814
4815 PR symtab/25791
4816 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
4817 CUs without psymtab.
4818
97ed802d
KB
48192020-04-16 Kevin Buettner <kevinb@redhat.com>
4820
4821 * python/python.c (do_start_initialization): Don't call
4822 PyEval_InitThreads for Python 3.9 and beyond.
4823
c7d64809
KR
48242020-04-15 Kamil Rytarowski <n54@gmx.com>
4825
4826 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
4827 thread functions.
4828 (obsd_nat_target::wait): Likewise.
4829
ce127a96
TT
48302020-04-15 Tom Tromey <tromey@adacore.com>
4831
4832 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
4833 (DEBUG_EXCEPT): Use debug_printf.
4834
99f1bc6a
AB
48352020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
4836
4837 * completer.c (class completion_tracker::completion_hash_entry)
4838 <hash_name>: New member function.
4839 (completion_tracker::discard_completions): New callback to hash a
4840 completion_hash_entry, pass this to htab_create_alloc.
4841
a0e9b532
JT
48422016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
4843
4844 * windows-nat.c (windows_make_so): Warn rather than stopping with
4845 an error if realpath() fails.
4846
06ca5dd4
KR
48472020-04-14 Kamil Rytarowski <n54@gmx.com>
4848
4849 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
4850 (nbsd_nat_target::info_proc): Add do_status.
4851
194d088f
TV
48522020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
4853 Tom de Vries <tdevries@suse.de>
4854
4855 PR symtab/25718
4856 * psympriv.h (struct partial_symtab::read_symtab)
4857 (struct partial_symtab::expand_psymtab)
4858 (struct partial_symtab::read_dependencies): Update comments.
4859 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
4860 read_symtab for includer.
4861 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
4862 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
4863 (struct dwarf2_include_psymtab::m_readin): Remove.
4864 (struct dwarf2_include_psymtab::includer): New member function.
4865 (dwarf2_psymtab::expand_psymtab): Assert !readin.
4866
c1a66c06
TV
48672020-04-14 Tom de Vries <tdevries@suse.de>
4868
4869 PR symtab/25720
4870 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
4871 with NULL symbol_matcher and lookup_name.
4872 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
4873 and lookup_name.
4874 * dwarf2/read.c (dw2_expand_symtabs_matching)
4875 (dw2_debug_names_expand_symtabs_matching): Same.
4876 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
4877 Make lookup_name a pointer. Update comment.
4878 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
4879 lookup_name being a pointer.
4880 * symfile.c (expand_symtabs_matching): Same.
4881 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
4882 * linespec.c (iterate_over_all_matching_symtabs): Same.
4883
400b5eca
TT
48842020-04-13 Tom Tromey <tom@tromey.com>
4885
4886 * run-on-main-thread.c: Update include.
4887 * unittests/main-thread-selftests.c: Update include.
4888 * tui/tui-win.c: Update include.
4889 * tui/tui-io.c: Update include.
4890 * tui/tui-interp.c: Update include.
4891 * tui/tui-hooks.c: Update include.
4892 * top.h: Update include.
4893 * top.c: Update include.
4894 * ser-base.c: Update include.
4895 * remote.c: Update include.
4896 * remote-notif.c: Update include.
4897 * remote-fileio.c: Update include.
4898 * record-full.c: Update include.
4899 * record-btrace.c: Update include.
4900 * python/python.c: Update include.
4901 * posix-hdep.c: Update include.
4902 * mingw-hdep.c: Update include.
4903 * mi/mi-main.c: Update include.
4904 * mi/mi-interp.c: Update include.
4905 * main.c: Update include.
4906 * linux-nat.c: Update include.
4907 * interps.c: Update include.
4908 * infrun.c: Update include.
4909 * inf-loop.c: Update include.
4910 * event-top.c: Update include.
4911 * event-loop.c: Move to ../gdbsupport/.
4912 * event-loop.h: Move to ../gdbsupport/.
4913 * async-event.h: Update include.
4914 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
4915
93b54c8e
TT
49162020-04-13 Tom Tromey <tom@tromey.com>
4917
4918 * tui/tui-win.c: Include async-event.h.
4919 * remote.c: Include async-event.h.
4920 * remote-notif.c: Include async-event.h.
4921 * record-full.c: Include async-event.h.
4922 * record-btrace.c: Include async-event.h.
4923 * infrun.c: Include async-event.h.
4924 * event-top.c: Include async-event.h.
4925 * event-loop.h: Move some declarations to async-event.h.
4926 * event-loop.c: Don't include ser-event.h or top.h. Move some
4927 code to async-event.c.
4928 * async-event.h: New file.
4929 * async-event.c: New file.
4930 * Makefile.in (COMMON_SFILES): Add async-event.c.
4931 (HFILES_NO_SRCDIR): Add async-event.h.
4932
c1cd3163
TT
49332020-04-13 Tom Tromey <tom@tromey.com>
4934
4935 * utils.c (flush_streams): New function.
4936 * event-loop.c (gdb_wait_for_event): Call flush_streams.
4937
29f2bf4f
TT
49382020-04-13 Tom Tromey <tom@tromey.com>
4939
4940 * event-loop.c (handle_file_event): Use warning, not
4941 printf_unfiltered.
4942
98029d02
TT
49432020-04-13 Tom Tromey <tom@tromey.com>
4944
4945 * event-loop.c: Include <chrono>.
4946
06cc9596
TT
49472020-04-13 Tom Tromey <tom@tromey.com>
4948
4949 * gdb_select.h: Move to ../gdbsupport/.
4950 * event-loop.c: Update include path.
4951 * top.c: Update include path.
4952 * ser-base.c: Update include path.
4953 * ui-file.c: Update include path.
4954 * ser-tcp.c: Update include path.
4955 * guile/scm-ports.c: Update include path.
4956 * posix-hdep.c: Update include path.
4957 * ser-unix.c: Update include path.
4958 * gdb_usleep.c: Update include path.
4959 * mingw-hdep.c: Update include path.
4960 * inflow.c: Update include path.
4961 * infrun.c: Update include path.
4962 * event-top.c: Update include path.
4963
8ae8e197
TT
49642020-04-13 Tom Tromey <tom@tromey.com>
4965
4966 * configure: Rebuild.
4967 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
4968
58cf28e8
TT
49692020-04-13 Tom Tromey <tom@tromey.com>
4970
4971 * event-loop.h (start_event_loop): Don't declare.
4972 * event-loop.c (start_event_loop): Move...
4973 * main.c (start_event_loop): ...here. Now static.
4974
b7f999ae
SDJ
49752020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
4976
4977 * MAINTAINERS: Update my email address.
4978
1085dfd4
KR
49792020-04-12 Kamil Rytarowski <n54@gmx.com>
4980
4981 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
4982 IP_ALL.
4983
49d1d1f5
KR
49842020-04-12 Kamil Rytarowski <n54@gmx.com>
4985
4986 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
aac66a4c 4987 (nbsd_nat_target::info_proc): Add do_cmdline.
49d1d1f5 4988
b4848d2a
KR
49892020-04-12 Kamil Rytarowski <n54@gmx.com>
4990
4991 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
aac66a4c 4992 (nbsd_nat_target::info_proc): Add do_cwd.
b4848d2a 4993
51c133d5
KR
49942020-04-12 Kamil Rytarowski <n54@gmx.com>
4995
4996 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
4997
54b8cbd0
KR
49982020-04-11 Kamil Rytarowski <n54@gmx.com>
4999
5000 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
5001 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
5002 (nbsd_nat_target::info_proc): New functions.
5003 * nbsd-nat.c (kinfo_get_vmmap): New function.
5004 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
5005 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
5006 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
5007 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
5008 functions.
5009 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
5010 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
5011 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
5012 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
5013 (KINFO_VME_FLAG_GROWS_DOWN): New.
5014
cf83625d
AS
50152020-04-10 Artur Shepilko <nomadbyte@gmail.com>
5016
5017 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
5018 bit shift.
5019
0c4311ab
TT
50202020-04-10 Tom Tromey <tromey@adacore.com>
5021
5022 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
5023
3e65b3e9
TT
50242020-04-10 Tom Tromey <tromey@adacore.com>
5025
5026 * symtab.c (get_symbol_address, get_msymbol_address): Skip
5027 separate debug files.
5028
13302e95
HD
50292020-04-10 Hannes Domani <ssbssa@yahoo.de>
5030
5031 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
5032 Move to...
5033 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
5034 ... here.
5035 * windows-nat.c (windows_nat_target::get_windows_debug_event):
5036 Check for STATUS_WX86_BREAKPOINT.
5037 (windows_nat_target::wait): Same.
5038
bdfc1e8a
TV
50392020-04-10 Tom de Vries <tdevries@suse.de>
5040
5041 PR cli/25808
5042 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
5043
f4460aec
SM
50442020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
5045
5046 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
5047 (Write After Approval): Remove Tom de Vries.
5048
a25198bb
BE
50492020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
5050
5051 revert partially:
5052 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
5053
aac66a4c
SM
5054 * buildsym.c (record_line): Fix undefined behavior and preserve
5055 lines at eof.
a25198bb 5056
206c98a6
KR
50572020-04-09 Kamil Rytarowski <n54@gmx.com>
5058
5059 * auxv.h (svr4_auxv_parse): New.
5060 * auxv.c (default_auxv_parse): Split into default_auxv_parse
5061 and generic_auxv_parse.
5062 (svr4_auxv_parse): Add.
5063 * obsd-tdep.c: Include "auxv.h".
5064 (obsd_auxv_parse): Remove.
5065 (obsd_init_abi): Remove comment.
5066 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
5067 from `obsd_auxv_parse' to `svr4_auxv_parse'.
5068 * nbsd-tdep.c: Include "auxv.h".
5069 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
5070
71fbdbaf
TT
50712020-04-08 Tom Tromey <tromey@adacore.com>
5072
5073 * nat/windows-nat.h (last_wait_event): Don't declare.
5074 (wait_for_debug_event): Update comment.
5075 * nat/windows-nat.c (last_wait_event): Now static.
5076
2c1d95e8
TT
50772020-04-08 Tom Tromey <tromey@adacore.com>
5078
5079 * windows-nat.c (wait_for_debug_event): Move to
5080 nat/windows-nat.c.
5081 * nat/windows-nat.h (wait_for_debug_event): Declare.
5082 * nat/windows-nat.c (wait_for_debug_event): Move from
5083 windows-nat.c. No longer static.
5084
d2977bc4
TT
50852020-04-08 Tom Tromey <tromey@adacore.com>
5086
5087 * windows-nat.c (get_windows_debug_event): Use
5088 fetch_pending_stop.
5089 * nat/windows-nat.h (fetch_pending_stop): Declare.
5090 * nat/windows-nat.c (fetch_pending_stop): New function.
5091
e758e19c
TT
50922020-04-08 Tom Tromey <tromey@adacore.com>
5093
5094 * windows-nat.c (windows_continue): Use matching_pending_stop and
5095 continue_last_debug_event.
5096 * nat/windows-nat.h (matching_pending_stop)
5097 (continue_last_debug_event): Declare.
5098 * nat/windows-nat.c (DEBUG_EVENTS): New define.
5099 (matching_pending_stop, continue_last_debug_event): New
5100 functions.
5101
8d30e395
TT
51022020-04-08 Tom Tromey <tromey@adacore.com>
5103
5104 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
5105 (handle_exception_result): Move to nat/windows-nat.h.
5106 (DEBUG_EXCEPTION_SIMPLE): Remove.
5107 (windows_nat::handle_ms_vc_exception): New function.
5108 (handle_exception): Move to nat/windows-nat.c.
5109 (get_windows_debug_event): Update.
5110 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
5111 nat/windows-nat.c.
5112 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
5113 (handle_exception_result): Move from windows-nat.c.
5114 (handle_exception): Declare.
5115 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
5116 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
5117 windows-nat.c.
5118
29de418d
TT
51192020-04-08 Tom Tromey <tromey@adacore.com>
5120
5121 * windows-nat.c (exception_count, event_count): Remove.
5122 (handle_exception, get_windows_debug_event)
5123 (do_initial_windows_stuff): Update.
5124
a816ba18
TT
51252020-04-08 Tom Tromey <tromey@adacore.com>
5126
5127 * windows-nat.c (windows_nat::handle_load_dll)
5128 (windows_nat::handle_unload_dll): Rename. No longer static.
5129 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
5130 Declare.
5131
a00caa12
TT
51322020-04-08 Tom Tromey <tromey@adacore.com>
5133
5134 * complaints.h (stop_whining): Declare at top-level.
5135 (complaint): Don't declare stop_whining.
5136
d41b524f
TT
51372020-04-08 Tom Tromey <tromey@adacore.com>
5138
5139 * windows-nat.c (windows_nat::handle_output_debug_string):
5140 Rename. No longer static.
5141 * nat/windows-nat.h (handle_output_debug_string): Declare.
5142
3c76026d
TT
51432020-04-08 Tom Tromey <tromey@adacore.com>
5144
5145 * windows-nat.c (current_process_handle, current_process_id)
5146 (main_thread_id, last_sig, current_event, last_wait_event)
5147 (current_windows_thread, desired_stop_thread_id, pending_stops)
5148 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
5149 (display_selectors, fake_create_process)
5150 (get_windows_debug_event): Update.
5151 * nat/windows-nat.h (current_process_handle, current_process_id)
5152 (main_thread_id, last_sig, current_event, last_wait_event)
5153 (current_windows_thread, desired_stop_thread_id, pending_stops)
5154 (struct pending_stop, siginfo_er): Move from windows-nat.c.
5155 * nat/windows-nat.c (current_process_handle, current_process_id)
5156 (main_thread_id, last_sig, current_event, last_wait_event)
5157 (current_windows_thread, desired_stop_thread_id, pending_stops)
5158 (siginfo_er): New globals. Move from windows-nat.c.
5159
9d8679cc
TT
51602020-04-08 Tom Tromey <tromey@adacore.com>
5161
5162 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
5163 (handle_load_dll): Update.
5164 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
5165
28688adf
TT
51662020-04-08 Tom Tromey <tromey@adacore.com>
5167
5168 * windows-nat.c (enum thread_disposition_type): Move to
5169 nat/windows-nat.h.
5170 (windows_nat::thread_rec): Rename from thread_rec. No longer
5171 static.
5172 (windows_add_thread, windows_nat_target::fetch_registers)
5173 (windows_nat_target::store_registers, handle_exception)
5174 (windows_nat_target::resume, get_windows_debug_event)
5175 (windows_nat_target::get_tib_address)
5176 (windows_nat_target::thread_name)
5177 (windows_nat_target::thread_alive): Update.
5178 * nat/windows-nat.h (enum thread_disposition_type): Move from
5179 windows-nat.c.
5180 (thread_rec): Declare.
5181
4834dad0
TT
51822020-04-08 Tom Tromey <tromey@adacore.com>
5183
5184 * windows-nat.c: Add "using namespace".
5185 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
5186 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
5187
65bafd5b
TT
51882020-04-08 Tom Tromey <tromey@adacore.com>
5189
5190 * nat/windows-nat.h (struct windows_thread_info): Declare
5191 destructor.
5192 * nat/windows-nat.c (~windows_thread_info): New.
5193
0a4afda3
TT
51942020-04-08 Tom Tromey <tromey@adacore.com>
5195
5196 PR gdb/22992
5197 * windows-nat.c (current_event): Update comment.
5198 (last_wait_event, desired_stop_thread_id): New globals.
5199 (struct pending_stop): New.
5200 (pending_stops): New global.
5201 (windows_nat_target) <stopped_by_sw_breakpoint>
5202 <supports_stopped_by_sw_breakpoint>: New methods.
5203 (windows_fetch_one_register): Add assertions. Adjust PC.
5204 (windows_continue): Handle pending stops. Suspend other threads
5205 when stepping. Use last_wait_event
5206 (wait_for_debug_event): New function.
5207 (get_windows_debug_event): Use wait_for_debug_event. Handle
5208 pending stops. Queue spurious stops.
5209 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
5210 (windows_nat_target::kill): Use wait_for_debug_event.
5211 * nat/windows-nat.h (struct windows_thread_info)
5212 <stopped_at_software_breakpoint>: New field.
5213 * nat/windows-nat.c (windows_thread_info::resume): Clear
5214 stopped_at_software_breakpoint.
5215
8e61ebec
TT
52162020-04-08 Tom Tromey <tromey@adacore.com>
5217
5218 * windows-nat.c (enum thread_disposition_type): New.
5219 (thread_rec): Replace "get_context" parameter with "disposition";
5220 change type.
5221 (windows_add_thread, windows_nat_target::fetch_registers)
5222 (windows_nat_target::store_registers, handle_exception)
5223 (windows_nat_target::resume, get_windows_debug_event)
5224 (windows_nat_target::get_tib_address)
5225 (windows_nat_target::thread_name)
5226 (windows_nat_target::thread_alive): Update.
5227
98a03287
TT
52282020-04-08 Tom Tromey <tromey@adacore.com>
5229
5230 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
5231 (windows_continue): Use windows_continue::resume.
5232 * nat/windows-nat.h (struct windows_thread_info) <suspend,
5233 resume>: Declare new methods.
5234 * nat/windows-nat.c: New file.
5235 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
5236
7c7411bc
TT
52372020-04-08 Tom Tromey <tromey@adacore.com>
5238
5239 * windows-nat.c (windows_add_thread, windows_delete_thread)
5240 (windows_nat_target::fetch_registers)
5241 (windows_nat_target::store_registers, fake_create_process)
5242 (windows_nat_target::resume, windows_nat_target::resume)
5243 (get_windows_debug_event, windows_nat_target::wait)
5244 (windows_nat_target::pid_to_str)
5245 (windows_nat_target::get_tib_address)
5246 (windows_nat_target::get_ada_task_ptid)
5247 (windows_nat_target::thread_name)
5248 (windows_nat_target::thread_alive): Use lwp, not tid.
5249
2950fdf7
TT
52502020-04-08 Tom Tromey <tromey@adacore.com>
5251
5252 * windows-nat.c (handle_exception)
5253 (windows_nat_target::thread_name): Update.
5254 * nat/windows-nat.h (windows_thread_info): Remove destructor.
5255 <name>: Now unique_xmalloc_ptr.
5256
62fe396b
TT
52572020-04-08 Tom Tromey <tromey@adacore.com>
5258
5259 * windows-nat.c (thread_rec)
5260 (windows_nat_target::fetch_registers): Update.
5261 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
5262 Update comment.
5263 <debug_registers_changed, reload_context>: Now bool.
5264
e9534bd2
TT
52652020-04-08 Tom Tromey <tromey@adacore.com>
5266
5267 * windows-nat.c (windows_add_thread): Use new.
5268 (windows_init_thread_list, windows_delete_thread): Use delete.
5269 (get_windows_debug_event): Update.
5270 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
5271 destructor, and initializers.
5272
ae1f8880
TT
52732020-04-08 Tom Tromey <tromey@adacore.com>
5274
5275 * windows-nat.c (struct windows_thread_info): Remove.
5276 * nat/windows-nat.h: New file.
5277
55a1e039
TT
52782020-04-08 Tom Tromey <tromey@adacore.com>
5279
5280 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
5281 (thread_rec, windows_add_thread, windows_delete_thread)
5282 (windows_continue): Update.
5283
93366324
TT
52842020-04-08 Tom Tromey <tromey@adacore.com>
5285
5286 * windows-nat.c (struct windows_thread_info): Remove typedef.
5287 (thread_head): Remove.
5288 (thread_list): New global.
5289 (thread_rec, windows_add_thread, windows_init_thread_list)
5290 (windows_delete_thread, windows_continue): Update.
5291
0f2265e2
SM
52922020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
5293
5294 * windows-tdep.h (windows_init_abi): Add comment.
5295 (cygwin_init_abi): New declaration.
5296 * windows-tdep.c: Split signal enumeration in two, one for
5297 Windows and one for Cygwin.
5298 (windows_gdb_signal_to_target): Only deal with signal of the
5299 Windows OS ABI.
5300 (cygwin_gdb_signal_to_target): New function.
5301 (windows_init_abi): Rename to windows_init_abi_common, don't set
5302 gdb_signal_to_target gdbarch method. Add new new function with
5303 this name.
5304 (cygwin_init_abi): New function.
5305 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
5306 comment. Don't call windows_init_abi.
5307 (amd64_windows_init_abi): Add comment, call windows_init_abi.
5308 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
5309 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
5310 i386_windows_init_abi_common, don't call windows_init_abi. Add
5311 a new function of this name.
5312 (i386_cygwin_init_abi): New function.
5313 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
5314 OS ABI Cygwin.
5315
3810f182
SM
53162020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
5317
5318 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
5319 parameter.c.
5320 (dwarf2_read_gdb_index): Update.
5321
063f8e80
KR
53222020-04-07 Kamil Rytarowski <n54@gmx.com>
5323
5324 * nbsd-tdep.c: Include "objfiles.h".
5325 (nbsd_skip_solib_resolver): New.
5326 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
5327
85a9510c 53282020-04-07 Nitika Achra <Nitika.Achra@amd.com>
5329
5330 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
5331 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
5332 with DW_LLE_base_addressx are being emitted in DWARFv5.
5333 Add the newly added kind DW_LOC_OFFSET_PAIR also.
5334 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
5335 unsigned integer.
5336
9fc3eaae 53372020-04-07 Nitika Achra <Nitika.Achra@amd.com>
5338
5339 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
5340 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
5341 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
5342 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
5343 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
5344 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
5345 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
5346
5347
41144253 53482020-04-07 Nitika Achra <Nitika.Achra@amd.com>
5349
5350 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
5351 (read_loclist_index): New function definition.
5352 (lookup_loclist_base): New function definition.
5353 (read_loclist_header): New function definition.
5354 (dwarf2_cu): Add loclist_base and loclist_header field.
5355 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
5356 (read_full_die_1): Read the value of DW_AT_loclists_base.
5357 (read_attribute_reprocess): Handle DW_FORM_loclistx.
5358 (read_attribute_value): Handle DW_FORM_loclistx.
5359 (skip_one_die): Handle DW_FORM_loclistx.
5360 (loclist_header): New structure declaration.
5361 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
5362
9f4e76a4
SM
53632020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
5364
5365 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
5366 constructor. Remove `addr` parameter from other constructor and
5367 add `per_cu` parameter.
5368 * dwarf2/read.c (create_partial_symtab): Update.
5369
25c11aca
TV
53702020-04-07 Tom de Vries <tdevries@suse.de>
5371
5372 PR symtab/25796
5373 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
5374 (partial_die_info::fixup): Inherit has_const_value.
5375
5707e24b
TV
53762020-04-07 Tom de Vries <tdevries@suse.de>
5377
5378 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
5379 symbols without address.
5380
05f00e22
KR
53812020-04-06 Kamil Rytarowski <n54@gmx.com>
5382
5383 * nbsd-nat.h (struct thread_info): Add forward declaration.
5384 (nbsd_nat_target::thread_alive): Add.
5385 (nbsd_nat_target::thread_name): Likewise.
5386 (nbsd_nat_target::update_thread_list): Likewise.
5387 (update_thread_list::post_attach): Likewise.
5388 (post_attach::pid_to_str): Likewise.
5389 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
5390 (nbsd_thread_lister): Add.
5391 (nbsd_nat_target::thread_alive): Likewise.
5392 (nbsd_nat_target::thread_name): Likewise.
5393 (nbsd_add_threads): Likewise.
5394 (update_thread_list::post_attach): Likewise.
5395 (nbsd_nat_target::update_thread_list): Likewise.
5396 (post_attach::pid_to_str): Likewise.
5397
6ee448cc
TT
53982020-04-06 Tom Tromey <tromey@adacore.com>
5399
5400 * ada-valprint.c (print_variant_part): Extract the variant field.
5401 (print_field_values): Use the field as the outer value when
5402 recursing.
5403
dea34e8c
TT
54042020-04-06 Tom Tromey <tromey@adacore.com>
5405
5406 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
5407 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
5408 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
5409 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
5410 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
5411
93689ce9
TT
54122020-04-06 Tom Tromey <tromey@adacore.com>
5413
5414 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
5415 TYPE_CODE_ERROR.
5416
79743962
KR
54172020-04-06 Kamil Rytarowski <n54@gmx.com>
5418
5419 * nbsd-tdep.c: Include "gdbarch.h".
5420 Define enum with NetBSD signal numbers.
5421 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
5422 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
5423 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
5424 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
5425 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
5426 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
5427 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
5428 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
5429 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
5430 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
5431 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
5432 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
5433
9e7c9a03
HD
54342020-04-03 Hannes Domani <ssbssa@yahoo.de>
5435
5436 PR gdb/25325
5437 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
5438
d9e49b61
TT
54392020-04-03 Tom Tromey <tromey@adacore.com>
5440
5441 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
5442 Read constant block.
5443
e0fc5c3f
SM
54442020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
5445
5446 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
5447 (gdb_bfd_get_full_section_contents): New declaration.
5448 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
5449 * windows-tdep.c (is_linked_with_cygwin_dll): Use
5450 gdb_bfd_get_full_section_contents.
5451
e2ff18a0
SM
54522020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
5453
5454 * exec.c (build_section_table): Replace internal_error with
5455 gdb_assert.
5456 (section_table_xfer_memory_partial): Likewise.
5457 * mdebugread.c (parse_partial_symbols): Likewise.
5458 * psymtab.c (lookup_partial_symbol): Likewise.
5459 * utils.c (wrap_here): Likewise.
5460
0830d301
TT
54612020-04-02 Tom Tromey <tromey@adacore.com>
5462
5463 * f-lang.c (build_fortran_types): Use arch_type to initialize
5464 builtin_complex_s32 in the TYPE_CODE_ERROR case.
5465
e7da7f8f
TT
54662020-04-02 Tom Tromey <tromey@adacore.com>
5467
5468 * dwarf2/read.c (partial_die_info::read): Do not create a vector
5469 of attributes.
5470
c90d28ac
AB
54712020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
5472 Bernd Edlinger <bernd.edlinger@hotmail.de>
5473 Tom Tromey <tromey@adacore.com>
5474
5475 * buildsym.c (buildsym_compunit::record_line): Remove
5476 deduplication code.
5477
1aa98955
TV
54782020-04-02 Tom de Vries <tdevries@suse.de>
5479
5480 PR ada/24671
5481 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
5482
d3214198
TV
54832020-04-02 Tom de Vries <tdevries@suse.de>
5484
5485 * dwarf2/read.c (dwarf2_gdb_index_functions,
5486 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
5487 NULL.
5488 * psymtab.c (psym_lookup_global_symbol_language): New function.
5489 (psym_functions): Init psym_lookup_global_symbol_language with
5490 psym_lookup_global_symbol_language.
5491 * symfile-debug.c (debug_sym_quick_functions): Init
5492 lookup_global_symbol_language with NULL.
5493 * symfile.c (set_initial_language): Remove fixme comment.
5494 * symfile.h (struct quick_symbol_functions): Add
5495 lookup_global_symbol_language.
5496 * symtab.c (find_quick_global_symbol_language): New function.
5497 (find_main_name): Use find_quick_global_symbol_language.
5498
2836752f
SM
54992020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
5500
5501 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
5502
64dc2d4b
BE
55032020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
5504
5505 * buildsym.c (record_line): Fix undefined behavior and preserve
5506 lines at eof.
5507
bbe3dc41
BE
55082020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
5509
5510 * buildsym.c (record_line): Fix the resizing condition.
5511
6b4a335b
TT
55122020-04-01 Tom Tromey <tom@tromey.com>
5513
5514 * value.h (value_literal_complex): Add comment.
5515 * valops.c (value_literal_complex): Refer to value.h.
5516
3638a098
TT
55172020-04-01 Tom Tromey <tom@tromey.com>
5518
5519 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
5520 (scalar_type): New rule, from typebase.
5521 (typebase): Use scalar_type. Recognize complex types.
5522 (field_name): Handle FLOAT_KEYWORD.
5523 (ident_tokens): Add _Complex and __complex__.
5524
c34e8714
TT
55252020-04-01 Tom Tromey <tom@tromey.com>
5526
5527 PR exp/25299:
5528 * valarith.c (promotion_type, complex_binop): New functions.
5529 (scalar_binop): Handle complex numbers. Use promotion_type.
5530 (value_pos, value_neg, value_complement): Handle complex numbers.
5531
fa649bb7
TT
55322020-04-01 Tom Tromey <tom@tromey.com>
5533
5534 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
5535 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
5536 (parse_number): Handle complex numbers.
5537
981c08ce
TT
55382020-04-01 Tom Tromey <tom@tromey.com>
5539
5540 * c-valprint.c (c_decorations): Change complex suffix to "i".
5541
4c99290d
TT
55422020-04-01 Tom Tromey <tom@tromey.com>
5543
5544 * valprint.c (generic_value_print_complex): Use accessors.
5545 * value.h (value_real_part, value_imaginary_part): Declare.
5546 * valops.c (value_real_part, value_imaginary_part): New
5547 functions.
5548 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
5549
5b930b45
TT
55502020-04-01 Tom Tromey <tom@tromey.com>
5551
5552 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
5553 (read_range_type): Update.
5554 * mdebugread.c (basic_type): Update.
5555 * go-lang.c (build_go_types): Use init_complex_type.
5556 * gdbtypes.h (struct main_type) <complex_type>: New member.
5557 (init_complex_type): Update.
5558 (arch_complex_type): Don't declare.
5559 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
5560 Make name if none given. Use alloc_type_copy. Look for cached
5561 complex type.
5562 (arch_complex_type): Remove.
5563 (gdbtypes_post_init): Use init_complex_type.
5564 * f-lang.c (build_fortran_types): Use init_complex_type.
5565 * dwarf2/read.c (read_base_type): Update.
5566 * d-lang.c (build_d_types): Use init_complex_type.
5567 * ctfread.c (read_base_type): Update.
5568
53cccef1
TBA
55692020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5570
5571 * infrun.c (stop_all_threads): Update assertion, plus when
5572 stopping threads, take into account that we might be trying
5573 to stop an all-stop target.
5574 (stop_waiting): Call 'stop_all_threads' if there exists a
5575 non-stop target.
5576
a0714d30
TBA
55772020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5578
5579 * target.h (exists_non_stop_target): New function declaration.
5580 * target.c (exists_non_stop_target): New function.
5581
60e22c1e
HD
55822020-04-01 Hannes Domani <ssbssa@yahoo.de>
5583
5584 PR gdb/24789
5585 * eval.c (is_integral_or_integral_reference): New function.
5586 (evaluate_subexp_standard): Allow integer references in
5587 pointer arithmetic.
5588
e139a727
TBA
55892020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5590
5591 * remote.c (remote_target::remote_parse_stop_reply): Remove the
5592 check for no ptid in the stop reply when the target is non-stop.
5593
e0802d59
TT
55942020-04-01 Tom Tromey <tromey@adacore.com>
5595
5596 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
5597 "name" parameter to rvalue reference. Initialize m_name_holder.
5598 <lookup_name_info>: New overloads.
5599 <name>: Return gdb::string_view.
5600 <c_str>: New method.
5601 <make_ignore_params>: Update.
5602 <search_name_hash>: Update.
5603 <language_lookup_name>: Return const char *.
5604 <m_name>: Change type.
5605 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
5606 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
5607 (lookup_name_info::match_any): Update.
5608 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
5609 Update.
5610 * minsyms.c (linkage_name_str): Update.
5611 * language.c (default_symbol_name_matcher): Update.
5612 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
5613 Update.
5614 * ada-lang.c (ada_fold_name): Change parameter to string_view.
5615 (ada_lookup_name_info::ada_lookup_name_info): Update.
5616 (literal_symbol_name_matcher): Update.
5617
8c072cb6
TT
56182020-04-01 Tom Tromey <tromey@adacore.com>
5619
5620 * psymtab.c (psymtab_search_name): Remove function.
5621 (psym_lookup_symbol): Create search name and lookup name here.
5622 (lookup_partial_symbol): Remove "name" parameter; add
5623 lookup_name.
5624 (psym_expand_symtabs_for_function): Update.
5625
6f29a534
TT
56262020-03-31 Joel Jones <joelkevinjones@gmail.com>
5627
5628 PR tui/25597:
5629 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
5630
af62665e
TT
56312020-03-31 Tom Tromey <tromey@adacore.com>
5632
5633 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
5634 memcpy.
5635
d1a89da5
NC
56362020-03-30 Nelson Chu <nelson.chu@sifive.com>
5637
5638 * features/riscv/32bit-csr.xml: Regenerated.
5639 * features/riscv/64bit-csr.xml: Regenerated.
5640
d8af9068
TT
56412020-03-30 Tom Tromey <tromey@adacore.com>
5642
5643 * ada-valprint.c (print_variant_part): Update.
5644 * ada-lang.h (ada_which_variant_applies): Update.
5645 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
5646 outer_valaddr parameters; replace with "outer" value parameter.
5647 (to_fixed_variant_branch_type): Update.
5648
227c0bf4
PFC
56492020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5650
5651 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
5652 <list>. Remove inclusion of observable.h.
5653 (PPC_DEBUG_CURRENT_VERSION): Move up define.
5654 (struct arch_lwp_info): New struct.
5655 (class ppc_linux_dreg_interface): New class.
5656 (struct ppc_linux_process_info): New struct.
5657 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
5658 <low_new_clone, low_forget_process, low_prepare_to_resume>
5659 <copy_thread_dreg_state, mark_thread_stale>
5660 <mark_debug_registers_changed, register_hw_breakpoint>
5661 <clear_hw_breakpoint, register_wp, clear_wp>
5662 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
5663 <num_memory_accesses, get_trigger_type>
5664 <create_watchpoint_request, hwdebug_point_cmp>
5665 <init_arch_lwp_info, get_arch_lwp_info>
5666 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
5667 methods.
5668 <struct ptid_hash>: New inner struct.
5669 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
5670 members.
5671 (saved_dabr_value, hwdebug_info, max_slots_number)
5672 (struct hw_break_tuple, struct thread_points, ppc_threads)
5673 (have_ptrace_hwdebug_interface)
5674 (hwdebug_find_thread_points_by_tid)
5675 (hwdebug_insert_point, hwdebug_remove_point): Remove.
5676 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
5677 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
5678 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
5679 use m_dreg_interface.
5680 (hwdebug_point_cmp): Change to...
5681 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
5682 reference arguments instead of pointers.
5683 (ppc_linux_nat_target::ranged_break_num_registers): Use
5684 m_dreg_interface.
5685 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
5686 m_dreg_interface. Call register_hw_breakpoint.
5687 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
5688 m_dreg_interface. Call clear_hw_breakpoint.
5689 (get_trigger_type): Change to...
5690 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
5691 comment.
5692 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
5693 use m_dreg_interface. Call register_hw_breakpoint.
5694 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
5695 use m_dreg_interface. Call clear_hw_breakpoint.
5696 (can_use_watchpoint_cond_accel): Change to...
5697 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
5698 method. Update comment, use m_dreg_interface and
5699 m_process_info.
5700 (calculate_dvc): Change to...
5701 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
5702 m_dreg_interface.
5703 (num_memory_accesses): Change to...
5704 (ppc_linux_nat_target::num_memory_accesses): ...this method.
5705 (check_condition): Change to...
5706 (ppc_linux_nat_target::check_condition): ...this method.
5707 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
5708 comment, use m_dreg_interface.
5709 (create_watchpoint_request): Change to...
5710 (ppc_linux_nat_target::create_watchpoint_request): ...this
5711 method. Use m_dreg_interface.
5712 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
5713 m_dreg_interface. Call register_hw_breakpoint or register_wp.
5714 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
5715 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
5716 (ppc_linux_nat_target::low_forget_process)
5717 (ppc_linux_nat_target::low_new_fork)
5718 (ppc_linux_nat_target::low_new_clone)
5719 (ppc_linux_nat_target::low_delete_thread)
5720 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
5721 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
5722 only call mark_thread_stale.
5723 (ppc_linux_thread_exit): Remove.
5724 (ppc_linux_nat_target::stopped_data_address): Change to...
5725 (ppc_linux_nat_target::low_stopped_data_address): This. Add
5726 comment, use m_dreg_interface and m_thread_hw_breakpoints.
5727 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
5728 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
5729 comment. Call low_stopped_data_address.
5730 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
5731 m_dreg_interface.
5732 (ppc_linux_nat_target::masked_watch_num_registers): Use
5733 m_dreg_interface.
5734 (ppc_linux_nat_target::copy_thread_dreg_state)
5735 (ppc_linux_nat_target::mark_thread_stale)
5736 (ppc_linux_nat_target::mark_debug_registers_changed)
5737 (ppc_linux_nat_target::register_hw_breakpoint)
5738 (ppc_linux_nat_target::clear_hw_breakpoint)
5739 (ppc_linux_nat_target::register_wp)
5740 (ppc_linux_nat_target::clear_wp)
5741 (ppc_linux_nat_target::init_arch_lwp_info)
5742 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
5743 (_initialize_ppc_linux_nat): Remove observer callback.
5744
4db10d8f
PFC
57452020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5746
5747 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
5748 (ppc_linux_nat_target::auxv_parse)
5749 (ppc_linux_nat_target::read_description)
5750 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
5751 Move up.
5752
1310c1b0
PFC
57532020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5754
5755 * linux-nat.h (low_new_clone): New method.
5756 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
5757
69b037c3
SM
57582020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
5759
5760 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
5761 (dbx_expand_psymtab): ... this.
5762 (start_psymtab): Update.
5763 * mdebugread.c (psymtab_to_symtab_1): Rename to...
5764 (mdebug_expand_psymtab): ... this.
5765 (parse_partial_symbols): Update.
5766 (new_psymtab): Update.
5767 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
5768 (xcoff_expand_psymtab): ... this.
5769 (xcoff_start_psymtab): Update.
5770
48993951
SM
57712020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
5772
5773 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
5774 <expand_dependencies>: ... this.
5775 * psymtab.c (partial_symtab::read_dependencies): Rename to...
5776 (partial_symtab::expand_dependencies): ... this.
5777 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
5778 Update.
5779 (dwarf2_psymtab::expand_psymtab): Update.
5780 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
5781 * mdebugread.c (psymtab_to_symtab_1): Update.
5782 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
5783
3ad83046
SM
57842020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
5785
5786 * psympriv.h (discard_psymtab): Remove.
5787 * dbxread.c (dbx_end_psymtab): Update.
5788 * xcoffread.c (xcoff_end_psymtab): Update.
5789
4d1b9ab6
TT
57902020-03-28 Tom Tromey <tom@tromey.com>
5791
5792 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
5793 comment.
5794
f1749218
TT
57952020-03-28 Tom Tromey <tom@tromey.com>
5796
5797 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
5798
ebea7626
HD
57992020-03-27 Hannes Domani <ssbssa@yahoo.de>
5800
5801 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
5802
a879b4d5
JB
58032020-03-26 John Baldwin <jhb@FreeBSD.org>
5804
5805 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
5806
0826b30a
TT
58072020-03-26 Tom Tromey <tom@tromey.com>
5808
5809 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
5810 (mark_common_block_symbol_computed, read_tag_string_type)
5811 (attr_to_dynamic_prop, read_subrange_type): Update.
5812 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
5813 to be methods on struct attribute.
5814 (skip_one_die, process_imported_unit_die, read_namespace_alias)
5815 (read_call_site_scope, partial_die_info::read)
5816 (partial_die_info::read, lookup_die_type, follow_die_ref):
5817 Update.
5818 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
5819 from dwarf2_get_ref_die_offset.
5820 (attribute::constant_value): New method, from
5821 dwarf2_get_attr_constant_value.
5822 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
5823 Declare method.
5824 <constant_value>: New method.
5825
2b2558bf
TT
58262020-03-26 Tom Tromey <tom@tromey.com>
5827
5828 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
5829 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
5830 (dwarf_type_encoding_name): Move to stringify.c.
5831 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
5832 * dwarf2/stringify.c: New file.
5833 * dwarf2/stringify.h: New file.
5834
eeb64781
TT
58352020-03-26 Tom Tromey <tom@tromey.com>
5836
5837 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
5838 Rewrite.
5839
a39fdb41
TT
58402020-03-26 Tom Tromey <tom@tromey.com>
5841
5842 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
5843 methods.
5844 * dwarf2/read.c (lookup_addr_base): Move to die.h.
5845 (lookup_ranges_base): Likewise.
5846 (read_cutu_die_from_dwo, read_full_die_1): Update.
5847
436c571c
TT
58482020-03-26 Tom Tromey <tom@tromey.com>
5849
5850 * dwarf2/read.c (read_import_statement, read_file_scope)
5851 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
5852 (read_lexical_block_scope, read_call_site_scope)
5853 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
5854 (handle_struct_member_die, process_structure_scope)
5855 (update_enumeration_type_from_children)
5856 (process_enumeration_scope, read_array_type, read_common_block)
5857 (read_namespace, read_module, read_subroutine_type): Update.
5858 (sibling_die): Remove.
5859
052c8bb8
TT
58602020-03-26 Tom Tromey <tom@tromey.com>
5861
5862 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
5863 (build_type_psymtabs_reader, read_structure_type)
5864 (read_enumeration_type, read_full_die_1): Update.
5865 (dwarf2_attr_no_follow): Move to die.h.
5866 * dwarf2/die.h (struct die_info) <attr>: New method.
5867
2b24b6e4
TT
58682020-03-26 Tom Tromey <tom@tromey.com>
5869
5870 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
5871 <base_address>: Now an optional.
5872 (dwarf2_find_base_address, dwarf2_rnglists_process)
5873 (dwarf2_ranges_process, fill_in_loclist_baton)
5874 (dwarf2_symbol_mark_computed): Update.
5875
c2d50fd0
TT
58762020-03-26 Tom Tromey <tom@tromey.com>
5877
5878 * dwarf2/read.c (struct die_info): Move to die.h.
5879 * dwarf2/die.h: New file.
5880
0df7ad3a
TT
58812020-03-26 Tom Tromey <tom@tromey.com>
5882
5883 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
5884 * dwarf2/read.c
5885 (dwarf2_statement_list_fits_in_line_number_section_complaint):
5886 Move to line-header.c.
5887 (read_checked_initial_length_and_offset, read_formatted_entries):
5888 Likewise.
5889 (dwarf_decode_line_header): Split into two.
5890 * dwarf2/line-header.c
5891 (dwarf2_statement_list_fits_in_line_number_section_complaint):
5892 Move from read.c.
5893 (read_checked_initial_length_and_offset, read_formatted_entries):
5894 Likewise.
5895 (dwarf_decode_line_header): New function, split from read.c.
5896
86c0bb4c
TT
58972020-03-26 Tom Tromey <tom@tromey.com>
5898
5899 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
5900 Declare method.
5901 * dwarf2/read.c (read_attribute_value): Update.
5902 (dwarf2_per_objfile::read_line_string): Rename from
5903 read_indirect_line_string.
5904 (read_formatted_entries): Update.
5905
2ef46c2f
TT
59062020-03-26 Tom Tromey <tom@tromey.com>
5907
5908 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
5909 variable.
5910
4f9c1eda
TT
59112020-03-26 Tom Tromey <tom@tromey.com>
5912
5913 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
5914 const.
5915 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
5916 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
5917 parameter const.
5918
5a0e026f
TT
59192020-03-26 Tom Tromey <tom@tromey.com>
5920
5921 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
5922 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
5923 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
5924 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
5925
8844c11b
TT
59262020-03-26 Tom Tromey <tom@tromey.com>
5927
5928 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
5929 file_names_size, file_full_name, file_file_name>: Use const.
5930 <file_name_at, file_names>: Add const overload.
5931 * dwarf2/line-header.c (line_header::file_file_name)
5932 (line_header::file_full_name): Update.
5933
c90ec28a
TT
59342020-03-26 Tom Tromey <tom@tromey.com>
5935
5936 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
5937 (macro_start_file, consume_improper_spaces)
5938 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
5939 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
5940 (dwarf_decode_macros): Move to macro.c.
5941 * dwarf2/macro.c: New file.
5942 * dwarf2/macro.h: New file.
5943 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
5944
4f44ae6c
TT
59452020-03-26 Tom Tromey <tom@tromey.com>
5946
5947 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
5948 method.
5949 * dwarf2/section.c: New method. From
5950 read_indirect_string_at_offset_from.
5951 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
5952 (read_indirect_string_at_offset_from): Move to section.c.
5953 (read_indirect_string_at_offset): Rewrite.
5954 (read_indirect_line_string_at_offset): Remove.
5955 (read_indirect_string, read_indirect_line_string)
5956 (dwarf_decode_macro_bytes): Update.
5957
a0194fa8
TT
59582020-03-26 Tom Tromey <tom@tromey.com>
5959
5960 * dwarf2/section.h (struct dwarf2_section_info)
5961 <overload_complaint>: Declare.
5962 (dwarf2_section_buffer_overflow_complaint): Don't declare.
5963 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
5964 Rename from dwarf2_section_buffer_overflow_complaint.
5965 * dwarf2/read.c (skip_one_die, partial_die_info::read)
5966 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
5967
3d27bbdb
TT
59682020-03-26 Tom Tromey <tom@tromey.com>
5969
5970 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
5971 Declare.
5972 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
5973 Move from read.c.
5974 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
5975 to section.c.
5976
9eac9650
TT
59772020-03-26 Tom Tromey <tom@tromey.com>
5978
5979 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
5980
bf80d710
TT
59812020-03-26 Tom Tromey <tom@tromey.com>
5982
5983 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
5984 "builder".
5985 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
5986 parameter.
5987 (dwarf_decode_macros): Update.
5988
0314b390
TT
59892020-03-26 Tom Tromey <tom@tromey.com>
5990
5991 * dwarf2/read.c (read_attribute_value): Update.
5992 (read_indirect_string_from_dwz): Move to dwz.c; change into
5993 method.
5994 (dwarf_decode_macro_bytes): Update.
5995 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
5996 * dwarf2/dwz.c: New file.
5997 * Makefile.in (COMMON_SFILES): Add dwz.c.
5998
9fda78b6
TT
59992020-03-26 Tom Tromey <tom@tromey.com>
6000
6001 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
6002 * dwarf2/read.c: Add include.
6003 * dwarf2/index-write.c: Add include.
6004 * dwarf2/index-cache.c: Add include.
6005 * dwarf2/dwz.h: New file.
6006
33aa3c10
TT
60072020-03-25 Tom Tromey <tom@tromey.com>
6008
6009 * compile/compile-object-load.c (get_out_value_type): Mention
6010 correct symbol name in error message.
6011
d503b685
HD
60122020-03-25 Hannes Domani <ssbssa@yahoo.de>
6013
6014 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
6015
7b1eff95
TV
60162020-03-25 Tom de Vries <tdevries@suse.de>
6017
6018 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
6019 * symmisc.c (dump_symtab_1): Print user and includes fields.
6020 (maintenance_info_symtabs): Same.
6021
dd895392
AB
60222020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
6023
6024 PR gdb/25534
6025 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
6026 (riscv_regcache_cooked_write): New function.
6027 (riscv_push_dummy_call): Use new function.
6028 (riscv_return_value): Likewise.
6029
5ab2fbf1
SM
60302020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
6031
6032 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
6033 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
6034 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
6035 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
6036 * infrun.c (follow_fork): Likewise.
6037 (follow_fork_inferior): Likewise.
6038 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
6039 * linux-nat.h (class linux_nat_target): Likewise.
6040 * remote.c (class remote_target) <follow_fork>: Likewise.
6041 (remote_target::follow_fork): Likewise.
6042 * target-delegates.c: Re-generate.
6043 * target.c (default_follow_fork): Likewise.
6044 (target_follow_fork): Likewise.
6045 * target.h (struct target_ops) <follow_fork>: Likewise.
6046 (target_follow_fork): Likewise.
6047
a64fafb5
TV
60482020-03-24 Tom de Vries <tdevries@suse.de>
6049
6050 * psymtab.c (maintenance_info_psymtabs): Print user field.
6051
fe26d3a3
TT
60522020-03-20 Tom Tromey <tromey@adacore.com>
6053
6054 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
6055 const.
6056 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
6057 const.
6058
c884cc46
SM
60592020-03-20 Simon Marchi <simon.marchi@efficios.com>
6060
6061 * ptrace.m4: Don't check for ptrace declaration.
6062 * config.in: Re-generate.
6063 * configure: Re-generate.
6064 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
6065 not defined.
6066
1ff700c2
KR
60672020-03-20 Kamil Rytarowski <n54@gmx.com>
6068
6069 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
6070 `PTRACE_TYPE_RET'.
6071 * i386-bsd-nat.c (gdb_ptrace): Likewise.
6072 * sparc-nat.c (gdb_ptrace): Likewise.
6073 * x86-bsd-nat.c (gdb_ptrace): Likewise.
6074
f7d4f0b1
TT
60752020-03-20 Tom Tromey <tromey@adacore.com>
6076
6077 * c-exp.y (lex_one_token): Fix assert.
6078
f67210ff
TT
60792020-03-20 Tom Tromey <tromey@adacore.com>
6080
6081 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
6082 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
6083 strncpy call.
6084
1773be9e
TT
60852020-03-20 Tom Tromey <tromey@adacore.com>
6086
6087 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
6088
70304be9
TT
60892020-03-20 Tom Tromey <tromey@adacore.com>
6090
6091 * ada-valprint.c (print_variant_part): Remove parameters; switch
6092 to value-based API.
6093 (print_field_values): Likewise.
6094 (ada_val_print_struct_union): Likewise.
6095 (ada_value_print_1): Update.
6096
9faa006d
KR
60972020-03-20 Kamil Rytarowski <n54@gmx.com>
6098
6099 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
6100 nbsd_nat_target instead of inf_ptrace_target.
6101 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
6102 nbsd_nat_target.
6103
4a90f062
KR
61042020-03-20 Kamil Rytarowski <n54@gmx.com>
6105
6106 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
6107 it to the ptrace call.
6108 * (store_registers): Likewise.
6109
61102020-03-20 Kamil Rytarowski <n54@gmx.com>
c7da12c7
KR
6111
6112 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
6113 it to the ptrace call.
6114 * (store_registers): Likewise.
6115
2d07da27
LM
61162020-03-19 Luis Machado <luis.machado@linaro.org>
6117
6118 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
6119 valid, fetch vg value from ptrace.
6120
f09db380
KR
61212020-03-19 Kamil Rytarowski <n54@gmx.com>
6122 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
6123 * inf-ptrace.c: Likewise.
6124 * (gdb_ptrace): Add.
6125 * (inf_ptrace_target::resume): Update.
6126 * (inf_ptrace_target::xfer_partial): Likewise.
6127 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
6128 * (inf_ptrace_peek_poke): Update.
6129
fcc7376e
KR
61302020-03-19 Kamil Rytarowski <n54@gmx.com>
6131
6132 * x86-bsd-nat.c (gdb_ptrace): New.
6133 * (x86bsd_dr_set): Add new argument `ptid'.
6134 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
6135 x86bsd_dr_set_addr): Update.
6136
cada5fc9
AB
61372020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
6138
6139 * remote.c (remote_target::process_stop_reply): Handle events for
6140 all threads differently.
6141
19a2740f
AB
61422020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
6143
6144 * completer.c (completion_tracker::remove_completion): Define new
6145 function.
6146 * completer.h (completion_tracker::remove_completion): Declare new
6147 function.
6148 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
6149 when adding a C++ function symbol.
6150
724fd9ba
AB
61512020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
6152
6153 * completer.c (completion_tracker::completion_hash_entry): Define
6154 new class.
6155 (advance_to_filename_complete_word_point): Call
6156 recompute_lowest_common_denominator.
6157 (completion_tracker::completion_tracker): Call discard_completions
6158 to setup the hash table.
6159 (completion_tracker::discard_completions): Allow for being called
6160 from the constructor, pass new equal function, and element deleter
6161 when constructing the hash table. Initialise new class member
6162 variables.
6163 (completion_tracker::maybe_add_completion): Remove use of
6164 m_entries_vec, and store more information into m_entries_hash.
6165 (completion_tracker::recompute_lcd_visitor): New function, most
6166 content taken from...
6167 (completion_tracker::recompute_lowest_common_denominator):
6168 ...here, this now just visits each item in the hash calling the
6169 above visitor.
6170 (completion_tracker::build_completion_result): Remove use of
6171 m_entries_vec, call recompute_lowest_common_denominator.
6172 * completer.h (completion_tracker::have_completions): Remove use
6173 of m_entries_vec.
6174 (completion_tracker::completion_hash_entry): Declare new class.
6175 (completion_tracker::recompute_lowest_common_denominator): Change
6176 function signature.
6177 (completion_tracker::recompute_lcd_visitor): Declare new function.
6178 (completion_tracker::m_entries_vec): Delete.
6179 (completion_tracker::m_entries_hash): Initialize to NULL.
6180 (completion_tracker::m_lowest_common_denominator_valid): New
6181 member variable.
6182 (completion_tracker::m_lowest_common_denominator_max_length): New
6183 member variable.
6184
5a82b8a1
KR
61852020-03-17 Kamil Rytarowski <n54@gmx.com>
6186
6187 * regformats/regdef.h: Put reg in gdb namespace.
6188
fb516a69
KR
61892020-03-17 Kamil Rytarowski <n54@gmx.com>
6190
6191 * i386-bsd-nat.c (gdb_ptrace): New.
6192 * (i386bsd_fetch_inferior_registers,
6193 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
6194 * (i386bsd_fetch_inferior_registers,
6195 i386bsd_store_inferior_registers) Use gdb_ptrace.
6196
1c0aa1fb
KR
61972020-03-17 Kamil Rytarowski <n54@gmx.com>
6198
6199 * amd64-bsd-nat.c (gdb_ptrace): New.
6200 * (amd64bsd_fetch_inferior_registers,
6201 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
6202 * (amd64bsd_fetch_inferior_registers,
6203 amd64bsd_store_inferior_registers) Use gdb_ptrace.
6204
5ccd2fb7
KR
62052020-03-17 Kamil Rytarowski <n54@gmx.com>
6206
6207 * user-regs.c (user_reg::read): Rename to...
6208 (user_reg::xread): ...this.
6209 * (append_user_reg): Rename argument `read' to `xread'.
6210 * (user_reg_add_builtin): Likewise.
6211 * (user_reg_add): Likewise.
6212 * (value_of_user_reg): Likewise.
6213
2108a63a
KR
62142020-03-17 Kamil Rytarowski <n54@gmx.com>
6215
6216 * sparc-nat.c (gdb_ptrace): New.
6217 * sparc-nat.c (sparc_fetch_inferior_registers)
6218 (sparc_store_inferior_registers) Remove obsolete comment.
6219 * sparc-nat.c (sparc_fetch_inferior_registers)
6220 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
6221 * sparc-nat.c (sparc_fetch_inferior_registers)
6222 (sparc_store_inferior_registers) Use gdb_ptrace.
6223
a225c9a8
KR
62242020-03-17 Kamil Rytarowski <n54@gmx.com>
6225
6226 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
6227 it to the ptrace call.
6228 * sh-nbsd-nat.c (store_registers): Likewise.
6229
98097623
KR
62302020-03-17 Kamil Rytarowski <n54@gmx.com>
6231
6232 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
6233 nbsd_nat_target instead of inf_ptrace_target.
6234 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
6235 nbsd_nat_target.
6236
9e38d619
KR
62372020-03-17 Kamil Rytarowski <n54@gmx.com>
6238
6239 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
6240
a2ecbe9f
KR
62412020-03-17 Kamil Rytarowski <n54@gmx.com>
6242
6243 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
6244 <sys/sysctl.h>.
6245 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
6246
58990295
TV
62472020-03-17 Tom de Vries <tdevries@suse.de>
6248
6249 PR gdb/23710
6250 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
6251 fields.
6252 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
6253 fields.
6254 (process_imported_unit_die): Skip import of c++ CUs.
6255
771dd3a8
TT
62562020-03-16 Tom Tromey <tom@tromey.com>
6257
6258 * p-valprint.c (pascal_object_print_value): Initialize
6259 base_value.
6260
817a7585
AK
62612020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
6262 Shahab Vahedi <shahab@synopsys.com>
6263
6264 * Makefile.in: Add arch/arc.o
6265 * configure.tgt: Likewise.
6266 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
6267 (_initialize_arc_tdep): Don't initialize old target descriptions.
aac66a4c 6268 (arc_read_description): New function to cache target descriptions.
817a7585
AK
6269 * arc-tdep.h (arc_read_description): Add proto type.
6270 * arch/arc.c: New file.
6271 * arch/arc.h: Likewise.
6272 * features/Makefile: Replace old target descriptions with new.
6273 * features/arc-arcompact.c: Remove.
6274 * features/arc-arcompact.xml: Likewise.
6275 * features/arc-v2.c: Likewise
6276 * features/arc-v2.xml: Likewise
6277 * features/arc/aux-arcompact.xml: New file.
6278 * features/arc/aux-v2.xml: Likewise.
6279 * features/arc/core-arcompact.xml: Likewise.
6280 * features/arc/core-v2.xml: Likewise.
6281 * features/arc/aux-arcompact.c: Generate.
6282 * features/arc/aux-v2.c: Likewise.
6283 * features/arc/core-arcompact.c: Likewise.
6284 * features/arc/core-v2.c: Likewise.
6285 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
6286
67430cd0
TT
62872020-03-16 Tom Tromey <tromey@adacore.com>
6288
6289 PR gdb/25663:
6290 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
6291 putting value into bcache.
6292
30efb6c7
SM
62932020-03-16 Simon Marchi <simon.marchi@efficios.com>
6294
6295 PR gdb/21500
6296 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
6297 to...
6298 (amd64_windows_init_abi_common): ... this. Don't set size of
6299 long type.
6300 (amd64_windows_init_abi): New function.
6301 (amd64_cygwin_init_abi): New function.
6302 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
6303 the Cygwin OS ABI.
6304 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
6305 comment.
6306
8db52437
SM
63072020-03-16 Simon Marchi <simon.marchi@efficios.com>
6308
6309 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
6310 * windows-tdep.c (CYGWIN_DLL_NAME): New.
6311 (pe_import_directory_entry): New struct type.
6312 (is_linked_with_cygwin_dll): New function.
6313 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
6314 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
6315 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
6316
5982a56a
SM
63172020-03-16 Simon Marchi <simon.marchi@efficios.com>
6318
6319 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
6320 i386_cygwin_core_osabi_sniffer.
6321
7a1998df
SM
63222020-03-16 Simon Marchi <simon.marchi@efficios.com>
6323
6324 * i386-cygwin-tdep.c: Rename to...
6325 * i386-windows-tdep.c: ... this.
6326 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
6327 i386-windows-tdep.c.
6328 * configure.tgt: Likewise.
6329
053205cc
SM
63302020-03-16 Simon Marchi <simon.marchi@efficios.com>
6331
6332 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
6333 * osabi.c (gdb_osabi_names): Add "Windows".
6334 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
6335 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
6336 (i386_cygwin_core_osabi_sniffer): New function, extracted from
6337 i386_cygwin_osabi_sniffer.
6338 (_initialize_i386_cygwin_tdep): Register OS ABI
6339 GDB_OSABI_WINDOWS for i386.
6340 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
6341 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
6342 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
6343 for x86-64.
6344 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
6345 when the target matches '*-*-mingw*'.
6346
fe4b2ee6
SM
63472020-03-16 Simon Marchi <simon.marchi@efficios.com>
6348
6349 * defs.h (enum gdb_osabi): Move to...
6350 * osabi.h (enum gdb_osabi): ... here.
6351 * gdbarch.sh: Include osabi.h in gdbarch.h.
6352 * gdbarch.h: Re-generate.
6353
cb9b645d
SM
63542020-03-16 Simon Marchi <simon.marchi@efficios.com>
6355
6356 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
6357 function.
6358 (_initialize_amd64_windows_tdep): Register osabi sniffer.
6359
3293bbaf
TT
63602020-03-14 Tom Tromey <tom@tromey.com>
6361
6362 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
6363 for C++.
6364 (c_type_print_modifier): Likewise. Add "language" parameter.
6365 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
6366 (c_type_print_base_1): Update.
6367 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
6368 constants.
6369 * type-stack.c (type_stack::insert): Handle tp_atomic and
6370 tp_restrict.
6371 (type_stack::follow_type_instance_flags): Likewise.
6372 (type_stack::follow_types): Likewise. Merge type-following code.
6373 * c-exp.y (RESTRICT, ATOMIC): New tokens.
6374 (space_identifier, cv_with_space_id)
6375 (const_or_volatile_or_space_identifier_noopt)
6376 (const_or_volatile_or_space_identifier): Remove.
6377 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
6378 rules.
6379 (ptr_operator, typebase): Update.
6380 (enum token_flag) <FLAG_C>: New constant.
6381 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
6382 "_Atomic".
6383 (lex_one_token): Handle FLAG_C.
6384
154151a6
KR
63852020-03-14 Kamil Rytarowski <n54@gmx.com>
6386
6387 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
6388 it to the ptrace call.
6389 * m68k-bsd-nat.c (store_registers): Likewise.
6390
bc107784
KR
63912020-03-14 Kamil Rytarowski <n54@gmx.com>
6392
6393 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
6394 gdb_byte *.
6395 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
6396 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
6397 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
6398
01a80117
KR
63992020-03-14 Kamil Rytarowski <n54@gmx.com>
6400
6401 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
6402 nbsd_nat_target instead of inf_ptrace_target.
6403 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
6404 nbsd_nat_target.
6405
f90280ca
KR
64062020-03-14 Kamil Rytarowski <n54@gmx.com>
6407
6408 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
6409 register_t.
6410
6def66f1
KR
64112020-03-14 Kamil Rytarowski <n54@gmx.com>
6412
6413 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
6414 it to the ptrace call.
6415 * alpha-bsd-nat.c (store_registers): Likewise.
6416
66eaca97
KR
64172020-03-14 Kamil Rytarowski <n54@gmx.com>
6418
6419 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
6420 includes.
6421 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
6422 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
6423 fill_fpregset): Likewise.
6424
4fed520b
KR
64252020-03-14 Kamil Rytarowski <n54@gmx.com>
6426
6427 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
6428 nbsd_nat_target instead of inf_ptrace_target.
6429 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
6430 nbsd_nat_target.
6431
2190cf06
KR
64322020-03-14 Kamil Rytarowski <n54@gmx.com>
6433
6434 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
6435 register_t.
6436
75c56d3d
KR
64372020-03-14 Kamil Rytarowski <n54@gmx.com>
6438
6439 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
6440 it to the ptrace call.
6441 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
6442 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
6443 * arm-nbsd-nat.c (store_register): Likewise.
6444 * arm-nbsd-nat.c (store_regs): Likewise.
6445 * arm-nbsd-nat.c (store_fp_register): Likewise.
6446 * arm-nbsd-nat.c (store_fp_regs): Likewise.
6447
6018d381
KR
64482020-03-14 Kamil Rytarowski <n54@gmx.com>
6449
6450 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
6451 nbsd_nat_target instead of inf_ptrace_target.
6452 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
6453 nbsd_nat_target.
6454
013f99f0
KR
64552020-03-14 Kamil Rytarowski <n54@gmx.com>
6456
6457 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
6458 it to the ptrace call.
6459 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
6460
12753073
KR
64612020-03-14 Kamil Rytarowski <n54@gmx.com>
6462
6227b330
KR
6463 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
6464 it to the ptrace call.
6465 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
6466
64672020-03-14 Kamil Rytarowski <n54@gmx.com>
6468
6469 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
6470 gdb_byte *.
12753073
KR
6471 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
6472
d5be5fa4
KR
64732020-03-14 Kamil Rytarowski <n54@gmx.com>
6474
6475 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
6476 instead of inf_ptrace_target.
6477 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
6478 nbsd_nat_target.
6479
8110f842
KR
64802020-03-14 Kamil Rytarowski <n54@gmx.com>
6481
6482 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
6483 register_t.
6484
52feded7
KR
64852020-03-14 Kamil Rytarowski <n54@gmx.com>
6486
6487 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
6488 register_t.
6489
25567eee
KR
64902020-03-14 Kamil Rytarowski <n54@gmx.com>
6491
6492 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
6493 register_t.
6494
426a9c18
TT
64952020-03-13 Tom Tromey <tom@tromey.com>
6496
6497 * value.h (val_print): Don't declare.
6498 * valprint.h (val_print_array_elements)
6499 (val_print_scalar_formatted, generic_val_print): Don't declare.
6500 * valprint.c (generic_val_print_array): Take a struct value.
6501 (generic_val_print_ptr, generic_val_print_memberptr)
6502 (generic_val_print_bool, generic_val_print_int)
6503 (generic_val_print_char, generic_val_print_complex)
6504 (generic_val_print): Remove.
6505 (generic_value_print): Update.
6506 (do_val_print): Remove unused parameters. Don't call
6507 la_val_print.
6508 (val_print): Remove.
6509 (common_val_print): Update. Don't call value_check_printable.
6510 (val_print_scalar_formatted, val_print_array_elements): Remove.
6511 * rust-lang.c (rust_val_print): Remove.
6512 (rust_language_defn): Update.
6513 * p-valprint.c (pascal_val_print): Remove.
6514 (pascal_value_print_inner): Update.
6515 (pascal_object_print_val_fields, pascal_object_print_val):
6516 Remove.
6517 (pascal_object_print_static_field): Update.
6518 * p-lang.h (pascal_val_print): Don't declare.
6519 * p-lang.c (pascal_language_defn): Update.
6520 * opencl-lang.c (opencl_language_defn): Update.
6521 * objc-lang.c (objc_language_defn): Update.
6522 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
6523 * m2-lang.h (m2_val_print): Don't declare.
6524 * m2-lang.c (m2_language_defn): Update.
6525 * language.h (struct language_defn) <la_val_print>: Remove.
6526 * language.c (unk_lang_value_print_inner): Rename. Change
6527 argument types.
6528 (unknown_language_defn, auto_language_defn): Update.
6529 * go-valprint.c (go_val_print): Remove.
6530 * go-lang.h (go_val_print): Don't declare.
6531 * go-lang.c (go_language_defn): Update.
6532 * f-valprint.c (f_val_print): Remove.
6533 * f-lang.h (f_value_print): Don't declare.
6534 * f-lang.c (f_language_defn): Update.
6535 * d-valprint.c (d_val_print): Remove.
6536 * d-lang.h (d_value_print): Don't declare.
6537 * d-lang.c (d_language_defn): Update.
6538 * cp-valprint.c (cp_print_value_fields)
6539 (cp_print_value_fields_rtti, cp_print_value): Remove.
6540 (cp_print_static_field): Update.
6541 * c-valprint.c (c_val_print_array, c_val_print_ptr)
6542 (c_val_print_struct, c_val_print_union, c_val_print_int)
6543 (c_val_print_memberptr, c_val_print): Remove.
6544 * c-lang.h (c_val_print_array, cp_print_value_fields)
6545 (cp_print_value_fields_rtti): Don't declare.
6546 * c-lang.c (c_language_defn, cplus_language_defn)
6547 (asm_language_defn, minimal_language_defn): Update.
6548 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
6549 (ada_val_print_enum): Take a struct value.
6550 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
6551 (ada_val_print): Remove.
6552 (ada_value_print_1): Update.
6553 (printable_val_type): Remove.
6554 * ada-lang.h (ada_val_print): Don't declare.
6555 * ada-lang.c (ada_language_defn): Update.
6556
42331a1e
TT
65572020-03-13 Tom Tromey <tom@tromey.com>
6558
6559 * valprint.c (do_val_print): Update.
6560 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
6561 a struct value.
6562 (value_to_value_object_no_release): Declare.
6563 * python/py-value.c (value_to_value_object_no_release): New
6564 function.
6565 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
6566 struct value.
6567 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
6568 function.
6569 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
6570 a struct value.
6571 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
6572 Declare.
6573 (gdbscm_apply_val_pretty_printer): Take a struct value.
6574 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
6575 value.
6576 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
6577 value.
6578 * extension-priv.h (struct extension_language_ops)
6579 <apply_val_pretty_printer>: Take a struct value.
6580 * cp-valprint.c (cp_print_value): Create a struct value.
6581 (cp_print_value): Update.
6582
3a916a97
TT
65832020-03-13 Tom Tromey <tom@tromey.com>
6584
6585 * ada-valprint.c (print_field_values): Call common_val_print.
6586
b59eac37
TT
65872020-03-13 Tom Tromey <tom@tromey.com>
6588
6589 * ada-valprint.c (val_print_packed_array_elements): Remove
6590 bitoffset and val parameters. Call common_val_print.
6591 (ada_val_print_string): Remove offset, address, and original_value
6592 parameters.
6593 (ada_val_print_array): Update.
6594 (ada_value_print_array): New function.
6595 (ada_value_print_1): Call it.
6596
03371129
TT
65972020-03-13 Tom Tromey <tom@tromey.com>
6598
6599 * ada-valprint.c (ada_value_print): Use common_val_print.
6600
2e088f8b
TT
66012020-03-13 Tom Tromey <tom@tromey.com>
6602
6603 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
6604
39ef85a8
TT
66052020-03-13 Tom Tromey <tom@tromey.com>
6606
6607 * ada-valprint.c (ada_value_print_num): New function.
6608 (ada_value_print_1): Use it.
6609
b9fa6e07
TT
66102020-03-13 Tom Tromey <tom@tromey.com>
6611
6612 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
6613
416595d6
TT
66142020-03-13 Tom Tromey <tom@tromey.com>
6615
6616 * ada-valprint.c (ada_value_print_ptr): New function.
6617 (ada_value_print_1): Use it.
6618
5b5e15ec
TT
66192020-03-13 Tom Tromey <tom@tromey.com>
6620
6621 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
6622 call common_val_print.
6623 (ada_val_print_1): Update.
6624 (ada_value_print_1): New function.
6625 (ada_value_print_inner): Rewrite.
6626
fbf54e75
TT
66272020-03-13 Tom Tromey <tom@tromey.com>
6628
6629 * cp-valprint.c (cp_print_value_fields): Update.
6630 (cp_print_value): New function.
6631
64b653ca
TT
66322020-03-13 Tom Tromey <tom@tromey.com>
6633
6634 * m2-valprint.c (m2_value_print_inner): Use
6635 cp_print_value_fields.
6636 * cp-valprint.c (cp_print_value_fields): New function.
6637 * c-valprint.c (c_value_print_struct): New function.
6638 (c_value_print_inner): Use c_value_print_struct.
6639 * c-lang.h (cp_print_value_fields): Declare.
6640
6999f067
TT
66412020-03-13 Tom Tromey <tom@tromey.com>
6642
6643 * c-valprint.c (c_value_print_array): New function.
6644 (c_value_print_inner): Use it.
6645
ce80b8bd
TT
66462020-03-13 Tom Tromey <tom@tromey.com>
6647
6648 * c-valprint.c (c_value_print_memberptr): New function.
6649 (c_value_print_inner): Use it.
6650
2faac269
TT
66512020-03-13 Tom Tromey <tom@tromey.com>
6652
6653 * c-valprint.c (c_value_print_int): New function.
6654 (c_value_print_inner): Use it.
6655
da3e2c29
TT
66562020-03-13 Tom Tromey <tom@tromey.com>
6657
6658 * c-valprint.c (c_value_print_ptr): New function.
6659 (c_value_print_inner): Use it.
6660
50836231
TT
66612020-03-13 Tom Tromey <tom@tromey.com>
6662
6663 * c-valprint.c (c_value_print_inner): Rewrite.
6664
4f412b6e
TT
66652020-03-13 Tom Tromey <tom@tromey.com>
6666
6667 * valprint.c (generic_value_print_complex): New function.
6668 (generic_value_print): Use it.
6669
f5354008
TT
66702020-03-13 Tom Tromey <tom@tromey.com>
6671
6672 * valprint.c (generic_val_print_float): Don't call
6673 val_print_scalar_formatted.
6674 (generic_val_print, generic_value_print): Update.
6675
3eec3b05
TT
66762020-03-13 Tom Tromey <tom@tromey.com>
6677
6678 * valprint.c (generic_value_print_char): New function
6679 (generic_value_print): Use it.
6680
fdddfccb
TT
66812020-03-13 Tom Tromey <tom@tromey.com>
6682
6683 * valprint.c (generic_value_print_int): New function.
6684 (generic_value_print): Use it.
6685
6dde7521
TT
66862020-03-13 Tom Tromey <tom@tromey.com>
6687
6688 * valprint.c (generic_value_print_bool): New function.
6689 (generic_value_print): Use it.
6690
4112d2e6
TT
66912020-03-13 Tom Tromey <tom@tromey.com>
6692
6693 * valprint.c (generic_val_print_func): Simplify.
6694 (generic_val_print, generic_value_print): Update.
6695
65786af6
TT
66962020-03-13 Tom Tromey <tom@tromey.com>
6697
6698 * valprint.c (generic_val_print_flags): Remove.
6699 (generic_val_print, generic_value_print): Update.
6700 (val_print_type_code_flags): Add original_value parameter.
6701
40f3ce18
TT
67022020-03-13 Tom Tromey <tom@tromey.com>
6703
6704 * valprint.c (generic_val_print): Update.
6705 (generic_value_print): Update.
6706 * valprint.c (generic_val_print_enum): Don't call
6707 val_print_scalar_formatted.
6708
2a5b130b
TT
67092020-03-13 Tom Tromey <tom@tromey.com>
6710
6711 * valprint.c (generic_value_print): Call generic_value_print_ptr.
6712 * valprint.c (generic_value_print_ptr): New function.
6713
abc66ce9
TT
67142020-03-13 Tom Tromey <tom@tromey.com>
6715
6716 * valprint.c (generic_value_print): Rewrite.
6717
07a32858
TT
67182020-03-13 Tom Tromey <tom@tromey.com>
6719
6720 * p-valprint.c (pascal_object_print_value_fields)
6721 (pascal_object_print_value): New functions.
6722
64d64d3a
TT
67232020-03-13 Tom Tromey <tom@tromey.com>
6724
6725 * p-valprint.c (pascal_value_print_inner): Rewrite.
6726
6a95a1f5
TT
67272020-03-13 Tom Tromey <tom@tromey.com>
6728
6729 * f-valprint.c (f_value_print_innner): Rewrite.
6730
59fcdac6
TT
67312020-03-13 Tom Tromey <tom@tromey.com>
6732
6733 * m2-valprint.c (m2_print_unbounded_array): New overload.
6734 (m2_print_unbounded_array): Update.
6735 (m2_print_array_contents): Take a struct value.
6736 (m2_value_print_inner): Rewrite.
6737
d133c3e1
TT
67382020-03-13 Tom Tromey <tom@tromey.com>
6739
6740 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
6741 (d_value_print_inner): New function.
6742 * d-lang.h (d_value_print_inner): Declare.
6743 * d-lang.c (d_language_defn): Use d_value_print_inner.
6744
23b0f06b
TT
67452020-03-13 Tom Tromey <tom@tromey.com>
6746
6747 * go-valprint.c (go_value_print_inner): New function.
6748 * go-lang.h (go_value_print_inner): Declare.
6749 * go-lang.c (go_language_defn): Use go_value_print_inner.
6750
5f56f7cb
TT
67512020-03-13 Tom Tromey <tom@tromey.com>
6752
6753 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
6754 API.
6755 (rust_val_print): Rewrite.
6756 (rust_value_print_inner): New function, from rust_val_print.
6757 (rust_language_defn): Use rust_value_print_inner.
6758
26792ee0
TT
67592020-03-13 Tom Tromey <tom@tromey.com>
6760
6761 * ada-valprint.c (ada_value_print_inner): New function.
6762 * ada-lang.h (ada_value_print_inner): Declare.
6763 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
6764
24051bbe
TT
67652020-03-13 Tom Tromey <tom@tromey.com>
6766
6767 * f-valprint.c (f_value_print_innner): New function.
6768 * f-lang.h (f_value_print_innner): Declare.
6769 * f-lang.c (f_language_defn): Use f_value_print_innner.
6770
c0941be6
TT
67712020-03-13 Tom Tromey <tom@tromey.com>
6772
6773 * p-valprint.c (pascal_value_print_inner): New function.
6774 * p-lang.h (pascal_value_print_inner): Declare.
6775 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
6776
62c4663d
TT
67772020-03-13 Tom Tromey <tom@tromey.com>
6778
6779 * m2-valprint.c (m2_value_print_inner): New function.
6780 * m2-lang.h (m2_value_print_inner): Declare.
6781 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
6782
62182190
TT
67832020-03-13 Tom Tromey <tom@tromey.com>
6784
6785 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
6786 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
6787 * c-valprint.c (c_value_print_inner): New function.
6788 * c-lang.h (c_value_print_inner): Declare.
6789 * c-lang.c (c_language_defn, cplus_language_defn)
6790 (asm_language_defn, minimal_language_defn): Use
6791 c_value_print_inner.
6792
1e592a8a
TT
67932020-03-13 Tom Tromey <tom@tromey.com>
6794
6795 * p-valprint.c (pascal_object_print_value_fields): Now static.
6796 * p-lang.h (pascal_object_print_value_fields): Don't declare.
6797
7fe471e9
TT
67982020-03-13 Tom Tromey <tom@tromey.com>
6799
6800 * c-valprint.c (c_val_print_array): Simplify.
6801
d121c6ce
TT
68022020-03-13 Tom Tromey <tom@tromey.com>
6803
6804 * valprint.c (value_print_array_elements): New function.
6805 * valprint.h (value_print_array_elements): Declare.
6806
4dba70ee
TT
68072020-03-13 Tom Tromey <tom@tromey.com>
6808
6809 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
6810 * mips-tdep.c (mips_print_register): Use
6811 value_print_scalar_formatted.
6812
4f9ae810
TT
68132020-03-13 Tom Tromey <tom@tromey.com>
6814
6815 * valprint.h (value_print_scalar_formatted): Declare.
6816 * valprint.c (value_print_scalar_formatted): New function.
6817
156bfec9
TT
68182020-03-13 Tom Tromey <tom@tromey.com>
6819
6820 * valprint.h (generic_value_print): Declare.
6821 * valprint.c (generic_value_print): New function.
6822
2b4e573d
TT
68232020-03-13 Tom Tromey <tom@tromey.com>
6824
6825 * valprint.c (do_val_print): Call la_value_print_inner, if
6826 available.
6827 * rust-lang.c (rust_language_defn): Update.
6828 * p-lang.c (pascal_language_defn): Update.
6829 * opencl-lang.c (opencl_language_defn): Update.
6830 * objc-lang.c (objc_language_defn): Update.
6831 * m2-lang.c (m2_language_defn): Update.
6832 * language.h (struct language_defn) <la_value_print_inner>: New
6833 member.
6834 * language.c (unknown_language_defn, auto_language_defn): Update.
6835 * go-lang.c (go_language_defn): Update.
6836 * f-lang.c (f_language_defn): Update.
6837 * d-lang.c (d_language_defn): Update.
6838 * c-lang.c (c_language_defn, cplus_language_defn)
6839 (asm_language_defn, minimal_language_defn): Update.
6840 * ada-lang.c (ada_language_defn): Update.
6841
a1f6a07c
TT
68422020-03-13 Tom Tromey <tom@tromey.com>
6843
6844 * c-valprint.c (c_value_print): Use common_val_print.
6845
410cf315
TT
68462020-03-13 Tom Tromey <tom@tromey.com>
6847
6848 * cp-valprint.c (cp_print_static_field): Use common_val_print.
6849
72a45c93
TT
68502020-03-13 Tom Tromey <tom@tromey.com>
6851
6852 * f-valprint.c (f77_print_array_1, f_val_print): Use
6853 common_val_print.
6854
040f66bd
TT
68552020-03-13 Tom Tromey <tom@tromey.com>
6856
6857 * riscv-tdep.c (riscv_print_one_register_info): Use
6858 common_val_print.
6859
a6e05a6c
TT
68602020-03-13 Tom Tromey <tom@tromey.com>
6861
6862 * mi/mi-main.c (output_register): Use common_val_print.
6863
3444c526
TT
68642020-03-13 Tom Tromey <tom@tromey.com>
6865
6866 * infcmd.c (default_print_one_register_info): Use
6867 common_val_print.
6868
c2a44efe
TT
68692020-03-13 Tom Tromey <tom@tromey.com>
6870
6871 * valprint.h (common_val_print_checked): Declare.
6872 * valprint.c (common_val_print_checked): New function.
6873 * stack.c (print_frame_arg): Use common_val_print_checked.
6874
b0c26e99
TT
68752020-03-13 Tom Tromey <tom@tromey.com>
6876
6877 * valprint.c (do_val_print): New function, from val_print.
6878 (val_print): Use do_val_print.
6879 (common_val_print): Use do_val_print.
6880
ce3acbe9
TT
68812020-03-13 Tom Tromey <tom@tromey.com>
6882
6883 * valprint.c (value_print): Use scoped_value_mark.
6884
96c7f873
TV
68852020-03-13 Tom de Vries <tdevries@suse.de>
6886
6887 PR symtab/25646
6888 * psymtab.c (partial_symtab::partial_symtab): Don't set
6889 globals_offset and statics_offset. Push element onto
6890 current_global_psymbols and current_static_psymbols stacks.
6891 (concat): New function.
6892 (end_psymtab_common): Set globals_offset and statics_offset. Pop
6893 element from current_global_psymbols and current_static_psymbols
6894 stacks. Concat popped elements to global_psymbols and
6895 static_symbols.
6896 (add_psymbol_to_list): Use current_global_psymbols and
6897 current_static_psymbols stacks.
6898 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
6899 current_static_psymbols fields.
6900
6ba0a321
CB
69012020-03-12 Christian Biesinger <cbiesinger@google.com>
6902
6903 * corelow.c (sniff_core_bfd): Remove.
6904 (class core_target) <m_core_vec>: Remove.
6905 (core_target::core_target): Update.
6906 (core_file_fns): Remove.
6907 (deprecated_add_core_fns): Remove.
6908 (default_core_sniffer): Remove.
6909 (sniff_core_bfd): Remove.
6910 (default_check_format): Remove.
6911 (gdb_check_format): Remove.
6912 (core_target_open): Update.
6913 (core_target::get_core_register_section): Update.
6914 (get_core_registers_cb): Update.
6915 (core_target::fetch_registers): Update.
6916 * gdbcore.h (struct core_fns): Remove.
6917 (deprecated_add_core_fns): Remove.
6918 (default_core_sniffer): Remove.
6919 (default_check_format): Remove.
6920
227031b2
TT
69212020-03-12 Tom Tromey <tom@tromey.com>
6922
6923 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
6924 CORE_ADDR.
6925 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
6926
53807e9f
TT
69272020-03-12 Tom Tromey <tom@tromey.com>
6928
6929 * remote.c (remote_target::download_tracepoint)
6930 (remote_target::enable_tracepoint)
6931 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
6932 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
6933 sprintf_vma.
6934
64f25102
TT
69352020-03-12 Tom Tromey <tom@tromey.com>
6936
6937 * symfile-mem.c: Update CORE_ADDR size assert.
6938
272cd5a3
SM
69392020-03-12 Simon Marchi <simon.marchi@efficios.com>
6940
6941 * selftest.m4: Move to gdbsupport/.
6942 * acinclude.m4: Update path to selftest.m4.
6943
74cd3f9d
SM
69442020-03-12 Simon Marchi <simon.marchi@efficios.com>
6945
6946 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
6947 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
6948 gdbarch-selfselftests.c and selftest-arch.c.
6949 (SUBDIR_UNITTESTS_OBS): Rename to...
6950 (SELFTESTS_OBS): ... this.
6951 (COMMON_SFILES): Remove disasm-selftests.c and
6952 gdbarch-selftests.c.
6953 * configure.ac: Don't add selftest-arch.{c,o} to
6954 CONFIG_{SRCS,OBS}.
6955 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
6956 preprocessor conditions.
6957
db6878ac
SM
69582020-03-12 Simon Marchi <simon.marchi@efficios.com>
6959
6960 * configure.ac: Don't source bfd/development.sh.
6961 * selftest.m4: Modify comment.
6962 * configure: Re-generate.
6963
4d696a5c
SM
69642020-03-12 Simon Marchi <simon.marchi@efficios.com>
6965
6966 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
6967 not "true" or "false".
6968 * configure: Re-generate.
6969
8dd8e1c7
CB
69702020-03-12 Christian Biesinger <cbiesinger@google.com>
6971
6972 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
6973 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
6974 renamed to arm_nbsd_supply_gregset.
6975 (fetch_register): Update to call arm_nbsd_supply_gregset.
6976 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
6977 (arm_netbsd_nat_target::fetch_registers): Update.
6978 (fetch_elfcore_registers): Removed.
6979 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
6980 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
6981 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
6982 not require NetBSD system headers.
6983 (arm_nbsd_regset): New struct.
6984 (arm_nbsd_iterate_over_regset_sections): New function.
6985 (arm_netbsd_init_abi_common): Updated to call
6986 set_gdbarch_iterate_over_regset_sections.
6987 * arm-nbsd-tdep.h: New file.
6988
dd69bf7a
KB
69892020-03-11 Kevin Buettner <kevinb@redhat.com>
6990
6991 * symtab.c (find_pc_sect_line): Add check which prevents infinite
6992 recursion.
6993
a0761e34
SM
69942020-03-11 Simon Marchi <simon.marchi@efficios.com>
6995
6996 * configure: Re-generate.
6997
e7a82140
TT
69982020-03-11 Tom Tromey <tromey@adacore.com>
6999
7000 * ada-typeprint.c (print_choices): Fix comment.
7001
dcc050c8
AB
70022020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
7003
7004 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
7005 previous item in the list, when the list has no items.
7006
1c33af77
TV
70072020-03-11 Tom de Vries <tdevries@suse.de>
7008
7009 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
7010 PROP_LOCLIST handling code.
7011
8c95582d
AB
70122020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
7013
7014 * buildsym-legacy.c (record_line): Pass extra parameter to
7015 record_line.
7016 * buildsym.c (buildsym_compunit::record_line): Take an extra
7017 parameter, reduce duplication in the line table, and record the
7018 is_stmt flag in the line table.
7019 * buildsym.h (buildsym_compunit::record_line): Add extra
7020 parameter.
7021 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
7022 non-statement lines.
7023 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
7024 this to the symtab builder.
7025 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
7026 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
7027 through to dwarf_record_line_1.
7028 * infrun.c (process_event_stop_test): When stepping, don't stop at
7029 a non-statement instruction, and only refresh the step info when
7030 we land in the middle of a line's range. Also add an extra
7031 comment.
7032 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
7033 field.
7034 * record-btrace.c (btrace_find_line_range): Only record lines
7035 marked as is-statement.
7036 * stack.c (frame_show_address): Show the frame address if we are
7037 in a non-statement sal.
7038 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
7039 (maintenance_print_one_line_table): Print a header for the is_stmt
7040 column, and include is_stmt information in the output.
7041 * symtab.c (find_pc_sect_line): Find lines marked as statements in
7042 preference to non-statements.
7043 (find_pcs_for_symtab_line): Prefer is-statement entries.
7044 (find_line_common): Likewise.
7045 * symtab.h (struct linetable_entry): Add is_stmt field.
7046 (struct symtab_and_line): Likewise.
7047 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
7048 arranging the line table.
7049
e4003a34
TV
70502020-03-07 Tom de Vries <tdevries@suse.de>
7051
7052 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
7053 DIE.
7054
e8932576
TT
70552020-03-07 Tom Tromey <tom@tromey.com>
7056
7057 * valops.c (value_literal_complex): Remove obsolete comment.
7058 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
7059 comment.
7060
29734269
SM
70612020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
7062
7063 * infrun.h: Forward-declare thread_info.
7064 (set_step_info): Add thread_info parameter, add doc.
7065 * infrun.c (set_step_info): Add thread_info parameter, move doc
7066 to header.
7067 * infrun.c (process_event_stop_test): Pass thread to
7068 set_step_info call.
7069 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
7070 set_step_info.
7071 (prepare_one_step): Add thread_info parameter, pass it to
7072 set_step_frame and prepare_one_step (recursive) call.
7073 (step_1): Pass thread to prepare_one_step call.
7074 (step_command_fsm::should_stop): Pass thread to
7075 prepare_one_step.
7076 (until_next_fsm): Pass thread to set_step_frame call.
7077 (finish_command): Pass thread to set_step_info call.
7078
b7d64b29
HD
70792020-03-06 Hannes Domani <ssbssa@yahoo.de>
7080
7081 * windows-tdep.c (windows_solib_create_inferior_hook):
7082 Check if inferior is running.
7083
09f2921c
TV
70842020-03-06 Tom de Vries <tdevries@suse.de>
7085
7086 * NEWS: Fix "the the".
7087 * ctfread.c: Same.
7088
fd760e79
TV
70892020-03-06 Tom de Vries <tdevries@suse.de>
7090
7091 * psymtab.c (psymtab_to_symtab): Don't print "done.".
7092
20ea4a60
AB
70932020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
7094
7095 * .dir-locals.el: Add a comment referencing the other copies of
7096 this file.
7097
0afbabf0
JB
70982020-03-05 John Baldwin <jhb@FreeBSD.org>
7099
7100 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
7101 psargs.
7102
842806cb
TBA
71032020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7104
7105 * .gitattributes: New file.
7106
be1e3d3e
TT
71072020-03-04 Tom Tromey <tom@tromey.com>
7108
7109 * symmisc.c (print_symbol_bcache_statistics)
7110 (print_objfile_statistics): Update.
7111 * symfile.c (allocate_symtab): Use intern.
7112 * psymtab.c (partial_symtab::partial_symtab): Use intern.
7113 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
7114 macro_cache>: Remove.
7115 <string_cache>: New member.
7116 (struct objfile) <intern>: New methods.
7117 * elfread.c (elf_symtab_read): Use intern.
7118 * dwarf2/read.c (fixup_go_packaging): Intern package name.
7119 (dwarf2_compute_name, dwarf2_physname)
7120 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
7121 names.
7122 (guess_partial_die_structure_name): Update.
7123 (partial_die_info::fixup): Intern name.
7124 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
7125 name.
7126 (dwarf2_name): Intern name. Update.
7127 * buildsym.c (buildsym_compunit::get_macro_table): Use
7128 string_cache.
7129
4e7625fd
TT
71302020-03-04 Tom Tromey <tom@tromey.com>
7131
7132 * jit.c (bfd_open_from_target_memory): Make "target" const.
7133 * corefile.c (gnutarget): Now const.
7134 * gdbcore.h (gnutarget): Now const.
7135
46f9f931
HD
71362020-03-04 Hannes Domani <ssbssa@yahoo.de>
7137
7138 * NEWS: Mention support for WOW64 processes.
7139 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
7140 (amd64_windows_segment_register_p): Remove static.
7141 (_initialize_amd64_windows_nat): Update.
7142 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
7143 * i386-windows-nat.c (context_offset): Update.
7144 (i386_mappings): Rename and remove static.
7145 (i386_windows_segment_register_p): Remove static.
7146 (_initialize_i386_windows_nat): Update.
7147 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
7148 (STATUS_WX86_SINGLE_STEP): New macro.
7149 (EnumProcessModulesEx): New macro.
7150 (Wow64SuspendThread): New macro.
7151 (Wow64GetThreadContext): New macro.
7152 (Wow64SetThreadContext): New macro.
7153 (Wow64GetThreadSelectorEntry): New macro.
7154 (windows_set_context_register_offsets): Add static.
7155 (windows_set_segment_register_p): Likewise.
7156 (windows_add_thread): Adapt for WOW64 processes.
7157 (windows_fetch_one_register): Likewise.
7158 (windows_nat_target::fetch_registers): Likewise.
7159 (windows_store_one_register): Likewise.
7160 (display_selector): Likewise.
7161 (display_selectors): Likewise.
7162 (handle_exception): Likewise.
7163 (windows_continue): Likewise.
7164 (windows_nat_target::resume): Likewise.
7165 (windows_add_all_dlls): Likewise.
7166 (do_initial_windows_stuff): Likewise.
7167 (windows_nat_target::attach): Likewise.
7168 (windows_get_exec_module_filename): Likewise.
7169 (windows_nat_target::create_inferior): Likewise.
7170 (windows_xfer_siginfo): Likewise.
7171 (_initialize_loadable): Initialize Wow64SuspendThread,
7172 Wow64GetThreadContext, Wow64SetThreadContext,
7173 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
7174 * windows-nat.h (windows_set_context_register_offsets):
7175 Remove declaration.
7176 (windows_set_segment_register_p): Likewise.
7177 (i386_windows_segment_register_p): Add declaration.
7178 (amd64_windows_segment_register_p): Likewise.
7179
440cf44e
LM
71802020-03-04 Luis Machado <luis.machado@linaro.org>
7181
7182 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
7183 in "info registers" for AArch64/ARM.
7184
7185 The change caused "info registers" to not print GPR's.
7186
7187 gdb/ChangeLog:
7188
7189 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
7190
7191 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
7192 when reg->group is empty and reggroup is not.
7193
1009d92f
TT
71942020-03-03 Tom Tromey <tromey@adacore.com>
7195
7196 * dwarf2/frame.c (struct dwarf2_frame_cache)
7197 <checked_tailcall_bottom, entry_cfa_sp_offset,
7198 entry_cfa_sp_offset_p>: Remove members.
7199 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
7200 (dwarf2_frame_prev_register): Don't call
7201 dwarf2_tailcall_sniffer_first.
7202 (dwarf2_append_unwinders): Don't append tailcall unwinder.
7203 * frame-unwind.c (add_unwinder): New fuction.
7204 (frame_unwind_init): Use it. Add tailcall unwinder.
7205
5e5d66b6
AB
72062020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
7207 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
7208
7209 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
7210 value should be printed as true.
7211
584cf46d
HD
72122020-03-03 Hannes Domani <ssbssa@yahoo.de>
7213
7214 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
7215 (windows_init_abi): Set and use windows_so_ops.
7216
7b973adc
SDJ
72172020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
7218
7219 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
7220 when verifying if dealing with a convenience variable.
7221
bb7b70ab
LM
72222020-03-03 Luis Machado <luis.machado@linaro.org>
7223
7224 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
7225
9822cb57
SM
72262020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
7227
7228 * infrun.c (gdbarch_supports_displaced_stepping): New.
7229 (use_displaced_stepping): Break up conditions in smaller pieces.
7230 Use gdbarch_supports_displaced_stepping.
7231 (displaced_step_prepare_throw): Use
7232 gdbarch_supports_displaced_stepping.
7233
63e163f2
AB
72342020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
7235
7236 * NEWS: Mention new behaviour of the history filename.
7237 * top.c (write_history_p): Add comment.
7238 (show_write_history_p): Add header comment, give a different
7239 message when history writing is on, but the history filename is
7240 empty.
7241 (history_filename): Add comment.
7242 (history_filename_empty): New function.
7243 (show_history_filename): Add header comment, give a different
7244 message when the filename is empty.
7245 (init_history): Compare history_filename against nullptr, and only
7246 read history if the filename is not empty.
7247 (set_history_filename): Add header comment, and only make
7248 non-empty filenames absolute.
7249 (init_main): Make the filename argument to 'set history filename'
7250 optional.
7251
81b86b97
CB
72522020-03-02 Christian Biesinger <cbiesinger@google.com>
7253
7254 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
7255 (arm_supply_vfpregset): ...this, and update to use VFP registers.
7256 (fetch_fp_register): Update.
7257 (fetch_fp_regs): Update.
7258 (store_fp_register): Update.
7259 (store_fp_regs): Update.
7260 (arm_netbsd_nat_target::read_description): New function.
7261 (fetch_elfcore_registers): Update.
7262
24ed6739
AB
72632020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
7264
7265 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
7266 general_thread if the stop reply is missing a thread-id.
7267 (remote_target::process_stop_reply): Use the first non-exited
7268 thread if the target didn't pass a thread-id.
7269 * infrun.c (do_target_wait): Move call to
7270 switch_to_inferior_no_thread to ....
7271 (do_target_wait_1): ... here.
7272
a84bb2a0
JT
72732020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
7274
7275 * debuginfod-support.c: Include defs.h first.
7276
658dadf0
TV
72772020-02-28 Tom de Vries <tdevries@suse.de>
7278
7279 * symfile.c (set_initial_language): Use default language for lookup.
7280
4ebe4877
SM
72812020-02-28 Simon Marchi <simon.marchi@efficios.com>
7282
7283 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
7284 reader variable, pass `this` to read_cutu_die_from_dwo.
7285
e5da1139
AM
72862020-02-27 Aaron Merey <amerey@redhat.com>
7287
7288 * source.c (open_source_file): Check for nullptr when computing
7289 srcpath.
7290
317f7127
TT
72912020-02-27 Tom Tromey <tromey@adacore.com>
7292
7293 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
7294 member.
7295 (dwarf2_add_field): Don't update nfields.
7296 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
7297
3104d9ee
AB
72982020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
7299
7300 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
7301 abs.
7302
b83470bf
TT
73032020-02-26 Tom Tromey <tom@tromey.com>
7304
7305 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
7306 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
7307 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
7308 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
7309 per_cu_data.
7310
edfe0a0c
TT
73112020-02-26 Tom Tromey <tom@tromey.com>
7312
7313 * dwarf2/index-write.c (psym_index_map): Change type.
7314 (add_address_entry_worker, write_one_signatured_type)
7315 (recursively_count_psymbols, recursively_write_psymbols)
7316 (class debug_names, psyms_seen_size, write_gdbindex)
7317 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
7318
0d79cdc4
AM
73192020-02-26 Aaron Merey <amerey@redhat.com>
7320
7321 * Makefile.in: Handle optional debuginfod support.
7322 * NEWS: Update.
7323 * README: Add --with-debuginfod summary.
7324 * config.in: Regenerate.
7325 * configure: Regenerate.
7326 * configure.ac: Handle optional debuginfod support.
7327 * debuginfod-support.c: debuginfod helper functions.
7328 * debuginfod-support.h: Ditto.
7329 * doc/gdb.texinfo: Add --with-debuginfod to configure options
7330 summary.
7331 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
7332 when a dwz file cannot be found.
7333 * elfread.c (elf_symfile_read): Query debuginfod servers when a
7334 debuginfo file cannot be found.
7335 * source.c (open_source_file): Query debuginfod servers when a
7336 source file cannot be found.
7337 * top.c (print_gdb_configuration): Include
7338 --{with,without}-debuginfod in the output.
7339
b65ce565
JG
73402020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
7341
7342 * thread.c (thr_try_catch_cmd): Print thread name.
7343
d4c9a4f8
SM
73442020-02-26 Simon Marchi <simon.marchi@efficios.com>
7345
7346 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
7347 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
7348 dwarf2_fetch_die_type_sect_off): Move to...
7349 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
7350 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
7351 dwarf2_fetch_die_type_sect_off): ... here.
7352 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
7353 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
7354 dwarf2_fetch_die_type_sect_off): Move doc to header file.
7355
0dce4280
TV
73562020-02-26 Tom de Vries <tdevries@suse.de>
7357
7358 PR gdb/25603
7359 * symfile.c (set_initial_language): Exit-early if
7360 language_mode == language_mode_manual.
7361
450a1bfc
SM
73622020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
7363
7364 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
7365 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
7366 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
7367
9e80cfa1
AB
73682020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
7369
7370 * gdbtypes.c (create_array_type_with_stride): Handle negative
7371 array strides.
7372 * valarith.c (value_subscripted_rvalue): Likewise.
7373
09624f1f
LM
73742020-02-25 Luis Machado <luis.machado@linaro.org>
7375
7376 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
7377
8cb5117c
SM
73782020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
7379
7380 * loc.h (dwarf2_get_die_type): Move to...
7381 * read.h (dwarf2_get_die_type): ... here.
7382 * read.c (dwarf2_get_die_type): Move doc to header.
7383
c325c44e
JB
73842020-02-25 Joel Brobecker <brobecker@adacore.com>
7385
7386 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
7387 'gnulib/Makefile.in' to the list.
7388
4ac93832
TT
73892020-02-24 Tom Tromey <tom@tromey.com>
7390
7391 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
7392 Remove.
7393 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
7394 XOBNEWVEC.
7395
197400e8
TT
73962020-02-24 Tom Tromey <tom@tromey.com>
7397
7398 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
7399 New method.
7400 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
7401 (dw2_do_instantiate_symtab, dw2_get_file_names)
7402 (build_type_psymtab_dependencies, load_full_type_unit): Update.
7403
76935768
TT
74042020-02-24 Tom Tromey <tom@tromey.com>
7405
7406 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
7407 make_scoped_restore.
7408 (dwarf2_psymtab::read_symtab): Don't clear
7409 reading_partial_symbols.
7410
a88ef40d
TV
74112020-02-24 Tom de Vries <tdevries@suse.de>
7412
7413 PR gdb/25592
7414 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
7415
c9af6521
TV
74162020-02-24 Tom de Vries <tdevries@suse.de>
7417
7418 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
7419 commands layout next/prev/regs.
7420
5707a07a
TT
74212020-02-22 Tom Tromey <tom@tromey.com>
7422
7423 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
7424 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
7425
3b0fb49e
TT
74262020-02-22 Tom Tromey <tom@tromey.com>
7427
7428 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
7429
283be8bf
TT
74302020-02-22 Tom Tromey <tom@tromey.com>
7431
7432 * tui/tui-win.c (_initialize_tui_win): Add usage text.
7433 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
7434 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
7435 * tui/tui.c (_initialize_tui): Add usage text.
7436
ca793b96
TT
74372020-02-22 Tom Tromey <tom@tromey.com>
7438
7439 * tui/tui-win.c (tui_set_focus_command)
7440 (tui_set_win_height_command): Use error_no_arg.
7441 (_initialize_tui_win): Update help text.
7442 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
7443
432b5c40
TT
74442020-02-22 Tom Tromey <tom@tromey.com>
7445
7446 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
7447 * tui/tui-disasm.h (struct tui_disasm_window)
7448 <display_start_addr>: Declare.
7449 * tui/tui-source.h (struct tui_source_window)
7450 <display_start_addr>: Declare.
7451 * tui/tui-winsource.h (struct tui_source_window_base)
7452 <show_source_line, display_start_addr>: New methods.
7453 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
7454 Rename and move to protected section.
7455 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
7456 (tui_source_window_base::do_erase_source_content): Update.
7457 (tui_source_window_base::show_source_line): Now a method.
7458 (tui_source_window_base::show_source_content)
7459 (tui_source_window_base::tui_source_window_base)
7460 (tui_source_window_base::rerender)
7461 (tui_source_window_base::refill)
7462 (tui_source_window_base::do_scroll_horizontal)
7463 (tui_source_window_base::set_is_exec_point_at)
7464 (tui_source_window_base::update_breakpoint_info)
7465 (tui_source_window_base::update_exec_info): Update.
7466 * tui/tui-source.c (tui_source_window::set_contents)
7467 (tui_source_window::showing_source_p)
7468 (tui_source_window::do_scroll_vertical)
7469 (tui_source_window::location_matches_p)
7470 (tui_source_window::line_is_displayed): Update.
7471 (tui_source_window::display_start_addr): New method.
7472 * tui/tui-disasm.c (tui_disasm_window::set_contents)
7473 (tui_disasm_window::do_scroll_vertical)
7474 (tui_disasm_window::location_matches_p): Update.
7475 (tui_disasm_window::display_start_addr): New method.
7476
01b1af32
TT
74772020-02-22 Tom Tromey <tom@tromey.com>
7478
7479 * NEWS: Add entry for gdb.register_window_type.
7480 * tui/tui-layout.h (window_factory): New typedef.
7481 (tui_register_window): Declare.
7482 * tui/tui-layout.c (saved_tui_windows): New global.
7483 (tui_apply_current_layout): Use it.
7484 (tui_register_window): New function.
7485 * python/python.c (do_start_initialization): Call
7486 gdbpy_initialize_tui.
7487 (python_GdbMethods): Add "register_window_type" function.
7488 * python/python-internal.h (gdbpy_register_tui_window)
7489 (gdbpy_initialize_tui): Declare.
7490 * python/py-tui.c: New file.
7491 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
7492
fc96d20b
TT
74932020-02-22 Tom Tromey <tom@tromey.com>
7494
7495 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
7496
935c78c0
TT
74972020-02-22 Tom Tromey <tom@tromey.com>
7498
7499 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
7500 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
7501 * tui/tui-data.c (tui_set_win_with_focus): Remove.
7502 (tui_set_win_focus_to): Move from tui-win.c.
7503
0240c8f1
TT
75042020-02-22 Tom Tromey <tom@tromey.com>
7505
7506 * tui/tui-layout.c (make_standard_window, get_locator_window): New
7507 functions.
7508 (known_window_types): New global.
7509 (tui_get_window_by_name): Reimplement.
7510 (initialize_known_windows): New function.
7511 (validate_window_name): Rewrite.
7512 (_initialize_tui_layout): Call initialize_known_windows.
7513
fdb01f0c
TT
75142020-02-22 Tom Tromey <tom@tromey.com>
7515
7516 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
7517 Remove constants.
7518 * tui/tui-winsource.h (struct tui_source_window_base)
7519 <tui_source_window_base>: Remove parameter.
7520 * tui/tui-winsource.c
7521 (tui_source_window_base::tui_source_window_base): Remove
7522 parameter.
7523 (tui_source_window_base::refill): Update.
7524 * tui/tui-stack.h (struct tui_locator_window)
7525 <tui_locator_window>: Update.
7526 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
7527 Default the constructor.
7528 * tui/tui-regs.h (struct tui_data_item_window)
7529 <tui_data_item_window>: Default the constructor.
7530 (struct tui_data_window) <tui_data_window>: Likewise.
7531 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
7532 Default the constructor.
7533 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
7534 Default the constructor.
7535 <type>: Remove.
7536 (struct tui_win_info) <tui_win_info>: Default the constructor.
7537 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
7538 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
7539 Default the constructor.
7540
865a5aec
TT
75412020-02-22 Tom Tromey <tom@tromey.com>
7542
7543 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
7544 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
7545 * tui/tui-win.c (tui_resize_all): Don't call
7546 tui_delete_invisible_windows.
7547 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
7548 done.
7549 (tui_set_layout): Update.
7550 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
7551 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
7552 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
7553
e098d18c
TT
75542020-02-22 Tom Tromey <tom@tromey.com>
7555
7556 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
7557 correctly.
7558
eb9c8874
TT
75592020-02-22 Tom Tromey <tom@tromey.com>
7560
7561 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
7562
7eed1a8e
TT
75632020-02-22 Tom Tromey <tom@tromey.com>
7564
7565 * tui/tui-winsource.h (struct tui_source_window_iterator)
7566 <inner_iterator>: New etytypedef.
7567 <tui_source_window_iterator>: Take "end" parameter.
7568 <tui_source_window_iterator>: Take iterator.
7569 <operator*, advance>: Update.
7570 <m_iter>: Change type.
7571 <m_end>: New field.
7572 (struct tui_source_windows) <begin, end>: Update.
7573 * tui/tui-layout.c (tui_windows): New global.
7574 (tui_apply_current_layout): Clear tui_windows.
7575 (tui_layout_window::apply): Update tui_windows.
7576 * tui/tui-data.h (tui_windows): Declare.
7577 (all_tui_windows): Now inline function.
7578 (class tui_window_iterator, struct all_tui_windows): Remove.
7579
7c043ba6
TT
75802020-02-22 Tom Tromey <tom@tromey.com>
7581
7582 PR tui/17850:
7583 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
7584 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
7585 "height" argument.
7586 (class tui_layout_window) <get_sizes>: Likewise.
7587 (class tui_layout_split) <tui_layout_split>: Add "vertical"
7588 argument.
7589 <get_sizes>: Add "height" argument.
7590 <m_vertical>: New field.
7591 * tui/tui-layout.c (tui_layout_split::clone): Update.
7592 (tui_layout_split::get_sizes): Add "height" argument.
7593 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
7594 (tui_new_layout_command): Parse "-horizontal".
7595 (_initialize_tui_layout): Update help string.
7596 (tui_layout_split::specification): Add "-horizontal" when needed.
7597 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
7598 argument.
7599 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
7600 New methods.
7601
6bc56648
TT
76022020-02-22 Tom Tromey <tom@tromey.com>
7603
7604 * tui/tui-layout.h (enum tui_adjust_result): New.
7605 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
7606 (class tui_layout_window) <adjust_size>: Return
7607 tui_adjust_result. Rewrite.
7608 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
7609 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
7610
c22fef7e
TT
76112020-02-22 Tom Tromey <tom@tromey.com>
7612
7613 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
7614 parameter and return types.
7615 (class tui_layout_base) <specification>: Add "depth".
7616 (class tui_layout_window) <specification>: Add "depth".
7617 (class tui_layout_split) <specification>: Add "depth".
7618 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
7619 and return types.
7620 (tui_new_layout_command): Parse sub-layouts.
7621 (_initialize_tui_layout): Update help string.
7622 (tui_layout_window::specification): Add "depth".
7623 (add_layout_command): Update.
7624
ee325b61
TT
76252020-02-22 Tom Tromey <tom@tromey.com>
7626
7627 * NEWS: Add "tui new-layout" item.
7628 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
7629 Add new-layout command to help text.
7630 (validate_window_name): New function.
7631 (tui_new_layout_command): New function.
7632 (_initialize_tui_layout): Register "new-layout".
7633 (tui_layout_window::specification): New method.
7634 (tui_layout_window::specification): New method.
7635 * tui/tui-layout.h (class tui_layout_base) <specification>: New
7636 method.
7637 (class tui_layout_window) <specification>: New method.
7638 (class tui_layout_split) <specification>: New method.
7639
416eb92d
TT
76402020-02-22 Tom Tromey <tom@tromey.com>
7641
7642 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
7643 * tui/tui-win.c (window_name_completer): Update comment.
7644 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
7645 Declare method.
7646 (class tui_layout_window) <replace_window>: Likewise.
7647 (class tui_layout_split) <replace_window>: Likewise.
7648 (tui_set_layout): Don't declare.
7649 (tui_set_initial_layout): Declare function.
7650 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
7651 (asm_regs_layout): New globals.
7652 (tui_current_layout, show_layout): Remove.
7653 (tui_set_layout, tui_add_win_to_layout): Rewrite.
7654 (find_layout, tui_apply_layout): New function.
7655 (layout_completer): Remove.
7656 (tui_next_layout): Reimplement.
7657 (tui_next_layout_command): New function.
7658 (tui_set_initial_layout, tui_prev_layout_command): New functions.
7659 (tui_regs_layout): Reimplement.
7660 (tui_regs_layout_command): New function.
7661 (extract_display_start_addr): Rewrite.
7662 (next_layout, prev_layout): Remove.
7663 (tui_layout_window::replace_window): New method.
7664 (tui_layout_split::replace_window): New method.
7665 (destroy_layout): New function.
7666 (layout_list): New global.
7667 (add_layout_command): New function.
7668 (initialize_layouts): Update.
7669 (tui_layout_command): New function.
7670 (_initialize_tui_layout): Install "layout" commands.
7671 * tui/tui-data.h (enum tui_layout_type): Remove.
7672 (tui_current_layout): Don't declare.
7673
0dbc2fc7
TT
76742020-02-22 Tom Tromey <tom@tromey.com>
7675
7676 * tui/tui-regs.c (tui_reg_layout): Remove.
7677 (tui_reg_command): Use tui_regs_layout.
7678 * tui/tui-layout.h (tui_reg_command): Declare.
7679 * tui/tui-layout.c (tui_reg_command): New function.
7680
5afe342e
TT
76812020-02-22 Tom Tromey <tom@tromey.com>
7682
7683 * tui/tui.c (tui_rl_delete_other_windows): Call
7684 tui_remove_some_windows.
7685 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
7686 Declare method.
7687 (class tui_layout_window) <remove_windows>: New method.
7688 (class tui_layout_split) <remove_windows>: Declare.
7689 (tui_remove_some_windows): Declare.
7690 * tui/tui-layout.c (tui_remove_some_windows): New function.
7691 (tui_layout_split::remove_windows): New method.
7692
427326a8
TT
76932020-02-22 Tom Tromey <tom@tromey.com>
7694
7695 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
7696 * tui/tui-layout.h (tui_next_layout): Declare.
7697 * tui/tui-layout.c (tui_next_layout): New function.
7698
3fe12b6d
TT
76992020-02-22 Tom Tromey <tom@tromey.com>
7700
7701 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
7702 correct coordinates.
7703
59b8b5d2
TT
77042020-02-22 Tom Tromey <tom@tromey.com>
7705
7706 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
7707 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
7708 DATA_WIN case.
7709
2a3d458b
TT
77102020-02-22 Tom Tromey <tom@tromey.com>
7711
7712 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
7713 TUI_DISASM_WIN, not tui_win_list.
7714
3f0cbb04
TT
77152020-02-22 Tom Tromey <tom@tromey.com>
7716
7717 * valprint.c (generic_val_print_enum_1)
7718 (val_print_type_code_flags): Style member names.
7719 * rust-lang.c (val_print_struct, rust_print_enum)
7720 (rust_print_struct_def, rust_internal_print_type): Style member
7721 names.
7722 * p-valprint.c (pascal_object_print_value_fields): Style member
7723 names. Only call fprintf_symbol_filtered for static members.
7724 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
7725 * f-valprint.c (f_val_print): Style member names.
7726 * f-typeprint.c (f_type_print_base): Style member names.
7727 * cp-valprint.c (cp_print_value_fields): Style member names. Only
7728 call fprintf_symbol_filtered for static members.
7729 (cp_print_class_member): Style member names.
7730 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
7731 member names.
7732 * ada-valprint.c (ada_print_scalar): Style enum names.
7733 (ada_val_print_enum): Likewise.
7734 * ada-typeprint.c (print_enum_type): Style enum names.
7735
d4d947ae
TT
77362020-02-21 Tom Tromey <tom@tromey.com>
7737
7738 * psympriv.h (struct partial_symtab): Update comment.
7739
e94e944b
TT
77402020-02-21 Tom Tromey <tromey@adacore.com>
7741
7742 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
7743 type is CORE_ADDR.
7744
1eb73179
TV
77452020-02-21 Tom de Vries <tdevries@suse.de>
7746
7747 PR gdb/25534
7748 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
7749 if dependencies[i]->user != NULL.
7750
4f180d53
AT
77512020-02-21 Ali Tamur <tamur@google.com>
7752
7753 * dwarf2/read.c (dwarf2_name): Add null check.
7754
22b6cd70
TT
77552020-02-20 Tom Tromey <tom@tromey.com>
7756
7757 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
7758 ">=", in binary search.
7759 (dwarf2_find_containing_comp_unit): New overload.
7760 (run_test): New self-test.
7761 (_initialize_dwarf2_read): Register new test.
7762
bd0cf5a6
NC
77632020-02-20 Nelson Chu <nelson.chu@sifive.com>
7764
7765 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
7766 * riscv-tdep.h: Likewise.
7767 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
7768 rv32-only CSR.
7769 * features/riscv/64bit-csr.xml: Regenerated.
7770
3f702acd
SDJ
77712020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
7772 Tom Tromey <tom@tromey.com>
7773
7774 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
7775 of 'fputc_unfiltered'.
7776 (putchar_unfiltered): Call 'fputc_unfiltered'.
7777 (fputc_unfiltered): Call 'fputs_unfiltered'.
7778
d13c7322
AB
77792020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
7780
7781 * config.in: Regenerate.
7782 * configure: Regenerate.
7783 * configure.ac: Add --with-python-libdir option.
7784 * main.c: Use WITH_PYTHON_LIBDIR.
7785
869d8950
TT
77862020-02-19 Tom Tromey <tom@tromey.com>
7787
7788 * symtab.c (general_symbol_info::compute_and_set_names): Use
7789 obstack_strndup. Simplify call to symbol_set_demangled_name.
7790
298e9637
SM
77912020-02-19 Simon Marchi <simon.marchi@efficios.com>
7792
7793 * dwarf2/read.c (allocate_signatured_type_table,
7794 allocate_dwo_unit_table, allocate_type_unit_groups_table,
7795 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
7796 Remove objfile parameter, update all callers.
7797
08410482
DE
77982020-02-19 Doug Evans <dje@google.com>
7799
7800 PR rust/25535
7801 * rust-lang.c (rust_print_enum): Apply embedded_offset to
7802 rust_enum_variant calculation.
7803
dfdeeca1
TT
78042020-02-19 Tom Tromey <tromey@adacore.com>
7805
7806 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
7807
2ef5453b
TT
78082020-02-19 Tom Tromey <tromey@adacore.com>
7809
7810 * ada-lang.c (cache_symbol): Use obstack_strdup.
7811
9f1528a1
AB
78122020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
7813
7814 * configure: Regenerate.
7815
d3c22fa8
TT
78162020-02-19 Tom Tromey <tromey@adacore.com>
7817
7818 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
7819 NULL check.
7820
bf84f706
MR
78212020-02-19 Maciej W. Rozycki <macro@wdc.com>
7822
7823 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
7824
d1c9b20f
AB
78252020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
7826
7827 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
7828 if GDBSERVER is not defined.
7829 (riscv_tdesc_cache): Likewise, also store const target_desc.
7830 (STATIC_IN_GDB): Define.
7831 (riscv_create_target_description): Update declaration with
7832 STATIC_IN_GDB.
7833 (riscv_lookup_target_description): New function, only define if
7834 GDBSERVER is not defined.
7835 * arch/riscv.h (riscv_create_target_description): Declare only
7836 when GDBSERVER is defined.
7837 (riscv_lookup_target_description): New declaration when GDBSERVER
7838 is not defined.
7839 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
7840 (riscv_linux_read_features): ...this, and return
7841 riscv_gdbarch_features instead of target_desc.
7842 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
7843 (riscv_linux_read_description): Rename to...
7844 (riscv_linux_read_features): ...this.
7845 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
7846 Update to use riscv_gdbarch_features and
7847 riscv_lookup_target_description.
7848 * riscv-tdep.c (riscv_find_default_target_description): Use
7849 riscv_lookup_target_description instead of
7850 riscv_create_target_description.
7851
373d7ac0
SM
78522020-02-18 Simon Marchi <simon.marchi@efficios.com>
7853
7854 * valprint.c (generic_val_print_enum_1): When printing a flag
7855 enum with value 0 and there is no enumerator with value 0, print
7856 just "0" instead of "(unknown: 0x0)".
7857
b29a2df0
SM
78582020-02-18 Simon Marchi <simon.marchi@efficios.com>
7859
7860 * valprint.c (generic_val_print_enum_1): Print unknown part of
7861 flag enum in hex.
7862
6740f0cc
SM
78632020-02-18 Simon Marchi <simon.marchi@efficios.com>
7864
7865 * dwarf2/read.c (update_enumeration_type_from_children): Allow
7866 flag enums to contain duplicate enumerators.
7867 * valprint.c (generic_val_print_enum_1): Update comment.
7868
edd45eb0
SM
78692020-02-18 Simon Marchi <simon.marchi@efficios.com>
7870
7871 * dwarf2/read.c: Include "count-one-bits.h".
7872 (update_enumeration_type_from_children): If an enumerator has
7873 multiple bits set, don't treat the enumeration as a "flag enum".
7874 * valprint.c (generic_val_print_enum_1): Assert that enumerators
7875 of flag enums have 0 or 1 bit set.
7876
6d0cf446
BE
78772020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
7878
7879 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
7880 conversion.
7881 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
7882 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
7883 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
7884 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
7885 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
7886
7001c1b7
SM
78872020-02-18 Simon Marchi <simon.marchi@efficios.com>
7888
7889 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
7890
fdb61c6c
SM
78912020-02-14 Simon Marchi <simon.marchi@efficios.com>
7892
7893 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
7894 displaced_step_closure_up.
7895 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
7896 (struct displaced_step_closure_up):
7897 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
7898 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
7899 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
7900 Likewise.
7901 * gdbarch.sh (displaced_step_copy_insn): Likewise.
7902 * gdbarch.c, gdbarch.h: Re-generate.
7903 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
7904 displaced_step_closure_up.
7905 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
7906 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
7907 * infrun.h (displaced_step_closure_up): New type alias.
7908 (struct displaced_step_inferior_state) <step_closure>: Change
7909 type to displaced_step_closure_up.
7910 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
7911 displaced_step_closure_up.
7912 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
7913
a4a38eb4
TT
79142020-02-14 Tom Tromey <tom@tromey.com>
7915
7916 * minidebug.c (gnu_debug_key): New global.
7917 (find_separate_debug_file_in_section): Use it.
7918
e8217e61
SM
79192020-02-14 Simon Marchi <simon.marchi@efficios.com>
7920
7921 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
7922 std::unique_ptr.
7923 * gdbarch.c: Re-generate.
7924 * gdbarch.h: Re-generate.
7925 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
7926 change.
7927 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
7928 type to std::unique_ptr.
7929 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
7930 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
7931 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
7932 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
7933 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
7934 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
7935 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
7936 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
7937 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
7938
d8d83535
SM
79392020-02-14 Simon Marchi <simon.marchi@efficios.com>
7940
7941 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
7942 std::unique_ptr.
7943 (displaced_step_clear): Rename to...
7944 (displaced_step_reset): ... this. Just call displaced->reset ().
7945 (displaced_step_clear_cleanup): Rename to...
7946 (displaced_step_reset_cleanup): ... this.
7947 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
7948 (displaced_step_fixup): Likewise.
7949 (resume_1): Likewise.
7950 (handle_inferior_event): Restore child's memory before calling
7951 displaced_step_fixup on the parent.
7952 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
7953 to std::unique_ptr.
7954 <step_closure>: Change type to std::unique_ptr.
7955
5f661e03
SM
79562020-02-14 Simon Marchi <simon.marchi@efficios.com>
7957
7958 * arm-tdep.c: Include count-one-bits.h.
7959 (cleanup_block_store_pc): Use count_one_bits.
7960 (cleanup_block_load_pc): Use count_one_bits.
7961 (arm_copy_block_xfer): Use count_one_bits.
7962 (thumb2_copy_block_xfer): Use count_one_bits.
7963 (thumb_copy_pop_pc_16bit): Use count_one_bits.
7964 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
7965 (thumb_get_next_pcs_raw): Use count_one_bits.
7966 (arm_get_next_pcs_raw): Use count_one_bits_l.
7967 * arch/arm.c (bitcount): Remove.
7968 * arch/arm.h (bitcount): Remove.
7969
8084e579
TT
79702020-02-14 Tom Tromey <tromey@adacore.com>
7971
7972 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
7973 Update.
7974 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
7975 * dwarf2/loc.c (call_site_find_chain_1): Return
7976 unique_xmalloc_ptr.
7977 (call_site_find_chain): Likewise.
7978
258bf0ee
RB
79792020-02-14 Richard Biener <rguenther@suse.de>
7980
7981 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
7982 on expression with division operators.
7983
f98a8458
AKS
79842020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
7985
7986 * MAINTAINERS (Write After Approval): Adding myself.
7987
d1437c0e
TT
79882020-02-12 Tom Tromey <tom@tromey.com>
7989
7990 * event-loop.c (event_data, gdb_event, event_handler_func):
7991 Remove.
7992
3d4560f7
TT
79932020-02-12 Tom Tromey <tom@tromey.com>
7994
7995 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
7996 (dwarf2_frame_objfile_data): Add comment.
7997 (find_comp_unit, set_comp_unit): New functions.
7998 (dwarf2_frame_find_fde): Use find_comp_unit.
7999 (dwarf2_build_frame_info): Use set_comp_unit.
8000
21982304
TT
80012020-02-12 Tom Tromey <tom@tromey.com>
8002
8003 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
8004 (comp_unit): Don't initialize objfile.
8005 (execute_cfa_program): Add text_offset parameter.
8006 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
8007 (dwarf2_frame_cache): Update.
8008 (dwarf2_build_frame_info): Don't set "objfile" member.
8009
4debb237
TT
80102020-02-12 Tom Tromey <tom@tromey.com>
8011
8012 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
8013 (decode_frame_entry): Likewise.
8014 (dwarf2_build_frame_info): Update.
8015
0d404d44
TT
80162020-02-12 Tom Tromey <tom@tromey.com>
8017
8018 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
8019 (decode_frame_entry_1): Use the comp_unit obstack.
8020
a7a3ae5c
TT
80212020-02-12 Tom Tromey <tom@tromey.com>
8022
8023 * dwarf2/frame.c (struct comp_unit): Add initializers and
8024 constructor.
8025 (dwarf2_frame_objfile_data): Store a comp_unit.
8026 (dwarf2_frame_find_fde): Update.
8027 (dwarf2_build_frame_info): Use "new".
8028
a9d65418
TT
80292020-02-12 Tom Tromey <tom@tromey.com>
8030
8031 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
8032 (dwarf2_fde_table): Typedef for std::vector.
8033 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
8034 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
8035 (decode_frame_entry): Update.
8036 (dwarf2_build_frame_info): Use "new".
8037
7559c217
CB
80382020-02-12 Christian Biesinger <cbiesinger@google.com>
8039
8040 * arm-tdep.c (arm_gdbarch_init): Update.
8041 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
8042 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
8043 have_neon, is_m>: Change to bool.
8044
aeefc73c
CB
80452020-02-12 Christian Biesinger <cbiesinger@google.com>
8046
8047 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
8048
d27b8e5f
TT
80492020-02-12 Tom Tromey <tom@tromey.com>
8050
8051 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
8052
cd5900f3
HD
80532020-02-12 Hannes Domani <ssbssa@yahoo.de>
8054
8055 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
8056 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
8057
f056b22b
TT
80582020-02-11 Tom Tromey <tom@tromey.com>
8059
8060 * psymtab.h: Update comment.
8061
f92ff6b5
TT
80622020-02-11 Tom Tromey <tom@tromey.com>
8063
8064 * gdb_obstack.h (struct auto_obstack): Use
8065 DISABLE_COPY_AND_ASSIGN.
8066
3fd6912b
TT
80672020-02-11 Tom Tromey <tom@tromey.com>
8068
8069 * dwarf2/frame.h (struct objfile): Don't forward declare.
8070
69ed9b74
CB
80712020-02-11 Christian Biesinger <cbiesinger@google.com>
8072
8073 * cris-tdep.c (cris_supply_gregset): Change signature to match
8074 what struct regset expects.
8075 (cris_regset): New struct.
8076 (fetch_core_registers): Remove.
8077 (cris_iterate_over_regset_sections): New function.
8078 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
8079 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
8080
bda874f6
CB
80812020-02-11 Christian Biesinger <cbiesinger@google.com>
8082
8083 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
8084 registers.
8085
754e1564
CB
80862020-02-11 Christian Biesinger <cbiesinger@google.com>
8087
8088 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
8089
8ddd8e0e
SM
80902020-02-11 Simon Marchi <simon.marchi@efficios.com>
8091
8092 * configure: Re-generate.
8093
898e7f60
SM
80942020-02-11 Simon Marchi <simon.marchi@efficios.com>
8095
8096 * configure: Re-generate.
8097
58df732b
SM
80982020-02-11 Simon Marchi <simon.marchi@efficios.com>
8099
8100 * acinclude: Update warning.m4 path.
8101 * warning.m4: Move to gdbsupport.
8102
da5bd37e
TT
81032020-02-11 Tom Tromey <tromey@adacore.com>
8104
8105 * remote.c (remote_console_output): Update.
8106 * printcmd.c (printf_command): Update.
8107 * event-loop.c (gdb_wait_for_event): Update.
8108 * linux-nat.c (sigchld_handler): Update.
8109 * remote-sim.c (gdb_os_write_stdout): Update.
8110 (gdb_os_flush_stdout): Update.
8111 (gdb_os_flush_stderr): Update.
8112 (gdb_os_write_stderr): Update.
8113 * exceptions.c (print_exception): Update.
8114 * remote-fileio.c (remote_fileio_func_read): Update.
8115 (remote_fileio_func_write): Update.
8116 * tui/tui.c (tui_enable): Update.
8117 * tui/tui-interp.c (tui_interp::init): Update.
8118 * utils.c (init_page_info): Update.
8119 (putchar_unfiltered, fputc_unfiltered): Update.
8120 (gdb_flush): Update.
8121 (emit_style_escape): Update.
8122 (flush_wrap_buffer, fputs_maybe_filtered): Update.
8123 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
8124 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
8125 (stderr_file::write): Update.
8126 (stderr_file::puts): Update.
8127 * ui-file.h (ui_file_isatty, ui_file_write)
8128 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
8129 (ui_file_puts): Don't declare.
8130
85f0dd3c
TV
81312020-02-10 Tom de Vries <tdevries@suse.de>
8132
8133 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
8134 sentinel to char *.
8135
2e927613
TV
81362020-02-09 Tom de Vries <tdevries@suse.de>
8137
8138 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
8139 filename if it matches "<artificial>".
8140
6bafc845
HD
81412020-02-09 Hannes Domani <ssbssa@yahoo.de>
8142
8143 * windows-tdep.c (struct enum_value_name): New struct.
8144 (create_enum): New function.
8145 (windows_get_siginfo_type): Create and use enum types.
8146
7928d571
HD
81472020-02-09 Hannes Domani <ssbssa@yahoo.de>
8148
8149 * NEWS: Mention $_siginfo support for Windows.
8150 * windows-nat.c (handle_exception): Set siginfo_er.
8151 (windows_nat_target::mourn_inferior): Reset siginfo_er.
8152 (windows_xfer_siginfo): New function.
8153 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
8154 * windows-tdep.c (struct windows_gdbarch_data): New struct.
8155 (init_windows_gdbarch_data): New function.
8156 (get_windows_gdbarch_data): New function.
8157 (windows_get_siginfo_type): New function.
8158 (windows_init_abi): Register windows_get_siginfo_type.
8159 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
8160
6751ebae
TT
81612020-02-08 Tom Tromey <tom@tromey.com>
8162
8163 * dwarf2/read.c (class cutu_reader) <cutu_reader,
8164 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
8165 <keep>: Declare method.
8166 <m_keep>: Remove member.
8167 <~cutu_reader>: Remove.
8168 (cutu_reader::init_tu_and_read_dwo_dies): Update.
8169 (cutu_reader::cutu_reader): Update.
8170 (cutu_reader::keep): Rename from ~cutu_reader.
8171 (process_psymtab_comp_unit, build_type_psymtabs_1)
8172 (process_skeletonless_type_unit, load_partial_comp_unit)
8173 (load_full_comp_unit, dwarf2_read_addr_index)
8174 (read_signatured_type): Update.
8175
135f5437
TT
81762020-02-08 Tom Tromey <tom@tromey.com>
8177
8178 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
8179 "want_partial_unit" parameter.
8180 (process_psymtab_comp_unit): Change want_partial_unit to bool.
8181 Inline check for DW_TAG_partial_unit.
8182 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
8183
9f66ff1c
TT
81842020-02-08 Tom Tromey <tom@tromey.com>
8185
8186 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
8187 read.c.
8188 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
8189 read.c.
8190
c8a7a66f
TT
81912020-02-08 Tom Tromey <tom@tromey.com>
8192
8193 * dwarf2/read.c (read_address): Move to comp-unit.c.
8194 (dwarf2_rnglists_process, dwarf2_ranges_process)
8195 (read_attribute_value, dwarf_decode_lines_1)
8196 (var_decode_location, decode_locdesc): Update.
8197 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
8198 read.c. Remove "cu" parameter.
8199 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
8200 method.
8201
8266302d
TT
82022020-02-08 Tom Tromey <tom@tromey.com>
8203
8204 * dwarf2/read.c (read_attribute_value, read_indirect_string)
8205 (read_indirect_line_string): Update.
8206 * dwarf2/comp-unit.c (read_offset): Remove.
8207 (read_comp_unit_head): Update.
8208 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
8209 method.
8210 (read_offset): Don't declare.
8211
4057dfde
TT
82122020-02-08 Tom Tromey <tom@tromey.com>
8213
8214 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
8215 * dwarf2/read.c (struct comp_unit_head): Move to
8216 dwarf2/comp-unit.h.
8217 (enum class rcuh_kind): Move to comp-unit.h.
8218 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
8219 (read_comp_unit_head, error_check_comp_unit_head)
8220 (read_and_check_comp_unit_head): Move to comp-unit.c.
8221 (read_offset, dwarf_unit_type_name): Likewise.
8222 (create_debug_type_hash_table, read_cutu_die_from_dwo)
8223 (cutu_reader::cutu_reader, read_call_site_scope)
8224 (find_partial_die, follow_die_offset): Update.
8225 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
8226
24aa364d
TT
82272020-02-08 Tom Tromey <tom@tromey.com>
8228
8229 * dwarf2/read.c (read_offset_1): Move to leb.c.
8230 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
8231 (dwarf_decode_macro_bytes): Update.
8232 * dwarf2/leb.c (read_offset): Rename; move from read.c.
8233 * dwarf2/leb.h (read_offset): Declare.
8234
2c7d5afc
TT
82352020-02-08 Tom Tromey <tom@tromey.com>
8236
8237 * dwarf2/read.c (dwarf2_section_size): Remove.
8238 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
8239 Update.
8240 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
8241
4075cb26
TT
82422020-02-08 Tom Tromey <tom@tromey.com>
8243
8244 * dwarf2/read.c (read_initial_length): Move to leb.c.
8245 * dwarf2/leb.h (read_initial_length): Declare.
8246 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
8247 handle_nonstd parameter.
8248 * dwarf2/frame.c (read_initial_length): Remove.
8249 (decode_frame_entry_1): Update.
8250
09ba997f
TT
82512020-02-08 Tom Tromey <tom@tromey.com>
8252
8253 * dwarf2/loc.c (dwarf2_find_location_expression)
8254 (dwarf_evaluate_loc_desc::get_tls_address)
8255 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
8256 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
8257 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
8258 (dwarf2_compile_property_to_c)
8259 (dwarf2_loc_desc_get_symbol_read_needs)
8260 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
8261 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
8262 (loclist_describe_location, loclist_tracepoint_var_ref)
8263 (loclist_generate_c_location): Update.
8264 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
8265 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
8266 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
8267 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
8268 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
8269 (dwarf2_per_cu_data::addr_size)
8270 (dwarf2_per_cu_data::ref_addr_size)
8271 (dwarf2_per_cu_data::text_offset)
8272 (dwarf2_per_cu_data::addr_type): Now methods.
8273 (per_cu_header_read_in): Make per_cu "const".
8274 (dwarf2_version): Remove.
8275 (dwarf2_per_cu_data::int_type): Now a method.
8276 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
8277 (set_die_type, read_array_type, read_subrange_index_type)
8278 (read_tag_string_type, read_subrange_type): Update.
8279 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
8280 offset_size, ref_addr_size, text_offset, addr_type, version,
8281 objfile, int_type, addr_sized_int_type>: Declare methods.
8282
96c738c0
TT
82832020-02-08 Tom Tromey <tom@tromey.com>
8284
8285 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
8286 Move earlier.
8287
8fdd972c
TT
82882020-02-08 Tom Tromey <tom@tromey.com>
8289
8290 * dwarf2/read.h (dwarf_line_debug): Declare.
8291 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
8292 * dwarf2/read.c: Move line_header code to new files.
8293 (dwarf_line_debug): No longer static.
8294 * dwarf2/line-header.c: New file.
8295 * dwarf2/line-header.h: New file.
8296
03075812
TT
82972020-02-08 Tom Tromey <tom@tromey.com>
8298
8299 * dwarf2/read.c (struct line_header) <file_full_name,
8300 file_file_name>: Return unique_xmalloc_ptr.
8301 (line_header::file_file_name): Update.
8302 (line_header::file_full_name): Update.
8303 (dw2_get_file_names_reader): Update.
8304 (macro_start_file): Update.
8305
bb822404
TT
83062020-02-08 Tom Tromey <tom@tromey.com>
8307
8308 * dwarf2/read.c (struct line_header) <file_full_name,
8309 file_file_name>: Declare methods.
8310 (dw2_get_file_names_reader): Update.
8311 (file_file_name): Now a method.
8312 (file_full_name): Likewise.
8313 (macro_start_file): Update.
8314
009b64fc
TT
83152020-02-08 Tom Tromey <tom@tromey.com>
8316
8317 * dwarf2/read.c (dwarf_always_disassemble)
8318 (show_dwarf_always_disassemble): Move to loc.c.
8319 (_initialize_dwarf2_read): Move "always-disassemble" registration
8320 to loc.c.
8321 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
8322 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
8323 static.
8324 (show_dwarf_always_disassemble): Move from read.c.
8325 (_initialize_dwarf2loc): Move always-disassemble from read.c.
8326
5895093f
TT
83272020-02-08 Tom Tromey <tom@tromey.com>
8328
8329 * dwarf2/read.c (~dwarf2_per_objfile): Update.
8330 (create_quick_file_names_table): Return htab_up.
8331 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
8332 Update.
8333 * dwarf2/read.h (struct dwarf2_per_objfile)
8334 <quick_file_names_table>: Now htab_up.
8335
b3b32279
TT
83362020-02-08 Tom Tromey <tom@tromey.com>
8337
8338 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
8339
1d33d811
TT
83402020-02-08 Tom Tromey <tom@tromey.com>
8341
8342 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
8343 Rewrite.
8344 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
8345 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
8346 (abbrev_table::abbrev_table): No longer inline.
8347 (ABBREV_HASH_SIZE): Remove.
8348 (abbrev_table::m_abbrevs): Now an htab_up.
8349
86de1d91
TT
83502020-02-08 Tom Tromey <tom@tromey.com>
8351
8352 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
8353 (cutu_reader): Update.
8354 (build_type_psymtabs_1): Update.
8355 * dwarf2/abbrev.c (abbrev_table::read): Rename.
8356 (abbrev_table::alloc_abbrev): Update.
8357 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
8358 (abbrev_table::read): New static method, renamed from
8359 abbrev_table_read_table.
8360 (abbrev_table::alloc_abbrev)
8361 (abbrev_table::add_abbrev): Now private.
8362 (abbrev_table::abbrev_table): Now private.
8363 (abbrev_table::m_abbrev_obstack): Now private. Rename.
8364
0335378b
TT
83652020-02-08 Tom Tromey <tom@tromey.com>
8366
8367 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
8368 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
8369 htab_up.
8370
48b490f2
TT
83712020-02-08 Tom Tromey <tom@tromey.com>
8372
8373 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
8374 htab_up.
8375 (lookup_dwo_unit_in_dwp): Update.
8376 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
8377 on obstack.
8378
bc68fb19
TT
83792020-02-08 Tom Tromey <tom@tromey.com>
8380
8381 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
8382 obstack.
8383
d15acc42
TT
83842020-02-08 Tom Tromey <tom@tromey.com>
8385
8386 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
8387 line_header_hash.
8388 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
8389 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
8390 Change type to htab_up.
8391
eaa5fa8b
TT
83922020-02-08 Tom Tromey <tom@tromey.com>
8393
8394 * dwarf2/read.c (allocate_type_unit_groups_table): Return
8395 htab_up. Don't allocate on obstack.
8396 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
8397 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
8398 Change type to htab_up.
8399
b0b6a987
TT
84002020-02-08 Tom Tromey <tom@tromey.com>
8401
8402 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
8403 Change type to htab_up.
8404 * dwarf2/read.c (create_signatured_type_table_from_index)
8405 (create_signatured_type_table_from_debug_names)
8406 (create_all_type_units, add_type_unit)
8407 (lookup_dwo_signatured_type, lookup_signatured_type)
8408 (process_skeletonless_type_unit): Update.
8409 (create_debug_type_hash_table, create_debug_types_hash_table):
8410 Change type of types_htab.
8411 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
8412 htab_up. Don't allocate on obstack.
8413 (create_cus_hash_table): Change type of cus_htab parameter.
8414 (struct dwo_file) <cus, tus>: Now htab_up.
8415 (lookup_dwo_signatured_type, lookup_dwo_cutu)
8416 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
8417 (queue_and_load_all_dwo_tus): Update.
8418 * dwarf2/index-write.c (write_gdbindex): Update.
8419 (write_debug_names): Update.
8420
39856def
TT
84212020-02-08 Tom Tromey <tom@tromey.com>
8422
8423 * dwarf2/read.h (struct dwarf2_queue_item): Move from
8424 dwarf2/read.c. Remove "next" member. Add constructor ntad
8425 destructor.
8426 (struct dwarf2_per_objfile) <queue>: New member.
8427 * dwarf2/read.c (struct dwarf2_queue_item): Move to
8428 dwarf2/read.h.
8429 (dwarf2_queue, dwarf2_queue_tail): Remove.
8430 (class dwarf2_queue_guard): Add parameter to constructor. Use
8431 DISABLE_COPY_AND_ASSIGN.
8432 <m_per_objfile>: New member.
8433 <~dwarf2_queue_guard>: Rewrite.
8434 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
8435 Update.
8436 (~dwarf2_queue_item): New.
8437
3e225074
TT
84382020-02-08 Tom Tromey <tom@tromey.com>
8439
8440 * dwarf2/read.c (struct die_info) <has_children>: New member.
8441 (dw2_get_file_names_reader): Remove has_children.
8442 (dw2_get_file_names): Update.
8443 (read_cutu_die_from_dwo): Remove has_children.
8444 (cutu_reader::init_tu_and_read_dwo_dies)
8445 (cutu_reader::cutu_reader): Update.
8446 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
8447 Remove has_children.
8448 (build_type_psymtabs_1, process_skeletonless_type_unit)
8449 (load_partial_comp_unit, load_full_comp_unit): Update.
8450 (create_dwo_cu_reader): Remove has_children.
8451 (create_cus_hash_table, read_die_and_children): Update.
8452 (read_full_die_1,read_full_die): Remove has_children.
8453 (read_signatured_type): Update.
8454 (class cutu_reader) <has_children>: Remove.
8455
82ca8957
TT
84562020-02-08 Tom Tromey <tom@tromey.com>
8457
8458 * dwarf2/expr.c: Rename from dwarf2expr.c.
8459 * dwarf2/expr.h: Rename from dwarf2expr.h.
8460 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
8461 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
8462 * dwarf2/frame.c: Rename from dwarf2-frame.c.
8463 * dwarf2/frame.h: Rename from dwarf2-frame.h.
8464 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
8465 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
8466 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
8467 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
8468 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
8469 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
8470 * dwarf2/loc.c: Rename from dwarf2loc.c.
8471 * dwarf2/loc.h: Rename from dwarf2loc.h.
8472 * dwarf2/read.c: Rename from dwarf2read.c.
8473 * dwarf2/read.h: Rename from dwarf2read.h.
8474 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
8475 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
8476 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
8477 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
8478 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
8479 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
8480 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
8481 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
8482 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
8483 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
8484 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
8485 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
8486 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
8487 Update.
8488 * Makefile.in (COMMON_SFILES): Update.
8489 (HFILES_NO_SRCDIR): Update.
8490
9e35d499
TT
84912020-02-08 Tom Tromey <tom@tromey.com>
8492
8493 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
8494 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
8495
1eba2311
TT
84962020-02-08 Tom Tromey <tom@tromey.com>
8497
8498 * dwarf2read.h (struct die_info): Don't declare.
8499
e41c2da2
TT
85002020-02-08 Tom Tromey <tom@tromey.com>
8501
8502 * dwarf2read.h (die_info_ptr): Remove typedef.
8503
4fc6c0d5
TT
85042020-02-08 Tom Tromey <tom@tromey.com>
8505
8506 * dwarf2read.c (read_call_site_scope)
8507 (handle_data_member_location, dwarf2_add_member_fn)
8508 (mark_common_block_symbol_computed, read_common_block)
8509 (attr_to_dynamic_prop, partial_die_info::read)
8510 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
8511 (dwarf2_symbol_mark_computed, set_die_type): Update.
8512 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
8513 method.
8514 (attr_form_is_block): Don't declare.
8515 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
8516
cd6c91b4
TT
85172020-02-08 Tom Tromey <tom@tromey.com>
8518
8519 * dwarf2read.c (dwarf2_find_base_address, )
8520 (read_call_site_scope, rust_containing_type)
8521 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
8522 (handle_data_member_location, dwarf2_add_member_fn)
8523 (get_alignment, read_structure_type, process_structure_scope)
8524 (mark_common_block_symbol_computed, read_common_block)
8525 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
8526 (partial_die_info::read, read_attribute_value, new_symbol)
8527 (lookup_die_type, dwarf2_get_ref_die_offset)
8528 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
8529 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
8530 (dwarf2_symbol_mark_computed): Update.
8531 * dwarf2/attribute.h (struct attribute) <value_as_address,
8532 form_is_section_offset, form_is_constant, form_is_ref>: Declare
8533 methods.
8534 (value_as_address, attr_form_is_section_offset)
8535 (attr_form_is_constant, attr_form_is_ref): Don't declare.
8536 * dwarf2/attribute.c (attribute::value_as_address)
8537 (attribute::form_is_section_offset, attribute::form_is_constant)
8538 (attribute::form_is_ref): Now methods.
8539
162dce55
TT
85402020-02-08 Tom Tromey <tom@tromey.com>
8541
8542 * dwarf2read.c (struct attribute, DW_STRING)
8543 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
8544 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
8545 (attr_form_is_block, attr_form_is_section_offset)
8546 (attr_form_is_constant, attr_form_is_ref): Move.
8547 * dwarf2/attribute.h: New file.
8548 * dwarf2/attribute.c: New file, from dwarf2read.c.
8549 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
8550
3054dd54
TT
85512020-02-08 Tom Tromey <tom@tromey.com>
8552
8553 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
8554 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
8555 Move.
8556 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
8557 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
8558 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
8559 abbrev.c.
8560 * dwarf2/abbrev.h: New file.
8561 * dwarf2/abbrev.c: New file, from dwarf2read.c.
8562 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
8563
96b79293
TT
85642020-02-08 Tom Tromey <tom@tromey.com>
8565
8566 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
8567 (dwarf2_section_size, dwarf2_get_section_info)
8568 (create_signatured_type_table_from_debug_names)
8569 (create_addrmap_from_aranges, read_debug_names_from_section)
8570 (get_gdb_index_contents_from_section, read_comp_unit_head)
8571 (error_check_comp_unit_head, read_abbrev_offset)
8572 (create_debug_type_hash_table, init_cu_die_reader)
8573 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
8574 (read_comp_units_from_section, create_cus_hash_table)
8575 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
8576 (create_dwp_v2_section, dwarf2_rnglists_process)
8577 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
8578 (abbrev_table_read_table, read_indirect_string_at_offset_from)
8579 (read_indirect_string_from_dwz, read_addr_index_1)
8580 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
8581 (dwarf_decode_macro_bytes, dwarf_decode_macros)
8582 (fill_in_loclist_baton): Update.
8583 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
8584 get_containing_section, get_bfd_owner, get_bfd_section,
8585 get_file_name, get_id, get_flags, empty, read>: Declare methods.
8586 (dwarf2_read_section, get_section_name, get_section_file_name)
8587 (get_containing_section, get_section_bfd_owner)
8588 (get_section_bfd_section, get_section_name, get_section_file_name)
8589 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
8590 declare.
8591 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
8592 (dwarf2_section_info::get_bfd_owner)
8593 (dwarf2_section_info::get_bfd_section)
8594 (dwarf2_section_info::get_name)
8595 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
8596 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
8597 (dwarf2_section_info::read): Now methods.
8598 * dwarf-index-write.c (class debug_names): Update.
8599
2c86cff9
TT
86002020-02-08 Tom Tromey <tom@tromey.com>
8601
8602 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
8603 Move to dwarf2/section.h.
8604 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
8605 (get_section_bfd_section, get_section_name)
8606 (get_section_file_name, get_section_id, get_section_flags)
8607 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
8608 dwarf2/section.c.
8609 * dwarf2/section.h: New file.
8610 * dwarf2/section.c: New file, from dwarf2read.c.
8611 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
8612
f4382c45
TT
86132020-02-08 Tom Tromey <tom@tromey.com>
8614
8615 * dwarf2read.h (read_unsigned_leb128): Don't declare.
8616 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
8617 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
8618 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
8619 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
8620 * dwarf2/leb.h: New file, from dwarf2read.c.
8621 * dwarf2/leb.c: New file, from dwarf2read.c.
8622 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
8623 Remove.
8624 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
8625 (COMMON_SFILES): Add dwarf2/leb.c.
8626
01840b7a
JB
86272020-02-08 Joel Brobecker <brobecker@adacore.com>
8628
8629 GDB 9.1 released.
8630
dfcb27e4
IB
86312020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
8632
8633 PR gdb/25190:
aac66a4c
SM
8634 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
8635 * gdb/remote.c (remote_console_output): Update.
8636 * gdb/ui-file.c (fputs_unfiltered): Rename to...
8637 (ui_file_puts): ...this.
8638 * gdb/ui-file.h (ui_file_puts): Add declaration.
8639 * gdb/utils.c (emit_style_escape): Update.
8640 (flush_wrap_buffer): Update.
8641 (fputs_maybe_filtered): Update.
8642 (fputs_unfiltered): Add function.
dfcb27e4 8643
faa17681
IB
86442020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
8645
aac66a4c
SM
8646 * gdb/event-loop.c (gdb_wait_for_event): Update.
8647 * gdb/printcmd.c (printf_command): Update.
8648 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
8649 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
8650 (gdb_os_flush_stderr): Update.
8651 * gdb/remote.c (remote_console_output): Update.
8652 * gdb/ui-file.c (gdb_flush): Rename to...
8653 (ui_file_flush): ...this.
8654 (stderr_file::write): Update.
8655 (stderr_file::puts): Update.
8656 * gdb/ui-file.h (gdb_flush): Rename to...
8657 (ui_file_flush): ...this.
8658 * gdb/utils.c (gdb_flush): Add function.
8659 * gdb/utils.h (gdb_flush): Add declaration.
faa17681 8660
5abbbe1d
TT
86612020-02-07 Tom Tromey <tromey@adacore.com>
8662
8663 PR breakpoints/24915:
8664 * source.c (find_and_open_source): Do not check basenames_may_differ.
8665
919adfe8
TT
86662020-02-07 Tom Tromey <tom@tromey.com>
8667
8668 * README: Update gdbserver documentation.
8669 * gdbserver: Move to top level.
8670 * configure.tgt (build_gdbserver): Remove.
8671 * configure.ac: Remove --enable-gdbserver.
8672 * configure: Rebuild.
8673 * Makefile.in (distclean): Don't mention gdbserver.
8674
1d5d29e7
SV
86752020-02-06 Shahab Vahedi <shahab@synopsys.com>
8676
8677 * source-cache.c (source_cache::ensure): Surround
8678 get_plain_source_lines with a try/catch.
8679 (source_cache::get_line_charpos): Get rid of try/catch
8680 and only check for the return value of "ensure".
8681 * tui/tui-source.c (tui_source_window::set_contents):
8682 Simplify "nlines" calculation.
8683
6eb1129c
SV
86842020-02-06 Shahab Vahedi <shahab@synopsys.com>
8685
8686 * MAINTAINERS (Write After Approval): Add myself.
8687
c6a42d11
CB
86882020-02-05 Christian Biesinger <cbiesinger@google.com>
8689
8690 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
8691 function call.
8692
c8ecdda6
CB
86932020-02-05 Christian Biesinger <cbiesinger@google.com>
8694
8695 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
8696
f6480e70
MR
86972020-02-05 Maciej W. Rozycki <macro@wdc.com>
8698
8699 * nat/riscv-linux-tdesc.h: New file.
8700 * nat/riscv-linux-tdesc.c: New file, taking code from...
8701 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
8702 ... here.
8703 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
8704 NATDEPFILES.
8705
dcc9fbc6
AB
87062020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
8707
8708 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
8709 we don't set the fake simulator ptid to the null_ptid.
8710
719546c4
SM
87112020-02-03 Simon Marchi <simon.marchi@efficios.com>
8712
8713 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
8714 * gdbthread.h (class thread_info) <resumed>: Likewise.
8715 * infrun.c (resume_1): Likewise.
8716 (proceed): Likewise.
8717 (infrun_thread_stop_requested): Likewise.
8718 (stop_all_threads): Likewise.
8719 (handle_inferior_event): Likewise.
8720 (restart_threads): Likewise.
8721 (finish_step_over): Likewise.
8722 (keep_going_stepped_thread): Likewise.
8723 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
8724 (linux_handle_extended_wait): Likewise.
8725 * record-btrace.c (get_thread_current_frame_id): Likewise.
8726 * record-full.c (record_full_wait_1): Likewise.
8727 * remote.c (remote_target::process_initial_stop_replies): Likewise.
8728 * target.c (target_resume): Likewise.
8729 * thread.c (set_running_thread): Likewise.
8730
e409c542
AKS
87312020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
8732
8733 * f-valprint.c (f77_print_array_1): Changed datatype of index
8734 variable to LONGEST from int to enable it to contain bound
8735 values correctly.
8736
ee98c0da
MR
87372020-02-03 Maciej W. Rozycki <macro@wdc.com>
8738
8739 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
8740 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
8741 offsets according to FLEN determined.
8742 (riscv_linux_nat_target::read_description): Determine FLEN
8743 dynamically.
8744 (riscv_linux_nat_target::fetch_registers): Size regset buffer
8745 according to FLEN determined.
8746 (riscv_linux_nat_target::store_registers): Likewise.
8747
aa66aac4
SV
87482020-02-01 Shahab Vahedi <shahab@synopsys.com>
8749
8750 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
8751 when reg->group is empty and reggroup is not.
8752
fd9faca8
TT
87532020-01-31 Tom Tromey <tromey@adacore.com>
8754
8755 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
8756 Call beneath target's mourn_inferior after unpushing.
8757
42330a68
AB
87582020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
8759
8760 PR tui/9765
8761 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
8762 have enough lines to fill the screen, still return the lowest
8763 address we found.
8764
7a27a45b
AB
87652020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
8766
8767 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
8768 '-', '<', and '>' commands.
8769
c47f70e2
PA
87702020-01-29 Pedro Alves <palves@redhat.com>
8771 Sergio Durigan Junior <sergiodj@redhat.com>
8772
8773 * infcmd.c (construct_inferior_arguments): Assert that
8774 'argc' is greater than 0.
8775
5133a315
LM
87762020-01-29 Luis Machado <luis.machado@linaro.org>
8777
8778 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
8779 (BRK_INSN_MASK): Define to 0xd4200000.
8780 (aarch64_program_breakpoint_here_p): New function.
8781 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
8782 * arch-utils.c (default_program_breakpoint_here_p): Moved from
8783 breakpoint.c.
8784 * arch-utils.h (default_program_breakpoint_here_p): Moved from
8785 breakpoint.h
8786 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
8787 call gdbarch_program_breakpoint_here_p.
8788 (program_breakpoint_here): Moved to arch-utils.c, renamed to
8789 default_program_breakpoint_here_p, changed return type to bool and
8790 simplified.
8791 * breakpoint.h (program_breakpoint_here): Moved prototype to
8792 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
8793 return type to bool.
8794 * gdbarch.c: Regenerate.
8795 * gdbarch.h: Regenerate.
8796 * gdbarch.sh (program_breakpoint_here_p): New method.
8797 * infrun.c (handle_signal_stop): Call
8798 gdbarch_program_breakpoint_here_p.
8799
168f8c6b
TT
88002020-01-26 Tom Tromey <tom@tromey.com>
8801
8802 * ctfread.c (struct ctf_fp_info): Reindent.
8803 (_initialize_ctfread): Remove.
8804
128a391f
TT
88052020-01-26 Tom Tromey <tom@tromey.com>
8806
8807 * psymtab.c (partial_map_expand_apply)
8808 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
8809 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
8810 (psym_print_stats, psym_expand_symtabs_for_function)
8811 (psym_map_symbol_filenames, psym_map_matching_symbols)
8812 (psym_expand_symtabs_matching)
8813 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
8814 (maintenance_check_psymtabs): Use new methods.
8815 * psympriv.h (struct partial_symtab) <readin_p,
8816 get_compunit_symtab>: New methods.
8817 <readin, compunit_symtab>: Remove members.
8818 (struct standard_psymtab): New.
8819 (struct legacy_psymtab): Derive from standard_psymtab.
8820 * dwarf2read.h (struct dwarf2_psymtab): Derive from
8821 standard_psymtab.
8822 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
8823
0494dbec
TT
88242020-01-26 Tom Tromey <tom@tromey.com>
8825
8826 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
8827 read_dependencies. Add assert.
8828 * psymtab.c (partial_symtab::read_dependencies): New method.
8829 * psympriv.h (struct partial_symtab) <read_dependencies>: New
8830 method.
8831 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
8832 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
8833 read_dependencies.
8834 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
8835 Add assert.
8836
8566b89b
TT
88372020-01-26 Tom Tromey <tom@tromey.com>
8838
8839 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
8840 Call expand_psymtab.
8841 (xcoff_read_symtab): Call expand_psymtab.
8842 (xcoff_start_psymtab, xcoff_end_psymtab): Set
8843 legacy_expand_psymtab.
8844 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
8845 method.
8846 (struct legacy_psymtab) <expand_psymtab>: Implement.
8847 <legacy_expand_psymtab>: New member.
8848 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
8849 (parse_partial_symbols): Set legacy_expand_psymtab.
8850 (psymtab_to_symtab_1): Change argument order. Call
8851 expand_psymtab.
8852 (new_psymtab): Set legacy_expand_psymtab.
8853 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
8854 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
8855 expand_psymtab.
8856 (dwarf2_psymtab::expand_psymtab): Rename from
8857 psymtab_to_symtab_1. Call expand_psymtab.
8858 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
8859 (dbx_end_psymtab): Likewise.
8860 (dbx_psymtab_to_symtab_1): Change argument order. Call
8861 expand_psymtab.
8862 (dbx_read_symtab): Call expand_psymtab.
8863 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
8864 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
8865 (ctf_psymtab::read_symtab): Call expand_psymtab.
8866
077cbab2
TT
88672020-01-26 Tom Tromey <tom@tromey.com>
8868
8869 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
8870 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
8871 messages.
8872 * mdebugread.c (mdebug_read_symtab): Remove prints.
8873 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
8874 assert.
8875 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
8876
891813be
TT
88772020-01-26 Tom Tromey <tom@tromey.com>
8878
8879 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
8880 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
8881 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
8882 legacy_symtab.
8883 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
8884 * psymtab.c (psymtab_to_symtab): Call method.
8885 (dump_psymtab): Update.
8886 * psympriv.h (struct partial_symtab): Add virtual destructor.
8887 <read_symtab>: New method.
8888 (struct legacy_symtab): New.
8889 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
8890 (struct pst_map) <pst>: Now a legacy_psymtab.
8891 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
8892 (new_psymtab): Use legacy_psymtab.
8893 * dwarf2read.h (struct dwarf2_psymtab): New.
8894 (struct dwarf2_per_cu_data) <psymtab>: Use it.
8895 * dwarf2read.c (dwarf2_create_include_psymtab)
8896 (dwarf2_build_include_psymtabs, create_type_unit_group)
8897 (create_partial_symtab, process_psymtab_comp_unit_reader)
8898 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
8899 (set_partial_user): Use dwarf2_psymtab.
8900 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
8901 (psymtab_to_symtab_1, process_full_comp_unit)
8902 (process_full_type_unit, dwarf2_ranges_read)
8903 (dwarf2_get_pc_bounds, psymtab_include_file_name)
8904 (dwarf_decode_lines): Use dwarf2_psymtab.
8905 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
8906 (add_address_entry_worker, write_one_signatured_type)
8907 (recursively_count_psymbols, recursively_write_psymbols)
8908 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
8909 (write_debug_names): Likewise.
8910 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
8911 <pst>: Now a legacy_psymtab.
8912 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
8913 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
8914 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
8915 * ctfread.c (struct ctf_psymtab): New.
8916 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
8917 ctf_psymtab.
8918 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
8919 (create_partial_symtab): Return a ctf_psymtab.
8920 (scan_partial_symbols): Update.
8921
c3693a1d
TT
89222020-01-26 Tom Tromey <tom@tromey.com>
8923
8924 * xcoffread.c (xcoff_start_psymtab): Use new.
8925 * psymtab.c (partial_symtab::partial_symtab): New constructor,
8926 renamed from start_psymtab_common.
8927 * psympriv.h (struct partial_symtab): Add new constructor.
8928 (start_psymtab_common): Don't declare.
8929 * mdebugread.c (parse_partial_symbols): Use new.
8930 * dwarf2read.c (create_partial_symtab): Use new.
8931 * dbxread.c (start_psymtab): Use new.
8932 * ctfread.c (create_partial_symtab): Use new.
8933
32caafd0
TT
89342020-01-26 Tom Tromey <tom@tromey.com>
8935
8936 * xcoffread.c (xcoff_end_psymtab): Use new.
8937 * psymtab.c (start_psymtab_common): Use new.
8938 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
8939 Update.
8940 * psympriv.h (struct partial_symtab): Add parameters to
8941 constructor. Don't inline.
8942 (allocate_psymtab): Don't declare.
8943 * mdebugread.c (new_psymtab): Use new.
8944 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
8945 * dbxread.c (dbx_end_psymtab): Use new.
8946
abaa2f23
TT
89472020-01-26 Tom Tromey <tom@tromey.com>
8948
8949 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
8950 allocate_psymtab. Update documentation.
8951 * psymtab.c (psymtab_storage::install_psymtab): Rename from
8952 allocate_psymtab. Do not use new.
8953 (allocate_psymtab): Use new. Update.
8954
6d94535f
TT
89552020-01-26 Tom Tromey <tom@tromey.com>
8956
8957 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
8958 * psymtab.c (psym_print_stats): Update.
8959 * psympriv.h (struct partial_symtab) <readin,
8960 psymtabs_addrmap_supported, anonymous>: Now bool.
8961 * mdebugread.c (psymtab_to_symtab_1): Update.
8962 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
8963 (build_type_psymtabs_reader, psymtab_to_symtab_1)
8964 (process_full_comp_unit, process_full_type_unit): Update.
8965 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
8966 * ctfread.c (psymtab_to_symtab): Update.
8967
6f17252b
TT
89682020-01-26 Tom Tromey <tom@tromey.com>
8969
8970 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
8971 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
8972 * psymtab.c (psymtab_storage): Delete psymtabs.
8973 (psymtab_storage::allocate_psymtab): Use new.
8974 (psymtab_storage::discard_psymtab): Use delete.
8975 * psympriv.h (struct partial_symtab): Add constructor and
8976 initializers.
8977
f6f1cebc
TT
89782020-01-26 Tom Tromey <tom@tromey.com>
8979
8980 * machoread.c: Do not include psympriv.h.
8981
e47e48f6
PW
89822020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8983
8984 * NEWS: Mention the new option and the set/show commands.
8985
a2fedca9
PW
89862020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8987
8988 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
8989 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
8990 (validate_exec_file): New variables, enums, functions.
8991 (exec_file_locate_attach, print_section_info): Style the filenames.
8992 (_initialize_exec): Install show_exec_file_mismatch_command and
8993 set_exec_file_mismatch_command.
8994 * gdbcore.h (validate_exec_file): Declare.
8995 * infcmd.c (attach_command): Call validate_exec_file.
8996 * remote.c ( remote_target::remote_add_inferior): Likewise.
8997
7ffa82e1
AB
89982020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
8999
9000 * frame.c (find_frame_sal): Move call to get_next_frame into more
9001 inner scope.
9002 * inline-frame.c (inilne_state) <inline_state>: Update argument
9003 types.
9004 (inilne_state) <skipped_symbol>: Rename to...
9005 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
9006 (skip_inline_frames): Build vector of skipped symbols and use this
9007 to reate the inline_state.
9008 (inline_skipped_symbol): Add a comment and some assertions, fetch
9009 skipped symbol from the list.
9010
3d92a3e3
AB
90112020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9012
9013 * buildsym.c (lte_is_less_than): Delete.
9014 (buildsym_compunit::end_symtab_with_blockvector): Create local
9015 lambda function to sort line table entries, and use
9016 std::stable_sort instead of std::sort.
9017 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
9018 markers when looking for a previous line.
9019
94a72be7
AB
90202020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9021
9022 * dwarf2read.c (lnp_state_machine::record_line): Include
9023 end_sequence parameter in debug print out. Record the line if we
9024 are at an end_sequence marker even if it's not the start of a
9025 statement.
9026 * symmisc.c (maintenance_print_one_line_table): Print end of
9027 sequence markers with 'END' not '0'.
9028
53af73bf
PA
90292020-01-24 Pedro Alves <palves@redhat.com>
9030
9031 PR gdb/25410
9032 * thread.c (scoped_restore_current_thread::restore): Use
9033 switch_to_inferior_no_thread.
9034 * exec.c: Include "progspace-and-thread.h".
9035 (add_target_sections, remove_target_sections):
9036 scoped_restore_current_pspace_and_thread instead of
9037 scoped_restore_current_thread.
9038 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
9039 and aspace to the inferior before calling clone_program_space.
9040 Remove stale comment.
9041
3050c6f4
CB
90422020-01-24 Christian Biesinger <cbiesinger@google.com>
9043
9044 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
9045 (arm_netbsd_nat_target::fetch_registers): ...this.
9046 (arm_nbsd_nat_target::store_registers): Rename to...
9047 (arm_netbsd_nat_target::store_registers): ...this.
9048
73685c7e
CB
90492020-01-24 Christian Biesinger <cbiesinger@google.com>
9050
9051 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
9052 register_t.
9053
89203d40
CB
90542020-01-24 Christian Biesinger <cbiesinger@google.com>
9055
9056 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
9057 Update comment.
9058 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
9059 Likewise.
9060 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
9061 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
9062 the correct replacement (iterate_over_regset_sections).
9063 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
9064 Update comment.
9065
1ba1ac88
AB
90662020-01-24 Graham Markall <graham.markall@embecosm.com>
9067
9068 PR gdb/23718
9069 * gdb/python/python.c (execute_gdb_command): Call
9070 async_enable_stdin in catch block.
9071
f3364a6d
AB
90722020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9073
9074 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
9075 SWITCH_THRU_ALL_UIS.
9076
733d0a67
AB
90772020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9078
9079 PR tui/9765
9080 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
9081 comment, add extra parameter, and update to store previous symbol
9082 when appropriate.
9083 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
9084 add extra parameter.
9085 * tui/tui-disasm.c (tui_disassemble): Update header comment,
9086 remove unneeded parameter, add try/catch around gdb_print_insn,
9087 rewrite to add items to asm_lines vector.
9088 (tui_find_backward_disassembly_start_address): New function.
9089 (tui_find_disassembly_address): Updated throughout.
9090 (tui_disasm_window::set_contents): Update for changes to
9091 tui_disassemble.
9092 (tui_disasm_window::do_scroll_vertical): No need to adjust the
9093 number of lines to scroll.
9094
b3b3bada
SM
90952020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
9096
9097 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
9098 (SECT_OFF_DATA): Likewise.
9099 (SECT_OFF_RODATA): Likewise.
9100 (SECT_OFF_TEXT): Likewise.
9101 (SECT_OFF_BSS): Likewise.
9102 (struct objfile) <text_section_offset, data_section_offset>: New
9103 methods.
9104 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
9105 objfile::text_section_offset.
9106 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
9107 * coffread.c (coff_symtab_read): Likewise.
9108 (enter_linenos): Likewise.
9109 (process_coff_symbol): Likewise.
9110 * ctfread.c (get_objfile_text_range): Likewise.
9111 * dtrace-probe.c (dtrace_probe::get_relocated_address):
9112 Use objfile::data_section_offset.
9113 * dwarf2-frame.c (execute_cfa_program): Use
9114 objfile::text_section_offset.
9115 (dwarf2_frame_find_fde): Likewise.
9116 * dwarf2read.c (create_addrmap_from_index): Likewise.
9117 (create_addrmap_from_aranges): Likewise.
9118 (dw2_find_pc_sect_compunit_symtab): Likewise.
9119 (process_psymtab_comp_unit_reader): Likewise.
9120 (add_partial_symbol): Likewise.
9121 (add_partial_subprogram): Likewise.
9122 (process_full_comp_unit): Likewise.
9123 (read_file_scope): Likewise.
9124 (read_func_scope): Likewise.
9125 (read_lexical_block_scope): Likewise.
9126 (read_call_site_scope): Likewise.
9127 (dwarf2_rnglists_process): Likewise.
9128 (dwarf2_ranges_process): Likewise.
9129 (dwarf2_ranges_read): Likewise.
9130 (dwarf_decode_lines_1): Likewise.
9131 (new_symbol): Likewise.
9132 (dwarf2_fetch_die_loc_sect_off): Likewise.
9133 (dwarf2_per_cu_text_offset): Likewise.
9134 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
9135 * hppa-tdep.c (read_unwind_info): Likewise.
9136 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
9137 * psympriv.h (struct partial_symtab): Likewise.
9138 * psymtab.c (find_pc_sect_psymtab): Likewise.
9139 * solib-svr4.c (enable_break): Likewise.
9140 * stap-probe.c (relocate_address): Use
9141 objfile::data_section_offset.
9142 * xcoffread.c (enter_line_range): Use
9143 objfile::text_section_offset.
9144 (read_xcoff_symtab): Likewise.
9145
ab53f382
SM
91462020-01-23 Simon Marchi <simon.marchi@efficios.com>
9147
9148 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
9149 declaration to narrower scopes.
9150
e7eee665
SM
91512020-01-23 Simon Marchi <simon.marchi@efficios.com>
9152
9153 * darwin-nat.h (struct darwin_exception_msg, enum
9154 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
9155 Move up.
9156 (class darwin_nat_target) <wait_1, check_new_threads,
9157 decode_exception_message, decode_message, stop_inferior,
9158 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
9159 * darwin-nat.c (darwin_check_new_threads): Rename to...
9160 (darwin_nat_target::check_new_threads): ... this.
9161 (darwin_suspend_inferior_it): Remove.
9162 (darwin_decode_exception_message): Rename to...
9163 (darwin_nat_target::decode_exception_message): ... this.
9164 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
9165 (darwin_decode_message): Rename to...
9166 (darwin_nat_target::decode_message): ... this.
9167 (cancel_breakpoint): Rename to...
9168 (darwin_nat_target::cancel_breakpoint): ... this.
9169 (darwin_wait): Rename to...
9170 (darwin_nat_target::wait_1): ... this. Use range-based for loop
9171 instead of iterate_over_inferiors.
9172 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
9173 (darwin_stop_inferior): Rename to...
9174 (darwin_nat_target::stop_inferior): ... this.
9175 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
9176 (darwin_init_thread_list): Rename to...
9177 (darwin_nat_target::init_thread_list): ... this.
9178 (darwin_ptrace_him): Rename to...
9179 (darwin_nat_target::ptrace_him): ... this.
9180 (darwin_nat_target::create_inferior): Pass lambda function to
9181 fork_inferior.
9182 (darwin_nat_target::detach): Call stop_inferior instead of
9183 darwin_stop_inferior.
9184 * fork-inferior.h (fork_inferior): Change init_trace_fun
9185 parameter to gdb::function_view.
9186 * fork-inferior.c (fork_inferior): Likewise.
9187
c162ed3e
HD
91882020-01-23 Hannes Domani <ssbssa@yahoo.de>
9189
9190 * i386-cygwin-tdep.c (core_process_module_section): Update.
9191 * windows-nat.c (struct lm_info_windows): Add text_offset.
9192 (windows_xfer_shared_libraries): Update.
9193 * windows-tdep.c (windows_xfer_shared_library):
9194 Add text_offset_cached argument.
9195 * windows-tdep.h (windows_xfer_shared_library): Update.
9196
a1237872
SM
91972020-01-21 Simon Marchi <simon.marchi@efficios.com>
9198
9199 * gdbarch.sh: Add declaration for _initialize_gdbarch.
9200
b3ee6dd9
SM
92012020-01-21 Simon Marchi <simon.marchi@efficios.com>
9202
9203 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
9204 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
9205 replace with range-based for.
9206 (gdbsim_interrupt_inferior): Remove.
9207 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
9208 with a range-based for. Inline code from
9209 gdbsim_interrupt_inferior.
9210
f9fac3c8
SM
92112020-01-21 Simon Marchi <simon.marchi@efficios.com>
9212
9213 * infrun.c (proceed): Fix indentation.
9214
f6474de9
TT
92152020-01-21 Tom Tromey <tromey@adacore.com>
9216
9217 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
9218 * python/python.c (python_extension_ops): Update.
9219 (gdbpy_colorize): New function.
9220 * python/lib/gdb/__init__.py (colorize): New function.
9221 * extension.h (ext_lang_colorize): Declare.
9222 * extension.c (ext_lang_colorize): New function.
9223 * extension-priv.h (struct extension_language_ops) <colorize>: New
9224 member.
9225 * cli/cli-style.c (_initialize_cli_style): Update help text.
9226
f0c702d4
LM
92272020-01-21 Luis Machado <luis.machado@linaro.org>
9228
9229 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
9230 <cond>: Change type to bool.
9231 (aarch64_displaced_step_b_cond): Update cond to use bool type.
9232 (aarch64_displaced_step_cb): Likewise.
9233 (aarch64_displaced_step_tb): Likewise.
9234
1ab139e5
LM
92352020-01-21 Luis Machado <luis.machado@linaro.org>
9236
9237 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
9238 output.
9239
0c271889
LM
92402020-01-21 Luis Machado <luis.machado@linaro.org>
9241
9242 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
9243 <pc_adjust>: Adjust the documentation.
9244 (aarch64_displaced_step_fixup): Check if PC really moved before
9245 adjusting it.
9246
4d89c1c7
TT
92472020-01-19 Tom Tromey <tom@tromey.com>
9248
9249 * disasm.c (~gdb_disassembler): New destructor.
9250 (gdb_buffered_insn_length): Call disassemble_free_target.
9251 * disasm.h (class gdb_disassembler): Declare destructor. Use
9252 DISABLE_COPY_AND_ASSIGN.
9253
c0ab21c2
TT
92542020-01-19 Tom Tromey <tom@tromey.com>
9255
9256 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
9257 (die_reader_func_ftype): Remove.
9258 (cutu_reader): New class.
9259 (dw2_get_file_names_reader): Remove "data" parameter.
9260 (dw2_get_file_names): Use cutu_reader.
9261 (create_debug_type_hash_table): Update.
9262 (read_cutu_die_from_dwo): Update comment.
9263 (lookup_dwo_unit): Add dwo_name parameter.
9264 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
9265 die_reader_func_ftype and data parameters.
9266 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
9267 Remove die_reader_func_ftype and data parameters.
9268 (~cutu_reader): New; from init_cutu_and_read_dies.
9269 (cutu_reader::cutu_reader): Rename from
9270 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
9271 and data parameters.
9272 (init_cutu_and_read_dies_simple): Remove.
9273 (struct process_psymtab_comp_unit_data): Remove.
9274 (process_psymtab_comp_unit_reader): Remove data parameter; add
9275 want_partial_unit and pretend_language parameters.
9276 (process_psymtab_comp_unit): Use cutu_reader.
9277 (build_type_psymtabs_reader): Remove data parameter.
9278 (build_type_psymtabs_1): Use cutu_reader.
9279 (process_skeletonless_type_unit): Likewise.
9280 (load_partial_comp_unit_reader): Remove.
9281 (load_partial_comp_unit): Use cutu_reader.
9282 (load_full_comp_unit_reader): Remove.
9283 (load_full_comp_unit): Use cutu_reader.
9284 (struct create_dwo_cu_data): Remove.
9285 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
9286 dwo_unit parameters.
9287 (create_cus_hash_table): Use cutu_reader.
9288 (struct dwarf2_read_addr_index_data): Remove.
9289 (dwarf2_read_addr_index_reader): Remove.
9290 (dwarf2_read_addr_index): Use cutu_reader.
9291 (read_signatured_type_reader): Remove.
9292 (read_signatured_type): Use cutu_reader.
9293
45bbae5c
TT
92942020-01-19 Tom Tromey <tom@tromey.com>
9295
9296 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
9297 * tui/tui-wingeneral.h (class tui_suppress_output): New.
9298 (tui_wrefresh): Declare.
9299 * tui/tui-wingeneral.c (suppress_output): New global.
9300 (tui_suppress_output, ~tui_suppress_output): New constructor and
9301 destructor.
9302 (tui_wrefresh): New function.
9303 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
9304 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
9305 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
9306 method.
9307 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
9308 tui_wrefresh.
9309 (tui_data_window::no_refresh): New method.
9310 (tui_data_item_window::refresh_window): Call tui_wrefresh.
9311 (tui_reg_command): Use tui_suppress_output
9312 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
9313 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
9314 method.
9315 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
9316
4f13c1c0
TT
93172020-01-19 Tom Tromey <tom@tromey.com>
9318
9319 * tui/tui-winsource.c (tui_update_source_windows_with_line):
9320 Handle case where symtab is null.
9321
fa47e446
SM
93222020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
9323
9324 * linux-fork.c (one_fork_p): Simplify.
9325
26f42329
SM
93262020-01-17 Simon Marchi <simon.marchi@efficios.com>
9327
9328 * top.c (struct qt_args): Remove.
9329 (kill_or_detach): Change return type to void, replace `void *`
9330 parameter with a proper one.
9331 (print_inferior_quit_action): Likewise.
9332 (quit_confirm): Use range-based for loop to iterate over inferiors.
9333 (quit_force): Likewise.
9334
a9ac81b1
SM
93352020-01-17 Simon Marchi <simon.marchi@efficios.com>
9336
9337 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
9338 `void *` parameter with proper parameters.
9339 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
9340 (print_one_inferior): Change return type to void, replace `void *`
9341 parameter with proper parameters.
9342 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
9343 inferiors.
9344 (get_other_inferior): Remove.
9345 (mi_cmd_remove_inferior): Use range-based loop to iterate over
9346 inferiors.
9347
788eca49
SM
93482020-01-17 Simon Marchi <simon.marchi@efficios.com>
9349
9350 * mi/mi-interp.c (report_initial_inferior): Remove.
9351 (mi_interp::init): Use range-based for to iterate over inferiors.
9352
d9bc85b6
SM
93532020-01-17 Simon Marchi <simon.marchi@efficios.com>
9354
9355 * python/py-inferior.c (build_inferior_list): Remove.
9356 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
9357
40c94099
CB
93582020-01-16 Christian Biesinger <cbiesinger@google.com>
9359
9360 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
9361 (btrace_stitch_trace): Likewise.
9362 * charset.c (intermediate_encoding): Likewise (vaild).
9363 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
9364 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
9365 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
9366
e0cdfe3c
HD
93672020-01-16 Hannes Domani <ssbssa@yahoo.de>
9368
9369 * windows-tdep.c (windows_get_tlb_type):
9370 Add rtl_user_process_parameters type.
9371
790f1718 93722020-01-16 Pedro Alves <palves@redhat.com>
aac66a4c 9373 Norbert Lange <nolange79@gmail.com>
790f1718
PA
9374
9375 PR build/24805
9376 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
9377 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
9378 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
9379 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
9380 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
9381 (ps_plog): Redeclare exported functions with default visibility.
9382
3112ed97
NA
93832020-01-16 Nitika Achra <Nitika.Achra@amd.com>
9384
9385 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
9386 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
9387
8dc3273e
SM
93882020-01-15 Simon Marchi <simon.marchi@efficios.com>
9389
9390 * infcmd.c (post_create_inferior): Use get_thread_regcache
9391 instead of get_current_regcache.
9392
ff47f4f0
TT
93932020-01-14 Tom Tromey <tom@tromey.com>
9394
9395 PR symtab/12535:
9396 * python/python.c (gdbpy_decode_line): Treat empty string the same
9397 as no argument.
9398
975f45b7
TT
93992020-01-14 Tom Tromey <tom@tromey.com>
9400
9401 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
9402
25e57356
TT
94032020-01-14 Tom Tromey <tom@tromey.com>
9404
9405 * nat/linux-btrace.c: Don't include <config.h>.
9406 * nat/linux-ptrace.c: Don't include <config.h>.
9407 * nat/x86-linux-dregs.c: Don't include <config.h>.
9408
05ea2a05
TT
94092020-01-14 Tom Tromey <tom@tromey.com>
9410
9411 * configure: Rebuild.
9412 * configure.ac: Move many checks to ../gdbsupport/common.m4.
9413
01027315
TT
94142020-01-14 Tom Tromey <tom@tromey.com>
9415
9416 * nat/x86-linux-dregs.c: Include configh.h.
9417 * nat/linux-ptrace.c: Include configh.h.
9418 * nat/linux-btrace.c: Include configh.h.
9419 * defs.h: Include config.h, bfd.h.
9420 * configure.ac: Don't source common.host.
9421 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
9422 * configure: Rebuild.
9423 * acinclude.m4: Update path.
9424 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
9425 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
9426 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
9427 (CLIBS): Add LIBSUPPORT.
9428 (CDEPS): Likewise.
9429 (COMMON_SFILES): Remove gdbsupport files.
9430 (HFILES_NO_SRCDIR): Likewise.
9431 (stamp-version): Update path to create-version.sh.
9432 (ALLDEPFILES): Remove gdbsupport files.
9433
b2ceabe8
TT
94342020-01-14 Tom Tromey <tom@tromey.com>
9435
9436 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
9437 USE_WIN32API when needed.
9438 * configure.ac (USE_WIN32API): Don't define.
9439 (WIN32LIBS): Use WIN32APILIBS.
9440 * configure: Rebuild.
9441
25c51f71
TT
94422020-01-14 Tom Tromey <tom@tromey.com>
9443
9444 * configure: Rebuild.
9445 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
9446
717c684d
BE
94472020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
9448
9449 * skip.c (skip_function_command): Make skip w/o arguments use the
9450 name of the inlined function if pc is inside any inlined function.
9451
7da6a5b9
LM
94522020-01-14 Luis Machado <luis.machado@linaro.org>
9453
9454 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
9455 * infrun.c (resume_1): Likewise.
9456 (handle_inferior_event): Remove stale comment.
9457 * linux-nat.c (linux_nat_target::resume): Update comments.
9458 (save_stop_reason): Likewise.
9459 (linux_nat_filter_event): Likewise.
9460 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
9461
44e4c775
AB
94622020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
9463
9464 * elfread.c (record_minimal_symbol): Set section index to 0 for
9465 non-allocatable sections.
9466
18a8505e
AT
9467
94682020-01-13 Ali Tamur <tamur@google.com>
9469
9470 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
9471 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
9472 to gdb::optional. Update comments.
9473 (dwo_file): Update comments.
9474 (read_attribute): Update API to take an additional out parameter,
9475 need_reprocess. This is used to mark attributes that need other
9476 attributes (e.g. str_offsets_base) for correct computation which may not
9477 have been read yet.
9478 (read_attribute_reprocess): New function declaration.
9479 (read_addr_index): Likewise.
9480 (read_dwo_str_index): Likewise.
9481 (read_stub_str_index): Likewise.
9482 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
9483 (lookup_addr_base): New function definition.
9484 (lookup_ranges_base): Likewise.
9485 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
9486 lookup_ranges_base.
9487 (init_cutu_and_read_dies): Update comments.
9488 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
9489 unit. This is used to inherit parent's str_offsets_base and addr_base.
9490 Update comments.
9491 (init_cutu_and_read_dies_simple): Reflect API changes.
9492 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
9493 (create_cus_hash_table): Change API to take parent compile unit.
9494 Reflect API changes.
9495 (open_and_init_dwo_file): Reflect API changes.
9496 (dwarf2_get_pc_bounds): Update comments.
9497 (dwarf2_record_block_ranges): Likewise.
9498 (read_full_die_1): Change implementation to reprocess attributes that
9499 need str_offsets_base and addr_base.
9500 (partial_die_info::read): Likewise.
9501 (read_attribute_reprocess): New function definition.
9502 (read_attribute_value): Change API to take an additional out parameter,
9503 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
9504 when a non-dwo compile unit has index based attributes.
9505 (read_attribute): Reflect API changes.
9506 (read_addr_index_1): Reflect API changes. Update comments.
9507 (dwarf2_read_addr_index_data): Reflect API changes.
9508 (dwarf2_read_addr_index): Likewise.
9509 (read_str_index): Change API and implementation. This becomes a helper
9510 to be used by the new string index related methods. Update error
9511 message and comments.
9512 (read_dwo_str_index): New function definition.
9513 (read_stub_str_index): Likewise.
9514 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
9515 * symfile.h (dwarf2_debug_sections): Likewise.
9516 * xcoffread.c (dwarf2_debug_sections): Likewise.
9517
0cac9354
SM
95182020-01-13 Simon Marchi <simon.marchi@efficios.com>
9519
9520 * gdbcore.h (struct core_fns) <core_read_registers>: Change
9521 core_reg_sect type to gdb_byte *.
9522 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
9523 * cris-tdep.c (fetch_core_registers): Likewise.
9524 * corelow.c (core_target::get_core_register_section): Change
9525 type of `contents` to gdb::byte_vector.
9526
9a6d629c
AB
95272020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
9528
9529 * tui/tui-wingeneral.c (box_win): Position the title in the center
9530 of the border.
9531
d8b2f9e3
SM
95322020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
9533
9534 * corelow.c (core_target::get_core_register_section): Use
9535 std::vector instead of alloca.
9536
bb564c58
SM
95372020-01-13 Simon Marchi <simon.marchi@efficios.com>
9538
9539 * warning.m4: Add -Wmissing-declarations to build_warnings.
9540 * configure: Re-generate.
9541
6b366111
SM
95422020-01-13 Simon Marchi <simon.marchi@efficios.com>
9543
9544 * python/python.c (init__gdb_module): Add declaration.
9545
6c265988
SM
95462020-01-13 Simon Marchi <simon.marchi@efficios.com>
9547
9548 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
9549 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
9550 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
9551 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
9552 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
9553 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
9554 * ada-exp.y (_initialize_ada_exp): Add declaration.
9555 * ada-lang.c (_initialize_ada_language): Add declaration.
9556 * ada-tasks.c (_initialize_tasks): Add declaration.
9557 * agent.c (_initialize_agent): Add declaration.
9558 * aix-thread.c (_initialize_aix_thread): Add declaration.
9559 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
9560 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
9561 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
9562 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
9563 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
9564 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
9565 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
9566 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
9567 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
9568 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
9569 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
9570 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
9571 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
9572 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
9573 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
9574 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
9575 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
9576 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
9577 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
9578 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
9579 * annotate.c (_initialize_annotate): Add declaration.
9580 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
9581 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
9582 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
9583 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
9584 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
9585 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
9586 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
9587 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
9588 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
9589 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
9590 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
9591 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
9592 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
9593 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
9594 * auto-load.c (_initialize_auto_load): Add declaration.
9595 * auxv.c (_initialize_auxv): Add declaration.
9596 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
9597 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
9598 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
9599 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
9600 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
9601 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
9602 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
9603 * breakpoint.c (_initialize_breakpoint): Add declaration.
9604 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
9605 * btrace.c (_initialize_btrace): Add declaration.
9606 * charset.c (_initialize_charset): Add declaration.
9607 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
9608 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
9609 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
9610 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
9611 * cli/cli-script.c (_initialize_cli_script): Add declaration.
9612 * cli/cli-style.c (_initialize_cli_style): Add declaration.
9613 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
9614 * coffread.c (_initialize_coffread): Add declaration.
9615 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
9616 * compile/compile.c (_initialize_compile): Add declaration.
9617 * complaints.c (_initialize_complaints): Add declaration.
9618 * completer.c (_initialize_completer): Add declaration.
9619 * copying.c (_initialize_copying): Add declaration.
9620 * corefile.c (_initialize_core): Add declaration.
9621 * corelow.c (_initialize_corelow): Add declaration.
9622 * cp-abi.c (_initialize_cp_abi): Add declaration.
9623 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
9624 * cp-support.c (_initialize_cp_support): Add declaration.
9625 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
9626 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
9627 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
9628 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
9629 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
9630 * ctfread.c (_initialize_ctfread): Add declaration.
9631 * d-lang.c (_initialize_d_language): Add declaration.
9632 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
9633 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
9634 * dbxread.c (_initialize_dbxread): Add declaration.
9635 * dcache.c (_initialize_dcache): Add declaration.
9636 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
9637 * disasm.c (_initialize_disasm): Add declaration.
9638 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
9639 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
9640 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
9641 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
9642 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
9643 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
9644 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
9645 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
9646 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
9647 * elfread.c (_initialize_elfread): Add declaration.
9648 * exec.c (_initialize_exec): Add declaration.
9649 * extension.c (_initialize_extension): Add declaration.
9650 * f-lang.c (_initialize_f_language): Add declaration.
9651 * f-valprint.c (_initialize_f_valprint): Add declaration.
9652 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
9653 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
9654 * filesystem.c (_initialize_filesystem): Add declaration.
9655 * findcmd.c (_initialize_mem_search): Add declaration.
9656 * findvar.c (_initialize_findvar): Add declaration.
9657 * fork-child.c (_initialize_fork_child): Add declaration.
9658 * frame-base.c (_initialize_frame_base): Add declaration.
9659 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
9660 * frame.c (_initialize_frame): Add declaration.
9661 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
9662 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
9663 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
9664 * gcore.c (_initialize_gcore): Add declaration.
9665 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
9666 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
9667 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
9668 * gdbarch.c (_initialize_gdbarch): Add declaration.
9669 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
9670 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
9671 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
9672 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
9673 * go-lang.c (_initialize_go_language): Add declaration.
9674 * go32-nat.c (_initialize_go32_nat): Add declaration.
9675 * guile/guile.c (_initialize_guile): Add declaration.
9676 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
9677 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
9678 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
9679 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
9680 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
9681 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
9682 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
9683 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
9684 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
9685 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
9686 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
9687 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
9688 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
9689 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
9690 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
9691 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
9692 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
9693 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
9694 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
9695 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
9696 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
9697 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
9698 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
9699 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
9700 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
9701 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
9702 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
9703 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
9704 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
9705 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
9706 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
9707 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
9708 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
9709 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
9710 * infcall.c (_initialize_infcall): Add declaration.
9711 * infcmd.c (_initialize_infcmd): Add declaration.
9712 * inflow.c (_initialize_inflow): Add declaration.
9713 * infrun.c (_initialize_infrun): Add declaration.
9714 * interps.c (_initialize_interpreter): Add declaration.
9715 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
9716 * jit.c (_initialize_jit): Add declaration.
9717 * language.c (_initialize_language): Add declaration.
9718 * linux-fork.c (_initialize_linux_fork): Add declaration.
9719 * linux-nat.c (_initialize_linux_nat): Add declaration.
9720 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
9721 * linux-thread-db.c (_initialize_thread_db): Add declaration.
9722 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
9723 * m2-lang.c (_initialize_m2_language): Add declaration.
9724 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
9725 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
9726 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
9727 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
9728 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
9729 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
9730 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
9731 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
9732 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
9733 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
9734 * machoread.c (_initialize_machoread): Add declaration.
9735 * macrocmd.c (_initialize_macrocmd): Add declaration.
9736 * macroscope.c (_initialize_macroscope): Add declaration.
9737 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
9738 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
9739 * maint.c (_initialize_maint_cmds): Add declaration.
9740 * mdebugread.c (_initialize_mdebugread): Add declaration.
9741 * memattr.c (_initialize_mem): Add declaration.
9742 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
9743 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
9744 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
9745 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
9746 * mi/mi-main.c (_initialize_mi_main): Add declaration.
9747 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
9748 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
9749 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
9750 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
9751 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
9752 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
9753 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
9754 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
9755 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
9756 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
9757 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
9758 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
9759 * mipsread.c (_initialize_mipsread): Add declaration.
9760 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
9761 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
9762 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
9763 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
9764 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
9765 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
9766 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
9767 * nto-procfs.c (_initialize_procfs): Add declaration.
9768 * objc-lang.c (_initialize_objc_language): Add declaration.
9769 * observable.c (_initialize_observer): Add declaration.
9770 * opencl-lang.c (_initialize_opencl_language): Add declaration.
9771 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
9772 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
9773 * osabi.c (_initialize_gdb_osabi): Add declaration.
9774 * osdata.c (_initialize_osdata): Add declaration.
9775 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
9776 * parse.c (_initialize_parse): Add declaration.
9777 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
9778 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
9779 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
9780 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
9781 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
9782 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
9783 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
9784 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
9785 * printcmd.c (_initialize_printcmd): Add declaration.
9786 * probe.c (_initialize_probe): Add declaration.
9787 * proc-api.c (_initialize_proc_api): Add declaration.
9788 * proc-events.c (_initialize_proc_events): Add declaration.
9789 * proc-service.c (_initialize_proc_service): Add declaration.
9790 * procfs.c (_initialize_procfs): Add declaration.
9791 * producer.c (_initialize_producer): Add declaration.
9792 * psymtab.c (_initialize_psymtab): Add declaration.
9793 * python/python.c (_initialize_python): Add declaration.
9794 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
9795 * record-btrace.c (_initialize_record_btrace): Add declaration.
9796 * record-full.c (_initialize_record_full): Add declaration.
9797 * record.c (_initialize_record): Add declaration.
9798 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
9799 * regcache.c (_initialize_regcache): Add declaration.
9800 * reggroups.c (_initialize_reggroup): Add declaration.
9801 * remote-notif.c (_initialize_notif): Add declaration.
9802 * remote-sim.c (_initialize_remote_sim): Add declaration.
9803 * remote.c (_initialize_remote): Add declaration.
9804 * reverse.c (_initialize_reverse): Add declaration.
9805 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
9806 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
9807 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
9808 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
9809 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
9810 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
9811 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
9812 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
9813 Add declaration.
9814 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
9815 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
9816 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
9817 * rust-exp.y (_initialize_rust_exp): Add declaration.
9818 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
9819 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
9820 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
9821 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
9822 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
9823 * score-tdep.c (_initialize_score_tdep): Add declaration.
9824 * ser-go32.c (_initialize_ser_dos): Add declaration.
9825 * ser-mingw.c (_initialize_ser_windows): Add declaration.
9826 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
9827 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
9828 * ser-uds.c (_initialize_ser_socket): Add declaration.
9829 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
9830 * serial.c (_initialize_serial): Add declaration.
9831 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
9832 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
9833 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
9834 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
9835 * skip.c (_initialize_step_skip): Add declaration.
9836 * sol-thread.c (_initialize_sol_thread): Add declaration.
9837 * solib-aix.c (_initialize_solib_aix): Add declaration.
9838 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
9839 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
9840 * solib-frv.c (_initialize_frv_solib): Add declaration.
9841 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
9842 * solib-target.c (_initialize_solib_target): Add declaration.
9843 * solib.c (_initialize_solib): Add declaration.
9844 * source-cache.c (_initialize_source_cache): Add declaration.
9845 * source.c (_initialize_source): Add declaration.
9846 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
9847 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
9848 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
9849 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
9850 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
9851 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
9852 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
9853 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
9854 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
9855 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
9856 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
9857 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
9858 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
9859 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
9860 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
9861 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
9862 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
9863 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
9864 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
9865 * stabsread.c (_initialize_stabsread): Add declaration.
9866 * stack.c (_initialize_stack): Add declaration.
9867 * stap-probe.c (_initialize_stap_probe): Add declaration.
9868 * std-regs.c (_initialize_frame_reg): Add declaration.
9869 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
9870 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
9871 * symfile.c (_initialize_symfile): Add declaration.
9872 * symmisc.c (_initialize_symmisc): Add declaration.
9873 * symtab.c (_initialize_symtab): Add declaration.
9874 * target.c (_initialize_target): Add declaration.
9875 * target-connection.c (_initialize_target_connection): Add
9876 declaration.
9877 * target-dcache.c (_initialize_target_dcache): Add declaration.
9878 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
9879 * thread.c (_initialize_thread): Add declaration.
9880 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
9881 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
9882 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
9883 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
9884 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
9885 * tracectf.c (_initialize_ctf): Add declaration.
9886 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
9887 * tracefile.c (_initialize_tracefile): Add declaration.
9888 * tracepoint.c (_initialize_tracepoint): Add declaration.
9889 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
9890 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
9891 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
9892 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
9893 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
9894 * tui/tui-win.c (_initialize_tui_win): Add declaration.
9895 * tui/tui.c (_initialize_tui): Add declaration.
9896 * typeprint.c (_initialize_typeprint): Add declaration.
9897 * ui-style.c (_initialize_ui_style): Add declaration.
9898 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
9899 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
9900 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
9901 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
9902 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
9903 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
9904 * unittests/filtered_iterator-selftests.c
9905 (_initialize_filtered_iterator_selftests): Add declaration.
9906 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
9907 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
9908 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
9909 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
9910 * unittests/main-thread-selftests.c
9911 (_initialize_main_thread_selftests): Add declaration.
9912 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
9913 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
9914 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
9915 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
9916 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
9917 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
9918 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
9919 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
9920 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
9921 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
9922 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
9923 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
9924 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
9925 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
9926 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
9927 declaration.
9928 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
9929 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
9930 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
9931 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
9932 * user-regs.c (_initialize_user_regs): Add declaration.
9933 * utils.c (_initialize_utils): Add declaration.
9934 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
9935 * valops.c (_initialize_valops): Add declaration.
9936 * valprint.c (_initialize_valprint): Add declaration.
9937 * value.c (_initialize_values): Add declaration.
9938 * varobj.c (_initialize_varobj): Add declaration.
9939 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
9940 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
9941 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
9942 * windows-nat.c (_initialize_windows_nat): Add declaration.
9943 (_initialize_check_for_gdb_ini): Add declaration.
9944 (_initialize_loadable): Add declaration.
9945 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
9946 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
9947 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
9948 * xcoffread.c (_initialize_xcoffread): Add declaration.
9949 * xml-support.c (_initialize_xml_support): Add declaration.
9950 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
9951 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
9952 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
9953 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
9954
e2de1eec
SM
99552020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
9956
9957 * regformats/regdat.sh: Generate declaration for init function.
9958
e0037b4c
SM
99592020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
9960
9961 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
9962 up.
9963 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
9964 close_one_inferior>: New methods.
9965 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
9966 pass down target to find_inferior_pid.
9967 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
9968 Pass down target to find_inferior_ptid.
9969 (gdbsim_target::create_inferior): Pass down target to
9970 add_thread_silent.
9971 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
9972 target down to find_inferior_ptid and switch_to_thread.
9973 (gdbsim_target::close): Update to call close_one_inferior.
9974 (struct resume_data): Remove.
9975 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
9976 directly, rather than through a void pointer.
9977 (gdbsim_target::resume): Update to call resume_one_inferior.
9978
58920b5b
SM
99792020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
9980
9981 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
9982
4ec89149
PA
99832020-01-12 Pedro Alves <palves@redhat.com>
9984
9985 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
9986 directly for the current inferior instead of
9987 discard_all_inferiors.
9988 (discard_all_inferiors): Delete.
9989
7c392d1d
TT
99902020-01-11 Tom Tromey <tom@tromey.com>
9991
9992 * tui/tui-wingeneral.c (box_win): Check cli_styling.
9993 * tui/tui-winsource.c (tui_source_window_base::refill): Use
9994 deprecated_safe_get_selected_frame.
9995
d9ebdab7
TBA
99962020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9997
9998 * inferior.c (print_inferior): Switch inferior before printing it.
9999
f3c469b9
PA
100002020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
10001 Pedro Alves <palves@redhat.com>
10002
10003 * progspace-and-thread.c (switch_to_program_space_and_thread):
10004 Assert there's an inferior for PSPACE. Use
10005 switch_to_inferior_no_thread to switch the inferior too.
10006 * progspace.c (program_space::~program_space): Call
10007 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
10008 (program_space::free_all_objfiles): Don't call clear_symtab_users
10009 here.
10010 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
10011
65c574f6
PA
100122020-01-10 Pedro Alves <palves@redhat.com>
10013
10014 * NEWS: Mention multi-target debugging, "info connections", and
10015 "add-inferior -no-connection".
10016
2f4fcf00
PA
100172020-01-10 Pedro Alves <palves@redhat.com>
10018
10019 * infrun.c: Include "target-connection.h".
10020 (check_multi_target_resumption): New.
10021 (proceed): Call it.
10022 * target-connection.c (make_target_connection_string): Make
10023 extern.
10024 * target-connection.h (make_target_connection_string): Declare.
10025
121b3efd
PA
100262020-01-10 Pedro Alves <palves@redhat.com>
10027
10028 * Makefile.in (COMMON_SFILES): Add target-connection.c.
10029 * inferior.c (uiout_field_connection): New function.
10030 (print_inferior): Add new "connection-id" column.
10031 (add_inferior_command): Show connection number/string of added
10032 inferior.
10033 * process-stratum-target.h
10034 (process_stratum_target::connection_string): New virtual method.
10035 (process_stratum_target::connection_number): New field.
10036 * remote.c (remote_target::connection_string): New override.
10037 * target-connection.c: New file.
10038 * target-connection.h: New file.
10039 * target.c (decref_target): Remove process_stratum targets from
10040 the connection list.
10041 (target_stack::push): Add process_stratum targets to the
10042 connection list.
10043
4f837581
PA
100442020-01-10 Pedro Alves <palves@redhat.com>
10045
10046 Revert:
10047 2016-04-12 Pedro Alves <palves@redhat.com>
10048 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
10049 Remove references to name.
10050 * serial.h (struct serial) <name>: Delete.
10051
f4ec508e
PA
100522020-01-10 Pedro Alves <palves@redhat.com>
10053
10054 * gdbarch-selftests.c (register_to_value_test): Remove "target
10055 already pushed" check.
10056
5b6d1e4f
PA
100572020-01-10 Pedro Alves <palves@redhat.com>
10058 John Baldwin <jhb@FreeBSD.org>
10059
10060 * aarch64-linux-nat.c
10061 (aarch64_linux_nat_target::thread_architecture): Adjust.
10062 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
10063 (task_command_1): Likewise.
10064 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
10065 (aix_thread_target::wait, aix_thread_target::fetch_registers)
10066 (aix_thread_target::store_registers)
10067 (aix_thread_target::thread_alive): Adjust.
10068 * amd64-fbsd-tdep.c: Include "inferior.h".
10069 (amd64fbsd_get_thread_local_address): Pass down target.
10070 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
10071 thread's gdbarch instead of target_gdbarch.
10072 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
10073 get_last_target_status.
10074 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
10075 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
10076 inferiors.
10077 (update_inserted_breakpoint_locations): Skip if inferiors with no
10078 execution.
10079 (update_global_location_list): When handling moribund locations,
10080 find representative inferior for location's pspace, and use thread
10081 count of its process_stratum target.
10082 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
10083 * bsd-uthread.c (bsd_uthread_target::wait): Use
10084 as_process_stratum_target and adjust thread_change_ptid and
10085 add_thread calls.
10086 (bsd_uthread_target::update_thread_list): Use
10087 as_process_stratum_target and adjust find_thread_ptid,
10088 thread_change_ptid and add_thread calls.
10089 * btrace.c (maint_btrace_packet_history_cmd): Adjust
10090 find_thread_ptid call.
10091 * corelow.c (add_to_thread_list): Adjust add_thread call.
10092 (core_target_open): Adjust add_thread_silent and thread_count
10093 calls.
10094 (core_target::pid_to_str): Adjust find_inferior_ptid call.
10095 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
10096 * event-top.c (async_disconnect): Pop targets from all inferiors.
10097 * exec.c (add_target_sections): Push exec target on all inferiors
10098 sharing the program space.
10099 (remove_target_sections): Remove the exec target from all
10100 inferiors sharing the program space.
10101 (exec_on_vfork): New.
10102 * exec.h (exec_on_vfork): Declare.
10103 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
10104 Pass it down.
10105 (fbsd_nat_target::update_thread_list): Adjust.
10106 (fbsd_nat_target::resume): Adjust.
10107 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
10108 down.
10109 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
10110 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
10111 get_thread_arch_regcache call.
10112 * fork-child.c (gdb_startup_inferior): Pass target down to
10113 startup_inferior and set_executing.
10114 * gdbthread.h (struct process_stratum_target): Forward declare.
10115 (add_thread, add_thread_silent, add_thread_with_info)
10116 (in_thread_list): Add process_stratum_target parameter.
10117 (find_thread_ptid(inferior*, ptid_t)): New overload.
10118 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
10119 parameter.
10120 (all_threads()): Delete overload.
10121 (all_threads, all_non_exited_threads): Add process_stratum_target
10122 parameter.
10123 (all_threads_safe): Use brace initialization.
10124 (thread_count): Add process_stratum_target parameter.
10125 (set_resumed, set_running, set_stop_requested, set_executing)
10126 (threads_are_executing, finish_thread_state): Add
10127 process_stratum_target parameter.
10128 (switch_to_thread): Use is_current_thread.
10129 * i386-fbsd-tdep.c: Include "inferior.h".
10130 (i386fbsd_get_thread_local_address): Pass down target.
10131 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
10132 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
10133 have_inferiors check.
10134 * inf-ptrace.c (inf_ptrace_target::create_inferior)
10135 (inf_ptrace_target::attach): Adjust.
10136 * infcall.c (run_inferior_call): Adjust.
10137 * infcmd.c (run_command_1): Pass target to
10138 scoped_finish_thread_state.
10139 (proceed_thread_callback): Skip inferiors with no execution.
10140 (continue_command): Rename 'all_threads' local to avoid hiding
10141 'all_threads' function. Adjust get_last_target_status call.
10142 (prepare_one_step): Adjust set_running call.
10143 (signal_command): Use user_visible_resume_target. Compare thread
10144 pointers instead of inferior_ptid.
10145 (info_program_command): Adjust to pass down target.
10146 (attach_command): Mark target's 'thread_executing' flag.
10147 (stop_current_target_threads_ns): New, factored out from ...
10148 (interrupt_target_1): ... this. Switch inferior before making
10149 target calls.
10150 * inferior-iter.h
10151 (struct all_inferiors_iterator, struct all_inferiors_range)
10152 (struct all_inferiors_safe_range)
10153 (struct all_non_exited_inferiors_range): Filter on
10154 process_stratum_target too. Remove explicit.
10155 * inferior.c (inferior::inferior): Push dummy target on target
10156 stack.
10157 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
10158 Add process_stratum_target parameter, and pass it down.
10159 (have_live_inferiors): Adjust.
10160 (switch_to_inferior_and_push_target): New.
10161 (add_inferior_command, clone_inferior_command): Handle
10162 "-no-connection" parameter. Use
10163 switch_to_inferior_and_push_target.
10164 (_initialize_inferior): Mention "-no-connection" option in
10165 the help of "add-inferior" and "clone-inferior" commands.
10166 * inferior.h: Include "process-stratum-target.h".
10167 (interrupt_target_1): Use bool.
10168 (struct inferior) <push_target, unpush_target, target_is_pushed,
10169 find_target_beneath, top_target, process_target, target_at,
10170 m_stack>: New.
10171 (discard_all_inferiors): Delete.
10172 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
10173 (all_inferiors, all_non_exited_inferiors): Add
10174 process_stratum_target parameter.
10175 * infrun.c: Include "gdb_select.h" and <unordered_map>.
10176 (target_last_proc_target): New global.
10177 (follow_fork_inferior): Push target on new inferior. Pass target
10178 to add_thread_silent. Call exec_on_vfork. Handle target's
10179 reference count.
10180 (follow_fork): Adjust get_last_target_status call. Also consider
10181 target.
10182 (follow_exec): Push target on new inferior.
10183 (struct execution_control_state) <target>: New field.
10184 (user_visible_resume_target): New.
10185 (do_target_resume): Call target_async.
10186 (resume_1): Set target's threads_executing flag. Consider resume
10187 target.
10188 (commit_resume_all_targets): New.
10189 (proceed): Also consider resume target. Skip threads of inferiors
10190 with no execution. Commit resumtion in all targets.
10191 (start_remote): Pass current inferior to wait_for_inferior.
10192 (infrun_thread_stop_requested): Consider target as well. Pass
10193 thread_info pointer to clear_inline_frame_state instead of ptid.
10194 (infrun_thread_thread_exit): Consider target as well.
10195 (random_pending_event_thread): New inferior parameter. Use it.
10196 (do_target_wait): Rename to ...
10197 (do_target_wait_1): ... this. Add inferior parameter, and pass it
10198 down.
10199 (threads_are_resumed_pending_p, do_target_wait): New.
10200 (prepare_for_detach): Adjust calls.
10201 (wait_for_inferior): New inferior parameter. Handle it. Use
10202 do_target_wait_1 instead of do_target_wait.
10203 (fetch_inferior_event): Adjust. Switch to representative
10204 inferior. Pass target down.
10205 (set_last_target_status): Add process_stratum_target parameter.
10206 Save target in global.
10207 (get_last_target_status): Add process_stratum_target parameter and
10208 handle it.
10209 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
10210 (context_switch): Check inferior_ptid == null_ptid before calling
10211 inferior_thread().
10212 (get_inferior_stop_soon): Pass down target.
10213 (wait_one): Rename to ...
10214 (poll_one_curr_target): ... this.
10215 (struct wait_one_event): New.
10216 (wait_one): New.
10217 (stop_all_threads): Adjust.
10218 (handle_no_resumed, handle_inferior_event): Adjust to consider the
10219 event's target.
10220 (switch_back_to_stepped_thread): Also consider target.
10221 (print_stop_event): Update.
10222 (normal_stop): Update. Also consider the resume target.
10223 * infrun.h (wait_for_inferior): Remove declaration.
10224 (user_visible_resume_target): New declaration.
10225 (get_last_target_status, set_last_target_status): New
10226 process_stratum_target parameter.
10227 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
10228 process_stratum_target parameter, and use it.
10229 (clear_inline_frame_state (thread_info*)): New.
10230 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
10231 process_stratum_target parameter.
10232 (clear_inline_frame_state (thread_info*)): Declare.
10233 * linux-fork.c (delete_checkpoint_command): Pass target down to
10234 find_thread_ptid.
10235 (checkpoint_command): Adjust.
10236 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
10237 instead of just tweaking inferior_ptid.
10238 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
10239 (exit_lwp): Pass target down to find_thread_ptid.
10240 (attach_proc_task_lwp_callback): Pass target down to
10241 add_thread/set_running/set_executing.
10242 (linux_nat_target::attach): Pass target down to
10243 thread_change_ptid.
10244 (get_detach_signal): Pass target down to find_thread_ptid.
10245 Consider last target status's target.
10246 (linux_resume_one_lwp_throw, resume_lwp)
10247 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
10248 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
10249 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
10250 (linux_nat_target::async_wait_fd): New.
10251 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
10252 target down.
10253 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
10254 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
10255 * linux-thread-db.c (struct thread_db_info::process_target): New
10256 field.
10257 (add_thread_db_info): Save target.
10258 (get_thread_db_info): New process_stratum_target parameter. Also
10259 match target.
10260 (delete_thread_db_info): New process_stratum_target parameter.
10261 Also match target.
10262 (thread_from_lwp): Adjust to pass down target.
10263 (thread_db_notice_clone): Pass down target.
10264 (check_thread_db_callback): Pass down target.
10265 (try_thread_db_load_1): Always push the thread_db target.
10266 (try_thread_db_load, record_thread): Pass target down.
10267 (thread_db_target::detach): Pass target down. Always unpush the
10268 thread_db target.
10269 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
10270 target down. Always unpush the thread_db target.
10271 (find_new_threads_callback, thread_db_find_new_threads_2)
10272 (thread_db_target::update_thread_list): Pass target down.
10273 (thread_db_target::pid_to_str): Pass current inferior down.
10274 (thread_db_target::get_thread_local_address): Pass target down.
10275 (thread_db_target::resume, maintenance_check_libthread_db): Pass
10276 target down.
10277 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
10278 * procfs.c (procfs_target::procfs_init_inferior): Declare.
10279 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
10280 (procfs_init_inferior): Rename to ...
10281 (procfs_target::procfs_init_inferior): ... this and adjust.
10282 (procfs_target::create_inferior, procfs_notice_thread)
10283 (procfs_do_thread_registers): Adjust.
10284 * ppc-fbsd-tdep.c: Include "inferior.h".
10285 (ppcfbsd_get_thread_local_address): Pass down target.
10286 * proc-service.c (ps_xfer_memory): Switch current inferior and
10287 program space as well.
10288 (get_ps_regcache): Pass target down.
10289 * process-stratum-target.c
10290 (process_stratum_target::thread_address_space)
10291 (process_stratum_target::thread_architecture): Pass target down.
10292 * process-stratum-target.h
10293 (process_stratum_target::threads_executing): New field.
10294 (as_process_stratum_target): New.
10295 * ravenscar-thread.c
10296 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
10297 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
10298 down.
10299 * record-btrace.c (record_btrace_target::info_record): Adjust.
10300 (record_btrace_target::record_method)
10301 (record_btrace_target::record_is_replaying)
10302 (record_btrace_target::fetch_registers)
10303 (get_thread_current_frame_id, record_btrace_target::resume)
10304 (record_btrace_target::wait, record_btrace_target::stop): Pass
10305 target down.
10306 * record-full.c (record_full_wait_1): Switch to event thread.
10307 Pass target down.
10308 * regcache.c (regcache::regcache)
10309 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
10310 process_stratum_target parameter and handle it.
10311 (current_thread_target): New global.
10312 (get_thread_regcache): Add process_stratum_target parameter and
10313 handle it. Switch inferior before calling target method.
10314 (get_thread_regcache): Pass target down.
10315 (get_thread_regcache_for_ptid): Pass target down.
10316 (registers_changed_ptid): Add process_stratum_target parameter and
10317 handle it.
10318 (registers_changed_thread, registers_changed): Pass target down.
10319 (test_get_thread_arch_aspace_regcache): New.
10320 (current_regcache_test): Define a couple local test_target_ops
10321 instances and use them for testing.
10322 (readwrite_regcache): Pass process_stratum_target parameter.
10323 (cooked_read_test, cooked_write_test): Pass mock_target down.
10324 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
10325 (get_thread_arch_aspace_regcache): Add process_stratum_target
10326 parameter.
10327 (regcache::target): New method.
10328 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
10329 (regcache::registers_changed_ptid): Add process_stratum_target
10330 parameter.
10331 (regcache::m_target): New field.
10332 (registers_changed_ptid): Add process_stratum_target parameter.
10333 * remote.c (remote_state::supports_vCont_probed): New field.
10334 (remote_target::async_wait_fd): New method.
10335 (remote_unpush_and_throw): Add remote_target parameter.
10336 (get_current_remote_target): Adjust.
10337 (remote_target::remote_add_inferior): Push target.
10338 (remote_target::remote_add_thread)
10339 (remote_target::remote_notice_new_inferior)
10340 (get_remote_thread_info): Pass target down.
10341 (remote_target::update_thread_list): Skip threads of inferiors
10342 bound to other targets. (remote_target::close): Don't discard
10343 inferiors. (remote_target::add_current_inferior_and_thread)
10344 (remote_target::process_initial_stop_replies)
10345 (remote_target::start_remote)
10346 (remote_target::remote_serial_quit_handler): Pass down target.
10347 (remote_target::remote_unpush_target): New remote_target
10348 parameter. Unpush the target from all inferiors.
10349 (remote_target::remote_unpush_and_throw): New remote_target
10350 parameter. Pass it down.
10351 (remote_target::open_1): Check whether the current inferior has
10352 execution instead of checking whether any inferior is live. Pass
10353 target down.
10354 (remote_target::remote_detach_1): Pass down target. Use
10355 remote_unpush_target.
10356 (extended_remote_target::attach): Pass down target.
10357 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
10358 (remote_target::append_resumption): Pass down target.
10359 (remote_target::append_pending_thread_resumptions)
10360 (remote_target::remote_resume_with_hc, remote_target::resume)
10361 (remote_target::commit_resume): Pass down target.
10362 (remote_target::remote_stop_ns): Check supports_vCont_probed.
10363 (remote_target::interrupt_query)
10364 (remote_target::remove_new_fork_children)
10365 (remote_target::check_pending_events_prevent_wildcard_vcont)
10366 (remote_target::remote_parse_stop_reply)
10367 (remote_target::process_stop_reply): Pass down target.
10368 (first_remote_resumed_thread): New remote_target parameter. Pass
10369 it down.
10370 (remote_target::wait_as): Pass down target.
10371 (unpush_and_perror): New remote_target parameter. Pass it down.
10372 (remote_target::readchar, remote_target::remote_serial_write)
10373 (remote_target::getpkt_or_notif_sane_1)
10374 (remote_target::kill_new_fork_children, remote_target::kill): Pass
10375 down target.
10376 (remote_target::mourn_inferior): Pass down target. Use
10377 remote_unpush_target.
10378 (remote_target::core_of_thread)
10379 (remote_target::remote_btrace_maybe_reopen): Pass down target.
10380 (remote_target::pid_to_exec_file)
10381 (remote_target::thread_handle_to_thread_info): Pass down target.
10382 (remote_target::async_wait_fd): New.
10383 * riscv-fbsd-tdep.c: Include "inferior.h".
10384 (riscv_fbsd_get_thread_local_address): Pass down target.
10385 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
10386 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
10387 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
10388 Adjust.
10389 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
10390 * solib-svr4.c (enable_break): Pass down target.
10391 * spu-multiarch.c (parse_spufs_run): Pass down target.
10392 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
10393 * target-delegates.c: Regenerate.
10394 * target.c (g_target_stack): Delete.
10395 (current_top_target): Return the current inferior's top target.
10396 (target_has_execution_1): Refer to the passed-in inferior's top
10397 target.
10398 (target_supports_terminal_ours): Check whether the initial
10399 inferior was already created.
10400 (decref_target): New.
10401 (target_stack::push): Incref/decref the target.
10402 (push_target, push_target, unpush_target): Adjust.
10403 (target_stack::unpush): Defref target.
10404 (target_is_pushed): Return bool. Adjust to refer to the current
10405 inferior's target stack.
10406 (dispose_inferior): Delete, and inline parts ...
10407 (target_preopen): ... here. Only dispose of the current inferior.
10408 (target_detach): Hold strong target reference while detaching.
10409 Pass target down.
10410 (target_thread_name): Add assertion.
10411 (target_resume): Pass down target.
10412 (target_ops::beneath, find_target_at): Adjust to refer to the
10413 current inferior's target stack.
10414 (get_dummy_target): New.
10415 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
10416 has a thread running.
10417 (initialize_targets): Rename to ...
10418 (_initialize_target): ... this.
10419 * target.h: Include "gdbsupport/refcounted-object.h".
10420 (struct target_ops): Inherit refcounted_object.
10421 (target_ops::shortname, target_ops::longname): Make const.
10422 (target_ops::async_wait_fd): New method.
10423 (decref_target): Declare.
10424 (struct target_ops_ref_policy): New.
10425 (target_ops_ref): New typedef.
10426 (get_dummy_target): Declare function.
10427 (target_is_pushed): Return bool.
10428 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
10429 (all_matching_threads_iterator::all_matching_threads_iterator):
10430 Handle filter target.
10431 * thread-iter.h (struct all_matching_threads_iterator, struct
10432 all_matching_threads_range, class all_non_exited_threads_range):
10433 Filter by target too. Remove explicit.
10434 * thread.c (threads_executing): Delete.
10435 (inferior_thread): Pass down current inferior.
10436 (clear_thread_inferior_resources): Pass down thread pointer
10437 instead of ptid_t.
10438 (add_thread_silent, add_thread_with_info, add_thread): Add
10439 process_stratum_target parameter. Use it for thread and inferior
10440 searches.
10441 (is_current_thread): New.
10442 (thread_info::deletable): Use it.
10443 (find_thread_ptid, thread_count, in_thread_list)
10444 (thread_change_ptid, set_resumed, set_running): New
10445 process_stratum_target parameter. Pass it down.
10446 (set_executing): New process_stratum_target parameter. Pass it
10447 down. Adjust reference to 'threads_executing'.
10448 (threads_are_executing): New process_stratum_target parameter.
10449 Adjust reference to 'threads_executing'.
10450 (set_stop_requested, finish_thread_state): New
10451 process_stratum_target parameter. Pass it down.
10452 (switch_to_thread): Also match inferior.
10453 (switch_to_thread): New process_stratum_target parameter. Pass it
10454 down.
10455 (update_threads_executing): Reimplement.
10456 * top.c (quit_force): Pop targets from all inferior.
10457 (gdb_init): Don't call initialize_targets.
10458 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
10459 Declare.
10460 (windows_add_thread, windows_delete_thread): Adjust.
10461 (get_windows_debug_event): Rename to ...
10462 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
10463 * tracefile-tfile.c (tfile_target_open): Pass down target.
10464 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
10465 Forward declare.
10466 (switch_to_thread): Add process_stratum_target parameter.
10467 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
10468 parameter. Use it.
10469 (mi_on_resume): Pass target down.
10470 * nat/fork-inferior.c (startup_inferior): Add
10471 process_stratum_target parameter. Pass it down.
10472 * nat/fork-inferior.h (startup_inferior): Add
10473 process_stratum_target parameter.
10474 * python/py-threadevent.c (py_get_event_thread): Pass target down.
10475
75c6c844
PA
104762020-01-10 Pedro Alves <palves@redhat.com>
10477
10478 * remote.c (remote_target::start_remote): Don't set inferior_ptid
10479 directly. Instead find the first thread in the thread list and
10480 use switch_to_thread.
10481
78f2c40a
PA
104822020-01-10 Pedro Alves <palves@redhat.com>
10483
10484 * remote.c (remote_target::remote_add_inferior): Don't bind a
10485 process to the current inferior if the current inferior is already
10486 bound to a process.
10487
e7af6c70
TBA
104882020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10489 Pedro Alves <palves@redhat.com>
10490
10491 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
10492 If no process is specified, return null_ptid instead of
10493 inferior_ptid.
10494 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
10495 TARGET_WAITKIND_SIGNALLED with no pid.
10496
31ba933e
PA
104972020-01-10 Pedro Alves <palves@redhat.com>
10498
10499 * remote.c (first_remote_resumed_thread): New.
10500 (remote_target::wait_as): Use it as default event_ptid instead of
10501 inferior_ptid.
10502
735fc2ca
PA
105032020-01-10 Pedro Alves <palves@redhat.com>
10504
10505 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
10506
c17e02e1
PA
105072020-01-10 Pedro Alves <palves@redhat.com>
10508
10509 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
10510 not -1.
10511
ab1ddbcf
PA
105122020-01-10 Pedro Alves <palves@redhat.com>
10513
10514 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
10515 ptid to get_last_target_status.
10516 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
10517 ptid to get_last_target_status.
10518 * infcmd.c (continue_command): Don't pass a target_waitstatus to
10519 get_last_target_status.
10520 (info_program_command): Don't pass a target_waitstatus to
10521 get_last_target_status.
10522 * infrun.c (init_wait_for_inferior): Use
10523 nullify_last_target_wait_ptid.
10524 (get_last_target_status): Handle nullptr arguments.
10525 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
10526 (print_stop_event): Don't pass a ptid to get_last_target_status.
10527 (normal_stop): Don't pass a ptid to get_last_target_status.
10528 * infrun.h (get_last_target_status, set_last_target_status): Move
10529 comments here and update.
10530 (nullify_last_target_wait_ptid): Declare.
10531 * linux-fork.c (fork_load_infrun_state): Remove local extern
10532 declaration of nullify_last_target_wait_ptid.
10533 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
10534 to get_last_target_status.
10535
f3f8ece4
PA
105362020-01-10 Pedro Alves <palves@redhat.com>
10537
10538 * gdbthread.h (scoped_restore_current_thread)
10539 <dont_restore, restore, m_dont_restore>: Declare.
10540 * thread.c (thread_alive): Add assertion. Return bool.
10541 (switch_to_thread_if_alive): New.
10542 (prune_threads): Switch inferior/thread.
10543 (print_thread_info_1): Switch thread before calling target methods.
10544 (scoped_restore_current_thread::restore): New, factored out from
10545 ...
10546 (scoped_restore_current_thread::~scoped_restore_current_thread):
10547 ... this.
10548 (scoped_restore_current_thread::scoped_restore_current_thread):
10549 Add assertion.
10550 (thread_apply_all_command, thread_select): Use
10551 switch_to_thread_if_alive.
10552 * infrun.c (proceed, restart_threads, handle_signal_stop)
10553 (switch_back_to_stepped_thread): Switch current thread before
10554 calling target methods.
10555
db2d40f7
PA
105562020-01-10 Pedro Alves <palves@redhat.com>
10557
10558 * inferior.c (switch_to_inferior_no_thread): New function,
10559 factored out from ...
10560 (inferior_command): ... here.
10561 * inferior.h (switch_to_inferior_no_thread): Declare.
10562 * mi/mi-main.c (run_one_inferior): Use
10563 switch_to_inferior_no_thread.
10564
bd420a2d
PA
105652020-01-10 Pedro Alves <palves@redhat.com>
10566
10567 * infcmd.c (kill_command): Remove dead code.
10568
ddf5db90
PA
105692020-01-10 Pedro Alves <palves@redhat.com>
10570
10571 * remote.c (remote_target::mourn_inferior): No longer check
10572 whether the target is running.
10573
5018ce90
PA
105742020-01-10 Pedro Alves <palves@redhat.com>
10575
10576 * corelow.c (core_target::has_execution): Change parameter type to
10577 inferior pointer.
10578 * inferior.c (number_of_live_inferiors): Use
10579 inferior::has_execution instead of target_has_execution_1.
10580 * inferior.h (inferior::has_execution): New.
10581 * linux-thread-db.c (thread_db_target::update_thread_list): Use
10582 inferior::has_execution instead of target_has_execution_1.
10583 * process-stratum-target.c
10584 (process_stratum_target::has_execution): Change parameter type to
10585 inferior pointer. Check the inferior's PID instead of
10586 inferior_ptid.
10587 * process-stratum-target.h
10588 (process_stratum_target::has_execution): Change parameter type to
10589 inferior pointer.
10590 * record-full.c (record_full_core_target::has_execution): Change
10591 parameter type to inferior pointer.
10592 * target.c (target_has_execution_1): Change parameter type to
10593 inferior pointer.
10594 (target_has_execution_current): Adjust.
10595 * target.h (target_ops::has_execution): Change parameter type to
10596 inferior pointer.
10597 (target_has_execution_1): Change parameter type to inferior
10598 pointer. Change return type to bool.
10599 * tracefile.h (tracefile_target::has_execution): Change parameter
10600 type to inferior pointer.
10601
74375d18
PA
106022020-01-10 Pedro Alves <palves@redhat.com>
10603
10604 * exceptions.c (print_flush): Remove current_top_target() check.
10605
acdf84a6
PA
106062020-01-10 Pedro Alves <palves@redhat.com>
10607
10608 * remote.c (show_remote_exec_file): Show the current inferior's
10609 exec-file instead of the command variable's value.
10610
ec506636
PA
106112020-01-10 Pedro Alves <palves@redhat.com>
10612
10613 * record-full.c (record_full_resume_ptid): New global.
10614 (record_full_target::resume): Set it.
10615 (record_full_wait_1): Use record_full_resume_ptid instead of
10616 inferior_ptid.
10617
873657b9
PA
106182020-01-10 Pedro Alves <palves@redhat.com>
10619
10620 * gdbthread.h (scoped_restore_current_thread)
10621 <dont_restore, restore, m_dont_restore>: Declare.
10622 * thread.c (thread_alive): Add assertion. Return bool.
10623 (switch_to_thread_if_alive): New.
10624 (prune_threads): Switch inferior/thread.
10625 (print_thread_info_1): Switch thread before calling target methods.
10626 (scoped_restore_current_thread::restore): New, factored out from
10627 ...
10628 (scoped_restore_current_thread::~scoped_restore_current_thread):
10629 ... this.
10630 (scoped_restore_current_thread::scoped_restore_current_thread):
10631 Add assertion.
10632 (thread_apply_all_command, thread_select): Use
10633 switch_to_thread_if_alive.
10634
7f0ae84c
GB
106352020-01-10 George Barrett <bob@bob131.so>
10636
10637 * stap-probe.c (stap_modify_semaphore): Don't check for null
10638 semaphores.
10639 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
10640 for null semaphores.
10641
f5a7c406
AB
106422020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
10643
10644 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
10645 all source windows, and maintain horizontal scroll status while
10646 doing so.
10647
9ae6bf64
TT
106482020-01-09 Tom Tromey <tom@tromey.com>
10649
10650 PR tui/18932:
10651 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
10652 update_source_window, not print_source_lines.
10653
b2efe70c
AB
106542020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
10655
10656 * tui/tui.c (tui_enable): Register tui hooks after calling
10657 tui_display_main.
10658
5f23a082
CB
106592020-01-09 Christian Biesinger <cbiesinger@google.com>
10660
10661 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
10662
3061113b
SM
106632020-01-08 Simon Marchi <simon.marchi@efficios.com>
10664
10665 * thread.c (print_thread_info_1): Fix indentation.
10666
57d75002
CB
106672020-01-09 Christian Biesinger <cbiesinger@google.com>
10668
10669 * symtab.c (general_symbol_info::compute_and_set_names): Move the
10670 unique_xmalloc_ptr outside the if to always free the demangled name.
10671
6a053cb1
TT
106722020-01-08 Tom Tromey <tromey@adacore.com>
10673
10674 * xcoffread.c (enter_line_range, read_xcoff_symtab)
10675 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
10676 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
10677 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
10678 Remove.
10679 (section_offsets): New typedef.
10680 * symtab.c (fixup_section, get_msymbol_address): Update.
10681 * symmisc.c (dump_msymbols): Update.
10682 * symfile.h (relative_addr_info_to_section_offsets)
10683 (symfile_map_offsets_to_segments): Update.
10684 * symfile.c (build_section_addr_info_from_objfile)
10685 (init_objfile_sect_indices): Update.
10686 (struct place_section_arg): Change type of "offsets".
10687 (place_section): Update.
10688 (relative_addr_info_to_section_offsets): Change type of
10689 "section_offsets". Remove "num_sections" parameter.
10690 (default_symfile_offsets, syms_from_objfile_1)
10691 (set_objfile_default_section_offset): Update.
10692 (reread_symbols): No need to preserve section offsets by hand.
10693 (symfile_map_offsets_to_segments): Change type of "offsets".
10694 * stap-probe.c (relocate_address): Update.
10695 * stabsread.h (process_one_symbol): Update.
10696 * solib-target.c (struct lm_info_target) <offsets>: Change type.
10697 (solib_target_relocate_section_addresses): Update.
10698 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
10699 Update.
10700 * solib-frv.c (frv_relocate_main_executable): Update.
10701 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
10702 * solib-aix.c (solib_aix_get_section_offsets): Change return
10703 type.
10704 (solib_aix_solib_create_inferior_hook): Update.
10705 * remote.c (remote_target::get_offsets): Update.
10706 * psymtab.c (find_pc_sect_psymtab): Update.
10707 * psympriv.h (struct partial_symbol) <address, text_low,
10708 text_high>: Update.
10709 * objfiles.h (obj_section_offset): Update.
10710 (struct objfile) <section_offsets>: Change type.
10711 <num_sections>: Remove.
10712 (objfile_relocate): Update.
10713 * objfiles.c (entry_point_address_query): Update
10714 (relocate_one_symbol): Change type of "section_offsets".
10715 (objfile_relocate1, objfile_relocate1): Change type of
10716 "new_offsets".
10717 (objfile_rebase1): Update.
10718 * mipsread.c (mipscoff_symfile_read): Update.
10719 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
10720 parameter.
10721 * mdebugread.c (parse_symbol): Change type of "section_offsets".
10722 (parse_external, psymtab_to_symtab_1): Update.
10723 * machoread.c (macho_symfile_offsets): Update.
10724 * ia64-tdep.c (ia64_find_unwind_table): Update.
10725 * hppa-tdep.c (read_unwind_info): Update.
10726 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
10727 * dwarf2read.c (create_addrmap_from_index)
10728 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
10729 (process_psymtab_comp_unit_reader, add_partial_symbol)
10730 (add_partial_subprogram, process_full_comp_unit)
10731 (read_file_scope, read_func_scope, read_lexical_block_scope)
10732 (read_call_site_scope, dwarf2_rnglists_process)
10733 (dwarf2_ranges_process, dwarf2_ranges_read)
10734 (dwarf_decode_lines_1, var_decode_location, new_symbol)
10735 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
10736 Update.
10737 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
10738 Update.
10739 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
10740 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
10741 (process_one_symbol): Change type of "section_offsets".
10742 * ctfread.c (get_objfile_text_range): Update.
10743 * coffread.c (coff_symtab_read, enter_linenos)
10744 (process_coff_symbol): Update.
10745 * coff-pe-read.c (add_pe_forwarded_sym): Update.
10746 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
10747
456e800a
TT
107482020-01-08 Tom Tromey <tromey@adacore.com>
10749
10750 * dwarf2read.c (parse_macro_definition): Use std::string.
10751 (parse_macro_definition): Likewise.
10752
6dfa2fc2
TT
107532020-01-08 Tom Tromey <tromey@adacore.com>
10754
10755 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
10756 (ATTR_ALLOC_CHUNK): Remove.
10757
421d1616
TT
107582020-01-08 Tom Tromey <tromey@adacore.com>
10759
10760 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
10761
43816ebc
TT
107622020-01-08 Tom Tromey <tromey@adacore.com>
10763
10764 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
10765 (dwarf2_compute_name, open_dwo_file): Likewise.
10766 (process_enumeration_scope): Use std::vector.
10767 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
10768 (partial_die_info::fixup, dwarf2_start_subfile)
10769 (guess_full_die_structure_name, dwarf2_name): Likewise.
10770 (determine_prefix): Update.
10771 (guess_full_die_structure_name): Make return type const.
10772 (partial_die_full_name): Return unique_xmalloc_ptr.
10773 (DW_FIELD_ALLOC_CHUNK): Remove.
10774
4212d509
TT
107752020-01-07 Tom Tromey <tromey@adacore.com>
10776
10777 PR build/24937:
10778 * stap-probe.c (class stap_static_probe_ops): Add constructor.
10779
06a6207a
JT
107802020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
10781
10782 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
10783
153d79c4
AB
107842020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
10785
10786 * stack.c (print_frame_info): Move disassemble_next_line code
10787 inside source_print block.
10788
66182876
EZ
107892020-01-06 Eli Zaretskii <eliz@gnu.org>
10790
10791 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
10792 gdb/signals.h, as we are now using native signal symbols.
10793
cbfa8581
SV
107942020-01-06 Shahab Vahedi <shahab@synopsys.com>
10795
10796 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
10797 overflow by an early check of content vs threshold.
aac66a4c 10798 * tui/tui-source.c (tui_source_window::line_is_displayed):
cbfa8581
SV
10799 Likewise.
10800
3f602821
EZ
108012020-01-06 Eli Zaretskii <eliz@gnu.org>
10802
10803 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
10804
a08c904d
JT
108052020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
10806
10807 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
10808 export table if no section contains it's RVA.
10809
89a65580
EZ
108102020-01-06 Eli Zaretskii <eliz@gnu.org>
10811
10812 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
10813
8b7fcda2
HD
108142020-01-06 Hannes Domani <ssbssa@yahoo.de>
10815
10816 * source.c (print_source_lines_base): Set last_line_listed.
10817
a61b4f69
SV
108182020-01-06 Shahab Vahedi <shahab@synopsys.com>
10819
10820 * tui/tui-disasm.c: Remove trailing spaces.
10821
559e7e50
EZ
108222020-01-06 Eli Zaretskii <eliz@gnu.org>
10823 Pedro Alves <palves@redhat.com>
10824
10825 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
10826 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
10827 (windows_gdb_signal_to_target): New function, uses the above
10828 enumeration to convert GDB internal signal codes to equivalent
10829 Windows codes.
10830 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
10831 * windows-nat.c: Include "gdb_wait.h".
10832 (get_windows_debug_event): Extract the fatal exception from the
10833 exit status and convert to the equivalent Posix signal number.
10834 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
10835 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
10836 * gdbsupport/gdb_wait.c: New file, implements
10837 windows_status_to_termsig.
10838 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
10839 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
10840
f2302a34
AB
108412020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
10842
10843 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
10844 show_layout.
10845
6a5206eb
LM
108462020-01-05 Luis Machado <luis.machado@linaro.org>
10847
10848 * aarch64-linux-nat.c
10849 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
10850 and bfd_mach_aarch64.
10851
6ec1d75e
PW
108522020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10853
10854 * ui-file.c (stdio_file::can_emit_style_escape)
10855 (tee_file::can_emit_style_escape): Ensure style is used also on
10856 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
10857 to gdb_stdout.
10858 * main.c (set_gdb_data_directory): Use file style to output the
10859 warning that the given pathname is not a directory.
10860 * top.c (show_history_filename, gdb_safe_append_history)
10861 (show_gdb_datadir): Use file style.
10862
44f81a76
HD
108632020-01-03 Hannes Domani <ssbssa@yahoo.de>
10864
10865 * solib-target.c (struct lm_info_target):
10866 Change offsets to be a unique_xmalloc_ptr.
10867 (solib_target_relocate_section_addresses): Update.
10868
25057eb0
HD
108692020-01-03 Hannes Domani <ssbssa@yahoo.de>
10870
10871 * windows-nat.c (windows_clear_solib): Free so_list linked list.
10872
6e2118f5
BE
108732020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
10874
10875 * MAINTAINERS (Write After Approval): Add myself.
10876
8133c7dc
LM
108772020-01-02 Luis Machado <luis.machado@linaro.org>
10878
10879 * proc-service.c (get_ps_regcache): Remove reference to obsolete
10880 Cell BE architecture.
10881 * target.h (struct target_ops) <thread_architecture>: Likewise.
10882
48189bec
HD
108832020-01-01 Hannes Domani <ssbssa@yahoo.de>
10884
10885 * Makefile.in: Use INSTALL_PROGRAM_ENV.
10886
ead1063b
HD
108872020-01-01 Hannes Domani <ssbssa@yahoo.de>
10888
10889 * MAINTAINERS (Write After Approval): Add myself.
10890
e5d78223
JB
108912020-01-01 Joel Brobecker <brobecker@adacore.com>
10892
10893 * gdbarch.sh: Update copyright year range of generated files.
10894
b811d2c2
JB
108952020-01-01 Joel Brobecker <brobecker@adacore.com>
10896
10897 Update copyright year range in all GDB files.
10898
5f4def5c
JB
108992020-01-01 Joel Brobecker <brobecker@adacore.com>
10900
10901 * copyright.py: Convert to Python 3.
10902
51fd4002
JB
109032020-01-01 Joel Brobecker <brobecker@adacore.com>
10904
10905 * copyright.py: Adapt after move of gnulib directory from gdb
10906 directory to toplevel directory.
10907
5fb651f2
JB
109082020-01-01 Joel Brobecker <brobecker@adacore.com>
10909
10910 * copyright.py (main): Exit if run from the wrong directory.
10911
5dd8bf88
JB
109122020-01-01 Joel Brobecker <brobecker@adacore.com>
10913
10914 * top.c (print_gdb_version): Change copyright year to 2020.
10915
9f71dacb 109162020-01-01 Joel Brobecker <brobecker@adacore.com>
3d34df0a 10917
9f71dacb 10918 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
3d34df0a 10919
9f71dacb 10920For older changes see ChangeLog-2019.
c906108c
SS
10921\f
10922Local Variables:
10923mode: change-log
10924left-margin: 8
10925fill-column: 74
10926version-control: never
57da7796 10927coding: utf-8
c906108c 10928End:
This page took 2.931555 seconds and 4 git commands to generate.