]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/ChangeLog
Use read_memory in ada_exception_message_1
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
15f3b077
TT
12020-07-08 Tom Tromey <tromey@adacore.com>
2
3 * ada-lang.c (ada_exception_message_1): Use read_memory.
4
9fc501fd
AB
52020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6
7 PR python/22748
8 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
9 special handling for inline frames.
10 * findvar.c (value_of_register_lazy): Skip inline frames when
11 creating lazy register values.
12 * frame.c (frame_id_computed_p): Delete definition.
13 * frame.h (frame_id_computed_p): Delete declaration.
14
64cb3757
AB
152020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
16
17 * NEWS: Mention additions to Python API.
18 * python/py-arch.c (archpy_register_groups): New function.
19 (arch_object_methods): Add 'register_groups' method.
20 * python/py-registers.c (reggroup_iterator_object): New struct.
21 (reggroup_object): New struct.
22 (gdbpy_new_reggroup): New function.
23 (gdbpy_reggroup_to_string): New function.
24 (gdbpy_reggroup_name): New function.
25 (gdbpy_reggroup_iter): New function.
26 (gdbpy_reggroup_iter_next): New function.
27 (gdbpy_new_reggroup_iterator): New function
28 (gdbpy_initialize_registers): Register new types.
29 (reggroup_iterator_object_type): Define new Python type.
30 (gdbpy_reggroup_getset): New static global.
31 (reggroup_object_type): Define new Python type.
32 * python/python-internal.h
33
0f767f94
AB
342020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
35
36 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
37 * python/py-arch.c (archpy_registers): New function.
38 (arch_object_methods): Add 'registers' method.
39 * python/py-registers.c: New file.
40 * python/python-internal.h
41 (gdbpy_new_register_descriptor_iterator): Declare.
42 (gdbpy_initialize_registers): Declare.
43 * python/python.c (do_start_initialization): Call
44 gdbpy_initialize_registers.
45 * NEWS: Mention additions to the Python API.
46
87dbc774
AB
472020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
48
49 * NEWS: Mention new Python API method.
50 * python/py-unwind.c (pending_framepy_architecture): New function.
51 (pending_frame_object_methods): Add architecture method.
52
3bc98c0c
AB
532020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
54
55 * gdbarch.c: Regenerate.
56 * gdbarch.h: Regenerate.
57 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
58 (gdbarch_data): Use internal_error for the case where
59 deprecated_set_gdbarch_data was originally needed.
60 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
61 and use passed in obstack.
62 (libunwind_frame_set_descr): Should no longer get back NULL from
63 gdbarch_data.
64 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
65 type.
66 * user-regs.c (user_regs_init): Update parameters, and use passed
67 in obstack.
68 (user_reg_add): Should no longer get back NULL from gdbarch_data.
69 (_initialize_user_regs): Register as a pre-init gdbarch data type.
70
d8cc8af6
TV
712020-07-06 Tom de Vries <tdevries@suse.de>
72
73 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
74 End-Of-Sequence in lte_is_less_than.
75 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
76 "gdb: Don't reorder line table entries too much when sorting".
77
947f7597
TV
782020-07-06 Tom de Vries <tdevries@suse.de>
79
80 PR tui/26205
81 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
82
1e7c1b22
TV
832020-07-05 Tom de Vries <tdevries@suse.de>
84
85 PR build/26187
86 * inferior.h (struct infcall_suspend_state_deleter): If available, use
87 std::uncaught_exceptions instead of deprecated
88 std::uncaught_exception.
89
a36158ec
SM
902020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
91
92 * macroexp.h (macro_stringify): Return
93 gdb::unique_xmalloc_ptr<char>.
94 * macroexp.c (macro_stringify): Likewise.
95 * macrotab.c (fixup_definition): Update.
96
14d960c8
SM
972020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
98
99 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
100 (lex_one_token): Update.
101 * macroexp.c (struct macro_buffer) <release>: Return
102 gdb::unique_xmalloc_ptr<char>.
103 (macro_stringify): Update.
104 (macro_expand): Update.
105 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
106 * macroexp.h (macro_expand_next): Likewise.
107
211d5b1c
SM
1082020-07-02 Simon Marchi <simon.marchi@efficios.com>
109
110 * macroexp.h (macro_lookup_ftype): Remove.
111 (macro_expand, macro_expand_once, macro_expand_next): Remove
112 lookup function parameters, add scope parameter.
113 * macroexp.c (scan, substitute_args, expand, maybe_expand,
114 macro_expand, macro_expand_once, macro_expand_next): Likewise.
115 * macroscope.h (standard_macro_lookup): Change parameter type
116 to macro_scope.
117 * macroscope.c (standard_macro_lookup): Likewise.
118 * c-exp.y (lex_one_token): Update.
119 * macrocmd.c (macro_expand_command): Likewise.
120 (macro_expand_once_command): Likewise.
121
b1a35af2
SM
1222020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
123
124 * inf-loop.c (inferior_event_handler): Remove client_data param.
125 * inf-loop.h (inferior_event_handler): Likewise.
126 * infcmd.c (step_1): Adjust.
127 * infrun.c (proceed): Adjust.
128 (fetch_inferior_event): Remove client_data param.
129 (infrun_async_inferior_event_handler): Adjust.
130 * infrun.h (fetch_inferior_event): Remove `void *` param.
131 * linux-nat.c (handle_target_event): Adjust.
132 * record-btrace.c (record_btrace_handle_async_inferior_event):
133 Adjust.
134 * record-full.c (record_full_async_inferior_event_handler):
135 Adjust.
136 * remote.c (remote_async_inferior_event_handler): Adjust.
137
1cdf9e33
TT
1382020-07-01 Tom Tromey <tom@tromey.com>
139
140 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
141 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
142
32c1e210
TT
1432020-07-01 Tom Tromey <tom@tromey.com>
144
145 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
146 tui_gen_win_info.
147 (tui_win_info::make_window): Merge with
148 tui_gen_win_info::make_window.
149 (tui_win_info::make_visible): Move from tui_gen_win_info.
150 * tui/tui-win.c (tui_win_info::max_width): Move from
151 tui_gen_win_info.
152 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
153 type.
154 <window_factory>: Likewise.
155 * tui/tui-layout.c (tui_win_info::resize): Move from
156 tui_gen_win_info.
157 (make_standard_window): Change return type.
158 (get_locator_window, tui_get_window_by_name): Likewise.
159 (tui_layout_window::apply): Remove a cast.
160 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
161 (struct tui_win_info): Merge with tui_gen_win_info.
162 (struct tui_gen_win_info): Remove.
163
a30cb6da
TT
1642020-07-01 Tom Tromey <tom@tromey.com>
165
166 * tui/tui-stack.h (struct tui_locator_window): Derive from
167 tui_win_info.
168 <do_scroll_horizontal, do_scroll_vertical>: New methods.
169 <can_box>: New method.
170
1eb2161f
TT
1712020-07-01 Tom Tromey <tom@tromey.com>
172
173 * tui/tui-stack.h (struct tui_locator_window): Remove body.
174
7134f2eb
TT
1752020-07-01 Tom Tromey <tom@tromey.com>
176
177 * tui/tui-regs.c (tui_data_window::display_registers_from)
178 (tui_data_window::display_registers_from)
179 (tui_data_window::first_data_item_displayed)
180 (tui_data_window::delete_data_content_windows): Update.
181 (tui_data_window::refresh_window, tui_data_window::no_refresh):
182 Remove.
183 (tui_data_window::check_register_values): Update.
184 (tui_data_item_window::rerender): Add parameters. Update.
185 (tui_data_item_window::refresh_window): Remove.
186 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
187 virtual.
188 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
189 tui_gen_win_info.
190 <refresh_window, max_height, min_height>: Remove.
191 <rerender>: Add parameters.
192 <x, y, visible>: New members.
193 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
194 <m_item_width>: New member.
195
22b7b041
TT
1962020-07-01 Tom Tromey <tom@tromey.com>
197
198 * tui/tui-regs.c (tui_data_window::show_register_group)
199 (tui_data_window::check_register_values): Update.
200 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
201 from item_no.
202
c9753adb
TT
2032020-07-01 Tom Tromey <tom@tromey.com>
204
205 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
206 useless "if".
207
9ab26b4a
TT
2082020-07-01 Tom Tromey <tom@tromey.com>
209
210 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
211 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
212
e555083f
TT
2132020-07-01 Tom Tromey <tom@tromey.com>
214
215 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
216 * tui/tui-winsource.h (enum tui_line_or_address_kind)
217 (struct tui_line_or_address): Move from tui-data.h.
218 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
219 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
220 (tui_cmd_window, tui_source_window_base, tui_source_window)
221 (tui_disasm_window): Don't declare.
222 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
223 to tui-winsource.h.
224 (SINGLE_KEY): Move to tui-stack.c.
225
7a02bab7
TT
2262020-07-01 Tom Tromey <tom@tromey.com>
227
228 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
229 std::string.
230 * tui/tui-regs.c (class tab_expansion_file): New.
231 (tab_expansion_file::write): New method.
232 (tui_register_format): Change return type. Use
233 tab_expansion_file.
234 (tui_get_register, tui_data_window::display_registers_from)
235 (tui_data_item_window::rerender): Update.
236 * tui/tui-io.h (tui_expand_tabs): Don't declare.
237 * tui/tui-io.c (tui_expand_tabs): Remove.
238
ea68593b
TT
2392020-07-01 Tom Tromey <tom@tromey.com>
240
241 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
242
a8caed5d
FS
2432020-07-01 Fangrui Song <maskray@google.com>
244
245 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
246
9cdf9820
AKS
2472020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
248
249 * dwarf2/read.c (set_die_type): Removed conditions to restrict
250 forms for DW_AT_associated and DW_AT_allocated attributes,
251 which is already checked in function attr_to_dynamic_prop.
252
a1520ad8
TT
2532020-06-30 Tom Tromey <tromey@adacore.com>
254
255 * dwarf2/read.c (quirk_rust_enum): Correctly call
256 alloc_rust_variant for default-less enum.
257
5ac58899
TT
2582020-06-30 Tom Tromey <tromey@adacore.com>
259
260 PR build/26183:
261 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
262 gdb::to_string.
263
19b187a9
SM
2642020-06-29 Simon Marchi <simon.marchi@efficios.com>
265
266 * gdbarch.sh (displaced_step_copy_insn): Update doc.
267 * gdbarch.h: Re-generate.
268
cd4c4c07
TT
2692020-06-28 Tom Tromey <tom@tromey.com>
270
271 * command.h (cmd_types): Remove.
272 (cmd_type): Don't declare.
273 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
274 typedef.
275 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
276 * cli/cli-decode.c (cmd_type): Remove.
277
05779d57
PA
2782020-06-27 Pedro Alves <palves@redhat.com>
279
280 * fork-child.c (prefork_hook): Adjust.
281 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
282 Delete.
283 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
284 * inferior.c (inferior::set_tty, inferior::tty): New methods.
285 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
286 Remove declarations.
287 (struct inferior) <set_tty, tty>: New methods.
288 (struct inferior) <terminal>: Rename to ...
289 (struct inferior) <m_terminal>: ... this and make private.
290 * main.c (captured_main_1): Adjust.
291 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
292 (mi_cmd_inferior_tty_show): Adjust.
293 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
294 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
295
1776e3e5
NA
2962020-06-26 Nick Alcock <nick.alcock@oracle.com>
297
298 * configure.ac: Add --enable-libctf: handle --disable-static
299 properly.
300 * acinclude.m4: sinclude ../config/enable.m4.
301 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
302 (LIBCTF): Substitute in.
303 (CTF_DEPS): New, likewise.
304 (CLIBS): libctf needs symbols from libbfd: move earlier.
305 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
306 flags.
307 * ctfread.c: Surround in ENABLE_LIBCTF.
308 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
309 * configure: Regenerate.
310 * config.in: Likewise.
311
58373b80
SM
3122020-06-25 Simon Marchi <simon.marchi@efficios.com>
313
314 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
315
277474ee
SM
3162020-06-25 Simon Marchi <simon.marchi@efficios.com>
317
318 * inferior.h (struct inferior) <terminal>: Change type to
319 gdb::unique_xmalloc_ptr<char>.
320 * inferior.c (inferior::~inferior): Don't free inf->terminal.
321 * infcmd.c (set_inferior_io_terminal): Don't free terminal
322 field, adjust to unique pointer.
323 (get_inferior_io_terminal): Adjust to unique pointer.
324
6d74da72
AB
3252020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
326
327 * riscv-tdep.c (riscv_print_registers_info): Loop over all
328 registers, not just the known core set of registers.
329
2e52d038
AB
3302020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
331
332 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
333 fflags, frm, and fcsr registers.
334 (riscv_register_reggroup_p): Remove unknown CSRs from save and
335 restore groups.
336 (riscv_tdesc_unknown_reg): New function.
337 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
338 tdesc_use_registers.
339 * riscv-tdep.h (struct gdbarch_tdep): Add
340 unknown_csrs_first_regnum, unknown_csrs_count,
341 duplicate_fflags_regnum, duplicate_frm_regnum, and
342 duplicate_fcsr_regnum fields.
343
be64fd07
AB
3442020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
345
346 * target-descriptions.c (tdesc_use_registers): Add new parameter a
347 callback, use the callback (when not null) to help number unknown
348 registers.
349 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
350 (tdesc_use_registers): Add extra parameter to declaration.
351
3b9fce96
AB
3522020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
353
354 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
355 in the file.
356 (class riscv_pending_register_alias): Likewise.
357 (riscv_register_feature::register_info): Change 'required_p' field
358 to 'required', and change its type. Add 'check' member function.
359 (riscv_register_feature::register_info::check): Define new member
360 function.
361 (riscv_xreg_feature): Change initialisation of 'required' field.
362 (riscv_freg_feature): Likewise.
363 (riscv_virtual_feature): Likewise.
364 (riscv_csr_feature): Likewise.
365 (riscv_check_tdesc_feature): Take extra parameter, the csr
366 tdesc_feature, rewrite the function to use the new
367 riscv_register_feature::register_info::check function.
368 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
369
865bad26
AB
3702020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
371
372 * features/Makefile: Remove all references to the deleted files
373 below.
374 * features/riscv/32bit-csr.c: Deleted.
375 * features/riscv/32bit-csr.xml: Deleted.
376 * features/riscv/64bit-csr.c: Deleted.
377 * features/riscv/64bit-csr.xml: Deleted.
378 * features/riscv/rebuild-csr-xml.sh: Deleted.
379
ed69cbc8
AB
3802020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
381
382 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
383 whitespace error for declaration of names member variable.
384 (struct riscv_register_feature): Add new prefer_first_name member
385 variable, and fix whitespace error in declaration of registers.
386 (riscv_xreg_feature): Initialize prefer_first_name field.
387 (riscv_freg_feature): Likewise.
388 (riscv_virtual_feature): Likewise.
389 (riscv_csr_feature): Likewise.
390 (riscv_register_name): Expand on comments. Remove register name
391 modifications for CSR and virtual registers.
392
4445e8f5
AB
3932020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
394
395 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
396 errors.
397
767a879e
AB
3982020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
399
400 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
401 riscv-opc.h.
402 (class riscv_pending_register_alias): New class.
403 (riscv_check_tdesc_feature): Take vector of pending aliases and
404 populate it as appropriate.
405 (riscv_setup_register_aliases): Delete.
406 (riscv_gdbarch_init): Create vector of pending aliases and pass it
407 to riscv_check_tdesc_feature in all cases. Use the vector to
408 create the register aliases.
409
bb6e55f3
RO
4102020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
411
412 * sol2-tdep.c (sol2_static_transform_name): Remove.
413 (sol2_init_abi): Don't register it.
414 * gdbarch.sh (static_transform_name): Remove.
415 * gdbarch.c, gdbarch.h: Regenerate.
416
417 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
418 gdbarch_static_transform_name.
419 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
420 * stabsread.c (define_symbol) <'X'>: Remove.
421 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
422 handling.
423 <'V'>: Likewise.
424 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
425 <'S'>: Remove call to gdbarch_static_transform_name.
426
c6d36836
RO
4272020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
428
429 * procfs.c (procfs_pre_trace): New function.
430 (procfs_target::create_inferior): Pass it to fork_inferior.
431
a7e6196b
RO
4322020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
433
434 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
435 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
436 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
437 sol2-tdep.o, sparc-sol2-tdep.o.
438 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
439 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
440 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
441 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
442
d412e696
RO
4432020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
444
445 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
446 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
447 Call sol2_init_abi.
448 Remove calls to set_gdbarch_skip_solib_resolver,
449 set_gdbarch_core_pid_to_str.
450 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
451 (i386_sol2_static_transform_name): Remove.
452 (i386_sol2_init_abi): Call sol2_init_abi.
453 Remove calls to set_gdbarch_sofun_address_maybe_missing,
454 set_gdbarch_static_transform_name,
455 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
456 Use sol2_sigtramp_p.
457 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
458 (sol2_sigtramp_p): New function.
459 (sol2_static_transform_name): New function.
460 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
461 (sol2_init_abi): New function.
462 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
463 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
464 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
465 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
466 (sparc_sol2_static_transform_name): Remove.
467 (sparc32_sol2_init_abi): Call sol2_init_abi.
468 Remove calls to set_gdbarch_sofun_address_maybe_missing,
469 set_gdbarch_static_transform_name,
470 set_gdbarch_skip_solib_resolver,
471 set_gdbarch_core_pid_to_str.
472 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
473 (sparc_sol2_static_transform_name): Remove
474 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
475 call sol2_sigtramp_p.
476 (sparc64_sol2_init_abi): Call sol2_init_abi.
477 Remove calls to set_gdbarch_sofun_address_maybe_missing,
478 set_gdbarch_static_transform_name,
479 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
480
a8654e7d
PW
4812020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
482
483 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
484 * exec.c (validate_exec_file): If from_tty, set both
485 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
486 * symfile.c (symbol_file_add_with_addrs): if always_confirm
487 and from_tty, unconditionally ask a confirmation.
488
caa7fd04
AB
4892020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
490
491 * target-descriptions.c (tdesc_architecture_name): Protect against
492 NULL pointer dereference.
493 (maint_print_xml_tdesc_cmd): New function.
494 (_initialize_target_descriptions): Register new 'maint print
495 xml-tdesc' command and give it the filename completer.
496 * NEWS: Mention new 'maint print xml-tdesc' command.
497
fbf42f4e
AB
4982020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
499
500 * target-descriptions.c (class tdesc_compatible_info): New class.
501 (struct target_desc): Change type of compatible vector.
502 (tdesc_compatible_p): Update for change in type of
503 target_desc::compatible.
504 (tdesc_compatible_info_list): New function.
505 (tdesc_compatible_info_arch_name): New function.
506 (tdesc_add_compatible): Update for change in type of
507 target_desc::compatible.
508 (print_c_tdesc::visit_pre): Likewise.
509
20821f4e
AB
5102020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
511
512 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
513 whitespace to underscore.
514 (maint_print_c_tdesc_cmd): Use fake filename for target
515 descriptions that came from the target.
516 (_initialize_target_descriptions): Add filename command completion
517 for 'maint print c-tdesc'.
518
1fb5ee62
SM
5192020-06-23 Simon Marchi <simon.marchi@efficios.com>
520
521 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
522 lines.
523
fc3ecb3e
SM
5242020-06-23 Simon Marchi <simon.marchi@efficios.com>
525
526 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
527 lines.
528 (dwarf2_find_location_expression): Likewise.
529 (call_site_parameter_matches): Likewise.
530 (dwarf2_compile_expr_to_ax): Likewise.
531 (disassemble_dwarf_expression): Likewise.
532 (loclist_describe_location): Likewise.
533
236ef034
PA
5342020-06-23 Pedro Alves <palves@redhat.com>
535
536 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
537 progspace-and-thread.h. Include scoped-mock-context.h instead.
538 (register_to_value_test): Use scoped_mock_context.
539 * regcache.c: Include "scoped-mock-context.h".
540 (cooked_read_test): Don't error out if a target is already pushed.
541 Use scoped_mock_context. Adjust.
542 * scoped-mock-context.h: New file.
543
39e7ecca
AB
5442020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
545
546 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
547 initializer.
548 (ada_language::is_string_type_p): New member function.
549 * c-lang.c (c_language_data): Delete la_is_string_type_p
550 initializer.
551 (cplus_language_data): Likewise.
552 (asm_language_data): Likewise.
553 (minimal_language_data): Likewise.
554 * d-lang.c (d_language_data): Likewise.
555 * f-lang.c (f_is_string_type_p): Delete function, implementation
556 moved to f_language::is_string_type_p.
557 (f_language_data): Delete la_is_string_type_p initializer.
558 (f_language::is_string_type_p): New member function,
559 implementation from f_is_string_type_p.
560 * go-lang.c (go_is_string_type_p): Delete function, implementation
561 moved to go_language::is_string_type_p.
562 (go_language_data): Delete la_is_string_type_p initializer.
563 (go_language::is_string_type_p): New member function,
564 implementation from go_is_string_type_p.
565 * language.c (language_defn::is_string_type_p): Define new member
566 function.
567 (default_is_string_type_p): Make static, add comment copied from
568 header file.
569 (unknown_language_data): Delete la_is_string_type_p initializer.
570 (unknown_language::is_string_type_p): New member function.
571 (auto_language_data): Delete la_is_string_type_p initializer.
572 (auto_language::is_string_type_p): New member function.
573 * language.h (language_data): Delete la_is_string_type_p field.
574 (language_defn::is_string_type_p): Declare new function.
575 (default_is_string_type_p): Delete desclaration, move comment to
576 definition.
577 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
578 moved to m2_language::is_string_type_p.
579 (m2_language_data): Delete la_is_string_type_p initializer.
580 (m2_language::is_string_type_p): New member function,
581 implementation from m2_is_string_type_p.
582 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
583 initializer.
584 * opencl-lang.c (opencl_language_data): Likewise.
585 * p-lang.c (pascal_is_string_type_p): Delete function,
586 implementation moved to pascal_language::is_string_type_p.
587 (pascal_language_data): Delete la_is_string_type_p initializer.
588 (pascal_language::is_string_type_p): New member function,
589 implementation from pascal_is_string_type_p.
590 * rust-lang.c (rust_is_string_type_p): Delete function,
591 implementation moved to rust_language::is_string_type_p.
592 (rust_language_data): Delete la_is_string_type_p initializer.
593 (rust_language::is_string_type_p): New member function,
594 implementation from rust_is_string_type_p.
595 * valprint.c (val_print_scalar_or_string_type_p): Update call to
596 is_string_type_p.
597
4ffc13fb
AB
5982020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
599
600 * ada-lang.c (ada_language_data): Delete la_print_typedef
601 initializer.
602 (ada_language::print_typedef): New member function.
603 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
604 (cplus_language_data): Likewise.
605 (asm_language_data): Likewise.
606 (minimal_language_data): Likewise.
607 * d-lang.c (d_language_data): Likewise.
608 * f-lang.c (f_language_data): Likewise.
609 (f_language::print_typedef): New member function.
610 * go-lang.c (go_language_data): Delete la_print_typedef
611 initializer.
612 * language.c (language_defn::print_typedef): Define member
613 function.
614 (unknown_language_data): Delete la_print_typedef initializer.
615 (unknown_language::print_typedef): New member function.
616 (auto_language_data): Delete la_print_typedef initializer.
617 (auto_language::print_typedef): New member function.
618 * language.h (language_data): Delete la_print_typedef field.
619 (language_defn::print_typedef): Declare new member function.
620 (LA_PRINT_TYPEDEF): Update call to print_typedef.
621 (default_print_typedef): Delete declaration.
622 * m2-lang.c (m2_language_data): Delete la_print_typedef
623 initializer.
624 (m2_language::print_typedef): New member function.
625 * objc-lang.c (objc_language_data): Delete la_print_typedef
626 initializer.
627 * opencl-lang.c (opencl_language_data): Likewise.
628 * p-lang.c (pascal_language_data): Likewise.
629 (pascal_language::print_typedef): New member function.
630 * rust-lang.c (rust_print_typedef): Delete function,
631 implementation moved to rust_language::print_typedef.
632 (rust_language): Delete la_print_typedef initializer.
633 (rust_language::print_typedef): New member function,
634 implementation from rust_print_typedef.
635 * typeprint.c (default_print_typedef): Delete.
636
d711ee67
AB
6372020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
638
639 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
640 (ada_language::printstr): New member function.
641 * c-lang.c (c_language_data): Delete la_printstr initializer.
642 (cplus_language_data): Likewise.
643 (asm_language_data): Likewise.
644 (minimal_language_data): Likewise.
645 * d-lang.c (d_language_data): Likewise.
646 * f-lang.c (f_printstr): Rename to f_language::printstr.
647 (f_language_data): Delete la_printstr initializer.
648 (f_language::printstr): New member function, implementation from
649 f_printstr.
650 * go-lang.c (go_language_data): Delete la_printstr initializer.
651 * language.c (language_defn::printstr): Define new member
652 function.
653 (unk_lang_printstr): Delete.
654 (unknown_language_data): Delete la_printstr initializer.
655 (unknown_language::printstr): New member function.
656 (auto_language_data): Delete la_printstr initializer.
657 (auto_language::printstr): New member function.
658 * language.h (language_data): Delete la_printstr field.
659 (language_defn::printstr): Declare new member function.
660 (LA_PRINT_STRING): Update call to printstr.
661 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
662 (m2_language_data): Delete la_printstr initializer.
663 (m2_language::printstr): New member function, implementation from
664 m2_printstr.
665 * objc-lang.c (objc_language_data): Delete la_printstr
666 initializer.
667 * opencl-lang.c (opencl_language_data): Likewise.
668 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
669 (pascal_language_data): Delete la_printstr initializer.
670 (pascal_language::printstr): New member function, implementation
671 from pascal_printstr.
672 * p-lang.h (pascal_printstr): Delete declaration.
673 * rust-lang.c (rust_printstr): Update header comment.
674 (rust_language_data): Delete la_printstr initializer.
675 (rust_language::printstr): New member function.
676
52b50f2c
AB
6772020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
678
679 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
680 (ada_language::printchar): New member function.
681 * c-lang.c (c_language_data): Delete la_printchar initializer.
682 (cplus_language_data): Likewise.
683 (asm_language_data): Likewise.
684 (minimal_language_data): Likewise.
685 * d-lang.c (d_language_data): Likewise.
686 * f-lang.c (f_printchar): Rename to f_language::printchar.
687 (f_language_data): Delete la_printchar initializer.
688 (f_language::printchar): New member function, implementation from
689 f_printchar.
690 * go-lang.c (go_language_data): Delete la_printchar initializer.
691 * language.c (unk_lang_printchar): Delete.
692 (language_defn::printchar): Define new member function.
693 (unknown_language_data): Delete la_printchar initializer.
694 (unknown_language::printchar): New member function.
695 (auto_language_data): Delete la_printchar initializer.
696 (auto_language::printchar): New member function.
697 * language.h (language_data): Delete la_printchar field.
698 (language_defn::printchar): Declare new member function.
699 (LA_PRINT_CHAR): Update call to printchar.
700 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
701 (m2_language::printchar): New member function.
702 * objc-lang.c (objc_language_data): Delete la_printchar
703 initializer.
704 * opencl-lang.c (opencl_language_data): Likewise.
705 * p-lang.c (pascal_language_data): Delete la_printchar
706 initializer.
707 (pascal_language::printchar): New member function.
708 * rust-lang.c (rust_printchar): Rename to
709 rust_language::printchar.
710 (rust_language_data): Delete la_printchar initializer.
711 (rust_language::printchar): New member function, implementation
712 from rust_printchar.
713
ec8cec5b
AB
7142020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
715
716 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
717 (ada_language_data): Delete la_emitchar initializer.
718 (ada_language::emitchar): New member function, implementation from
719 emit_char.
720 * c-lang.c (c_language_data): Delete la_emitchar initializer.
721 (cplus_language_data): Likewise.
722 (asm_language_data): Likewise.
723 (minimal_language_data): Likewise.
724 * d-lang.c (d_language_data): Likewise.
725 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
726 (f_language_data): Delete la_emitchar initializer.
727 (f_language::emitchar): New member function, implementation from
728 f_emit_char.
729 * go-lang.c (go_language_data): Delete la_emitchar initializer.
730 * language.c (unk_lang_emit_char): Delete.
731 (language_defn::emitchar): New member function definition.
732 (unknown_language_data): Delete la_emitchar initializer.
733 (unknown_language::emitchar): New member function.
734 (auto_language_data): Delete la_emitchar initializer.
735 (auto_language::emitchar): New member function.
736 * language.h (language_data): Delete la_emitchar field.
737 (language_defn::emitchar): New member field declaration.
738 (LA_EMIT_CHAR): Update call to emitchar.
739 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
740 (m2_language_data): Delete la_emitchar initializer.
741 (m2_language::emitchar): New member function, implementation from
742 m2_emit_char.
743 * objc-lang.c (objc_language_data): Delete la_emitchar
744 initializer.
745 * opencl-lang.c (opencl_language_data): Likewise.
746 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
747 (pascal_language_data): Delete la_emitchar initializer.
748 (pascal_language::emitchar): New member function, implementation
749 from pascal_emit_char.
750 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
751 (rust_language_data): Delete la_emitchar initializer.
752 (rust_language::emitchar): New member function, implementation
753 from rust_emitchar.
754
1bf9c363
AB
7552020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
756
757 * ada-lang.c (resolve): Rename to ada_language::post_parser.
758 (ada_language_data): Delete la_post_parser initializer.
759 (ada_language::post_parser): New member function.
760 * c-lang.c (c_language_data): Delete la_post_parser initializer.
761 (cplus_language_data): Likewise.
762 (asm_language_data): Likewise.
763 (minimal_language_data): Likewise.
764 * d-lang.c (d_language_data): Likewise.
765 * f-lang.c (f_language_data): Likewise.
766 * go-lang.c (go_language_data): Likewise.
767 * language.c (unknown_language_data): Likewise.
768 (auto_language_data): Likewise.
769 * language.h (language_data): Delete la_post_parser field.
770 (language_defn::post_parser): New member function.
771 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
772 * objc-lang.c (objc_language_data): Likewise.
773 * opencl-lang.c (opencl_language_data): Likewise.
774 * p-lang.c (pascal_language_data): Likewise.
775 * parse.c (parse_exp_in_context): Update call to post_parser.
776 (null_post_parser): Delete definition.
777 * parser-defs.h (null_post_parser): Delete declaration.
778 * rust-lang.c (rust_language_data): Delete la_post_parser
779 initializer.
780
87afa652
AB
7812020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
782
783 * ada-lang.c (parse): Rename to ada_language::parser.
784 (ada_language_data): Delete la_parser initializer.
785 (ada_language::parser): New member function, implementation from
786 parse.
787 * c-lang.c (c_language_data): Delete la_parser initializer.
788 (cplus_language_data): Likewise.
789 (asm_language_data): Likewise.
790 (minimal_language_data): Likewise.
791 * d-lang.c (d_language_data): Likewise.
792 (d_language::parser): New member function.
793 * f-lang.c (f_language_data): Delete la_parser initializer.
794 (f_language::parser): New member function.
795 * go-lang.c (go_language_data): Delete la_parser initializer.
796 (go_language::parser): New member function.
797 * language.c (unk_lang_parser): Delete.
798 (language_defn::parser): Define new member function.
799 (unknown_language_data): Delete la_parser initializer.
800 (unknown_language::parser): New member function.
801 (auto_language_data): Delete la_parser initializer.
802 (auto_language::parser): New member function.
803 * language.h (language_data): Delete la_parser field.
804 (language_defn::parser): Declare new member function.
805 * m2-lang.c (m2_language_data): Delete la_parser initializer.
806 (m2_language::parser): New member function.
807 * objc-lang.c (objc_language_data): Delete la_parser initializer.
808 * opencl-lang.c (opencl_language_data): Likewise.
809 * p-lang.c (pascal_language_data): Likewise.
810 (pascal_language::parser): New member function.
811 * parse.c (parse_exp_in_context): Update call to parser.
812 * rust-lang.c (rust_language_data): Delete la_parser initializer.
813 (rust_language::parser): New member function.
814
37825800
AB
8152020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
816
817 * top.c (print_gdb_configuration): Print --with-python-libdir
818 configuration value.
819
5b860c93
PW
8202020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
821
822 * NEWS: Mention change to the alias command.
823
cf00cd6f
PW
8242020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
825
826 * cli/cli-cmds.c (lookup_cmd_for_default_args)
827 (alias_command_completer)
828 (make_alias_options_def_group): New functions.
829 (alias_opts, alias_option_defs): New struct and array.
830 (alias_usage_error): Update usage.
831 (alias_command): Handles optional DEFAULT-ARGS... arguments.
832 Use option framework.
833 (_initialize_cli_cmds): Update alias command help.
834 Update aliases command help.
835 (show_user):
836 Add NULL for new default_args lookup_cmd argument.
837 (valid_command_p): Rename to validate_aliased_command.
838 Add NULL for new default_args lookup_cmd argument. Verify that the
839 aliased_command has no default args.
840 * cli/cli-decode.c (help_cmd): Show aliases definitions.
841 (lookup_cmd_1, lookup_cmd): New argument default_args.
842 (add_alias_cmd):
843 Add NULL for new default_args lookup_cmd argument.
844 (print_help_for_command): Show default args under the layout
845 alias some_alias = some_aliased_cmd some_alias_default_arg.
846 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
847 xfree default_args in destructor.
848 * cli/cli-script.c (process_next_line, do_define_command):
849 Add NULL for new default_args lookup_cmd argument.
850 * command.h: Declare new default_args argument in lookup_cmd
851 and lookup_cmd_1.
852 * completer.c (complete_line_internal_1):
853 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
854 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
855 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
856 Likewise.
857 * infcmd.c (_initialize_infcmd): Likewise.
858 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
859 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
860 * python/py-param.c (add_setshow_generic): Likewise.
861 * remote.c (_initialize_remote): Likewise.
862 * top.c (execute_command): Prepend default_args if command has some.
863 (set_verbose):
864 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
865 * tracepoint.c (validate_actionline, encode_actions_1):
866 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
867
bd920864
TBA
8682020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
869
870 * jit.c (jit_read_descriptor): Use bool as the return type.
871 (jit_breakpoint_re_set_internal): Use bool as the return type.
872 Invert the return value logic; return true if the jit breakpoint
873 has been successfully initialized.
874 (jit_inferior_init): Update the call to
875 jit_breakpoint_re_set_internal.
876
f8098322
PA
8772020-06-22 Pedro Alves <palves@redhat.com>
878
879 PR gdb/25939
880 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
881 Use the current inferior instead. Don't return
882 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
883 wait again.
884 * sol-thread.c (sol_thread_target::wait): Don't reference
885 inferior_ptid.
886 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
887 (sol_update_thread_list_callback): Use the current inferior's pid
888 instead of inferior_ptid.
889
196535a6
RO
8902020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
891
892 * procfs.c: Cleanup many comments.
893
894 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
895 (AFTER_WATCHFLAG): Replace by value.
896
897 (MAIN_PROC_NAME_FORMAT): Inline ...
898 (create_procinfo): ... here.
899
900 (procfs_debug_inferior): Remove SYS_exec handling.
901 (syscall_is_exec): Likewise.
902 (procfs_set_exec_trap): Likewise.
903
904 (syscall_is_lwp_exit): Inline in callers.
905 (syscall_is_exit): Likewise.
906 (syscall_is_exec): Likewise.
907 (syscall_is_lwp_create): Likewise.
908
909 (invalidate_cache): Remove #if 0 code.
910
911 (make_signal_thread_runnable): Remove.
912 (procfs_target::resume): Remove #if 0 code.
913
cf6f3e86
RO
9142020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
915
916 PR gdb/25939
917 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
918 call ...
919 (procfs_target::create_inferior): ... here.
920
48e9cc84
PW
9212020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
922
923 * exec.c (validate_exec_file): Ensure the build-id is up to
924 date by calling reopen_exec_file (that checks file timestamp
925 to decide to re-read the file).
926
3922b302
PA
9272020-06-18 Pedro Alves <palves@redhat.com>
928
929 PR gdb/25412
930 * gdbthread.h (delete_thread, delete_thread_silent)
931 (find_thread_ptid): Update comments.
932 * thread.c (current_thread_): New global.
933 (is_current_thread): Move higher, and reimplement.
934 (inferior_thread): Reimplement.
935 (set_thread_exited): Use bool. Add assertions.
936 (add_thread_silent): Simplify thread-reuse handling by always
937 calling delete_thread.
938 (delete_thread): Remove intro comment.
939 (find_thread_ptid): Skip exited threads.
940 (switch_to_thread_no_regs): Write to current_thread_.
941 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
942 INFERIOR_PTID. Clear current_thread_.
943
6dbdab44
PA
9442020-06-18 Pedro Alves <palves@redhat.com>
945
946 * aix-thread.c (pd_update): Use switch_to_thread.
947
2da4b788
PA
9482020-06-18 Pedro Alves <palves@redhat.com>
949
950 * ravenscar-thread.c (ravenscar_thread_target): Update.
951 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
952 (ravenscar_thread_target::add_active_thread): ... this. Don't
953 set m_base_ptid here. Update to avoid referencing inferior_ptid.
954 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
955
50838d1b
PA
9562020-06-18 Pedro Alves <palves@redhat.com>
957
958 * nat/windows-nat.c (current_windows_thread): Remove.
959 * nat/windows-nat.h (current_windows_thread): Remove.
960 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
961 Adjust.
962 (display_selectors): Adjust to fetch the current
963 windows_thread_info based on inferior_ptid.
964 (fake_create_process): No longer write to current_windows_thread.
965 (windows_nat_target::get_windows_debug_event):
966 Don't set inferior_ptid or current_windows_thread.
967 (windows_nat_target::wait): Adjust to not rely on
968 current_windows_thread.
969 (do_initial_windows_stuff): Now a method of windows_nat_target.
970 Switch to the last_ptid thread.
971 (windows_nat_target::attach): Adjust.
972 (windows_nat_target::detach): Use switch_to_no_thread instead of
973 writing to inferior_ptid directly.
974 (windows_nat_target::create_inferior): Adjust.
975
31ce04e9
PA
9762020-06-18 Pedro Alves <palves@redhat.com>
977
978 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
979
1ee1a363
PA
9802020-06-18 Pedro Alves <palves@redhat.com>
981
982 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
983 after creating it, instead of writing to inferior_ptid. Don't
984 write to inferior_ptid.
985
6d350754
PA
9862020-06-18 Pedro Alves <palves@redhat.com>
987
988 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
989
5d971d48
PA
9902020-06-18 Pedro Alves <palves@redhat.com>
991
992 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
993 it, instead of writing to inferior_ptid.
994
86e57d1b
PA
9952020-06-18 Pedro Alves <palves@redhat.com>
996
997 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
998 to inferior_ptid.
999
f2e1c129
PA
10002020-06-18 Pedro Alves <palves@redhat.com>
1001
1002 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
1003 instead of writing to inferior_ptid directly.
1004
60db1b85
PA
10052020-06-18 Pedro Alves <palves@redhat.com>
1006
1007 * corelow.c (core_target::close): Use switch_to_no_thread instead
1008 of writing to inferior_ptid directly.
1009 (add_to_thread_list, core_target_open): Use switch_to_thread
1010 instead of writing to inferior_ptid directly.
1011
fe7d6a8d
PA
10122020-06-18 Pedro Alves <palves@redhat.com>
1013
1014 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
1015 inferior_ptid.
1016 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
1017 inferior_ptid.
1018 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
1019 inferior_ptid directly.
1020 (darwin_nat_target::init_thread_list): Switch to thread, instead
1021 of writing to inferior_ptid.
1022 (darwin_nat_target::attach): Don't write to inferior_ptid.
1023 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
1024
975f8708
PA
10252020-06-18 Pedro Alves <palves@redhat.com>
1026
1027 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
1028 thread.
1029 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
1030 Instead use switch_to_thread.
1031 (gnu_nat_target::detach): Use switch_to_no_thread
1032 instead of writing to inferior_ptid directly. Used passed-in
1033 inferior instead of looking up the inferior by pid.
1034
1a204730
PA
10352020-06-18 Pedro Alves <palves@redhat.com>
1036
1037 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
1038 inferior_ptid.
1039
ebe84f23
PA
10402020-06-18 Pedro Alves <palves@redhat.com>
1041
1042 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
1043 inferior_ptid.
1044 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
1045 thread.
1046 (nto_procfs_target::detach): Avoid referencing
1047 inferior_ptid. Use switch_to_no_thread instead of writing to
1048 inferior_ptid directly.
1049 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
1050 instead of writing to inferior_ptid directly.
1051 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
1052 to thread.
1053
191f02e5
PA
10542020-06-18 Pedro Alves <palves@redhat.com>
1055
1056 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
1057 after creating it, instead of writing to inferior_ptid.
1058 (gdbsim_target_open): Use switch_to_no_thread instead of writing
1059 to inferior_ptid directly.
1060 (gdbsim_target::wait): Don't write to inferior_ptid.
1061
0ac55310
PA
10622020-06-18 Pedro Alves <palves@redhat.com>
1063
1064 * remote.c (remote_target::remote_notice_new_inferior): Use
1065 switch_to_thread instead of writing to inferior_ptid directly.
1066 (remote_target::add_current_inferior_and_thread): Use
1067 switch_to_no_thread instead of writing to inferior_ptid directly.
1068 (extended_remote_target::attach): Use switch_to_inferior_no_thread
1069 and switch_to_thread instead of using set_current_inferior or
1070 writing to inferior_ptid directly.
1071
5233f39b
PA
10722020-06-18 Pedro Alves <palves@redhat.com>
1073
1074 * tracectf.c (ctf_target_open): Switch to added thread instead of
1075 writing to inferior_ptid directly.
1076 (ctf_target::close): Use switch_to_no_thread instead of writing to
1077 inferior_ptid directly.
1078
087e161b
PA
10792020-06-18 Pedro Alves <palves@redhat.com>
1080
1081 * tracefile-tfile.c (tfile_target_open): Don't write to
1082 inferior_ptid directly, instead switch to added thread.
1083 (tfile_target::close): Use switch_to_no_thread instead of writing
1084 to inferior_ptid directly.
1085
7fb43e53
PA
10862020-06-18 Pedro Alves <palves@redhat.com>
1087
1088 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
1089 (procfs_target::detach): Use switch_to_no_thread
1090 instead of writing to inferior_ptid directly.
1091 (do_attach): Change return type to void. Switch to the added
1092 thread.
1093 (procfs_target::create_inferior): Switch to the added thread.
1094 (procfs_do_thread_registers): Don't write to inferior_ptid.
1095
18493a00
PA
10962020-06-18 Pedro Alves <palves@redhat.com>
1097
1098 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
1099 of writing to inferior_ptid.
1100 (scoped_restore_exited_inferior): Delete.
1101 (handle_vfork_child_exec_or_exit): Simplify using
1102 scoped_restore_current_pspace_and_thread. Use switch_to_thread
1103 instead of writing to inferior_ptid.
1104 (THREAD_STOPPED_BY): Delete.
1105 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
1106 (thread_stopped_by_hw_breakpoint): Delete.
1107 (save_waitstatus): Use
1108 scoped_restore_current_thread+switch_to_thread, and call
1109 target_stopped_by_watchpoint instead of
1110 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
1111 instead of thread_stopped_by_sw_breakpoint, and
1112 target_stopped_by_hw_breakpoint instead of
1113 thread_stopped_by_hw_breakpoint.
1114 (handle_inferior_event)
1115 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
1116 inferior_ptid directly, nor
1117 set_current_inferior/set_current_program_space. Use
1118 switch_to_thread / switch_to_inferior_no_thread instead.
1119
a0776b13
PA
11202020-06-18 Pedro Alves <palves@redhat.com>
1121
1122 * target.c (generic_mourn_inferior): Use switch_to_no_thread
1123 instead of writing to inferior_ptid.
1124
6155c136
PA
11252020-06-18 Pedro Alves <palves@redhat.com>
1126
1127 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
1128 added thread.
1129 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
1130 to the added thread.
1131 (inf_ptrace_target::detach_success): Use switch_to_no_thread
1132 instead of writing to inferior_ptid.
1133
c5316fc6
PA
11342020-06-18 Pedro Alves <palves@redhat.com>
1135
1136 * gdbarch-selftests.c: Include "progspace-and-thread.h".
1137 (register_to_value_test): Mock a program_space too. Heap-allocate
1138 the address space. Don't write to inferior_ptid. Use
1139 switch_to_thread instead.
1140
8df01799
PA
11412020-06-18 Pedro Alves <palves@redhat.com>
1142
1143 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
1144 Delete.
1145 (find_signalled_thread()): New, factored out from
1146 linux_make_corefile_notes and adjusted to handle exited threads.
1147 (linux_make_corefile_notes): Adjust to use the new
1148 find_signalled_thread.
1149
41792d68
PA
11502020-06-18 Pedro Alves <palves@redhat.com>
1151
1152 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
1153 of saving/restoring inferior_ptid.
1154
612f258a
TT
11552020-06-17 Tom Tromey <tom@tromey.com>
1156
1157 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
1158 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
1159 declare.
1160 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
1161
efb763a5
SM
11622020-06-15 Simon Marchi <simon.marchi@efficios.com>
1163
1164 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
1165 of partial symtabs.
1166
2951f6c0
SM
11672020-06-17 Simon Marchi <simon.marchi@efficios.com>
1168
1169 * regformats/reg-arm.dat: Remove.
1170 * regformats/reg-bfin.dat: Remove.
1171 * regformats/reg-cris.dat: Remove.
1172 * regformats/reg-crisv32.dat: Remove.
1173 * regformats/reg-m32r.dat: Remove.
1174 * regformats/reg-tilegx.dat: Remove.
1175 * regformats/reg-tilegx32.dat: Remove.
1176
7d458ea5
SM
11772020-06-17 Simon Marchi <simon.marchi@efficios.com>
1178
1179 * features/Makefile (WHICH): Remove arm files.
1180 * regformats/arm/arm-with-iwmmxt.dat: Remove.
1181 * regformats/arm/arm-with-neon.dat: Remove.
1182 * regformats/arm/arm-with-vfpv2.dat: Remove.
1183 * regformats/arm/arm-with-vfpv3.dat: Remove.
1184
3af96c0d
SM
11852020-06-17 Simon Marchi <simon.marchi@efficios.com>
1186
1187 * features/Makefile (XMLTOC): Remove rx.xml.
1188
b25e22fd
PA
11892020-06-17 Pedro Alves <palves@redhat.com>
1190
1191 * gdbthread.h (thread_control_state) <trap_expected> Update
1192 comments.
1193
a78a19b1
AB
11942020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1195
1196 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
1197 ada_language::lookup_symbol_nonlocal.
1198 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
1199 (ada_language::lookup_symbol_nonlocal): New member function,
1200 implementation from ada_lookup_symbol_nonlocal.
1201 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
1202 initializer.
1203 (cplus_language_data): Delete la_lookup_symbol_nonlocal
1204 initializer.
1205 (cplus_language::lookup_symbol_nonlocal): New member function.
1206 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
1207 (minimal_language_data) Likewise.
1208 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
1209 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
1210 initializer.
1211 (d_language::lookup_symbol_nonlocal): New member function.
1212 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
1213 initializer.
1214 (f_language::lookup_symbol_nonlocal): New member function.
1215 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
1216 initializer.
1217 * language.c (unknown_language_data): Likewise.
1218 (auto_language_data): Likewise.
1219 * language.h (language_data): Delete la_lookup_symbol_nonlocal
1220 field.
1221 (language_defn::lookup_symbol_nonlocal): New member function.
1222 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
1223 initializer.
1224 * objc-lang.c (objc_language_data): Likewise.
1225 * opencl-lang.c (opencl_language_data): Likewise.
1226 * p-lang.c (pascal_language_data): Likewise.
1227 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
1228 rust_language::lookup_symbol_nonlocal.
1229 (rust_language_data): Delete la_lookup_symbol_nonlocal
1230 initializer.
1231 (rust_language::lookup_symbol_nonlocal): New member function,
1232 implementation from rust_lookup_symbol_nonlocal.
1233 * symtab.c (lookup_symbol_aux): Update call to
1234 lookup_symbol_nonlocal.
1235 (basic_lookup_symbol_nonlocal): Rename to...
1236 (language_defn::lookup_symbol_nonlocal): ...this, and update
1237 header comment. Remove language_defn parameter, and replace with
1238 uses of `this'.
1239 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
1240
ebe2334e
AB
12412020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1242
1243 * ada-lang.c (ada_language_data): Delete la_value_print_inner
1244 initializer.
1245 (ada_language::value_print_inner): New member function.
1246 * c-lang.c (c_language_data): Delete la_value_print_inner
1247 initializer.
1248 (cplus_language_data): Likewise.
1249 (asm_language_data): Likewise.
1250 (minimal_language_data): Likewise.
1251 * d-lang.c (d_language_data): Likewise.
1252 (d_language::value_print_inner): New member function.
1253 * f-lang.c (f_language_data): Delete la_value_print_inner
1254 initializer.
1255 (f_language::value_print_inner): New member function.
1256 * f-lang.h (f_value_print_innner): Rename to...
1257 (f_value_print_inner): ...this (note spelling of 'inner').
1258 * f-valprint.c (f_value_print_innner): Rename to...
1259 (f_value_print_inner): ...this (note spelling of 'inner').
1260 * go-lang.c (go_language_data): Delete la_value_print_inner
1261 initializer.
1262 (go_language::value_print_inner): New member function.
1263 * language.c (language_defn::value_print_inner): Define new member
1264 function.
1265 (unk_lang_value_print_inner): Delete.
1266 (unknown_language_data): Delete la_value_print_inner initializer.
1267 (unknown_language::value_print_inner): New member function.
1268 (auto_language_data): Delete la_value_print_inner initializer.
1269 (auto_language::value_print_inner): New member function.
1270 * language.h (language_data): Delete la_value_print_inner field.
1271 (language_defn::value_print_inner): Delcare new member function.
1272 * m2-lang.c (m2_language_data): Delete la_value_print_inner
1273 initializer.
1274 (m2_language::value_print_inner): New member function.
1275 * objc-lang.c (objc_language_data): Delete la_value_print_inner
1276 initializer.
1277 * opencl-lang.c (opencl_language_data): Likewise.
1278 * p-lang.c (pascal_language_data): Likewise.
1279 (pascal_language::value_print_inner): New member function.
1280 * rust-lang.c (rust_language_data): Delete la_value_print_inner
1281 initializer.
1282 (rust_language::value_print_inner): New member function.
1283 * valprint.c (do_val_print): Update call to value_print_inner.
1284
a1d1fa3e
AB
12852020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1286
1287 * ada-lang.c (ada_language_data): Delete la_value_print
1288 initializer.
1289 (ada_language::value_print): New member function.
1290 * c-lang.c (c_language_data): Delete la_value_print initializer.
1291 (cplus_language_data): Likewise.
1292 (asm_language_data): Likewise.
1293 (minimal_language_data): Likewise.
1294 * d-lang.c (d_language_data): Likewise.
1295 * f-lang.c (f_language_data): Likewise.
1296 * go-lang.c (go_language_data): Likewise.
1297 * language.c (unk_lang_value_print): Delete.
1298 (language_defn::value_print): Define new member function.
1299 (unknown_language_data): Delete la_value_print initializer.
1300 (unknown_language::value_print): New member function.
1301 (auto_language_data): Delete la_value_print initializer.
1302 (auto_language::value_print): New member function.
1303 * language.h (language_data): Delete la_value_print field.
1304 (language_defn::value_print): Declare new member function.
1305 (LA_VALUE_PRINT): Update call to value_print.
1306 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
1307 * objc-lang.c (objc_language_data): Likewise.
1308 * opencl-lang.c (opencl_language_data): Likewise.
1309 * p-lang.c (pascal_language_data): Likewise.
1310 (pascal_language::value_print): New member function.
1311 * rust-lang.c (rust_language_data): Delete la_value_print
1312 initializer.
1313
f16a9f57
AB
13142020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1315
1316 * ada-lang.c (ada_watch_location_expression): Rename to
1317 ada_language::watch_location_expression.
1318 (ada_language_data): Delete la_watch_location_expression
1319 initializer.
1320 (ada_language::watch_location_expression): New member function,
1321 implementation from ada_watch_location_expression.
1322 * breakpoint.c (watch_command_1): Update call to
1323 watch_location_expression.
1324 * c-lang.c (c_watch_location_expression): Rename to
1325 language_defn::watch_location_expression.
1326 (c_language_data): Delete la_watch_location_expression
1327 initializer.
1328 (cplus_language_data): Likewise.
1329 (asm_language_data): Likewise.
1330 (minimal_language_data): Likewise.
1331 * c-lang.h (c_watch_location_expression): Delete declaration.
1332 * d-lang.c (d_language_data): Delete la_watch_location_expression
1333 initializer.
1334 * f-lang.c (f_language_data): Likewise.
1335 * go-lang.c (go_language_data): Likewise.
1336 * language.c (language_defn::watch_location_expression): Member
1337 function implementation from c_watch_location_expression.
1338 (unknown_language_data): Delete la_watch_location_expression
1339 initializer.
1340 (auto_language_data): Likewise.
1341 * language.h (language_data): Delete la_watch_location_expression
1342 field.
1343 (language_defn::watch_location_expression): Declare new member
1344 function.
1345 * m2-lang.c (m2_language_data): Delete
1346 la_watch_location_expression initializer.
1347 * objc-lang.c (objc_language_data): Likewise.
1348 * opencl-lang.c (opencl_language_data): Likewise.
1349 * p-lang.c (pascal_language_data): Likewise.
1350 * rust-lang.c (rust_watch_location_expression): Rename to
1351 rust_language::watch_location_expression.
1352 (rust_language_data): Delete la_watch_location_expression
1353 initializer.
1354 (rust_language::watch_location_expression): New member function,
1355 implementation from rust_watch_location_expression.
1356
7e56227d
AB
13572020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1358
1359 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
1360 ada_language::collect_symbol_completion_matches.
1361 (ada_language_data): Delete la_collect_symbol_completion_matches
1362 initializer.
1363 (ada_language::collect_symbol_completion_matches): New member
1364 function, implementation from
1365 ada_collect_symbol_completion_matches.
1366 * c-lang.c (c_language_data): Delete
1367 la_collect_symbol_completion_matches initializer.
1368 (cplus_language_data): Likewise.
1369 (asm_language_data): Likewise.
1370 (minimal_language_data): Likewise.
1371 * d-lang.c (d_language_data): Likewise.
1372 * f-lang.c (f_collect_symbol_completion_matches): Rename to
1373 f_language::collect_symbol_completion_matches.
1374 (f_language_data): Delete la_collect_symbol_completion_matches
1375 initializer.
1376 (f_language::collect_symbol_completion_matches) New member
1377 function, implementation from f_collect_symbol_completion_matches.
1378 * go-lang.c (go_language_data): Delete
1379 la_collect_symbol_completion_matches initializer.
1380 * language.c (unknown_language_data): Likewise.
1381 (auto_language_data): Likewise.
1382 * language.h (language_data): Delete
1383 la_collect_symbol_completion_matches field.
1384 (language_defn::collect_symbol_completion_matches): New member
1385 function.
1386 * m2-lang.c (m2_language_data): Delete
1387 la_collect_symbol_completion_matches initializer.
1388 * objc-lang.c (objc_language_data): Likewise.
1389 * opencl-lang.c (opencl_language_data): Likewise.
1390 * p-lang.c (pascal_language_data): Likewise.
1391 * rust-lang.c (rust_language_data): Likewise.
1392 * symtab.c (default_collect_symbol_completion_matches): Delete.
1393 (collect_symbol_completion_matches): Update call to
1394 collect_symbol_completion_matches.
1395 (collect_symbol_completion_matches_type): Likewise.
1396 * symtab.h (default_collect_symbol_completion_matches): Delete
1397 declaration.
1398
53fc67f8
AB
13992020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1400
1401 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
1402 (ada_language_data): Delete la_word_break_characters initializer.
1403 (ada_language::word_break_characters): New member function.
1404 * c-lang.c (c_language_data): Delete la_word_break_characters
1405 initializer.
1406 (cplus_language_data): Likewise.
1407 (asm_language_data): Likewise.
1408 (minimal_language_data): Likewise.
1409 * completer.c: Update global comment.
1410 (advance_to_expression_complete_word_point): Update call to
1411 word_break_characters.
1412 (complete_files_symbols): Likewise.
1413 (complete_line_internal_1): Likewise.
1414 (default_completer_handle_brkchars): Likewise.
1415 (skip_quoted_chars): Likewise.
1416 * d-lang.c (d_language_data): Delete la_word_break_characters
1417 initializer.
1418 * f-lang.c (f_word_break_characters): Delete.
1419 (f_language_data): Delete la_word_break_characters initializer.
1420 (f_language::word_break_characters): New member function.
1421 * go-lang.c (go_language_data): Delete la_word_break_characters
1422 initializer.
1423 * language.c (unknown_language_data): Likewise.
1424 (auto_language_data): Likewise.
1425 * language.h (default_word_break_characters): Move declaration to
1426 earlier in the file.
1427 (language_data): Delete la_word_break_characters field.
1428 (language_defn::word_break_characters): New member function.
1429 * m2-lang.c (m2_language_data): Delete la_word_break_characters
1430 initializer.
1431 * objc-lang.c (objc_language_data): Likewise.
1432 * opencl-lang.c (opencl_language_data): Likewise.
1433 * p-lang.c (pascal_language_data): Likewise.
1434 * rust-lang.c (rust_language_data): Likewise.
1435
c9debfb9
AB
14362020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1437
1438 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
1439 (ada_language_data): Delete la_get_symbol_name_matcher
1440 initializer.
1441 (language_defn::get_symbol_name_matcher_inner): New member
1442 function.
1443 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
1444 initializer.
1445 (cplus_language_data): Likewise.
1446 (cplus_language::get_symbol_name_matcher_inner): New member
1447 function.
1448 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
1449 (minimal_language_data): Likewise.
1450 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
1451 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
1452 initializer.
1453 * dictionary.c (iter_match_first_hashed): Update call to
1454 get_symbol_name_matcher.
1455 (iter_match_next_hashed): Likewise.
1456 (iter_match_next_linear): Likewise.
1457 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
1458 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
1459 initializer.
1460 (f_language::get_symbol_name_matcher_inner): New member function.
1461 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
1462 initializer.
1463 * language.c (default_symbol_name_matcher): Update header comment,
1464 make static.
1465 (language_defn::get_symbol_name_matcher): New definition.
1466 (language_defn::get_symbol_name_matcher_inner): Likewise.
1467 (get_symbol_name_matcher): Delete.
1468 (unknown_language_data): Delete la_get_symbol_name_matcher
1469 initializer.
1470 (auto_language_data): Likewise.
1471 * language.h (language_data): Delete la_get_symbol_name_matcher
1472 field.
1473 (language_defn::get_symbol_name_matcher): New member function.
1474 (language_defn::get_symbol_name_matcher_inner): Likewise.
1475 (default_symbol_name_matcher): Delete declaration.
1476 * linespec.c (find_methods): Update call to
1477 get_symbol_name_matcher.
1478 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
1479 initializer.
1480 * minsyms.c (lookup_minimal_symbol): Update call to
1481 get_symbol_name_matcher.
1482 (iterate_over_minimal_symbols): Likewise.
1483 * objc-lang.c (objc_language_data): Delete
1484 la_get_symbol_name_matcher initializer.
1485 * opencl-lang.c (opencl_language_data): Likewise.
1486 * p-lang.c (pascal_language_data): Likewise.
1487 * psymtab.c (psymbol_name_matches): Update call to
1488 get_symbol_name_matcher.
1489 * rust-lang.c (rust_language_data): Delete
1490 la_get_symbol_name_matcher initializer.
1491 * symtab.c (symbol_matches_search_name): Update call to
1492 get_symbol_name_matcher.
1493 (compare_symbol_name): Likewise.
1494
9a49ad8c
AB
14952020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1496
1497 * ada-lang.c (ada_language_data): Delete la_compute_program
1498 initializer.
1499 * c-lang.c (c_language_data): Likewise.
1500 (c_language::compute_program): New member function.
1501 (cplus_language_data): Delete la_compute_program initializer.
1502 (cplus_language::compute_program): New member function.
1503 (asm_language_data): Delete la_compute_program initializer.
1504 (minimal_language_data): Likewise.
1505 * c-lang.h (c_compute_program): Update comment.
1506 (cplus_compute_program): Likewise.
1507 * compile/compile-c-support.c (c_compute_program): Likewise.
1508 (cplus_compute_program): Likewise.
1509 * compile/compile.c (compile_to_object): Update call to
1510 la_compute_program.
1511 * d-lang.c (d_language_data): Delete la_compute_program
1512 initializer.
1513 * f-lang.c (f_language_data): Likewise.
1514 * go-lang.c (go_language_data): Likewise.
1515 * language.c (unknown_language_data): Likewise.
1516 (auto_language_data): Likewise.
1517 * language.h (language_data): Delete la_compute_program field.
1518 (language_defn::compute_program): New member function.
1519 * m2-lang.c (m2_language_data): Delete la_compute_program
1520 initializer.
1521 * objc-lang.c (objc_language_data): Likewise.
1522 * opencl-lang.c (opencl_language_data): Likewise.
1523 * p-lang.c (pascal_language_data): Likewise.
1524 * rust-lang.c (rust_language_data): Likewise.
1525
eff93b4d
AB
15262020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1527
1528 * ada-lang.c (ada_language_data) Delete
1529 la_class_name_from_physname initializer.
1530 * c-lang.c (c_language_data): Likewise.
1531 (cplus_language_data): Likewise.
1532 (cplus_language::class_name_from_physname): New member function.
1533 (asm_language_data): Delete la_class_name_from_physname
1534 initializer.
1535 (minimal_language_data): Likewise.
1536 * d-lang.c (d_language_data): Likewise.
1537 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
1538 method on language_defn class.
1539 (guess_full_die_structure_name): Likewise.
1540 * f-lang.c (f_language_data): Delete la_class_name_from_physname
1541 initializer.
1542 * go-lang.c (go_language_data): Likewise.
1543 * language.c (language_class_name_from_physname): Delete.
1544 (unk_lang_class_name): Delete.
1545 (unknown_language_data): Delete la_class_name_from_physname
1546 initializer.
1547 (auto_language_data): Likewise.
1548 * language.h (language_data): Delete la_class_name_from_physname
1549 field.
1550 (language_defn::class_name_from_physname): New function.
1551 (language_class_name_from_physname): Delete declaration.
1552 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
1553 initializer.
1554 * objc-lang.c (objc_language_data): Likewise.
1555 * opencl-lang.c (opencl_language_data): Likewise.
1556 * p-lang.c (pascal_language_data): Likewise.
1557 * rust-lang.c (rust_language_data): Likewise.
1558
de543742
TT
15592020-06-16 Tom Tromey <tom@tromey.com>
1560
1561 * tui/tui-data.h (STATUS_NAME): New macro.
1562 * tui/tui-layout.c (tui_remove_some_windows)
1563 (initialize_known_windows, tui_register_window)
1564 (tui_layout_split::remove_windows, initialize_layouts)
1565 (tui_new_layout_command): Don't use hard-coded window names.
1566
a350efd4
TT
15672020-06-16 Tom Tromey <tom@tromey.com>
1568
1569 PR tui/25348:
1570 * tui/tui.c (tui_ensure_readline_initialized): Rename from
1571 tui_initialize_readline. Only run once. Call rl_initialize.
1572 * tui/tui.h (tui_ensure_readline_initialized): Rename from
1573 tui_initialize_readline.
1574 * tui/tui-io.c (tui_setup_io): Call
1575 tui_ensure_readline_initialized.
1576 * tui/tui-interp.c (tui_interp::init): Update.
1577
39ec0490
TT
15782020-06-16 Tom Tromey <tom@tromey.com>
1579
1580 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
1581 Also preserve the status window.
1582
d2d1ea20
TT
15832020-06-16 Tom Tromey <tom@tromey.com>
1584
1585 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
1586 where m_window==nullptr.
1587
66920317
TT
15882020-06-15 Tom Tromey <tromey@adacore.com>
1589
1590 * windows-nat.c (windows_nat::handle_output_debug_string):
1591 Update.
1592 (windows_nat::handle_ms_vc_exception): Update.
1593 * target.h (target_read_string): Change API.
1594 * target.c (target_read_string): Change API.
1595 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
1596 Update.
1597 * solib-frv.c (frv_current_sos): Update.
1598 * solib-dsbt.c (dsbt_current_sos): Update.
1599 * solib-darwin.c (darwin_current_sos): Update.
1600 * linux-thread-db.c (inferior_has_bug): Update.
1601 * expprint.c (print_subexp_standard): Update.
1602 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
1603 (ada_exception_message_1): Update.
1604
a5d871dd
TT
16052020-06-15 Tom Tromey <tromey@adacore.com>
1606
1607 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
1608
670e35fa
TT
16092020-06-15 Tom Tromey <tromey@adacore.com>
1610
1611 * valprint.c (read_string): Update comment.
1612 * target.c (MIN): Remove.
1613 (target_read_string): Rewrite.
1614
f5272a3b
TT
16152020-06-15 Tom Tromey <tromey@adacore.com>
1616
1617 * corefile.c (read_memory_string): Remove.
1618 * ada-valprint.c (ada_value_print_ptr): Update.
1619 * ada-lang.h (ada_tag_name): Change return type.
1620 * ada-lang.c (type_from_tag): Update.
1621 (ada_tag_name_from_tsd): Change return type. Use
1622 target_read_string.
1623 (ada_tag_name): Likewise.
1624 * gdbcore.h (read_memory_string): Don't declare.
1625
2c074f49
HD
16262020-06-14 Hannes Domani <ssbssa@yahoo.de>
1627
1628 * symtab.c (rbreak_command): Ignore Windows drive colon.
1629
6a17d503
SM
16302020-06-12 Simon Marchi <simon.marchi@efficios.com>
1631
1632 * NEWS: Mention removed GDBserver host support.
1633
453c733f
NC
16342020-06-12 Nelson Chu <nelson.chu@sifive.com>
1635
1636 * features/riscv/rebuild-csr-xml.sh: Updated.
1637
2b4e6a3f
TT
16382020-06-11 Tom Tromey <tom@tromey.com>
1639
1640 PR gdb/18318:
1641 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
1642
4412332f
JG
16432020-06-09 Jonny Grant <jg@jguk.org>
16442020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
1645
1646 * main.c (captured_main_1): Don't print new line after help.
1647 (print_gdb_help): add mailing list and IRC channel information
1648 to --help. Add new lines between items in the footer. Remove
1649 quotes around bug url.
1650
2f33032a
KS
16512020-06-11 Keith Seitz <keiths@redhat.com>
1652
1653 PR gdb/21356
1654 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
1655 Resolve typedefs for type length calculations.
1656
7ab96794
TV
16572020-06-10 Tom de Vries <tdevries@suse.de>
1658
1659 PR ada/24713
1660 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
1661 (write_psymbols): Enable .gdb_index for ada.
1662 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
1663 ada.
1664
e5f3ece2
TV
16652020-06-10 Tom de Vries <tdevries@suse.de>
1666
1667 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
1668 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
1669 namei" instead of "const char *name" argument.
1670 (dw2_map_matching_symbols): Use "offset_type namei" variant of
1671 dw2_symtab_iter_init.
1672
940da03e
SM
16732020-06-08 Simon Marchi <simon.marchi@efficios.com>
1674
1675 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
1676 to use type::field and field::type instead.
1677
b6cdac4b
SM
16782020-06-08 Simon Marchi <simon.marchi@efficios.com>
1679
1680 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
1681 to use field::type instead.
1682
5d14b6e5
SM
16832020-06-08 Simon Marchi <simon.marchi@efficios.com>
1684
1685 * gdbtypes.h (struct field) <type, set_type>: New methods.
1686 Rename `type` field to...
1687 <m_type>: ... this. Change references throughout to use type or
1688 set_type methods.
1689 (FIELD_TYPE): Use field::type. Change call sites that modify
1690 the field's type to use field::set_type instead.
1691
3d967001
SM
16922020-06-08 Simon Marchi <simon.marchi@efficios.com>
1693
1694 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
1695 to use type::index_type instead.
1696
262abc0d
SM
16972020-06-08 Simon Marchi <simon.marchi@efficios.com>
1698
1699 * gdbtypes.h (struct type) <index_type, set_index_type>: New
1700 methods.
1701 (TYPE_INDEX_TYPE): Use type::index_type.
1702 * gdbtypes.c (create_array_type_with_stride): Likewise.
1703
82836c92
TT
17042020-06-07 Tom Tromey <tom@tromey.com>
1705
1706 * valprint.c (generic_val_print_float): Remove "embedded_offset"
1707 parameter.
1708 (generic_value_print): Update.
1709
940dace9
AB
17102020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
1711
1712 Revert commit 982a38f60b0.
1713 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
1714
982a38f6
AB
17152020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
1716
1717 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
1718 avoid use after free.
1719
82f06518
TV
17202020-06-05 Tom de Vries <tdevries@suse.de>
1721
1722 * NEWS: Fix typos.
1723
f8c41851
SM
17242020-06-04 Simon Marchi <simon.marchi@efficios.com>
1725
1726 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
1727 the per_bfd object.
1728 (dwarf2_read_debug_names): Likewise.
1729 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
1730 object when re-using a per_bfd object with an index.
1731
f9b5d5ea
TV
17322020-06-03 Tom de Vries <tdevries@suse.de>
1733
1734 PR symtab/26046
1735 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
1736 children for C++.
1737 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
1738 DW_TAG_subprogram.
1739
f6eee2d0
AB
17402020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
1741
1742 * ada-lang.c (ada_language_data): Delete skip_trampoline
1743 initializer.
1744 * c-lang.c (c_language_data): Likewise.
1745 (cplus_language_data): Likewise.
1746 (cplus_language::skip_trampoline): New member function.
1747 (asm_language_data): Delete skip_trampoline initializer.
1748 (minimal_language_data): Likewise.
1749 * d-lang.c (d_language_data): Likewise.
1750 * f-lang.c (f_language_data): Likewise.
1751 * go-lang.c (go_language_data): Likewise.
1752 * language.c (unk_lang_trampoline): Delete function.
1753 (skip_language_trampoline): Update.
1754 (unknown_language_data): Delete skip_trampoline initializer.
1755 (auto_language_data): Likewise.
1756 * language.h (language_data): Delete skip_trampoline field.
1757 (language_defn::skip_trampoline): New function.
1758 * m2-lang.c (m2_language_data): Delete skip_trampoline
1759 initializer.
1760 * objc-lang.c (objc_skip_trampoline): Delete function, move
1761 implementation to objc_language::skip_trampoline.
1762 (objc_language_data): Delete skip_trampoline initializer.
1763 (objc_language::skip_trampoline): New member function with
1764 implementation from objc_skip_trampoline.
1765 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
1766 initializer.
1767 * p-lang.c (pascal_language_data): Likewise.
1768 * rust-lang.c (rust_language_data): Likewise.
1769
0a50df5d
AB
17702020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
1771
1772 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
1773 (ada_language::demangle): New member function.
1774 * c-lang.c (c_language_data): Delete la_demangle initializer.
1775 (cplus_language_data): Delete la_demangle initializer.
1776 (cplus_language::demangle): New member function.
1777 (asm_language_data): Delete la_demangle initializer.
1778 (minimal_language_data): Delete la_demangle initializer.
1779 * d-lang.c (d_language_data): Delete la_demangle initializer.
1780 (d_language::demangle): New member function.
1781 * f-lang.c (f_language_data): Delete la_demangle initializer.
1782 (f_language::demangle): New member function.
1783 * go-lang.c (go_language_data): Delete la_demangle initializer.
1784 (go_language::demangle): New member function.
1785 * language.c (language_demangle): Update.
1786 (unk_lang_demangle): Delete.
1787 (unknown_language_data): Delete la_demangle initializer.
1788 (unknown_language::demangle): New member function.
1789 (auto_language_data): Delete la_demangle initializer.
1790 (auto_language::demangle): New member function.
1791 * language.h (language_data): Delete la_demangle field.
1792 (language_defn::demangle): New function.
1793 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
1794 * objc-lang.c (objc_language_data): Delete la_demangle
1795 initializer.
1796 (objc_language::demangle): New member function.
1797 * opencl-lang.c (opencl_language_data): Delete la_demangle
1798 initializer.
1799 * p-lang.c (pascal_language_data): Likewise.
1800 * rust-lang.c (rust_language_data): Likewise.
1801 (rust_language::demangle): New member function.
1802
fbfb0a46
AB
18032020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
1804
1805 * ada-lang.c (ada_language_data): Delete la_print_type
1806 initializer.
1807 (ada_language::print_type): New member function.
1808 * c-lang.c (c_language_data): Delete la_print_type initializer.
1809 (c_language::print_type): New member function.
1810 (cplus_language_data): Delete la_print_type initializer.
1811 (cplus_language::print_type): New member function.
1812 (asm_language_data): Delete la_print_type initializer.
1813 (asm_language::print_type): New member function.
1814 (minimal_language_data): Delete la_print_type initializer.
1815 (minimal_language::print_type): New member function.
1816 * d-lang.c (d_language_data): Delete la_print_type initializer.
1817 (d_language::print_type): New member function.
1818 * f-lang.c (f_language_data): Delete la_print_type initializer.
1819 (f_language::print_type): New member function.
1820 * go-lang.c (go_language_data): Delete la_print_type initializer.
1821 (go_language::print_type): New member function.
1822 * language.c (unk_lang_print_type): Delete.
1823 (unknown_language_data): Delete la_print_type initializer.
1824 (unknown_language::print_type): New member function.
1825 (auto_language_data): Delete la_print_type initializer.
1826 (auto_language::print_type): New member function.
1827 * language.h (language_data): Delete la_print_type field.
1828 (language_defn::print_type): New function.
1829 (LA_PRINT_TYPE): Update.
1830 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
1831 (m2_language::print_type): New member function.
1832 * objc-lang.c (objc_language_data): Delete la_print_type
1833 initializer.
1834 (objc_language::print_type): New member function.
1835 * opencl-lang.c (opencl_print_type): Delete, implementation moved
1836 to opencl_language::print_type.
1837 (opencl_language_data): Delete la_print_type initializer.
1838 (opencl_language::print_type): New member function, implementation
1839 from opencl_print_type.
1840 * p-lang.c (pascal_language_data): Delete la_print_type
1841 initializer.
1842 (pascal_language::print_type): New member function.
1843 * rust-lang.c (rust_print_type): Delete, implementation moved to
1844 rust_language::print_type.
1845 (rust_language_data): Delete la_print_type initializer.
1846 (rust_language::print_type): New member function, implementation
1847 from rust_print_type.
1848
6f827019
AB
18492020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
1850
1851 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
1852 implementation moves to...
1853 (ada_language::sniff_from_mangled_name): ...here. Update return
1854 type.
1855 (ada_language_data): Delete la_sniff_from_mangled_name
1856 initializer.
1857 * c-lang.c (c_language_data): Likewise.
1858 (cplus_language_data): Likewise.
1859 (cplus_language::sniff_from_mangled_name): New member function,
1860 implementation taken from gdb_sniff_from_mangled_name.
1861 (asm_language_data): Delete la_sniff_from_mangled_name
1862 initializer.
1863 (minimal_language_data): Likewise.
1864 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
1865 implementation moves to cplus_language::sniff_from_mangled_name.
1866 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
1867 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
1868 moves to...
1869 (d_language::sniff_from_mangled_name): ...here.
1870 (d_language_data): Delete la_sniff_from_mangled_name initializer.
1871 * f-lang.c (f_language_data): Likewise.
1872 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
1873 moves to...
1874 (go_language::sniff_from_mangled_name): ...here.
1875 (go_language_data): Delete la_sniff_from_mangled_name initializer.
1876 * language.c (language_sniff_from_mangled_name): Delete.
1877 (unknown_language_data): Delete la_sniff_from_mangled_name
1878 initializer.
1879 (auto_language_data): Likewise.
1880 * language.h (language_data): Delete la_sniff_from_mangled_name
1881 field.
1882 (language_defn::sniff_from_mangled_name): New function.
1883 (language_sniff_from_mangled_name): Delete declaration.
1884 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
1885 field.
1886 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
1887 implementation moves to...
1888 (objc_language::sniff_from_mangled_name): ...here.
1889 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
1890 * opencl-lang.c (opencl_language_data): Likewise.
1891 * p-lang.c (pascal_language_data): Likewise.
1892 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
1893 implementation moves to...
1894 (rust_language::sniff_from_mangled_name): ...here.
1895 (rust_language_data): Delete la_sniff_from_mangled_name
1896 initializer.
1897 * symtab.c (symbol_find_demangled_name): Call
1898 sniff_from_mangled_name member function.
1899
fb8006fd
AB
19002020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
1901
1902 * ada-lang.c (ada_language_data): Delete la_search_name_hash
1903 initializer.
1904 * c-lang.c (c_language_data): Likewise.
1905 (cplus_language_data): Likewise.
1906 (cplus_language::search_name_hash): New member function.
1907 (asm_language_data): Delete la_search_name_hash initializer.
1908 (minimal_language_data): Likewise.
1909 * d-lang.c (d_language_data): Likewise.
1910 * dictionary.c (default_search_name_hash): Rename to...
1911 (language_defn::search_name_hash): ...this.
1912 * f-lang.c (f_language_data): Likewise.
1913 (f_language::search_name_hash): New member function.
1914 * go-lang.c (go_language_data): Delete la_search_name_hash
1915 initializer.
1916 * language.c (unknown_language_data): Likewise.
1917 (auto_language_data): Likewise.
1918 * language.h (struct language_data): Delete la_search_name_hash
1919 field.
1920 (language_defn::search_name_hash): Declare new member function.
1921 (default_search_name_hash): Delete declaration.
1922 * m2-lang.c (m2_language_data): Delete la_search_name_hash
1923 initializer.
1924 * objc-lang.c (objc_language_data): Likewise.
1925 * opencl-lang.c (opencl_language_data): Likewise.
1926 * p-lang.c (pascal_language_data): Likewise.
1927 * rust-lang.c (rust_language_data): Likewise.
1928 * symtab.c (search_name_hash): Update call.
1929
8e25bafe
AB
19302020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
1931
1932 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
1933 initializer.
1934 * c-lang.c (class compile_instance): Declare.
1935 (c_language_data): Delete la_get_compile_instance initializer.
1936 (c_language::get_compile_instance): New member function.
1937 (cplus_language_data): Delete la_get_compile_instance initializer.
1938 (cplus_language::get_compile_instance): New member function.
1939 (asm_language_data): Delete la_get_compile_instance initializer.
1940 (minimal_language_data): Likewise.
1941 * c-lang.h (c_get_compile_context): Update comment.
1942 (cplus_get_compile_context): Update comment.
1943 * compile/compile.c (compile_to_object): Update calls, don't rely
1944 on function pointer being NULL.
1945 * d-lang.c (d_language_data): Delete la_get_compile_instance
1946 initializer.
1947 * f-lang.c (f_language_data): Likewise.
1948 * go-lang.c (go_language_data): Likewise.
1949 * language.c (unknown_language_data): Likewise.
1950 (auto_language_data): Likewise.
1951 * language.h (language_data): Delete la_get_compile_instance field.
1952 (language_defn::get_compile_instance): New member function.
1953 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
1954 initializer.
1955 * objc-lang.c (objc_language_data): Likewise.
1956 * opencl-lang.c (opencl_language_data): Likewise.
1957 * p-lang.c (pascal_language_data): Likewise.
1958 * rust-lang.c (rust_language_data): Likewise.
1959
4009ee92
AB
19602020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
1961
1962 * ada-lang.c (ada_add_all_symbols): Update comment.
1963 (ada_iterate_over_symbols): Delete, move implementation to...
1964 (ada_language::iterate_over_symbols): ...here, a new member
1965 function, rewrite to use range based for loop.
1966 (ada_language_data): Delete la_iterate_over_symbols initializer.
1967 * c-lang.c (c_language_data): Likewise.
1968 (cplus_language_data): Likewise.
1969 (asm_language_data): Likewise.
1970 (minimal_language_data): Likewise.
1971 * d-lang.c (d_language_data): Likewise.
1972 * f-lang.c (f_language_data): Likewise.
1973 * go-lang.c (go_language_data): Likewise.
1974 * language.c (unknown_language_data): Likewise.
1975 (auto_language_data): Likewise.
1976 * language.h (language_data): Delete la_iterate_over_symbols field.
1977 (language_defn::iterate_over_symbols): New member function.
1978 (LA_ITERATE_OVER_SYMBOLS): Update.
1979 * linespec.c (iterate_over_all_matching_symtabs): Update.
1980 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
1981 initializer.
1982 * objc-lang.c (objc_language_data): Likewise.
1983 * opencl-lang.c (opencl_language_data): Likewise.
1984 * p-lang.c (pascal_language_data): Likewise.
1985 * rust-lang.c (rust_language_data): Likewise.
1986
54f4ca46
AB
19872020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
1988
1989 * ada-lang.c (ada_language_data): Delete
1990 la_lookup_transparent_type initializer.
1991 * c-lang.c (c_language_data): Likewise.
1992 (cplus_language_data): Likewise.
1993 (cplus_language::lookup_transparent_type): New member function.
1994 (asm_language_data): Delete la_lookup_transparent_type
1995 initializer.
1996 (minimal_language_data): Likewise.
1997 * d-lang.c (d_language_data): Likewise.
1998 * f-lang.c (f_language_data): Likewise.
1999 * go-lang.c (go_language_data): Likewise.
2000 * language.c (unknown_language_data): Likewise.
2001 (auto_language_data): Likewise.
2002 * language.h (struct language_data): Delete
2003 la_lookup_transparent_type field.
2004 (language_defn::lookup_transparent_type): New member function.
2005 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
2006 initializer.
2007 * objc-lang.c (objc_language_data): Likewise.
2008 * opencl-lang.c (opencl_language_data): Likewise.
2009 * p-lang.c (pascal_language_data): Likewise.
2010 * rust-lang.c (rust_language_data): Likewise.
2011 * symtab.c (symbol_matches_domain): Update call.
2012
1fb314aa
AB
20132020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2014
2015 * ada-lang.c (ada_language_arch_info): Delete function, move
2016 implementation to...
2017 (ada_language::language_arch_info): ...here, a new member
2018 function.
2019 (ada_language_data): Delete la_language_arch_info.
2020 * c-lang.c (c_language_data): Likewise.
2021 (c_language::language_arch_info): New member function.
2022 (cplus_language_arch_info): Delete function, move
2023 implementation to...
2024 (cplus_language::language_arch_info): ...here, a new member
2025 function.
2026 (cplus_language_data): Delete la_language_arch_info.
2027 (asm_language_data): Likewise.
2028 (asm_language::language_arch_info): New member function.
2029 (minimal_language_data): Delete la_language_arch_info.
2030 (minimal_language::language_arch_info): New member function.
2031 * d-lang.c (d_language_arch_info): Delete function, move
2032 implementation to...
2033 (d_language::language_arch_info): ...here, a new member
2034 function.
2035 (d_language_data): Delete la_language_arch_info.
2036 * f-lang.c (f_language_arch_info): Delete function, move
2037 implementation to...
2038 (f_language::language_arch_info): ...here, a new member
2039 function.
2040 (f_language_data): Delete la_language_arch_info.
2041 * go-lang.c (go_language_arch_info): Delete function, move
2042 implementation to...
2043 (go_language::language_arch_info): ...here, a new member
2044 function.
2045 (go_language_data): Delete la_language_arch_info.
2046 * language.c (unknown_language_data): Likewise.
2047 (unknown_language::language_arch_info): New member function.
2048 (auto_language_data): Delete la_language_arch_info.
2049 (auto_language::language_arch_info): New member function.
2050 (language_gdbarch_post_init): Update call to
2051 la_language_arch_info.
2052 * language.h (language_data): Delete la_language_arch_info
2053 function pointer.
2054 (language_defn::language_arch_info): New function.
2055 * m2-lang.c (m2_language_arch_info): Delete function, move
2056 implementation to...
2057 (m2_language::language_arch_info): ...here, a new member
2058 function.
2059 (m2_language_data): Delete la_language_arch_info.
2060 * objc-lang.c (objc_language_arch_info): Delete function, move
2061 implementation to...
2062 (objc_language::language_arch_info): ...here, a new member
2063 function.
2064 (objc_language_data): Delete la_language_arch_info.
2065 * opencl-lang.c (opencl_language_arch_info): Delete function, move
2066 implementation to...
2067 (opencl_language::language_arch_info): ...here, a new member
2068 function.
2069 (opencl_language_data): Delete la_language_arch_info.
2070 * p-lang.c (pascal_language_arch_info): Delete function, move
2071 implementation to...
2072 (pascal_language::language_arch_info): ...here, a new member
2073 function.
2074 (pascal_language_data): Delete la_language_arch_info.
2075 * rust-lang.c (rust_language_arch_info): Delete function, move
2076 implementation to...
2077 (rust_language::language_arch_info): ...here, a new member
2078 function.
2079 (rust_language_data): Delete la_language_arch_info.
2080
48448202
AB
20812020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2082
2083 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
2084 initializer.
2085 * c-lang.c (c_language_data): Likewise.
2086 (cplus_language_data): Likewise.
2087 (cplus_language::pass_by_reference_info): New method.
2088 (asm_language_data): Delete la_pass_by_reference initializer.
2089 (minimal_language_data): Likewise.
2090 * cp-abi.c (cp_pass_by_reference): Remove use of
2091 default_pass_by_reference.
2092 * d-lang.c (d_language_data): Likewise.
2093 * f-lang.c (f_language_data): Likewise.
2094 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
2095 default_pass_by_reference.
2096 * go-lang.c (go_language_data): Likewise.
2097 * language.c (language_pass_by_reference): Update.
2098 (default_pass_by_reference): Delete.
2099 (unknown_language_data): Delete la_pass_by_reference
2100 initializer.
2101 (auto_language_data): Likewise.
2102 * language.h (struct language_data): Delete la_pass_by_reference
2103 field.
2104 (language_defn::pass_by_reference_info): New member function.
2105 (default_pass_by_reference): Delete declaration.
2106 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
2107 initializer.
2108 * objc-lang.c (objc_language_data): Likewise.
2109 * opencl-lang.c (opencl_language_data): Likewise.
2110 * p-lang.c (pascal_language_data): Likewise.
2111 * rust-lang.c (rust_language_data): Likewise.
2112
15e5fd35
AB
21132020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2114
2115 * ada-lang.c (ada_read_var_value): Delete function, move
2116 implementation to...
2117 (ada_language::read_var_value): ...here.
2118 (ada_language_data): Delete la_read_var_value initializer.
2119 * c-lang.c (c_language_data): Likewise.
2120 (cplus_language_data): Likewise.
2121 (minimal_language_data): Likewise.
2122 * d-lang.c (d_language_data): Likewise.
2123 * f-lang.c (f_language_data): Likewise.
2124 * findvar.c (default_read_var_value): Rename to...
2125 (language_defn::read_var_value): ...this.
2126 * findvar.c (read_var_value): Update header comment, and change to
2127 call member function instead of function pointer.
2128 * go-lang.c (go_language_data): Likewise.
2129 * language.c (unknown_language_data): Delete la_read_var_value
2130 initializer.
2131 (auto_language_data): Likewise.
2132 * language.h (struct language_data): Delete la_read_var_value
2133 field.
2134 (language_defn::read_var_value): New member function.
2135 (default_read_var_value): Delete declaration.
2136 * m2-lang.c (m2_language_data): Delete la_read_var_value
2137 initializer.
2138 * objc-lang.c (objc_language_data): Likewise.
2139 * opencl-lang.c (opencl_language_data): Likewise.
2140 * p-lang.c (pascal_language_data): Likewise.
2141 * rust-lang.c (rust_language_data): Likewise.
2142 * value.h (default_read_var_value): Delete declaration.
2143
5bd40f2a
AB
21442020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2145
2146 * ada-lang.c (ada_print_array_index): Delete function, move
2147 implementation to...
2148 (ada_language::print_array_index): ...here.
2149 (ada_language_data): Delete la_print_array_index initializer.
2150 * c-lang.c (c_language_data): Likewise.
2151 (cplus_language_data): Likewise.
2152 (minimal_language_data): Likewise.
2153 * d-lang.c (d_language_data): Likewise.
2154 * f-lang.c (f_language_data): Likewise.
2155 * go-lang.c (go_language_data): Likewise.
2156 * language.c (default_print_array_index): Delete function, move
2157 implementation to...
2158 (language_defn::print_array_index): ...here.
2159 (unknown_language_data): Delete la_print_array_index initializer.
2160 (auto_language_data): Likewise.
2161 * language.h (struct language_data): Delete la_print_array_index
2162 field.
2163 (language_defn::print_array_index): New member function.
2164 (LA_PRINT_ARRAY_INDEX): Update.
2165 (default_print_array_index): Delete declaration.
2166 * m2-lang.c (m2_language_data): Delete la_print_array_index
2167 initializer.
2168 * objc-lang.c (objc_language_data): Likewise.
2169 * opencl-lang.c (opencl_language_data): Likewise.
2170 * p-lang.c (pascal_language_data): Likewise.
2171 * rust-lang.c (rust_language_data): Likewise.
2172
0874fd07
AB
21732020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2174
2175 * gdb/ada-lang.c (ada_language_defn): Convert to...
2176 (ada_language_data): ...this.
2177 (class ada_language): New class.
2178 (ada_language_defn): New static global.
2179 * gdb/c-lang.c (c_language_defn): Convert to...
2180 (c_language_data): ...this.
2181 (class c_language): New class.
2182 (c_language_defn): New static global.
2183 (cplus_language_defn): Convert to...
2184 (cplus_language_data): ...this.
2185 (class cplus_language): New class.
2186 (cplus_language_defn): New static global.
2187 (asm_language_defn): Convert to...
2188 (asm_language_data): ...this.
2189 (class asm_language): New class.
2190 (asm_language_defn): New static global.
2191 (minimal_language_defn): Convert to...
2192 (minimal_language_data): ...this.
2193 (class minimal_language): New class.
2194 (minimal_language_defn): New static global.
2195 * gdb/d-lang.c (d_language_defn): Convert to...
2196 (d_language_data): ...this.
2197 (class d_language): New class.
2198 (d_language_defn): New static global.
2199 * gdb/f-lang.c (f_language_defn): Convert to...
2200 (f_language_data): ...this.
2201 (class f_language): New class.
2202 (f_language_defn): New static global.
2203 * gdb/go-lang.c (go_language_defn): Convert to...
2204 (go_language_data): ...this.
2205 (class go_language): New class.
2206 (go_language_defn): New static global.
2207 * gdb/language.c (unknown_language_defn): Remove declaration.
2208 (current_language): Initialize to nullptr, real initialization is
2209 moved to _initialize_language.
2210 (languages): Delete global.
2211 (language_defn::languages): Define.
2212 (set_language_command): Use language_defn::languages.
2213 (set_language): Likewise.
2214 (range_error): Likewise.
2215 (language_enum): Likewise.
2216 (language_def): Likewise.
2217 (add_set_language_command): Use language_def::languages for the
2218 language list, and language_def to lookup language pointers.
2219 (skip_language_trampoline): Use language_defn::languages.
2220 (unknown_language_defn): Convert to...
2221 (unknown_language_data): ...this.
2222 (class unknown_language): New class.
2223 (unknown_language_defn): New static global.
2224 (auto_language_defn): Convert to...
2225 (auto_language_data): ...this.
2226 (class auto_language): New class.
2227 (auto_language_defn): New static global.
2228 (language_gdbarch_post_init): Use language_defn::languages.
2229 (_initialize_language): Initialize current_language.
2230 * gdb/language.h (struct language_defn): Rename to...
2231 (struct language_data): ...this.
2232 (struct language_defn): New.
2233 (auto_language_defn): Delete.
2234 (unknown_language_defn): Delete.
2235 (minimal_language_defn): Delete.
2236 (ada_language_defn): Delete.
2237 (asm_language_defn): Delete.
2238 (c_language_defn): Delete.
2239 (cplus_language_defn): Delete.
2240 (d_language_defn): Delete.
2241 (f_language_defn): Delete.
2242 (go_language_defn): Delete.
2243 (m2_language_defn): Delete.
2244 (objc_language_defn): Delete.
2245 (opencl_language_defn): Delete.
2246 (pascal_language_defn): Delete.
2247 (rust_language_defn): Delete.
2248 * gdb/m2-lang.c (m2_language_defn): Convert to...
2249 (m2_language_data): ...this.
2250 (class m2_language): New class.
2251 (m2_language_defn): New static global.
2252 * gdb/objc-lang.c (objc_language_defn): Convert to...
2253 (objc_language_data): ...this.
2254 (class objc_language): New class.
2255 (objc_language_defn): New static global.
2256 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
2257 (opencl_language_data): ...this.
2258 (class opencl_language): New class.
2259 (opencl_language_defn): New static global.
2260 * gdb/p-lang.c (pascal_language_defn): Convert to...
2261 (pascal_language_data): ...this.
2262 (class pascal_language): New class.
2263 (pascal_language_defn): New static global.
2264 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
2265 language pointer, update comment format.
2266 * gdb/rust-lang.c (rust_language_defn): Convert to...
2267 (rust_language_data): ...this.
2268 (class rust_language): New class.
2269 (rust_language_defn): New static global.
2270
1313c56e
AB
22712020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
2272
2273 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
2274 member variable.
2275 <m_stmt_at_address>: New member variable.
2276 (lnp_state_machine::record_line): Don't record some lines, update
2277 tracking of is_stmt at the same address.
2278 (lnp_state_machine::lnp_state_machine): Initialise new member
2279 variables.
2280
b7ed9f3d
ST
22812020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
2282
2283 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
2284 "-include gnu-nat-mig.h".
2285 * gnu-nat-mig.h: New file.
2286 * gnu-nat.c: Include "gnu-nat-mig.h".
2287 (exc_server, msg_reply_server, notify_server,
2288 process_reply_server): Remove declarations.
2289
14a8ad62
ST
22902020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2291
2292 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
2293 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
2294 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
2295 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
2296 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
2297 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
2298 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
2299 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
2300 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
2301 to gnu_nat_target class.
2302 * gnu-nat.c: Likewise.
2303 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
2304 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
2305 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
2306 object.
2307 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
2308 instead of `gnu_target'.
2309
0af5e106
ST
23102020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2311
2312 * i386-gnu-tdep.c: Include "gdbcore.h"
2313 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
2314 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
2315 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
2316 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
2317 i386_gnu_sigcontext_addr): New functions
2318 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
2319 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
2320 tdep.
2321
078f2fc9
ST
23222020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2323
2324 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
2325 before fork_inferior call. Avoid calling it if target_is_pushed returns
2326 true.
2327
53dff92c
ST
23282020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2329
2330 * gnu-nat.h (gnu_target): New variable declaration.
2331 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
2332 gnu_target.
2333 * gnu-nat.c (gnu_target): New variable.
2334 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
2335 add_thread_silent, and add_thread calls.
2336 (gnu_nat_target::create_inferior): Pass gnu_target to
2337 add_thread_silent, thread_change_ptid call.
2338 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
2339 call.
2340
5a8b8627
ST
23412020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2342
2343 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
2344 (gnu_nat_target::find_memory_regions): Remove unused
2345 `old_address' variable.
2346
366f550a
ST
23472020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2348
2349 * gnu-nat.c: Include "gdbarch.h".
2350
f14871bf
ST
23512020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2352
2353 * reply_mig_hack.awk (Error return): Cast function through
2354 void *, to bypass compiler function call check.
2355
c6887cfb
ST
23562020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2357
2358 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
2359 $(srcdir)/reply_mig_hack.awk.
2360
6930bffe
ST
23612020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2362
2363 * gnu-nat.h (gnu_debug_flag): Set type to bool.
2364
112c22ed
JG
23652020-05-30 Jonny Grant <jg@jguk.org>
2366
2367 * configure.ac (ACX_BUGURL): change bug URL to https.
2368
f68f85b5
PA
23692020-05-30 Pedro Alves <palves@redhat.com>
2370
2371 * cp-support.c (replace_typedefs_template): New.
2372 (replace_typedefs_qualified_name): Handle
2373 DEMANGLE_COMPONENT_TEMPLATE.
2374
976ca316
SM
23752020-05-29 Simon Marchi <simon.marchi@efficios.com>
2376
2377 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
2378 dwarf2/index-cache.h, dwarf2/index-write.c,
2379 dwarf2/index-write.h, dwarf2/line-header.c,
2380 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
2381 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
2382 variables and fields from `dwarf2_per_objfile` to just
2383 `per_objfile` throughout.
2384
989ade05
SM
23852020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
2386
2387 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
2388 <push_dwarf_reg_entry_value>: Add comment.
2389
c47bae85
KB
23902020-05-28 Kevin Buettner <kevinb@redhat.com>
2391 Keith Seitz <keiths@redhat.com>
2392
2393 * python/python.c (do_start_initialization): Call PyEval_SaveThread
2394 instead of PyEval_ReleaseLock.
2395 (class gdbpy_gil): Move to earlier in file.
2396 (finalize_python): Set gdb_python_initialized.
2397 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
2398 when not initialized.
2399
44486dcf
SM
24002020-05-28 Simon Marchi <simon.marchi@efficios.com>
2401
2402 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
2403 <push_dwarf_reg_entry_value>: Remove assert. Override
2404 per_objfile with caller_per_objfile.
2405
f030440d
TV
24062020-05-28 Tom de Vries <tdevries@suse.de>
2407
2408 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
2409 PR gold/15646 workaround to symbol kind "type".
2410
f0fbb768
TT
24112020-05-27 Tom Tromey <tromey@adacore.com>
2412
2413 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
2414
af0b2a3e
TT
24152020-05-27 Tom Tromey <tromey@adacore.com>
2416
2417 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
2418 Use htab_find_with_hash.
2419 <add_abbrev>: Remove "abbrev_number" parameter.
2420 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
2421 "abbrev_number" parameter. Use htab_find_slot_with_hash.
2422 (hash_abbrev): Add comment.
2423 (abbrev_table::lookup_abbrev): Move to header file.
2424 (abbrev_table::read): Update.
2425
7d00ffec
TT
24262020-05-27 Tom Tromey <tromey@adacore.com>
2427
2428 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
2429 method.
2430 <canonical_name>: New member.
2431 <raw_name>: Rename from "name".
2432 (partial_die_info): Initialize canonical_name.
2433 (scan_partial_symbols): Check raw_name.
2434 (partial_die_parent_scope, partial_die_full_name)
2435 (add_partial_symbol, add_partial_subprogram)
2436 (add_partial_enumeration, load_partial_dies): Use "name" method.
2437 (partial_die_info::name): New method.
2438 (partial_die_info::read, guess_partial_die_structure_name)
2439 (partial_die_info::fixup): Update.
2440
697bba18
TT
24412020-05-27 Tom Tromey <tromey@adacore.com>
2442
2443 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
2444 <get_ref_die_offset>: Inline.
2445 <get_ref_die_offset_complaint>: New method.
2446 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
2447 (attribute::get_ref_die_offset_complaint): Rename from
2448 get_ref_die_offset. Just issue complaint.
2449
c17ace43
HD
24502020-05-27 Hannes Domani <ssbssa@yahoo.de>
2451
2452 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
2453
96445f0b
HD
24542020-05-27 Hannes Domani <ssbssa@yahoo.de>
2455
2456 * exec.c (exec_file_attach): Use errno value of first openp failure.
2457
ac637ec3
HD
24582020-05-27 Hannes Domani <ssbssa@yahoo.de>
2459
2460 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
2461 Don't close thread handle.
2462
17ee85fc
TT
24632020-05-27 Tom Tromey <tom@tromey.com>
2464 Simon Marchi <simon.marchi@efficios.com>
2465
2466 * objfiles.h (struct objfile) <partial_symtabs>: Now a
2467 shared_ptr.
2468 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
2469 member.
2470 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
2471 dwarf2_per_bfd_objfile_data_key>: New globals.
2472 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
2473 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
2474 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
2475 shared.
2476 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
2477 short-circuit when sharing.
2478 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
2479 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
2480
39b16f87
SM
24812020-05-27 Simon Marchi <simon.marchi@efficios.com>
2482
2483 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
2484 to...
2485 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
2486 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
2487
fcf23d5b
SM
24882020-05-27 Simon Marchi <simon.marchi@efficios.com>
2489
2490 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
2491 build_name_components, find_name_components_bounds>:
2492 Add per_objfile parameter.
2493 (struct mapped_index) <symbol_name_at>: Likewise.
2494 (struct mapped_debug_names): Remove constructor.
2495 <dwarf2_per_objfile>: Remove field.
2496 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
2497 (mapped_index_base::find_name_components_bounds,
2498 mapped_index_base::build_name_components,
2499 dw2_expand_symtabs_matching_symbol): Likewise.
2500 (class mock_mapped_index) <symbol_name_at>: Likewise.
2501 (check_match): Likewise.
2502 (check_find_bounds_finds): Likewise.
2503 (test_mapped_index_find_name_component_bounds): Update.
2504 (CHECK_MATCH): Update.
2505 (dw2_expand_symtabs_matching): Update.
2506 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
2507 per_objfile parameter.
2508 <find_vec_in_debug_names>: Likewise.
2509 <m_per_objfile>: New field.
2510 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
2511 parameter.
2512 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
2513 (dw2_debug_names_iterator::next): Update.
2514 (dw2_debug_names_lookup_symbol): Update.
2515 (dw2_debug_names_expand_symtabs_for_function): Update.
2516 (dw2_debug_names_map_matching_symbols): Update.
2517 (dw2_debug_names_expand_symtabs_matching): Update.
2518 (dwarf2_read_debug_names): Update.
2519
7188ed02
SM
25202020-05-27 Simon Marchi <simon.marchi@efficios.com>
2521
2522 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
2523 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
2524 move to dwarf2_per_objfile.
2525 <read_in_chain>: Remove.
2526 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
2527 remove_all_cus, age_comp_units>: New methods.
2528 <m_dwarf2_cus>: New member.
2529 (struct dwarf2_per_cu_data) <cu>: Remove.
2530 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
2531 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
2532 moved to methods of dwarf2_per_objfile.
2533 (dwarf2_clear_marks): Remove.
2534 (dwarf2_queue_item::~dwarf2_queue_item): Update.
2535 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
2536 (dwarf2_per_bfd::free_cached_comp_units): Remove.
2537 (dwarf2_per_objfile::remove_all_cus): New.
2538 (class free_cached_comp_units) <~free_cached_comp_units>:
2539 Update.
2540 (load_cu): Update.
2541 (dw2_do_instantiate_symtab): Adjust.
2542 (fill_in_sig_entry_from_dwo_entry): Adjust.
2543 (cutu_reader::init_tu_and_read_dwo_dies): Update.
2544 (cutu_reader::cutu_reader): Likewise.
2545 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
2546 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
2547 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
2548 and dwarf2_per_objfile::age_comp_units.
2549 (load_partial_comp_unit): Update.
2550 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
2551 (process_queue): Likewise.
2552 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
2553 backlink.
2554 (dwarf2_read_addr_index): Likewise.
2555 (follow_die_offset): Likewise.
2556 (dwarf2_fetch_die_loc_sect_off): Likewise.
2557 (dwarf2_fetch_constant_bytes): Likewise.
2558 (dwarf2_fetch_die_type_sect_off): Likewise.
2559 (follow_die_sig_1): Likewise.
2560 (load_full_type_unit): Likewise.
2561 (read_signatured_type): Likewise.
2562 (dwarf2_cu::dwarf2_cu): Don't set cu field.
2563 (dwarf2_cu::~dwarf2_cu): Remove.
2564 (dwarf2_per_objfile::get_cu): New.
2565 (dwarf2_per_objfile::set_cu): New.
2566 (age_cached_comp_units): Rename to...
2567 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
2568 to std::unordered_map.
2569 (free_one_cached_comp_unit): Rename to...
2570 (dwarf2_per_objfile::remove_cu): ... this. Adjust
2571 to std::unordered_map.
2572 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
2573 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
2574 a dwarf2_per_objfile in data.
2575 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
2576 (dwarf2_clear_marks): Remove.
2577
2e671100
SM
25782020-05-27 Simon Marchi <simon.marchi@efficios.com>
2579
2580 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
2581 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
2582 (init_tu_and_read_dwo_dies): Likewise.
2583 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
2584 (cutu_reader::cutu_reader): Likewise.
2585 (load_partial_comp_unit): Likewise.
2586 (process_psymtab_comp_unit): Update.
2587 (build_type_psymtabs_1): Update.
2588 (process_skeletonless_type_unit): Update.
2589 (load_full_comp_unit): Update.
2590 (find_partial_die): Update.
2591 (dwarf2_read_addr_index): Update.
2592 (read_signatured_type): Update.
2593
2e6a9f79
SM
25942020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2595
2596 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
2597 m_header_read_in>: New fields.
2598 <get_header>: New method.
2599 * dwarf2/read.c (per_cu_header_read_in): Remove.
2600 (dwarf2_per_cu_data::get_header): New.
2601 (dwarf2_per_cu_data::addr_size): Update.
2602 (dwarf2_per_cu_data::offset_size): Update.
2603 (dwarf2_per_cu_data::ref_addr_size): Update.
2604
1b555f17
SM
26052020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2606
2607 * dwarf2/read.c (load_cu): Return dwarf2_cu.
2608 (dw2_do_instantiate_symtab): Update.
2609 (queue_and_load_all_dwo_tus): Change parameter from
2610 dwarf2_per_cu_data to dwarf2_cu.
2611 (dwarf2_fetch_die_loc_sect_off): Update.
2612 (dwarf2_fetch_constant_bytes): Update.
2613 (dwarf2_fetch_die_type_sect_off): Update.
2614
8fc0b21d
SM
26152020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2616
2617 * dwarf2/read.c (process_full_comp_unit,
2618 process_full_type_unit): Remove per_cu, per_objfile paramters.
2619 Add dwarf2_cu parameter.
2620 (process_queue): Update.
2621
168c9250
SM
26222020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2623
2624 * dwarf2/read.c (create_cu_from_index_list): Replace
2625 dwarf2_per_objfile parameter with dwarf2_per_bfd.
2626 (create_cus_from_index_list): Likewise.
2627 (create_cus_from_index): Likewise.
2628 (create_signatured_type_table_from_index): Likewise.
2629 (create_cus_from_debug_names_list): Likewise.
2630 (create_cus_from_debug_names): Likewise.
2631 (dwarf2_read_gdb_index): Update.
2632 (dwarf2_read_debug_names): Update.
2633
e286671b
TT
26342020-05-27 Tom Tromey <tom@tromey.com>
2635 Simon Marchi <simon.marchi@efficios.com>
2636
2637 * dwarf2/read.h (struct dwarf2_per_objfile)
2638 <get_type_for_signatured_type, set_type_for_signatured_type>:
2639 New methods.
2640 <m_type_map>: New member.
2641 (struct signatured_type) <type>: Remove.
2642 * dwarf2/read.c
2643 (dwarf2_per_objfile::get_type_for_signatured_type,
2644 dwarf2_per_objfile::set_type_for_signatured_type): New.
2645 (get_signatured_type): Use new methods.
2646
8adb8487
TT
26472020-05-27 Tom Tromey <tom@tromey.com>
2648 Simon Marchi <simon.marchi@efficios.com>
2649
2650 * dwarf2/read.h (struct type_unit_group_unshareable): New.
2651 (struct dwarf2_per_objfile) <type_units>: New member.
2652 <get_type_unit_group_unshareable>: New method.
2653 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
2654 num_symtabs, symtabs>: Remove; move to
2655 type_unit_group_unshareable.
2656 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
2657 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
2658 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
2659
127bbf4b
SM
26602020-05-27 Simon Marchi <simon.marchi@efficios.com>
2661
2662 * dwarf2/read.h (struct dwarf2_per_cu_data):
2663 <dwarf2_per_objfile>: Remove.
2664 * dwarf2/read.c (create_cu_from_index_list): Don't assign
2665 dwarf2_per_objfile.
2666 (create_signatured_type_table_from_index): Likewise.
2667 (create_signatured_type_table_from_debug_names): Likewise.
2668 (create_debug_type_hash_table): Likewise.
2669 (fill_in_sig_entry_from_dwo_entry): Likewise.
2670 (create_type_unit_group): Likewise.
2671 (read_comp_units_from_section): Likewise.
2672 (create_cus_hash_table): Likewise.
2673
f6e649dd
SM
26742020-05-27 Simon Marchi <simon.marchi@efficios.com>
2675
2676 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
2677 dwarf2_per_cu_data::dwarf2_per_objfile.
2678 (compute_compunit_symtab_includes): Likewise.
2679 (dwarf2_cu::start_symtab): Likewise.
2680
aa66c379
SM
26812020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2682
2683 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
2684 parameter.
2685 * dwarf2/read.c (get_die_type_at_offset): Likewise.
2686 (read_namespace_alias): Update.
2687 (lookup_die_type): Update.
2688 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
2689 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
2690 Update.
2691 (disassemble_dwarf_expression): Update.
2692
120ce1b5
SM
26932020-05-27 Simon Marchi <simon.marchi@efficios.com>
2694
2695 * dwarf2/read.h (struct dwarf2_queue_item): Add
2696 dwarf2_per_objfile parameter, assign new parameter.
2697 <per_objfile>: New field.
2698 * dwarf2/read.c (free_one_cached_comp_unit): Add
2699 dwarf2_per_objfile parameter.
2700 (queue_comp_unit): Likewise.
2701 (dw2_do_instantiate_symtab): Update.
2702 (process_psymtab_comp_unit): Update.
2703 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
2704 (process_imported_unit_die): Update.
2705 (queue_and_load_dwo_tu): Update.
2706 (follow_die_offset): Update.
2707 (follow_die_sig_1): Update.
2708
9f47c707
SM
27092020-05-27 Simon Marchi <simon.marchi@efficios.com>
2710
2711 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
2712 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
2713 (read_call_site_scope): Assign per_objfile.
2714 (dwarf2_per_cu_data::objfile): Remove.
2715 * gdbtypes.h (struct call_site) <per_objfile>: New member.
2716 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
2717 dwarf2_per_objfile parameter.
2718 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
2719 dwarf2_per_objfile parameter.
2720 (dwarf_expr_reg_to_entry_parameter): Add output
2721 dwarf2_per_objfile parameter.
2722 (locexpr_get_frame_base): Update.
2723 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
2724 <push_dwarf_reg_entry_value>: Update.
2725 <call_site_to_target_addr>: Update.
2726 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
2727 parameter.
2728 (value_of_dwarf_reg_entry): Update.
2729 (rw_pieced_value): Update.
2730 (indirect_synthetic_pointer): Update.
2731 (dwarf2_evaluate_property): Update.
2732 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
2733 parameter.
2734 (locexpr_read_variable): Update.
2735 (locexpr_get_symbol_read_needs): Update.
2736 (loclist_read_variable): Update.
2737
14095eb3
SM
27382020-05-27 Simon Marchi <simon.marchi@efficios.com>
2739
2740 * dwarf2/read.h (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/read.c (dwarf2_fetch_die_loc_sect_off,
2745 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
2746 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
2747 parameter.
2748 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
2749 sect_variable_value): Add dwarf2_per_objfile parameter.
2750 (class dwarf_evaluate_loc_desc) <dwarf_call,
2751 dwarf_variable_value>: Update.
2752 (fetch_const_value_from_synthetic_pointer): Add
2753 dwarf2_per_objfile parameter.
2754 (fetch_const_value_from_synthetic_pointer): Update.
2755 (coerced_pieced_ref): Update.
2756 (class symbol_needs_eval_context) <dwarf_call,
2757 dwarf_variable_value>: Update.
2758 (dwarf2_compile_expr_to_ax): Update.
2759
3c3cd3d4
SM
27602020-05-27 Simon Marchi <simon.marchi@efficios.com>
2761
2762 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
2763 parameter.
2764 (dwarf2_evaluate_loc_desc_full): Update.
2765
82ca3f51
SM
27662020-05-27 Simon Marchi <simon.marchi@efficios.com>
2767
2768 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
2769 parameter.
2770 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
2771 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
2772 dwarf2_per_objfile parameter.
2773 (decode_debug_loc_dwo_addresses): Likewise.
2774 (dwarf2_find_location_expression): Update.
2775 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
2776 (locexpr_describe_location_piece): Add dwarf2_per_objfile
2777 parameter.
2778 (disassemble_dwarf_expression): Add dwarf2_per_objfile
2779 parameter.
2780 (locexpr_describe_location_1): Likewise.
2781 (locexpr_describe_location): Update.
2782
4b167ea1
SM
27832020-05-27 Simon Marchi <simon.marchi@efficios.com>
2784
2785 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
2786 Remove.
2787 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
2788 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
2789 (dwarf2_compile_property_to_c): Update.
2790 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
2791 use text offset from objfile.
2792 (locexpr_tracepoint_var_ref): Update.
2793 (locexpr_generate_c_location): Update.
2794 (loclist_describe_location): Update.
2795 (loclist_tracepoint_var_ref): Update.
2796 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
2797 dwarf2_per_objfile parameter.
2798 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
2799 use text offset from objfile.
2800 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
2801
89b07335
SM
28022020-05-27 Simon Marchi <simon.marchi@efficios.com>
2803
2804 * dwarf2/expr.h (struct dwarf_expr_context)
2805 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
2806 <offset>: Remove.
2807 <per_objfile>: New member.
2808 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
2809 dwarf2_per_objfile parameter. Don't set offset, set
2810 per_objfile.
2811 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
2812 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
2813 a dwarf2_per_objfile object instead of an offset.
2814 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
2815 constructor.
2816 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
2817 to dwarf2_expr_executor constructor. Don't set offset.
2818 (dwarf2_fetch_cfa_info): Update.
2819 (struct dwarf2_frame_cache) <text_offset>: Remove.
2820 <per_objfile>: New field.
2821 (dwarf2_frame_cache): Update.
2822 (dwarf2_frame_prev_register): Update.
2823 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
2824 <dwarf_evaluate_loc_desc>: Add constructor.
2825 (dwarf2_evaluate_loc_desc_full): Update.
2826 (dwarf2_locexpr_baton_eval): Update.
2827 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
2828 Add constructor.
2829 (dwarf2_loc_desc_get_symbol_read_needs): Update.
2830
293e7e51
SM
28312020-05-27 Simon Marchi <simon.marchi@efficios.com>
2832
2833 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
2834 addr_sized_int_type>: Move to dwarf2_cu.
2835 <int_type>: Move to dwarf2_per_objfile.
2836 (struct dwarf2_per_objfile) <int_type>: Move here.
2837 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
2838 addr_sized_int_type>: Move here.
2839 (read_func_scope): Update.
2840 (read_array_type): Update.
2841 (read_tag_string_type): Update.
2842 (attr_to_dynamic_prop): Update.
2843 (dwarf2_per_cu_data::int_type): Rename to...
2844 (dwarf2_per_objfile::int_type): ... this.
2845 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
2846 (dwarf2_cu::addr_sized_int_type): ... this.
2847 (read_subrange_type): Update.
2848 (dwarf2_per_cu_data::addr_type): Rename to...
2849 (dwarf2_cu::addr_type): ... this.
2850 (set_die_type): Update.
2851
64874a40
SM
28522020-05-27 Simon Marchi <simon.marchi@efficios.com>
2853
2854 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
2855 data through per_cu->cu.
2856
4ab09049
SM
28572020-05-27 Simon Marchi <simon.marchi@efficios.com>
2858
2859 * dwarf2/read.c (lookup_dwo_comp_unit): Change
2860 dwarf2_per_cu_data parameter fo dwarf2_cu.
2861 (lookup_dwo_type_unit): Likewise.
2862 (read_cutu_die_from_dwo): Likewise.
2863 (lookup_dwo_unit): Likewise.
2864 (open_and_init_dwo_file): Likewise.
2865 (lookup_dwo_cutu): Likewise.
2866 (lookup_dwo_comp_unit): Likewise.
2867 (lookup_dwo_type_unit): Likewise.
2868 (cutu_reader::init_tu_and_read_dwo_dies): Update.
2869 (cutu_reader::cutu_reader): Update.
2870
47b14e86
SM
28712020-05-27 Simon Marchi <simon.marchi@efficios.com>
2872
2873 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
2874 parameter.
2875 (process_full_type_unit): Likewise.
2876 (process_queue): Update.
2877
43182c09
SM
28782020-05-27 Simon Marchi <simon.marchi@efficios.com>
2879
2880 * dwarf2/read.c (recursively_compute_inclusions): Add
2881 dwarf2_per_objfile parameter.
2882 (compute_compunit_symtab_includes): Likewise.
2883 (process_cu_includes): Update.
2884
7aa104c4
SM
28852020-05-27 Simon Marchi <simon.marchi@efficios.com>
2886
2887 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
2888 parameter.
2889 (create_type_unit_group): Update.
2890 (process_psymtab_comp_unit_reader): Update.
2891 (build_type_psymtabs_reader): Update.
2892
e3beb21d
SM
28932020-05-27 Simon Marchi <simon.marchi@efficios.com>
2894
2895 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
2896 object through m_this_cu->cu.
2897
d460f660
SM
28982020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2899
2900 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
2901 the info parameter.
2902 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
2903
ab432490
SM
29042020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2905
2906 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
2907 per_objfile parameter.
2908 (load_full_type_unit): Add per_objfile parameter.
2909 (read_signatured_type): Likewise.
2910 (load_full_comp_unit): Likewise.
2911 (load_cu): Likewise.
2912 (dw2_do_instantiate_symtab): Likewise.
2913 (dw2_get_file_names): Likewise.
2914 (dw2_map_symtabs_matching_filename): Update.
2915 (dw_expand_symtabs_matching_file_matcher): Update.
2916 (dw2_map_symbol_filenames): Update.
2917 (process_psymtab_comp_unit): Add per_objfile parameter.
2918 (build_type_psymtabs_1): Update.
2919 (process_skeletonless_type_unit): Update.
2920 (dwarf2_build_psymtabs_hard): Update.
2921 (load_partial_comp_unit): Add per_objfile parameter.
2922 (scan_partial_symbols): Update.
2923 (load_full_comp_unit): Add per_objfile parameter.
2924 (process_imported_unit_die): Update.
2925 (create_cus_hash_table): Update.
2926 (find_partial_die): Update.
2927 (dwarf2_read_addr_index): Update.
2928 (follow_die_offset): Update.
2929 (dwarf2_fetch_die_loc_sect_off): Update.
2930 (dwarf2_fetch_constant_bytes): Update.
2931 (dwarf2_fetch_die_type_sect_off): Update.
2932 (follow_die_sig_1): Update.
2933 (load_full_type_unit): Add per_objfile parameter.
2934 (read_signatured_type): Likewise.
2935
313bad1b
SM
29362020-05-27 Simon Marchi <simon.marchi@efficios.com>
2937
2938 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
2939 of objfile_name.
2940
c3699833
SM
29412020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2942
2943 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
2944 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
2945 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
2946 field.
2947 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
2948 (create_cus_from_index): Update.
2949 (dwarf2_read_gdb_index): Update.
2950 (create_cus_from_debug_names): Update.
2951 (dwarf2_read_debug_names): Update.
2952 (get_abbrev_section_for_cu): Update.
2953 (create_all_comp_units): Update.
2954 (read_attribute_value): Update.
2955 (get_debug_line_section): Update.
2956 * dwarf2/index-cache.c (index_cache::store): Update.
2957 * dwarf2/index-write.c (save_gdb_index_command): Update.
2958 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
2959
1859c670
SM
29602020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2961
2962 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
2963 member.
2964 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
2965 dwarf2_per_cu_data::per_bfd.
2966 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
2967 (create_type_unit_group): Likewise.
2968 (queue_comp_unit): Remove reference to
2969 per_cu->dwarf2_per_objfile.
2970 (maybe_queue_comp_unit): Likewise.
2971 (fill_in_sig_entry_from_dwo_entry): Assign new field.
2972 (create_cus_hash_table): Assign new field.
2973
5e22e966
SM
29742020-05-27 Simon Marchi <simon.marchi@efficios.com>
2975
2976 * dwarf2/read.c: Replace
2977 dwarf2_cu->per_cu->dwarf2_per_objfile references with
2978 dwarf2_cu->per_objfile throughout.
2979
97a1449a
SM
29802020-05-27 Simon Marchi <simon.marchi@efficios.com>
2981
2982 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
2983 parameter, don't use per_cu->dwarf2_per_objfile.
2984 (dw2_instantiate_symtab): Likewise.
2985 (dw2_find_last_source_symtab): Update.
2986 (dw2_map_expand_apply): Update.
2987 (dw2_lookup_symbol): Update.
2988 (dw2_expand_symtabs_for_function): Update.
2989 (dw2_expand_all_symtabs): Update.
2990 (dw2_expand_symtabs_with_fullname): Update.
2991 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
2992 don't use per_cu->dwarf2_per_objfile.
2993 (dw2_expand_marked_cus): Update.
2994 (dw2_find_pc_sect_compunit_symtab): Update.
2995 (dw2_debug_names_lookup_symbol): Update.
2996 (dw2_debug_names_expand_symtabs_for_function): Update.
2997 (dw2_debug_names_map_matching_symbols): Update.
2998 (dwarf2_psymtab::expand_psymtab): Update.
2999
9e021579
SM
30002020-05-27 Simon Marchi <simon.marchi@efficios.com>
3001
3002 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
3003 <per_objfile>: New member.
3004 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
3005 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
3006 call to dwarf2_cu.
3007 (cutu_reader::cutu_reader): Update.
3008 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
3009
ae090bdb
SM
30102020-05-27 Simon Marchi <simon.marchi@efficios.com>
3011
3012 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
3013 struct dwarf2_per_objfile.
3014 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
3015 dwarf2_per_bfd.
3016 * dwarf2/read.c (set_die_type): Update.
3017 (get_die_type_at_offset): Update.
3018
af758d11
SM
30192020-05-27 Tom Tromey <tom@tromey.com>
3020 Simon Marchi <simon.marchi@efficios.com>
3021
3022 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
3023 method.
3024 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
3025 get_symtab, set_symtab>: New methods.
3026 <m_symtabs>: New field.
3027 (struct dwarf2_psymtab): Derive from partial_symtab.
3028 <readin_p, get_compunit_symtab>: Declare methods.
3029 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
3030 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
3031 New methods.
3032 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
3033 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
3034 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
3035 (dw2_symtab_iter_next, dw2_print_stats)
3036 (dw2_expand_symtabs_with_fullname)
3037 (dw2_expand_symtabs_matching_one)
3038 (dw_expand_symtabs_matching_file_matcher)
3039 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
3040 (dw2_debug_names_iterator::next)
3041 (dw2_debug_names_map_matching_symbols)
3042 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
3043 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
3044 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
3045 New methods.
3046 (get_compunit_symtab, process_full_comp_unit)
3047 (process_full_type_unit): Update.
3048 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
3049
5989a64e
SM
30502020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3051
3052 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
3053 then introduce a new dwarf2_per_objfile type.
3054 <read_line_string>: Move to the new dwarf2_per_objfile type.
3055 <objfile>: Likewise.
3056 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
3057 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
3058 dwarf2_per_objfile->per_bfd.
3059 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
3060 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
3061 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
3062 (dwarf2_per_bfd::free_cached_comp_units): ... this.
3063 (dwarf2_has_info): Allocate dwarf2_per_bfd.
3064 (dwarf2_per_objfile::locate_sections): Rename to...
3065 (dwarf2_per_bfd::locate_sections): ... this.
3066 (dwarf2_per_objfile::get_cutu): Rename to...
3067 (dwarf2_per_bfd::get_cutu): ... this.
3068 (dwarf2_per_objfile::get_cu): Rename to...
3069 (dwarf2_per_bfd::get_cu): ... this.
3070 (dwarf2_per_objfile::get_tu): Rename to...
3071 (dwarf2_per_bfd::get_tu): ... this.
3072 (dwarf2_per_objfile::allocate_per_cu): Rename to...
3073 (dwarf2_per_bfd::allocate_per_cu): ... this.
3074 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
3075 (dwarf2_per_bfd::allocate_signatured_type): ... this.
3076 (get_gdb_index_contents_ftype): Change parameter from
3077 dwarf2_per_objfile to dwarf2_per_bfd.
3078 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
3079 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
3080
a50264ba
TT
30812020-05-27 Tom Tromey <tom@tromey.com>
3082 Simon Marchi <simon.marchi@efficios.com>
3083
3084 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
3085 (allocate_piece_closure): Set "per_objfile" member.
3086 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
3087 (locexpr_describe_location, loclist_describe_location): Use new
3088 member.
3089 * dwarf2/read.c (read_call_site_scope)
3090 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
3091 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
3092 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
3093 handle_data_member_location): Set per_objfile member.
3094 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
3095 member.
3096 (struct dwarf2_loclist_baton) <per_objfile>: New member.
3097
d3473f0c
TT
30982020-05-27 Tom Tromey <tom@tromey.com>
3099
3100 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
3101 allocate_signatured_type>: Declare new methods.
3102 <m_num_psymtabs>: New member.
3103 (struct dwarf2_per_cu_data) <index>: New member.
3104 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
3105 (dwarf2_per_objfile::allocate_signatured_type): New methods.
3106 (create_cu_from_index_list): Use allocate_per_cu.
3107 (create_signatured_type_table_from_index)
3108 (create_signatured_type_table_from_debug_names)
3109 (create_debug_type_hash_table, add_type_unit)
3110 (read_comp_units_from_section): Use allocate_signatured_type.
3111
5717c425
TT
31122020-05-27 Tom Tromey <tom@tromey.com>
3113
3114 * psymtab.c (partial_map_expand_apply)
3115 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
3116 (psym_lookup_global_symbol_language)
3117 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
3118 (psym_print_stats, psym_expand_symtabs_for_function)
3119 (psym_map_symbol_filenames, psym_map_matching_symbols)
3120 (psym_expand_symtabs_matching)
3121 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
3122 (maintenance_check_psymtabs): Update.
3123 * psympriv.h (struct partial_symtab) <readin_p,
3124 get_compunit_symtab>: Add objfile parameter.
3125 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
3126 Likewise.
3127 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
3128 get_compunit_symtab>: Likewise.
3129 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
3130
45940949
TT
31312020-05-27 Tom Tromey <tom@tromey.com>
3132
3133 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
3134 member.
3135 * dwarf2/read.c (delete_file_name_entry): Fix comment.
3136 (create_cu_from_index_list)
3137 (create_signatured_type_table_from_index)
3138 (create_signatured_type_table_from_debug_names)
3139 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
3140 (dwarf2_create_include_psymtab)
3141 (create_debug_type_hash_table, add_type_unit)
3142 (create_type_unit_group, read_comp_units_from_section)
3143 (dwarf2_compute_name, create_cus_hash_table)
3144 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
3145 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
3146 obstack.
3147 (dw2_get_real_path): Likewise. Change argument to
3148 dwarf2_per_objfile.
3149
f8c6d152
LM
31502020-05-27 Luis Machado <luis.machado@linaro.org>
3151
3152 PR tdep/26000
3153 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
3154 for ldrd (immediate).
3155
e98d2e6d
PW
31562020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3157
3158 * command.h: Add comment giving the name of class_tui.
3159 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
3160 create the fake command for the help for class_tui.
3161
53a47a3e
TT
31622020-05-26 Tom Tromey <tromey@adacore.com>
3163
3164 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
3165 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
3166 (val_atr): New function.
3167 (value_val_atr): Use it.
3168 * ada-valprint.c (print_optional_low_bound): Change low bound
3169 handling for enums.
3170 (val_print_packed_array_elements): Don't call discrete_position.
3171 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
3172 discrete_position for enum types.
3173 * language.c (default_print_array_index): Change type.
3174 * language.h (struct language_defn) <la_print_array_index>: Add
3175 index_type parameter, change type of index_value.
3176 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
3177 (default_print_array_index): Update.
3178 * valprint.c (maybe_print_array_index): Don't call
3179 value_from_longest. Update.
3180 (value_print_array_elements): Don't call discrete_position.
3181
0bc2354b
TT
31822020-05-26 Tom Tromey <tromey@adacore.com>
3183
3184 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
3185 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
3186
1218a4bf
CDA
31872020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
3188
3189 PR gdb/13519
3190 * avr-tdep.c (avr_integer_to_address): Return data or code
3191 address accordingly to the second 'type' argument of the
3192 function.
3193
92651b1d
MW
31942020-05-25 Michael Weghorn <m.weghorn@posteo.de>
3195
3196 * infcmd.c, inferior.h: (construct_inferior_arguments):
3197 Moved function from here to gdbsupport/common-inferior.{h,cc}
3198
0a4f5f8c
TT
31992020-05-23 Tom Tromey <tom@tromey.com>
3200
3201 Revert commit eca1f90c:
3202 * NEWS: Remove entry for completion styling.
3203 * completer.c (_rl_completion_prefix_display_length): Move
3204 declaration later.
3205 (gdb_fnprint): Revert.
3206 (gdb_display_match_list_1): Likewise.
3207 * cli/cli-style.c (completion_prefix_style)
3208 (completion_difference_style, completion_suffix_style): Remove.
3209 (_initialize_cli_style): Revert.
3210 * cli/cli-style.h (completion_prefix_style)
3211 (completion_difference_style, completion_suffix_style): Don't
3212 declare.
3213
e08bd6c5
PA
32142020-05-24 Pedro Alves <palves@redhat.com>
3215
3216 * symtab.c (completion_list_add_name): Return boolean indication
3217 of whether the symbol matched.
3218 (completion_list_add_symbol): Don't try to remove C++ aliases if
3219 the symbol didn't match in the first place.
3220 * symtab.h (completion_list_add_name): Return bool.
3221
ceacbf6e
SM
32222020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
3223
3224 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
3225 type::field.
3226
26f16254
JB
32272020-05-23 Joel Brobecker <brobecker@adacore.com>
3228
3229 GDB 9.2 released.
3230
eca1f90c
TT
32312020-05-23 Tom Tromey <tom@tromey.com>
3232
3233 * NEWS: Add entry for completion styling.
3234 * completer.c (_rl_completion_prefix_display_length): Move
3235 declaration earlier.
3236 (gdb_fnprint): Use completion_style.
3237 (gdb_display_match_list_1): Likewise.
3238 * cli/cli-style.c (completion_prefix_style)
3239 (completion_difference_style, completion_suffix_style): New
3240 globals.
3241 (_initialize_cli_style): Register new globals.
3242 * cli/cli-style.h (completion_prefix_style)
3243 (completion_difference_style, completion_suffix_style): Declare.
3244
51e2cfa2
PA
32452020-05-23 Pedro Alves <palves@redhat.com>
3246
3247 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
3248 (parse_escape): Use ISDIGIT instead of isdigit.
3249 (puts_debug): Use gdb_isprint instead of isprint.
3250 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
3251 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
3252 ISSPACE instead of isspace.
3253 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
3254 instead of isspace.
3255 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
3256 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
3257 instead of isxdigit and ISDIGIT instead of isdigit.
3258
80fc5e77
SM
32592020-05-22 Simon Marchi <simon.marchi@efficios.com>
3260
3261 * gdbtypes.h (struct type) <field>: New method.
3262 (TYPE_FIELDS): Remove, replace all uses with either type::fields
3263 or type::field.
3264
3cabb6b0
SM
32652020-05-22 Simon Marchi <simon.marchi@efficios.com>
3266
3267 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
3268 (TYPE_FIELDS): Use type::fields. Change all call sites that
3269 modify the propery to use type::set_fields instead.
3270
1f704f76
SM
32712020-05-22 Simon Marchi <simon.marchi@efficios.com>
3272
3273 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
3274 type::num_fields instead.
3275
5e33d5f4
SM
32762020-05-22 Simon Marchi <simon.marchi@efficios.com>
3277
3278 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
3279 methods.
3280 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
3281 that modify the number of fields to use type::set_num_fields
3282 instead.
3283
9392ebb3
TT
32842020-05-22 Tom Tromey <tromey@adacore.com>
3285
3286 * compile/compile-object-load.h (munmap_list_free): Don't
3287 declare.
3288
7c13f4e8
AB
32892020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
3290
3291 * annotate.c (annotate_source_line): Update return type, add call
3292 to update current symtab and line.
3293 * annotate.h (annotate_source_line): Update return type, and
3294 extend header comment.
3295 * source.c (info_line_command): Check annotation_level before
3296 calling annotate_source_line.
3297 * stack.c (print_frame_info): If calling annotate_source_line
3298 returns true, then don't print any other source line information.
3299
aa370940
SM
33002020-05-21 Simon Marchi <simon.marchi@efficios.com>
3301
3302 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
3303
84d53fa9
SM
33042020-05-21 Simon Marchi <simon.marchi@efficios.com>
3305
3306 * coffread.c (patch_type): Remove NULL check before xfree.
3307 * corefile.c (set_gnutarget): Likewise.
3308 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
3309 * exec.c (build_section_table): Likewise.
3310 * remote.c (remote_target::pass_signals): Likewise.
3311 * utils.c (n_spaces): Likewise.
3312 * cli/cli-script.c (document_command): Likewise.
3313 * i386-windows-tdep.c (core_process_module_section): Likewise.
3314 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
3315
9d428aae
SM
33162020-05-20 Simon Marchi <simon.marchi@efficios.com>
3317
3318 * symfile.c (reread_symbols): Clear objfile's section_offsets
3319 vector and section indices, re-compute them by calling
3320 sym_offsets.
3321
250106a7
TT
33222020-05-20 Tom Tromey <tromey@adacore.com>
3323
3324 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
ec16513e 3325 (desc_one_bound, desc_index_type): Compute field name.
250106a7 3326
9a0bacfb
TV
33272020-05-20 Tom de Vries <tdevries@suse.de>
3328
3329 PR symtab/25833
3330 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
3331
7b958a48
AM
33322020-05-20 Alan Modra <amodra@gmail.com>
3333
3334 PR 25993
3335 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
3336 bfd_set_filename.
3337 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
3338 passed to bfd_set_filename.
3339 * symfile-mem.c (add_vsyscall_page): Likewise for string
3340 passed to symbol_file_add_from_memory.
3341 (symbol_file_add_from_memory): Make name param a const char* and
3342 don't strdup.
3343
c7e97679
AM
33442020-05-20 Alan Modra <amodra@gmail.com>
3345
3346 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
3347 rather than accessing bfd->filename directly.
3348 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
3349 and use bfd_section_name.
3350 * dwarf2/frame.c (decode_frame_entry): Likewise.
3351 * exec.c (exec_set_section_address): Likewise.
3352 * solib-aix.c (solib_aix_bfd_open): Likewise.
3353 * stap-probe.c (get_stap_base_address): Likewise.
3354 * symfile.c (reread_symbols): Likewise.
3355
563c591b
TT
33562020-05-19 Tom Tromey <tromey@adacore.com>
3357
3358 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
3359
f408d82c
SM
33602020-05-19 Simon Marchi <simon.marchi@efficios.com>
3361
3362 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
3363
98c59b52
PA
33642020-05-19 Pedro Alves <palves@redhat.com>
3365
3366 * NEWS (set exec-file-mismatch): Adjust entry.
3367 * exec.c: Include "build-id.h".
3368 (validate_exec_file): Try to match build IDs instead of filenames.
3369 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
3370 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
3371 and pass down 'warn_if_slow'.
3372 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
3373 gdb_bfd_open_closure to pass it down.
3374 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
3375
4111f652
PA
33762020-05-19 Pedro Alves <palves@redhat.com>
3377
3378 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
3379 * target.c (target_fileio_open_1): Rename to target_fileio_open
3380 and make extern. Use bool.
3381 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
3382 (target_fileio_read_alloc_1): Adjust.
3383 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
3384 (target_fileio_open_warn_if_slow): Delete declaration.
3385
ad80db5b
PA
33862020-05-19 Pedro Alves <palves@redhat.com>
3387
3388 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
3389 Adjust all callers.
3390
1d6ce4d3
YS
33912020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
3392
3393 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
3394 whether disp is negative.
3395
9005fbbb
SM
33962020-05-19 Simon Marchi <simon.marchi@efficios.com>
3397
3398 * symfile.h (struct symfile_segment_data)
3399 <~symfile_segment_data>: Remove.
3400 <segment_info>: Change to std::vector.
3401 * symfile.c (default_symfile_segments): Update.
3402 * elfread.c (elf_symfile_segments): Update.
3403
68b888ff
SM
34042020-05-19 Simon Marchi <simon.marchi@efficios.com>
3405
3406 * symfile.h (struct symfile_segment_data) <struct segment>: New.
3407 <segments>: New.
3408 <segment_bases, segment_sizes>: Remove.
3409 * symfile.c (default_symfile_segments): Update.
3410 * elfread.c (elf_symfile_segments): Update.
3411 * remote.c (remote_target::get_offsets): Update.
3412 * solib-target.c (solib_target_relocate_section_addresses):
3413 Update.
3414
62982abd
SM
34152020-05-19 Simon Marchi <simon.marchi@efficios.com>
3416
3417 * symfile.h (struct symfile_segment_data): Initialize fields.
3418 <~symfile_segment_data>: Add.
3419 (symfile_segment_data_up): New.
3420 (struct sym_fns) <sym_segments>: Return a
3421 symfile_segment_data_up.
3422 (default_symfile_segments): Return a symfile_segment_data_up.
3423 (free_symfile_segment_data): Remove.
3424 (get_symfile_segment_data): Return a symfile_segment_data_up.
3425 * symfile.c (default_symfile_segments): Likewise.
3426 (get_symfile_segment_data): Likewise.
3427 (free_symfile_segment_data): Remove.
3428 (symfile_find_segment_sections): Update.
3429 * elfread.c (elf_symfile_segments): Return a
3430 symfile_segment_data_up.
3431 * remote.c (remote_target::get_offsets): Update.
3432 * solib-target.c (solib_target_relocate_section_addresses):
3433 Update.
3434 * symfile-debug.c (debug_sym_segments): Return a
3435 symfile_segment_data_up.
3436
7f204339
RO
34372020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3438
e52a0f1b
RO
3439 PR build/25981
3440 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
3441 Hardcode register numbers.
3442
7f204339
RO
3443 PR build/25981
3444 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
3445 procfs_find_LDT_entry): Remove.
3446 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
3447 procfs_find_LDT_entry): Remove.
3448 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
3449 Remove.
3450
7f32a4d5
PA
34512020-05-17 Pedro Alves <palves@redhat.com>
3452 Andrew Burgess <andrew.burgess@embecosm.com>
3453 Keno Fischer <keno@juliacomputing.com>
3454
3455 PR gdb/25741
3456 * breakpoint.c (build_target_condition_list): Update comments.
3457 (build_target_command_list): Update comments and skip matching
3458 locations.
3459 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
3460 a separate function. Simplify "set breakpoint auto-hw off"
3461 handling.
3462 (insert_breakpoints): Update comment.
3463 (tracepoint_locations_match): New parameter. For breakpoints,
3464 compare location types too, if the caller wants to.
3465 (handle_automatic_hardware_breakpoints): New functions.
3466 (bp_location_is_less_than): Also sort by location type and
3467 hardware breakpoint length.
3468 (update_global_location_list): Handle "set breakpoint auto-hw on"
3469 here.
3470 (update_breakpoint_locations): Ask breakpoint_locations_match to
3471 ignore location types.
3472
7d93a1e0
SM
34732020-05-16 Simon Marchi <simon.marchi@efficios.com>
3474
3475 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
3476 type::name instead.
3477
d0e39ea2
SM
34782020-05-16 Simon Marchi <simon.marchi@efficios.com>
3479
3480 * gdbtypes.h (struct type) <name, set_name>: New methods.
3481 (TYPE_CODE): Use type::name. Change all call sites used to set
3482 the name to use type::set_name instead.
3483
2dab0c7b
TT
34842020-05-16 Tom Tromey <tom@tromey.com>
3485
3486 * top.c (quit_force): Update.
3487 * infrun.c (handle_no_resumed): Update.
3488 * top.h (all_uis): New function.
3489 (ALL_UIS): Remove.
3490
59f7bd8d
SM
34912020-05-16 Simon Marchi <simon.marchi@efficios.com>
3492
3493 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
3494
9bf058f0
PA
34952020-05-16 Pedro Alves <palves@redhat.com>
3496
3497 * ia64-linux-nat.c
3498 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
3499 Declare method.
3500 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
3501
8f86ae1a
SM
35022020-05-15 Simon Marchi <simon.marchi@efficios.com>
3503
3504 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
3505 (sparc64_adi_info): Likewise.
3506
d6bc0792
TT
35072020-05-15 Tom Tromey <tom@tromey.com>
3508
3509 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
3510 block_objfile.
3511 (lookup_objfile_from_block): Remove.
3512 (lookup_symbol_in_block, lookup_symbol_in_static_block)
3513 (lookup_global_symbol): Use block_objfile.
3514 * symtab.h (lookup_objfile_from_block): Don't declare.
3515 * printcmd.c (clear_dangling_display_expressions): Use
3516 block_objfile.
3517 * parse.c (operator_check_standard): Use block_objfile.
3518
8c14c3a3
TT
35192020-05-15 Tom Tromey <tom@tromey.com>
3520
3521 * language.c (language_alloc_type_symbol): Set
3522 SYMBOL_SECTION.
3523 * symtab.c (initialize_objfile_symbol): Remove.
3524 (allocate_symbol): Remove.
3525 (allocate_template_symbol): Remove.
3526 * dwarf2/read.c (fixup_go_packaging): Use "new".
3527 (new_symbol): Use "new".
3528 (read_variable): Don't call initialize_objfile_symbol. Use
3529 "new".
3530 (read_func_scope): Use "new".
3531 * xcoffread.c (process_xcoff_symbol): Don't call
3532 initialize_objfile_symbol.
3533 (SYMBOL_DUP): Remove.
3534 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
3535 "new".
3536 * symtab.h (allocate_symbol, initialize_objfile_symbol)
3537 (allocate_template_symbol): Don't declare.
3538 (struct symbol): Add copy constructor. Change defaults.
3539 * jit.c (finalize_symtab): Use "new".
3540 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
3541 Use "new".
3542 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
3543 (common_block_end): Use "new".
3544 * mdebugread.c (parse_symbol): Use "new".
3545 (new_symbol): Likewise.
3546
5b4a1a8d
PW
35472020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3548
3549 * NEWS: Mention changes to help and apropos.
3550
57b4f16e
PW
35512020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3552
3553 * command.h (enum command_class): Improve comments, document
3554 that class_alias is for user-defined aliases, give the class
3555 name for each class, remove unused class_xdb.
3556 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
3557 * breakpoint.c (_initialize_breakpoint): Replace class_alias
3558 by a precise class.
3559 * infcmd.c (_initialize_infcmd): Likewise.
3560 * reverse.c (_initialize_reverse): Likewise.
3561 * stack.c (_initialize_stack): Likewise.
3562 * symfile.c (_initialize_symfile): Likewise.
3563 * tracepoint.c (_initialize_tracepoint): Likewise.
3564
7c05caf7
PW
35652020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3566
3567 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
3568 when their aliased command is traversed.
3569 (help_cmd): Add fput_command_names_styled call to
3570 output command name and aliases when command has an alias.
3571
3b3aaacb
PW
35722020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3573
3574 * cli/cli-decode.h (help_cmd_list): Remove declaration.
3575 * cli/cli-decode.c (help_cmd_list): Declare as static,
3576 remove prefix argument, use bool for recurse arg, rework to show the aliases of
3577 a command together with the command.
3578 (fput_command_name_styled, fput_command_names_styled): New functions.
3579 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
3580 fput_command_name_styled.
3581 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
3582 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
3583
7aa1b46f
PW
35842020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3585
3586 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
3587 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
3588 * command.h (cmd_show_list): Likewise.
3589 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
3590 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
3591
89bcba74
PW
35922020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3593
3594 * unittests/command-def-selftests.c (traverse_command_structure):
3595 Verify all commands of a list have the same prefix command and
3596 that only the top cmdlist commands have a null prefix.
3597
3f4d92eb
PW
35982020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3599
3600 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
3601 as prefix, not one of its aliases.
3602 (set_cmd_prefix): Remove.
3603 (do_add_cmd): Centralize the setting of the prefix of a command, when
3604 command is defined after its full chain of prefix commands.
3605 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
3606 (add_setshow_cmd_full): Likewise.
3607 (update_prefix_field_of_prefixed_commands): New function.
3608 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
3609 update_prefix_field_of_prefixed_commands.
3610 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
3611 addresses of remote_set_cmdlist and remote_show_cmdlist given
3612 as argument, not the address of an argument.
3613 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
3614 * gdb/remote.c (_initialize_remote): Likewise.
3615
0605465f
PW
36162020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3617
3618 * cli/cli-cmds.c (alias_command): Check for an existing alias
3619 using lookup_cmd_composition, as valid_command_p is too strict
3620 and forbids aliases that are the prefix of an existing alias
3621 or command.
3622 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
3623 command is properly recognised as a valid command.
3624
58e6ac70
PW
36252020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3626
3627 * unittests/help-doc-selftests.c: Rename to
3628 unittests/command-def-selftests.c
3629 * unittests/command-def-selftests.c (help_doc_tests): Update some
3630 comments.
3631 (command_structure_tests, traverse_command_structure): New namespace
3632 and function.
3633 (command_structure_invariants_tests): New function.
3634 (_initialize_command_def_selftests) Renamed from
3635 _initialize_help_doc_selftests, register command_structure_invariants
3636 selftest.
3637
a7b9ceb8
PW
36382020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3639
3640 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
3641 an alias of 'show'.
3642
b2188a06
JB
36432020-05-15 Joel Brobecker <brobecker@adacore.com>
3644
3645 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
3646 ada_is_fixed_point_type. Update all callers.
3647 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
3648 all callers.
3649 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
3650 Update all callers.
3651 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
3652 print_fixed_point_type. Update all callers.
3653 * ada-valprint.c (ada_value_print_num): Replace call to
3654 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
3655
a51951c2
KB
36562020-05-14 Kevin Buettner <kevinb@redhat.com>
3657
3658 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
3659 processors.
3660 (cpu_supports_bts): Add CV_AMD case.
3661
29d6859f
LM
36622020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
3663 Simon Marchi <simon.marchi@efficios.com>
3664
3665 * infrun.c (stop_all_threads): Collect multiple wait events at
3666 each pass.
3667
78134374
SM
36682020-05-14 Simon Marchi <simon.marchi@efficios.com>
3669
3670 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
3671 type::code instead.
3672
67607e24
SM
36732020-05-14 Simon Marchi <simon.marchi@efficios.com>
3674
3675 * gdbtypes.h (struct type) <code, set_code>: New methods.
3676 (TYPE_CODE): Use type::code. Change all call sites used to set
3677 the code to use type::set_code instead.
3678
a05575d3
TBA
36792020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3680 Tom de Vries <tdevries@suse.de>
3681 Pedro Alves <palves@redhat.com>
3682
3683 PR threads/25478
3684 * infrun.c (stop_all_threads): Do NOT ignore
3685 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
3686 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
3687 received.
3688 (handle_no_resumed): Remove code handling a live inferior with no
3689 threads.
3690 * remote.c (has_single_non_exited_thread): New.
3691 (remote_target::update_thread_list): Do not delete a thread if is
3692 the last thread of the process.
3693 * thread.c (thread_select): Call delete_exited_threads instead of
3694 prune_threads.
3695
6ad82919
TBA
36962020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3697
3698 * infrun.c (stop_all_threads): Enable/disable thread events of all
3699 targets. Move a debug message denoting the end of the function
3700 into the SCOPED_EXIT block.
3701
d890404b
TBA
37022020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3703
3704 * process-stratum-target.h: Include <set>.
3705 (all_non_exited_process_targets, switch_to_target_no_thread): New
3706 function declarations.
3707 * process-stratum-target.c (all_non_exited_process_targets)
3708 (switch_to_target_no_thread): New function implementations.
3709
293b3ebc
TBA
37102020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3711
3712 * infrun.c (handle_inferior_event): Extract out a piece of code
3713 into...
3714 (mark_non_executing_threads): ...this new function.
3715
7ca9b62a
TBA
37162020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3717
3718 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
3719 use.
3720
fc75c28b
TBA
37212020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3722
3723 * regcache.c (regcache_read_pc_protected): New function
3724 implementation that returns 0 if the PC cannot read via
3725 'regcache_read_pc'.
3726 * infrun.c (proceed): Call 'regcache_read_pc_protected'
3727 instead of 'regcache_read_pc'.
3728 (keep_going_pass_signal): Ditto.
3729
a89febbd
TT
37302020-05-13 Tom Tromey <tromey@adacore.com>
3731
3732 * ada-lang.c (align_value): Remove.
3733 (ada_template_to_fixed_record_type_1): Use align_up.
3734
f7e23710
TBA
37352020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3736
3737 * async-event.c: Update the copyright year.
3738 * async-event.h: Update the copyright year.
3739
02ff80c2
SM
37402020-05-12 Simon Marchi <simon.marchi@efficios.com>
3741
3742 * objfiles.h (is_addr_in_objfile,
3743 shared_objfile_contains_address_p): Return bool.
3744 * objfile.c (is_addr_in_objfile,
3745 shared_objfile_contains_address_p): Return bool.
3746
4fd6c7e8
TT
37472020-05-11 Tom Tromey <tromey@adacore.com>
3748
3749 * cli/cli-cmds.c (info_command): Restore.
3750 (_initialize_cli_cmds): Use add_prefix_command for "info".
3751 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
3752
5eb68a39
TT
37532020-05-11 Tom Tromey <tromey@adacore.com>
3754
3755 * ada-lang.c (ada_value_primitive_field): Now public.
3756 * ada-lang.h (ada_value_primitive_field): Declare.
3757 * ada-valprint.c (print_field_values): Use
3758 ada_value_primitive_field for wrapper fields.
3759
7666722f
TV
37602020-05-11 Tom de Vries <tdevries@suse.de>
3761
3762 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
3763 MODULE_DOMAIN.
3764
3ee6bb11
TV
37652020-05-11 Tom de Vries <tdevries@suse.de>
3766
3767 PR symtab/25941
3768 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
3769 with length 0, if not gdb-produced.
3770 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
3771
43434996
TV
37722020-05-09 Tom de Vries <tdevries@suse.de>
3773
3774 PR gdb/25955
3775 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
3776 calculation.
3777
2f78cffc
TT
37782020-05-09 Tom Tromey <tom@tromey.com>
3779
3780 * top.c (server_command): Now bool.
3781 * top.h (server_command): Now bool.
3782
4f7bc5ed
TT
37832020-05-08 Tom Tromey <tromey@adacore.com>
3784
3785 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
3786 already being processed.
3787
8be4b118
TT
37882020-05-08 Tom Tromey <tom@tromey.com>
3789
3790 * printcmd.c (struct display) <next>: Remove.
3791 <display>: New constructor.
3792 <exp_string>: Now a std::string.
3793 <enabled_p>: Now a bool.
3794 (display_number): Move definition earlier.
3795 (displays): Rename from display_chain. Now a std::vector.
3796 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
3797 (display_command): Update.
3798 (do_one_display, disable_display)
3799 (enable_disable_display_command, do_enable_disable_display):
3800 Update.
3801 (free_display): Remove.
3802 (clear_displays): Rewrite.
3803 (delete_display): Update.
3804 (map_display_numbers): Use function_view. Remove "data"
3805 parameter. Update.
3806 (do_delete_display): Remove.
3807 (undisplay_command): Update.
3808 (do_one_display, do_displays, disable_display)
3809 (info_display_command): Update.
3810 (do_enable_disable_display): Remove.
3811 (enable_disable_display_command)
3812 (clear_dangling_display_expressions): Update.
3813
94c93c35
TT
38142020-05-08 Tom Tromey <tom@tromey.com>
3815
3816 * symtab.c (set_symbol_cache_size)
3817 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
3818 (maintenance_print_symbol_cache_statistics): Update.
3819 * symmisc.c (print_symbol_bcache_statistics)
3820 (print_objfile_statistics, maintenance_print_objfiles)
3821 (maintenance_info_symtabs, maintenance_check_symtabs)
3822 (maintenance_expand_symtabs, maintenance_info_line_tables):
3823 Update.
3824 * symfile-debug.c (set_debug_symfile): Update.
3825 * source.c (forget_cached_source_info): Update.
3826 * python/python.c (gdbpy_progspaces): Update.
3827 * psymtab.c (maintenance_info_psymtabs): Update.
3828 * probe.c (parse_probes): Update.
3829 * linespec.c (iterate_over_all_matching_symtabs)
3830 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
3831 * guile/scm-progspace.c (gdbscm_progspaces): Update.
3832 * exec.c (exec_target::close): Update.
3833 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
3834 * breakpoint.c (print_one_breakpoint_location)
3835 (create_longjmp_master_breakpoint)
3836 (create_std_terminate_master_breakpoint): Update.
3837 * progspace.c (program_spaces): Now a std::vector.
3838 (maybe_new_address_space): Update.
3839 (add_program_space): Remove.
3840 (program_space::program_space): Update.
3841 (remove_program_space): Update.
3842 (number_of_program_spaces): Remove.
3843 (print_program_space, update_address_spaces): Update.
3844 * progspace.h (program_spaces): Change type.
3845 (ALL_PSPACES): Remove.
3846 (number_of_program_spaces): Don't declare.
3847 (struct program_space) <next>: Remove.
3848
a1fd1ac9
TT
38492020-05-08 Tom Tromey <tom@tromey.com>
3850
3851 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
3852 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
3853 (enable_break): Update.
3854 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
3855 (frv_fdpic_find_canonical_descriptor): Update.
3856 (frv_fetch_objfile_link_map): Update.
3857 * progspace.c (program_space::free_all_objfiles): Update.
3858 (program_space::solibs): New method.
3859 * progspace.h (struct program_space) <solibs>: New method.
3860 * solist.h (master_so_list): Don't declare.
3861 (ALL_SO_LIBS): Remove.
3862 * solib.h (so_list_head): Remove.
3863 (update_solib_list): Update comment.
3864 * solib.c (master_so_list): Remove.
3865 (solib_used, update_solib_list, solib_add)
3866 (info_sharedlibrary_command, clear_solib)
3867 (reload_shared_libraries_1, remove_user_added_objfile): Update.
3868
38eae084
TT
38692020-05-08 Tom Tromey <tom@tromey.com>
3870
3871 * extension.c (extension_languages): Now a std::array.
3872 (ALL_EXTENSION_LANGUAGES): Remove.
3873 (get_ext_lang_defn, get_ext_lang_of_file)
3874 (eval_ext_lang_from_control_command): Update.
3875 (finish_ext_lang_initialization)
3876 (auto_load_ext_lang_scripts_for_objfile)
3877 (ext_lang_type_printers::ext_lang_type_printers)
3878 (apply_ext_lang_type_printers)
3879 (ext_lang_type_printers::~ext_lang_type_printers)
3880 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
3881 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
3882 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
3883 (get_matching_xmethod_workers, ext_lang_colorize)
3884 (ext_lang_before_prompt): Update.
3885 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
3886
596dc4ad
TT
38872020-05-08 Tom Tromey <tom@tromey.com>
3888
3889 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
3890 overload.
3891 <swap_string, m_string>: Remove.
3892 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
3893 Update.
3894 * stabsread.c (define_symbol, read_type): Update.
3895 * linespec.c (find_linespec_symbols): Update.
3896 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
3897 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
3898 * dbxread.c (read_dbx_symtab): Update.
3899 * cp-support.h (cp_canonicalize_string_full)
3900 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
3901 Return unique_xmalloc_ptr.
3902 * cp-support.c (inspect_type): Update.
3903 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
3904 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
3905 Likewise.
3906 * c-typeprint.c (print_name_maybe_canonical): Update.
3907 * break-catch-throw.c (check_status_exception_catchpoint):
3908 Update.
3909
bf4cb9be
TV
39102020-05-08 Tom de Vries <tdevries@suse.de>
3911
3912 * infrun.c (follow_fork): Copy current_line and current_symtab to
3913 child thread.
3914
a1b68f28
SM
39152020-05-07 Simon Marchi <simon.marchi@efficios.com>
3916
3917 * async-event.c (struct async_signal_handler, struct
3918 async_event_handler): Reformat, remove typedef.
3919
98d48915
SM
39202020-05-07 Simon Marchi <simon.marchi@efficios.com>
3921
3922 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
3923 access thistype->main_type->dyn_prop_list directly.
3924
7aa91313
SM
39252020-05-07 Simon Marchi <simon.marchi@efficios.com>
3926
3927 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
3928 (remove_dyn_prop): Remove. Update all users to use
3929 type::remove_dyn_prop.
3930 * gdbtypes.c (remove_dyn_prop): Rename to...
3931 (type::remove_dyn_prop): ... this.
3932
5c54719c
SM
39332020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
3934
3935 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
3936 (add_dyn_prop): Remove. Update all users to use
3937 type::add_dyn_prop.
3938 * gdbtypes.c (add_dyn_prop): Rename to...
3939 (type::add_dyn_prop): ... this.
3940
24e99c6c
SM
39412020-05-07 Simon Marchi <simon.marchi@efficios.com>
3942
3943 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
3944 (get_dyn_prop): Remove. Update all users to use
3945 type::dyn_prop.
3946 * gdbtypes.c (get_dyn_prop): Rename to...
3947 (type::dyn_prop): ... this.
3948
0d4bf016
SM
39492020-05-06 Simon Marchi <simon.marchi@efficios.com>
3950
3951 * gdbtypes.h (struct main_type) <flag_static>: Remove.
3952
ac4a4f1c
SM
39532020-05-06 Simon Marchi <simon.marchi@efficios.com>
3954
3955 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
3956 instruction, skip it if it's there.
3957
a3bbacc1
SM
39582020-05-05 Simon Marchi <simon.marchi@efficios.com>
3959
3960 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
3961
c3236f84
SM
39622020-05-04 Simon Marchi <simon.marchi@efficios.com>
3963
3964 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
3965 * gdbtypes.c (recursive_dump_type): Remove use of
3966 TYPE_INCOMPLETE.
3967
3b6acaee
TT
39682020-05-03 Tom Tromey <tom@tromey.com>
3969
3970 * breakpoint.c (catch_command, tcatch_command): Remove.
3971 (_initialize_breakpoint): Use add_basic_prefix_cmd,
3972 add_show_prefix_cmd.
3973 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
3974 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
3975 Remove.
3976 (add_internal_problem_command): Use add_basic_prefix_cmd,
3977 add_show_prefix_cmd.
3978 * mips-tdep.c (set_mipsfpu_command): Remove.
3979 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
3980 * dwarf2/index-cache.c (set_index_cache_command): Remove.
3981 (_initialize_index_cache): Use add_basic_prefix_cmd.
3982 * memattr.c (dummy_cmd): Remove.
3983 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
3984 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
3985 (_initialize_tui_win): Use add_basic_prefix_cmd,
3986 add_show_prefix_cmd.
3987 * cli/cli-logging.c (set_logging_command): Remove.
3988 (_initialize_cli_logging): Use add_basic_prefix_cmd,
3989 add_show_prefix_cmd.
3990 (show_logging_command): Remove.
3991 * target.c (target_command): Remove.
3992 (add_target): Use add_basic_prefix_cmd.
3993
a51119cd
HD
39942020-05-02 Hannes Domani <ssbssa@yahoo.de>
3995
3996 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
3997
652fc23a 39982020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 3999
652fc23a
PW
4000 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
4001 info_command.
4002
117539e6
KR
40032020-04-30 Kamil Rytarowski <n54@gmx.com>
4004
4005 * nbsd-nat.c (nbsd_enable_proc_events)
4006 (nbsd_nat_target::post_startup_inferior): Add.
4007 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
4008 (nbsd_nat_target::update_thread_list): Rewrite.
4009 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
4010 "PTRACE_LWP_CREATE".
4011 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
4012
102e38eb 40132020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 4014
102e38eb
PW
4015 * stack.c (_initialize_stack): Remove duplicated creation
4016 of "frame" command and "f" alias.
4017
ee9d1e5f
HD
40182020-04-30 Hannes Domani <ssbssa@yahoo.de>
4019
4020 PR gdb/18706
4021 * gdbtypes.c (check_typedef): Calculate size of array of
4022 stubbed type.
4023
627c7fb8
HD
40242020-04-30 Hannes Domani <ssbssa@yahoo.de>
4025
4026 PR gdb/15559
4027 * i386-tdep.c (i386_push_dummy_call): Call
4028 i386_thiscall_push_dummy_call.
4029 (i386_thiscall_push_dummy_call): New function.
4030 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
4031 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
4032 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
4033
ffc2844e
SM
40342020-04-29 Simon Marchi <simon.marchi@efficios.com>
4035
4036 * gdbarch.sh (do_read): Add shellcheck disable directive for
4037 warning SC2162.
4038
1207375d
SM
40392020-04-29 Simon Marchi <simon.marchi@efficios.com>
4040
4041 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
4042 "referenced but not assigned" warning.
4043
9fdb2916
SM
40442020-04-29 Simon Marchi <simon.marchi@efficios.com>
4045
4046 * gdbarch.sh: Remove code that sets fallbackdefault.
4047
759cea5e
SM
40482020-04-29 Simon Marchi <simon.marchi@efficios.com>
4049
4050 * gdbarch.sh: Use shell operators && and || instead of
4051 -a and -o.
4052
cb02ab24
SM
40532020-04-29 Simon Marchi <simon.marchi@efficios.com>
4054
4055 * gdbarch.sh: Use $(...) instead of `...`.
4056
a6fc5ffc
SM
40572020-04-29 Simon Marchi <simon.marchi@efficios.com>
4058
4059 * gdbarch.sh: Use double quotes around variables.
4060
8d113d13
SM
40612020-04-29 Simon Marchi <simon.marchi@efficios.com>
4062
4063 * gdbarch.sh: Use %s with printf, instead of variables in the
4064 format string.
4065
ed6acedd
TT
40662020-04-29 Tom Tromey <tromey@adacore.com>
4067
4068 PR ada/25875:
4069 * dwarf2/read.c (update_enumeration_type_from_children): Compute
4070 type fields here.
4071 (read_enumeration_type): Call
4072 update_enumeration_type_from_children later. Update comments.
4073 (process_enumeration_scope): Don't create type fields.
4074
b68b1b58
KR
40752020-04-29 Kamil Rytarowski <n54@gmx.com>
4076
4077 * nbsd-tdep.c: Include "xml-syscall.h".
4078 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
4079
f94b2e03
KR
40802020-04-29 Kamil Rytarowski <n54@gmx.com>
4081
4082 * nbsd-nat.c: Include "sys/wait.h".
4083 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
4084 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
4085 (nbsd_nat_target::remove_exec_catchpoint)
4086 (nbsd_nat_target::set_syscall_catchpoint): Add.
4087 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
4088 (nbsd_nat_target::insert_exec_catchpoint)
4089 (nbsd_nat_target::remove_exec_catchpoint)
4090 (nbsd_nat_target::set_syscall_catchpoint): Add.
4091 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
4092 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
4093 `nbsd_get_syscall_number'.
4094
fc49bc72
TT
40952020-04-29 Tom Tromey <tom@tromey.com>
4096
4097 * stack.c (print_block_frame_labels): Remove.
4098
d642b692
HD
40992020-04-29 Hannes Domani <ssbssa@yahoo.de>
4100
4101 PR gdb/17320
4102 * ada-valprint.c (val_print_packed_array_elements): Move array
4103 end bracket to new line.
4104 (ada_val_print_string): Remove extra spaces before first array
4105 element.
4106 * c-valprint.c (c_value_print_array): Likewise.
4107 * m2-valprint.c (m2_print_array_contents): Likewise.
4108 (m2_value_print_inner): Likewise.
4109 * p-valprint.c (pascal_value_print_inner): Likewise.
4110 * valprint.c (generic_val_print_array): Likewise.
4111 (value_print_array_elements): Move first array element and array
4112 end bracket to new line.
4113
ea90f227
TV
41142020-04-29 Tom de Vries <tdevries@suse.de>
4115
4116 PR symtab/25889
4117 * linespec.c (find_method): Fix ix calculation.
4118
4498ef4f
KR
41192020-04-28 Kamil Rytarowski <n54@gmx.com>
4120
4121 * syscalls/update-netbsd.sh: New file.
4122 * syscalls/netbsd.xml: Regenerate.
4123 * data-directory/Makefile.in: Register `netbsd.xml' in
4124 `SYSCALLS_FILES'.
4125
a55e30b5
SM
41262020-04-28 Simon Marchi <simon.marchi@efficios.com>
4127
4128 * syscalls/update-freebsd.sh: Add double quotes.
4129
2b2fbab8
TT
41302020-04-28 Tom Tromey <tom@tromey.com>
4131
4132 * NEWS: Update.
4133 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
4134 (cmdpy_init): Allow class_tui.
4135
a65189c9
TV
41362020-04-28 Mark Williams <mark@myosotissp.com>
4137
4138 PR gdb/24480
4139 * dwarf2read.c: Add missing assingments to list_in_scope when
4140 start_symtab was already called.
4141
1b95cdb7
SM
41422020-04-28 Simon Marchi <simon.marchi@efficios.com>
4143
4144 PR gdb/25881
4145 * dwarf2/read.c (offset_map_type): Use
4146 gdb:hash_enum<sect_offset> as hash function.
4147
15cd93d0
TV
41482020-04-28 Tom de Vries <tdevries@suse.de>
4149
4150 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
4151 with DW_AT_signature.
4152
1eb39914
SM
41532020-04-27 Simon Marchi <simon.marchi@efficios.com>
4154
4155 * configure.ac: Remove check for fs_base/gs_base in
4156 user_regs_struct.
4157 * configure: Re-generate.
4158 * config.in: Re-generate.
4159 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
4160 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
4161 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
4162
991a3e2e
LM
41632020-04-27 Luis Machado <luis.machado@linaro.org>
4164
4165 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
4166 problematic inline frame unwinding situation.
4167 * frame.c (frame_id_computed_p): New function.
4168 * frame.h (frame_id_computed_p): New prototype.
4169
361ba0e8
TT
41702020-04-26 Tom Tromey <tom@tromey.com>
4171
4172 * command.h (enum command_class) <class_pseudo>: Remove.
4173
bc3609fd
PW
41742020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4175
4176 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
4177 and whitespace.
4178
b9771db7
KR
41792020-04-25 Kamil Rytarowski <n54@gmx.com>
4180
ec16513e
SM
4181 * inf-ptrace.c (inf_ptrace_target::wait): Remove
4182 `PT_GET_PROCESS_STATE' block.
b9771db7 4183
7151c1af
TT
41842020-04-24 Tom Tromey <tom@tromey.com>
4185
4186 * symtab.h (symbol_get_demangled_name): Don't declare.
4187 * symtab.c (symbol_get_demangled_name): Remove.
4188 (general_symbol_info::natural_name)
4189 (general_symbol_info::demangled_name): Update.
4190
906bb4c5
TT
41912020-04-24 Tom Tromey <tom@tromey.com>
4192
4193 PR rust/25025:
4194 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
4195
bcfe6157
TT
41962020-04-24 Tom Tromey <tom@tromey.com>
4197
4198 PR symtab/12707:
4199 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
4200 exists.
4201 (new_symbol): Likewise.
4202 * compile/compile-object-load.c (get_out_value_type): Use
4203 symbol_matches_search_name.
4204
f049a313
TT
42052020-04-24 Tom Tromey <tom@tromey.com>
4206
4207 * dwarf2/read.c (add_partial_symbol): Do not call
4208 compute_and_set_names.
4209
76e288d1
TT
42102020-04-24 Tom Tromey <tom@tromey.com>
4211
4212 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
4213 overload.
4214
2467f4f6
TT
42152020-04-24 Tom Tromey <tom@tromey.com>
4216
4217 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
4218 (add_psymbol_to_list): New overload. Make old overload call new
4219 one.
4220 * psympriv.h (add_psymbol_to_list): New overload.
4221
e61108c9
TT
42222020-04-24 Tom Tromey <tom@tromey.com>
4223
4224 * dwarf2/read.c (partial_die_info::read) <case
4225 DW_AT_linkage_name>: Use value_as_string.
4226 (dwarf2_string_attr): Use value_as_string.
4227 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
4228 method.
4229 * dwarf2/attribute.c (attribute::value_as_string): New method.
4230
8c87a452
TT
42312020-04-24 Tom Tromey <tom@tromey.com>
4232
4233 * symtab.c (general_symbol_info::natural_name)
4234 (general_symbol_info::demangled_name): Check for language_rust.
4235
787de330
TT
42362020-04-24 Tom Tromey <tom@tromey.com>
4237
4238 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
4239 (dwarf2_physname): ... from here.
4240 (partial_die_info::read): Add Rust "{" hack.
4241
ff985671
TT
42422020-04-24 Tom Tromey <tom@tromey.com>
4243
4244 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
4245 method.
4246 (symbol_set_demangled_name): Don't declare.
4247 * symtab.c (general_symbol_info::set_demangled_name): Rename from
4248 symbol_set_demangled_name.
4249 (general_symbol_info::set_language)
4250 (general_symbol_info::compute_and_set_names): Update.
4251 * minsyms.c (minimal_symbol_reader::install): Update.
4252 * dwarf2/read.c (new_symbol): Update.
4253
1acda803
TT
42542020-04-24 Tom Tromey <tromey@adacore.com>
4255
4256 PR python/23662:
4257 * python/py-type.c (convert_field): Handle
4258 FIELD_LOC_KIND_DWARF_BLOCK.
4259 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
4260 (typy_get_dynamic): Nw function.
4261 (type_object_getset): Add "dynamic".
4262 * NEWS: Add entry.
4263
d656f129
TT
42642020-04-24 Tom Tromey <tromey@adacore.com>
4265
4266 * ada-typeprint.c (print_choices, print_variant_part)
4267 (print_record_field_types_dynamic): New functions.
4268 (print_record_field_types): Use print_record_field_types_dynamic.
4269
7d79de9a
TT
42702020-04-24 Tom Tromey <tromey@adacore.com>
4271
4272 * dwarf2/read.c (handle_data_member_location): New overload.
4273 (dwarf2_add_field): Use it.
4274 (decode_locdesc): Add "computed" parameter. Update comment.
4275 * gdbtypes.c (is_dynamic_type_internal): Also look for
4276 FIELD_LOC_KIND_DWARF_BLOCK.
4277 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
4278 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
4279 virtual base classes.
4280 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
4281 FIELD_LOC_KIND_DWARF_BLOCK.
4282
f8e89861
TT
42832020-04-24 Tom Tromey <tromey@adacore.com>
4284
4285 * dwarf2/read.c (read_structure_type): Handle dynamic length.
4286 * gdbtypes.c (is_dynamic_type_internal): Check
4287 TYPE_HAS_DYNAMIC_LENGTH.
4288 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
4289 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
4290 New macros.
4291 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
4292 constant.
4293
9c6a1327
TT
42942020-04-24 Tom Tromey <tromey@adacore.com>
4295
4296 * dwarf2/read.c (struct variant_field): Rewrite.
4297 (struct variant_part_builder): New.
4298 (struct nextfield): Remove "variant" field. Add "offset".
4299 (struct field_info): Add "current_variant_part" and
4300 "variant_parts".
4301 (alloc_discriminant_info): Remove.
4302 (alloc_rust_variant): New function.
4303 (quirk_rust_enum): Update.
4304 (dwarf2_add_field): Set "offset" member. Don't handle
4305 DW_TAG_variant_part.
4306 (offset_map_type): New typedef.
4307 (convert_variant_range, create_one_variant)
4308 (create_one_variant_part, create_variant_parts)
4309 (add_variant_property): New functions.
4310 (dwarf2_attach_fields_to_type): Call add_variant_property.
4311 (read_structure_type): Don't handle DW_TAG_variant_part.
4312 (handle_variant_part, handle_variant): New functions.
4313 (handle_struct_member_die): Use them.
4314 (process_structure_scope): Don't handle variant parts.
4315 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
4316 (struct discriminant_info): Remove.
4317 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
4318 (struct main_type) <flag_discriminated_union>: Remove.
4319 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
4320 (rust_enum_variant): Return int. Remove "contents". Rewrite.
4321 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
4322 Update.
4323 * valops.c (value_union_variant): Remove.
4324 * value.h (value_union_variant): Don't declare.
4325
b249d2c2
TT
43262020-04-24 Tom Tromey <tromey@adacore.com>
4327
4328 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
4329 (ada_value_primitive_packed_val): Update.
4330 * ada-valprint.c (ada_value_print_1): Update.
4331 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
4332 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
4333 just an address. Use evaluate_for_locexpr_baton.
4334 (dwarf2_evaluate_property): Update.
4335 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
4336 array_view.
4337 * findvar.c (default_read_var_value): Update.
4338 * gdbtypes.c (compute_variant_fields_inner)
4339 (resolve_dynamic_type_internal): Update.
4340 (resolve_dynamic_type): Change type of valaddr parameter.
4341 * gdbtypes.h (resolve_dynamic_type): Update.
4342 * valarith.c (value_subscripted_rvalue): Update.
4343 * value.c (value_from_contents_and_address): Update.
4344
61122aa9
TT
43452020-04-24 Tom Tromey <tromey@adacore.com>
4346
4347 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
4348 "push_initial_value" parameter.
4349 (dwarf2_evaluate_property): Likewise.
4350 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
4351
ef83a141
TT
43522020-04-24 Tom Tromey <tromey@adacore.com>
4353
4354 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
4355 (variant::matches, compute_variant_fields_recurse)
4356 (compute_variant_fields_inner, compute_variant_fields): New
4357 functions.
4358 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
4359 Use resolved_type after type is made.
4360 (operator==): Add new cases.
4361 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
4362 (struct discriminant_range, struct variant, struct variant_part):
4363 New.
4364 (union dynamic_prop_data) <variant_parts, original_type>: New
4365 members.
4366 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
4367 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
4368 constants.
4369 * value.c (unpack_bits_as_long): Now public.
4370 * value.h (unpack_bits_as_long): Declare.
4371
675127ec
TT
43722020-04-24 Tom Tromey <tromey@adacore.com>
4373
4374 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
4375 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
4376
9852ceef
HD
43772020-04-24 Hannes Domani <ssbssa@yahoo.de>
4378
4379 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
4380
7632c6ce
KR
43812020-04-24 Kamil Rytarowski <n54@gmx.com>
4382
4383 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
4384 (remove_fork_catchpoint, post_startup_inferior)
4385 (post_attach): Move...
4386 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
4387 (remove_fork_catchpoint, post_startup_inferior)
4388 (post_attach): ...here.
4389 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
4390 (remove_fork_catchpoint, post_startup_inferior)
4391 (post_attach): Move...
4392 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
4393 (remove_fork_catchpoint, post_startup_inferior)
4394 (post_attach): ...here.
4395
7be2bb4f
TT
43962020-04-24 Tom Tromey <tromey@adacore.com>
4397
4398 * nat/windows-nat.h (struct windows_thread_info)
4399 <pc_adjusted>: New member.
4400 * windows-nat.c (windows_fetch_one_register): Check
4401 pc_adjusted.
4402 (windows_nat_target::get_windows_debug_event)
4403 (windows_nat_target::wait): Set pc_adjusted.
4404
f80cb3b4
TV
44052020-04-24 Tom de Vries <tdevries@suse.de>
4406
4407 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
4408 Run gdb-add-index inside temp dir.
4409
29514b87
TT
44102020-04-23 Tom Tromey <tromey@adacore.com>
4411
4412 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
4413 in loop.
4414
5939967b
LM
44152020-04-23 Luis Machado <luis.machado@linaro.org>
4416
4417 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
4418 get_frame_register instead of gdbarch_unwind_pc.
4419
70bc38f5
TV
44202020-04-23 Tom de Vries <tdevries@suse.de>
4421
4422 * symtab.c (lookup_global_symbol): Prefer def over decl.
4423
de82891c
TV
44242020-04-23 Tom de Vries <tdevries@suse.de>
4425
4426 PR symtab/25807
4427 * block.c (best_symbol, better_symbol): Promote to external.
4428 * block.h (best_symbol, better_symbol): Declare.
4429 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
4430 decl.
4431
ecc6c606
TT
44322020-04-23 Tom Tromey <tromey@adacore.com>
4433
4434 PR ada/25837:
4435 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
4436 "const char *", not a "const std::string &".
4437 <name_and_matcher::operator==>: Update.
4438 * unittests/lookup_name_info-selftests.c: Change type of
4439 "result".
4440
740480b8
TT
44412020-04-23 Tom Tromey <tom@tromey.com>
4442
4443 * inferior.h (iterate_over_inferiors): Don't declare.
4444 * inferior.c (iterate_over_inferiors): Remove.
4445 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
4446 Remove.
4447 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
4448 use iterate_over_inferiors.
4449 (darwin_resume_inferior_it)
4450 (struct resume_inferior_threads_param)
4451 (darwin_resume_inferior_threads_it): Remove.
4452 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
4453
ae3ab1f0
TV
44542020-04-23 Tom de Vries <tdevries@suse.de>
4455
4456 * blockframe.c (find_pc_partial_function): Use
4457 find_pc_sect_compunit_symtab rather than
4458 objfile->sf->qf->find_pc_sect_compunit_symtab.
4459
317d2668
TV
44602020-04-22 Tom de Vries <tdevries@suse.de>
4461
4462 PR symtab/25764
4463 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
4464 in psymtabs.
4465
eea9e357
TV
44662020-04-22 Tom de Vries <tdevries@suse.de>
4467
4468 PR symtab/25801
4469 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
4470 symtabs.
4471
3d5afab3
TV
44722020-04-22 Tom de Vries <tdevries@suse.de>
4473
4474 PR symtab/25700
4475 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
4476 CU if already created.
4477
d43b7a2d
TBA
44782020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4479
4480 * infrun.c (displaced_step_fixup): Switch to the event_thread
4481 before calling displaced_step_restore, not after.
4482
d89edf9b
MM
44832020-04-21 Markus Metzger <markus.t.metzger@intel.com>
4484
4485 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
4486 its inferior is not recorded by us.
4487 (record_btrace_target_open): Replace call to
4488 all_non_exited_threads () with call to current_inferior
4489 ()->non_exited_threads ().
4490 (record_btrace_target::stop_recording): Likewise.
4491 (record_btrace_target::close): Likewise.
4492 (record_btrace_target::wait): Likewise.
4493 (record_btrace_target::record_stop_replaying): Likewise.
4494
5897fd49
MM
44952020-04-21 Markus Metzger <markus.t.metzger@intel.com>
4496
4497 * btrace.c (btrace_enable): Throw an error on double enables and
4498 when enabling recording fails.
4499 (btrace_disable): Throw an error if the thread is not recorded.
4500
1a476b6d
MM
45012020-04-21 Markus Metzger <markus.t.metzger@intel.com>
4502
4503 * record-btrace.c (record_btrace_target::fetch_registers): Forward
4504 request if we do not have a thread_info.
4505
4778a5f8
TV
45062020-04-21 Tom de Vries <tdevries@suse.de>
4507
4508 PR gdb/25471
4509 * thread.c
4510 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
4511 exception in get_frame_id.
4512
0fa7617d
TT
45132020-04-20 Tom Tromey <tromey@adacore.com>
4514
4515 * python/python.c (struct gdbpy_event): Mark move constructor as
4516 noexcept.
4517 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
4518 constructor as noexcept.
4519 * completer.h (struct completion_result): Mark move constructor as
4520 noexcept.
4521 * completer.c (completion_result::completion_result): Use
4522 initialization style. Don't call reset_match_list.
4523
ad23bda0
MS
45242020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
4525
4526 * MAINTAINERS (Write After Approval): Add myself.
4527
45e1f031
TT
45282020-04-18 Tom Tromey <tom@tromey.com>
4529
4530 * windows-tdep.c (init_w32_command_list)
4531 (w32_prefix_command_valid): Restore.
4532 (_initialize_windows_tdep): Call init_w32_command_list.
4533
08feed99
TT
45342020-04-18 Tom Tromey <tom@tromey.com>
4535
4536 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
4537 * value.c (value_fn_field): Update.
4538 * valops.c (find_function_in_inferior)
4539 (value_allocate_space_in_inferior): Update.
4540 * tui/tui-winsource.c (tui_update_source_windows_with_line):
4541 Update.
4542 * tui/tui-source.c (tui_source_window::set_contents): Update.
4543 * symtab.c (lookup_global_or_static_symbol)
4544 (find_function_start_sal_1, skip_prologue_sal)
4545 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
4546 * symmisc.c (dump_msymbols, dump_symtab_1)
4547 (maintenance_print_one_line_table): Update.
4548 * symfile.c (init_entry_point_info, section_is_mapped)
4549 (list_overlays_command, simple_read_overlay_table)
4550 (simple_overlay_update_1): Update.
4551 * stap-probe.c (handle_stap_probe): Update.
4552 * stabsread.c (dbx_init_float_type, define_symbol)
4553 (read_one_struct_field, read_enum_type, read_range_type): Update.
4554 * source.c (info_line_command): Update.
4555 * python/python.c (gdbpy_source_objfile_script)
4556 (gdbpy_execute_objfile_script): Update.
4557 * python/py-type.c (save_objfile_types): Update.
4558 * python/py-objfile.c (py_free_objfile): Update.
4559 * python/py-inferior.c (python_new_objfile): Update.
4560 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
4561 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
4562 (maintenance_check_psymtabs): Update.
4563 * printcmd.c (info_address_command): Update.
4564 * objfiles.h (struct objfile) <arch>: New method, from
4565 get_objfile_arch.
4566 (get_objfile_arch): Don't declare.
4567 * objfiles.c (get_objfile_arch): Remove.
4568 (filter_overlapping_sections): Update.
4569 * minsyms.c (msymbol_is_function): Update.
4570 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
4571 (output_nondebug_symbol): Update.
4572 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
4573 (mdebug_expand_psymtab): Update.
4574 * machoread.c (macho_add_oso_symfile): Update.
4575 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
4576 Update.
4577 * linux-fork.c (checkpoint_command): Update.
4578 * linespec.c (convert_linespec_to_sals): Update.
4579 * jit.c (finalize_symtab): Update.
4580 * infrun.c (insert_exception_resume_from_probe): Update.
4581 * ia64-tdep.c (ia64_find_unwind_table): Update.
4582 * hppa-tdep.c (internalize_unwinds): Update.
4583 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
4584 Update.
4585 * gcore.c (call_target_sbrk): Update.
4586 * elfread.c (record_minimal_symbol, elf_symtab_read)
4587 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
4588 (elf_gnu_ifunc_resolve_by_got): Update.
4589 * dwarf2/read.c (create_addrmap_from_index)
4590 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
4591 (read_debug_names_from_section)
4592 (process_psymtab_comp_unit_reader, add_partial_symbol)
4593 (add_partial_subprogram, process_full_comp_unit)
4594 (read_file_scope, read_func_scope, read_lexical_block_scope)
4595 (read_call_site_scope, dwarf2_ranges_read)
4596 (dwarf2_record_block_ranges, dwarf2_add_field)
4597 (mark_common_block_symbol_computed, read_tag_pointer_type)
4598 (read_tag_string_type, dwarf2_init_float_type)
4599 (dwarf2_init_complex_target_type, read_base_type)
4600 (partial_die_info::read, partial_die_info::read)
4601 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
4602 (dwarf2_fetch_die_loc_sect_off): Update.
4603 * dwarf2/loc.c (dwarf2_find_location_expression)
4604 (class dwarf_evaluate_loc_desc, rw_pieced_value)
4605 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
4606 (dwarf2_loc_desc_get_symbol_read_needs)
4607 (locexpr_describe_location_piece, locexpr_describe_location_1)
4608 (loclist_describe_location): Update.
4609 * dwarf2/index-write.c (write_debug_names): Update.
4610 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
4611 * dtrace-probe.c (dtrace_process_dof): Update.
4612 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
4613 (process_one_symbol): Update.
4614 * ctfread.c (ctf_init_float_type, read_base_type): Update.
4615 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
4616 (coff_read_enum_type): Update.
4617 * cli/cli-cmds.c (edit_command, list_command): Update.
4618 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
4619 * breakpoint.c (create_overlay_event_breakpoint)
4620 (create_longjmp_master_breakpoint)
4621 (create_std_terminate_master_breakpoint)
4622 (create_exception_master_breakpoint, get_sal_arch): Update.
4623 * block.c (block_gdbarch): Update.
4624 * annotate.c (annotate_source_line): Update.
4625
0743fc83
TT
46262020-04-17 Tom Tromey <tromey@adacore.com>
4627
4628 * auto-load.c (show_auto_load_cmd): Remove.
4629 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
4630 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
4631 (maintenance_print_arc_command): Remove.
4632 * tui/tui-win.c (tui_command): Remove.
4633 (tui_get_cmd_list): Use add_basic_prefix_cmd.
4634 * tui/tui-layout.c (tui_layout_command): Remove.
4635 (_initialize_tui_layout): Use add_basic_prefix_cmd.
4636 * python/python.c (user_set_python, user_show_python): Remove.
4637 (_initialize_python): Use add_basic_prefix_cmd,
4638 add_show_prefix_cmd.
4639 * guile/guile.c (set_guile_command, show_guile_command): Remove.
4640 (install_gdb_commands): Use add_basic_prefix_cmd,
4641 add_show_prefix_cmd.
4642 (info_guile_command): Remove.
4643 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
4644 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
4645 add_show_prefix_cmd.
4646 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
4647 Remove do_set and do_show parameters.
4648 * cli/cli-style.c (set_style, show_style): Remove.
4649 (_initialize_cli_style): Use add_basic_prefix_cmd,
4650 add_show_prefix_cmd.
4651 (cli_style_option::add_setshow_commands): Remove do_set and
4652 do_show parameters.
4653 (cli_style_option::add_setshow_commands): Use
4654 add_basic_prefix_cmd, add_show_prefix_cmd.
4655 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
4656 (set_style_name): Remove.
4657 * cli/cli-dump.c (dump_command, append_command): Remove.
4658 (srec_dump_command, ihex_dump_command, verilog_dump_command)
4659 (tekhex_dump_command, binary_dump_command)
4660 (binary_append_command): Remove.
4661 (_initialize_cli_dump): Use add_basic_prefix_cmd.
4662 * windows-tdep.c (w32_prefix_command_valid): Remove global.
4663 (init_w32_command_list): Remove; move into ...
4664 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
4665 * valprint.c (set_print, show_print, set_print_raw)
4666 (show_print_raw): Remove.
4667 (_initialize_valprint): Use add_basic_prefix_cmd,
4668 add_show_prefix_cmd.
4669 * typeprint.c (set_print_type, show_print_type): Remove.
4670 (_initialize_typeprint): Use add_basic_prefix_cmd,
4671 add_show_prefix_cmd.
4672 * record.c (set_record_command, show_record_command): Remove.
4673 (_initialize_record): Use add_basic_prefix_cmd,
4674 add_show_prefix_cmd.
4675 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
4676 add_show_prefix_cmd.
4677 (info_command, show_command, set_debug, show_debug): Remove.
4678 * top.h (set_history, show_history): Don't declare.
4679 * top.c (set_history, show_history): Remove.
4680 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
4681 (unset_tdesc_cmd): Remove.
4682 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
4683 add_show_prefix_cmd.
4684 * symtab.c (info_module_command): Remove.
4685 (_initialize_symtab): Use add_basic_prefix_cmd.
4686 * symfile.c (overlay_command): Remove.
4687 (_initialize_symfile): Use add_basic_prefix_cmd.
4688 * sparc64-tdep.c (info_adi_command): Remove.
4689 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
4690 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
4691 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
4692 add_show_prefix_cmd.
4693 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
4694 (_initialize_serial): Use add_basic_prefix_cmd,
4695 add_show_prefix_cmd.
4696 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
4697 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
4698 add_show_prefix_cmd.
4699 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
4700 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
4701 add_show_prefix_cmd.
4702 * riscv-tdep.c (show_riscv_command, set_riscv_command)
4703 (show_debug_riscv_command, set_debug_riscv_command): Remove.
4704 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
4705 add_show_prefix_cmd.
4706 * remote.c (remote_command, set_remote_cmd): Remove.
4707 (_initialize_remote): Use add_basic_prefix_cmd.
4708 * record-full.c (set_record_full_command)
4709 (show_record_full_command): Remove.
4710 (_initialize_record_full): Use add_basic_prefix_cmd,
4711 add_show_prefix_cmd.
4712 * record-btrace.c (cmd_set_record_btrace)
4713 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
4714 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
4715 (cmd_show_record_btrace_pt): Remove.
4716 (_initialize_record_btrace): Use add_basic_prefix_cmd,
4717 add_show_prefix_cmd.
4718 * ravenscar-thread.c (set_ravenscar_command)
4719 (show_ravenscar_command): Remove.
4720 (_initialize_ravenscar): Use add_basic_prefix_cmd,
4721 add_show_prefix_cmd.
4722 * mips-tdep.c (show_mips_command, set_mips_command)
4723 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
4724 add_show_prefix_cmd.
4725 * maint.c (maintenance_command, maintenance_info_command)
4726 (maintenance_check_command, maintenance_print_command)
4727 (maintenance_set_cmd, maintenance_show_cmd): Remove.
4728 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
4729 add_show_prefix_cmd.
4730 (show_per_command_cmd): Remove.
4731 * maint-test-settings.c (maintenance_set_test_settings_cmd):
4732 Remove.
4733 (maintenance_show_test_settings_cmd): Remove.
4734 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
4735 add_show_prefix_cmd.
4736 * maint-test-options.c (maintenance_test_options_command):
4737 Remove.
4738 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
4739 * macrocmd.c (macro_command): Remove
4740 (_initialize_macrocmd): Use add_basic_prefix_cmd.
4741 * language.c (set_check, show_check): Remove.
4742 (_initialize_language): Use add_basic_prefix_cmd,
4743 add_show_prefix_cmd.
4744 * infcmd.c (unset_command): Remove.
4745 (_initialize_infcmd): Use add_basic_prefix_cmd.
4746 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
4747 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
4748 add_show_prefix_cmd.
4749 * go32-nat.c (go32_info_dos_command): Remove.
4750 (_initialize_go32_nat): Use add_basic_prefix_cmd.
4751 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
4752 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
4753 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
4754 (_initialize_frame): Use add_basic_prefix_cmd,
4755 add_show_prefix_cmd.
4756 * dcache.c (set_dcache_command, show_dcache_command): Remove.
4757 (_initialize_dcache): Use add_basic_prefix_cmd,
4758 add_show_prefix_cmd.
4759 * cp-support.c (maint_cplus_command): Remove.
4760 (_initialize_cp_support): Use add_basic_prefix_cmd.
4761 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
4762 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
4763 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
4764 add_basic_prefix_cmd, add_show_prefix_cmd.
4765 * breakpoint.c (save_command): Remove.
4766 (_initialize_breakpoint): Use add_basic_prefix_cmd.
4767 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
4768 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
4769 add_show_prefix_cmd.
4770 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
4771 (set_ada_command, show_ada_command): Remove.
4772 (_initialize_ada_language): Use add_basic_prefix_cmd,
4773 add_show_prefix_cmd.
4774 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
4775
3557f442
KR
47762020-04-16 Kamil Rytarowski <n54@gmx.com>
4777
4778 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
4779 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
4780
16197208
SM
47812020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
4782
4783 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
4784 warning messages.
4785
00ac85d3
SM
47862020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
4787
4788 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
4789 import table is not at beginning of .idata section.
4790
381ce63f
PA
47912020-04-16 Pedro Alves <palves@redhat.com>
4792
4793 * inferior.c (delete_inferior): Use delete operator directly
4794 instead of delete_program_space.
4795 * progspace.c (add_program_space): New, factored out from
4796 program_space::program_space.
4797 (remove_program_space): New, factored out from
4798 delete_program_space.
4799 (program_space::program_space): Remove intro comment. Rewrite.
4800 (program_space::~program_space): Remove intro comment. Call
4801 remove_program_space.
4802 (delete_program_space): Delete.
4803 * progspace.h (program_space::program_space): Make explicit. Move
4804 intro comment here, adjusted.
4805 (program_space::~program_space): Move intro comment here,
4806 adjusted.
4807 (delete_program_space): Remove.
4808
a010605f
TT
48092020-04-16 Tom Tromey <tromey@adacore.com>
4810
4811 * windows-nat.c (windows_nat::handle_access_violation): New
4812 function.
4813 * nat/windows-nat.h (handle_access_violation): Declare.
4814 * nat/windows-nat.c (handle_exception): Move Cygwin code to
4815 windows-nat.c. Call handle_access_violation.
4816
efba5c23
TV
48172020-04-16 Tom de Vries <tdevries@suse.de>
4818
4819 PR symtab/25791
4820 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
4821 CUs without psymtab.
4822
97ed802d
KB
48232020-04-16 Kevin Buettner <kevinb@redhat.com>
4824
4825 * python/python.c (do_start_initialization): Don't call
4826 PyEval_InitThreads for Python 3.9 and beyond.
4827
c7d64809
KR
48282020-04-15 Kamil Rytarowski <n54@gmx.com>
4829
4830 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
4831 thread functions.
4832 (obsd_nat_target::wait): Likewise.
4833
ce127a96
TT
48342020-04-15 Tom Tromey <tromey@adacore.com>
4835
4836 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
4837 (DEBUG_EXCEPT): Use debug_printf.
4838
99f1bc6a
AB
48392020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
4840
4841 * completer.c (class completion_tracker::completion_hash_entry)
4842 <hash_name>: New member function.
4843 (completion_tracker::discard_completions): New callback to hash a
4844 completion_hash_entry, pass this to htab_create_alloc.
4845
a0e9b532
JT
48462016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
4847
4848 * windows-nat.c (windows_make_so): Warn rather than stopping with
4849 an error if realpath() fails.
4850
06ca5dd4
KR
48512020-04-14 Kamil Rytarowski <n54@gmx.com>
4852
4853 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
4854 (nbsd_nat_target::info_proc): Add do_status.
4855
194d088f
TV
48562020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
4857 Tom de Vries <tdevries@suse.de>
4858
4859 PR symtab/25718
4860 * psympriv.h (struct partial_symtab::read_symtab)
4861 (struct partial_symtab::expand_psymtab)
4862 (struct partial_symtab::read_dependencies): Update comments.
4863 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
4864 read_symtab for includer.
4865 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
4866 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
4867 (struct dwarf2_include_psymtab::m_readin): Remove.
4868 (struct dwarf2_include_psymtab::includer): New member function.
4869 (dwarf2_psymtab::expand_psymtab): Assert !readin.
4870
c1a66c06
TV
48712020-04-14 Tom de Vries <tdevries@suse.de>
4872
4873 PR symtab/25720
4874 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
4875 with NULL symbol_matcher and lookup_name.
4876 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
4877 and lookup_name.
4878 * dwarf2/read.c (dw2_expand_symtabs_matching)
4879 (dw2_debug_names_expand_symtabs_matching): Same.
4880 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
4881 Make lookup_name a pointer. Update comment.
4882 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
4883 lookup_name being a pointer.
4884 * symfile.c (expand_symtabs_matching): Same.
4885 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
4886 * linespec.c (iterate_over_all_matching_symtabs): Same.
4887
400b5eca
TT
48882020-04-13 Tom Tromey <tom@tromey.com>
4889
4890 * run-on-main-thread.c: Update include.
4891 * unittests/main-thread-selftests.c: Update include.
4892 * tui/tui-win.c: Update include.
4893 * tui/tui-io.c: Update include.
4894 * tui/tui-interp.c: Update include.
4895 * tui/tui-hooks.c: Update include.
4896 * top.h: Update include.
4897 * top.c: Update include.
4898 * ser-base.c: Update include.
4899 * remote.c: Update include.
4900 * remote-notif.c: Update include.
4901 * remote-fileio.c: Update include.
4902 * record-full.c: Update include.
4903 * record-btrace.c: Update include.
4904 * python/python.c: Update include.
4905 * posix-hdep.c: Update include.
4906 * mingw-hdep.c: Update include.
4907 * mi/mi-main.c: Update include.
4908 * mi/mi-interp.c: Update include.
4909 * main.c: Update include.
4910 * linux-nat.c: Update include.
4911 * interps.c: Update include.
4912 * infrun.c: Update include.
4913 * inf-loop.c: Update include.
4914 * event-top.c: Update include.
4915 * event-loop.c: Move to ../gdbsupport/.
4916 * event-loop.h: Move to ../gdbsupport/.
4917 * async-event.h: Update include.
4918 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
4919
93b54c8e
TT
49202020-04-13 Tom Tromey <tom@tromey.com>
4921
4922 * tui/tui-win.c: Include async-event.h.
4923 * remote.c: Include async-event.h.
4924 * remote-notif.c: Include async-event.h.
4925 * record-full.c: Include async-event.h.
4926 * record-btrace.c: Include async-event.h.
4927 * infrun.c: Include async-event.h.
4928 * event-top.c: Include async-event.h.
4929 * event-loop.h: Move some declarations to async-event.h.
4930 * event-loop.c: Don't include ser-event.h or top.h. Move some
4931 code to async-event.c.
4932 * async-event.h: New file.
4933 * async-event.c: New file.
4934 * Makefile.in (COMMON_SFILES): Add async-event.c.
4935 (HFILES_NO_SRCDIR): Add async-event.h.
4936
c1cd3163
TT
49372020-04-13 Tom Tromey <tom@tromey.com>
4938
4939 * utils.c (flush_streams): New function.
4940 * event-loop.c (gdb_wait_for_event): Call flush_streams.
4941
29f2bf4f
TT
49422020-04-13 Tom Tromey <tom@tromey.com>
4943
4944 * event-loop.c (handle_file_event): Use warning, not
4945 printf_unfiltered.
4946
98029d02
TT
49472020-04-13 Tom Tromey <tom@tromey.com>
4948
4949 * event-loop.c: Include <chrono>.
4950
06cc9596
TT
49512020-04-13 Tom Tromey <tom@tromey.com>
4952
4953 * gdb_select.h: Move to ../gdbsupport/.
4954 * event-loop.c: Update include path.
4955 * top.c: Update include path.
4956 * ser-base.c: Update include path.
4957 * ui-file.c: Update include path.
4958 * ser-tcp.c: Update include path.
4959 * guile/scm-ports.c: Update include path.
4960 * posix-hdep.c: Update include path.
4961 * ser-unix.c: Update include path.
4962 * gdb_usleep.c: Update include path.
4963 * mingw-hdep.c: Update include path.
4964 * inflow.c: Update include path.
4965 * infrun.c: Update include path.
4966 * event-top.c: Update include path.
4967
8ae8e197
TT
49682020-04-13 Tom Tromey <tom@tromey.com>
4969
4970 * configure: Rebuild.
4971 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
4972
58cf28e8
TT
49732020-04-13 Tom Tromey <tom@tromey.com>
4974
4975 * event-loop.h (start_event_loop): Don't declare.
4976 * event-loop.c (start_event_loop): Move...
4977 * main.c (start_event_loop): ...here. Now static.
4978
b7f999ae
SDJ
49792020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
4980
4981 * MAINTAINERS: Update my email address.
4982
1085dfd4
KR
49832020-04-12 Kamil Rytarowski <n54@gmx.com>
4984
4985 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
4986 IP_ALL.
4987
49d1d1f5
KR
49882020-04-12 Kamil Rytarowski <n54@gmx.com>
4989
4990 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
aac66a4c 4991 (nbsd_nat_target::info_proc): Add do_cmdline.
49d1d1f5 4992
b4848d2a
KR
49932020-04-12 Kamil Rytarowski <n54@gmx.com>
4994
4995 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
aac66a4c 4996 (nbsd_nat_target::info_proc): Add do_cwd.
b4848d2a 4997
51c133d5
KR
49982020-04-12 Kamil Rytarowski <n54@gmx.com>
4999
5000 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
5001
54b8cbd0
KR
50022020-04-11 Kamil Rytarowski <n54@gmx.com>
5003
5004 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
5005 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
5006 (nbsd_nat_target::info_proc): New functions.
5007 * nbsd-nat.c (kinfo_get_vmmap): New function.
5008 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
5009 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
5010 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
5011 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
5012 functions.
5013 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
5014 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
5015 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
5016 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
5017 (KINFO_VME_FLAG_GROWS_DOWN): New.
5018
cf83625d
AS
50192020-04-10 Artur Shepilko <nomadbyte@gmail.com>
5020
5021 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
5022 bit shift.
5023
0c4311ab
TT
50242020-04-10 Tom Tromey <tromey@adacore.com>
5025
5026 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
5027
3e65b3e9
TT
50282020-04-10 Tom Tromey <tromey@adacore.com>
5029
5030 * symtab.c (get_symbol_address, get_msymbol_address): Skip
5031 separate debug files.
5032
13302e95
HD
50332020-04-10 Hannes Domani <ssbssa@yahoo.de>
5034
5035 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
5036 Move to...
5037 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
5038 ... here.
5039 * windows-nat.c (windows_nat_target::get_windows_debug_event):
5040 Check for STATUS_WX86_BREAKPOINT.
5041 (windows_nat_target::wait): Same.
5042
bdfc1e8a
TV
50432020-04-10 Tom de Vries <tdevries@suse.de>
5044
5045 PR cli/25808
5046 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
5047
f4460aec
SM
50482020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
5049
5050 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
5051 (Write After Approval): Remove Tom de Vries.
5052
a25198bb
BE
50532020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
5054
5055 revert partially:
5056 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
5057
aac66a4c
SM
5058 * buildsym.c (record_line): Fix undefined behavior and preserve
5059 lines at eof.
a25198bb 5060
206c98a6
KR
50612020-04-09 Kamil Rytarowski <n54@gmx.com>
5062
5063 * auxv.h (svr4_auxv_parse): New.
5064 * auxv.c (default_auxv_parse): Split into default_auxv_parse
5065 and generic_auxv_parse.
5066 (svr4_auxv_parse): Add.
5067 * obsd-tdep.c: Include "auxv.h".
5068 (obsd_auxv_parse): Remove.
5069 (obsd_init_abi): Remove comment.
5070 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
5071 from `obsd_auxv_parse' to `svr4_auxv_parse'.
5072 * nbsd-tdep.c: Include "auxv.h".
5073 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
5074
71fbdbaf
TT
50752020-04-08 Tom Tromey <tromey@adacore.com>
5076
5077 * nat/windows-nat.h (last_wait_event): Don't declare.
5078 (wait_for_debug_event): Update comment.
5079 * nat/windows-nat.c (last_wait_event): Now static.
5080
2c1d95e8
TT
50812020-04-08 Tom Tromey <tromey@adacore.com>
5082
5083 * windows-nat.c (wait_for_debug_event): Move to
5084 nat/windows-nat.c.
5085 * nat/windows-nat.h (wait_for_debug_event): Declare.
5086 * nat/windows-nat.c (wait_for_debug_event): Move from
5087 windows-nat.c. No longer static.
5088
d2977bc4
TT
50892020-04-08 Tom Tromey <tromey@adacore.com>
5090
5091 * windows-nat.c (get_windows_debug_event): Use
5092 fetch_pending_stop.
5093 * nat/windows-nat.h (fetch_pending_stop): Declare.
5094 * nat/windows-nat.c (fetch_pending_stop): New function.
5095
e758e19c
TT
50962020-04-08 Tom Tromey <tromey@adacore.com>
5097
5098 * windows-nat.c (windows_continue): Use matching_pending_stop and
5099 continue_last_debug_event.
5100 * nat/windows-nat.h (matching_pending_stop)
5101 (continue_last_debug_event): Declare.
5102 * nat/windows-nat.c (DEBUG_EVENTS): New define.
5103 (matching_pending_stop, continue_last_debug_event): New
5104 functions.
5105
8d30e395
TT
51062020-04-08 Tom Tromey <tromey@adacore.com>
5107
5108 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
5109 (handle_exception_result): Move to nat/windows-nat.h.
5110 (DEBUG_EXCEPTION_SIMPLE): Remove.
5111 (windows_nat::handle_ms_vc_exception): New function.
5112 (handle_exception): Move to nat/windows-nat.c.
5113 (get_windows_debug_event): Update.
5114 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
5115 nat/windows-nat.c.
5116 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
5117 (handle_exception_result): Move from windows-nat.c.
5118 (handle_exception): Declare.
5119 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
5120 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
5121 windows-nat.c.
5122
29de418d
TT
51232020-04-08 Tom Tromey <tromey@adacore.com>
5124
5125 * windows-nat.c (exception_count, event_count): Remove.
5126 (handle_exception, get_windows_debug_event)
5127 (do_initial_windows_stuff): Update.
5128
a816ba18
TT
51292020-04-08 Tom Tromey <tromey@adacore.com>
5130
5131 * windows-nat.c (windows_nat::handle_load_dll)
5132 (windows_nat::handle_unload_dll): Rename. No longer static.
5133 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
5134 Declare.
5135
a00caa12
TT
51362020-04-08 Tom Tromey <tromey@adacore.com>
5137
5138 * complaints.h (stop_whining): Declare at top-level.
5139 (complaint): Don't declare stop_whining.
5140
d41b524f
TT
51412020-04-08 Tom Tromey <tromey@adacore.com>
5142
5143 * windows-nat.c (windows_nat::handle_output_debug_string):
5144 Rename. No longer static.
5145 * nat/windows-nat.h (handle_output_debug_string): Declare.
5146
3c76026d
TT
51472020-04-08 Tom Tromey <tromey@adacore.com>
5148
5149 * windows-nat.c (current_process_handle, current_process_id)
5150 (main_thread_id, last_sig, current_event, last_wait_event)
5151 (current_windows_thread, desired_stop_thread_id, pending_stops)
5152 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
5153 (display_selectors, fake_create_process)
5154 (get_windows_debug_event): Update.
5155 * nat/windows-nat.h (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 (struct pending_stop, siginfo_er): Move from windows-nat.c.
5159 * nat/windows-nat.c (current_process_handle, current_process_id)
5160 (main_thread_id, last_sig, current_event, last_wait_event)
5161 (current_windows_thread, desired_stop_thread_id, pending_stops)
5162 (siginfo_er): New globals. Move from windows-nat.c.
5163
9d8679cc
TT
51642020-04-08 Tom Tromey <tromey@adacore.com>
5165
5166 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
5167 (handle_load_dll): Update.
5168 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
5169
28688adf
TT
51702020-04-08 Tom Tromey <tromey@adacore.com>
5171
5172 * windows-nat.c (enum thread_disposition_type): Move to
5173 nat/windows-nat.h.
5174 (windows_nat::thread_rec): Rename from thread_rec. No longer
5175 static.
5176 (windows_add_thread, windows_nat_target::fetch_registers)
5177 (windows_nat_target::store_registers, handle_exception)
5178 (windows_nat_target::resume, get_windows_debug_event)
5179 (windows_nat_target::get_tib_address)
5180 (windows_nat_target::thread_name)
5181 (windows_nat_target::thread_alive): Update.
5182 * nat/windows-nat.h (enum thread_disposition_type): Move from
5183 windows-nat.c.
5184 (thread_rec): Declare.
5185
4834dad0
TT
51862020-04-08 Tom Tromey <tromey@adacore.com>
5187
5188 * windows-nat.c: Add "using namespace".
5189 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
5190 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
5191
65bafd5b
TT
51922020-04-08 Tom Tromey <tromey@adacore.com>
5193
5194 * nat/windows-nat.h (struct windows_thread_info): Declare
5195 destructor.
5196 * nat/windows-nat.c (~windows_thread_info): New.
5197
0a4afda3
TT
51982020-04-08 Tom Tromey <tromey@adacore.com>
5199
5200 PR gdb/22992
5201 * windows-nat.c (current_event): Update comment.
5202 (last_wait_event, desired_stop_thread_id): New globals.
5203 (struct pending_stop): New.
5204 (pending_stops): New global.
5205 (windows_nat_target) <stopped_by_sw_breakpoint>
5206 <supports_stopped_by_sw_breakpoint>: New methods.
5207 (windows_fetch_one_register): Add assertions. Adjust PC.
5208 (windows_continue): Handle pending stops. Suspend other threads
5209 when stepping. Use last_wait_event
5210 (wait_for_debug_event): New function.
5211 (get_windows_debug_event): Use wait_for_debug_event. Handle
5212 pending stops. Queue spurious stops.
5213 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
5214 (windows_nat_target::kill): Use wait_for_debug_event.
5215 * nat/windows-nat.h (struct windows_thread_info)
5216 <stopped_at_software_breakpoint>: New field.
5217 * nat/windows-nat.c (windows_thread_info::resume): Clear
5218 stopped_at_software_breakpoint.
5219
8e61ebec
TT
52202020-04-08 Tom Tromey <tromey@adacore.com>
5221
5222 * windows-nat.c (enum thread_disposition_type): New.
5223 (thread_rec): Replace "get_context" parameter with "disposition";
5224 change type.
5225 (windows_add_thread, windows_nat_target::fetch_registers)
5226 (windows_nat_target::store_registers, handle_exception)
5227 (windows_nat_target::resume, get_windows_debug_event)
5228 (windows_nat_target::get_tib_address)
5229 (windows_nat_target::thread_name)
5230 (windows_nat_target::thread_alive): Update.
5231
98a03287
TT
52322020-04-08 Tom Tromey <tromey@adacore.com>
5233
5234 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
5235 (windows_continue): Use windows_continue::resume.
5236 * nat/windows-nat.h (struct windows_thread_info) <suspend,
5237 resume>: Declare new methods.
5238 * nat/windows-nat.c: New file.
5239 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
5240
7c7411bc
TT
52412020-04-08 Tom Tromey <tromey@adacore.com>
5242
5243 * windows-nat.c (windows_add_thread, windows_delete_thread)
5244 (windows_nat_target::fetch_registers)
5245 (windows_nat_target::store_registers, fake_create_process)
5246 (windows_nat_target::resume, windows_nat_target::resume)
5247 (get_windows_debug_event, windows_nat_target::wait)
5248 (windows_nat_target::pid_to_str)
5249 (windows_nat_target::get_tib_address)
5250 (windows_nat_target::get_ada_task_ptid)
5251 (windows_nat_target::thread_name)
5252 (windows_nat_target::thread_alive): Use lwp, not tid.
5253
2950fdf7
TT
52542020-04-08 Tom Tromey <tromey@adacore.com>
5255
5256 * windows-nat.c (handle_exception)
5257 (windows_nat_target::thread_name): Update.
5258 * nat/windows-nat.h (windows_thread_info): Remove destructor.
5259 <name>: Now unique_xmalloc_ptr.
5260
62fe396b
TT
52612020-04-08 Tom Tromey <tromey@adacore.com>
5262
5263 * windows-nat.c (thread_rec)
5264 (windows_nat_target::fetch_registers): Update.
5265 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
5266 Update comment.
5267 <debug_registers_changed, reload_context>: Now bool.
5268
e9534bd2
TT
52692020-04-08 Tom Tromey <tromey@adacore.com>
5270
5271 * windows-nat.c (windows_add_thread): Use new.
5272 (windows_init_thread_list, windows_delete_thread): Use delete.
5273 (get_windows_debug_event): Update.
5274 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
5275 destructor, and initializers.
5276
ae1f8880
TT
52772020-04-08 Tom Tromey <tromey@adacore.com>
5278
5279 * windows-nat.c (struct windows_thread_info): Remove.
5280 * nat/windows-nat.h: New file.
5281
55a1e039
TT
52822020-04-08 Tom Tromey <tromey@adacore.com>
5283
5284 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
5285 (thread_rec, windows_add_thread, windows_delete_thread)
5286 (windows_continue): Update.
5287
93366324
TT
52882020-04-08 Tom Tromey <tromey@adacore.com>
5289
5290 * windows-nat.c (struct windows_thread_info): Remove typedef.
5291 (thread_head): Remove.
5292 (thread_list): New global.
5293 (thread_rec, windows_add_thread, windows_init_thread_list)
5294 (windows_delete_thread, windows_continue): Update.
5295
0f2265e2
SM
52962020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
5297
5298 * windows-tdep.h (windows_init_abi): Add comment.
5299 (cygwin_init_abi): New declaration.
5300 * windows-tdep.c: Split signal enumeration in two, one for
5301 Windows and one for Cygwin.
5302 (windows_gdb_signal_to_target): Only deal with signal of the
5303 Windows OS ABI.
5304 (cygwin_gdb_signal_to_target): New function.
5305 (windows_init_abi): Rename to windows_init_abi_common, don't set
5306 gdb_signal_to_target gdbarch method. Add new new function with
5307 this name.
5308 (cygwin_init_abi): New function.
5309 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
5310 comment. Don't call windows_init_abi.
5311 (amd64_windows_init_abi): Add comment, call windows_init_abi.
5312 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
5313 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
5314 i386_windows_init_abi_common, don't call windows_init_abi. Add
5315 a new function of this name.
5316 (i386_cygwin_init_abi): New function.
5317 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
5318 OS ABI Cygwin.
5319
3810f182
SM
53202020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
5321
5322 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
5323 parameter.c.
5324 (dwarf2_read_gdb_index): Update.
5325
063f8e80
KR
53262020-04-07 Kamil Rytarowski <n54@gmx.com>
5327
5328 * nbsd-tdep.c: Include "objfiles.h".
5329 (nbsd_skip_solib_resolver): New.
5330 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
5331
85a9510c 53322020-04-07 Nitika Achra <Nitika.Achra@amd.com>
5333
5334 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
5335 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
5336 with DW_LLE_base_addressx are being emitted in DWARFv5.
5337 Add the newly added kind DW_LOC_OFFSET_PAIR also.
5338 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
5339 unsigned integer.
5340
9fc3eaae 53412020-04-07 Nitika Achra <Nitika.Achra@amd.com>
5342
5343 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
5344 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
5345 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
5346 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
5347 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
5348 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
5349 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
5350
5351
41144253 53522020-04-07 Nitika Achra <Nitika.Achra@amd.com>
5353
5354 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
5355 (read_loclist_index): New function definition.
5356 (lookup_loclist_base): New function definition.
5357 (read_loclist_header): New function definition.
5358 (dwarf2_cu): Add loclist_base and loclist_header field.
5359 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
5360 (read_full_die_1): Read the value of DW_AT_loclists_base.
5361 (read_attribute_reprocess): Handle DW_FORM_loclistx.
5362 (read_attribute_value): Handle DW_FORM_loclistx.
5363 (skip_one_die): Handle DW_FORM_loclistx.
5364 (loclist_header): New structure declaration.
5365 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
5366
9f4e76a4
SM
53672020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
5368
5369 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
5370 constructor. Remove `addr` parameter from other constructor and
5371 add `per_cu` parameter.
5372 * dwarf2/read.c (create_partial_symtab): Update.
5373
25c11aca
TV
53742020-04-07 Tom de Vries <tdevries@suse.de>
5375
5376 PR symtab/25796
5377 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
5378 (partial_die_info::fixup): Inherit has_const_value.
5379
5707e24b
TV
53802020-04-07 Tom de Vries <tdevries@suse.de>
5381
5382 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
5383 symbols without address.
5384
05f00e22
KR
53852020-04-06 Kamil Rytarowski <n54@gmx.com>
5386
5387 * nbsd-nat.h (struct thread_info): Add forward declaration.
5388 (nbsd_nat_target::thread_alive): Add.
5389 (nbsd_nat_target::thread_name): Likewise.
5390 (nbsd_nat_target::update_thread_list): Likewise.
5391 (update_thread_list::post_attach): Likewise.
5392 (post_attach::pid_to_str): Likewise.
5393 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
5394 (nbsd_thread_lister): Add.
5395 (nbsd_nat_target::thread_alive): Likewise.
5396 (nbsd_nat_target::thread_name): Likewise.
5397 (nbsd_add_threads): Likewise.
5398 (update_thread_list::post_attach): Likewise.
5399 (nbsd_nat_target::update_thread_list): Likewise.
5400 (post_attach::pid_to_str): Likewise.
5401
6ee448cc
TT
54022020-04-06 Tom Tromey <tromey@adacore.com>
5403
5404 * ada-valprint.c (print_variant_part): Extract the variant field.
5405 (print_field_values): Use the field as the outer value when
5406 recursing.
5407
dea34e8c
TT
54082020-04-06 Tom Tromey <tromey@adacore.com>
5409
5410 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
5411 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
5412 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
5413 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
5414 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
5415
93689ce9
TT
54162020-04-06 Tom Tromey <tromey@adacore.com>
5417
5418 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
5419 TYPE_CODE_ERROR.
5420
79743962
KR
54212020-04-06 Kamil Rytarowski <n54@gmx.com>
5422
5423 * nbsd-tdep.c: Include "gdbarch.h".
5424 Define enum with NetBSD signal numbers.
5425 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
5426 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
5427 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
5428 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
5429 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
5430 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
5431 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
5432 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
5433 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
5434 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
5435 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
5436 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
5437
9e7c9a03
HD
54382020-04-03 Hannes Domani <ssbssa@yahoo.de>
5439
5440 PR gdb/25325
5441 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
5442
d9e49b61
TT
54432020-04-03 Tom Tromey <tromey@adacore.com>
5444
5445 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
5446 Read constant block.
5447
e0fc5c3f
SM
54482020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
5449
5450 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
5451 (gdb_bfd_get_full_section_contents): New declaration.
5452 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
5453 * windows-tdep.c (is_linked_with_cygwin_dll): Use
5454 gdb_bfd_get_full_section_contents.
5455
e2ff18a0
SM
54562020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
5457
5458 * exec.c (build_section_table): Replace internal_error with
5459 gdb_assert.
5460 (section_table_xfer_memory_partial): Likewise.
5461 * mdebugread.c (parse_partial_symbols): Likewise.
5462 * psymtab.c (lookup_partial_symbol): Likewise.
5463 * utils.c (wrap_here): Likewise.
5464
0830d301
TT
54652020-04-02 Tom Tromey <tromey@adacore.com>
5466
5467 * f-lang.c (build_fortran_types): Use arch_type to initialize
5468 builtin_complex_s32 in the TYPE_CODE_ERROR case.
5469
e7da7f8f
TT
54702020-04-02 Tom Tromey <tromey@adacore.com>
5471
5472 * dwarf2/read.c (partial_die_info::read): Do not create a vector
5473 of attributes.
5474
c90d28ac
AB
54752020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
5476 Bernd Edlinger <bernd.edlinger@hotmail.de>
5477 Tom Tromey <tromey@adacore.com>
5478
5479 * buildsym.c (buildsym_compunit::record_line): Remove
5480 deduplication code.
5481
1aa98955
TV
54822020-04-02 Tom de Vries <tdevries@suse.de>
5483
5484 PR ada/24671
5485 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
5486
d3214198
TV
54872020-04-02 Tom de Vries <tdevries@suse.de>
5488
5489 * dwarf2/read.c (dwarf2_gdb_index_functions,
5490 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
5491 NULL.
5492 * psymtab.c (psym_lookup_global_symbol_language): New function.
5493 (psym_functions): Init psym_lookup_global_symbol_language with
5494 psym_lookup_global_symbol_language.
5495 * symfile-debug.c (debug_sym_quick_functions): Init
5496 lookup_global_symbol_language with NULL.
5497 * symfile.c (set_initial_language): Remove fixme comment.
5498 * symfile.h (struct quick_symbol_functions): Add
5499 lookup_global_symbol_language.
5500 * symtab.c (find_quick_global_symbol_language): New function.
5501 (find_main_name): Use find_quick_global_symbol_language.
5502
2836752f
SM
55032020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
5504
5505 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
5506
64dc2d4b
BE
55072020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
5508
5509 * buildsym.c (record_line): Fix undefined behavior and preserve
5510 lines at eof.
5511
bbe3dc41
BE
55122020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
5513
5514 * buildsym.c (record_line): Fix the resizing condition.
5515
6b4a335b
TT
55162020-04-01 Tom Tromey <tom@tromey.com>
5517
5518 * value.h (value_literal_complex): Add comment.
5519 * valops.c (value_literal_complex): Refer to value.h.
5520
3638a098
TT
55212020-04-01 Tom Tromey <tom@tromey.com>
5522
5523 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
5524 (scalar_type): New rule, from typebase.
5525 (typebase): Use scalar_type. Recognize complex types.
5526 (field_name): Handle FLOAT_KEYWORD.
5527 (ident_tokens): Add _Complex and __complex__.
5528
c34e8714
TT
55292020-04-01 Tom Tromey <tom@tromey.com>
5530
5531 PR exp/25299:
5532 * valarith.c (promotion_type, complex_binop): New functions.
5533 (scalar_binop): Handle complex numbers. Use promotion_type.
5534 (value_pos, value_neg, value_complement): Handle complex numbers.
5535
fa649bb7
TT
55362020-04-01 Tom Tromey <tom@tromey.com>
5537
5538 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
5539 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
5540 (parse_number): Handle complex numbers.
5541
981c08ce
TT
55422020-04-01 Tom Tromey <tom@tromey.com>
5543
5544 * c-valprint.c (c_decorations): Change complex suffix to "i".
5545
4c99290d
TT
55462020-04-01 Tom Tromey <tom@tromey.com>
5547
5548 * valprint.c (generic_value_print_complex): Use accessors.
5549 * value.h (value_real_part, value_imaginary_part): Declare.
5550 * valops.c (value_real_part, value_imaginary_part): New
5551 functions.
5552 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
5553
5b930b45
TT
55542020-04-01 Tom Tromey <tom@tromey.com>
5555
5556 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
5557 (read_range_type): Update.
5558 * mdebugread.c (basic_type): Update.
5559 * go-lang.c (build_go_types): Use init_complex_type.
5560 * gdbtypes.h (struct main_type) <complex_type>: New member.
5561 (init_complex_type): Update.
5562 (arch_complex_type): Don't declare.
5563 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
5564 Make name if none given. Use alloc_type_copy. Look for cached
5565 complex type.
5566 (arch_complex_type): Remove.
5567 (gdbtypes_post_init): Use init_complex_type.
5568 * f-lang.c (build_fortran_types): Use init_complex_type.
5569 * dwarf2/read.c (read_base_type): Update.
5570 * d-lang.c (build_d_types): Use init_complex_type.
5571 * ctfread.c (read_base_type): Update.
5572
53cccef1
TBA
55732020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5574
5575 * infrun.c (stop_all_threads): Update assertion, plus when
5576 stopping threads, take into account that we might be trying
5577 to stop an all-stop target.
5578 (stop_waiting): Call 'stop_all_threads' if there exists a
5579 non-stop target.
5580
a0714d30
TBA
55812020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5582
5583 * target.h (exists_non_stop_target): New function declaration.
5584 * target.c (exists_non_stop_target): New function.
5585
60e22c1e
HD
55862020-04-01 Hannes Domani <ssbssa@yahoo.de>
5587
5588 PR gdb/24789
5589 * eval.c (is_integral_or_integral_reference): New function.
5590 (evaluate_subexp_standard): Allow integer references in
5591 pointer arithmetic.
5592
e139a727
TBA
55932020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5594
5595 * remote.c (remote_target::remote_parse_stop_reply): Remove the
5596 check for no ptid in the stop reply when the target is non-stop.
5597
e0802d59
TT
55982020-04-01 Tom Tromey <tromey@adacore.com>
5599
5600 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
5601 "name" parameter to rvalue reference. Initialize m_name_holder.
5602 <lookup_name_info>: New overloads.
5603 <name>: Return gdb::string_view.
5604 <c_str>: New method.
5605 <make_ignore_params>: Update.
5606 <search_name_hash>: Update.
5607 <language_lookup_name>: Return const char *.
5608 <m_name>: Change type.
5609 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
5610 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
5611 (lookup_name_info::match_any): Update.
5612 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
5613 Update.
5614 * minsyms.c (linkage_name_str): Update.
5615 * language.c (default_symbol_name_matcher): Update.
5616 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
5617 Update.
5618 * ada-lang.c (ada_fold_name): Change parameter to string_view.
5619 (ada_lookup_name_info::ada_lookup_name_info): Update.
5620 (literal_symbol_name_matcher): Update.
5621
8c072cb6
TT
56222020-04-01 Tom Tromey <tromey@adacore.com>
5623
5624 * psymtab.c (psymtab_search_name): Remove function.
5625 (psym_lookup_symbol): Create search name and lookup name here.
5626 (lookup_partial_symbol): Remove "name" parameter; add
5627 lookup_name.
5628 (psym_expand_symtabs_for_function): Update.
5629
6f29a534
TT
56302020-03-31 Joel Jones <joelkevinjones@gmail.com>
5631
5632 PR tui/25597:
5633 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
5634
af62665e
TT
56352020-03-31 Tom Tromey <tromey@adacore.com>
5636
5637 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
5638 memcpy.
5639
d1a89da5
NC
56402020-03-30 Nelson Chu <nelson.chu@sifive.com>
5641
5642 * features/riscv/32bit-csr.xml: Regenerated.
5643 * features/riscv/64bit-csr.xml: Regenerated.
5644
d8af9068
TT
56452020-03-30 Tom Tromey <tromey@adacore.com>
5646
5647 * ada-valprint.c (print_variant_part): Update.
5648 * ada-lang.h (ada_which_variant_applies): Update.
5649 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
5650 outer_valaddr parameters; replace with "outer" value parameter.
5651 (to_fixed_variant_branch_type): Update.
5652
227c0bf4
PFC
56532020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5654
5655 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
5656 <list>. Remove inclusion of observable.h.
5657 (PPC_DEBUG_CURRENT_VERSION): Move up define.
5658 (struct arch_lwp_info): New struct.
5659 (class ppc_linux_dreg_interface): New class.
5660 (struct ppc_linux_process_info): New struct.
5661 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
5662 <low_new_clone, low_forget_process, low_prepare_to_resume>
5663 <copy_thread_dreg_state, mark_thread_stale>
5664 <mark_debug_registers_changed, register_hw_breakpoint>
5665 <clear_hw_breakpoint, register_wp, clear_wp>
5666 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
5667 <num_memory_accesses, get_trigger_type>
5668 <create_watchpoint_request, hwdebug_point_cmp>
5669 <init_arch_lwp_info, get_arch_lwp_info>
5670 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
5671 methods.
5672 <struct ptid_hash>: New inner struct.
5673 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
5674 members.
5675 (saved_dabr_value, hwdebug_info, max_slots_number)
5676 (struct hw_break_tuple, struct thread_points, ppc_threads)
5677 (have_ptrace_hwdebug_interface)
5678 (hwdebug_find_thread_points_by_tid)
5679 (hwdebug_insert_point, hwdebug_remove_point): Remove.
5680 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
5681 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
5682 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
5683 use m_dreg_interface.
5684 (hwdebug_point_cmp): Change to...
5685 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
5686 reference arguments instead of pointers.
5687 (ppc_linux_nat_target::ranged_break_num_registers): Use
5688 m_dreg_interface.
5689 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
5690 m_dreg_interface. Call register_hw_breakpoint.
5691 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
5692 m_dreg_interface. Call clear_hw_breakpoint.
5693 (get_trigger_type): Change to...
5694 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
5695 comment.
5696 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
5697 use m_dreg_interface. Call register_hw_breakpoint.
5698 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
5699 use m_dreg_interface. Call clear_hw_breakpoint.
5700 (can_use_watchpoint_cond_accel): Change to...
5701 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
5702 method. Update comment, use m_dreg_interface and
5703 m_process_info.
5704 (calculate_dvc): Change to...
5705 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
5706 m_dreg_interface.
5707 (num_memory_accesses): Change to...
5708 (ppc_linux_nat_target::num_memory_accesses): ...this method.
5709 (check_condition): Change to...
5710 (ppc_linux_nat_target::check_condition): ...this method.
5711 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
5712 comment, use m_dreg_interface.
5713 (create_watchpoint_request): Change to...
5714 (ppc_linux_nat_target::create_watchpoint_request): ...this
5715 method. Use m_dreg_interface.
5716 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
5717 m_dreg_interface. Call register_hw_breakpoint or register_wp.
5718 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
5719 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
5720 (ppc_linux_nat_target::low_forget_process)
5721 (ppc_linux_nat_target::low_new_fork)
5722 (ppc_linux_nat_target::low_new_clone)
5723 (ppc_linux_nat_target::low_delete_thread)
5724 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
5725 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
5726 only call mark_thread_stale.
5727 (ppc_linux_thread_exit): Remove.
5728 (ppc_linux_nat_target::stopped_data_address): Change to...
5729 (ppc_linux_nat_target::low_stopped_data_address): This. Add
5730 comment, use m_dreg_interface and m_thread_hw_breakpoints.
5731 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
5732 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
5733 comment. Call low_stopped_data_address.
5734 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
5735 m_dreg_interface.
5736 (ppc_linux_nat_target::masked_watch_num_registers): Use
5737 m_dreg_interface.
5738 (ppc_linux_nat_target::copy_thread_dreg_state)
5739 (ppc_linux_nat_target::mark_thread_stale)
5740 (ppc_linux_nat_target::mark_debug_registers_changed)
5741 (ppc_linux_nat_target::register_hw_breakpoint)
5742 (ppc_linux_nat_target::clear_hw_breakpoint)
5743 (ppc_linux_nat_target::register_wp)
5744 (ppc_linux_nat_target::clear_wp)
5745 (ppc_linux_nat_target::init_arch_lwp_info)
5746 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
5747 (_initialize_ppc_linux_nat): Remove observer callback.
5748
4db10d8f
PFC
57492020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5750
5751 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
5752 (ppc_linux_nat_target::auxv_parse)
5753 (ppc_linux_nat_target::read_description)
5754 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
5755 Move up.
5756
1310c1b0
PFC
57572020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5758
5759 * linux-nat.h (low_new_clone): New method.
5760 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
5761
69b037c3
SM
57622020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
5763
5764 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
5765 (dbx_expand_psymtab): ... this.
5766 (start_psymtab): Update.
5767 * mdebugread.c (psymtab_to_symtab_1): Rename to...
5768 (mdebug_expand_psymtab): ... this.
5769 (parse_partial_symbols): Update.
5770 (new_psymtab): Update.
5771 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
5772 (xcoff_expand_psymtab): ... this.
5773 (xcoff_start_psymtab): Update.
5774
48993951
SM
57752020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
5776
5777 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
5778 <expand_dependencies>: ... this.
5779 * psymtab.c (partial_symtab::read_dependencies): Rename to...
5780 (partial_symtab::expand_dependencies): ... this.
5781 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
5782 Update.
5783 (dwarf2_psymtab::expand_psymtab): Update.
5784 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
5785 * mdebugread.c (psymtab_to_symtab_1): Update.
5786 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
5787
3ad83046
SM
57882020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
5789
5790 * psympriv.h (discard_psymtab): Remove.
5791 * dbxread.c (dbx_end_psymtab): Update.
5792 * xcoffread.c (xcoff_end_psymtab): Update.
5793
4d1b9ab6
TT
57942020-03-28 Tom Tromey <tom@tromey.com>
5795
5796 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
5797 comment.
5798
f1749218
TT
57992020-03-28 Tom Tromey <tom@tromey.com>
5800
5801 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
5802
ebea7626
HD
58032020-03-27 Hannes Domani <ssbssa@yahoo.de>
5804
5805 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
5806
a879b4d5
JB
58072020-03-26 John Baldwin <jhb@FreeBSD.org>
5808
5809 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
5810
0826b30a
TT
58112020-03-26 Tom Tromey <tom@tromey.com>
5812
5813 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
5814 (mark_common_block_symbol_computed, read_tag_string_type)
5815 (attr_to_dynamic_prop, read_subrange_type): Update.
5816 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
5817 to be methods on struct attribute.
5818 (skip_one_die, process_imported_unit_die, read_namespace_alias)
5819 (read_call_site_scope, partial_die_info::read)
5820 (partial_die_info::read, lookup_die_type, follow_die_ref):
5821 Update.
5822 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
5823 from dwarf2_get_ref_die_offset.
5824 (attribute::constant_value): New method, from
5825 dwarf2_get_attr_constant_value.
5826 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
5827 Declare method.
5828 <constant_value>: New method.
5829
2b2558bf
TT
58302020-03-26 Tom Tromey <tom@tromey.com>
5831
5832 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
5833 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
5834 (dwarf_type_encoding_name): Move to stringify.c.
5835 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
5836 * dwarf2/stringify.c: New file.
5837 * dwarf2/stringify.h: New file.
5838
eeb64781
TT
58392020-03-26 Tom Tromey <tom@tromey.com>
5840
5841 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
5842 Rewrite.
5843
a39fdb41
TT
58442020-03-26 Tom Tromey <tom@tromey.com>
5845
5846 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
5847 methods.
5848 * dwarf2/read.c (lookup_addr_base): Move to die.h.
5849 (lookup_ranges_base): Likewise.
5850 (read_cutu_die_from_dwo, read_full_die_1): Update.
5851
436c571c
TT
58522020-03-26 Tom Tromey <tom@tromey.com>
5853
5854 * dwarf2/read.c (read_import_statement, read_file_scope)
5855 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
5856 (read_lexical_block_scope, read_call_site_scope)
5857 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
5858 (handle_struct_member_die, process_structure_scope)
5859 (update_enumeration_type_from_children)
5860 (process_enumeration_scope, read_array_type, read_common_block)
5861 (read_namespace, read_module, read_subroutine_type): Update.
5862 (sibling_die): Remove.
5863
052c8bb8
TT
58642020-03-26 Tom Tromey <tom@tromey.com>
5865
5866 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
5867 (build_type_psymtabs_reader, read_structure_type)
5868 (read_enumeration_type, read_full_die_1): Update.
5869 (dwarf2_attr_no_follow): Move to die.h.
5870 * dwarf2/die.h (struct die_info) <attr>: New method.
5871
2b24b6e4
TT
58722020-03-26 Tom Tromey <tom@tromey.com>
5873
5874 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
5875 <base_address>: Now an optional.
5876 (dwarf2_find_base_address, dwarf2_rnglists_process)
5877 (dwarf2_ranges_process, fill_in_loclist_baton)
5878 (dwarf2_symbol_mark_computed): Update.
5879
c2d50fd0
TT
58802020-03-26 Tom Tromey <tom@tromey.com>
5881
5882 * dwarf2/read.c (struct die_info): Move to die.h.
5883 * dwarf2/die.h: New file.
5884
0df7ad3a
TT
58852020-03-26 Tom Tromey <tom@tromey.com>
5886
5887 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
5888 * dwarf2/read.c
5889 (dwarf2_statement_list_fits_in_line_number_section_complaint):
5890 Move to line-header.c.
5891 (read_checked_initial_length_and_offset, read_formatted_entries):
5892 Likewise.
5893 (dwarf_decode_line_header): Split into two.
5894 * dwarf2/line-header.c
5895 (dwarf2_statement_list_fits_in_line_number_section_complaint):
5896 Move from read.c.
5897 (read_checked_initial_length_and_offset, read_formatted_entries):
5898 Likewise.
5899 (dwarf_decode_line_header): New function, split from read.c.
5900
86c0bb4c
TT
59012020-03-26 Tom Tromey <tom@tromey.com>
5902
5903 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
5904 Declare method.
5905 * dwarf2/read.c (read_attribute_value): Update.
5906 (dwarf2_per_objfile::read_line_string): Rename from
5907 read_indirect_line_string.
5908 (read_formatted_entries): Update.
5909
2ef46c2f
TT
59102020-03-26 Tom Tromey <tom@tromey.com>
5911
5912 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
5913 variable.
5914
4f9c1eda
TT
59152020-03-26 Tom Tromey <tom@tromey.com>
5916
5917 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
5918 const.
5919 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
5920 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
5921 parameter const.
5922
5a0e026f
TT
59232020-03-26 Tom Tromey <tom@tromey.com>
5924
5925 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
5926 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
5927 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
5928 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
5929
8844c11b
TT
59302020-03-26 Tom Tromey <tom@tromey.com>
5931
5932 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
5933 file_names_size, file_full_name, file_file_name>: Use const.
5934 <file_name_at, file_names>: Add const overload.
5935 * dwarf2/line-header.c (line_header::file_file_name)
5936 (line_header::file_full_name): Update.
5937
c90ec28a
TT
59382020-03-26 Tom Tromey <tom@tromey.com>
5939
5940 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
5941 (macro_start_file, consume_improper_spaces)
5942 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
5943 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
5944 (dwarf_decode_macros): Move to macro.c.
5945 * dwarf2/macro.c: New file.
5946 * dwarf2/macro.h: New file.
5947 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
5948
4f44ae6c
TT
59492020-03-26 Tom Tromey <tom@tromey.com>
5950
5951 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
5952 method.
5953 * dwarf2/section.c: New method. From
5954 read_indirect_string_at_offset_from.
5955 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
5956 (read_indirect_string_at_offset_from): Move to section.c.
5957 (read_indirect_string_at_offset): Rewrite.
5958 (read_indirect_line_string_at_offset): Remove.
5959 (read_indirect_string, read_indirect_line_string)
5960 (dwarf_decode_macro_bytes): Update.
5961
a0194fa8
TT
59622020-03-26 Tom Tromey <tom@tromey.com>
5963
5964 * dwarf2/section.h (struct dwarf2_section_info)
5965 <overload_complaint>: Declare.
5966 (dwarf2_section_buffer_overflow_complaint): Don't declare.
5967 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
5968 Rename from dwarf2_section_buffer_overflow_complaint.
5969 * dwarf2/read.c (skip_one_die, partial_die_info::read)
5970 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
5971
3d27bbdb
TT
59722020-03-26 Tom Tromey <tom@tromey.com>
5973
5974 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
5975 Declare.
5976 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
5977 Move from read.c.
5978 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
5979 to section.c.
5980
9eac9650
TT
59812020-03-26 Tom Tromey <tom@tromey.com>
5982
5983 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
5984
bf80d710
TT
59852020-03-26 Tom Tromey <tom@tromey.com>
5986
5987 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
5988 "builder".
5989 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
5990 parameter.
5991 (dwarf_decode_macros): Update.
5992
0314b390
TT
59932020-03-26 Tom Tromey <tom@tromey.com>
5994
5995 * dwarf2/read.c (read_attribute_value): Update.
5996 (read_indirect_string_from_dwz): Move to dwz.c; change into
5997 method.
5998 (dwarf_decode_macro_bytes): Update.
5999 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
6000 * dwarf2/dwz.c: New file.
6001 * Makefile.in (COMMON_SFILES): Add dwz.c.
6002
9fda78b6
TT
60032020-03-26 Tom Tromey <tom@tromey.com>
6004
6005 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
6006 * dwarf2/read.c: Add include.
6007 * dwarf2/index-write.c: Add include.
6008 * dwarf2/index-cache.c: Add include.
6009 * dwarf2/dwz.h: New file.
6010
33aa3c10
TT
60112020-03-25 Tom Tromey <tom@tromey.com>
6012
6013 * compile/compile-object-load.c (get_out_value_type): Mention
6014 correct symbol name in error message.
6015
d503b685
HD
60162020-03-25 Hannes Domani <ssbssa@yahoo.de>
6017
6018 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
6019
7b1eff95
TV
60202020-03-25 Tom de Vries <tdevries@suse.de>
6021
6022 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
6023 * symmisc.c (dump_symtab_1): Print user and includes fields.
6024 (maintenance_info_symtabs): Same.
6025
dd895392
AB
60262020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
6027
6028 PR gdb/25534
6029 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
6030 (riscv_regcache_cooked_write): New function.
6031 (riscv_push_dummy_call): Use new function.
6032 (riscv_return_value): Likewise.
6033
5ab2fbf1
SM
60342020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
6035
6036 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
6037 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
6038 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
6039 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
6040 * infrun.c (follow_fork): Likewise.
6041 (follow_fork_inferior): Likewise.
6042 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
6043 * linux-nat.h (class linux_nat_target): Likewise.
6044 * remote.c (class remote_target) <follow_fork>: Likewise.
6045 (remote_target::follow_fork): Likewise.
6046 * target-delegates.c: Re-generate.
6047 * target.c (default_follow_fork): Likewise.
6048 (target_follow_fork): Likewise.
6049 * target.h (struct target_ops) <follow_fork>: Likewise.
6050 (target_follow_fork): Likewise.
6051
a64fafb5
TV
60522020-03-24 Tom de Vries <tdevries@suse.de>
6053
6054 * psymtab.c (maintenance_info_psymtabs): Print user field.
6055
fe26d3a3
TT
60562020-03-20 Tom Tromey <tromey@adacore.com>
6057
6058 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
6059 const.
6060 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
6061 const.
6062
c884cc46
SM
60632020-03-20 Simon Marchi <simon.marchi@efficios.com>
6064
6065 * ptrace.m4: Don't check for ptrace declaration.
6066 * config.in: Re-generate.
6067 * configure: Re-generate.
6068 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
6069 not defined.
6070
1ff700c2
KR
60712020-03-20 Kamil Rytarowski <n54@gmx.com>
6072
6073 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
6074 `PTRACE_TYPE_RET'.
6075 * i386-bsd-nat.c (gdb_ptrace): Likewise.
6076 * sparc-nat.c (gdb_ptrace): Likewise.
6077 * x86-bsd-nat.c (gdb_ptrace): Likewise.
6078
f7d4f0b1
TT
60792020-03-20 Tom Tromey <tromey@adacore.com>
6080
6081 * c-exp.y (lex_one_token): Fix assert.
6082
f67210ff
TT
60832020-03-20 Tom Tromey <tromey@adacore.com>
6084
6085 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
6086 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
6087 strncpy call.
6088
1773be9e
TT
60892020-03-20 Tom Tromey <tromey@adacore.com>
6090
6091 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
6092
70304be9
TT
60932020-03-20 Tom Tromey <tromey@adacore.com>
6094
6095 * ada-valprint.c (print_variant_part): Remove parameters; switch
6096 to value-based API.
6097 (print_field_values): Likewise.
6098 (ada_val_print_struct_union): Likewise.
6099 (ada_value_print_1): Update.
6100
9faa006d
KR
61012020-03-20 Kamil Rytarowski <n54@gmx.com>
6102
6103 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
6104 nbsd_nat_target instead of inf_ptrace_target.
6105 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
6106 nbsd_nat_target.
6107
4a90f062
KR
61082020-03-20 Kamil Rytarowski <n54@gmx.com>
6109
6110 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
6111 it to the ptrace call.
6112 * (store_registers): Likewise.
6113
61142020-03-20 Kamil Rytarowski <n54@gmx.com>
c7da12c7
KR
6115
6116 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
6117 it to the ptrace call.
6118 * (store_registers): Likewise.
6119
2d07da27
LM
61202020-03-19 Luis Machado <luis.machado@linaro.org>
6121
6122 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
6123 valid, fetch vg value from ptrace.
6124
f09db380
KR
61252020-03-19 Kamil Rytarowski <n54@gmx.com>
6126 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
6127 * inf-ptrace.c: Likewise.
6128 * (gdb_ptrace): Add.
6129 * (inf_ptrace_target::resume): Update.
6130 * (inf_ptrace_target::xfer_partial): Likewise.
6131 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
6132 * (inf_ptrace_peek_poke): Update.
6133
fcc7376e
KR
61342020-03-19 Kamil Rytarowski <n54@gmx.com>
6135
6136 * x86-bsd-nat.c (gdb_ptrace): New.
6137 * (x86bsd_dr_set): Add new argument `ptid'.
6138 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
6139 x86bsd_dr_set_addr): Update.
6140
cada5fc9
AB
61412020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
6142
6143 * remote.c (remote_target::process_stop_reply): Handle events for
6144 all threads differently.
6145
19a2740f
AB
61462020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
6147
6148 * completer.c (completion_tracker::remove_completion): Define new
6149 function.
6150 * completer.h (completion_tracker::remove_completion): Declare new
6151 function.
6152 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
6153 when adding a C++ function symbol.
6154
724fd9ba
AB
61552020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
6156
6157 * completer.c (completion_tracker::completion_hash_entry): Define
6158 new class.
6159 (advance_to_filename_complete_word_point): Call
6160 recompute_lowest_common_denominator.
6161 (completion_tracker::completion_tracker): Call discard_completions
6162 to setup the hash table.
6163 (completion_tracker::discard_completions): Allow for being called
6164 from the constructor, pass new equal function, and element deleter
6165 when constructing the hash table. Initialise new class member
6166 variables.
6167 (completion_tracker::maybe_add_completion): Remove use of
6168 m_entries_vec, and store more information into m_entries_hash.
6169 (completion_tracker::recompute_lcd_visitor): New function, most
6170 content taken from...
6171 (completion_tracker::recompute_lowest_common_denominator):
6172 ...here, this now just visits each item in the hash calling the
6173 above visitor.
6174 (completion_tracker::build_completion_result): Remove use of
6175 m_entries_vec, call recompute_lowest_common_denominator.
6176 * completer.h (completion_tracker::have_completions): Remove use
6177 of m_entries_vec.
6178 (completion_tracker::completion_hash_entry): Declare new class.
6179 (completion_tracker::recompute_lowest_common_denominator): Change
6180 function signature.
6181 (completion_tracker::recompute_lcd_visitor): Declare new function.
6182 (completion_tracker::m_entries_vec): Delete.
6183 (completion_tracker::m_entries_hash): Initialize to NULL.
6184 (completion_tracker::m_lowest_common_denominator_valid): New
6185 member variable.
6186 (completion_tracker::m_lowest_common_denominator_max_length): New
6187 member variable.
6188
5a82b8a1
KR
61892020-03-17 Kamil Rytarowski <n54@gmx.com>
6190
6191 * regformats/regdef.h: Put reg in gdb namespace.
6192
fb516a69
KR
61932020-03-17 Kamil Rytarowski <n54@gmx.com>
6194
6195 * i386-bsd-nat.c (gdb_ptrace): New.
6196 * (i386bsd_fetch_inferior_registers,
6197 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
6198 * (i386bsd_fetch_inferior_registers,
6199 i386bsd_store_inferior_registers) Use gdb_ptrace.
6200
1c0aa1fb
KR
62012020-03-17 Kamil Rytarowski <n54@gmx.com>
6202
6203 * amd64-bsd-nat.c (gdb_ptrace): New.
6204 * (amd64bsd_fetch_inferior_registers,
6205 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
6206 * (amd64bsd_fetch_inferior_registers,
6207 amd64bsd_store_inferior_registers) Use gdb_ptrace.
6208
5ccd2fb7
KR
62092020-03-17 Kamil Rytarowski <n54@gmx.com>
6210
6211 * user-regs.c (user_reg::read): Rename to...
6212 (user_reg::xread): ...this.
6213 * (append_user_reg): Rename argument `read' to `xread'.
6214 * (user_reg_add_builtin): Likewise.
6215 * (user_reg_add): Likewise.
6216 * (value_of_user_reg): Likewise.
6217
2108a63a
KR
62182020-03-17 Kamil Rytarowski <n54@gmx.com>
6219
6220 * sparc-nat.c (gdb_ptrace): New.
6221 * sparc-nat.c (sparc_fetch_inferior_registers)
6222 (sparc_store_inferior_registers) Remove obsolete comment.
6223 * sparc-nat.c (sparc_fetch_inferior_registers)
6224 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
6225 * sparc-nat.c (sparc_fetch_inferior_registers)
6226 (sparc_store_inferior_registers) Use gdb_ptrace.
6227
a225c9a8
KR
62282020-03-17 Kamil Rytarowski <n54@gmx.com>
6229
6230 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
6231 it to the ptrace call.
6232 * sh-nbsd-nat.c (store_registers): Likewise.
6233
98097623
KR
62342020-03-17 Kamil Rytarowski <n54@gmx.com>
6235
6236 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
6237 nbsd_nat_target instead of inf_ptrace_target.
6238 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
6239 nbsd_nat_target.
6240
9e38d619
KR
62412020-03-17 Kamil Rytarowski <n54@gmx.com>
6242
6243 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
6244
a2ecbe9f
KR
62452020-03-17 Kamil Rytarowski <n54@gmx.com>
6246
6247 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
6248 <sys/sysctl.h>.
6249 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
6250
58990295
TV
62512020-03-17 Tom de Vries <tdevries@suse.de>
6252
6253 PR gdb/23710
6254 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
6255 fields.
6256 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
6257 fields.
6258 (process_imported_unit_die): Skip import of c++ CUs.
6259
771dd3a8
TT
62602020-03-16 Tom Tromey <tom@tromey.com>
6261
6262 * p-valprint.c (pascal_object_print_value): Initialize
6263 base_value.
6264
817a7585
AK
62652020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
6266 Shahab Vahedi <shahab@synopsys.com>
6267
6268 * Makefile.in: Add arch/arc.o
6269 * configure.tgt: Likewise.
6270 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
6271 (_initialize_arc_tdep): Don't initialize old target descriptions.
aac66a4c 6272 (arc_read_description): New function to cache target descriptions.
817a7585
AK
6273 * arc-tdep.h (arc_read_description): Add proto type.
6274 * arch/arc.c: New file.
6275 * arch/arc.h: Likewise.
6276 * features/Makefile: Replace old target descriptions with new.
6277 * features/arc-arcompact.c: Remove.
6278 * features/arc-arcompact.xml: Likewise.
6279 * features/arc-v2.c: Likewise
6280 * features/arc-v2.xml: Likewise
6281 * features/arc/aux-arcompact.xml: New file.
6282 * features/arc/aux-v2.xml: Likewise.
6283 * features/arc/core-arcompact.xml: Likewise.
6284 * features/arc/core-v2.xml: Likewise.
6285 * features/arc/aux-arcompact.c: Generate.
6286 * features/arc/aux-v2.c: Likewise.
6287 * features/arc/core-arcompact.c: Likewise.
6288 * features/arc/core-v2.c: Likewise.
6289 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
6290
67430cd0
TT
62912020-03-16 Tom Tromey <tromey@adacore.com>
6292
6293 PR gdb/25663:
6294 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
6295 putting value into bcache.
6296
30efb6c7
SM
62972020-03-16 Simon Marchi <simon.marchi@efficios.com>
6298
6299 PR gdb/21500
6300 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
6301 to...
6302 (amd64_windows_init_abi_common): ... this. Don't set size of
6303 long type.
6304 (amd64_windows_init_abi): New function.
6305 (amd64_cygwin_init_abi): New function.
6306 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
6307 the Cygwin OS ABI.
6308 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
6309 comment.
6310
8db52437
SM
63112020-03-16 Simon Marchi <simon.marchi@efficios.com>
6312
6313 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
6314 * windows-tdep.c (CYGWIN_DLL_NAME): New.
6315 (pe_import_directory_entry): New struct type.
6316 (is_linked_with_cygwin_dll): New function.
6317 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
6318 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
6319 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
6320
5982a56a
SM
63212020-03-16 Simon Marchi <simon.marchi@efficios.com>
6322
6323 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
6324 i386_cygwin_core_osabi_sniffer.
6325
7a1998df
SM
63262020-03-16 Simon Marchi <simon.marchi@efficios.com>
6327
6328 * i386-cygwin-tdep.c: Rename to...
6329 * i386-windows-tdep.c: ... this.
6330 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
6331 i386-windows-tdep.c.
6332 * configure.tgt: Likewise.
6333
053205cc
SM
63342020-03-16 Simon Marchi <simon.marchi@efficios.com>
6335
6336 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
6337 * osabi.c (gdb_osabi_names): Add "Windows".
6338 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
6339 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
6340 (i386_cygwin_core_osabi_sniffer): New function, extracted from
6341 i386_cygwin_osabi_sniffer.
6342 (_initialize_i386_cygwin_tdep): Register OS ABI
6343 GDB_OSABI_WINDOWS for i386.
6344 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
6345 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
6346 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
6347 for x86-64.
6348 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
6349 when the target matches '*-*-mingw*'.
6350
fe4b2ee6
SM
63512020-03-16 Simon Marchi <simon.marchi@efficios.com>
6352
6353 * defs.h (enum gdb_osabi): Move to...
6354 * osabi.h (enum gdb_osabi): ... here.
6355 * gdbarch.sh: Include osabi.h in gdbarch.h.
6356 * gdbarch.h: Re-generate.
6357
cb9b645d
SM
63582020-03-16 Simon Marchi <simon.marchi@efficios.com>
6359
6360 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
6361 function.
6362 (_initialize_amd64_windows_tdep): Register osabi sniffer.
6363
3293bbaf
TT
63642020-03-14 Tom Tromey <tom@tromey.com>
6365
6366 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
6367 for C++.
6368 (c_type_print_modifier): Likewise. Add "language" parameter.
6369 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
6370 (c_type_print_base_1): Update.
6371 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
6372 constants.
6373 * type-stack.c (type_stack::insert): Handle tp_atomic and
6374 tp_restrict.
6375 (type_stack::follow_type_instance_flags): Likewise.
6376 (type_stack::follow_types): Likewise. Merge type-following code.
6377 * c-exp.y (RESTRICT, ATOMIC): New tokens.
6378 (space_identifier, cv_with_space_id)
6379 (const_or_volatile_or_space_identifier_noopt)
6380 (const_or_volatile_or_space_identifier): Remove.
6381 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
6382 rules.
6383 (ptr_operator, typebase): Update.
6384 (enum token_flag) <FLAG_C>: New constant.
6385 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
6386 "_Atomic".
6387 (lex_one_token): Handle FLAG_C.
6388
154151a6
KR
63892020-03-14 Kamil Rytarowski <n54@gmx.com>
6390
6391 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
6392 it to the ptrace call.
6393 * m68k-bsd-nat.c (store_registers): Likewise.
6394
bc107784
KR
63952020-03-14 Kamil Rytarowski <n54@gmx.com>
6396
6397 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
6398 gdb_byte *.
6399 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
6400 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
6401 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
6402
01a80117
KR
64032020-03-14 Kamil Rytarowski <n54@gmx.com>
6404
6405 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
6406 nbsd_nat_target instead of inf_ptrace_target.
6407 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
6408 nbsd_nat_target.
6409
f90280ca
KR
64102020-03-14 Kamil Rytarowski <n54@gmx.com>
6411
6412 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
6413 register_t.
6414
6def66f1
KR
64152020-03-14 Kamil Rytarowski <n54@gmx.com>
6416
6417 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
6418 it to the ptrace call.
6419 * alpha-bsd-nat.c (store_registers): Likewise.
6420
66eaca97
KR
64212020-03-14 Kamil Rytarowski <n54@gmx.com>
6422
6423 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
6424 includes.
6425 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
6426 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
6427 fill_fpregset): Likewise.
6428
4fed520b
KR
64292020-03-14 Kamil Rytarowski <n54@gmx.com>
6430
6431 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
6432 nbsd_nat_target instead of inf_ptrace_target.
6433 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
6434 nbsd_nat_target.
6435
2190cf06
KR
64362020-03-14 Kamil Rytarowski <n54@gmx.com>
6437
6438 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
6439 register_t.
6440
75c56d3d
KR
64412020-03-14 Kamil Rytarowski <n54@gmx.com>
6442
6443 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
6444 it to the ptrace call.
6445 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
6446 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
6447 * arm-nbsd-nat.c (store_register): Likewise.
6448 * arm-nbsd-nat.c (store_regs): Likewise.
6449 * arm-nbsd-nat.c (store_fp_register): Likewise.
6450 * arm-nbsd-nat.c (store_fp_regs): Likewise.
6451
6018d381
KR
64522020-03-14 Kamil Rytarowski <n54@gmx.com>
6453
6454 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
6455 nbsd_nat_target instead of inf_ptrace_target.
6456 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
6457 nbsd_nat_target.
6458
013f99f0
KR
64592020-03-14 Kamil Rytarowski <n54@gmx.com>
6460
6461 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
6462 it to the ptrace call.
6463 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
6464
12753073
KR
64652020-03-14 Kamil Rytarowski <n54@gmx.com>
6466
6227b330
KR
6467 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
6468 it to the ptrace call.
6469 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
6470
64712020-03-14 Kamil Rytarowski <n54@gmx.com>
6472
6473 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
6474 gdb_byte *.
12753073
KR
6475 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
6476
d5be5fa4
KR
64772020-03-14 Kamil Rytarowski <n54@gmx.com>
6478
6479 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
6480 instead of inf_ptrace_target.
6481 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
6482 nbsd_nat_target.
6483
8110f842
KR
64842020-03-14 Kamil Rytarowski <n54@gmx.com>
6485
6486 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
6487 register_t.
6488
52feded7
KR
64892020-03-14 Kamil Rytarowski <n54@gmx.com>
6490
6491 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
6492 register_t.
6493
25567eee
KR
64942020-03-14 Kamil Rytarowski <n54@gmx.com>
6495
6496 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
6497 register_t.
6498
426a9c18
TT
64992020-03-13 Tom Tromey <tom@tromey.com>
6500
6501 * value.h (val_print): Don't declare.
6502 * valprint.h (val_print_array_elements)
6503 (val_print_scalar_formatted, generic_val_print): Don't declare.
6504 * valprint.c (generic_val_print_array): Take a struct value.
6505 (generic_val_print_ptr, generic_val_print_memberptr)
6506 (generic_val_print_bool, generic_val_print_int)
6507 (generic_val_print_char, generic_val_print_complex)
6508 (generic_val_print): Remove.
6509 (generic_value_print): Update.
6510 (do_val_print): Remove unused parameters. Don't call
6511 la_val_print.
6512 (val_print): Remove.
6513 (common_val_print): Update. Don't call value_check_printable.
6514 (val_print_scalar_formatted, val_print_array_elements): Remove.
6515 * rust-lang.c (rust_val_print): Remove.
6516 (rust_language_defn): Update.
6517 * p-valprint.c (pascal_val_print): Remove.
6518 (pascal_value_print_inner): Update.
6519 (pascal_object_print_val_fields, pascal_object_print_val):
6520 Remove.
6521 (pascal_object_print_static_field): Update.
6522 * p-lang.h (pascal_val_print): Don't declare.
6523 * p-lang.c (pascal_language_defn): Update.
6524 * opencl-lang.c (opencl_language_defn): Update.
6525 * objc-lang.c (objc_language_defn): Update.
6526 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
6527 * m2-lang.h (m2_val_print): Don't declare.
6528 * m2-lang.c (m2_language_defn): Update.
6529 * language.h (struct language_defn) <la_val_print>: Remove.
6530 * language.c (unk_lang_value_print_inner): Rename. Change
6531 argument types.
6532 (unknown_language_defn, auto_language_defn): Update.
6533 * go-valprint.c (go_val_print): Remove.
6534 * go-lang.h (go_val_print): Don't declare.
6535 * go-lang.c (go_language_defn): Update.
6536 * f-valprint.c (f_val_print): Remove.
6537 * f-lang.h (f_value_print): Don't declare.
6538 * f-lang.c (f_language_defn): Update.
6539 * d-valprint.c (d_val_print): Remove.
6540 * d-lang.h (d_value_print): Don't declare.
6541 * d-lang.c (d_language_defn): Update.
6542 * cp-valprint.c (cp_print_value_fields)
6543 (cp_print_value_fields_rtti, cp_print_value): Remove.
6544 (cp_print_static_field): Update.
6545 * c-valprint.c (c_val_print_array, c_val_print_ptr)
6546 (c_val_print_struct, c_val_print_union, c_val_print_int)
6547 (c_val_print_memberptr, c_val_print): Remove.
6548 * c-lang.h (c_val_print_array, cp_print_value_fields)
6549 (cp_print_value_fields_rtti): Don't declare.
6550 * c-lang.c (c_language_defn, cplus_language_defn)
6551 (asm_language_defn, minimal_language_defn): Update.
6552 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
6553 (ada_val_print_enum): Take a struct value.
6554 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
6555 (ada_val_print): Remove.
6556 (ada_value_print_1): Update.
6557 (printable_val_type): Remove.
6558 * ada-lang.h (ada_val_print): Don't declare.
6559 * ada-lang.c (ada_language_defn): Update.
6560
42331a1e
TT
65612020-03-13 Tom Tromey <tom@tromey.com>
6562
6563 * valprint.c (do_val_print): Update.
6564 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
6565 a struct value.
6566 (value_to_value_object_no_release): Declare.
6567 * python/py-value.c (value_to_value_object_no_release): New
6568 function.
6569 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
6570 struct value.
6571 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
6572 function.
6573 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
6574 a struct value.
6575 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
6576 Declare.
6577 (gdbscm_apply_val_pretty_printer): Take a struct value.
6578 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
6579 value.
6580 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
6581 value.
6582 * extension-priv.h (struct extension_language_ops)
6583 <apply_val_pretty_printer>: Take a struct value.
6584 * cp-valprint.c (cp_print_value): Create a struct value.
6585 (cp_print_value): Update.
6586
3a916a97
TT
65872020-03-13 Tom Tromey <tom@tromey.com>
6588
6589 * ada-valprint.c (print_field_values): Call common_val_print.
6590
b59eac37
TT
65912020-03-13 Tom Tromey <tom@tromey.com>
6592
6593 * ada-valprint.c (val_print_packed_array_elements): Remove
6594 bitoffset and val parameters. Call common_val_print.
6595 (ada_val_print_string): Remove offset, address, and original_value
6596 parameters.
6597 (ada_val_print_array): Update.
6598 (ada_value_print_array): New function.
6599 (ada_value_print_1): Call it.
6600
03371129
TT
66012020-03-13 Tom Tromey <tom@tromey.com>
6602
6603 * ada-valprint.c (ada_value_print): Use common_val_print.
6604
2e088f8b
TT
66052020-03-13 Tom Tromey <tom@tromey.com>
6606
6607 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
6608
39ef85a8
TT
66092020-03-13 Tom Tromey <tom@tromey.com>
6610
6611 * ada-valprint.c (ada_value_print_num): New function.
6612 (ada_value_print_1): Use it.
6613
b9fa6e07
TT
66142020-03-13 Tom Tromey <tom@tromey.com>
6615
6616 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
6617
416595d6
TT
66182020-03-13 Tom Tromey <tom@tromey.com>
6619
6620 * ada-valprint.c (ada_value_print_ptr): New function.
6621 (ada_value_print_1): Use it.
6622
5b5e15ec
TT
66232020-03-13 Tom Tromey <tom@tromey.com>
6624
6625 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
6626 call common_val_print.
6627 (ada_val_print_1): Update.
6628 (ada_value_print_1): New function.
6629 (ada_value_print_inner): Rewrite.
6630
fbf54e75
TT
66312020-03-13 Tom Tromey <tom@tromey.com>
6632
6633 * cp-valprint.c (cp_print_value_fields): Update.
6634 (cp_print_value): New function.
6635
64b653ca
TT
66362020-03-13 Tom Tromey <tom@tromey.com>
6637
6638 * m2-valprint.c (m2_value_print_inner): Use
6639 cp_print_value_fields.
6640 * cp-valprint.c (cp_print_value_fields): New function.
6641 * c-valprint.c (c_value_print_struct): New function.
6642 (c_value_print_inner): Use c_value_print_struct.
6643 * c-lang.h (cp_print_value_fields): Declare.
6644
6999f067
TT
66452020-03-13 Tom Tromey <tom@tromey.com>
6646
6647 * c-valprint.c (c_value_print_array): New function.
6648 (c_value_print_inner): Use it.
6649
ce80b8bd
TT
66502020-03-13 Tom Tromey <tom@tromey.com>
6651
6652 * c-valprint.c (c_value_print_memberptr): New function.
6653 (c_value_print_inner): Use it.
6654
2faac269
TT
66552020-03-13 Tom Tromey <tom@tromey.com>
6656
6657 * c-valprint.c (c_value_print_int): New function.
6658 (c_value_print_inner): Use it.
6659
da3e2c29
TT
66602020-03-13 Tom Tromey <tom@tromey.com>
6661
6662 * c-valprint.c (c_value_print_ptr): New function.
6663 (c_value_print_inner): Use it.
6664
50836231
TT
66652020-03-13 Tom Tromey <tom@tromey.com>
6666
6667 * c-valprint.c (c_value_print_inner): Rewrite.
6668
4f412b6e
TT
66692020-03-13 Tom Tromey <tom@tromey.com>
6670
6671 * valprint.c (generic_value_print_complex): New function.
6672 (generic_value_print): Use it.
6673
f5354008
TT
66742020-03-13 Tom Tromey <tom@tromey.com>
6675
6676 * valprint.c (generic_val_print_float): Don't call
6677 val_print_scalar_formatted.
6678 (generic_val_print, generic_value_print): Update.
6679
3eec3b05
TT
66802020-03-13 Tom Tromey <tom@tromey.com>
6681
6682 * valprint.c (generic_value_print_char): New function
6683 (generic_value_print): Use it.
6684
fdddfccb
TT
66852020-03-13 Tom Tromey <tom@tromey.com>
6686
6687 * valprint.c (generic_value_print_int): New function.
6688 (generic_value_print): Use it.
6689
6dde7521
TT
66902020-03-13 Tom Tromey <tom@tromey.com>
6691
6692 * valprint.c (generic_value_print_bool): New function.
6693 (generic_value_print): Use it.
6694
4112d2e6
TT
66952020-03-13 Tom Tromey <tom@tromey.com>
6696
6697 * valprint.c (generic_val_print_func): Simplify.
6698 (generic_val_print, generic_value_print): Update.
6699
65786af6
TT
67002020-03-13 Tom Tromey <tom@tromey.com>
6701
6702 * valprint.c (generic_val_print_flags): Remove.
6703 (generic_val_print, generic_value_print): Update.
6704 (val_print_type_code_flags): Add original_value parameter.
6705
40f3ce18
TT
67062020-03-13 Tom Tromey <tom@tromey.com>
6707
6708 * valprint.c (generic_val_print): Update.
6709 (generic_value_print): Update.
6710 * valprint.c (generic_val_print_enum): Don't call
6711 val_print_scalar_formatted.
6712
2a5b130b
TT
67132020-03-13 Tom Tromey <tom@tromey.com>
6714
6715 * valprint.c (generic_value_print): Call generic_value_print_ptr.
6716 * valprint.c (generic_value_print_ptr): New function.
6717
abc66ce9
TT
67182020-03-13 Tom Tromey <tom@tromey.com>
6719
6720 * valprint.c (generic_value_print): Rewrite.
6721
07a32858
TT
67222020-03-13 Tom Tromey <tom@tromey.com>
6723
6724 * p-valprint.c (pascal_object_print_value_fields)
6725 (pascal_object_print_value): New functions.
6726
64d64d3a
TT
67272020-03-13 Tom Tromey <tom@tromey.com>
6728
6729 * p-valprint.c (pascal_value_print_inner): Rewrite.
6730
6a95a1f5
TT
67312020-03-13 Tom Tromey <tom@tromey.com>
6732
6733 * f-valprint.c (f_value_print_innner): Rewrite.
6734
59fcdac6
TT
67352020-03-13 Tom Tromey <tom@tromey.com>
6736
6737 * m2-valprint.c (m2_print_unbounded_array): New overload.
6738 (m2_print_unbounded_array): Update.
6739 (m2_print_array_contents): Take a struct value.
6740 (m2_value_print_inner): Rewrite.
6741
d133c3e1
TT
67422020-03-13 Tom Tromey <tom@tromey.com>
6743
6744 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
6745 (d_value_print_inner): New function.
6746 * d-lang.h (d_value_print_inner): Declare.
6747 * d-lang.c (d_language_defn): Use d_value_print_inner.
6748
23b0f06b
TT
67492020-03-13 Tom Tromey <tom@tromey.com>
6750
6751 * go-valprint.c (go_value_print_inner): New function.
6752 * go-lang.h (go_value_print_inner): Declare.
6753 * go-lang.c (go_language_defn): Use go_value_print_inner.
6754
5f56f7cb
TT
67552020-03-13 Tom Tromey <tom@tromey.com>
6756
6757 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
6758 API.
6759 (rust_val_print): Rewrite.
6760 (rust_value_print_inner): New function, from rust_val_print.
6761 (rust_language_defn): Use rust_value_print_inner.
6762
26792ee0
TT
67632020-03-13 Tom Tromey <tom@tromey.com>
6764
6765 * ada-valprint.c (ada_value_print_inner): New function.
6766 * ada-lang.h (ada_value_print_inner): Declare.
6767 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
6768
24051bbe
TT
67692020-03-13 Tom Tromey <tom@tromey.com>
6770
6771 * f-valprint.c (f_value_print_innner): New function.
6772 * f-lang.h (f_value_print_innner): Declare.
6773 * f-lang.c (f_language_defn): Use f_value_print_innner.
6774
c0941be6
TT
67752020-03-13 Tom Tromey <tom@tromey.com>
6776
6777 * p-valprint.c (pascal_value_print_inner): New function.
6778 * p-lang.h (pascal_value_print_inner): Declare.
6779 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
6780
62c4663d
TT
67812020-03-13 Tom Tromey <tom@tromey.com>
6782
6783 * m2-valprint.c (m2_value_print_inner): New function.
6784 * m2-lang.h (m2_value_print_inner): Declare.
6785 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
6786
62182190
TT
67872020-03-13 Tom Tromey <tom@tromey.com>
6788
6789 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
6790 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
6791 * c-valprint.c (c_value_print_inner): New function.
6792 * c-lang.h (c_value_print_inner): Declare.
6793 * c-lang.c (c_language_defn, cplus_language_defn)
6794 (asm_language_defn, minimal_language_defn): Use
6795 c_value_print_inner.
6796
1e592a8a
TT
67972020-03-13 Tom Tromey <tom@tromey.com>
6798
6799 * p-valprint.c (pascal_object_print_value_fields): Now static.
6800 * p-lang.h (pascal_object_print_value_fields): Don't declare.
6801
7fe471e9
TT
68022020-03-13 Tom Tromey <tom@tromey.com>
6803
6804 * c-valprint.c (c_val_print_array): Simplify.
6805
d121c6ce
TT
68062020-03-13 Tom Tromey <tom@tromey.com>
6807
6808 * valprint.c (value_print_array_elements): New function.
6809 * valprint.h (value_print_array_elements): Declare.
6810
4dba70ee
TT
68112020-03-13 Tom Tromey <tom@tromey.com>
6812
6813 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
6814 * mips-tdep.c (mips_print_register): Use
6815 value_print_scalar_formatted.
6816
4f9ae810
TT
68172020-03-13 Tom Tromey <tom@tromey.com>
6818
6819 * valprint.h (value_print_scalar_formatted): Declare.
6820 * valprint.c (value_print_scalar_formatted): New function.
6821
156bfec9
TT
68222020-03-13 Tom Tromey <tom@tromey.com>
6823
6824 * valprint.h (generic_value_print): Declare.
6825 * valprint.c (generic_value_print): New function.
6826
2b4e573d
TT
68272020-03-13 Tom Tromey <tom@tromey.com>
6828
6829 * valprint.c (do_val_print): Call la_value_print_inner, if
6830 available.
6831 * rust-lang.c (rust_language_defn): Update.
6832 * p-lang.c (pascal_language_defn): Update.
6833 * opencl-lang.c (opencl_language_defn): Update.
6834 * objc-lang.c (objc_language_defn): Update.
6835 * m2-lang.c (m2_language_defn): Update.
6836 * language.h (struct language_defn) <la_value_print_inner>: New
6837 member.
6838 * language.c (unknown_language_defn, auto_language_defn): Update.
6839 * go-lang.c (go_language_defn): Update.
6840 * f-lang.c (f_language_defn): Update.
6841 * d-lang.c (d_language_defn): Update.
6842 * c-lang.c (c_language_defn, cplus_language_defn)
6843 (asm_language_defn, minimal_language_defn): Update.
6844 * ada-lang.c (ada_language_defn): Update.
6845
a1f6a07c
TT
68462020-03-13 Tom Tromey <tom@tromey.com>
6847
6848 * c-valprint.c (c_value_print): Use common_val_print.
6849
410cf315
TT
68502020-03-13 Tom Tromey <tom@tromey.com>
6851
6852 * cp-valprint.c (cp_print_static_field): Use common_val_print.
6853
72a45c93
TT
68542020-03-13 Tom Tromey <tom@tromey.com>
6855
6856 * f-valprint.c (f77_print_array_1, f_val_print): Use
6857 common_val_print.
6858
040f66bd
TT
68592020-03-13 Tom Tromey <tom@tromey.com>
6860
6861 * riscv-tdep.c (riscv_print_one_register_info): Use
6862 common_val_print.
6863
a6e05a6c
TT
68642020-03-13 Tom Tromey <tom@tromey.com>
6865
6866 * mi/mi-main.c (output_register): Use common_val_print.
6867
3444c526
TT
68682020-03-13 Tom Tromey <tom@tromey.com>
6869
6870 * infcmd.c (default_print_one_register_info): Use
6871 common_val_print.
6872
c2a44efe
TT
68732020-03-13 Tom Tromey <tom@tromey.com>
6874
6875 * valprint.h (common_val_print_checked): Declare.
6876 * valprint.c (common_val_print_checked): New function.
6877 * stack.c (print_frame_arg): Use common_val_print_checked.
6878
b0c26e99
TT
68792020-03-13 Tom Tromey <tom@tromey.com>
6880
6881 * valprint.c (do_val_print): New function, from val_print.
6882 (val_print): Use do_val_print.
6883 (common_val_print): Use do_val_print.
6884
ce3acbe9
TT
68852020-03-13 Tom Tromey <tom@tromey.com>
6886
6887 * valprint.c (value_print): Use scoped_value_mark.
6888
96c7f873
TV
68892020-03-13 Tom de Vries <tdevries@suse.de>
6890
6891 PR symtab/25646
6892 * psymtab.c (partial_symtab::partial_symtab): Don't set
6893 globals_offset and statics_offset. Push element onto
6894 current_global_psymbols and current_static_psymbols stacks.
6895 (concat): New function.
6896 (end_psymtab_common): Set globals_offset and statics_offset. Pop
6897 element from current_global_psymbols and current_static_psymbols
6898 stacks. Concat popped elements to global_psymbols and
6899 static_symbols.
6900 (add_psymbol_to_list): Use current_global_psymbols and
6901 current_static_psymbols stacks.
6902 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
6903 current_static_psymbols fields.
6904
6ba0a321
CB
69052020-03-12 Christian Biesinger <cbiesinger@google.com>
6906
6907 * corelow.c (sniff_core_bfd): Remove.
6908 (class core_target) <m_core_vec>: Remove.
6909 (core_target::core_target): Update.
6910 (core_file_fns): Remove.
6911 (deprecated_add_core_fns): Remove.
6912 (default_core_sniffer): Remove.
6913 (sniff_core_bfd): Remove.
6914 (default_check_format): Remove.
6915 (gdb_check_format): Remove.
6916 (core_target_open): Update.
6917 (core_target::get_core_register_section): Update.
6918 (get_core_registers_cb): Update.
6919 (core_target::fetch_registers): Update.
6920 * gdbcore.h (struct core_fns): Remove.
6921 (deprecated_add_core_fns): Remove.
6922 (default_core_sniffer): Remove.
6923 (default_check_format): Remove.
6924
227031b2
TT
69252020-03-12 Tom Tromey <tom@tromey.com>
6926
6927 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
6928 CORE_ADDR.
6929 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
6930
53807e9f
TT
69312020-03-12 Tom Tromey <tom@tromey.com>
6932
6933 * remote.c (remote_target::download_tracepoint)
6934 (remote_target::enable_tracepoint)
6935 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
6936 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
6937 sprintf_vma.
6938
64f25102
TT
69392020-03-12 Tom Tromey <tom@tromey.com>
6940
6941 * symfile-mem.c: Update CORE_ADDR size assert.
6942
272cd5a3
SM
69432020-03-12 Simon Marchi <simon.marchi@efficios.com>
6944
6945 * selftest.m4: Move to gdbsupport/.
6946 * acinclude.m4: Update path to selftest.m4.
6947
74cd3f9d
SM
69482020-03-12 Simon Marchi <simon.marchi@efficios.com>
6949
6950 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
6951 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
6952 gdbarch-selfselftests.c and selftest-arch.c.
6953 (SUBDIR_UNITTESTS_OBS): Rename to...
6954 (SELFTESTS_OBS): ... this.
6955 (COMMON_SFILES): Remove disasm-selftests.c and
6956 gdbarch-selftests.c.
6957 * configure.ac: Don't add selftest-arch.{c,o} to
6958 CONFIG_{SRCS,OBS}.
6959 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
6960 preprocessor conditions.
6961
db6878ac
SM
69622020-03-12 Simon Marchi <simon.marchi@efficios.com>
6963
6964 * configure.ac: Don't source bfd/development.sh.
6965 * selftest.m4: Modify comment.
6966 * configure: Re-generate.
6967
4d696a5c
SM
69682020-03-12 Simon Marchi <simon.marchi@efficios.com>
6969
6970 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
6971 not "true" or "false".
6972 * configure: Re-generate.
6973
8dd8e1c7
CB
69742020-03-12 Christian Biesinger <cbiesinger@google.com>
6975
6976 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
6977 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
6978 renamed to arm_nbsd_supply_gregset.
6979 (fetch_register): Update to call arm_nbsd_supply_gregset.
6980 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
6981 (arm_netbsd_nat_target::fetch_registers): Update.
6982 (fetch_elfcore_registers): Removed.
6983 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
6984 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
6985 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
6986 not require NetBSD system headers.
6987 (arm_nbsd_regset): New struct.
6988 (arm_nbsd_iterate_over_regset_sections): New function.
6989 (arm_netbsd_init_abi_common): Updated to call
6990 set_gdbarch_iterate_over_regset_sections.
6991 * arm-nbsd-tdep.h: New file.
6992
dd69bf7a
KB
69932020-03-11 Kevin Buettner <kevinb@redhat.com>
6994
6995 * symtab.c (find_pc_sect_line): Add check which prevents infinite
6996 recursion.
6997
a0761e34
SM
69982020-03-11 Simon Marchi <simon.marchi@efficios.com>
6999
7000 * configure: Re-generate.
7001
e7a82140
TT
70022020-03-11 Tom Tromey <tromey@adacore.com>
7003
7004 * ada-typeprint.c (print_choices): Fix comment.
7005
dcc050c8
AB
70062020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
7007
7008 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
7009 previous item in the list, when the list has no items.
7010
1c33af77
TV
70112020-03-11 Tom de Vries <tdevries@suse.de>
7012
7013 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
7014 PROP_LOCLIST handling code.
7015
8c95582d
AB
70162020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
7017
7018 * buildsym-legacy.c (record_line): Pass extra parameter to
7019 record_line.
7020 * buildsym.c (buildsym_compunit::record_line): Take an extra
7021 parameter, reduce duplication in the line table, and record the
7022 is_stmt flag in the line table.
7023 * buildsym.h (buildsym_compunit::record_line): Add extra
7024 parameter.
7025 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
7026 non-statement lines.
7027 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
7028 this to the symtab builder.
7029 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
7030 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
7031 through to dwarf_record_line_1.
7032 * infrun.c (process_event_stop_test): When stepping, don't stop at
7033 a non-statement instruction, and only refresh the step info when
7034 we land in the middle of a line's range. Also add an extra
7035 comment.
7036 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
7037 field.
7038 * record-btrace.c (btrace_find_line_range): Only record lines
7039 marked as is-statement.
7040 * stack.c (frame_show_address): Show the frame address if we are
7041 in a non-statement sal.
7042 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
7043 (maintenance_print_one_line_table): Print a header for the is_stmt
7044 column, and include is_stmt information in the output.
7045 * symtab.c (find_pc_sect_line): Find lines marked as statements in
7046 preference to non-statements.
7047 (find_pcs_for_symtab_line): Prefer is-statement entries.
7048 (find_line_common): Likewise.
7049 * symtab.h (struct linetable_entry): Add is_stmt field.
7050 (struct symtab_and_line): Likewise.
7051 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
7052 arranging the line table.
7053
e4003a34
TV
70542020-03-07 Tom de Vries <tdevries@suse.de>
7055
7056 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
7057 DIE.
7058
e8932576
TT
70592020-03-07 Tom Tromey <tom@tromey.com>
7060
7061 * valops.c (value_literal_complex): Remove obsolete comment.
7062 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
7063 comment.
7064
29734269
SM
70652020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
7066
7067 * infrun.h: Forward-declare thread_info.
7068 (set_step_info): Add thread_info parameter, add doc.
7069 * infrun.c (set_step_info): Add thread_info parameter, move doc
7070 to header.
7071 * infrun.c (process_event_stop_test): Pass thread to
7072 set_step_info call.
7073 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
7074 set_step_info.
7075 (prepare_one_step): Add thread_info parameter, pass it to
7076 set_step_frame and prepare_one_step (recursive) call.
7077 (step_1): Pass thread to prepare_one_step call.
7078 (step_command_fsm::should_stop): Pass thread to
7079 prepare_one_step.
7080 (until_next_fsm): Pass thread to set_step_frame call.
7081 (finish_command): Pass thread to set_step_info call.
7082
b7d64b29
HD
70832020-03-06 Hannes Domani <ssbssa@yahoo.de>
7084
7085 * windows-tdep.c (windows_solib_create_inferior_hook):
7086 Check if inferior is running.
7087
09f2921c
TV
70882020-03-06 Tom de Vries <tdevries@suse.de>
7089
7090 * NEWS: Fix "the the".
7091 * ctfread.c: Same.
7092
fd760e79
TV
70932020-03-06 Tom de Vries <tdevries@suse.de>
7094
7095 * psymtab.c (psymtab_to_symtab): Don't print "done.".
7096
20ea4a60
AB
70972020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
7098
7099 * .dir-locals.el: Add a comment referencing the other copies of
7100 this file.
7101
0afbabf0
JB
71022020-03-05 John Baldwin <jhb@FreeBSD.org>
7103
7104 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
7105 psargs.
7106
842806cb
TBA
71072020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7108
7109 * .gitattributes: New file.
7110
be1e3d3e
TT
71112020-03-04 Tom Tromey <tom@tromey.com>
7112
7113 * symmisc.c (print_symbol_bcache_statistics)
7114 (print_objfile_statistics): Update.
7115 * symfile.c (allocate_symtab): Use intern.
7116 * psymtab.c (partial_symtab::partial_symtab): Use intern.
7117 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
7118 macro_cache>: Remove.
7119 <string_cache>: New member.
7120 (struct objfile) <intern>: New methods.
7121 * elfread.c (elf_symtab_read): Use intern.
7122 * dwarf2/read.c (fixup_go_packaging): Intern package name.
7123 (dwarf2_compute_name, dwarf2_physname)
7124 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
7125 names.
7126 (guess_partial_die_structure_name): Update.
7127 (partial_die_info::fixup): Intern name.
7128 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
7129 name.
7130 (dwarf2_name): Intern name. Update.
7131 * buildsym.c (buildsym_compunit::get_macro_table): Use
7132 string_cache.
7133
4e7625fd
TT
71342020-03-04 Tom Tromey <tom@tromey.com>
7135
7136 * jit.c (bfd_open_from_target_memory): Make "target" const.
7137 * corefile.c (gnutarget): Now const.
7138 * gdbcore.h (gnutarget): Now const.
7139
46f9f931
HD
71402020-03-04 Hannes Domani <ssbssa@yahoo.de>
7141
7142 * NEWS: Mention support for WOW64 processes.
7143 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
7144 (amd64_windows_segment_register_p): Remove static.
7145 (_initialize_amd64_windows_nat): Update.
7146 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
7147 * i386-windows-nat.c (context_offset): Update.
7148 (i386_mappings): Rename and remove static.
7149 (i386_windows_segment_register_p): Remove static.
7150 (_initialize_i386_windows_nat): Update.
7151 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
7152 (STATUS_WX86_SINGLE_STEP): New macro.
7153 (EnumProcessModulesEx): New macro.
7154 (Wow64SuspendThread): New macro.
7155 (Wow64GetThreadContext): New macro.
7156 (Wow64SetThreadContext): New macro.
7157 (Wow64GetThreadSelectorEntry): New macro.
7158 (windows_set_context_register_offsets): Add static.
7159 (windows_set_segment_register_p): Likewise.
7160 (windows_add_thread): Adapt for WOW64 processes.
7161 (windows_fetch_one_register): Likewise.
7162 (windows_nat_target::fetch_registers): Likewise.
7163 (windows_store_one_register): Likewise.
7164 (display_selector): Likewise.
7165 (display_selectors): Likewise.
7166 (handle_exception): Likewise.
7167 (windows_continue): Likewise.
7168 (windows_nat_target::resume): Likewise.
7169 (windows_add_all_dlls): Likewise.
7170 (do_initial_windows_stuff): Likewise.
7171 (windows_nat_target::attach): Likewise.
7172 (windows_get_exec_module_filename): Likewise.
7173 (windows_nat_target::create_inferior): Likewise.
7174 (windows_xfer_siginfo): Likewise.
7175 (_initialize_loadable): Initialize Wow64SuspendThread,
7176 Wow64GetThreadContext, Wow64SetThreadContext,
7177 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
7178 * windows-nat.h (windows_set_context_register_offsets):
7179 Remove declaration.
7180 (windows_set_segment_register_p): Likewise.
7181 (i386_windows_segment_register_p): Add declaration.
7182 (amd64_windows_segment_register_p): Likewise.
7183
440cf44e
LM
71842020-03-04 Luis Machado <luis.machado@linaro.org>
7185
7186 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
7187 in "info registers" for AArch64/ARM.
7188
7189 The change caused "info registers" to not print GPR's.
7190
7191 gdb/ChangeLog:
7192
7193 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
7194
7195 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
7196 when reg->group is empty and reggroup is not.
7197
1009d92f
TT
71982020-03-03 Tom Tromey <tromey@adacore.com>
7199
7200 * dwarf2/frame.c (struct dwarf2_frame_cache)
7201 <checked_tailcall_bottom, entry_cfa_sp_offset,
7202 entry_cfa_sp_offset_p>: Remove members.
7203 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
7204 (dwarf2_frame_prev_register): Don't call
7205 dwarf2_tailcall_sniffer_first.
7206 (dwarf2_append_unwinders): Don't append tailcall unwinder.
7207 * frame-unwind.c (add_unwinder): New fuction.
7208 (frame_unwind_init): Use it. Add tailcall unwinder.
7209
5e5d66b6
AB
72102020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
7211 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
7212
7213 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
7214 value should be printed as true.
7215
584cf46d
HD
72162020-03-03 Hannes Domani <ssbssa@yahoo.de>
7217
7218 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
7219 (windows_init_abi): Set and use windows_so_ops.
7220
7b973adc
SDJ
72212020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
7222
7223 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
7224 when verifying if dealing with a convenience variable.
7225
bb7b70ab
LM
72262020-03-03 Luis Machado <luis.machado@linaro.org>
7227
7228 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
7229
9822cb57
SM
72302020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
7231
7232 * infrun.c (gdbarch_supports_displaced_stepping): New.
7233 (use_displaced_stepping): Break up conditions in smaller pieces.
7234 Use gdbarch_supports_displaced_stepping.
7235 (displaced_step_prepare_throw): Use
7236 gdbarch_supports_displaced_stepping.
7237
63e163f2
AB
72382020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
7239
7240 * NEWS: Mention new behaviour of the history filename.
7241 * top.c (write_history_p): Add comment.
7242 (show_write_history_p): Add header comment, give a different
7243 message when history writing is on, but the history filename is
7244 empty.
7245 (history_filename): Add comment.
7246 (history_filename_empty): New function.
7247 (show_history_filename): Add header comment, give a different
7248 message when the filename is empty.
7249 (init_history): Compare history_filename against nullptr, and only
7250 read history if the filename is not empty.
7251 (set_history_filename): Add header comment, and only make
7252 non-empty filenames absolute.
7253 (init_main): Make the filename argument to 'set history filename'
7254 optional.
7255
81b86b97
CB
72562020-03-02 Christian Biesinger <cbiesinger@google.com>
7257
7258 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
7259 (arm_supply_vfpregset): ...this, and update to use VFP registers.
7260 (fetch_fp_register): Update.
7261 (fetch_fp_regs): Update.
7262 (store_fp_register): Update.
7263 (store_fp_regs): Update.
7264 (arm_netbsd_nat_target::read_description): New function.
7265 (fetch_elfcore_registers): Update.
7266
24ed6739
AB
72672020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
7268
7269 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
7270 general_thread if the stop reply is missing a thread-id.
7271 (remote_target::process_stop_reply): Use the first non-exited
7272 thread if the target didn't pass a thread-id.
7273 * infrun.c (do_target_wait): Move call to
7274 switch_to_inferior_no_thread to ....
7275 (do_target_wait_1): ... here.
7276
a84bb2a0
JT
72772020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
7278
7279 * debuginfod-support.c: Include defs.h first.
7280
658dadf0
TV
72812020-02-28 Tom de Vries <tdevries@suse.de>
7282
7283 * symfile.c (set_initial_language): Use default language for lookup.
7284
4ebe4877
SM
72852020-02-28 Simon Marchi <simon.marchi@efficios.com>
7286
7287 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
7288 reader variable, pass `this` to read_cutu_die_from_dwo.
7289
e5da1139
AM
72902020-02-27 Aaron Merey <amerey@redhat.com>
7291
7292 * source.c (open_source_file): Check for nullptr when computing
7293 srcpath.
7294
317f7127
TT
72952020-02-27 Tom Tromey <tromey@adacore.com>
7296
7297 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
7298 member.
7299 (dwarf2_add_field): Don't update nfields.
7300 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
7301
3104d9ee
AB
73022020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
7303
7304 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
7305 abs.
7306
b83470bf
TT
73072020-02-26 Tom Tromey <tom@tromey.com>
7308
7309 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
7310 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
7311 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
7312 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
7313 per_cu_data.
7314
edfe0a0c
TT
73152020-02-26 Tom Tromey <tom@tromey.com>
7316
7317 * dwarf2/index-write.c (psym_index_map): Change type.
7318 (add_address_entry_worker, write_one_signatured_type)
7319 (recursively_count_psymbols, recursively_write_psymbols)
7320 (class debug_names, psyms_seen_size, write_gdbindex)
7321 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
7322
0d79cdc4
AM
73232020-02-26 Aaron Merey <amerey@redhat.com>
7324
7325 * Makefile.in: Handle optional debuginfod support.
7326 * NEWS: Update.
7327 * README: Add --with-debuginfod summary.
7328 * config.in: Regenerate.
7329 * configure: Regenerate.
7330 * configure.ac: Handle optional debuginfod support.
7331 * debuginfod-support.c: debuginfod helper functions.
7332 * debuginfod-support.h: Ditto.
7333 * doc/gdb.texinfo: Add --with-debuginfod to configure options
7334 summary.
7335 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
7336 when a dwz file cannot be found.
7337 * elfread.c (elf_symfile_read): Query debuginfod servers when a
7338 debuginfo file cannot be found.
7339 * source.c (open_source_file): Query debuginfod servers when a
7340 source file cannot be found.
7341 * top.c (print_gdb_configuration): Include
7342 --{with,without}-debuginfod in the output.
7343
b65ce565
JG
73442020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
7345
7346 * thread.c (thr_try_catch_cmd): Print thread name.
7347
d4c9a4f8
SM
73482020-02-26 Simon Marchi <simon.marchi@efficios.com>
7349
7350 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
7351 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
7352 dwarf2_fetch_die_type_sect_off): Move to...
7353 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
7354 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
7355 dwarf2_fetch_die_type_sect_off): ... here.
7356 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
7357 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
7358 dwarf2_fetch_die_type_sect_off): Move doc to header file.
7359
0dce4280
TV
73602020-02-26 Tom de Vries <tdevries@suse.de>
7361
7362 PR gdb/25603
7363 * symfile.c (set_initial_language): Exit-early if
7364 language_mode == language_mode_manual.
7365
450a1bfc
SM
73662020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
7367
7368 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
7369 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
7370 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
7371
9e80cfa1
AB
73722020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
7373
7374 * gdbtypes.c (create_array_type_with_stride): Handle negative
7375 array strides.
7376 * valarith.c (value_subscripted_rvalue): Likewise.
7377
09624f1f
LM
73782020-02-25 Luis Machado <luis.machado@linaro.org>
7379
7380 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
7381
8cb5117c
SM
73822020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
7383
7384 * loc.h (dwarf2_get_die_type): Move to...
7385 * read.h (dwarf2_get_die_type): ... here.
7386 * read.c (dwarf2_get_die_type): Move doc to header.
7387
c325c44e
JB
73882020-02-25 Joel Brobecker <brobecker@adacore.com>
7389
7390 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
7391 'gnulib/Makefile.in' to the list.
7392
4ac93832
TT
73932020-02-24 Tom Tromey <tom@tromey.com>
7394
7395 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
7396 Remove.
7397 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
7398 XOBNEWVEC.
7399
197400e8
TT
74002020-02-24 Tom Tromey <tom@tromey.com>
7401
7402 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
7403 New method.
7404 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
7405 (dw2_do_instantiate_symtab, dw2_get_file_names)
7406 (build_type_psymtab_dependencies, load_full_type_unit): Update.
7407
76935768
TT
74082020-02-24 Tom Tromey <tom@tromey.com>
7409
7410 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
7411 make_scoped_restore.
7412 (dwarf2_psymtab::read_symtab): Don't clear
7413 reading_partial_symbols.
7414
a88ef40d
TV
74152020-02-24 Tom de Vries <tdevries@suse.de>
7416
7417 PR gdb/25592
7418 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
7419
c9af6521
TV
74202020-02-24 Tom de Vries <tdevries@suse.de>
7421
7422 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
7423 commands layout next/prev/regs.
7424
5707a07a
TT
74252020-02-22 Tom Tromey <tom@tromey.com>
7426
7427 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
7428 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
7429
3b0fb49e
TT
74302020-02-22 Tom Tromey <tom@tromey.com>
7431
7432 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
7433
283be8bf
TT
74342020-02-22 Tom Tromey <tom@tromey.com>
7435
7436 * tui/tui-win.c (_initialize_tui_win): Add usage text.
7437 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
7438 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
7439 * tui/tui.c (_initialize_tui): Add usage text.
7440
ca793b96
TT
74412020-02-22 Tom Tromey <tom@tromey.com>
7442
7443 * tui/tui-win.c (tui_set_focus_command)
7444 (tui_set_win_height_command): Use error_no_arg.
7445 (_initialize_tui_win): Update help text.
7446 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
7447
432b5c40
TT
74482020-02-22 Tom Tromey <tom@tromey.com>
7449
7450 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
7451 * tui/tui-disasm.h (struct tui_disasm_window)
7452 <display_start_addr>: Declare.
7453 * tui/tui-source.h (struct tui_source_window)
7454 <display_start_addr>: Declare.
7455 * tui/tui-winsource.h (struct tui_source_window_base)
7456 <show_source_line, display_start_addr>: New methods.
7457 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
7458 Rename and move to protected section.
7459 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
7460 (tui_source_window_base::do_erase_source_content): Update.
7461 (tui_source_window_base::show_source_line): Now a method.
7462 (tui_source_window_base::show_source_content)
7463 (tui_source_window_base::tui_source_window_base)
7464 (tui_source_window_base::rerender)
7465 (tui_source_window_base::refill)
7466 (tui_source_window_base::do_scroll_horizontal)
7467 (tui_source_window_base::set_is_exec_point_at)
7468 (tui_source_window_base::update_breakpoint_info)
7469 (tui_source_window_base::update_exec_info): Update.
7470 * tui/tui-source.c (tui_source_window::set_contents)
7471 (tui_source_window::showing_source_p)
7472 (tui_source_window::do_scroll_vertical)
7473 (tui_source_window::location_matches_p)
7474 (tui_source_window::line_is_displayed): Update.
7475 (tui_source_window::display_start_addr): New method.
7476 * tui/tui-disasm.c (tui_disasm_window::set_contents)
7477 (tui_disasm_window::do_scroll_vertical)
7478 (tui_disasm_window::location_matches_p): Update.
7479 (tui_disasm_window::display_start_addr): New method.
7480
01b1af32
TT
74812020-02-22 Tom Tromey <tom@tromey.com>
7482
7483 * NEWS: Add entry for gdb.register_window_type.
7484 * tui/tui-layout.h (window_factory): New typedef.
7485 (tui_register_window): Declare.
7486 * tui/tui-layout.c (saved_tui_windows): New global.
7487 (tui_apply_current_layout): Use it.
7488 (tui_register_window): New function.
7489 * python/python.c (do_start_initialization): Call
7490 gdbpy_initialize_tui.
7491 (python_GdbMethods): Add "register_window_type" function.
7492 * python/python-internal.h (gdbpy_register_tui_window)
7493 (gdbpy_initialize_tui): Declare.
7494 * python/py-tui.c: New file.
7495 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
7496
fc96d20b
TT
74972020-02-22 Tom Tromey <tom@tromey.com>
7498
7499 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
7500
935c78c0
TT
75012020-02-22 Tom Tromey <tom@tromey.com>
7502
7503 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
7504 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
7505 * tui/tui-data.c (tui_set_win_with_focus): Remove.
7506 (tui_set_win_focus_to): Move from tui-win.c.
7507
0240c8f1
TT
75082020-02-22 Tom Tromey <tom@tromey.com>
7509
7510 * tui/tui-layout.c (make_standard_window, get_locator_window): New
7511 functions.
7512 (known_window_types): New global.
7513 (tui_get_window_by_name): Reimplement.
7514 (initialize_known_windows): New function.
7515 (validate_window_name): Rewrite.
7516 (_initialize_tui_layout): Call initialize_known_windows.
7517
fdb01f0c
TT
75182020-02-22 Tom Tromey <tom@tromey.com>
7519
7520 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
7521 Remove constants.
7522 * tui/tui-winsource.h (struct tui_source_window_base)
7523 <tui_source_window_base>: Remove parameter.
7524 * tui/tui-winsource.c
7525 (tui_source_window_base::tui_source_window_base): Remove
7526 parameter.
7527 (tui_source_window_base::refill): Update.
7528 * tui/tui-stack.h (struct tui_locator_window)
7529 <tui_locator_window>: Update.
7530 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
7531 Default the constructor.
7532 * tui/tui-regs.h (struct tui_data_item_window)
7533 <tui_data_item_window>: Default the constructor.
7534 (struct tui_data_window) <tui_data_window>: Likewise.
7535 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
7536 Default the constructor.
7537 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
7538 Default the constructor.
7539 <type>: Remove.
7540 (struct tui_win_info) <tui_win_info>: Default the constructor.
7541 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
7542 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
7543 Default the constructor.
7544
865a5aec
TT
75452020-02-22 Tom Tromey <tom@tromey.com>
7546
7547 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
7548 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
7549 * tui/tui-win.c (tui_resize_all): Don't call
7550 tui_delete_invisible_windows.
7551 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
7552 done.
7553 (tui_set_layout): Update.
7554 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
7555 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
7556 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
7557
e098d18c
TT
75582020-02-22 Tom Tromey <tom@tromey.com>
7559
7560 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
7561 correctly.
7562
eb9c8874
TT
75632020-02-22 Tom Tromey <tom@tromey.com>
7564
7565 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
7566
7eed1a8e
TT
75672020-02-22 Tom Tromey <tom@tromey.com>
7568
7569 * tui/tui-winsource.h (struct tui_source_window_iterator)
7570 <inner_iterator>: New etytypedef.
7571 <tui_source_window_iterator>: Take "end" parameter.
7572 <tui_source_window_iterator>: Take iterator.
7573 <operator*, advance>: Update.
7574 <m_iter>: Change type.
7575 <m_end>: New field.
7576 (struct tui_source_windows) <begin, end>: Update.
7577 * tui/tui-layout.c (tui_windows): New global.
7578 (tui_apply_current_layout): Clear tui_windows.
7579 (tui_layout_window::apply): Update tui_windows.
7580 * tui/tui-data.h (tui_windows): Declare.
7581 (all_tui_windows): Now inline function.
7582 (class tui_window_iterator, struct all_tui_windows): Remove.
7583
7c043ba6
TT
75842020-02-22 Tom Tromey <tom@tromey.com>
7585
7586 PR tui/17850:
7587 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
7588 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
7589 "height" argument.
7590 (class tui_layout_window) <get_sizes>: Likewise.
7591 (class tui_layout_split) <tui_layout_split>: Add "vertical"
7592 argument.
7593 <get_sizes>: Add "height" argument.
7594 <m_vertical>: New field.
7595 * tui/tui-layout.c (tui_layout_split::clone): Update.
7596 (tui_layout_split::get_sizes): Add "height" argument.
7597 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
7598 (tui_new_layout_command): Parse "-horizontal".
7599 (_initialize_tui_layout): Update help string.
7600 (tui_layout_split::specification): Add "-horizontal" when needed.
7601 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
7602 argument.
7603 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
7604 New methods.
7605
6bc56648
TT
76062020-02-22 Tom Tromey <tom@tromey.com>
7607
7608 * tui/tui-layout.h (enum tui_adjust_result): New.
7609 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
7610 (class tui_layout_window) <adjust_size>: Return
7611 tui_adjust_result. Rewrite.
7612 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
7613 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
7614
c22fef7e
TT
76152020-02-22 Tom Tromey <tom@tromey.com>
7616
7617 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
7618 parameter and return types.
7619 (class tui_layout_base) <specification>: Add "depth".
7620 (class tui_layout_window) <specification>: Add "depth".
7621 (class tui_layout_split) <specification>: Add "depth".
7622 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
7623 and return types.
7624 (tui_new_layout_command): Parse sub-layouts.
7625 (_initialize_tui_layout): Update help string.
7626 (tui_layout_window::specification): Add "depth".
7627 (add_layout_command): Update.
7628
ee325b61
TT
76292020-02-22 Tom Tromey <tom@tromey.com>
7630
7631 * NEWS: Add "tui new-layout" item.
7632 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
7633 Add new-layout command to help text.
7634 (validate_window_name): New function.
7635 (tui_new_layout_command): New function.
7636 (_initialize_tui_layout): Register "new-layout".
7637 (tui_layout_window::specification): New method.
7638 (tui_layout_window::specification): New method.
7639 * tui/tui-layout.h (class tui_layout_base) <specification>: New
7640 method.
7641 (class tui_layout_window) <specification>: New method.
7642 (class tui_layout_split) <specification>: New method.
7643
416eb92d
TT
76442020-02-22 Tom Tromey <tom@tromey.com>
7645
7646 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
7647 * tui/tui-win.c (window_name_completer): Update comment.
7648 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
7649 Declare method.
7650 (class tui_layout_window) <replace_window>: Likewise.
7651 (class tui_layout_split) <replace_window>: Likewise.
7652 (tui_set_layout): Don't declare.
7653 (tui_set_initial_layout): Declare function.
7654 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
7655 (asm_regs_layout): New globals.
7656 (tui_current_layout, show_layout): Remove.
7657 (tui_set_layout, tui_add_win_to_layout): Rewrite.
7658 (find_layout, tui_apply_layout): New function.
7659 (layout_completer): Remove.
7660 (tui_next_layout): Reimplement.
7661 (tui_next_layout_command): New function.
7662 (tui_set_initial_layout, tui_prev_layout_command): New functions.
7663 (tui_regs_layout): Reimplement.
7664 (tui_regs_layout_command): New function.
7665 (extract_display_start_addr): Rewrite.
7666 (next_layout, prev_layout): Remove.
7667 (tui_layout_window::replace_window): New method.
7668 (tui_layout_split::replace_window): New method.
7669 (destroy_layout): New function.
7670 (layout_list): New global.
7671 (add_layout_command): New function.
7672 (initialize_layouts): Update.
7673 (tui_layout_command): New function.
7674 (_initialize_tui_layout): Install "layout" commands.
7675 * tui/tui-data.h (enum tui_layout_type): Remove.
7676 (tui_current_layout): Don't declare.
7677
0dbc2fc7
TT
76782020-02-22 Tom Tromey <tom@tromey.com>
7679
7680 * tui/tui-regs.c (tui_reg_layout): Remove.
7681 (tui_reg_command): Use tui_regs_layout.
7682 * tui/tui-layout.h (tui_reg_command): Declare.
7683 * tui/tui-layout.c (tui_reg_command): New function.
7684
5afe342e
TT
76852020-02-22 Tom Tromey <tom@tromey.com>
7686
7687 * tui/tui.c (tui_rl_delete_other_windows): Call
7688 tui_remove_some_windows.
7689 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
7690 Declare method.
7691 (class tui_layout_window) <remove_windows>: New method.
7692 (class tui_layout_split) <remove_windows>: Declare.
7693 (tui_remove_some_windows): Declare.
7694 * tui/tui-layout.c (tui_remove_some_windows): New function.
7695 (tui_layout_split::remove_windows): New method.
7696
427326a8
TT
76972020-02-22 Tom Tromey <tom@tromey.com>
7698
7699 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
7700 * tui/tui-layout.h (tui_next_layout): Declare.
7701 * tui/tui-layout.c (tui_next_layout): New function.
7702
3fe12b6d
TT
77032020-02-22 Tom Tromey <tom@tromey.com>
7704
7705 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
7706 correct coordinates.
7707
59b8b5d2
TT
77082020-02-22 Tom Tromey <tom@tromey.com>
7709
7710 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
7711 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
7712 DATA_WIN case.
7713
2a3d458b
TT
77142020-02-22 Tom Tromey <tom@tromey.com>
7715
7716 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
7717 TUI_DISASM_WIN, not tui_win_list.
7718
3f0cbb04
TT
77192020-02-22 Tom Tromey <tom@tromey.com>
7720
7721 * valprint.c (generic_val_print_enum_1)
7722 (val_print_type_code_flags): Style member names.
7723 * rust-lang.c (val_print_struct, rust_print_enum)
7724 (rust_print_struct_def, rust_internal_print_type): Style member
7725 names.
7726 * p-valprint.c (pascal_object_print_value_fields): Style member
7727 names. Only call fprintf_symbol_filtered for static members.
7728 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
7729 * f-valprint.c (f_val_print): Style member names.
7730 * f-typeprint.c (f_type_print_base): Style member names.
7731 * cp-valprint.c (cp_print_value_fields): Style member names. Only
7732 call fprintf_symbol_filtered for static members.
7733 (cp_print_class_member): Style member names.
7734 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
7735 member names.
7736 * ada-valprint.c (ada_print_scalar): Style enum names.
7737 (ada_val_print_enum): Likewise.
7738 * ada-typeprint.c (print_enum_type): Style enum names.
7739
d4d947ae
TT
77402020-02-21 Tom Tromey <tom@tromey.com>
7741
7742 * psympriv.h (struct partial_symtab): Update comment.
7743
e94e944b
TT
77442020-02-21 Tom Tromey <tromey@adacore.com>
7745
7746 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
7747 type is CORE_ADDR.
7748
1eb73179
TV
77492020-02-21 Tom de Vries <tdevries@suse.de>
7750
7751 PR gdb/25534
7752 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
7753 if dependencies[i]->user != NULL.
7754
4f180d53
AT
77552020-02-21 Ali Tamur <tamur@google.com>
7756
7757 * dwarf2/read.c (dwarf2_name): Add null check.
7758
22b6cd70
TT
77592020-02-20 Tom Tromey <tom@tromey.com>
7760
7761 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
7762 ">=", in binary search.
7763 (dwarf2_find_containing_comp_unit): New overload.
7764 (run_test): New self-test.
7765 (_initialize_dwarf2_read): Register new test.
7766
bd0cf5a6
NC
77672020-02-20 Nelson Chu <nelson.chu@sifive.com>
7768
7769 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
7770 * riscv-tdep.h: Likewise.
7771 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
7772 rv32-only CSR.
7773 * features/riscv/64bit-csr.xml: Regenerated.
7774
3f702acd
SDJ
77752020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
7776 Tom Tromey <tom@tromey.com>
7777
7778 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
7779 of 'fputc_unfiltered'.
7780 (putchar_unfiltered): Call 'fputc_unfiltered'.
7781 (fputc_unfiltered): Call 'fputs_unfiltered'.
7782
d13c7322
AB
77832020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
7784
7785 * config.in: Regenerate.
7786 * configure: Regenerate.
7787 * configure.ac: Add --with-python-libdir option.
7788 * main.c: Use WITH_PYTHON_LIBDIR.
7789
869d8950
TT
77902020-02-19 Tom Tromey <tom@tromey.com>
7791
7792 * symtab.c (general_symbol_info::compute_and_set_names): Use
7793 obstack_strndup. Simplify call to symbol_set_demangled_name.
7794
298e9637
SM
77952020-02-19 Simon Marchi <simon.marchi@efficios.com>
7796
7797 * dwarf2/read.c (allocate_signatured_type_table,
7798 allocate_dwo_unit_table, allocate_type_unit_groups_table,
7799 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
7800 Remove objfile parameter, update all callers.
7801
08410482
DE
78022020-02-19 Doug Evans <dje@google.com>
7803
7804 PR rust/25535
7805 * rust-lang.c (rust_print_enum): Apply embedded_offset to
7806 rust_enum_variant calculation.
7807
dfdeeca1
TT
78082020-02-19 Tom Tromey <tromey@adacore.com>
7809
7810 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
7811
2ef5453b
TT
78122020-02-19 Tom Tromey <tromey@adacore.com>
7813
7814 * ada-lang.c (cache_symbol): Use obstack_strdup.
7815
9f1528a1
AB
78162020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
7817
7818 * configure: Regenerate.
7819
d3c22fa8
TT
78202020-02-19 Tom Tromey <tromey@adacore.com>
7821
7822 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
7823 NULL check.
7824
bf84f706
MR
78252020-02-19 Maciej W. Rozycki <macro@wdc.com>
7826
7827 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
7828
d1c9b20f
AB
78292020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
7830
7831 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
7832 if GDBSERVER is not defined.
7833 (riscv_tdesc_cache): Likewise, also store const target_desc.
7834 (STATIC_IN_GDB): Define.
7835 (riscv_create_target_description): Update declaration with
7836 STATIC_IN_GDB.
7837 (riscv_lookup_target_description): New function, only define if
7838 GDBSERVER is not defined.
7839 * arch/riscv.h (riscv_create_target_description): Declare only
7840 when GDBSERVER is defined.
7841 (riscv_lookup_target_description): New declaration when GDBSERVER
7842 is not defined.
7843 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
7844 (riscv_linux_read_features): ...this, and return
7845 riscv_gdbarch_features instead of target_desc.
7846 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
7847 (riscv_linux_read_description): Rename to...
7848 (riscv_linux_read_features): ...this.
7849 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
7850 Update to use riscv_gdbarch_features and
7851 riscv_lookup_target_description.
7852 * riscv-tdep.c (riscv_find_default_target_description): Use
7853 riscv_lookup_target_description instead of
7854 riscv_create_target_description.
7855
373d7ac0
SM
78562020-02-18 Simon Marchi <simon.marchi@efficios.com>
7857
7858 * valprint.c (generic_val_print_enum_1): When printing a flag
7859 enum with value 0 and there is no enumerator with value 0, print
7860 just "0" instead of "(unknown: 0x0)".
7861
b29a2df0
SM
78622020-02-18 Simon Marchi <simon.marchi@efficios.com>
7863
7864 * valprint.c (generic_val_print_enum_1): Print unknown part of
7865 flag enum in hex.
7866
6740f0cc
SM
78672020-02-18 Simon Marchi <simon.marchi@efficios.com>
7868
7869 * dwarf2/read.c (update_enumeration_type_from_children): Allow
7870 flag enums to contain duplicate enumerators.
7871 * valprint.c (generic_val_print_enum_1): Update comment.
7872
edd45eb0
SM
78732020-02-18 Simon Marchi <simon.marchi@efficios.com>
7874
7875 * dwarf2/read.c: Include "count-one-bits.h".
7876 (update_enumeration_type_from_children): If an enumerator has
7877 multiple bits set, don't treat the enumeration as a "flag enum".
7878 * valprint.c (generic_val_print_enum_1): Assert that enumerators
7879 of flag enums have 0 or 1 bit set.
7880
6d0cf446
BE
78812020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
7882
7883 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
7884 conversion.
7885 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
7886 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
7887 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
7888 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
7889 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
7890
7001c1b7
SM
78912020-02-18 Simon Marchi <simon.marchi@efficios.com>
7892
7893 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
7894
fdb61c6c
SM
78952020-02-14 Simon Marchi <simon.marchi@efficios.com>
7896
7897 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
7898 displaced_step_closure_up.
7899 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
7900 (struct displaced_step_closure_up):
7901 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
7902 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
7903 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
7904 Likewise.
7905 * gdbarch.sh (displaced_step_copy_insn): Likewise.
7906 * gdbarch.c, gdbarch.h: Re-generate.
7907 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
7908 displaced_step_closure_up.
7909 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
7910 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
7911 * infrun.h (displaced_step_closure_up): New type alias.
7912 (struct displaced_step_inferior_state) <step_closure>: Change
7913 type to displaced_step_closure_up.
7914 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
7915 displaced_step_closure_up.
7916 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
7917
a4a38eb4
TT
79182020-02-14 Tom Tromey <tom@tromey.com>
7919
7920 * minidebug.c (gnu_debug_key): New global.
7921 (find_separate_debug_file_in_section): Use it.
7922
e8217e61
SM
79232020-02-14 Simon Marchi <simon.marchi@efficios.com>
7924
7925 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
7926 std::unique_ptr.
7927 * gdbarch.c: Re-generate.
7928 * gdbarch.h: Re-generate.
7929 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
7930 change.
7931 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
7932 type to std::unique_ptr.
7933 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
7934 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
7935 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
7936 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
7937 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
7938 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
7939 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
7940 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
7941 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
7942
d8d83535
SM
79432020-02-14 Simon Marchi <simon.marchi@efficios.com>
7944
7945 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
7946 std::unique_ptr.
7947 (displaced_step_clear): Rename to...
7948 (displaced_step_reset): ... this. Just call displaced->reset ().
7949 (displaced_step_clear_cleanup): Rename to...
7950 (displaced_step_reset_cleanup): ... this.
7951 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
7952 (displaced_step_fixup): Likewise.
7953 (resume_1): Likewise.
7954 (handle_inferior_event): Restore child's memory before calling
7955 displaced_step_fixup on the parent.
7956 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
7957 to std::unique_ptr.
7958 <step_closure>: Change type to std::unique_ptr.
7959
5f661e03
SM
79602020-02-14 Simon Marchi <simon.marchi@efficios.com>
7961
7962 * arm-tdep.c: Include count-one-bits.h.
7963 (cleanup_block_store_pc): Use count_one_bits.
7964 (cleanup_block_load_pc): Use count_one_bits.
7965 (arm_copy_block_xfer): Use count_one_bits.
7966 (thumb2_copy_block_xfer): Use count_one_bits.
7967 (thumb_copy_pop_pc_16bit): Use count_one_bits.
7968 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
7969 (thumb_get_next_pcs_raw): Use count_one_bits.
7970 (arm_get_next_pcs_raw): Use count_one_bits_l.
7971 * arch/arm.c (bitcount): Remove.
7972 * arch/arm.h (bitcount): Remove.
7973
8084e579
TT
79742020-02-14 Tom Tromey <tromey@adacore.com>
7975
7976 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
7977 Update.
7978 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
7979 * dwarf2/loc.c (call_site_find_chain_1): Return
7980 unique_xmalloc_ptr.
7981 (call_site_find_chain): Likewise.
7982
258bf0ee
RB
79832020-02-14 Richard Biener <rguenther@suse.de>
7984
7985 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
7986 on expression with division operators.
7987
f98a8458
AKS
79882020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
7989
7990 * MAINTAINERS (Write After Approval): Adding myself.
7991
d1437c0e
TT
79922020-02-12 Tom Tromey <tom@tromey.com>
7993
7994 * event-loop.c (event_data, gdb_event, event_handler_func):
7995 Remove.
7996
3d4560f7
TT
79972020-02-12 Tom Tromey <tom@tromey.com>
7998
7999 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
8000 (dwarf2_frame_objfile_data): Add comment.
8001 (find_comp_unit, set_comp_unit): New functions.
8002 (dwarf2_frame_find_fde): Use find_comp_unit.
8003 (dwarf2_build_frame_info): Use set_comp_unit.
8004
21982304
TT
80052020-02-12 Tom Tromey <tom@tromey.com>
8006
8007 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
8008 (comp_unit): Don't initialize objfile.
8009 (execute_cfa_program): Add text_offset parameter.
8010 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
8011 (dwarf2_frame_cache): Update.
8012 (dwarf2_build_frame_info): Don't set "objfile" member.
8013
4debb237
TT
80142020-02-12 Tom Tromey <tom@tromey.com>
8015
8016 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
8017 (decode_frame_entry): Likewise.
8018 (dwarf2_build_frame_info): Update.
8019
0d404d44
TT
80202020-02-12 Tom Tromey <tom@tromey.com>
8021
8022 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
8023 (decode_frame_entry_1): Use the comp_unit obstack.
8024
a7a3ae5c
TT
80252020-02-12 Tom Tromey <tom@tromey.com>
8026
8027 * dwarf2/frame.c (struct comp_unit): Add initializers and
8028 constructor.
8029 (dwarf2_frame_objfile_data): Store a comp_unit.
8030 (dwarf2_frame_find_fde): Update.
8031 (dwarf2_build_frame_info): Use "new".
8032
a9d65418
TT
80332020-02-12 Tom Tromey <tom@tromey.com>
8034
8035 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
8036 (dwarf2_fde_table): Typedef for std::vector.
8037 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
8038 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
8039 (decode_frame_entry): Update.
8040 (dwarf2_build_frame_info): Use "new".
8041
7559c217
CB
80422020-02-12 Christian Biesinger <cbiesinger@google.com>
8043
8044 * arm-tdep.c (arm_gdbarch_init): Update.
8045 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
8046 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
8047 have_neon, is_m>: Change to bool.
8048
aeefc73c
CB
80492020-02-12 Christian Biesinger <cbiesinger@google.com>
8050
8051 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
8052
d27b8e5f
TT
80532020-02-12 Tom Tromey <tom@tromey.com>
8054
8055 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
8056
cd5900f3
HD
80572020-02-12 Hannes Domani <ssbssa@yahoo.de>
8058
8059 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
8060 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
8061
f056b22b
TT
80622020-02-11 Tom Tromey <tom@tromey.com>
8063
8064 * psymtab.h: Update comment.
8065
f92ff6b5
TT
80662020-02-11 Tom Tromey <tom@tromey.com>
8067
8068 * gdb_obstack.h (struct auto_obstack): Use
8069 DISABLE_COPY_AND_ASSIGN.
8070
3fd6912b
TT
80712020-02-11 Tom Tromey <tom@tromey.com>
8072
8073 * dwarf2/frame.h (struct objfile): Don't forward declare.
8074
69ed9b74
CB
80752020-02-11 Christian Biesinger <cbiesinger@google.com>
8076
8077 * cris-tdep.c (cris_supply_gregset): Change signature to match
8078 what struct regset expects.
8079 (cris_regset): New struct.
8080 (fetch_core_registers): Remove.
8081 (cris_iterate_over_regset_sections): New function.
8082 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
8083 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
8084
bda874f6
CB
80852020-02-11 Christian Biesinger <cbiesinger@google.com>
8086
8087 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
8088 registers.
8089
754e1564
CB
80902020-02-11 Christian Biesinger <cbiesinger@google.com>
8091
8092 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
8093
8ddd8e0e
SM
80942020-02-11 Simon Marchi <simon.marchi@efficios.com>
8095
8096 * configure: Re-generate.
8097
898e7f60
SM
80982020-02-11 Simon Marchi <simon.marchi@efficios.com>
8099
8100 * configure: Re-generate.
8101
58df732b
SM
81022020-02-11 Simon Marchi <simon.marchi@efficios.com>
8103
8104 * acinclude: Update warning.m4 path.
8105 * warning.m4: Move to gdbsupport.
8106
da5bd37e
TT
81072020-02-11 Tom Tromey <tromey@adacore.com>
8108
8109 * remote.c (remote_console_output): Update.
8110 * printcmd.c (printf_command): Update.
8111 * event-loop.c (gdb_wait_for_event): Update.
8112 * linux-nat.c (sigchld_handler): Update.
8113 * remote-sim.c (gdb_os_write_stdout): Update.
8114 (gdb_os_flush_stdout): Update.
8115 (gdb_os_flush_stderr): Update.
8116 (gdb_os_write_stderr): Update.
8117 * exceptions.c (print_exception): Update.
8118 * remote-fileio.c (remote_fileio_func_read): Update.
8119 (remote_fileio_func_write): Update.
8120 * tui/tui.c (tui_enable): Update.
8121 * tui/tui-interp.c (tui_interp::init): Update.
8122 * utils.c (init_page_info): Update.
8123 (putchar_unfiltered, fputc_unfiltered): Update.
8124 (gdb_flush): Update.
8125 (emit_style_escape): Update.
8126 (flush_wrap_buffer, fputs_maybe_filtered): Update.
8127 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
8128 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
8129 (stderr_file::write): Update.
8130 (stderr_file::puts): Update.
8131 * ui-file.h (ui_file_isatty, ui_file_write)
8132 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
8133 (ui_file_puts): Don't declare.
8134
85f0dd3c
TV
81352020-02-10 Tom de Vries <tdevries@suse.de>
8136
8137 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
8138 sentinel to char *.
8139
2e927613
TV
81402020-02-09 Tom de Vries <tdevries@suse.de>
8141
8142 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
8143 filename if it matches "<artificial>".
8144
6bafc845
HD
81452020-02-09 Hannes Domani <ssbssa@yahoo.de>
8146
8147 * windows-tdep.c (struct enum_value_name): New struct.
8148 (create_enum): New function.
8149 (windows_get_siginfo_type): Create and use enum types.
8150
7928d571
HD
81512020-02-09 Hannes Domani <ssbssa@yahoo.de>
8152
8153 * NEWS: Mention $_siginfo support for Windows.
8154 * windows-nat.c (handle_exception): Set siginfo_er.
8155 (windows_nat_target::mourn_inferior): Reset siginfo_er.
8156 (windows_xfer_siginfo): New function.
8157 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
8158 * windows-tdep.c (struct windows_gdbarch_data): New struct.
8159 (init_windows_gdbarch_data): New function.
8160 (get_windows_gdbarch_data): New function.
8161 (windows_get_siginfo_type): New function.
8162 (windows_init_abi): Register windows_get_siginfo_type.
8163 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
8164
6751ebae
TT
81652020-02-08 Tom Tromey <tom@tromey.com>
8166
8167 * dwarf2/read.c (class cutu_reader) <cutu_reader,
8168 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
8169 <keep>: Declare method.
8170 <m_keep>: Remove member.
8171 <~cutu_reader>: Remove.
8172 (cutu_reader::init_tu_and_read_dwo_dies): Update.
8173 (cutu_reader::cutu_reader): Update.
8174 (cutu_reader::keep): Rename from ~cutu_reader.
8175 (process_psymtab_comp_unit, build_type_psymtabs_1)
8176 (process_skeletonless_type_unit, load_partial_comp_unit)
8177 (load_full_comp_unit, dwarf2_read_addr_index)
8178 (read_signatured_type): Update.
8179
135f5437
TT
81802020-02-08 Tom Tromey <tom@tromey.com>
8181
8182 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
8183 "want_partial_unit" parameter.
8184 (process_psymtab_comp_unit): Change want_partial_unit to bool.
8185 Inline check for DW_TAG_partial_unit.
8186 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
8187
9f66ff1c
TT
81882020-02-08 Tom Tromey <tom@tromey.com>
8189
8190 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
8191 read.c.
8192 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
8193 read.c.
8194
c8a7a66f
TT
81952020-02-08 Tom Tromey <tom@tromey.com>
8196
8197 * dwarf2/read.c (read_address): Move to comp-unit.c.
8198 (dwarf2_rnglists_process, dwarf2_ranges_process)
8199 (read_attribute_value, dwarf_decode_lines_1)
8200 (var_decode_location, decode_locdesc): Update.
8201 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
8202 read.c. Remove "cu" parameter.
8203 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
8204 method.
8205
8266302d
TT
82062020-02-08 Tom Tromey <tom@tromey.com>
8207
8208 * dwarf2/read.c (read_attribute_value, read_indirect_string)
8209 (read_indirect_line_string): Update.
8210 * dwarf2/comp-unit.c (read_offset): Remove.
8211 (read_comp_unit_head): Update.
8212 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
8213 method.
8214 (read_offset): Don't declare.
8215
4057dfde
TT
82162020-02-08 Tom Tromey <tom@tromey.com>
8217
8218 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
8219 * dwarf2/read.c (struct comp_unit_head): Move to
8220 dwarf2/comp-unit.h.
8221 (enum class rcuh_kind): Move to comp-unit.h.
8222 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
8223 (read_comp_unit_head, error_check_comp_unit_head)
8224 (read_and_check_comp_unit_head): Move to comp-unit.c.
8225 (read_offset, dwarf_unit_type_name): Likewise.
8226 (create_debug_type_hash_table, read_cutu_die_from_dwo)
8227 (cutu_reader::cutu_reader, read_call_site_scope)
8228 (find_partial_die, follow_die_offset): Update.
8229 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
8230
24aa364d
TT
82312020-02-08 Tom Tromey <tom@tromey.com>
8232
8233 * dwarf2/read.c (read_offset_1): Move to leb.c.
8234 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
8235 (dwarf_decode_macro_bytes): Update.
8236 * dwarf2/leb.c (read_offset): Rename; move from read.c.
8237 * dwarf2/leb.h (read_offset): Declare.
8238
2c7d5afc
TT
82392020-02-08 Tom Tromey <tom@tromey.com>
8240
8241 * dwarf2/read.c (dwarf2_section_size): Remove.
8242 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
8243 Update.
8244 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
8245
4075cb26
TT
82462020-02-08 Tom Tromey <tom@tromey.com>
8247
8248 * dwarf2/read.c (read_initial_length): Move to leb.c.
8249 * dwarf2/leb.h (read_initial_length): Declare.
8250 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
8251 handle_nonstd parameter.
8252 * dwarf2/frame.c (read_initial_length): Remove.
8253 (decode_frame_entry_1): Update.
8254
09ba997f
TT
82552020-02-08 Tom Tromey <tom@tromey.com>
8256
8257 * dwarf2/loc.c (dwarf2_find_location_expression)
8258 (dwarf_evaluate_loc_desc::get_tls_address)
8259 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
8260 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
8261 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
8262 (dwarf2_compile_property_to_c)
8263 (dwarf2_loc_desc_get_symbol_read_needs)
8264 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
8265 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
8266 (loclist_describe_location, loclist_tracepoint_var_ref)
8267 (loclist_generate_c_location): Update.
8268 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
8269 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
8270 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
8271 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
8272 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
8273 (dwarf2_per_cu_data::addr_size)
8274 (dwarf2_per_cu_data::ref_addr_size)
8275 (dwarf2_per_cu_data::text_offset)
8276 (dwarf2_per_cu_data::addr_type): Now methods.
8277 (per_cu_header_read_in): Make per_cu "const".
8278 (dwarf2_version): Remove.
8279 (dwarf2_per_cu_data::int_type): Now a method.
8280 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
8281 (set_die_type, read_array_type, read_subrange_index_type)
8282 (read_tag_string_type, read_subrange_type): Update.
8283 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
8284 offset_size, ref_addr_size, text_offset, addr_type, version,
8285 objfile, int_type, addr_sized_int_type>: Declare methods.
8286
96c738c0
TT
82872020-02-08 Tom Tromey <tom@tromey.com>
8288
8289 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
8290 Move earlier.
8291
8fdd972c
TT
82922020-02-08 Tom Tromey <tom@tromey.com>
8293
8294 * dwarf2/read.h (dwarf_line_debug): Declare.
8295 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
8296 * dwarf2/read.c: Move line_header code to new files.
8297 (dwarf_line_debug): No longer static.
8298 * dwarf2/line-header.c: New file.
8299 * dwarf2/line-header.h: New file.
8300
03075812
TT
83012020-02-08 Tom Tromey <tom@tromey.com>
8302
8303 * dwarf2/read.c (struct line_header) <file_full_name,
8304 file_file_name>: Return unique_xmalloc_ptr.
8305 (line_header::file_file_name): Update.
8306 (line_header::file_full_name): Update.
8307 (dw2_get_file_names_reader): Update.
8308 (macro_start_file): Update.
8309
bb822404
TT
83102020-02-08 Tom Tromey <tom@tromey.com>
8311
8312 * dwarf2/read.c (struct line_header) <file_full_name,
8313 file_file_name>: Declare methods.
8314 (dw2_get_file_names_reader): Update.
8315 (file_file_name): Now a method.
8316 (file_full_name): Likewise.
8317 (macro_start_file): Update.
8318
009b64fc
TT
83192020-02-08 Tom Tromey <tom@tromey.com>
8320
8321 * dwarf2/read.c (dwarf_always_disassemble)
8322 (show_dwarf_always_disassemble): Move to loc.c.
8323 (_initialize_dwarf2_read): Move "always-disassemble" registration
8324 to loc.c.
8325 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
8326 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
8327 static.
8328 (show_dwarf_always_disassemble): Move from read.c.
8329 (_initialize_dwarf2loc): Move always-disassemble from read.c.
8330
5895093f
TT
83312020-02-08 Tom Tromey <tom@tromey.com>
8332
8333 * dwarf2/read.c (~dwarf2_per_objfile): Update.
8334 (create_quick_file_names_table): Return htab_up.
8335 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
8336 Update.
8337 * dwarf2/read.h (struct dwarf2_per_objfile)
8338 <quick_file_names_table>: Now htab_up.
8339
b3b32279
TT
83402020-02-08 Tom Tromey <tom@tromey.com>
8341
8342 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
8343
1d33d811
TT
83442020-02-08 Tom Tromey <tom@tromey.com>
8345
8346 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
8347 Rewrite.
8348 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
8349 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
8350 (abbrev_table::abbrev_table): No longer inline.
8351 (ABBREV_HASH_SIZE): Remove.
8352 (abbrev_table::m_abbrevs): Now an htab_up.
8353
86de1d91
TT
83542020-02-08 Tom Tromey <tom@tromey.com>
8355
8356 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
8357 (cutu_reader): Update.
8358 (build_type_psymtabs_1): Update.
8359 * dwarf2/abbrev.c (abbrev_table::read): Rename.
8360 (abbrev_table::alloc_abbrev): Update.
8361 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
8362 (abbrev_table::read): New static method, renamed from
8363 abbrev_table_read_table.
8364 (abbrev_table::alloc_abbrev)
8365 (abbrev_table::add_abbrev): Now private.
8366 (abbrev_table::abbrev_table): Now private.
8367 (abbrev_table::m_abbrev_obstack): Now private. Rename.
8368
0335378b
TT
83692020-02-08 Tom Tromey <tom@tromey.com>
8370
8371 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
8372 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
8373 htab_up.
8374
48b490f2
TT
83752020-02-08 Tom Tromey <tom@tromey.com>
8376
8377 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
8378 htab_up.
8379 (lookup_dwo_unit_in_dwp): Update.
8380 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
8381 on obstack.
8382
bc68fb19
TT
83832020-02-08 Tom Tromey <tom@tromey.com>
8384
8385 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
8386 obstack.
8387
d15acc42
TT
83882020-02-08 Tom Tromey <tom@tromey.com>
8389
8390 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
8391 line_header_hash.
8392 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
8393 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
8394 Change type to htab_up.
8395
eaa5fa8b
TT
83962020-02-08 Tom Tromey <tom@tromey.com>
8397
8398 * dwarf2/read.c (allocate_type_unit_groups_table): Return
8399 htab_up. Don't allocate on obstack.
8400 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
8401 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
8402 Change type to htab_up.
8403
b0b6a987
TT
84042020-02-08 Tom Tromey <tom@tromey.com>
8405
8406 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
8407 Change type to htab_up.
8408 * dwarf2/read.c (create_signatured_type_table_from_index)
8409 (create_signatured_type_table_from_debug_names)
8410 (create_all_type_units, add_type_unit)
8411 (lookup_dwo_signatured_type, lookup_signatured_type)
8412 (process_skeletonless_type_unit): Update.
8413 (create_debug_type_hash_table, create_debug_types_hash_table):
8414 Change type of types_htab.
8415 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
8416 htab_up. Don't allocate on obstack.
8417 (create_cus_hash_table): Change type of cus_htab parameter.
8418 (struct dwo_file) <cus, tus>: Now htab_up.
8419 (lookup_dwo_signatured_type, lookup_dwo_cutu)
8420 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
8421 (queue_and_load_all_dwo_tus): Update.
8422 * dwarf2/index-write.c (write_gdbindex): Update.
8423 (write_debug_names): Update.
8424
39856def
TT
84252020-02-08 Tom Tromey <tom@tromey.com>
8426
8427 * dwarf2/read.h (struct dwarf2_queue_item): Move from
8428 dwarf2/read.c. Remove "next" member. Add constructor ntad
8429 destructor.
8430 (struct dwarf2_per_objfile) <queue>: New member.
8431 * dwarf2/read.c (struct dwarf2_queue_item): Move to
8432 dwarf2/read.h.
8433 (dwarf2_queue, dwarf2_queue_tail): Remove.
8434 (class dwarf2_queue_guard): Add parameter to constructor. Use
8435 DISABLE_COPY_AND_ASSIGN.
8436 <m_per_objfile>: New member.
8437 <~dwarf2_queue_guard>: Rewrite.
8438 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
8439 Update.
8440 (~dwarf2_queue_item): New.
8441
3e225074
TT
84422020-02-08 Tom Tromey <tom@tromey.com>
8443
8444 * dwarf2/read.c (struct die_info) <has_children>: New member.
8445 (dw2_get_file_names_reader): Remove has_children.
8446 (dw2_get_file_names): Update.
8447 (read_cutu_die_from_dwo): Remove has_children.
8448 (cutu_reader::init_tu_and_read_dwo_dies)
8449 (cutu_reader::cutu_reader): Update.
8450 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
8451 Remove has_children.
8452 (build_type_psymtabs_1, process_skeletonless_type_unit)
8453 (load_partial_comp_unit, load_full_comp_unit): Update.
8454 (create_dwo_cu_reader): Remove has_children.
8455 (create_cus_hash_table, read_die_and_children): Update.
8456 (read_full_die_1,read_full_die): Remove has_children.
8457 (read_signatured_type): Update.
8458 (class cutu_reader) <has_children>: Remove.
8459
82ca8957
TT
84602020-02-08 Tom Tromey <tom@tromey.com>
8461
8462 * dwarf2/expr.c: Rename from dwarf2expr.c.
8463 * dwarf2/expr.h: Rename from dwarf2expr.h.
8464 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
8465 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
8466 * dwarf2/frame.c: Rename from dwarf2-frame.c.
8467 * dwarf2/frame.h: Rename from dwarf2-frame.h.
8468 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
8469 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
8470 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
8471 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
8472 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
8473 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
8474 * dwarf2/loc.c: Rename from dwarf2loc.c.
8475 * dwarf2/loc.h: Rename from dwarf2loc.h.
8476 * dwarf2/read.c: Rename from dwarf2read.c.
8477 * dwarf2/read.h: Rename from dwarf2read.h.
8478 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
8479 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
8480 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
8481 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
8482 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
8483 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
8484 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
8485 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
8486 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
8487 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
8488 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
8489 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
8490 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
8491 Update.
8492 * Makefile.in (COMMON_SFILES): Update.
8493 (HFILES_NO_SRCDIR): Update.
8494
9e35d499
TT
84952020-02-08 Tom Tromey <tom@tromey.com>
8496
8497 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
8498 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
8499
1eba2311
TT
85002020-02-08 Tom Tromey <tom@tromey.com>
8501
8502 * dwarf2read.h (struct die_info): Don't declare.
8503
e41c2da2
TT
85042020-02-08 Tom Tromey <tom@tromey.com>
8505
8506 * dwarf2read.h (die_info_ptr): Remove typedef.
8507
4fc6c0d5
TT
85082020-02-08 Tom Tromey <tom@tromey.com>
8509
8510 * dwarf2read.c (read_call_site_scope)
8511 (handle_data_member_location, dwarf2_add_member_fn)
8512 (mark_common_block_symbol_computed, read_common_block)
8513 (attr_to_dynamic_prop, partial_die_info::read)
8514 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
8515 (dwarf2_symbol_mark_computed, set_die_type): Update.
8516 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
8517 method.
8518 (attr_form_is_block): Don't declare.
8519 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
8520
cd6c91b4
TT
85212020-02-08 Tom Tromey <tom@tromey.com>
8522
8523 * dwarf2read.c (dwarf2_find_base_address, )
8524 (read_call_site_scope, rust_containing_type)
8525 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
8526 (handle_data_member_location, dwarf2_add_member_fn)
8527 (get_alignment, read_structure_type, process_structure_scope)
8528 (mark_common_block_symbol_computed, read_common_block)
8529 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
8530 (partial_die_info::read, read_attribute_value, new_symbol)
8531 (lookup_die_type, dwarf2_get_ref_die_offset)
8532 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
8533 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
8534 (dwarf2_symbol_mark_computed): Update.
8535 * dwarf2/attribute.h (struct attribute) <value_as_address,
8536 form_is_section_offset, form_is_constant, form_is_ref>: Declare
8537 methods.
8538 (value_as_address, attr_form_is_section_offset)
8539 (attr_form_is_constant, attr_form_is_ref): Don't declare.
8540 * dwarf2/attribute.c (attribute::value_as_address)
8541 (attribute::form_is_section_offset, attribute::form_is_constant)
8542 (attribute::form_is_ref): Now methods.
8543
162dce55
TT
85442020-02-08 Tom Tromey <tom@tromey.com>
8545
8546 * dwarf2read.c (struct attribute, DW_STRING)
8547 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
8548 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
8549 (attr_form_is_block, attr_form_is_section_offset)
8550 (attr_form_is_constant, attr_form_is_ref): Move.
8551 * dwarf2/attribute.h: New file.
8552 * dwarf2/attribute.c: New file, from dwarf2read.c.
8553 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
8554
3054dd54
TT
85552020-02-08 Tom Tromey <tom@tromey.com>
8556
8557 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
8558 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
8559 Move.
8560 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
8561 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
8562 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
8563 abbrev.c.
8564 * dwarf2/abbrev.h: New file.
8565 * dwarf2/abbrev.c: New file, from dwarf2read.c.
8566 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
8567
96b79293
TT
85682020-02-08 Tom Tromey <tom@tromey.com>
8569
8570 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
8571 (dwarf2_section_size, dwarf2_get_section_info)
8572 (create_signatured_type_table_from_debug_names)
8573 (create_addrmap_from_aranges, read_debug_names_from_section)
8574 (get_gdb_index_contents_from_section, read_comp_unit_head)
8575 (error_check_comp_unit_head, read_abbrev_offset)
8576 (create_debug_type_hash_table, init_cu_die_reader)
8577 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
8578 (read_comp_units_from_section, create_cus_hash_table)
8579 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
8580 (create_dwp_v2_section, dwarf2_rnglists_process)
8581 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
8582 (abbrev_table_read_table, read_indirect_string_at_offset_from)
8583 (read_indirect_string_from_dwz, read_addr_index_1)
8584 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
8585 (dwarf_decode_macro_bytes, dwarf_decode_macros)
8586 (fill_in_loclist_baton): Update.
8587 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
8588 get_containing_section, get_bfd_owner, get_bfd_section,
8589 get_file_name, get_id, get_flags, empty, read>: Declare methods.
8590 (dwarf2_read_section, get_section_name, get_section_file_name)
8591 (get_containing_section, get_section_bfd_owner)
8592 (get_section_bfd_section, get_section_name, get_section_file_name)
8593 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
8594 declare.
8595 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
8596 (dwarf2_section_info::get_bfd_owner)
8597 (dwarf2_section_info::get_bfd_section)
8598 (dwarf2_section_info::get_name)
8599 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
8600 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
8601 (dwarf2_section_info::read): Now methods.
8602 * dwarf-index-write.c (class debug_names): Update.
8603
2c86cff9
TT
86042020-02-08 Tom Tromey <tom@tromey.com>
8605
8606 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
8607 Move to dwarf2/section.h.
8608 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
8609 (get_section_bfd_section, get_section_name)
8610 (get_section_file_name, get_section_id, get_section_flags)
8611 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
8612 dwarf2/section.c.
8613 * dwarf2/section.h: New file.
8614 * dwarf2/section.c: New file, from dwarf2read.c.
8615 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
8616
f4382c45
TT
86172020-02-08 Tom Tromey <tom@tromey.com>
8618
8619 * dwarf2read.h (read_unsigned_leb128): Don't declare.
8620 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
8621 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
8622 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
8623 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
8624 * dwarf2/leb.h: New file, from dwarf2read.c.
8625 * dwarf2/leb.c: New file, from dwarf2read.c.
8626 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
8627 Remove.
8628 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
8629 (COMMON_SFILES): Add dwarf2/leb.c.
8630
01840b7a
JB
86312020-02-08 Joel Brobecker <brobecker@adacore.com>
8632
8633 GDB 9.1 released.
8634
dfcb27e4
IB
86352020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
8636
8637 PR gdb/25190:
aac66a4c
SM
8638 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
8639 * gdb/remote.c (remote_console_output): Update.
8640 * gdb/ui-file.c (fputs_unfiltered): Rename to...
8641 (ui_file_puts): ...this.
8642 * gdb/ui-file.h (ui_file_puts): Add declaration.
8643 * gdb/utils.c (emit_style_escape): Update.
8644 (flush_wrap_buffer): Update.
8645 (fputs_maybe_filtered): Update.
8646 (fputs_unfiltered): Add function.
dfcb27e4 8647
faa17681
IB
86482020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
8649
aac66a4c
SM
8650 * gdb/event-loop.c (gdb_wait_for_event): Update.
8651 * gdb/printcmd.c (printf_command): Update.
8652 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
8653 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
8654 (gdb_os_flush_stderr): Update.
8655 * gdb/remote.c (remote_console_output): Update.
8656 * gdb/ui-file.c (gdb_flush): Rename to...
8657 (ui_file_flush): ...this.
8658 (stderr_file::write): Update.
8659 (stderr_file::puts): Update.
8660 * gdb/ui-file.h (gdb_flush): Rename to...
8661 (ui_file_flush): ...this.
8662 * gdb/utils.c (gdb_flush): Add function.
8663 * gdb/utils.h (gdb_flush): Add declaration.
faa17681 8664
5abbbe1d
TT
86652020-02-07 Tom Tromey <tromey@adacore.com>
8666
8667 PR breakpoints/24915:
8668 * source.c (find_and_open_source): Do not check basenames_may_differ.
8669
919adfe8
TT
86702020-02-07 Tom Tromey <tom@tromey.com>
8671
8672 * README: Update gdbserver documentation.
8673 * gdbserver: Move to top level.
8674 * configure.tgt (build_gdbserver): Remove.
8675 * configure.ac: Remove --enable-gdbserver.
8676 * configure: Rebuild.
8677 * Makefile.in (distclean): Don't mention gdbserver.
8678
1d5d29e7
SV
86792020-02-06 Shahab Vahedi <shahab@synopsys.com>
8680
8681 * source-cache.c (source_cache::ensure): Surround
8682 get_plain_source_lines with a try/catch.
8683 (source_cache::get_line_charpos): Get rid of try/catch
8684 and only check for the return value of "ensure".
8685 * tui/tui-source.c (tui_source_window::set_contents):
8686 Simplify "nlines" calculation.
8687
6eb1129c
SV
86882020-02-06 Shahab Vahedi <shahab@synopsys.com>
8689
8690 * MAINTAINERS (Write After Approval): Add myself.
8691
c6a42d11
CB
86922020-02-05 Christian Biesinger <cbiesinger@google.com>
8693
8694 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
8695 function call.
8696
c8ecdda6
CB
86972020-02-05 Christian Biesinger <cbiesinger@google.com>
8698
8699 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
8700
f6480e70
MR
87012020-02-05 Maciej W. Rozycki <macro@wdc.com>
8702
8703 * nat/riscv-linux-tdesc.h: New file.
8704 * nat/riscv-linux-tdesc.c: New file, taking code from...
8705 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
8706 ... here.
8707 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
8708 NATDEPFILES.
8709
dcc9fbc6
AB
87102020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
8711
8712 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
8713 we don't set the fake simulator ptid to the null_ptid.
8714
719546c4
SM
87152020-02-03 Simon Marchi <simon.marchi@efficios.com>
8716
8717 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
8718 * gdbthread.h (class thread_info) <resumed>: Likewise.
8719 * infrun.c (resume_1): Likewise.
8720 (proceed): Likewise.
8721 (infrun_thread_stop_requested): Likewise.
8722 (stop_all_threads): Likewise.
8723 (handle_inferior_event): Likewise.
8724 (restart_threads): Likewise.
8725 (finish_step_over): Likewise.
8726 (keep_going_stepped_thread): Likewise.
8727 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
8728 (linux_handle_extended_wait): Likewise.
8729 * record-btrace.c (get_thread_current_frame_id): Likewise.
8730 * record-full.c (record_full_wait_1): Likewise.
8731 * remote.c (remote_target::process_initial_stop_replies): Likewise.
8732 * target.c (target_resume): Likewise.
8733 * thread.c (set_running_thread): Likewise.
8734
e409c542
AKS
87352020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
8736
8737 * f-valprint.c (f77_print_array_1): Changed datatype of index
8738 variable to LONGEST from int to enable it to contain bound
8739 values correctly.
8740
ee98c0da
MR
87412020-02-03 Maciej W. Rozycki <macro@wdc.com>
8742
8743 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
8744 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
8745 offsets according to FLEN determined.
8746 (riscv_linux_nat_target::read_description): Determine FLEN
8747 dynamically.
8748 (riscv_linux_nat_target::fetch_registers): Size regset buffer
8749 according to FLEN determined.
8750 (riscv_linux_nat_target::store_registers): Likewise.
8751
aa66aac4
SV
87522020-02-01 Shahab Vahedi <shahab@synopsys.com>
8753
8754 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
8755 when reg->group is empty and reggroup is not.
8756
fd9faca8
TT
87572020-01-31 Tom Tromey <tromey@adacore.com>
8758
8759 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
8760 Call beneath target's mourn_inferior after unpushing.
8761
42330a68
AB
87622020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
8763
8764 PR tui/9765
8765 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
8766 have enough lines to fill the screen, still return the lowest
8767 address we found.
8768
7a27a45b
AB
87692020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
8770
8771 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
8772 '-', '<', and '>' commands.
8773
c47f70e2
PA
87742020-01-29 Pedro Alves <palves@redhat.com>
8775 Sergio Durigan Junior <sergiodj@redhat.com>
8776
8777 * infcmd.c (construct_inferior_arguments): Assert that
8778 'argc' is greater than 0.
8779
5133a315
LM
87802020-01-29 Luis Machado <luis.machado@linaro.org>
8781
8782 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
8783 (BRK_INSN_MASK): Define to 0xd4200000.
8784 (aarch64_program_breakpoint_here_p): New function.
8785 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
8786 * arch-utils.c (default_program_breakpoint_here_p): Moved from
8787 breakpoint.c.
8788 * arch-utils.h (default_program_breakpoint_here_p): Moved from
8789 breakpoint.h
8790 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
8791 call gdbarch_program_breakpoint_here_p.
8792 (program_breakpoint_here): Moved to arch-utils.c, renamed to
8793 default_program_breakpoint_here_p, changed return type to bool and
8794 simplified.
8795 * breakpoint.h (program_breakpoint_here): Moved prototype to
8796 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
8797 return type to bool.
8798 * gdbarch.c: Regenerate.
8799 * gdbarch.h: Regenerate.
8800 * gdbarch.sh (program_breakpoint_here_p): New method.
8801 * infrun.c (handle_signal_stop): Call
8802 gdbarch_program_breakpoint_here_p.
8803
168f8c6b
TT
88042020-01-26 Tom Tromey <tom@tromey.com>
8805
8806 * ctfread.c (struct ctf_fp_info): Reindent.
8807 (_initialize_ctfread): Remove.
8808
128a391f
TT
88092020-01-26 Tom Tromey <tom@tromey.com>
8810
8811 * psymtab.c (partial_map_expand_apply)
8812 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
8813 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
8814 (psym_print_stats, psym_expand_symtabs_for_function)
8815 (psym_map_symbol_filenames, psym_map_matching_symbols)
8816 (psym_expand_symtabs_matching)
8817 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
8818 (maintenance_check_psymtabs): Use new methods.
8819 * psympriv.h (struct partial_symtab) <readin_p,
8820 get_compunit_symtab>: New methods.
8821 <readin, compunit_symtab>: Remove members.
8822 (struct standard_psymtab): New.
8823 (struct legacy_psymtab): Derive from standard_psymtab.
8824 * dwarf2read.h (struct dwarf2_psymtab): Derive from
8825 standard_psymtab.
8826 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
8827
0494dbec
TT
88282020-01-26 Tom Tromey <tom@tromey.com>
8829
8830 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
8831 read_dependencies. Add assert.
8832 * psymtab.c (partial_symtab::read_dependencies): New method.
8833 * psympriv.h (struct partial_symtab) <read_dependencies>: New
8834 method.
8835 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
8836 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
8837 read_dependencies.
8838 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
8839 Add assert.
8840
8566b89b
TT
88412020-01-26 Tom Tromey <tom@tromey.com>
8842
8843 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
8844 Call expand_psymtab.
8845 (xcoff_read_symtab): Call expand_psymtab.
8846 (xcoff_start_psymtab, xcoff_end_psymtab): Set
8847 legacy_expand_psymtab.
8848 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
8849 method.
8850 (struct legacy_psymtab) <expand_psymtab>: Implement.
8851 <legacy_expand_psymtab>: New member.
8852 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
8853 (parse_partial_symbols): Set legacy_expand_psymtab.
8854 (psymtab_to_symtab_1): Change argument order. Call
8855 expand_psymtab.
8856 (new_psymtab): Set legacy_expand_psymtab.
8857 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
8858 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
8859 expand_psymtab.
8860 (dwarf2_psymtab::expand_psymtab): Rename from
8861 psymtab_to_symtab_1. Call expand_psymtab.
8862 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
8863 (dbx_end_psymtab): Likewise.
8864 (dbx_psymtab_to_symtab_1): Change argument order. Call
8865 expand_psymtab.
8866 (dbx_read_symtab): Call expand_psymtab.
8867 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
8868 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
8869 (ctf_psymtab::read_symtab): Call expand_psymtab.
8870
077cbab2
TT
88712020-01-26 Tom Tromey <tom@tromey.com>
8872
8873 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
8874 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
8875 messages.
8876 * mdebugread.c (mdebug_read_symtab): Remove prints.
8877 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
8878 assert.
8879 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
8880
891813be
TT
88812020-01-26 Tom Tromey <tom@tromey.com>
8882
8883 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
8884 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
8885 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
8886 legacy_symtab.
8887 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
8888 * psymtab.c (psymtab_to_symtab): Call method.
8889 (dump_psymtab): Update.
8890 * psympriv.h (struct partial_symtab): Add virtual destructor.
8891 <read_symtab>: New method.
8892 (struct legacy_symtab): New.
8893 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
8894 (struct pst_map) <pst>: Now a legacy_psymtab.
8895 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
8896 (new_psymtab): Use legacy_psymtab.
8897 * dwarf2read.h (struct dwarf2_psymtab): New.
8898 (struct dwarf2_per_cu_data) <psymtab>: Use it.
8899 * dwarf2read.c (dwarf2_create_include_psymtab)
8900 (dwarf2_build_include_psymtabs, create_type_unit_group)
8901 (create_partial_symtab, process_psymtab_comp_unit_reader)
8902 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
8903 (set_partial_user): Use dwarf2_psymtab.
8904 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
8905 (psymtab_to_symtab_1, process_full_comp_unit)
8906 (process_full_type_unit, dwarf2_ranges_read)
8907 (dwarf2_get_pc_bounds, psymtab_include_file_name)
8908 (dwarf_decode_lines): Use dwarf2_psymtab.
8909 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
8910 (add_address_entry_worker, write_one_signatured_type)
8911 (recursively_count_psymbols, recursively_write_psymbols)
8912 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
8913 (write_debug_names): Likewise.
8914 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
8915 <pst>: Now a legacy_psymtab.
8916 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
8917 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
8918 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
8919 * ctfread.c (struct ctf_psymtab): New.
8920 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
8921 ctf_psymtab.
8922 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
8923 (create_partial_symtab): Return a ctf_psymtab.
8924 (scan_partial_symbols): Update.
8925
c3693a1d
TT
89262020-01-26 Tom Tromey <tom@tromey.com>
8927
8928 * xcoffread.c (xcoff_start_psymtab): Use new.
8929 * psymtab.c (partial_symtab::partial_symtab): New constructor,
8930 renamed from start_psymtab_common.
8931 * psympriv.h (struct partial_symtab): Add new constructor.
8932 (start_psymtab_common): Don't declare.
8933 * mdebugread.c (parse_partial_symbols): Use new.
8934 * dwarf2read.c (create_partial_symtab): Use new.
8935 * dbxread.c (start_psymtab): Use new.
8936 * ctfread.c (create_partial_symtab): Use new.
8937
32caafd0
TT
89382020-01-26 Tom Tromey <tom@tromey.com>
8939
8940 * xcoffread.c (xcoff_end_psymtab): Use new.
8941 * psymtab.c (start_psymtab_common): Use new.
8942 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
8943 Update.
8944 * psympriv.h (struct partial_symtab): Add parameters to
8945 constructor. Don't inline.
8946 (allocate_psymtab): Don't declare.
8947 * mdebugread.c (new_psymtab): Use new.
8948 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
8949 * dbxread.c (dbx_end_psymtab): Use new.
8950
abaa2f23
TT
89512020-01-26 Tom Tromey <tom@tromey.com>
8952
8953 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
8954 allocate_psymtab. Update documentation.
8955 * psymtab.c (psymtab_storage::install_psymtab): Rename from
8956 allocate_psymtab. Do not use new.
8957 (allocate_psymtab): Use new. Update.
8958
6d94535f
TT
89592020-01-26 Tom Tromey <tom@tromey.com>
8960
8961 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
8962 * psymtab.c (psym_print_stats): Update.
8963 * psympriv.h (struct partial_symtab) <readin,
8964 psymtabs_addrmap_supported, anonymous>: Now bool.
8965 * mdebugread.c (psymtab_to_symtab_1): Update.
8966 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
8967 (build_type_psymtabs_reader, psymtab_to_symtab_1)
8968 (process_full_comp_unit, process_full_type_unit): Update.
8969 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
8970 * ctfread.c (psymtab_to_symtab): Update.
8971
6f17252b
TT
89722020-01-26 Tom Tromey <tom@tromey.com>
8973
8974 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
8975 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
8976 * psymtab.c (psymtab_storage): Delete psymtabs.
8977 (psymtab_storage::allocate_psymtab): Use new.
8978 (psymtab_storage::discard_psymtab): Use delete.
8979 * psympriv.h (struct partial_symtab): Add constructor and
8980 initializers.
8981
f6f1cebc
TT
89822020-01-26 Tom Tromey <tom@tromey.com>
8983
8984 * machoread.c: Do not include psympriv.h.
8985
e47e48f6
PW
89862020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8987
8988 * NEWS: Mention the new option and the set/show commands.
8989
a2fedca9
PW
89902020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8991
8992 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
8993 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
8994 (validate_exec_file): New variables, enums, functions.
8995 (exec_file_locate_attach, print_section_info): Style the filenames.
8996 (_initialize_exec): Install show_exec_file_mismatch_command and
8997 set_exec_file_mismatch_command.
8998 * gdbcore.h (validate_exec_file): Declare.
8999 * infcmd.c (attach_command): Call validate_exec_file.
9000 * remote.c ( remote_target::remote_add_inferior): Likewise.
9001
7ffa82e1
AB
90022020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9003
9004 * frame.c (find_frame_sal): Move call to get_next_frame into more
9005 inner scope.
9006 * inline-frame.c (inilne_state) <inline_state>: Update argument
9007 types.
9008 (inilne_state) <skipped_symbol>: Rename to...
9009 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
9010 (skip_inline_frames): Build vector of skipped symbols and use this
9011 to reate the inline_state.
9012 (inline_skipped_symbol): Add a comment and some assertions, fetch
9013 skipped symbol from the list.
9014
3d92a3e3
AB
90152020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9016
9017 * buildsym.c (lte_is_less_than): Delete.
9018 (buildsym_compunit::end_symtab_with_blockvector): Create local
9019 lambda function to sort line table entries, and use
9020 std::stable_sort instead of std::sort.
9021 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
9022 markers when looking for a previous line.
9023
94a72be7
AB
90242020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9025
9026 * dwarf2read.c (lnp_state_machine::record_line): Include
9027 end_sequence parameter in debug print out. Record the line if we
9028 are at an end_sequence marker even if it's not the start of a
9029 statement.
9030 * symmisc.c (maintenance_print_one_line_table): Print end of
9031 sequence markers with 'END' not '0'.
9032
53af73bf
PA
90332020-01-24 Pedro Alves <palves@redhat.com>
9034
9035 PR gdb/25410
9036 * thread.c (scoped_restore_current_thread::restore): Use
9037 switch_to_inferior_no_thread.
9038 * exec.c: Include "progspace-and-thread.h".
9039 (add_target_sections, remove_target_sections):
9040 scoped_restore_current_pspace_and_thread instead of
9041 scoped_restore_current_thread.
9042 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
9043 and aspace to the inferior before calling clone_program_space.
9044 Remove stale comment.
9045
3050c6f4
CB
90462020-01-24 Christian Biesinger <cbiesinger@google.com>
9047
9048 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
9049 (arm_netbsd_nat_target::fetch_registers): ...this.
9050 (arm_nbsd_nat_target::store_registers): Rename to...
9051 (arm_netbsd_nat_target::store_registers): ...this.
9052
73685c7e
CB
90532020-01-24 Christian Biesinger <cbiesinger@google.com>
9054
9055 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
9056 register_t.
9057
89203d40
CB
90582020-01-24 Christian Biesinger <cbiesinger@google.com>
9059
9060 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
9061 Update comment.
9062 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
9063 Likewise.
9064 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
9065 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
9066 the correct replacement (iterate_over_regset_sections).
9067 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
9068 Update comment.
9069
1ba1ac88
AB
90702020-01-24 Graham Markall <graham.markall@embecosm.com>
9071
9072 PR gdb/23718
9073 * gdb/python/python.c (execute_gdb_command): Call
9074 async_enable_stdin in catch block.
9075
f3364a6d
AB
90762020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9077
9078 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
9079 SWITCH_THRU_ALL_UIS.
9080
733d0a67
AB
90812020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9082
9083 PR tui/9765
9084 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
9085 comment, add extra parameter, and update to store previous symbol
9086 when appropriate.
9087 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
9088 add extra parameter.
9089 * tui/tui-disasm.c (tui_disassemble): Update header comment,
9090 remove unneeded parameter, add try/catch around gdb_print_insn,
9091 rewrite to add items to asm_lines vector.
9092 (tui_find_backward_disassembly_start_address): New function.
9093 (tui_find_disassembly_address): Updated throughout.
9094 (tui_disasm_window::set_contents): Update for changes to
9095 tui_disassemble.
9096 (tui_disasm_window::do_scroll_vertical): No need to adjust the
9097 number of lines to scroll.
9098
b3b3bada
SM
90992020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
9100
9101 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
9102 (SECT_OFF_DATA): Likewise.
9103 (SECT_OFF_RODATA): Likewise.
9104 (SECT_OFF_TEXT): Likewise.
9105 (SECT_OFF_BSS): Likewise.
9106 (struct objfile) <text_section_offset, data_section_offset>: New
9107 methods.
9108 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
9109 objfile::text_section_offset.
9110 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
9111 * coffread.c (coff_symtab_read): Likewise.
9112 (enter_linenos): Likewise.
9113 (process_coff_symbol): Likewise.
9114 * ctfread.c (get_objfile_text_range): Likewise.
9115 * dtrace-probe.c (dtrace_probe::get_relocated_address):
9116 Use objfile::data_section_offset.
9117 * dwarf2-frame.c (execute_cfa_program): Use
9118 objfile::text_section_offset.
9119 (dwarf2_frame_find_fde): Likewise.
9120 * dwarf2read.c (create_addrmap_from_index): Likewise.
9121 (create_addrmap_from_aranges): Likewise.
9122 (dw2_find_pc_sect_compunit_symtab): Likewise.
9123 (process_psymtab_comp_unit_reader): Likewise.
9124 (add_partial_symbol): Likewise.
9125 (add_partial_subprogram): Likewise.
9126 (process_full_comp_unit): Likewise.
9127 (read_file_scope): Likewise.
9128 (read_func_scope): Likewise.
9129 (read_lexical_block_scope): Likewise.
9130 (read_call_site_scope): Likewise.
9131 (dwarf2_rnglists_process): Likewise.
9132 (dwarf2_ranges_process): Likewise.
9133 (dwarf2_ranges_read): Likewise.
9134 (dwarf_decode_lines_1): Likewise.
9135 (new_symbol): Likewise.
9136 (dwarf2_fetch_die_loc_sect_off): Likewise.
9137 (dwarf2_per_cu_text_offset): Likewise.
9138 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
9139 * hppa-tdep.c (read_unwind_info): Likewise.
9140 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
9141 * psympriv.h (struct partial_symtab): Likewise.
9142 * psymtab.c (find_pc_sect_psymtab): Likewise.
9143 * solib-svr4.c (enable_break): Likewise.
9144 * stap-probe.c (relocate_address): Use
9145 objfile::data_section_offset.
9146 * xcoffread.c (enter_line_range): Use
9147 objfile::text_section_offset.
9148 (read_xcoff_symtab): Likewise.
9149
ab53f382
SM
91502020-01-23 Simon Marchi <simon.marchi@efficios.com>
9151
9152 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
9153 declaration to narrower scopes.
9154
e7eee665
SM
91552020-01-23 Simon Marchi <simon.marchi@efficios.com>
9156
9157 * darwin-nat.h (struct darwin_exception_msg, enum
9158 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
9159 Move up.
9160 (class darwin_nat_target) <wait_1, check_new_threads,
9161 decode_exception_message, decode_message, stop_inferior,
9162 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
9163 * darwin-nat.c (darwin_check_new_threads): Rename to...
9164 (darwin_nat_target::check_new_threads): ... this.
9165 (darwin_suspend_inferior_it): Remove.
9166 (darwin_decode_exception_message): Rename to...
9167 (darwin_nat_target::decode_exception_message): ... this.
9168 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
9169 (darwin_decode_message): Rename to...
9170 (darwin_nat_target::decode_message): ... this.
9171 (cancel_breakpoint): Rename to...
9172 (darwin_nat_target::cancel_breakpoint): ... this.
9173 (darwin_wait): Rename to...
9174 (darwin_nat_target::wait_1): ... this. Use range-based for loop
9175 instead of iterate_over_inferiors.
9176 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
9177 (darwin_stop_inferior): Rename to...
9178 (darwin_nat_target::stop_inferior): ... this.
9179 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
9180 (darwin_init_thread_list): Rename to...
9181 (darwin_nat_target::init_thread_list): ... this.
9182 (darwin_ptrace_him): Rename to...
9183 (darwin_nat_target::ptrace_him): ... this.
9184 (darwin_nat_target::create_inferior): Pass lambda function to
9185 fork_inferior.
9186 (darwin_nat_target::detach): Call stop_inferior instead of
9187 darwin_stop_inferior.
9188 * fork-inferior.h (fork_inferior): Change init_trace_fun
9189 parameter to gdb::function_view.
9190 * fork-inferior.c (fork_inferior): Likewise.
9191
c162ed3e
HD
91922020-01-23 Hannes Domani <ssbssa@yahoo.de>
9193
9194 * i386-cygwin-tdep.c (core_process_module_section): Update.
9195 * windows-nat.c (struct lm_info_windows): Add text_offset.
9196 (windows_xfer_shared_libraries): Update.
9197 * windows-tdep.c (windows_xfer_shared_library):
9198 Add text_offset_cached argument.
9199 * windows-tdep.h (windows_xfer_shared_library): Update.
9200
a1237872
SM
92012020-01-21 Simon Marchi <simon.marchi@efficios.com>
9202
9203 * gdbarch.sh: Add declaration for _initialize_gdbarch.
9204
b3ee6dd9
SM
92052020-01-21 Simon Marchi <simon.marchi@efficios.com>
9206
9207 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
9208 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
9209 replace with range-based for.
9210 (gdbsim_interrupt_inferior): Remove.
9211 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
9212 with a range-based for. Inline code from
9213 gdbsim_interrupt_inferior.
9214
f9fac3c8
SM
92152020-01-21 Simon Marchi <simon.marchi@efficios.com>
9216
9217 * infrun.c (proceed): Fix indentation.
9218
f6474de9
TT
92192020-01-21 Tom Tromey <tromey@adacore.com>
9220
9221 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
9222 * python/python.c (python_extension_ops): Update.
9223 (gdbpy_colorize): New function.
9224 * python/lib/gdb/__init__.py (colorize): New function.
9225 * extension.h (ext_lang_colorize): Declare.
9226 * extension.c (ext_lang_colorize): New function.
9227 * extension-priv.h (struct extension_language_ops) <colorize>: New
9228 member.
9229 * cli/cli-style.c (_initialize_cli_style): Update help text.
9230
f0c702d4
LM
92312020-01-21 Luis Machado <luis.machado@linaro.org>
9232
9233 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
9234 <cond>: Change type to bool.
9235 (aarch64_displaced_step_b_cond): Update cond to use bool type.
9236 (aarch64_displaced_step_cb): Likewise.
9237 (aarch64_displaced_step_tb): Likewise.
9238
1ab139e5
LM
92392020-01-21 Luis Machado <luis.machado@linaro.org>
9240
9241 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
9242 output.
9243
0c271889
LM
92442020-01-21 Luis Machado <luis.machado@linaro.org>
9245
9246 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
9247 <pc_adjust>: Adjust the documentation.
9248 (aarch64_displaced_step_fixup): Check if PC really moved before
9249 adjusting it.
9250
4d89c1c7
TT
92512020-01-19 Tom Tromey <tom@tromey.com>
9252
9253 * disasm.c (~gdb_disassembler): New destructor.
9254 (gdb_buffered_insn_length): Call disassemble_free_target.
9255 * disasm.h (class gdb_disassembler): Declare destructor. Use
9256 DISABLE_COPY_AND_ASSIGN.
9257
c0ab21c2
TT
92582020-01-19 Tom Tromey <tom@tromey.com>
9259
9260 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
9261 (die_reader_func_ftype): Remove.
9262 (cutu_reader): New class.
9263 (dw2_get_file_names_reader): Remove "data" parameter.
9264 (dw2_get_file_names): Use cutu_reader.
9265 (create_debug_type_hash_table): Update.
9266 (read_cutu_die_from_dwo): Update comment.
9267 (lookup_dwo_unit): Add dwo_name parameter.
9268 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
9269 die_reader_func_ftype and data parameters.
9270 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
9271 Remove die_reader_func_ftype and data parameters.
9272 (~cutu_reader): New; from init_cutu_and_read_dies.
9273 (cutu_reader::cutu_reader): Rename from
9274 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
9275 and data parameters.
9276 (init_cutu_and_read_dies_simple): Remove.
9277 (struct process_psymtab_comp_unit_data): Remove.
9278 (process_psymtab_comp_unit_reader): Remove data parameter; add
9279 want_partial_unit and pretend_language parameters.
9280 (process_psymtab_comp_unit): Use cutu_reader.
9281 (build_type_psymtabs_reader): Remove data parameter.
9282 (build_type_psymtabs_1): Use cutu_reader.
9283 (process_skeletonless_type_unit): Likewise.
9284 (load_partial_comp_unit_reader): Remove.
9285 (load_partial_comp_unit): Use cutu_reader.
9286 (load_full_comp_unit_reader): Remove.
9287 (load_full_comp_unit): Use cutu_reader.
9288 (struct create_dwo_cu_data): Remove.
9289 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
9290 dwo_unit parameters.
9291 (create_cus_hash_table): Use cutu_reader.
9292 (struct dwarf2_read_addr_index_data): Remove.
9293 (dwarf2_read_addr_index_reader): Remove.
9294 (dwarf2_read_addr_index): Use cutu_reader.
9295 (read_signatured_type_reader): Remove.
9296 (read_signatured_type): Use cutu_reader.
9297
45bbae5c
TT
92982020-01-19 Tom Tromey <tom@tromey.com>
9299
9300 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
9301 * tui/tui-wingeneral.h (class tui_suppress_output): New.
9302 (tui_wrefresh): Declare.
9303 * tui/tui-wingeneral.c (suppress_output): New global.
9304 (tui_suppress_output, ~tui_suppress_output): New constructor and
9305 destructor.
9306 (tui_wrefresh): New function.
9307 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
9308 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
9309 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
9310 method.
9311 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
9312 tui_wrefresh.
9313 (tui_data_window::no_refresh): New method.
9314 (tui_data_item_window::refresh_window): Call tui_wrefresh.
9315 (tui_reg_command): Use tui_suppress_output
9316 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
9317 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
9318 method.
9319 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
9320
4f13c1c0
TT
93212020-01-19 Tom Tromey <tom@tromey.com>
9322
9323 * tui/tui-winsource.c (tui_update_source_windows_with_line):
9324 Handle case where symtab is null.
9325
fa47e446
SM
93262020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
9327
9328 * linux-fork.c (one_fork_p): Simplify.
9329
26f42329
SM
93302020-01-17 Simon Marchi <simon.marchi@efficios.com>
9331
9332 * top.c (struct qt_args): Remove.
9333 (kill_or_detach): Change return type to void, replace `void *`
9334 parameter with a proper one.
9335 (print_inferior_quit_action): Likewise.
9336 (quit_confirm): Use range-based for loop to iterate over inferiors.
9337 (quit_force): Likewise.
9338
a9ac81b1
SM
93392020-01-17 Simon Marchi <simon.marchi@efficios.com>
9340
9341 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
9342 `void *` parameter with proper parameters.
9343 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
9344 (print_one_inferior): Change return type to void, replace `void *`
9345 parameter with proper parameters.
9346 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
9347 inferiors.
9348 (get_other_inferior): Remove.
9349 (mi_cmd_remove_inferior): Use range-based loop to iterate over
9350 inferiors.
9351
788eca49
SM
93522020-01-17 Simon Marchi <simon.marchi@efficios.com>
9353
9354 * mi/mi-interp.c (report_initial_inferior): Remove.
9355 (mi_interp::init): Use range-based for to iterate over inferiors.
9356
d9bc85b6
SM
93572020-01-17 Simon Marchi <simon.marchi@efficios.com>
9358
9359 * python/py-inferior.c (build_inferior_list): Remove.
9360 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
9361
40c94099
CB
93622020-01-16 Christian Biesinger <cbiesinger@google.com>
9363
9364 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
9365 (btrace_stitch_trace): Likewise.
9366 * charset.c (intermediate_encoding): Likewise (vaild).
9367 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
9368 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
9369 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
9370
e0cdfe3c
HD
93712020-01-16 Hannes Domani <ssbssa@yahoo.de>
9372
9373 * windows-tdep.c (windows_get_tlb_type):
9374 Add rtl_user_process_parameters type.
9375
790f1718 93762020-01-16 Pedro Alves <palves@redhat.com>
aac66a4c 9377 Norbert Lange <nolange79@gmail.com>
790f1718
PA
9378
9379 PR build/24805
9380 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
9381 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
9382 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
9383 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
9384 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
9385 (ps_plog): Redeclare exported functions with default visibility.
9386
3112ed97
NA
93872020-01-16 Nitika Achra <Nitika.Achra@amd.com>
9388
9389 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
9390 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
9391
8dc3273e
SM
93922020-01-15 Simon Marchi <simon.marchi@efficios.com>
9393
9394 * infcmd.c (post_create_inferior): Use get_thread_regcache
9395 instead of get_current_regcache.
9396
ff47f4f0
TT
93972020-01-14 Tom Tromey <tom@tromey.com>
9398
9399 PR symtab/12535:
9400 * python/python.c (gdbpy_decode_line): Treat empty string the same
9401 as no argument.
9402
975f45b7
TT
94032020-01-14 Tom Tromey <tom@tromey.com>
9404
9405 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
9406
25e57356
TT
94072020-01-14 Tom Tromey <tom@tromey.com>
9408
9409 * nat/linux-btrace.c: Don't include <config.h>.
9410 * nat/linux-ptrace.c: Don't include <config.h>.
9411 * nat/x86-linux-dregs.c: Don't include <config.h>.
9412
05ea2a05
TT
94132020-01-14 Tom Tromey <tom@tromey.com>
9414
9415 * configure: Rebuild.
9416 * configure.ac: Move many checks to ../gdbsupport/common.m4.
9417
01027315
TT
94182020-01-14 Tom Tromey <tom@tromey.com>
9419
9420 * nat/x86-linux-dregs.c: Include configh.h.
9421 * nat/linux-ptrace.c: Include configh.h.
9422 * nat/linux-btrace.c: Include configh.h.
9423 * defs.h: Include config.h, bfd.h.
9424 * configure.ac: Don't source common.host.
9425 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
9426 * configure: Rebuild.
9427 * acinclude.m4: Update path.
9428 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
9429 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
9430 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
9431 (CLIBS): Add LIBSUPPORT.
9432 (CDEPS): Likewise.
9433 (COMMON_SFILES): Remove gdbsupport files.
9434 (HFILES_NO_SRCDIR): Likewise.
9435 (stamp-version): Update path to create-version.sh.
9436 (ALLDEPFILES): Remove gdbsupport files.
9437
b2ceabe8
TT
94382020-01-14 Tom Tromey <tom@tromey.com>
9439
9440 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
9441 USE_WIN32API when needed.
9442 * configure.ac (USE_WIN32API): Don't define.
9443 (WIN32LIBS): Use WIN32APILIBS.
9444 * configure: Rebuild.
9445
25c51f71
TT
94462020-01-14 Tom Tromey <tom@tromey.com>
9447
9448 * configure: Rebuild.
9449 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
9450
717c684d
BE
94512020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
9452
9453 * skip.c (skip_function_command): Make skip w/o arguments use the
9454 name of the inlined function if pc is inside any inlined function.
9455
7da6a5b9
LM
94562020-01-14 Luis Machado <luis.machado@linaro.org>
9457
9458 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
9459 * infrun.c (resume_1): Likewise.
9460 (handle_inferior_event): Remove stale comment.
9461 * linux-nat.c (linux_nat_target::resume): Update comments.
9462 (save_stop_reason): Likewise.
9463 (linux_nat_filter_event): Likewise.
9464 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
9465
44e4c775
AB
94662020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
9467
9468 * elfread.c (record_minimal_symbol): Set section index to 0 for
9469 non-allocatable sections.
9470
18a8505e
AT
9471
94722020-01-13 Ali Tamur <tamur@google.com>
9473
9474 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
9475 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
9476 to gdb::optional. Update comments.
9477 (dwo_file): Update comments.
9478 (read_attribute): Update API to take an additional out parameter,
9479 need_reprocess. This is used to mark attributes that need other
9480 attributes (e.g. str_offsets_base) for correct computation which may not
9481 have been read yet.
9482 (read_attribute_reprocess): New function declaration.
9483 (read_addr_index): Likewise.
9484 (read_dwo_str_index): Likewise.
9485 (read_stub_str_index): Likewise.
9486 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
9487 (lookup_addr_base): New function definition.
9488 (lookup_ranges_base): Likewise.
9489 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
9490 lookup_ranges_base.
9491 (init_cutu_and_read_dies): Update comments.
9492 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
9493 unit. This is used to inherit parent's str_offsets_base and addr_base.
9494 Update comments.
9495 (init_cutu_and_read_dies_simple): Reflect API changes.
9496 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
9497 (create_cus_hash_table): Change API to take parent compile unit.
9498 Reflect API changes.
9499 (open_and_init_dwo_file): Reflect API changes.
9500 (dwarf2_get_pc_bounds): Update comments.
9501 (dwarf2_record_block_ranges): Likewise.
9502 (read_full_die_1): Change implementation to reprocess attributes that
9503 need str_offsets_base and addr_base.
9504 (partial_die_info::read): Likewise.
9505 (read_attribute_reprocess): New function definition.
9506 (read_attribute_value): Change API to take an additional out parameter,
9507 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
9508 when a non-dwo compile unit has index based attributes.
9509 (read_attribute): Reflect API changes.
9510 (read_addr_index_1): Reflect API changes. Update comments.
9511 (dwarf2_read_addr_index_data): Reflect API changes.
9512 (dwarf2_read_addr_index): Likewise.
9513 (read_str_index): Change API and implementation. This becomes a helper
9514 to be used by the new string index related methods. Update error
9515 message and comments.
9516 (read_dwo_str_index): New function definition.
9517 (read_stub_str_index): Likewise.
9518 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
9519 * symfile.h (dwarf2_debug_sections): Likewise.
9520 * xcoffread.c (dwarf2_debug_sections): Likewise.
9521
0cac9354
SM
95222020-01-13 Simon Marchi <simon.marchi@efficios.com>
9523
9524 * gdbcore.h (struct core_fns) <core_read_registers>: Change
9525 core_reg_sect type to gdb_byte *.
9526 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
9527 * cris-tdep.c (fetch_core_registers): Likewise.
9528 * corelow.c (core_target::get_core_register_section): Change
9529 type of `contents` to gdb::byte_vector.
9530
9a6d629c
AB
95312020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
9532
9533 * tui/tui-wingeneral.c (box_win): Position the title in the center
9534 of the border.
9535
d8b2f9e3
SM
95362020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
9537
9538 * corelow.c (core_target::get_core_register_section): Use
9539 std::vector instead of alloca.
9540
bb564c58
SM
95412020-01-13 Simon Marchi <simon.marchi@efficios.com>
9542
9543 * warning.m4: Add -Wmissing-declarations to build_warnings.
9544 * configure: Re-generate.
9545
6b366111
SM
95462020-01-13 Simon Marchi <simon.marchi@efficios.com>
9547
9548 * python/python.c (init__gdb_module): Add declaration.
9549
6c265988
SM
95502020-01-13 Simon Marchi <simon.marchi@efficios.com>
9551
9552 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
9553 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
9554 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
9555 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
9556 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
9557 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
9558 * ada-exp.y (_initialize_ada_exp): Add declaration.
9559 * ada-lang.c (_initialize_ada_language): Add declaration.
9560 * ada-tasks.c (_initialize_tasks): Add declaration.
9561 * agent.c (_initialize_agent): Add declaration.
9562 * aix-thread.c (_initialize_aix_thread): Add declaration.
9563 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
9564 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
9565 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
9566 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
9567 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
9568 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
9569 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
9570 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
9571 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
9572 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
9573 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
9574 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
9575 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
9576 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
9577 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
9578 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
9579 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
9580 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
9581 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
9582 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
9583 * annotate.c (_initialize_annotate): Add declaration.
9584 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
9585 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
9586 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
9587 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
9588 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
9589 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
9590 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
9591 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
9592 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
9593 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
9594 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
9595 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
9596 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
9597 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
9598 * auto-load.c (_initialize_auto_load): Add declaration.
9599 * auxv.c (_initialize_auxv): Add declaration.
9600 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
9601 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
9602 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
9603 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
9604 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
9605 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
9606 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
9607 * breakpoint.c (_initialize_breakpoint): Add declaration.
9608 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
9609 * btrace.c (_initialize_btrace): Add declaration.
9610 * charset.c (_initialize_charset): Add declaration.
9611 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
9612 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
9613 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
9614 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
9615 * cli/cli-script.c (_initialize_cli_script): Add declaration.
9616 * cli/cli-style.c (_initialize_cli_style): Add declaration.
9617 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
9618 * coffread.c (_initialize_coffread): Add declaration.
9619 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
9620 * compile/compile.c (_initialize_compile): Add declaration.
9621 * complaints.c (_initialize_complaints): Add declaration.
9622 * completer.c (_initialize_completer): Add declaration.
9623 * copying.c (_initialize_copying): Add declaration.
9624 * corefile.c (_initialize_core): Add declaration.
9625 * corelow.c (_initialize_corelow): Add declaration.
9626 * cp-abi.c (_initialize_cp_abi): Add declaration.
9627 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
9628 * cp-support.c (_initialize_cp_support): Add declaration.
9629 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
9630 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
9631 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
9632 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
9633 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
9634 * ctfread.c (_initialize_ctfread): Add declaration.
9635 * d-lang.c (_initialize_d_language): Add declaration.
9636 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
9637 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
9638 * dbxread.c (_initialize_dbxread): Add declaration.
9639 * dcache.c (_initialize_dcache): Add declaration.
9640 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
9641 * disasm.c (_initialize_disasm): Add declaration.
9642 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
9643 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
9644 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
9645 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
9646 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
9647 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
9648 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
9649 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
9650 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
9651 * elfread.c (_initialize_elfread): Add declaration.
9652 * exec.c (_initialize_exec): Add declaration.
9653 * extension.c (_initialize_extension): Add declaration.
9654 * f-lang.c (_initialize_f_language): Add declaration.
9655 * f-valprint.c (_initialize_f_valprint): Add declaration.
9656 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
9657 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
9658 * filesystem.c (_initialize_filesystem): Add declaration.
9659 * findcmd.c (_initialize_mem_search): Add declaration.
9660 * findvar.c (_initialize_findvar): Add declaration.
9661 * fork-child.c (_initialize_fork_child): Add declaration.
9662 * frame-base.c (_initialize_frame_base): Add declaration.
9663 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
9664 * frame.c (_initialize_frame): Add declaration.
9665 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
9666 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
9667 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
9668 * gcore.c (_initialize_gcore): Add declaration.
9669 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
9670 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
9671 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
9672 * gdbarch.c (_initialize_gdbarch): Add declaration.
9673 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
9674 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
9675 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
9676 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
9677 * go-lang.c (_initialize_go_language): Add declaration.
9678 * go32-nat.c (_initialize_go32_nat): Add declaration.
9679 * guile/guile.c (_initialize_guile): Add declaration.
9680 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
9681 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
9682 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
9683 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
9684 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
9685 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
9686 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
9687 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
9688 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
9689 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
9690 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
9691 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
9692 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
9693 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
9694 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
9695 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
9696 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
9697 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
9698 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
9699 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
9700 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
9701 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
9702 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
9703 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
9704 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
9705 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
9706 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
9707 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
9708 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
9709 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
9710 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
9711 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
9712 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
9713 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
9714 * infcall.c (_initialize_infcall): Add declaration.
9715 * infcmd.c (_initialize_infcmd): Add declaration.
9716 * inflow.c (_initialize_inflow): Add declaration.
9717 * infrun.c (_initialize_infrun): Add declaration.
9718 * interps.c (_initialize_interpreter): Add declaration.
9719 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
9720 * jit.c (_initialize_jit): Add declaration.
9721 * language.c (_initialize_language): Add declaration.
9722 * linux-fork.c (_initialize_linux_fork): Add declaration.
9723 * linux-nat.c (_initialize_linux_nat): Add declaration.
9724 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
9725 * linux-thread-db.c (_initialize_thread_db): Add declaration.
9726 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
9727 * m2-lang.c (_initialize_m2_language): Add declaration.
9728 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
9729 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
9730 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
9731 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
9732 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
9733 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
9734 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
9735 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
9736 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
9737 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
9738 * machoread.c (_initialize_machoread): Add declaration.
9739 * macrocmd.c (_initialize_macrocmd): Add declaration.
9740 * macroscope.c (_initialize_macroscope): Add declaration.
9741 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
9742 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
9743 * maint.c (_initialize_maint_cmds): Add declaration.
9744 * mdebugread.c (_initialize_mdebugread): Add declaration.
9745 * memattr.c (_initialize_mem): Add declaration.
9746 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
9747 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
9748 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
9749 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
9750 * mi/mi-main.c (_initialize_mi_main): Add declaration.
9751 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
9752 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
9753 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
9754 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
9755 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
9756 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
9757 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
9758 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
9759 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
9760 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
9761 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
9762 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
9763 * mipsread.c (_initialize_mipsread): Add declaration.
9764 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
9765 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
9766 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
9767 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
9768 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
9769 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
9770 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
9771 * nto-procfs.c (_initialize_procfs): Add declaration.
9772 * objc-lang.c (_initialize_objc_language): Add declaration.
9773 * observable.c (_initialize_observer): Add declaration.
9774 * opencl-lang.c (_initialize_opencl_language): Add declaration.
9775 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
9776 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
9777 * osabi.c (_initialize_gdb_osabi): Add declaration.
9778 * osdata.c (_initialize_osdata): Add declaration.
9779 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
9780 * parse.c (_initialize_parse): Add declaration.
9781 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
9782 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
9783 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
9784 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
9785 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
9786 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
9787 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
9788 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
9789 * printcmd.c (_initialize_printcmd): Add declaration.
9790 * probe.c (_initialize_probe): Add declaration.
9791 * proc-api.c (_initialize_proc_api): Add declaration.
9792 * proc-events.c (_initialize_proc_events): Add declaration.
9793 * proc-service.c (_initialize_proc_service): Add declaration.
9794 * procfs.c (_initialize_procfs): Add declaration.
9795 * producer.c (_initialize_producer): Add declaration.
9796 * psymtab.c (_initialize_psymtab): Add declaration.
9797 * python/python.c (_initialize_python): Add declaration.
9798 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
9799 * record-btrace.c (_initialize_record_btrace): Add declaration.
9800 * record-full.c (_initialize_record_full): Add declaration.
9801 * record.c (_initialize_record): Add declaration.
9802 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
9803 * regcache.c (_initialize_regcache): Add declaration.
9804 * reggroups.c (_initialize_reggroup): Add declaration.
9805 * remote-notif.c (_initialize_notif): Add declaration.
9806 * remote-sim.c (_initialize_remote_sim): Add declaration.
9807 * remote.c (_initialize_remote): Add declaration.
9808 * reverse.c (_initialize_reverse): Add declaration.
9809 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
9810 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
9811 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
9812 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
9813 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
9814 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
9815 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
9816 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
9817 Add declaration.
9818 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
9819 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
9820 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
9821 * rust-exp.y (_initialize_rust_exp): Add declaration.
9822 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
9823 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
9824 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
9825 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
9826 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
9827 * score-tdep.c (_initialize_score_tdep): Add declaration.
9828 * ser-go32.c (_initialize_ser_dos): Add declaration.
9829 * ser-mingw.c (_initialize_ser_windows): Add declaration.
9830 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
9831 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
9832 * ser-uds.c (_initialize_ser_socket): Add declaration.
9833 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
9834 * serial.c (_initialize_serial): Add declaration.
9835 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
9836 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
9837 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
9838 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
9839 * skip.c (_initialize_step_skip): Add declaration.
9840 * sol-thread.c (_initialize_sol_thread): Add declaration.
9841 * solib-aix.c (_initialize_solib_aix): Add declaration.
9842 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
9843 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
9844 * solib-frv.c (_initialize_frv_solib): Add declaration.
9845 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
9846 * solib-target.c (_initialize_solib_target): Add declaration.
9847 * solib.c (_initialize_solib): Add declaration.
9848 * source-cache.c (_initialize_source_cache): Add declaration.
9849 * source.c (_initialize_source): Add declaration.
9850 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
9851 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
9852 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
9853 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
9854 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
9855 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
9856 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
9857 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
9858 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
9859 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
9860 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
9861 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
9862 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
9863 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
9864 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
9865 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
9866 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
9867 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
9868 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
9869 * stabsread.c (_initialize_stabsread): Add declaration.
9870 * stack.c (_initialize_stack): Add declaration.
9871 * stap-probe.c (_initialize_stap_probe): Add declaration.
9872 * std-regs.c (_initialize_frame_reg): Add declaration.
9873 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
9874 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
9875 * symfile.c (_initialize_symfile): Add declaration.
9876 * symmisc.c (_initialize_symmisc): Add declaration.
9877 * symtab.c (_initialize_symtab): Add declaration.
9878 * target.c (_initialize_target): Add declaration.
9879 * target-connection.c (_initialize_target_connection): Add
9880 declaration.
9881 * target-dcache.c (_initialize_target_dcache): Add declaration.
9882 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
9883 * thread.c (_initialize_thread): Add declaration.
9884 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
9885 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
9886 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
9887 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
9888 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
9889 * tracectf.c (_initialize_ctf): Add declaration.
9890 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
9891 * tracefile.c (_initialize_tracefile): Add declaration.
9892 * tracepoint.c (_initialize_tracepoint): Add declaration.
9893 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
9894 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
9895 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
9896 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
9897 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
9898 * tui/tui-win.c (_initialize_tui_win): Add declaration.
9899 * tui/tui.c (_initialize_tui): Add declaration.
9900 * typeprint.c (_initialize_typeprint): Add declaration.
9901 * ui-style.c (_initialize_ui_style): Add declaration.
9902 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
9903 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
9904 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
9905 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
9906 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
9907 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
9908 * unittests/filtered_iterator-selftests.c
9909 (_initialize_filtered_iterator_selftests): Add declaration.
9910 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
9911 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
9912 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
9913 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
9914 * unittests/main-thread-selftests.c
9915 (_initialize_main_thread_selftests): Add declaration.
9916 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
9917 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
9918 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
9919 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
9920 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
9921 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
9922 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
9923 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
9924 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
9925 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
9926 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
9927 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
9928 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
9929 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
9930 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
9931 declaration.
9932 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
9933 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
9934 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
9935 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
9936 * user-regs.c (_initialize_user_regs): Add declaration.
9937 * utils.c (_initialize_utils): Add declaration.
9938 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
9939 * valops.c (_initialize_valops): Add declaration.
9940 * valprint.c (_initialize_valprint): Add declaration.
9941 * value.c (_initialize_values): Add declaration.
9942 * varobj.c (_initialize_varobj): Add declaration.
9943 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
9944 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
9945 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
9946 * windows-nat.c (_initialize_windows_nat): Add declaration.
9947 (_initialize_check_for_gdb_ini): Add declaration.
9948 (_initialize_loadable): Add declaration.
9949 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
9950 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
9951 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
9952 * xcoffread.c (_initialize_xcoffread): Add declaration.
9953 * xml-support.c (_initialize_xml_support): Add declaration.
9954 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
9955 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
9956 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
9957 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
9958
e2de1eec
SM
99592020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
9960
9961 * regformats/regdat.sh: Generate declaration for init function.
9962
e0037b4c
SM
99632020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
9964
9965 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
9966 up.
9967 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
9968 close_one_inferior>: New methods.
9969 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
9970 pass down target to find_inferior_pid.
9971 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
9972 Pass down target to find_inferior_ptid.
9973 (gdbsim_target::create_inferior): Pass down target to
9974 add_thread_silent.
9975 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
9976 target down to find_inferior_ptid and switch_to_thread.
9977 (gdbsim_target::close): Update to call close_one_inferior.
9978 (struct resume_data): Remove.
9979 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
9980 directly, rather than through a void pointer.
9981 (gdbsim_target::resume): Update to call resume_one_inferior.
9982
58920b5b
SM
99832020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
9984
9985 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
9986
4ec89149
PA
99872020-01-12 Pedro Alves <palves@redhat.com>
9988
9989 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
9990 directly for the current inferior instead of
9991 discard_all_inferiors.
9992 (discard_all_inferiors): Delete.
9993
7c392d1d
TT
99942020-01-11 Tom Tromey <tom@tromey.com>
9995
9996 * tui/tui-wingeneral.c (box_win): Check cli_styling.
9997 * tui/tui-winsource.c (tui_source_window_base::refill): Use
9998 deprecated_safe_get_selected_frame.
9999
d9ebdab7
TBA
100002020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10001
10002 * inferior.c (print_inferior): Switch inferior before printing it.
10003
f3c469b9
PA
100042020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
10005 Pedro Alves <palves@redhat.com>
10006
10007 * progspace-and-thread.c (switch_to_program_space_and_thread):
10008 Assert there's an inferior for PSPACE. Use
10009 switch_to_inferior_no_thread to switch the inferior too.
10010 * progspace.c (program_space::~program_space): Call
10011 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
10012 (program_space::free_all_objfiles): Don't call clear_symtab_users
10013 here.
10014 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
10015
65c574f6
PA
100162020-01-10 Pedro Alves <palves@redhat.com>
10017
10018 * NEWS: Mention multi-target debugging, "info connections", and
10019 "add-inferior -no-connection".
10020
2f4fcf00
PA
100212020-01-10 Pedro Alves <palves@redhat.com>
10022
10023 * infrun.c: Include "target-connection.h".
10024 (check_multi_target_resumption): New.
10025 (proceed): Call it.
10026 * target-connection.c (make_target_connection_string): Make
10027 extern.
10028 * target-connection.h (make_target_connection_string): Declare.
10029
121b3efd
PA
100302020-01-10 Pedro Alves <palves@redhat.com>
10031
10032 * Makefile.in (COMMON_SFILES): Add target-connection.c.
10033 * inferior.c (uiout_field_connection): New function.
10034 (print_inferior): Add new "connection-id" column.
10035 (add_inferior_command): Show connection number/string of added
10036 inferior.
10037 * process-stratum-target.h
10038 (process_stratum_target::connection_string): New virtual method.
10039 (process_stratum_target::connection_number): New field.
10040 * remote.c (remote_target::connection_string): New override.
10041 * target-connection.c: New file.
10042 * target-connection.h: New file.
10043 * target.c (decref_target): Remove process_stratum targets from
10044 the connection list.
10045 (target_stack::push): Add process_stratum targets to the
10046 connection list.
10047
4f837581
PA
100482020-01-10 Pedro Alves <palves@redhat.com>
10049
10050 Revert:
10051 2016-04-12 Pedro Alves <palves@redhat.com>
10052 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
10053 Remove references to name.
10054 * serial.h (struct serial) <name>: Delete.
10055
f4ec508e
PA
100562020-01-10 Pedro Alves <palves@redhat.com>
10057
10058 * gdbarch-selftests.c (register_to_value_test): Remove "target
10059 already pushed" check.
10060
5b6d1e4f
PA
100612020-01-10 Pedro Alves <palves@redhat.com>
10062 John Baldwin <jhb@FreeBSD.org>
10063
10064 * aarch64-linux-nat.c
10065 (aarch64_linux_nat_target::thread_architecture): Adjust.
10066 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
10067 (task_command_1): Likewise.
10068 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
10069 (aix_thread_target::wait, aix_thread_target::fetch_registers)
10070 (aix_thread_target::store_registers)
10071 (aix_thread_target::thread_alive): Adjust.
10072 * amd64-fbsd-tdep.c: Include "inferior.h".
10073 (amd64fbsd_get_thread_local_address): Pass down target.
10074 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
10075 thread's gdbarch instead of target_gdbarch.
10076 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
10077 get_last_target_status.
10078 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
10079 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
10080 inferiors.
10081 (update_inserted_breakpoint_locations): Skip if inferiors with no
10082 execution.
10083 (update_global_location_list): When handling moribund locations,
10084 find representative inferior for location's pspace, and use thread
10085 count of its process_stratum target.
10086 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
10087 * bsd-uthread.c (bsd_uthread_target::wait): Use
10088 as_process_stratum_target and adjust thread_change_ptid and
10089 add_thread calls.
10090 (bsd_uthread_target::update_thread_list): Use
10091 as_process_stratum_target and adjust find_thread_ptid,
10092 thread_change_ptid and add_thread calls.
10093 * btrace.c (maint_btrace_packet_history_cmd): Adjust
10094 find_thread_ptid call.
10095 * corelow.c (add_to_thread_list): Adjust add_thread call.
10096 (core_target_open): Adjust add_thread_silent and thread_count
10097 calls.
10098 (core_target::pid_to_str): Adjust find_inferior_ptid call.
10099 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
10100 * event-top.c (async_disconnect): Pop targets from all inferiors.
10101 * exec.c (add_target_sections): Push exec target on all inferiors
10102 sharing the program space.
10103 (remove_target_sections): Remove the exec target from all
10104 inferiors sharing the program space.
10105 (exec_on_vfork): New.
10106 * exec.h (exec_on_vfork): Declare.
10107 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
10108 Pass it down.
10109 (fbsd_nat_target::update_thread_list): Adjust.
10110 (fbsd_nat_target::resume): Adjust.
10111 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
10112 down.
10113 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
10114 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
10115 get_thread_arch_regcache call.
10116 * fork-child.c (gdb_startup_inferior): Pass target down to
10117 startup_inferior and set_executing.
10118 * gdbthread.h (struct process_stratum_target): Forward declare.
10119 (add_thread, add_thread_silent, add_thread_with_info)
10120 (in_thread_list): Add process_stratum_target parameter.
10121 (find_thread_ptid(inferior*, ptid_t)): New overload.
10122 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
10123 parameter.
10124 (all_threads()): Delete overload.
10125 (all_threads, all_non_exited_threads): Add process_stratum_target
10126 parameter.
10127 (all_threads_safe): Use brace initialization.
10128 (thread_count): Add process_stratum_target parameter.
10129 (set_resumed, set_running, set_stop_requested, set_executing)
10130 (threads_are_executing, finish_thread_state): Add
10131 process_stratum_target parameter.
10132 (switch_to_thread): Use is_current_thread.
10133 * i386-fbsd-tdep.c: Include "inferior.h".
10134 (i386fbsd_get_thread_local_address): Pass down target.
10135 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
10136 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
10137 have_inferiors check.
10138 * inf-ptrace.c (inf_ptrace_target::create_inferior)
10139 (inf_ptrace_target::attach): Adjust.
10140 * infcall.c (run_inferior_call): Adjust.
10141 * infcmd.c (run_command_1): Pass target to
10142 scoped_finish_thread_state.
10143 (proceed_thread_callback): Skip inferiors with no execution.
10144 (continue_command): Rename 'all_threads' local to avoid hiding
10145 'all_threads' function. Adjust get_last_target_status call.
10146 (prepare_one_step): Adjust set_running call.
10147 (signal_command): Use user_visible_resume_target. Compare thread
10148 pointers instead of inferior_ptid.
10149 (info_program_command): Adjust to pass down target.
10150 (attach_command): Mark target's 'thread_executing' flag.
10151 (stop_current_target_threads_ns): New, factored out from ...
10152 (interrupt_target_1): ... this. Switch inferior before making
10153 target calls.
10154 * inferior-iter.h
10155 (struct all_inferiors_iterator, struct all_inferiors_range)
10156 (struct all_inferiors_safe_range)
10157 (struct all_non_exited_inferiors_range): Filter on
10158 process_stratum_target too. Remove explicit.
10159 * inferior.c (inferior::inferior): Push dummy target on target
10160 stack.
10161 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
10162 Add process_stratum_target parameter, and pass it down.
10163 (have_live_inferiors): Adjust.
10164 (switch_to_inferior_and_push_target): New.
10165 (add_inferior_command, clone_inferior_command): Handle
10166 "-no-connection" parameter. Use
10167 switch_to_inferior_and_push_target.
10168 (_initialize_inferior): Mention "-no-connection" option in
10169 the help of "add-inferior" and "clone-inferior" commands.
10170 * inferior.h: Include "process-stratum-target.h".
10171 (interrupt_target_1): Use bool.
10172 (struct inferior) <push_target, unpush_target, target_is_pushed,
10173 find_target_beneath, top_target, process_target, target_at,
10174 m_stack>: New.
10175 (discard_all_inferiors): Delete.
10176 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
10177 (all_inferiors, all_non_exited_inferiors): Add
10178 process_stratum_target parameter.
10179 * infrun.c: Include "gdb_select.h" and <unordered_map>.
10180 (target_last_proc_target): New global.
10181 (follow_fork_inferior): Push target on new inferior. Pass target
10182 to add_thread_silent. Call exec_on_vfork. Handle target's
10183 reference count.
10184 (follow_fork): Adjust get_last_target_status call. Also consider
10185 target.
10186 (follow_exec): Push target on new inferior.
10187 (struct execution_control_state) <target>: New field.
10188 (user_visible_resume_target): New.
10189 (do_target_resume): Call target_async.
10190 (resume_1): Set target's threads_executing flag. Consider resume
10191 target.
10192 (commit_resume_all_targets): New.
10193 (proceed): Also consider resume target. Skip threads of inferiors
10194 with no execution. Commit resumtion in all targets.
10195 (start_remote): Pass current inferior to wait_for_inferior.
10196 (infrun_thread_stop_requested): Consider target as well. Pass
10197 thread_info pointer to clear_inline_frame_state instead of ptid.
10198 (infrun_thread_thread_exit): Consider target as well.
10199 (random_pending_event_thread): New inferior parameter. Use it.
10200 (do_target_wait): Rename to ...
10201 (do_target_wait_1): ... this. Add inferior parameter, and pass it
10202 down.
10203 (threads_are_resumed_pending_p, do_target_wait): New.
10204 (prepare_for_detach): Adjust calls.
10205 (wait_for_inferior): New inferior parameter. Handle it. Use
10206 do_target_wait_1 instead of do_target_wait.
10207 (fetch_inferior_event): Adjust. Switch to representative
10208 inferior. Pass target down.
10209 (set_last_target_status): Add process_stratum_target parameter.
10210 Save target in global.
10211 (get_last_target_status): Add process_stratum_target parameter and
10212 handle it.
10213 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
10214 (context_switch): Check inferior_ptid == null_ptid before calling
10215 inferior_thread().
10216 (get_inferior_stop_soon): Pass down target.
10217 (wait_one): Rename to ...
10218 (poll_one_curr_target): ... this.
10219 (struct wait_one_event): New.
10220 (wait_one): New.
10221 (stop_all_threads): Adjust.
10222 (handle_no_resumed, handle_inferior_event): Adjust to consider the
10223 event's target.
10224 (switch_back_to_stepped_thread): Also consider target.
10225 (print_stop_event): Update.
10226 (normal_stop): Update. Also consider the resume target.
10227 * infrun.h (wait_for_inferior): Remove declaration.
10228 (user_visible_resume_target): New declaration.
10229 (get_last_target_status, set_last_target_status): New
10230 process_stratum_target parameter.
10231 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
10232 process_stratum_target parameter, and use it.
10233 (clear_inline_frame_state (thread_info*)): New.
10234 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
10235 process_stratum_target parameter.
10236 (clear_inline_frame_state (thread_info*)): Declare.
10237 * linux-fork.c (delete_checkpoint_command): Pass target down to
10238 find_thread_ptid.
10239 (checkpoint_command): Adjust.
10240 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
10241 instead of just tweaking inferior_ptid.
10242 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
10243 (exit_lwp): Pass target down to find_thread_ptid.
10244 (attach_proc_task_lwp_callback): Pass target down to
10245 add_thread/set_running/set_executing.
10246 (linux_nat_target::attach): Pass target down to
10247 thread_change_ptid.
10248 (get_detach_signal): Pass target down to find_thread_ptid.
10249 Consider last target status's target.
10250 (linux_resume_one_lwp_throw, resume_lwp)
10251 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
10252 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
10253 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
10254 (linux_nat_target::async_wait_fd): New.
10255 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
10256 target down.
10257 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
10258 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
10259 * linux-thread-db.c (struct thread_db_info::process_target): New
10260 field.
10261 (add_thread_db_info): Save target.
10262 (get_thread_db_info): New process_stratum_target parameter. Also
10263 match target.
10264 (delete_thread_db_info): New process_stratum_target parameter.
10265 Also match target.
10266 (thread_from_lwp): Adjust to pass down target.
10267 (thread_db_notice_clone): Pass down target.
10268 (check_thread_db_callback): Pass down target.
10269 (try_thread_db_load_1): Always push the thread_db target.
10270 (try_thread_db_load, record_thread): Pass target down.
10271 (thread_db_target::detach): Pass target down. Always unpush the
10272 thread_db target.
10273 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
10274 target down. Always unpush the thread_db target.
10275 (find_new_threads_callback, thread_db_find_new_threads_2)
10276 (thread_db_target::update_thread_list): Pass target down.
10277 (thread_db_target::pid_to_str): Pass current inferior down.
10278 (thread_db_target::get_thread_local_address): Pass target down.
10279 (thread_db_target::resume, maintenance_check_libthread_db): Pass
10280 target down.
10281 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
10282 * procfs.c (procfs_target::procfs_init_inferior): Declare.
10283 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
10284 (procfs_init_inferior): Rename to ...
10285 (procfs_target::procfs_init_inferior): ... this and adjust.
10286 (procfs_target::create_inferior, procfs_notice_thread)
10287 (procfs_do_thread_registers): Adjust.
10288 * ppc-fbsd-tdep.c: Include "inferior.h".
10289 (ppcfbsd_get_thread_local_address): Pass down target.
10290 * proc-service.c (ps_xfer_memory): Switch current inferior and
10291 program space as well.
10292 (get_ps_regcache): Pass target down.
10293 * process-stratum-target.c
10294 (process_stratum_target::thread_address_space)
10295 (process_stratum_target::thread_architecture): Pass target down.
10296 * process-stratum-target.h
10297 (process_stratum_target::threads_executing): New field.
10298 (as_process_stratum_target): New.
10299 * ravenscar-thread.c
10300 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
10301 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
10302 down.
10303 * record-btrace.c (record_btrace_target::info_record): Adjust.
10304 (record_btrace_target::record_method)
10305 (record_btrace_target::record_is_replaying)
10306 (record_btrace_target::fetch_registers)
10307 (get_thread_current_frame_id, record_btrace_target::resume)
10308 (record_btrace_target::wait, record_btrace_target::stop): Pass
10309 target down.
10310 * record-full.c (record_full_wait_1): Switch to event thread.
10311 Pass target down.
10312 * regcache.c (regcache::regcache)
10313 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
10314 process_stratum_target parameter and handle it.
10315 (current_thread_target): New global.
10316 (get_thread_regcache): Add process_stratum_target parameter and
10317 handle it. Switch inferior before calling target method.
10318 (get_thread_regcache): Pass target down.
10319 (get_thread_regcache_for_ptid): Pass target down.
10320 (registers_changed_ptid): Add process_stratum_target parameter and
10321 handle it.
10322 (registers_changed_thread, registers_changed): Pass target down.
10323 (test_get_thread_arch_aspace_regcache): New.
10324 (current_regcache_test): Define a couple local test_target_ops
10325 instances and use them for testing.
10326 (readwrite_regcache): Pass process_stratum_target parameter.
10327 (cooked_read_test, cooked_write_test): Pass mock_target down.
10328 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
10329 (get_thread_arch_aspace_regcache): Add process_stratum_target
10330 parameter.
10331 (regcache::target): New method.
10332 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
10333 (regcache::registers_changed_ptid): Add process_stratum_target
10334 parameter.
10335 (regcache::m_target): New field.
10336 (registers_changed_ptid): Add process_stratum_target parameter.
10337 * remote.c (remote_state::supports_vCont_probed): New field.
10338 (remote_target::async_wait_fd): New method.
10339 (remote_unpush_and_throw): Add remote_target parameter.
10340 (get_current_remote_target): Adjust.
10341 (remote_target::remote_add_inferior): Push target.
10342 (remote_target::remote_add_thread)
10343 (remote_target::remote_notice_new_inferior)
10344 (get_remote_thread_info): Pass target down.
10345 (remote_target::update_thread_list): Skip threads of inferiors
10346 bound to other targets. (remote_target::close): Don't discard
10347 inferiors. (remote_target::add_current_inferior_and_thread)
10348 (remote_target::process_initial_stop_replies)
10349 (remote_target::start_remote)
10350 (remote_target::remote_serial_quit_handler): Pass down target.
10351 (remote_target::remote_unpush_target): New remote_target
10352 parameter. Unpush the target from all inferiors.
10353 (remote_target::remote_unpush_and_throw): New remote_target
10354 parameter. Pass it down.
10355 (remote_target::open_1): Check whether the current inferior has
10356 execution instead of checking whether any inferior is live. Pass
10357 target down.
10358 (remote_target::remote_detach_1): Pass down target. Use
10359 remote_unpush_target.
10360 (extended_remote_target::attach): Pass down target.
10361 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
10362 (remote_target::append_resumption): Pass down target.
10363 (remote_target::append_pending_thread_resumptions)
10364 (remote_target::remote_resume_with_hc, remote_target::resume)
10365 (remote_target::commit_resume): Pass down target.
10366 (remote_target::remote_stop_ns): Check supports_vCont_probed.
10367 (remote_target::interrupt_query)
10368 (remote_target::remove_new_fork_children)
10369 (remote_target::check_pending_events_prevent_wildcard_vcont)
10370 (remote_target::remote_parse_stop_reply)
10371 (remote_target::process_stop_reply): Pass down target.
10372 (first_remote_resumed_thread): New remote_target parameter. Pass
10373 it down.
10374 (remote_target::wait_as): Pass down target.
10375 (unpush_and_perror): New remote_target parameter. Pass it down.
10376 (remote_target::readchar, remote_target::remote_serial_write)
10377 (remote_target::getpkt_or_notif_sane_1)
10378 (remote_target::kill_new_fork_children, remote_target::kill): Pass
10379 down target.
10380 (remote_target::mourn_inferior): Pass down target. Use
10381 remote_unpush_target.
10382 (remote_target::core_of_thread)
10383 (remote_target::remote_btrace_maybe_reopen): Pass down target.
10384 (remote_target::pid_to_exec_file)
10385 (remote_target::thread_handle_to_thread_info): Pass down target.
10386 (remote_target::async_wait_fd): New.
10387 * riscv-fbsd-tdep.c: Include "inferior.h".
10388 (riscv_fbsd_get_thread_local_address): Pass down target.
10389 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
10390 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
10391 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
10392 Adjust.
10393 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
10394 * solib-svr4.c (enable_break): Pass down target.
10395 * spu-multiarch.c (parse_spufs_run): Pass down target.
10396 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
10397 * target-delegates.c: Regenerate.
10398 * target.c (g_target_stack): Delete.
10399 (current_top_target): Return the current inferior's top target.
10400 (target_has_execution_1): Refer to the passed-in inferior's top
10401 target.
10402 (target_supports_terminal_ours): Check whether the initial
10403 inferior was already created.
10404 (decref_target): New.
10405 (target_stack::push): Incref/decref the target.
10406 (push_target, push_target, unpush_target): Adjust.
10407 (target_stack::unpush): Defref target.
10408 (target_is_pushed): Return bool. Adjust to refer to the current
10409 inferior's target stack.
10410 (dispose_inferior): Delete, and inline parts ...
10411 (target_preopen): ... here. Only dispose of the current inferior.
10412 (target_detach): Hold strong target reference while detaching.
10413 Pass target down.
10414 (target_thread_name): Add assertion.
10415 (target_resume): Pass down target.
10416 (target_ops::beneath, find_target_at): Adjust to refer to the
10417 current inferior's target stack.
10418 (get_dummy_target): New.
10419 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
10420 has a thread running.
10421 (initialize_targets): Rename to ...
10422 (_initialize_target): ... this.
10423 * target.h: Include "gdbsupport/refcounted-object.h".
10424 (struct target_ops): Inherit refcounted_object.
10425 (target_ops::shortname, target_ops::longname): Make const.
10426 (target_ops::async_wait_fd): New method.
10427 (decref_target): Declare.
10428 (struct target_ops_ref_policy): New.
10429 (target_ops_ref): New typedef.
10430 (get_dummy_target): Declare function.
10431 (target_is_pushed): Return bool.
10432 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
10433 (all_matching_threads_iterator::all_matching_threads_iterator):
10434 Handle filter target.
10435 * thread-iter.h (struct all_matching_threads_iterator, struct
10436 all_matching_threads_range, class all_non_exited_threads_range):
10437 Filter by target too. Remove explicit.
10438 * thread.c (threads_executing): Delete.
10439 (inferior_thread): Pass down current inferior.
10440 (clear_thread_inferior_resources): Pass down thread pointer
10441 instead of ptid_t.
10442 (add_thread_silent, add_thread_with_info, add_thread): Add
10443 process_stratum_target parameter. Use it for thread and inferior
10444 searches.
10445 (is_current_thread): New.
10446 (thread_info::deletable): Use it.
10447 (find_thread_ptid, thread_count, in_thread_list)
10448 (thread_change_ptid, set_resumed, set_running): New
10449 process_stratum_target parameter. Pass it down.
10450 (set_executing): New process_stratum_target parameter. Pass it
10451 down. Adjust reference to 'threads_executing'.
10452 (threads_are_executing): New process_stratum_target parameter.
10453 Adjust reference to 'threads_executing'.
10454 (set_stop_requested, finish_thread_state): New
10455 process_stratum_target parameter. Pass it down.
10456 (switch_to_thread): Also match inferior.
10457 (switch_to_thread): New process_stratum_target parameter. Pass it
10458 down.
10459 (update_threads_executing): Reimplement.
10460 * top.c (quit_force): Pop targets from all inferior.
10461 (gdb_init): Don't call initialize_targets.
10462 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
10463 Declare.
10464 (windows_add_thread, windows_delete_thread): Adjust.
10465 (get_windows_debug_event): Rename to ...
10466 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
10467 * tracefile-tfile.c (tfile_target_open): Pass down target.
10468 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
10469 Forward declare.
10470 (switch_to_thread): Add process_stratum_target parameter.
10471 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
10472 parameter. Use it.
10473 (mi_on_resume): Pass target down.
10474 * nat/fork-inferior.c (startup_inferior): Add
10475 process_stratum_target parameter. Pass it down.
10476 * nat/fork-inferior.h (startup_inferior): Add
10477 process_stratum_target parameter.
10478 * python/py-threadevent.c (py_get_event_thread): Pass target down.
10479
75c6c844
PA
104802020-01-10 Pedro Alves <palves@redhat.com>
10481
10482 * remote.c (remote_target::start_remote): Don't set inferior_ptid
10483 directly. Instead find the first thread in the thread list and
10484 use switch_to_thread.
10485
78f2c40a
PA
104862020-01-10 Pedro Alves <palves@redhat.com>
10487
10488 * remote.c (remote_target::remote_add_inferior): Don't bind a
10489 process to the current inferior if the current inferior is already
10490 bound to a process.
10491
e7af6c70
TBA
104922020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10493 Pedro Alves <palves@redhat.com>
10494
10495 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
10496 If no process is specified, return null_ptid instead of
10497 inferior_ptid.
10498 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
10499 TARGET_WAITKIND_SIGNALLED with no pid.
10500
31ba933e
PA
105012020-01-10 Pedro Alves <palves@redhat.com>
10502
10503 * remote.c (first_remote_resumed_thread): New.
10504 (remote_target::wait_as): Use it as default event_ptid instead of
10505 inferior_ptid.
10506
735fc2ca
PA
105072020-01-10 Pedro Alves <palves@redhat.com>
10508
10509 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
10510
c17e02e1
PA
105112020-01-10 Pedro Alves <palves@redhat.com>
10512
10513 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
10514 not -1.
10515
ab1ddbcf
PA
105162020-01-10 Pedro Alves <palves@redhat.com>
10517
10518 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
10519 ptid to get_last_target_status.
10520 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
10521 ptid to get_last_target_status.
10522 * infcmd.c (continue_command): Don't pass a target_waitstatus to
10523 get_last_target_status.
10524 (info_program_command): Don't pass a target_waitstatus to
10525 get_last_target_status.
10526 * infrun.c (init_wait_for_inferior): Use
10527 nullify_last_target_wait_ptid.
10528 (get_last_target_status): Handle nullptr arguments.
10529 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
10530 (print_stop_event): Don't pass a ptid to get_last_target_status.
10531 (normal_stop): Don't pass a ptid to get_last_target_status.
10532 * infrun.h (get_last_target_status, set_last_target_status): Move
10533 comments here and update.
10534 (nullify_last_target_wait_ptid): Declare.
10535 * linux-fork.c (fork_load_infrun_state): Remove local extern
10536 declaration of nullify_last_target_wait_ptid.
10537 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
10538 to get_last_target_status.
10539
f3f8ece4
PA
105402020-01-10 Pedro Alves <palves@redhat.com>
10541
10542 * gdbthread.h (scoped_restore_current_thread)
10543 <dont_restore, restore, m_dont_restore>: Declare.
10544 * thread.c (thread_alive): Add assertion. Return bool.
10545 (switch_to_thread_if_alive): New.
10546 (prune_threads): Switch inferior/thread.
10547 (print_thread_info_1): Switch thread before calling target methods.
10548 (scoped_restore_current_thread::restore): New, factored out from
10549 ...
10550 (scoped_restore_current_thread::~scoped_restore_current_thread):
10551 ... this.
10552 (scoped_restore_current_thread::scoped_restore_current_thread):
10553 Add assertion.
10554 (thread_apply_all_command, thread_select): Use
10555 switch_to_thread_if_alive.
10556 * infrun.c (proceed, restart_threads, handle_signal_stop)
10557 (switch_back_to_stepped_thread): Switch current thread before
10558 calling target methods.
10559
db2d40f7
PA
105602020-01-10 Pedro Alves <palves@redhat.com>
10561
10562 * inferior.c (switch_to_inferior_no_thread): New function,
10563 factored out from ...
10564 (inferior_command): ... here.
10565 * inferior.h (switch_to_inferior_no_thread): Declare.
10566 * mi/mi-main.c (run_one_inferior): Use
10567 switch_to_inferior_no_thread.
10568
bd420a2d
PA
105692020-01-10 Pedro Alves <palves@redhat.com>
10570
10571 * infcmd.c (kill_command): Remove dead code.
10572
ddf5db90
PA
105732020-01-10 Pedro Alves <palves@redhat.com>
10574
10575 * remote.c (remote_target::mourn_inferior): No longer check
10576 whether the target is running.
10577
5018ce90
PA
105782020-01-10 Pedro Alves <palves@redhat.com>
10579
10580 * corelow.c (core_target::has_execution): Change parameter type to
10581 inferior pointer.
10582 * inferior.c (number_of_live_inferiors): Use
10583 inferior::has_execution instead of target_has_execution_1.
10584 * inferior.h (inferior::has_execution): New.
10585 * linux-thread-db.c (thread_db_target::update_thread_list): Use
10586 inferior::has_execution instead of target_has_execution_1.
10587 * process-stratum-target.c
10588 (process_stratum_target::has_execution): Change parameter type to
10589 inferior pointer. Check the inferior's PID instead of
10590 inferior_ptid.
10591 * process-stratum-target.h
10592 (process_stratum_target::has_execution): Change parameter type to
10593 inferior pointer.
10594 * record-full.c (record_full_core_target::has_execution): Change
10595 parameter type to inferior pointer.
10596 * target.c (target_has_execution_1): Change parameter type to
10597 inferior pointer.
10598 (target_has_execution_current): Adjust.
10599 * target.h (target_ops::has_execution): Change parameter type to
10600 inferior pointer.
10601 (target_has_execution_1): Change parameter type to inferior
10602 pointer. Change return type to bool.
10603 * tracefile.h (tracefile_target::has_execution): Change parameter
10604 type to inferior pointer.
10605
74375d18
PA
106062020-01-10 Pedro Alves <palves@redhat.com>
10607
10608 * exceptions.c (print_flush): Remove current_top_target() check.
10609
acdf84a6
PA
106102020-01-10 Pedro Alves <palves@redhat.com>
10611
10612 * remote.c (show_remote_exec_file): Show the current inferior's
10613 exec-file instead of the command variable's value.
10614
ec506636
PA
106152020-01-10 Pedro Alves <palves@redhat.com>
10616
10617 * record-full.c (record_full_resume_ptid): New global.
10618 (record_full_target::resume): Set it.
10619 (record_full_wait_1): Use record_full_resume_ptid instead of
10620 inferior_ptid.
10621
873657b9
PA
106222020-01-10 Pedro Alves <palves@redhat.com>
10623
10624 * gdbthread.h (scoped_restore_current_thread)
10625 <dont_restore, restore, m_dont_restore>: Declare.
10626 * thread.c (thread_alive): Add assertion. Return bool.
10627 (switch_to_thread_if_alive): New.
10628 (prune_threads): Switch inferior/thread.
10629 (print_thread_info_1): Switch thread before calling target methods.
10630 (scoped_restore_current_thread::restore): New, factored out from
10631 ...
10632 (scoped_restore_current_thread::~scoped_restore_current_thread):
10633 ... this.
10634 (scoped_restore_current_thread::scoped_restore_current_thread):
10635 Add assertion.
10636 (thread_apply_all_command, thread_select): Use
10637 switch_to_thread_if_alive.
10638
7f0ae84c
GB
106392020-01-10 George Barrett <bob@bob131.so>
10640
10641 * stap-probe.c (stap_modify_semaphore): Don't check for null
10642 semaphores.
10643 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
10644 for null semaphores.
10645
f5a7c406
AB
106462020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
10647
10648 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
10649 all source windows, and maintain horizontal scroll status while
10650 doing so.
10651
9ae6bf64
TT
106522020-01-09 Tom Tromey <tom@tromey.com>
10653
10654 PR tui/18932:
10655 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
10656 update_source_window, not print_source_lines.
10657
b2efe70c
AB
106582020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
10659
10660 * tui/tui.c (tui_enable): Register tui hooks after calling
10661 tui_display_main.
10662
5f23a082
CB
106632020-01-09 Christian Biesinger <cbiesinger@google.com>
10664
10665 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
10666
3061113b
SM
106672020-01-08 Simon Marchi <simon.marchi@efficios.com>
10668
10669 * thread.c (print_thread_info_1): Fix indentation.
10670
57d75002
CB
106712020-01-09 Christian Biesinger <cbiesinger@google.com>
10672
10673 * symtab.c (general_symbol_info::compute_and_set_names): Move the
10674 unique_xmalloc_ptr outside the if to always free the demangled name.
10675
6a053cb1
TT
106762020-01-08 Tom Tromey <tromey@adacore.com>
10677
10678 * xcoffread.c (enter_line_range, read_xcoff_symtab)
10679 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
10680 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
10681 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
10682 Remove.
10683 (section_offsets): New typedef.
10684 * symtab.c (fixup_section, get_msymbol_address): Update.
10685 * symmisc.c (dump_msymbols): Update.
10686 * symfile.h (relative_addr_info_to_section_offsets)
10687 (symfile_map_offsets_to_segments): Update.
10688 * symfile.c (build_section_addr_info_from_objfile)
10689 (init_objfile_sect_indices): Update.
10690 (struct place_section_arg): Change type of "offsets".
10691 (place_section): Update.
10692 (relative_addr_info_to_section_offsets): Change type of
10693 "section_offsets". Remove "num_sections" parameter.
10694 (default_symfile_offsets, syms_from_objfile_1)
10695 (set_objfile_default_section_offset): Update.
10696 (reread_symbols): No need to preserve section offsets by hand.
10697 (symfile_map_offsets_to_segments): Change type of "offsets".
10698 * stap-probe.c (relocate_address): Update.
10699 * stabsread.h (process_one_symbol): Update.
10700 * solib-target.c (struct lm_info_target) <offsets>: Change type.
10701 (solib_target_relocate_section_addresses): Update.
10702 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
10703 Update.
10704 * solib-frv.c (frv_relocate_main_executable): Update.
10705 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
10706 * solib-aix.c (solib_aix_get_section_offsets): Change return
10707 type.
10708 (solib_aix_solib_create_inferior_hook): Update.
10709 * remote.c (remote_target::get_offsets): Update.
10710 * psymtab.c (find_pc_sect_psymtab): Update.
10711 * psympriv.h (struct partial_symbol) <address, text_low,
10712 text_high>: Update.
10713 * objfiles.h (obj_section_offset): Update.
10714 (struct objfile) <section_offsets>: Change type.
10715 <num_sections>: Remove.
10716 (objfile_relocate): Update.
10717 * objfiles.c (entry_point_address_query): Update
10718 (relocate_one_symbol): Change type of "section_offsets".
10719 (objfile_relocate1, objfile_relocate1): Change type of
10720 "new_offsets".
10721 (objfile_rebase1): Update.
10722 * mipsread.c (mipscoff_symfile_read): Update.
10723 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
10724 parameter.
10725 * mdebugread.c (parse_symbol): Change type of "section_offsets".
10726 (parse_external, psymtab_to_symtab_1): Update.
10727 * machoread.c (macho_symfile_offsets): Update.
10728 * ia64-tdep.c (ia64_find_unwind_table): Update.
10729 * hppa-tdep.c (read_unwind_info): Update.
10730 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
10731 * dwarf2read.c (create_addrmap_from_index)
10732 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
10733 (process_psymtab_comp_unit_reader, add_partial_symbol)
10734 (add_partial_subprogram, process_full_comp_unit)
10735 (read_file_scope, read_func_scope, read_lexical_block_scope)
10736 (read_call_site_scope, dwarf2_rnglists_process)
10737 (dwarf2_ranges_process, dwarf2_ranges_read)
10738 (dwarf_decode_lines_1, var_decode_location, new_symbol)
10739 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
10740 Update.
10741 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
10742 Update.
10743 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
10744 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
10745 (process_one_symbol): Change type of "section_offsets".
10746 * ctfread.c (get_objfile_text_range): Update.
10747 * coffread.c (coff_symtab_read, enter_linenos)
10748 (process_coff_symbol): Update.
10749 * coff-pe-read.c (add_pe_forwarded_sym): Update.
10750 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
10751
456e800a
TT
107522020-01-08 Tom Tromey <tromey@adacore.com>
10753
10754 * dwarf2read.c (parse_macro_definition): Use std::string.
10755 (parse_macro_definition): Likewise.
10756
6dfa2fc2
TT
107572020-01-08 Tom Tromey <tromey@adacore.com>
10758
10759 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
10760 (ATTR_ALLOC_CHUNK): Remove.
10761
421d1616
TT
107622020-01-08 Tom Tromey <tromey@adacore.com>
10763
10764 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
10765
43816ebc
TT
107662020-01-08 Tom Tromey <tromey@adacore.com>
10767
10768 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
10769 (dwarf2_compute_name, open_dwo_file): Likewise.
10770 (process_enumeration_scope): Use std::vector.
10771 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
10772 (partial_die_info::fixup, dwarf2_start_subfile)
10773 (guess_full_die_structure_name, dwarf2_name): Likewise.
10774 (determine_prefix): Update.
10775 (guess_full_die_structure_name): Make return type const.
10776 (partial_die_full_name): Return unique_xmalloc_ptr.
10777 (DW_FIELD_ALLOC_CHUNK): Remove.
10778
4212d509
TT
107792020-01-07 Tom Tromey <tromey@adacore.com>
10780
10781 PR build/24937:
10782 * stap-probe.c (class stap_static_probe_ops): Add constructor.
10783
06a6207a
JT
107842020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
10785
10786 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
10787
153d79c4
AB
107882020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
10789
10790 * stack.c (print_frame_info): Move disassemble_next_line code
10791 inside source_print block.
10792
66182876
EZ
107932020-01-06 Eli Zaretskii <eliz@gnu.org>
10794
10795 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
10796 gdb/signals.h, as we are now using native signal symbols.
10797
cbfa8581
SV
107982020-01-06 Shahab Vahedi <shahab@synopsys.com>
10799
10800 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
10801 overflow by an early check of content vs threshold.
aac66a4c 10802 * tui/tui-source.c (tui_source_window::line_is_displayed):
cbfa8581
SV
10803 Likewise.
10804
3f602821
EZ
108052020-01-06 Eli Zaretskii <eliz@gnu.org>
10806
10807 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
10808
a08c904d
JT
108092020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
10810
10811 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
10812 export table if no section contains it's RVA.
10813
89a65580
EZ
108142020-01-06 Eli Zaretskii <eliz@gnu.org>
10815
10816 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
10817
8b7fcda2
HD
108182020-01-06 Hannes Domani <ssbssa@yahoo.de>
10819
10820 * source.c (print_source_lines_base): Set last_line_listed.
10821
a61b4f69
SV
108222020-01-06 Shahab Vahedi <shahab@synopsys.com>
10823
10824 * tui/tui-disasm.c: Remove trailing spaces.
10825
559e7e50
EZ
108262020-01-06 Eli Zaretskii <eliz@gnu.org>
10827 Pedro Alves <palves@redhat.com>
10828
10829 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
10830 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
10831 (windows_gdb_signal_to_target): New function, uses the above
10832 enumeration to convert GDB internal signal codes to equivalent
10833 Windows codes.
10834 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
10835 * windows-nat.c: Include "gdb_wait.h".
10836 (get_windows_debug_event): Extract the fatal exception from the
10837 exit status and convert to the equivalent Posix signal number.
10838 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
10839 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
10840 * gdbsupport/gdb_wait.c: New file, implements
10841 windows_status_to_termsig.
10842 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
10843 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
10844
f2302a34
AB
108452020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
10846
10847 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
10848 show_layout.
10849
6a5206eb
LM
108502020-01-05 Luis Machado <luis.machado@linaro.org>
10851
10852 * aarch64-linux-nat.c
10853 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
10854 and bfd_mach_aarch64.
10855
6ec1d75e
PW
108562020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10857
10858 * ui-file.c (stdio_file::can_emit_style_escape)
10859 (tee_file::can_emit_style_escape): Ensure style is used also on
10860 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
10861 to gdb_stdout.
10862 * main.c (set_gdb_data_directory): Use file style to output the
10863 warning that the given pathname is not a directory.
10864 * top.c (show_history_filename, gdb_safe_append_history)
10865 (show_gdb_datadir): Use file style.
10866
44f81a76
HD
108672020-01-03 Hannes Domani <ssbssa@yahoo.de>
10868
10869 * solib-target.c (struct lm_info_target):
10870 Change offsets to be a unique_xmalloc_ptr.
10871 (solib_target_relocate_section_addresses): Update.
10872
25057eb0
HD
108732020-01-03 Hannes Domani <ssbssa@yahoo.de>
10874
10875 * windows-nat.c (windows_clear_solib): Free so_list linked list.
10876
6e2118f5
BE
108772020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
10878
10879 * MAINTAINERS (Write After Approval): Add myself.
10880
8133c7dc
LM
108812020-01-02 Luis Machado <luis.machado@linaro.org>
10882
10883 * proc-service.c (get_ps_regcache): Remove reference to obsolete
10884 Cell BE architecture.
10885 * target.h (struct target_ops) <thread_architecture>: Likewise.
10886
48189bec
HD
108872020-01-01 Hannes Domani <ssbssa@yahoo.de>
10888
10889 * Makefile.in: Use INSTALL_PROGRAM_ENV.
10890
ead1063b
HD
108912020-01-01 Hannes Domani <ssbssa@yahoo.de>
10892
10893 * MAINTAINERS (Write After Approval): Add myself.
10894
e5d78223
JB
108952020-01-01 Joel Brobecker <brobecker@adacore.com>
10896
10897 * gdbarch.sh: Update copyright year range of generated files.
10898
b811d2c2
JB
108992020-01-01 Joel Brobecker <brobecker@adacore.com>
10900
10901 Update copyright year range in all GDB files.
10902
5f4def5c
JB
109032020-01-01 Joel Brobecker <brobecker@adacore.com>
10904
10905 * copyright.py: Convert to Python 3.
10906
51fd4002
JB
109072020-01-01 Joel Brobecker <brobecker@adacore.com>
10908
10909 * copyright.py: Adapt after move of gnulib directory from gdb
10910 directory to toplevel directory.
10911
5fb651f2
JB
109122020-01-01 Joel Brobecker <brobecker@adacore.com>
10913
10914 * copyright.py (main): Exit if run from the wrong directory.
10915
5dd8bf88
JB
109162020-01-01 Joel Brobecker <brobecker@adacore.com>
10917
10918 * top.c (print_gdb_version): Change copyright year to 2020.
10919
9f71dacb 109202020-01-01 Joel Brobecker <brobecker@adacore.com>
3d34df0a 10921
9f71dacb 10922 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
3d34df0a 10923
9f71dacb 10924For older changes see ChangeLog-2019.
c906108c
SS
10925\f
10926Local Variables:
10927mode: change-log
10928left-margin: 8
10929fill-column: 74
10930version-control: never
57da7796 10931coding: utf-8
c906108c 10932End: