]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/ChangeLog
gdb/python: Add gdb.Architecture.registers method
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
0f767f94
AB
12020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
2
3 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
4 * python/py-arch.c (archpy_registers): New function.
5 (arch_object_methods): Add 'registers' method.
6 * python/py-registers.c: New file.
7 * python/python-internal.h
8 (gdbpy_new_register_descriptor_iterator): Declare.
9 (gdbpy_initialize_registers): Declare.
10 * python/python.c (do_start_initialization): Call
11 gdbpy_initialize_registers.
12 * NEWS: Mention additions to the Python API.
13
87dbc774
AB
142020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
15
16 * NEWS: Mention new Python API method.
17 * python/py-unwind.c (pending_framepy_architecture): New function.
18 (pending_frame_object_methods): Add architecture method.
19
3bc98c0c
AB
202020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
21
22 * gdbarch.c: Regenerate.
23 * gdbarch.h: Regenerate.
24 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
25 (gdbarch_data): Use internal_error for the case where
26 deprecated_set_gdbarch_data was originally needed.
27 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
28 and use passed in obstack.
29 (libunwind_frame_set_descr): Should no longer get back NULL from
30 gdbarch_data.
31 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
32 type.
33 * user-regs.c (user_regs_init): Update parameters, and use passed
34 in obstack.
35 (user_reg_add): Should no longer get back NULL from gdbarch_data.
36 (_initialize_user_regs): Register as a pre-init gdbarch data type.
37
d8cc8af6
TV
382020-07-06 Tom de Vries <tdevries@suse.de>
39
40 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
41 End-Of-Sequence in lte_is_less_than.
42 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
43 "gdb: Don't reorder line table entries too much when sorting".
44
947f7597
TV
452020-07-06 Tom de Vries <tdevries@suse.de>
46
47 PR tui/26205
48 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
49
1e7c1b22
TV
502020-07-05 Tom de Vries <tdevries@suse.de>
51
52 PR build/26187
53 * inferior.h (struct infcall_suspend_state_deleter): If available, use
54 std::uncaught_exceptions instead of deprecated
55 std::uncaught_exception.
56
a36158ec
SM
572020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
58
59 * macroexp.h (macro_stringify): Return
60 gdb::unique_xmalloc_ptr<char>.
61 * macroexp.c (macro_stringify): Likewise.
62 * macrotab.c (fixup_definition): Update.
63
14d960c8
SM
642020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
65
66 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
67 (lex_one_token): Update.
68 * macroexp.c (struct macro_buffer) <release>: Return
69 gdb::unique_xmalloc_ptr<char>.
70 (macro_stringify): Update.
71 (macro_expand): Update.
72 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
73 * macroexp.h (macro_expand_next): Likewise.
74
211d5b1c
SM
752020-07-02 Simon Marchi <simon.marchi@efficios.com>
76
77 * macroexp.h (macro_lookup_ftype): Remove.
78 (macro_expand, macro_expand_once, macro_expand_next): Remove
79 lookup function parameters, add scope parameter.
80 * macroexp.c (scan, substitute_args, expand, maybe_expand,
81 macro_expand, macro_expand_once, macro_expand_next): Likewise.
82 * macroscope.h (standard_macro_lookup): Change parameter type
83 to macro_scope.
84 * macroscope.c (standard_macro_lookup): Likewise.
85 * c-exp.y (lex_one_token): Update.
86 * macrocmd.c (macro_expand_command): Likewise.
87 (macro_expand_once_command): Likewise.
88
b1a35af2
SM
892020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
90
91 * inf-loop.c (inferior_event_handler): Remove client_data param.
92 * inf-loop.h (inferior_event_handler): Likewise.
93 * infcmd.c (step_1): Adjust.
94 * infrun.c (proceed): Adjust.
95 (fetch_inferior_event): Remove client_data param.
96 (infrun_async_inferior_event_handler): Adjust.
97 * infrun.h (fetch_inferior_event): Remove `void *` param.
98 * linux-nat.c (handle_target_event): Adjust.
99 * record-btrace.c (record_btrace_handle_async_inferior_event):
100 Adjust.
101 * record-full.c (record_full_async_inferior_event_handler):
102 Adjust.
103 * remote.c (remote_async_inferior_event_handler): Adjust.
104
1cdf9e33
TT
1052020-07-01 Tom Tromey <tom@tromey.com>
106
107 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
108 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
109
32c1e210
TT
1102020-07-01 Tom Tromey <tom@tromey.com>
111
112 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
113 tui_gen_win_info.
114 (tui_win_info::make_window): Merge with
115 tui_gen_win_info::make_window.
116 (tui_win_info::make_visible): Move from tui_gen_win_info.
117 * tui/tui-win.c (tui_win_info::max_width): Move from
118 tui_gen_win_info.
119 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
120 type.
121 <window_factory>: Likewise.
122 * tui/tui-layout.c (tui_win_info::resize): Move from
123 tui_gen_win_info.
124 (make_standard_window): Change return type.
125 (get_locator_window, tui_get_window_by_name): Likewise.
126 (tui_layout_window::apply): Remove a cast.
127 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
128 (struct tui_win_info): Merge with tui_gen_win_info.
129 (struct tui_gen_win_info): Remove.
130
a30cb6da
TT
1312020-07-01 Tom Tromey <tom@tromey.com>
132
133 * tui/tui-stack.h (struct tui_locator_window): Derive from
134 tui_win_info.
135 <do_scroll_horizontal, do_scroll_vertical>: New methods.
136 <can_box>: New method.
137
1eb2161f
TT
1382020-07-01 Tom Tromey <tom@tromey.com>
139
140 * tui/tui-stack.h (struct tui_locator_window): Remove body.
141
7134f2eb
TT
1422020-07-01 Tom Tromey <tom@tromey.com>
143
144 * tui/tui-regs.c (tui_data_window::display_registers_from)
145 (tui_data_window::display_registers_from)
146 (tui_data_window::first_data_item_displayed)
147 (tui_data_window::delete_data_content_windows): Update.
148 (tui_data_window::refresh_window, tui_data_window::no_refresh):
149 Remove.
150 (tui_data_window::check_register_values): Update.
151 (tui_data_item_window::rerender): Add parameters. Update.
152 (tui_data_item_window::refresh_window): Remove.
153 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
154 virtual.
155 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
156 tui_gen_win_info.
157 <refresh_window, max_height, min_height>: Remove.
158 <rerender>: Add parameters.
159 <x, y, visible>: New members.
160 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
161 <m_item_width>: New member.
162
22b7b041
TT
1632020-07-01 Tom Tromey <tom@tromey.com>
164
165 * tui/tui-regs.c (tui_data_window::show_register_group)
166 (tui_data_window::check_register_values): Update.
167 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
168 from item_no.
169
c9753adb
TT
1702020-07-01 Tom Tromey <tom@tromey.com>
171
172 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
173 useless "if".
174
9ab26b4a
TT
1752020-07-01 Tom Tromey <tom@tromey.com>
176
177 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
178 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
179
e555083f
TT
1802020-07-01 Tom Tromey <tom@tromey.com>
181
182 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
183 * tui/tui-winsource.h (enum tui_line_or_address_kind)
184 (struct tui_line_or_address): Move from tui-data.h.
185 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
186 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
187 (tui_cmd_window, tui_source_window_base, tui_source_window)
188 (tui_disasm_window): Don't declare.
189 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
190 to tui-winsource.h.
191 (SINGLE_KEY): Move to tui-stack.c.
192
7a02bab7
TT
1932020-07-01 Tom Tromey <tom@tromey.com>
194
195 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
196 std::string.
197 * tui/tui-regs.c (class tab_expansion_file): New.
198 (tab_expansion_file::write): New method.
199 (tui_register_format): Change return type. Use
200 tab_expansion_file.
201 (tui_get_register, tui_data_window::display_registers_from)
202 (tui_data_item_window::rerender): Update.
203 * tui/tui-io.h (tui_expand_tabs): Don't declare.
204 * tui/tui-io.c (tui_expand_tabs): Remove.
205
ea68593b
TT
2062020-07-01 Tom Tromey <tom@tromey.com>
207
208 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
209
a8caed5d
FS
2102020-07-01 Fangrui Song <maskray@google.com>
211
212 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
213
9cdf9820
AKS
2142020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
215
216 * dwarf2/read.c (set_die_type): Removed conditions to restrict
217 forms for DW_AT_associated and DW_AT_allocated attributes,
218 which is already checked in function attr_to_dynamic_prop.
219
a1520ad8
TT
2202020-06-30 Tom Tromey <tromey@adacore.com>
221
222 * dwarf2/read.c (quirk_rust_enum): Correctly call
223 alloc_rust_variant for default-less enum.
224
5ac58899
TT
2252020-06-30 Tom Tromey <tromey@adacore.com>
226
227 PR build/26183:
228 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
229 gdb::to_string.
230
19b187a9
SM
2312020-06-29 Simon Marchi <simon.marchi@efficios.com>
232
233 * gdbarch.sh (displaced_step_copy_insn): Update doc.
234 * gdbarch.h: Re-generate.
235
cd4c4c07
TT
2362020-06-28 Tom Tromey <tom@tromey.com>
237
238 * command.h (cmd_types): Remove.
239 (cmd_type): Don't declare.
240 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
241 typedef.
242 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
243 * cli/cli-decode.c (cmd_type): Remove.
244
05779d57
PA
2452020-06-27 Pedro Alves <palves@redhat.com>
246
247 * fork-child.c (prefork_hook): Adjust.
248 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
249 Delete.
250 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
251 * inferior.c (inferior::set_tty, inferior::tty): New methods.
252 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
253 Remove declarations.
254 (struct inferior) <set_tty, tty>: New methods.
255 (struct inferior) <terminal>: Rename to ...
256 (struct inferior) <m_terminal>: ... this and make private.
257 * main.c (captured_main_1): Adjust.
258 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
259 (mi_cmd_inferior_tty_show): Adjust.
260 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
261 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
262
1776e3e5
NA
2632020-06-26 Nick Alcock <nick.alcock@oracle.com>
264
265 * configure.ac: Add --enable-libctf: handle --disable-static
266 properly.
267 * acinclude.m4: sinclude ../config/enable.m4.
268 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
269 (LIBCTF): Substitute in.
270 (CTF_DEPS): New, likewise.
271 (CLIBS): libctf needs symbols from libbfd: move earlier.
272 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
273 flags.
274 * ctfread.c: Surround in ENABLE_LIBCTF.
275 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
276 * configure: Regenerate.
277 * config.in: Likewise.
278
58373b80
SM
2792020-06-25 Simon Marchi <simon.marchi@efficios.com>
280
281 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
282
277474ee
SM
2832020-06-25 Simon Marchi <simon.marchi@efficios.com>
284
285 * inferior.h (struct inferior) <terminal>: Change type to
286 gdb::unique_xmalloc_ptr<char>.
287 * inferior.c (inferior::~inferior): Don't free inf->terminal.
288 * infcmd.c (set_inferior_io_terminal): Don't free terminal
289 field, adjust to unique pointer.
290 (get_inferior_io_terminal): Adjust to unique pointer.
291
6d74da72
AB
2922020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
293
294 * riscv-tdep.c (riscv_print_registers_info): Loop over all
295 registers, not just the known core set of registers.
296
2e52d038
AB
2972020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
298
299 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
300 fflags, frm, and fcsr registers.
301 (riscv_register_reggroup_p): Remove unknown CSRs from save and
302 restore groups.
303 (riscv_tdesc_unknown_reg): New function.
304 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
305 tdesc_use_registers.
306 * riscv-tdep.h (struct gdbarch_tdep): Add
307 unknown_csrs_first_regnum, unknown_csrs_count,
308 duplicate_fflags_regnum, duplicate_frm_regnum, and
309 duplicate_fcsr_regnum fields.
310
be64fd07
AB
3112020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
312
313 * target-descriptions.c (tdesc_use_registers): Add new parameter a
314 callback, use the callback (when not null) to help number unknown
315 registers.
316 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
317 (tdesc_use_registers): Add extra parameter to declaration.
318
3b9fce96
AB
3192020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
320
321 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
322 in the file.
323 (class riscv_pending_register_alias): Likewise.
324 (riscv_register_feature::register_info): Change 'required_p' field
325 to 'required', and change its type. Add 'check' member function.
326 (riscv_register_feature::register_info::check): Define new member
327 function.
328 (riscv_xreg_feature): Change initialisation of 'required' field.
329 (riscv_freg_feature): Likewise.
330 (riscv_virtual_feature): Likewise.
331 (riscv_csr_feature): Likewise.
332 (riscv_check_tdesc_feature): Take extra parameter, the csr
333 tdesc_feature, rewrite the function to use the new
334 riscv_register_feature::register_info::check function.
335 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
336
865bad26
AB
3372020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
338
339 * features/Makefile: Remove all references to the deleted files
340 below.
341 * features/riscv/32bit-csr.c: Deleted.
342 * features/riscv/32bit-csr.xml: Deleted.
343 * features/riscv/64bit-csr.c: Deleted.
344 * features/riscv/64bit-csr.xml: Deleted.
345 * features/riscv/rebuild-csr-xml.sh: Deleted.
346
ed69cbc8
AB
3472020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
348
349 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
350 whitespace error for declaration of names member variable.
351 (struct riscv_register_feature): Add new prefer_first_name member
352 variable, and fix whitespace error in declaration of registers.
353 (riscv_xreg_feature): Initialize prefer_first_name field.
354 (riscv_freg_feature): Likewise.
355 (riscv_virtual_feature): Likewise.
356 (riscv_csr_feature): Likewise.
357 (riscv_register_name): Expand on comments. Remove register name
358 modifications for CSR and virtual registers.
359
4445e8f5
AB
3602020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
361
362 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
363 errors.
364
767a879e
AB
3652020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
366
367 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
368 riscv-opc.h.
369 (class riscv_pending_register_alias): New class.
370 (riscv_check_tdesc_feature): Take vector of pending aliases and
371 populate it as appropriate.
372 (riscv_setup_register_aliases): Delete.
373 (riscv_gdbarch_init): Create vector of pending aliases and pass it
374 to riscv_check_tdesc_feature in all cases. Use the vector to
375 create the register aliases.
376
bb6e55f3
RO
3772020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
378
379 * sol2-tdep.c (sol2_static_transform_name): Remove.
380 (sol2_init_abi): Don't register it.
381 * gdbarch.sh (static_transform_name): Remove.
382 * gdbarch.c, gdbarch.h: Regenerate.
383
384 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
385 gdbarch_static_transform_name.
386 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
387 * stabsread.c (define_symbol) <'X'>: Remove.
388 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
389 handling.
390 <'V'>: Likewise.
391 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
392 <'S'>: Remove call to gdbarch_static_transform_name.
393
c6d36836
RO
3942020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
395
396 * procfs.c (procfs_pre_trace): New function.
397 (procfs_target::create_inferior): Pass it to fork_inferior.
398
a7e6196b
RO
3992020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
400
401 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
402 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
403 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
404 sol2-tdep.o, sparc-sol2-tdep.o.
405 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
406 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
407 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
408 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
409
d412e696
RO
4102020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
411
412 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
413 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
414 Call sol2_init_abi.
415 Remove calls to set_gdbarch_skip_solib_resolver,
416 set_gdbarch_core_pid_to_str.
417 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
418 (i386_sol2_static_transform_name): Remove.
419 (i386_sol2_init_abi): Call sol2_init_abi.
420 Remove calls to set_gdbarch_sofun_address_maybe_missing,
421 set_gdbarch_static_transform_name,
422 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
423 Use sol2_sigtramp_p.
424 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
425 (sol2_sigtramp_p): New function.
426 (sol2_static_transform_name): New function.
427 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
428 (sol2_init_abi): New function.
429 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
430 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
431 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
432 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
433 (sparc_sol2_static_transform_name): Remove.
434 (sparc32_sol2_init_abi): Call sol2_init_abi.
435 Remove calls to set_gdbarch_sofun_address_maybe_missing,
436 set_gdbarch_static_transform_name,
437 set_gdbarch_skip_solib_resolver,
438 set_gdbarch_core_pid_to_str.
439 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
440 (sparc_sol2_static_transform_name): Remove
441 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
442 call sol2_sigtramp_p.
443 (sparc64_sol2_init_abi): Call sol2_init_abi.
444 Remove calls to set_gdbarch_sofun_address_maybe_missing,
445 set_gdbarch_static_transform_name,
446 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
447
a8654e7d
PW
4482020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
449
450 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
451 * exec.c (validate_exec_file): If from_tty, set both
452 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
453 * symfile.c (symbol_file_add_with_addrs): if always_confirm
454 and from_tty, unconditionally ask a confirmation.
455
caa7fd04
AB
4562020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
457
458 * target-descriptions.c (tdesc_architecture_name): Protect against
459 NULL pointer dereference.
460 (maint_print_xml_tdesc_cmd): New function.
461 (_initialize_target_descriptions): Register new 'maint print
462 xml-tdesc' command and give it the filename completer.
463 * NEWS: Mention new 'maint print xml-tdesc' command.
464
fbf42f4e
AB
4652020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
466
467 * target-descriptions.c (class tdesc_compatible_info): New class.
468 (struct target_desc): Change type of compatible vector.
469 (tdesc_compatible_p): Update for change in type of
470 target_desc::compatible.
471 (tdesc_compatible_info_list): New function.
472 (tdesc_compatible_info_arch_name): New function.
473 (tdesc_add_compatible): Update for change in type of
474 target_desc::compatible.
475 (print_c_tdesc::visit_pre): Likewise.
476
20821f4e
AB
4772020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
478
479 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
480 whitespace to underscore.
481 (maint_print_c_tdesc_cmd): Use fake filename for target
482 descriptions that came from the target.
483 (_initialize_target_descriptions): Add filename command completion
484 for 'maint print c-tdesc'.
485
1fb5ee62
SM
4862020-06-23 Simon Marchi <simon.marchi@efficios.com>
487
488 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
489 lines.
490
fc3ecb3e
SM
4912020-06-23 Simon Marchi <simon.marchi@efficios.com>
492
493 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
494 lines.
495 (dwarf2_find_location_expression): Likewise.
496 (call_site_parameter_matches): Likewise.
497 (dwarf2_compile_expr_to_ax): Likewise.
498 (disassemble_dwarf_expression): Likewise.
499 (loclist_describe_location): Likewise.
500
236ef034
PA
5012020-06-23 Pedro Alves <palves@redhat.com>
502
503 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
504 progspace-and-thread.h. Include scoped-mock-context.h instead.
505 (register_to_value_test): Use scoped_mock_context.
506 * regcache.c: Include "scoped-mock-context.h".
507 (cooked_read_test): Don't error out if a target is already pushed.
508 Use scoped_mock_context. Adjust.
509 * scoped-mock-context.h: New file.
510
39e7ecca
AB
5112020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
512
513 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
514 initializer.
515 (ada_language::is_string_type_p): New member function.
516 * c-lang.c (c_language_data): Delete la_is_string_type_p
517 initializer.
518 (cplus_language_data): Likewise.
519 (asm_language_data): Likewise.
520 (minimal_language_data): Likewise.
521 * d-lang.c (d_language_data): Likewise.
522 * f-lang.c (f_is_string_type_p): Delete function, implementation
523 moved to f_language::is_string_type_p.
524 (f_language_data): Delete la_is_string_type_p initializer.
525 (f_language::is_string_type_p): New member function,
526 implementation from f_is_string_type_p.
527 * go-lang.c (go_is_string_type_p): Delete function, implementation
528 moved to go_language::is_string_type_p.
529 (go_language_data): Delete la_is_string_type_p initializer.
530 (go_language::is_string_type_p): New member function,
531 implementation from go_is_string_type_p.
532 * language.c (language_defn::is_string_type_p): Define new member
533 function.
534 (default_is_string_type_p): Make static, add comment copied from
535 header file.
536 (unknown_language_data): Delete la_is_string_type_p initializer.
537 (unknown_language::is_string_type_p): New member function.
538 (auto_language_data): Delete la_is_string_type_p initializer.
539 (auto_language::is_string_type_p): New member function.
540 * language.h (language_data): Delete la_is_string_type_p field.
541 (language_defn::is_string_type_p): Declare new function.
542 (default_is_string_type_p): Delete desclaration, move comment to
543 definition.
544 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
545 moved to m2_language::is_string_type_p.
546 (m2_language_data): Delete la_is_string_type_p initializer.
547 (m2_language::is_string_type_p): New member function,
548 implementation from m2_is_string_type_p.
549 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
550 initializer.
551 * opencl-lang.c (opencl_language_data): Likewise.
552 * p-lang.c (pascal_is_string_type_p): Delete function,
553 implementation moved to pascal_language::is_string_type_p.
554 (pascal_language_data): Delete la_is_string_type_p initializer.
555 (pascal_language::is_string_type_p): New member function,
556 implementation from pascal_is_string_type_p.
557 * rust-lang.c (rust_is_string_type_p): Delete function,
558 implementation moved to rust_language::is_string_type_p.
559 (rust_language_data): Delete la_is_string_type_p initializer.
560 (rust_language::is_string_type_p): New member function,
561 implementation from rust_is_string_type_p.
562 * valprint.c (val_print_scalar_or_string_type_p): Update call to
563 is_string_type_p.
564
4ffc13fb
AB
5652020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
566
567 * ada-lang.c (ada_language_data): Delete la_print_typedef
568 initializer.
569 (ada_language::print_typedef): New member function.
570 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
571 (cplus_language_data): Likewise.
572 (asm_language_data): Likewise.
573 (minimal_language_data): Likewise.
574 * d-lang.c (d_language_data): Likewise.
575 * f-lang.c (f_language_data): Likewise.
576 (f_language::print_typedef): New member function.
577 * go-lang.c (go_language_data): Delete la_print_typedef
578 initializer.
579 * language.c (language_defn::print_typedef): Define member
580 function.
581 (unknown_language_data): Delete la_print_typedef initializer.
582 (unknown_language::print_typedef): New member function.
583 (auto_language_data): Delete la_print_typedef initializer.
584 (auto_language::print_typedef): New member function.
585 * language.h (language_data): Delete la_print_typedef field.
586 (language_defn::print_typedef): Declare new member function.
587 (LA_PRINT_TYPEDEF): Update call to print_typedef.
588 (default_print_typedef): Delete declaration.
589 * m2-lang.c (m2_language_data): Delete la_print_typedef
590 initializer.
591 (m2_language::print_typedef): New member function.
592 * objc-lang.c (objc_language_data): Delete la_print_typedef
593 initializer.
594 * opencl-lang.c (opencl_language_data): Likewise.
595 * p-lang.c (pascal_language_data): Likewise.
596 (pascal_language::print_typedef): New member function.
597 * rust-lang.c (rust_print_typedef): Delete function,
598 implementation moved to rust_language::print_typedef.
599 (rust_language): Delete la_print_typedef initializer.
600 (rust_language::print_typedef): New member function,
601 implementation from rust_print_typedef.
602 * typeprint.c (default_print_typedef): Delete.
603
d711ee67
AB
6042020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
605
606 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
607 (ada_language::printstr): New member function.
608 * c-lang.c (c_language_data): Delete la_printstr initializer.
609 (cplus_language_data): Likewise.
610 (asm_language_data): Likewise.
611 (minimal_language_data): Likewise.
612 * d-lang.c (d_language_data): Likewise.
613 * f-lang.c (f_printstr): Rename to f_language::printstr.
614 (f_language_data): Delete la_printstr initializer.
615 (f_language::printstr): New member function, implementation from
616 f_printstr.
617 * go-lang.c (go_language_data): Delete la_printstr initializer.
618 * language.c (language_defn::printstr): Define new member
619 function.
620 (unk_lang_printstr): Delete.
621 (unknown_language_data): Delete la_printstr initializer.
622 (unknown_language::printstr): New member function.
623 (auto_language_data): Delete la_printstr initializer.
624 (auto_language::printstr): New member function.
625 * language.h (language_data): Delete la_printstr field.
626 (language_defn::printstr): Declare new member function.
627 (LA_PRINT_STRING): Update call to printstr.
628 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
629 (m2_language_data): Delete la_printstr initializer.
630 (m2_language::printstr): New member function, implementation from
631 m2_printstr.
632 * objc-lang.c (objc_language_data): Delete la_printstr
633 initializer.
634 * opencl-lang.c (opencl_language_data): Likewise.
635 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
636 (pascal_language_data): Delete la_printstr initializer.
637 (pascal_language::printstr): New member function, implementation
638 from pascal_printstr.
639 * p-lang.h (pascal_printstr): Delete declaration.
640 * rust-lang.c (rust_printstr): Update header comment.
641 (rust_language_data): Delete la_printstr initializer.
642 (rust_language::printstr): New member function.
643
52b50f2c
AB
6442020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
645
646 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
647 (ada_language::printchar): New member function.
648 * c-lang.c (c_language_data): Delete la_printchar initializer.
649 (cplus_language_data): Likewise.
650 (asm_language_data): Likewise.
651 (minimal_language_data): Likewise.
652 * d-lang.c (d_language_data): Likewise.
653 * f-lang.c (f_printchar): Rename to f_language::printchar.
654 (f_language_data): Delete la_printchar initializer.
655 (f_language::printchar): New member function, implementation from
656 f_printchar.
657 * go-lang.c (go_language_data): Delete la_printchar initializer.
658 * language.c (unk_lang_printchar): Delete.
659 (language_defn::printchar): Define new member function.
660 (unknown_language_data): Delete la_printchar initializer.
661 (unknown_language::printchar): New member function.
662 (auto_language_data): Delete la_printchar initializer.
663 (auto_language::printchar): New member function.
664 * language.h (language_data): Delete la_printchar field.
665 (language_defn::printchar): Declare new member function.
666 (LA_PRINT_CHAR): Update call to printchar.
667 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
668 (m2_language::printchar): New member function.
669 * objc-lang.c (objc_language_data): Delete la_printchar
670 initializer.
671 * opencl-lang.c (opencl_language_data): Likewise.
672 * p-lang.c (pascal_language_data): Delete la_printchar
673 initializer.
674 (pascal_language::printchar): New member function.
675 * rust-lang.c (rust_printchar): Rename to
676 rust_language::printchar.
677 (rust_language_data): Delete la_printchar initializer.
678 (rust_language::printchar): New member function, implementation
679 from rust_printchar.
680
ec8cec5b
AB
6812020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
682
683 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
684 (ada_language_data): Delete la_emitchar initializer.
685 (ada_language::emitchar): New member function, implementation from
686 emit_char.
687 * c-lang.c (c_language_data): Delete la_emitchar initializer.
688 (cplus_language_data): Likewise.
689 (asm_language_data): Likewise.
690 (minimal_language_data): Likewise.
691 * d-lang.c (d_language_data): Likewise.
692 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
693 (f_language_data): Delete la_emitchar initializer.
694 (f_language::emitchar): New member function, implementation from
695 f_emit_char.
696 * go-lang.c (go_language_data): Delete la_emitchar initializer.
697 * language.c (unk_lang_emit_char): Delete.
698 (language_defn::emitchar): New member function definition.
699 (unknown_language_data): Delete la_emitchar initializer.
700 (unknown_language::emitchar): New member function.
701 (auto_language_data): Delete la_emitchar initializer.
702 (auto_language::emitchar): New member function.
703 * language.h (language_data): Delete la_emitchar field.
704 (language_defn::emitchar): New member field declaration.
705 (LA_EMIT_CHAR): Update call to emitchar.
706 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
707 (m2_language_data): Delete la_emitchar initializer.
708 (m2_language::emitchar): New member function, implementation from
709 m2_emit_char.
710 * objc-lang.c (objc_language_data): Delete la_emitchar
711 initializer.
712 * opencl-lang.c (opencl_language_data): Likewise.
713 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
714 (pascal_language_data): Delete la_emitchar initializer.
715 (pascal_language::emitchar): New member function, implementation
716 from pascal_emit_char.
717 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
718 (rust_language_data): Delete la_emitchar initializer.
719 (rust_language::emitchar): New member function, implementation
720 from rust_emitchar.
721
1bf9c363
AB
7222020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
723
724 * ada-lang.c (resolve): Rename to ada_language::post_parser.
725 (ada_language_data): Delete la_post_parser initializer.
726 (ada_language::post_parser): New member function.
727 * c-lang.c (c_language_data): Delete la_post_parser initializer.
728 (cplus_language_data): Likewise.
729 (asm_language_data): Likewise.
730 (minimal_language_data): Likewise.
731 * d-lang.c (d_language_data): Likewise.
732 * f-lang.c (f_language_data): Likewise.
733 * go-lang.c (go_language_data): Likewise.
734 * language.c (unknown_language_data): Likewise.
735 (auto_language_data): Likewise.
736 * language.h (language_data): Delete la_post_parser field.
737 (language_defn::post_parser): New member function.
738 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
739 * objc-lang.c (objc_language_data): Likewise.
740 * opencl-lang.c (opencl_language_data): Likewise.
741 * p-lang.c (pascal_language_data): Likewise.
742 * parse.c (parse_exp_in_context): Update call to post_parser.
743 (null_post_parser): Delete definition.
744 * parser-defs.h (null_post_parser): Delete declaration.
745 * rust-lang.c (rust_language_data): Delete la_post_parser
746 initializer.
747
87afa652
AB
7482020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
749
750 * ada-lang.c (parse): Rename to ada_language::parser.
751 (ada_language_data): Delete la_parser initializer.
752 (ada_language::parser): New member function, implementation from
753 parse.
754 * c-lang.c (c_language_data): Delete la_parser initializer.
755 (cplus_language_data): Likewise.
756 (asm_language_data): Likewise.
757 (minimal_language_data): Likewise.
758 * d-lang.c (d_language_data): Likewise.
759 (d_language::parser): New member function.
760 * f-lang.c (f_language_data): Delete la_parser initializer.
761 (f_language::parser): New member function.
762 * go-lang.c (go_language_data): Delete la_parser initializer.
763 (go_language::parser): New member function.
764 * language.c (unk_lang_parser): Delete.
765 (language_defn::parser): Define new member function.
766 (unknown_language_data): Delete la_parser initializer.
767 (unknown_language::parser): New member function.
768 (auto_language_data): Delete la_parser initializer.
769 (auto_language::parser): New member function.
770 * language.h (language_data): Delete la_parser field.
771 (language_defn::parser): Declare new member function.
772 * m2-lang.c (m2_language_data): Delete la_parser initializer.
773 (m2_language::parser): New member function.
774 * objc-lang.c (objc_language_data): Delete la_parser initializer.
775 * opencl-lang.c (opencl_language_data): Likewise.
776 * p-lang.c (pascal_language_data): Likewise.
777 (pascal_language::parser): New member function.
778 * parse.c (parse_exp_in_context): Update call to parser.
779 * rust-lang.c (rust_language_data): Delete la_parser initializer.
780 (rust_language::parser): New member function.
781
37825800
AB
7822020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
783
784 * top.c (print_gdb_configuration): Print --with-python-libdir
785 configuration value.
786
5b860c93
PW
7872020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
788
789 * NEWS: Mention change to the alias command.
790
cf00cd6f
PW
7912020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
792
793 * cli/cli-cmds.c (lookup_cmd_for_default_args)
794 (alias_command_completer)
795 (make_alias_options_def_group): New functions.
796 (alias_opts, alias_option_defs): New struct and array.
797 (alias_usage_error): Update usage.
798 (alias_command): Handles optional DEFAULT-ARGS... arguments.
799 Use option framework.
800 (_initialize_cli_cmds): Update alias command help.
801 Update aliases command help.
802 (show_user):
803 Add NULL for new default_args lookup_cmd argument.
804 (valid_command_p): Rename to validate_aliased_command.
805 Add NULL for new default_args lookup_cmd argument. Verify that the
806 aliased_command has no default args.
807 * cli/cli-decode.c (help_cmd): Show aliases definitions.
808 (lookup_cmd_1, lookup_cmd): New argument default_args.
809 (add_alias_cmd):
810 Add NULL for new default_args lookup_cmd argument.
811 (print_help_for_command): Show default args under the layout
812 alias some_alias = some_aliased_cmd some_alias_default_arg.
813 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
814 xfree default_args in destructor.
815 * cli/cli-script.c (process_next_line, do_define_command):
816 Add NULL for new default_args lookup_cmd argument.
817 * command.h: Declare new default_args argument in lookup_cmd
818 and lookup_cmd_1.
819 * completer.c (complete_line_internal_1):
820 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
821 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
822 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
823 Likewise.
824 * infcmd.c (_initialize_infcmd): Likewise.
825 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
826 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
827 * python/py-param.c (add_setshow_generic): Likewise.
828 * remote.c (_initialize_remote): Likewise.
829 * top.c (execute_command): Prepend default_args if command has some.
830 (set_verbose):
831 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
832 * tracepoint.c (validate_actionline, encode_actions_1):
833 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
834
bd920864
TBA
8352020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
836
837 * jit.c (jit_read_descriptor): Use bool as the return type.
838 (jit_breakpoint_re_set_internal): Use bool as the return type.
839 Invert the return value logic; return true if the jit breakpoint
840 has been successfully initialized.
841 (jit_inferior_init): Update the call to
842 jit_breakpoint_re_set_internal.
843
f8098322
PA
8442020-06-22 Pedro Alves <palves@redhat.com>
845
846 PR gdb/25939
847 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
848 Use the current inferior instead. Don't return
849 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
850 wait again.
851 * sol-thread.c (sol_thread_target::wait): Don't reference
852 inferior_ptid.
853 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
854 (sol_update_thread_list_callback): Use the current inferior's pid
855 instead of inferior_ptid.
856
196535a6
RO
8572020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
858
859 * procfs.c: Cleanup many comments.
860
861 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
862 (AFTER_WATCHFLAG): Replace by value.
863
864 (MAIN_PROC_NAME_FORMAT): Inline ...
865 (create_procinfo): ... here.
866
867 (procfs_debug_inferior): Remove SYS_exec handling.
868 (syscall_is_exec): Likewise.
869 (procfs_set_exec_trap): Likewise.
870
871 (syscall_is_lwp_exit): Inline in callers.
872 (syscall_is_exit): Likewise.
873 (syscall_is_exec): Likewise.
874 (syscall_is_lwp_create): Likewise.
875
876 (invalidate_cache): Remove #if 0 code.
877
878 (make_signal_thread_runnable): Remove.
879 (procfs_target::resume): Remove #if 0 code.
880
cf6f3e86
RO
8812020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
882
883 PR gdb/25939
884 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
885 call ...
886 (procfs_target::create_inferior): ... here.
887
48e9cc84
PW
8882020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
889
890 * exec.c (validate_exec_file): Ensure the build-id is up to
891 date by calling reopen_exec_file (that checks file timestamp
892 to decide to re-read the file).
893
3922b302
PA
8942020-06-18 Pedro Alves <palves@redhat.com>
895
896 PR gdb/25412
897 * gdbthread.h (delete_thread, delete_thread_silent)
898 (find_thread_ptid): Update comments.
899 * thread.c (current_thread_): New global.
900 (is_current_thread): Move higher, and reimplement.
901 (inferior_thread): Reimplement.
902 (set_thread_exited): Use bool. Add assertions.
903 (add_thread_silent): Simplify thread-reuse handling by always
904 calling delete_thread.
905 (delete_thread): Remove intro comment.
906 (find_thread_ptid): Skip exited threads.
907 (switch_to_thread_no_regs): Write to current_thread_.
908 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
909 INFERIOR_PTID. Clear current_thread_.
910
6dbdab44
PA
9112020-06-18 Pedro Alves <palves@redhat.com>
912
913 * aix-thread.c (pd_update): Use switch_to_thread.
914
2da4b788
PA
9152020-06-18 Pedro Alves <palves@redhat.com>
916
917 * ravenscar-thread.c (ravenscar_thread_target): Update.
918 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
919 (ravenscar_thread_target::add_active_thread): ... this. Don't
920 set m_base_ptid here. Update to avoid referencing inferior_ptid.
921 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
922
50838d1b
PA
9232020-06-18 Pedro Alves <palves@redhat.com>
924
925 * nat/windows-nat.c (current_windows_thread): Remove.
926 * nat/windows-nat.h (current_windows_thread): Remove.
927 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
928 Adjust.
929 (display_selectors): Adjust to fetch the current
930 windows_thread_info based on inferior_ptid.
931 (fake_create_process): No longer write to current_windows_thread.
932 (windows_nat_target::get_windows_debug_event):
933 Don't set inferior_ptid or current_windows_thread.
934 (windows_nat_target::wait): Adjust to not rely on
935 current_windows_thread.
936 (do_initial_windows_stuff): Now a method of windows_nat_target.
937 Switch to the last_ptid thread.
938 (windows_nat_target::attach): Adjust.
939 (windows_nat_target::detach): Use switch_to_no_thread instead of
940 writing to inferior_ptid directly.
941 (windows_nat_target::create_inferior): Adjust.
942
31ce04e9
PA
9432020-06-18 Pedro Alves <palves@redhat.com>
944
945 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
946
1ee1a363
PA
9472020-06-18 Pedro Alves <palves@redhat.com>
948
949 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
950 after creating it, instead of writing to inferior_ptid. Don't
951 write to inferior_ptid.
952
6d350754
PA
9532020-06-18 Pedro Alves <palves@redhat.com>
954
955 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
956
5d971d48
PA
9572020-06-18 Pedro Alves <palves@redhat.com>
958
959 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
960 it, instead of writing to inferior_ptid.
961
86e57d1b
PA
9622020-06-18 Pedro Alves <palves@redhat.com>
963
964 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
965 to inferior_ptid.
966
f2e1c129
PA
9672020-06-18 Pedro Alves <palves@redhat.com>
968
969 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
970 instead of writing to inferior_ptid directly.
971
60db1b85
PA
9722020-06-18 Pedro Alves <palves@redhat.com>
973
974 * corelow.c (core_target::close): Use switch_to_no_thread instead
975 of writing to inferior_ptid directly.
976 (add_to_thread_list, core_target_open): Use switch_to_thread
977 instead of writing to inferior_ptid directly.
978
fe7d6a8d
PA
9792020-06-18 Pedro Alves <palves@redhat.com>
980
981 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
982 inferior_ptid.
983 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
984 inferior_ptid.
985 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
986 inferior_ptid directly.
987 (darwin_nat_target::init_thread_list): Switch to thread, instead
988 of writing to inferior_ptid.
989 (darwin_nat_target::attach): Don't write to inferior_ptid.
990 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
991
975f8708
PA
9922020-06-18 Pedro Alves <palves@redhat.com>
993
994 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
995 thread.
996 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
997 Instead use switch_to_thread.
998 (gnu_nat_target::detach): Use switch_to_no_thread
999 instead of writing to inferior_ptid directly. Used passed-in
1000 inferior instead of looking up the inferior by pid.
1001
1a204730
PA
10022020-06-18 Pedro Alves <palves@redhat.com>
1003
1004 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
1005 inferior_ptid.
1006
ebe84f23
PA
10072020-06-18 Pedro Alves <palves@redhat.com>
1008
1009 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
1010 inferior_ptid.
1011 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
1012 thread.
1013 (nto_procfs_target::detach): Avoid referencing
1014 inferior_ptid. Use switch_to_no_thread instead of writing to
1015 inferior_ptid directly.
1016 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
1017 instead of writing to inferior_ptid directly.
1018 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
1019 to thread.
1020
191f02e5
PA
10212020-06-18 Pedro Alves <palves@redhat.com>
1022
1023 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
1024 after creating it, instead of writing to inferior_ptid.
1025 (gdbsim_target_open): Use switch_to_no_thread instead of writing
1026 to inferior_ptid directly.
1027 (gdbsim_target::wait): Don't write to inferior_ptid.
1028
0ac55310
PA
10292020-06-18 Pedro Alves <palves@redhat.com>
1030
1031 * remote.c (remote_target::remote_notice_new_inferior): Use
1032 switch_to_thread instead of writing to inferior_ptid directly.
1033 (remote_target::add_current_inferior_and_thread): Use
1034 switch_to_no_thread instead of writing to inferior_ptid directly.
1035 (extended_remote_target::attach): Use switch_to_inferior_no_thread
1036 and switch_to_thread instead of using set_current_inferior or
1037 writing to inferior_ptid directly.
1038
5233f39b
PA
10392020-06-18 Pedro Alves <palves@redhat.com>
1040
1041 * tracectf.c (ctf_target_open): Switch to added thread instead of
1042 writing to inferior_ptid directly.
1043 (ctf_target::close): Use switch_to_no_thread instead of writing to
1044 inferior_ptid directly.
1045
087e161b
PA
10462020-06-18 Pedro Alves <palves@redhat.com>
1047
1048 * tracefile-tfile.c (tfile_target_open): Don't write to
1049 inferior_ptid directly, instead switch to added thread.
1050 (tfile_target::close): Use switch_to_no_thread instead of writing
1051 to inferior_ptid directly.
1052
7fb43e53
PA
10532020-06-18 Pedro Alves <palves@redhat.com>
1054
1055 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
1056 (procfs_target::detach): Use switch_to_no_thread
1057 instead of writing to inferior_ptid directly.
1058 (do_attach): Change return type to void. Switch to the added
1059 thread.
1060 (procfs_target::create_inferior): Switch to the added thread.
1061 (procfs_do_thread_registers): Don't write to inferior_ptid.
1062
18493a00
PA
10632020-06-18 Pedro Alves <palves@redhat.com>
1064
1065 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
1066 of writing to inferior_ptid.
1067 (scoped_restore_exited_inferior): Delete.
1068 (handle_vfork_child_exec_or_exit): Simplify using
1069 scoped_restore_current_pspace_and_thread. Use switch_to_thread
1070 instead of writing to inferior_ptid.
1071 (THREAD_STOPPED_BY): Delete.
1072 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
1073 (thread_stopped_by_hw_breakpoint): Delete.
1074 (save_waitstatus): Use
1075 scoped_restore_current_thread+switch_to_thread, and call
1076 target_stopped_by_watchpoint instead of
1077 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
1078 instead of thread_stopped_by_sw_breakpoint, and
1079 target_stopped_by_hw_breakpoint instead of
1080 thread_stopped_by_hw_breakpoint.
1081 (handle_inferior_event)
1082 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
1083 inferior_ptid directly, nor
1084 set_current_inferior/set_current_program_space. Use
1085 switch_to_thread / switch_to_inferior_no_thread instead.
1086
a0776b13
PA
10872020-06-18 Pedro Alves <palves@redhat.com>
1088
1089 * target.c (generic_mourn_inferior): Use switch_to_no_thread
1090 instead of writing to inferior_ptid.
1091
6155c136
PA
10922020-06-18 Pedro Alves <palves@redhat.com>
1093
1094 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
1095 added thread.
1096 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
1097 to the added thread.
1098 (inf_ptrace_target::detach_success): Use switch_to_no_thread
1099 instead of writing to inferior_ptid.
1100
c5316fc6
PA
11012020-06-18 Pedro Alves <palves@redhat.com>
1102
1103 * gdbarch-selftests.c: Include "progspace-and-thread.h".
1104 (register_to_value_test): Mock a program_space too. Heap-allocate
1105 the address space. Don't write to inferior_ptid. Use
1106 switch_to_thread instead.
1107
8df01799
PA
11082020-06-18 Pedro Alves <palves@redhat.com>
1109
1110 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
1111 Delete.
1112 (find_signalled_thread()): New, factored out from
1113 linux_make_corefile_notes and adjusted to handle exited threads.
1114 (linux_make_corefile_notes): Adjust to use the new
1115 find_signalled_thread.
1116
41792d68
PA
11172020-06-18 Pedro Alves <palves@redhat.com>
1118
1119 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
1120 of saving/restoring inferior_ptid.
1121
612f258a
TT
11222020-06-17 Tom Tromey <tom@tromey.com>
1123
1124 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
1125 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
1126 declare.
1127 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
1128
efb763a5
SM
11292020-06-15 Simon Marchi <simon.marchi@efficios.com>
1130
1131 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
1132 of partial symtabs.
1133
2951f6c0
SM
11342020-06-17 Simon Marchi <simon.marchi@efficios.com>
1135
1136 * regformats/reg-arm.dat: Remove.
1137 * regformats/reg-bfin.dat: Remove.
1138 * regformats/reg-cris.dat: Remove.
1139 * regformats/reg-crisv32.dat: Remove.
1140 * regformats/reg-m32r.dat: Remove.
1141 * regformats/reg-tilegx.dat: Remove.
1142 * regformats/reg-tilegx32.dat: Remove.
1143
7d458ea5
SM
11442020-06-17 Simon Marchi <simon.marchi@efficios.com>
1145
1146 * features/Makefile (WHICH): Remove arm files.
1147 * regformats/arm/arm-with-iwmmxt.dat: Remove.
1148 * regformats/arm/arm-with-neon.dat: Remove.
1149 * regformats/arm/arm-with-vfpv2.dat: Remove.
1150 * regformats/arm/arm-with-vfpv3.dat: Remove.
1151
3af96c0d
SM
11522020-06-17 Simon Marchi <simon.marchi@efficios.com>
1153
1154 * features/Makefile (XMLTOC): Remove rx.xml.
1155
b25e22fd
PA
11562020-06-17 Pedro Alves <palves@redhat.com>
1157
1158 * gdbthread.h (thread_control_state) <trap_expected> Update
1159 comments.
1160
a78a19b1
AB
11612020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1162
1163 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
1164 ada_language::lookup_symbol_nonlocal.
1165 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
1166 (ada_language::lookup_symbol_nonlocal): New member function,
1167 implementation from ada_lookup_symbol_nonlocal.
1168 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
1169 initializer.
1170 (cplus_language_data): Delete la_lookup_symbol_nonlocal
1171 initializer.
1172 (cplus_language::lookup_symbol_nonlocal): New member function.
1173 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
1174 (minimal_language_data) Likewise.
1175 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
1176 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
1177 initializer.
1178 (d_language::lookup_symbol_nonlocal): New member function.
1179 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
1180 initializer.
1181 (f_language::lookup_symbol_nonlocal): New member function.
1182 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
1183 initializer.
1184 * language.c (unknown_language_data): Likewise.
1185 (auto_language_data): Likewise.
1186 * language.h (language_data): Delete la_lookup_symbol_nonlocal
1187 field.
1188 (language_defn::lookup_symbol_nonlocal): New member function.
1189 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
1190 initializer.
1191 * objc-lang.c (objc_language_data): Likewise.
1192 * opencl-lang.c (opencl_language_data): Likewise.
1193 * p-lang.c (pascal_language_data): Likewise.
1194 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
1195 rust_language::lookup_symbol_nonlocal.
1196 (rust_language_data): Delete la_lookup_symbol_nonlocal
1197 initializer.
1198 (rust_language::lookup_symbol_nonlocal): New member function,
1199 implementation from rust_lookup_symbol_nonlocal.
1200 * symtab.c (lookup_symbol_aux): Update call to
1201 lookup_symbol_nonlocal.
1202 (basic_lookup_symbol_nonlocal): Rename to...
1203 (language_defn::lookup_symbol_nonlocal): ...this, and update
1204 header comment. Remove language_defn parameter, and replace with
1205 uses of `this'.
1206 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
1207
ebe2334e
AB
12082020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1209
1210 * ada-lang.c (ada_language_data): Delete la_value_print_inner
1211 initializer.
1212 (ada_language::value_print_inner): New member function.
1213 * c-lang.c (c_language_data): Delete la_value_print_inner
1214 initializer.
1215 (cplus_language_data): Likewise.
1216 (asm_language_data): Likewise.
1217 (minimal_language_data): Likewise.
1218 * d-lang.c (d_language_data): Likewise.
1219 (d_language::value_print_inner): New member function.
1220 * f-lang.c (f_language_data): Delete la_value_print_inner
1221 initializer.
1222 (f_language::value_print_inner): New member function.
1223 * f-lang.h (f_value_print_innner): Rename to...
1224 (f_value_print_inner): ...this (note spelling of 'inner').
1225 * f-valprint.c (f_value_print_innner): Rename to...
1226 (f_value_print_inner): ...this (note spelling of 'inner').
1227 * go-lang.c (go_language_data): Delete la_value_print_inner
1228 initializer.
1229 (go_language::value_print_inner): New member function.
1230 * language.c (language_defn::value_print_inner): Define new member
1231 function.
1232 (unk_lang_value_print_inner): Delete.
1233 (unknown_language_data): Delete la_value_print_inner initializer.
1234 (unknown_language::value_print_inner): New member function.
1235 (auto_language_data): Delete la_value_print_inner initializer.
1236 (auto_language::value_print_inner): New member function.
1237 * language.h (language_data): Delete la_value_print_inner field.
1238 (language_defn::value_print_inner): Delcare new member function.
1239 * m2-lang.c (m2_language_data): Delete la_value_print_inner
1240 initializer.
1241 (m2_language::value_print_inner): New member function.
1242 * objc-lang.c (objc_language_data): Delete la_value_print_inner
1243 initializer.
1244 * opencl-lang.c (opencl_language_data): Likewise.
1245 * p-lang.c (pascal_language_data): Likewise.
1246 (pascal_language::value_print_inner): New member function.
1247 * rust-lang.c (rust_language_data): Delete la_value_print_inner
1248 initializer.
1249 (rust_language::value_print_inner): New member function.
1250 * valprint.c (do_val_print): Update call to value_print_inner.
1251
a1d1fa3e
AB
12522020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1253
1254 * ada-lang.c (ada_language_data): Delete la_value_print
1255 initializer.
1256 (ada_language::value_print): New member function.
1257 * c-lang.c (c_language_data): Delete la_value_print initializer.
1258 (cplus_language_data): Likewise.
1259 (asm_language_data): Likewise.
1260 (minimal_language_data): Likewise.
1261 * d-lang.c (d_language_data): Likewise.
1262 * f-lang.c (f_language_data): Likewise.
1263 * go-lang.c (go_language_data): Likewise.
1264 * language.c (unk_lang_value_print): Delete.
1265 (language_defn::value_print): Define new member function.
1266 (unknown_language_data): Delete la_value_print initializer.
1267 (unknown_language::value_print): New member function.
1268 (auto_language_data): Delete la_value_print initializer.
1269 (auto_language::value_print): New member function.
1270 * language.h (language_data): Delete la_value_print field.
1271 (language_defn::value_print): Declare new member function.
1272 (LA_VALUE_PRINT): Update call to value_print.
1273 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
1274 * objc-lang.c (objc_language_data): Likewise.
1275 * opencl-lang.c (opencl_language_data): Likewise.
1276 * p-lang.c (pascal_language_data): Likewise.
1277 (pascal_language::value_print): New member function.
1278 * rust-lang.c (rust_language_data): Delete la_value_print
1279 initializer.
1280
f16a9f57
AB
12812020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1282
1283 * ada-lang.c (ada_watch_location_expression): Rename to
1284 ada_language::watch_location_expression.
1285 (ada_language_data): Delete la_watch_location_expression
1286 initializer.
1287 (ada_language::watch_location_expression): New member function,
1288 implementation from ada_watch_location_expression.
1289 * breakpoint.c (watch_command_1): Update call to
1290 watch_location_expression.
1291 * c-lang.c (c_watch_location_expression): Rename to
1292 language_defn::watch_location_expression.
1293 (c_language_data): Delete la_watch_location_expression
1294 initializer.
1295 (cplus_language_data): Likewise.
1296 (asm_language_data): Likewise.
1297 (minimal_language_data): Likewise.
1298 * c-lang.h (c_watch_location_expression): Delete declaration.
1299 * d-lang.c (d_language_data): Delete la_watch_location_expression
1300 initializer.
1301 * f-lang.c (f_language_data): Likewise.
1302 * go-lang.c (go_language_data): Likewise.
1303 * language.c (language_defn::watch_location_expression): Member
1304 function implementation from c_watch_location_expression.
1305 (unknown_language_data): Delete la_watch_location_expression
1306 initializer.
1307 (auto_language_data): Likewise.
1308 * language.h (language_data): Delete la_watch_location_expression
1309 field.
1310 (language_defn::watch_location_expression): Declare new member
1311 function.
1312 * m2-lang.c (m2_language_data): Delete
1313 la_watch_location_expression initializer.
1314 * objc-lang.c (objc_language_data): Likewise.
1315 * opencl-lang.c (opencl_language_data): Likewise.
1316 * p-lang.c (pascal_language_data): Likewise.
1317 * rust-lang.c (rust_watch_location_expression): Rename to
1318 rust_language::watch_location_expression.
1319 (rust_language_data): Delete la_watch_location_expression
1320 initializer.
1321 (rust_language::watch_location_expression): New member function,
1322 implementation from rust_watch_location_expression.
1323
7e56227d
AB
13242020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1325
1326 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
1327 ada_language::collect_symbol_completion_matches.
1328 (ada_language_data): Delete la_collect_symbol_completion_matches
1329 initializer.
1330 (ada_language::collect_symbol_completion_matches): New member
1331 function, implementation from
1332 ada_collect_symbol_completion_matches.
1333 * c-lang.c (c_language_data): Delete
1334 la_collect_symbol_completion_matches initializer.
1335 (cplus_language_data): Likewise.
1336 (asm_language_data): Likewise.
1337 (minimal_language_data): Likewise.
1338 * d-lang.c (d_language_data): Likewise.
1339 * f-lang.c (f_collect_symbol_completion_matches): Rename to
1340 f_language::collect_symbol_completion_matches.
1341 (f_language_data): Delete la_collect_symbol_completion_matches
1342 initializer.
1343 (f_language::collect_symbol_completion_matches) New member
1344 function, implementation from f_collect_symbol_completion_matches.
1345 * go-lang.c (go_language_data): Delete
1346 la_collect_symbol_completion_matches initializer.
1347 * language.c (unknown_language_data): Likewise.
1348 (auto_language_data): Likewise.
1349 * language.h (language_data): Delete
1350 la_collect_symbol_completion_matches field.
1351 (language_defn::collect_symbol_completion_matches): New member
1352 function.
1353 * m2-lang.c (m2_language_data): Delete
1354 la_collect_symbol_completion_matches initializer.
1355 * objc-lang.c (objc_language_data): Likewise.
1356 * opencl-lang.c (opencl_language_data): Likewise.
1357 * p-lang.c (pascal_language_data): Likewise.
1358 * rust-lang.c (rust_language_data): Likewise.
1359 * symtab.c (default_collect_symbol_completion_matches): Delete.
1360 (collect_symbol_completion_matches): Update call to
1361 collect_symbol_completion_matches.
1362 (collect_symbol_completion_matches_type): Likewise.
1363 * symtab.h (default_collect_symbol_completion_matches): Delete
1364 declaration.
1365
53fc67f8
AB
13662020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1367
1368 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
1369 (ada_language_data): Delete la_word_break_characters initializer.
1370 (ada_language::word_break_characters): New member function.
1371 * c-lang.c (c_language_data): Delete la_word_break_characters
1372 initializer.
1373 (cplus_language_data): Likewise.
1374 (asm_language_data): Likewise.
1375 (minimal_language_data): Likewise.
1376 * completer.c: Update global comment.
1377 (advance_to_expression_complete_word_point): Update call to
1378 word_break_characters.
1379 (complete_files_symbols): Likewise.
1380 (complete_line_internal_1): Likewise.
1381 (default_completer_handle_brkchars): Likewise.
1382 (skip_quoted_chars): Likewise.
1383 * d-lang.c (d_language_data): Delete la_word_break_characters
1384 initializer.
1385 * f-lang.c (f_word_break_characters): Delete.
1386 (f_language_data): Delete la_word_break_characters initializer.
1387 (f_language::word_break_characters): New member function.
1388 * go-lang.c (go_language_data): Delete la_word_break_characters
1389 initializer.
1390 * language.c (unknown_language_data): Likewise.
1391 (auto_language_data): Likewise.
1392 * language.h (default_word_break_characters): Move declaration to
1393 earlier in the file.
1394 (language_data): Delete la_word_break_characters field.
1395 (language_defn::word_break_characters): New member function.
1396 * m2-lang.c (m2_language_data): Delete la_word_break_characters
1397 initializer.
1398 * objc-lang.c (objc_language_data): Likewise.
1399 * opencl-lang.c (opencl_language_data): Likewise.
1400 * p-lang.c (pascal_language_data): Likewise.
1401 * rust-lang.c (rust_language_data): Likewise.
1402
c9debfb9
AB
14032020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1404
1405 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
1406 (ada_language_data): Delete la_get_symbol_name_matcher
1407 initializer.
1408 (language_defn::get_symbol_name_matcher_inner): New member
1409 function.
1410 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
1411 initializer.
1412 (cplus_language_data): Likewise.
1413 (cplus_language::get_symbol_name_matcher_inner): New member
1414 function.
1415 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
1416 (minimal_language_data): Likewise.
1417 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
1418 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
1419 initializer.
1420 * dictionary.c (iter_match_first_hashed): Update call to
1421 get_symbol_name_matcher.
1422 (iter_match_next_hashed): Likewise.
1423 (iter_match_next_linear): Likewise.
1424 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
1425 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
1426 initializer.
1427 (f_language::get_symbol_name_matcher_inner): New member function.
1428 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
1429 initializer.
1430 * language.c (default_symbol_name_matcher): Update header comment,
1431 make static.
1432 (language_defn::get_symbol_name_matcher): New definition.
1433 (language_defn::get_symbol_name_matcher_inner): Likewise.
1434 (get_symbol_name_matcher): Delete.
1435 (unknown_language_data): Delete la_get_symbol_name_matcher
1436 initializer.
1437 (auto_language_data): Likewise.
1438 * language.h (language_data): Delete la_get_symbol_name_matcher
1439 field.
1440 (language_defn::get_symbol_name_matcher): New member function.
1441 (language_defn::get_symbol_name_matcher_inner): Likewise.
1442 (default_symbol_name_matcher): Delete declaration.
1443 * linespec.c (find_methods): Update call to
1444 get_symbol_name_matcher.
1445 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
1446 initializer.
1447 * minsyms.c (lookup_minimal_symbol): Update call to
1448 get_symbol_name_matcher.
1449 (iterate_over_minimal_symbols): Likewise.
1450 * objc-lang.c (objc_language_data): Delete
1451 la_get_symbol_name_matcher initializer.
1452 * opencl-lang.c (opencl_language_data): Likewise.
1453 * p-lang.c (pascal_language_data): Likewise.
1454 * psymtab.c (psymbol_name_matches): Update call to
1455 get_symbol_name_matcher.
1456 * rust-lang.c (rust_language_data): Delete
1457 la_get_symbol_name_matcher initializer.
1458 * symtab.c (symbol_matches_search_name): Update call to
1459 get_symbol_name_matcher.
1460 (compare_symbol_name): Likewise.
1461
9a49ad8c
AB
14622020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1463
1464 * ada-lang.c (ada_language_data): Delete la_compute_program
1465 initializer.
1466 * c-lang.c (c_language_data): Likewise.
1467 (c_language::compute_program): New member function.
1468 (cplus_language_data): Delete la_compute_program initializer.
1469 (cplus_language::compute_program): New member function.
1470 (asm_language_data): Delete la_compute_program initializer.
1471 (minimal_language_data): Likewise.
1472 * c-lang.h (c_compute_program): Update comment.
1473 (cplus_compute_program): Likewise.
1474 * compile/compile-c-support.c (c_compute_program): Likewise.
1475 (cplus_compute_program): Likewise.
1476 * compile/compile.c (compile_to_object): Update call to
1477 la_compute_program.
1478 * d-lang.c (d_language_data): Delete la_compute_program
1479 initializer.
1480 * f-lang.c (f_language_data): Likewise.
1481 * go-lang.c (go_language_data): Likewise.
1482 * language.c (unknown_language_data): Likewise.
1483 (auto_language_data): Likewise.
1484 * language.h (language_data): Delete la_compute_program field.
1485 (language_defn::compute_program): New member function.
1486 * m2-lang.c (m2_language_data): Delete la_compute_program
1487 initializer.
1488 * objc-lang.c (objc_language_data): Likewise.
1489 * opencl-lang.c (opencl_language_data): Likewise.
1490 * p-lang.c (pascal_language_data): Likewise.
1491 * rust-lang.c (rust_language_data): Likewise.
1492
eff93b4d
AB
14932020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1494
1495 * ada-lang.c (ada_language_data) Delete
1496 la_class_name_from_physname initializer.
1497 * c-lang.c (c_language_data): Likewise.
1498 (cplus_language_data): Likewise.
1499 (cplus_language::class_name_from_physname): New member function.
1500 (asm_language_data): Delete la_class_name_from_physname
1501 initializer.
1502 (minimal_language_data): Likewise.
1503 * d-lang.c (d_language_data): Likewise.
1504 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
1505 method on language_defn class.
1506 (guess_full_die_structure_name): Likewise.
1507 * f-lang.c (f_language_data): Delete la_class_name_from_physname
1508 initializer.
1509 * go-lang.c (go_language_data): Likewise.
1510 * language.c (language_class_name_from_physname): Delete.
1511 (unk_lang_class_name): Delete.
1512 (unknown_language_data): Delete la_class_name_from_physname
1513 initializer.
1514 (auto_language_data): Likewise.
1515 * language.h (language_data): Delete la_class_name_from_physname
1516 field.
1517 (language_defn::class_name_from_physname): New function.
1518 (language_class_name_from_physname): Delete declaration.
1519 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
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
de543742
TT
15262020-06-16 Tom Tromey <tom@tromey.com>
1527
1528 * tui/tui-data.h (STATUS_NAME): New macro.
1529 * tui/tui-layout.c (tui_remove_some_windows)
1530 (initialize_known_windows, tui_register_window)
1531 (tui_layout_split::remove_windows, initialize_layouts)
1532 (tui_new_layout_command): Don't use hard-coded window names.
1533
a350efd4
TT
15342020-06-16 Tom Tromey <tom@tromey.com>
1535
1536 PR tui/25348:
1537 * tui/tui.c (tui_ensure_readline_initialized): Rename from
1538 tui_initialize_readline. Only run once. Call rl_initialize.
1539 * tui/tui.h (tui_ensure_readline_initialized): Rename from
1540 tui_initialize_readline.
1541 * tui/tui-io.c (tui_setup_io): Call
1542 tui_ensure_readline_initialized.
1543 * tui/tui-interp.c (tui_interp::init): Update.
1544
39ec0490
TT
15452020-06-16 Tom Tromey <tom@tromey.com>
1546
1547 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
1548 Also preserve the status window.
1549
d2d1ea20
TT
15502020-06-16 Tom Tromey <tom@tromey.com>
1551
1552 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
1553 where m_window==nullptr.
1554
66920317
TT
15552020-06-15 Tom Tromey <tromey@adacore.com>
1556
1557 * windows-nat.c (windows_nat::handle_output_debug_string):
1558 Update.
1559 (windows_nat::handle_ms_vc_exception): Update.
1560 * target.h (target_read_string): Change API.
1561 * target.c (target_read_string): Change API.
1562 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
1563 Update.
1564 * solib-frv.c (frv_current_sos): Update.
1565 * solib-dsbt.c (dsbt_current_sos): Update.
1566 * solib-darwin.c (darwin_current_sos): Update.
1567 * linux-thread-db.c (inferior_has_bug): Update.
1568 * expprint.c (print_subexp_standard): Update.
1569 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
1570 (ada_exception_message_1): Update.
1571
a5d871dd
TT
15722020-06-15 Tom Tromey <tromey@adacore.com>
1573
1574 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
1575
670e35fa
TT
15762020-06-15 Tom Tromey <tromey@adacore.com>
1577
1578 * valprint.c (read_string): Update comment.
1579 * target.c (MIN): Remove.
1580 (target_read_string): Rewrite.
1581
f5272a3b
TT
15822020-06-15 Tom Tromey <tromey@adacore.com>
1583
1584 * corefile.c (read_memory_string): Remove.
1585 * ada-valprint.c (ada_value_print_ptr): Update.
1586 * ada-lang.h (ada_tag_name): Change return type.
1587 * ada-lang.c (type_from_tag): Update.
1588 (ada_tag_name_from_tsd): Change return type. Use
1589 target_read_string.
1590 (ada_tag_name): Likewise.
1591 * gdbcore.h (read_memory_string): Don't declare.
1592
2c074f49
HD
15932020-06-14 Hannes Domani <ssbssa@yahoo.de>
1594
1595 * symtab.c (rbreak_command): Ignore Windows drive colon.
1596
6a17d503
SM
15972020-06-12 Simon Marchi <simon.marchi@efficios.com>
1598
1599 * NEWS: Mention removed GDBserver host support.
1600
453c733f
NC
16012020-06-12 Nelson Chu <nelson.chu@sifive.com>
1602
1603 * features/riscv/rebuild-csr-xml.sh: Updated.
1604
2b4e6a3f
TT
16052020-06-11 Tom Tromey <tom@tromey.com>
1606
1607 PR gdb/18318:
1608 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
1609
4412332f
JG
16102020-06-09 Jonny Grant <jg@jguk.org>
16112020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
1612
1613 * main.c (captured_main_1): Don't print new line after help.
1614 (print_gdb_help): add mailing list and IRC channel information
1615 to --help. Add new lines between items in the footer. Remove
1616 quotes around bug url.
1617
2f33032a
KS
16182020-06-11 Keith Seitz <keiths@redhat.com>
1619
1620 PR gdb/21356
1621 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
1622 Resolve typedefs for type length calculations.
1623
7ab96794
TV
16242020-06-10 Tom de Vries <tdevries@suse.de>
1625
1626 PR ada/24713
1627 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
1628 (write_psymbols): Enable .gdb_index for ada.
1629 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
1630 ada.
1631
e5f3ece2
TV
16322020-06-10 Tom de Vries <tdevries@suse.de>
1633
1634 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
1635 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
1636 namei" instead of "const char *name" argument.
1637 (dw2_map_matching_symbols): Use "offset_type namei" variant of
1638 dw2_symtab_iter_init.
1639
940da03e
SM
16402020-06-08 Simon Marchi <simon.marchi@efficios.com>
1641
1642 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
1643 to use type::field and field::type instead.
1644
b6cdac4b
SM
16452020-06-08 Simon Marchi <simon.marchi@efficios.com>
1646
1647 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
1648 to use field::type instead.
1649
5d14b6e5
SM
16502020-06-08 Simon Marchi <simon.marchi@efficios.com>
1651
1652 * gdbtypes.h (struct field) <type, set_type>: New methods.
1653 Rename `type` field to...
1654 <m_type>: ... this. Change references throughout to use type or
1655 set_type methods.
1656 (FIELD_TYPE): Use field::type. Change call sites that modify
1657 the field's type to use field::set_type instead.
1658
3d967001
SM
16592020-06-08 Simon Marchi <simon.marchi@efficios.com>
1660
1661 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
1662 to use type::index_type instead.
1663
262abc0d
SM
16642020-06-08 Simon Marchi <simon.marchi@efficios.com>
1665
1666 * gdbtypes.h (struct type) <index_type, set_index_type>: New
1667 methods.
1668 (TYPE_INDEX_TYPE): Use type::index_type.
1669 * gdbtypes.c (create_array_type_with_stride): Likewise.
1670
82836c92
TT
16712020-06-07 Tom Tromey <tom@tromey.com>
1672
1673 * valprint.c (generic_val_print_float): Remove "embedded_offset"
1674 parameter.
1675 (generic_value_print): Update.
1676
940dace9
AB
16772020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
1678
1679 Revert commit 982a38f60b0.
1680 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
1681
982a38f6
AB
16822020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
1683
1684 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
1685 avoid use after free.
1686
82f06518
TV
16872020-06-05 Tom de Vries <tdevries@suse.de>
1688
1689 * NEWS: Fix typos.
1690
f8c41851
SM
16912020-06-04 Simon Marchi <simon.marchi@efficios.com>
1692
1693 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
1694 the per_bfd object.
1695 (dwarf2_read_debug_names): Likewise.
1696 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
1697 object when re-using a per_bfd object with an index.
1698
f9b5d5ea
TV
16992020-06-03 Tom de Vries <tdevries@suse.de>
1700
1701 PR symtab/26046
1702 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
1703 children for C++.
1704 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
1705 DW_TAG_subprogram.
1706
f6eee2d0
AB
17072020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
1708
1709 * ada-lang.c (ada_language_data): Delete skip_trampoline
1710 initializer.
1711 * c-lang.c (c_language_data): Likewise.
1712 (cplus_language_data): Likewise.
1713 (cplus_language::skip_trampoline): New member function.
1714 (asm_language_data): Delete skip_trampoline initializer.
1715 (minimal_language_data): Likewise.
1716 * d-lang.c (d_language_data): Likewise.
1717 * f-lang.c (f_language_data): Likewise.
1718 * go-lang.c (go_language_data): Likewise.
1719 * language.c (unk_lang_trampoline): Delete function.
1720 (skip_language_trampoline): Update.
1721 (unknown_language_data): Delete skip_trampoline initializer.
1722 (auto_language_data): Likewise.
1723 * language.h (language_data): Delete skip_trampoline field.
1724 (language_defn::skip_trampoline): New function.
1725 * m2-lang.c (m2_language_data): Delete skip_trampoline
1726 initializer.
1727 * objc-lang.c (objc_skip_trampoline): Delete function, move
1728 implementation to objc_language::skip_trampoline.
1729 (objc_language_data): Delete skip_trampoline initializer.
1730 (objc_language::skip_trampoline): New member function with
1731 implementation from objc_skip_trampoline.
1732 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
1733 initializer.
1734 * p-lang.c (pascal_language_data): Likewise.
1735 * rust-lang.c (rust_language_data): Likewise.
1736
0a50df5d
AB
17372020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
1738
1739 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
1740 (ada_language::demangle): New member function.
1741 * c-lang.c (c_language_data): Delete la_demangle initializer.
1742 (cplus_language_data): Delete la_demangle initializer.
1743 (cplus_language::demangle): New member function.
1744 (asm_language_data): Delete la_demangle initializer.
1745 (minimal_language_data): Delete la_demangle initializer.
1746 * d-lang.c (d_language_data): Delete la_demangle initializer.
1747 (d_language::demangle): New member function.
1748 * f-lang.c (f_language_data): Delete la_demangle initializer.
1749 (f_language::demangle): New member function.
1750 * go-lang.c (go_language_data): Delete la_demangle initializer.
1751 (go_language::demangle): New member function.
1752 * language.c (language_demangle): Update.
1753 (unk_lang_demangle): Delete.
1754 (unknown_language_data): Delete la_demangle initializer.
1755 (unknown_language::demangle): New member function.
1756 (auto_language_data): Delete la_demangle initializer.
1757 (auto_language::demangle): New member function.
1758 * language.h (language_data): Delete la_demangle field.
1759 (language_defn::demangle): New function.
1760 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
1761 * objc-lang.c (objc_language_data): Delete la_demangle
1762 initializer.
1763 (objc_language::demangle): New member function.
1764 * opencl-lang.c (opencl_language_data): Delete la_demangle
1765 initializer.
1766 * p-lang.c (pascal_language_data): Likewise.
1767 * rust-lang.c (rust_language_data): Likewise.
1768 (rust_language::demangle): New member function.
1769
fbfb0a46
AB
17702020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
1771
1772 * ada-lang.c (ada_language_data): Delete la_print_type
1773 initializer.
1774 (ada_language::print_type): New member function.
1775 * c-lang.c (c_language_data): Delete la_print_type initializer.
1776 (c_language::print_type): New member function.
1777 (cplus_language_data): Delete la_print_type initializer.
1778 (cplus_language::print_type): New member function.
1779 (asm_language_data): Delete la_print_type initializer.
1780 (asm_language::print_type): New member function.
1781 (minimal_language_data): Delete la_print_type initializer.
1782 (minimal_language::print_type): New member function.
1783 * d-lang.c (d_language_data): Delete la_print_type initializer.
1784 (d_language::print_type): New member function.
1785 * f-lang.c (f_language_data): Delete la_print_type initializer.
1786 (f_language::print_type): New member function.
1787 * go-lang.c (go_language_data): Delete la_print_type initializer.
1788 (go_language::print_type): New member function.
1789 * language.c (unk_lang_print_type): Delete.
1790 (unknown_language_data): Delete la_print_type initializer.
1791 (unknown_language::print_type): New member function.
1792 (auto_language_data): Delete la_print_type initializer.
1793 (auto_language::print_type): New member function.
1794 * language.h (language_data): Delete la_print_type field.
1795 (language_defn::print_type): New function.
1796 (LA_PRINT_TYPE): Update.
1797 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
1798 (m2_language::print_type): New member function.
1799 * objc-lang.c (objc_language_data): Delete la_print_type
1800 initializer.
1801 (objc_language::print_type): New member function.
1802 * opencl-lang.c (opencl_print_type): Delete, implementation moved
1803 to opencl_language::print_type.
1804 (opencl_language_data): Delete la_print_type initializer.
1805 (opencl_language::print_type): New member function, implementation
1806 from opencl_print_type.
1807 * p-lang.c (pascal_language_data): Delete la_print_type
1808 initializer.
1809 (pascal_language::print_type): New member function.
1810 * rust-lang.c (rust_print_type): Delete, implementation moved to
1811 rust_language::print_type.
1812 (rust_language_data): Delete la_print_type initializer.
1813 (rust_language::print_type): New member function, implementation
1814 from rust_print_type.
1815
6f827019
AB
18162020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
1817
1818 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
1819 implementation moves to...
1820 (ada_language::sniff_from_mangled_name): ...here. Update return
1821 type.
1822 (ada_language_data): Delete la_sniff_from_mangled_name
1823 initializer.
1824 * c-lang.c (c_language_data): Likewise.
1825 (cplus_language_data): Likewise.
1826 (cplus_language::sniff_from_mangled_name): New member function,
1827 implementation taken from gdb_sniff_from_mangled_name.
1828 (asm_language_data): Delete la_sniff_from_mangled_name
1829 initializer.
1830 (minimal_language_data): Likewise.
1831 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
1832 implementation moves to cplus_language::sniff_from_mangled_name.
1833 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
1834 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
1835 moves to...
1836 (d_language::sniff_from_mangled_name): ...here.
1837 (d_language_data): Delete la_sniff_from_mangled_name initializer.
1838 * f-lang.c (f_language_data): Likewise.
1839 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
1840 moves to...
1841 (go_language::sniff_from_mangled_name): ...here.
1842 (go_language_data): Delete la_sniff_from_mangled_name initializer.
1843 * language.c (language_sniff_from_mangled_name): Delete.
1844 (unknown_language_data): Delete la_sniff_from_mangled_name
1845 initializer.
1846 (auto_language_data): Likewise.
1847 * language.h (language_data): Delete la_sniff_from_mangled_name
1848 field.
1849 (language_defn::sniff_from_mangled_name): New function.
1850 (language_sniff_from_mangled_name): Delete declaration.
1851 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
1852 field.
1853 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
1854 implementation moves to...
1855 (objc_language::sniff_from_mangled_name): ...here.
1856 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
1857 * opencl-lang.c (opencl_language_data): Likewise.
1858 * p-lang.c (pascal_language_data): Likewise.
1859 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
1860 implementation moves to...
1861 (rust_language::sniff_from_mangled_name): ...here.
1862 (rust_language_data): Delete la_sniff_from_mangled_name
1863 initializer.
1864 * symtab.c (symbol_find_demangled_name): Call
1865 sniff_from_mangled_name member function.
1866
fb8006fd
AB
18672020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
1868
1869 * ada-lang.c (ada_language_data): Delete la_search_name_hash
1870 initializer.
1871 * c-lang.c (c_language_data): Likewise.
1872 (cplus_language_data): Likewise.
1873 (cplus_language::search_name_hash): New member function.
1874 (asm_language_data): Delete la_search_name_hash initializer.
1875 (minimal_language_data): Likewise.
1876 * d-lang.c (d_language_data): Likewise.
1877 * dictionary.c (default_search_name_hash): Rename to...
1878 (language_defn::search_name_hash): ...this.
1879 * f-lang.c (f_language_data): Likewise.
1880 (f_language::search_name_hash): New member function.
1881 * go-lang.c (go_language_data): Delete la_search_name_hash
1882 initializer.
1883 * language.c (unknown_language_data): Likewise.
1884 (auto_language_data): Likewise.
1885 * language.h (struct language_data): Delete la_search_name_hash
1886 field.
1887 (language_defn::search_name_hash): Declare new member function.
1888 (default_search_name_hash): Delete declaration.
1889 * m2-lang.c (m2_language_data): Delete la_search_name_hash
1890 initializer.
1891 * objc-lang.c (objc_language_data): Likewise.
1892 * opencl-lang.c (opencl_language_data): Likewise.
1893 * p-lang.c (pascal_language_data): Likewise.
1894 * rust-lang.c (rust_language_data): Likewise.
1895 * symtab.c (search_name_hash): Update call.
1896
8e25bafe
AB
18972020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
1898
1899 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
1900 initializer.
1901 * c-lang.c (class compile_instance): Declare.
1902 (c_language_data): Delete la_get_compile_instance initializer.
1903 (c_language::get_compile_instance): New member function.
1904 (cplus_language_data): Delete la_get_compile_instance initializer.
1905 (cplus_language::get_compile_instance): New member function.
1906 (asm_language_data): Delete la_get_compile_instance initializer.
1907 (minimal_language_data): Likewise.
1908 * c-lang.h (c_get_compile_context): Update comment.
1909 (cplus_get_compile_context): Update comment.
1910 * compile/compile.c (compile_to_object): Update calls, don't rely
1911 on function pointer being NULL.
1912 * d-lang.c (d_language_data): Delete la_get_compile_instance
1913 initializer.
1914 * f-lang.c (f_language_data): Likewise.
1915 * go-lang.c (go_language_data): Likewise.
1916 * language.c (unknown_language_data): Likewise.
1917 (auto_language_data): Likewise.
1918 * language.h (language_data): Delete la_get_compile_instance field.
1919 (language_defn::get_compile_instance): New member function.
1920 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
1921 initializer.
1922 * objc-lang.c (objc_language_data): Likewise.
1923 * opencl-lang.c (opencl_language_data): Likewise.
1924 * p-lang.c (pascal_language_data): Likewise.
1925 * rust-lang.c (rust_language_data): Likewise.
1926
4009ee92
AB
19272020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
1928
1929 * ada-lang.c (ada_add_all_symbols): Update comment.
1930 (ada_iterate_over_symbols): Delete, move implementation to...
1931 (ada_language::iterate_over_symbols): ...here, a new member
1932 function, rewrite to use range based for loop.
1933 (ada_language_data): Delete la_iterate_over_symbols initializer.
1934 * c-lang.c (c_language_data): Likewise.
1935 (cplus_language_data): Likewise.
1936 (asm_language_data): Likewise.
1937 (minimal_language_data): Likewise.
1938 * d-lang.c (d_language_data): Likewise.
1939 * f-lang.c (f_language_data): Likewise.
1940 * go-lang.c (go_language_data): Likewise.
1941 * language.c (unknown_language_data): Likewise.
1942 (auto_language_data): Likewise.
1943 * language.h (language_data): Delete la_iterate_over_symbols field.
1944 (language_defn::iterate_over_symbols): New member function.
1945 (LA_ITERATE_OVER_SYMBOLS): Update.
1946 * linespec.c (iterate_over_all_matching_symtabs): Update.
1947 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
1948 initializer.
1949 * objc-lang.c (objc_language_data): Likewise.
1950 * opencl-lang.c (opencl_language_data): Likewise.
1951 * p-lang.c (pascal_language_data): Likewise.
1952 * rust-lang.c (rust_language_data): Likewise.
1953
54f4ca46
AB
19542020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
1955
1956 * ada-lang.c (ada_language_data): Delete
1957 la_lookup_transparent_type initializer.
1958 * c-lang.c (c_language_data): Likewise.
1959 (cplus_language_data): Likewise.
1960 (cplus_language::lookup_transparent_type): New member function.
1961 (asm_language_data): Delete la_lookup_transparent_type
1962 initializer.
1963 (minimal_language_data): Likewise.
1964 * d-lang.c (d_language_data): Likewise.
1965 * f-lang.c (f_language_data): Likewise.
1966 * go-lang.c (go_language_data): Likewise.
1967 * language.c (unknown_language_data): Likewise.
1968 (auto_language_data): Likewise.
1969 * language.h (struct language_data): Delete
1970 la_lookup_transparent_type field.
1971 (language_defn::lookup_transparent_type): New member function.
1972 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
1973 initializer.
1974 * objc-lang.c (objc_language_data): Likewise.
1975 * opencl-lang.c (opencl_language_data): Likewise.
1976 * p-lang.c (pascal_language_data): Likewise.
1977 * rust-lang.c (rust_language_data): Likewise.
1978 * symtab.c (symbol_matches_domain): Update call.
1979
1fb314aa
AB
19802020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
1981
1982 * ada-lang.c (ada_language_arch_info): Delete function, move
1983 implementation to...
1984 (ada_language::language_arch_info): ...here, a new member
1985 function.
1986 (ada_language_data): Delete la_language_arch_info.
1987 * c-lang.c (c_language_data): Likewise.
1988 (c_language::language_arch_info): New member function.
1989 (cplus_language_arch_info): Delete function, move
1990 implementation to...
1991 (cplus_language::language_arch_info): ...here, a new member
1992 function.
1993 (cplus_language_data): Delete la_language_arch_info.
1994 (asm_language_data): Likewise.
1995 (asm_language::language_arch_info): New member function.
1996 (minimal_language_data): Delete la_language_arch_info.
1997 (minimal_language::language_arch_info): New member function.
1998 * d-lang.c (d_language_arch_info): Delete function, move
1999 implementation to...
2000 (d_language::language_arch_info): ...here, a new member
2001 function.
2002 (d_language_data): Delete la_language_arch_info.
2003 * f-lang.c (f_language_arch_info): Delete function, move
2004 implementation to...
2005 (f_language::language_arch_info): ...here, a new member
2006 function.
2007 (f_language_data): Delete la_language_arch_info.
2008 * go-lang.c (go_language_arch_info): Delete function, move
2009 implementation to...
2010 (go_language::language_arch_info): ...here, a new member
2011 function.
2012 (go_language_data): Delete la_language_arch_info.
2013 * language.c (unknown_language_data): Likewise.
2014 (unknown_language::language_arch_info): New member function.
2015 (auto_language_data): Delete la_language_arch_info.
2016 (auto_language::language_arch_info): New member function.
2017 (language_gdbarch_post_init): Update call to
2018 la_language_arch_info.
2019 * language.h (language_data): Delete la_language_arch_info
2020 function pointer.
2021 (language_defn::language_arch_info): New function.
2022 * m2-lang.c (m2_language_arch_info): Delete function, move
2023 implementation to...
2024 (m2_language::language_arch_info): ...here, a new member
2025 function.
2026 (m2_language_data): Delete la_language_arch_info.
2027 * objc-lang.c (objc_language_arch_info): Delete function, move
2028 implementation to...
2029 (objc_language::language_arch_info): ...here, a new member
2030 function.
2031 (objc_language_data): Delete la_language_arch_info.
2032 * opencl-lang.c (opencl_language_arch_info): Delete function, move
2033 implementation to...
2034 (opencl_language::language_arch_info): ...here, a new member
2035 function.
2036 (opencl_language_data): Delete la_language_arch_info.
2037 * p-lang.c (pascal_language_arch_info): Delete function, move
2038 implementation to...
2039 (pascal_language::language_arch_info): ...here, a new member
2040 function.
2041 (pascal_language_data): Delete la_language_arch_info.
2042 * rust-lang.c (rust_language_arch_info): Delete function, move
2043 implementation to...
2044 (rust_language::language_arch_info): ...here, a new member
2045 function.
2046 (rust_language_data): Delete la_language_arch_info.
2047
48448202
AB
20482020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2049
2050 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
2051 initializer.
2052 * c-lang.c (c_language_data): Likewise.
2053 (cplus_language_data): Likewise.
2054 (cplus_language::pass_by_reference_info): New method.
2055 (asm_language_data): Delete la_pass_by_reference initializer.
2056 (minimal_language_data): Likewise.
2057 * cp-abi.c (cp_pass_by_reference): Remove use of
2058 default_pass_by_reference.
2059 * d-lang.c (d_language_data): Likewise.
2060 * f-lang.c (f_language_data): Likewise.
2061 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
2062 default_pass_by_reference.
2063 * go-lang.c (go_language_data): Likewise.
2064 * language.c (language_pass_by_reference): Update.
2065 (default_pass_by_reference): Delete.
2066 (unknown_language_data): Delete la_pass_by_reference
2067 initializer.
2068 (auto_language_data): Likewise.
2069 * language.h (struct language_data): Delete la_pass_by_reference
2070 field.
2071 (language_defn::pass_by_reference_info): New member function.
2072 (default_pass_by_reference): Delete declaration.
2073 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
2074 initializer.
2075 * objc-lang.c (objc_language_data): Likewise.
2076 * opencl-lang.c (opencl_language_data): Likewise.
2077 * p-lang.c (pascal_language_data): Likewise.
2078 * rust-lang.c (rust_language_data): Likewise.
2079
15e5fd35
AB
20802020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2081
2082 * ada-lang.c (ada_read_var_value): Delete function, move
2083 implementation to...
2084 (ada_language::read_var_value): ...here.
2085 (ada_language_data): Delete la_read_var_value initializer.
2086 * c-lang.c (c_language_data): Likewise.
2087 (cplus_language_data): Likewise.
2088 (minimal_language_data): Likewise.
2089 * d-lang.c (d_language_data): Likewise.
2090 * f-lang.c (f_language_data): Likewise.
2091 * findvar.c (default_read_var_value): Rename to...
2092 (language_defn::read_var_value): ...this.
2093 * findvar.c (read_var_value): Update header comment, and change to
2094 call member function instead of function pointer.
2095 * go-lang.c (go_language_data): Likewise.
2096 * language.c (unknown_language_data): Delete la_read_var_value
2097 initializer.
2098 (auto_language_data): Likewise.
2099 * language.h (struct language_data): Delete la_read_var_value
2100 field.
2101 (language_defn::read_var_value): New member function.
2102 (default_read_var_value): Delete declaration.
2103 * m2-lang.c (m2_language_data): Delete la_read_var_value
2104 initializer.
2105 * objc-lang.c (objc_language_data): Likewise.
2106 * opencl-lang.c (opencl_language_data): Likewise.
2107 * p-lang.c (pascal_language_data): Likewise.
2108 * rust-lang.c (rust_language_data): Likewise.
2109 * value.h (default_read_var_value): Delete declaration.
2110
5bd40f2a
AB
21112020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2112
2113 * ada-lang.c (ada_print_array_index): Delete function, move
2114 implementation to...
2115 (ada_language::print_array_index): ...here.
2116 (ada_language_data): Delete la_print_array_index initializer.
2117 * c-lang.c (c_language_data): Likewise.
2118 (cplus_language_data): Likewise.
2119 (minimal_language_data): Likewise.
2120 * d-lang.c (d_language_data): Likewise.
2121 * f-lang.c (f_language_data): Likewise.
2122 * go-lang.c (go_language_data): Likewise.
2123 * language.c (default_print_array_index): Delete function, move
2124 implementation to...
2125 (language_defn::print_array_index): ...here.
2126 (unknown_language_data): Delete la_print_array_index initializer.
2127 (auto_language_data): Likewise.
2128 * language.h (struct language_data): Delete la_print_array_index
2129 field.
2130 (language_defn::print_array_index): New member function.
2131 (LA_PRINT_ARRAY_INDEX): Update.
2132 (default_print_array_index): Delete declaration.
2133 * m2-lang.c (m2_language_data): Delete la_print_array_index
2134 initializer.
2135 * objc-lang.c (objc_language_data): Likewise.
2136 * opencl-lang.c (opencl_language_data): Likewise.
2137 * p-lang.c (pascal_language_data): Likewise.
2138 * rust-lang.c (rust_language_data): Likewise.
2139
0874fd07
AB
21402020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2141
2142 * gdb/ada-lang.c (ada_language_defn): Convert to...
2143 (ada_language_data): ...this.
2144 (class ada_language): New class.
2145 (ada_language_defn): New static global.
2146 * gdb/c-lang.c (c_language_defn): Convert to...
2147 (c_language_data): ...this.
2148 (class c_language): New class.
2149 (c_language_defn): New static global.
2150 (cplus_language_defn): Convert to...
2151 (cplus_language_data): ...this.
2152 (class cplus_language): New class.
2153 (cplus_language_defn): New static global.
2154 (asm_language_defn): Convert to...
2155 (asm_language_data): ...this.
2156 (class asm_language): New class.
2157 (asm_language_defn): New static global.
2158 (minimal_language_defn): Convert to...
2159 (minimal_language_data): ...this.
2160 (class minimal_language): New class.
2161 (minimal_language_defn): New static global.
2162 * gdb/d-lang.c (d_language_defn): Convert to...
2163 (d_language_data): ...this.
2164 (class d_language): New class.
2165 (d_language_defn): New static global.
2166 * gdb/f-lang.c (f_language_defn): Convert to...
2167 (f_language_data): ...this.
2168 (class f_language): New class.
2169 (f_language_defn): New static global.
2170 * gdb/go-lang.c (go_language_defn): Convert to...
2171 (go_language_data): ...this.
2172 (class go_language): New class.
2173 (go_language_defn): New static global.
2174 * gdb/language.c (unknown_language_defn): Remove declaration.
2175 (current_language): Initialize to nullptr, real initialization is
2176 moved to _initialize_language.
2177 (languages): Delete global.
2178 (language_defn::languages): Define.
2179 (set_language_command): Use language_defn::languages.
2180 (set_language): Likewise.
2181 (range_error): Likewise.
2182 (language_enum): Likewise.
2183 (language_def): Likewise.
2184 (add_set_language_command): Use language_def::languages for the
2185 language list, and language_def to lookup language pointers.
2186 (skip_language_trampoline): Use language_defn::languages.
2187 (unknown_language_defn): Convert to...
2188 (unknown_language_data): ...this.
2189 (class unknown_language): New class.
2190 (unknown_language_defn): New static global.
2191 (auto_language_defn): Convert to...
2192 (auto_language_data): ...this.
2193 (class auto_language): New class.
2194 (auto_language_defn): New static global.
2195 (language_gdbarch_post_init): Use language_defn::languages.
2196 (_initialize_language): Initialize current_language.
2197 * gdb/language.h (struct language_defn): Rename to...
2198 (struct language_data): ...this.
2199 (struct language_defn): New.
2200 (auto_language_defn): Delete.
2201 (unknown_language_defn): Delete.
2202 (minimal_language_defn): Delete.
2203 (ada_language_defn): Delete.
2204 (asm_language_defn): Delete.
2205 (c_language_defn): Delete.
2206 (cplus_language_defn): Delete.
2207 (d_language_defn): Delete.
2208 (f_language_defn): Delete.
2209 (go_language_defn): Delete.
2210 (m2_language_defn): Delete.
2211 (objc_language_defn): Delete.
2212 (opencl_language_defn): Delete.
2213 (pascal_language_defn): Delete.
2214 (rust_language_defn): Delete.
2215 * gdb/m2-lang.c (m2_language_defn): Convert to...
2216 (m2_language_data): ...this.
2217 (class m2_language): New class.
2218 (m2_language_defn): New static global.
2219 * gdb/objc-lang.c (objc_language_defn): Convert to...
2220 (objc_language_data): ...this.
2221 (class objc_language): New class.
2222 (objc_language_defn): New static global.
2223 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
2224 (opencl_language_data): ...this.
2225 (class opencl_language): New class.
2226 (opencl_language_defn): New static global.
2227 * gdb/p-lang.c (pascal_language_defn): Convert to...
2228 (pascal_language_data): ...this.
2229 (class pascal_language): New class.
2230 (pascal_language_defn): New static global.
2231 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
2232 language pointer, update comment format.
2233 * gdb/rust-lang.c (rust_language_defn): Convert to...
2234 (rust_language_data): ...this.
2235 (class rust_language): New class.
2236 (rust_language_defn): New static global.
2237
1313c56e
AB
22382020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
2239
2240 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
2241 member variable.
2242 <m_stmt_at_address>: New member variable.
2243 (lnp_state_machine::record_line): Don't record some lines, update
2244 tracking of is_stmt at the same address.
2245 (lnp_state_machine::lnp_state_machine): Initialise new member
2246 variables.
2247
b7ed9f3d
ST
22482020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
2249
2250 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
2251 "-include gnu-nat-mig.h".
2252 * gnu-nat-mig.h: New file.
2253 * gnu-nat.c: Include "gnu-nat-mig.h".
2254 (exc_server, msg_reply_server, notify_server,
2255 process_reply_server): Remove declarations.
2256
14a8ad62
ST
22572020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2258
2259 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
2260 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
2261 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
2262 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
2263 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
2264 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
2265 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
2266 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
2267 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
2268 to gnu_nat_target class.
2269 * gnu-nat.c: Likewise.
2270 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
2271 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
2272 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
2273 object.
2274 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
2275 instead of `gnu_target'.
2276
0af5e106
ST
22772020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2278
2279 * i386-gnu-tdep.c: Include "gdbcore.h"
2280 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
2281 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
2282 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
2283 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
2284 i386_gnu_sigcontext_addr): New functions
2285 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
2286 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
2287 tdep.
2288
078f2fc9
ST
22892020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2290
2291 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
2292 before fork_inferior call. Avoid calling it if target_is_pushed returns
2293 true.
2294
53dff92c
ST
22952020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2296
2297 * gnu-nat.h (gnu_target): New variable declaration.
2298 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
2299 gnu_target.
2300 * gnu-nat.c (gnu_target): New variable.
2301 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
2302 add_thread_silent, and add_thread calls.
2303 (gnu_nat_target::create_inferior): Pass gnu_target to
2304 add_thread_silent, thread_change_ptid call.
2305 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
2306 call.
2307
5a8b8627
ST
23082020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2309
2310 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
2311 (gnu_nat_target::find_memory_regions): Remove unused
2312 `old_address' variable.
2313
366f550a
ST
23142020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2315
2316 * gnu-nat.c: Include "gdbarch.h".
2317
f14871bf
ST
23182020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2319
2320 * reply_mig_hack.awk (Error return): Cast function through
2321 void *, to bypass compiler function call check.
2322
c6887cfb
ST
23232020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2324
2325 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
2326 $(srcdir)/reply_mig_hack.awk.
2327
6930bffe
ST
23282020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2329
2330 * gnu-nat.h (gnu_debug_flag): Set type to bool.
2331
112c22ed
JG
23322020-05-30 Jonny Grant <jg@jguk.org>
2333
2334 * configure.ac (ACX_BUGURL): change bug URL to https.
2335
f68f85b5
PA
23362020-05-30 Pedro Alves <palves@redhat.com>
2337
2338 * cp-support.c (replace_typedefs_template): New.
2339 (replace_typedefs_qualified_name): Handle
2340 DEMANGLE_COMPONENT_TEMPLATE.
2341
976ca316
SM
23422020-05-29 Simon Marchi <simon.marchi@efficios.com>
2343
2344 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
2345 dwarf2/index-cache.h, dwarf2/index-write.c,
2346 dwarf2/index-write.h, dwarf2/line-header.c,
2347 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
2348 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
2349 variables and fields from `dwarf2_per_objfile` to just
2350 `per_objfile` throughout.
2351
989ade05
SM
23522020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
2353
2354 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
2355 <push_dwarf_reg_entry_value>: Add comment.
2356
c47bae85
KB
23572020-05-28 Kevin Buettner <kevinb@redhat.com>
2358 Keith Seitz <keiths@redhat.com>
2359
2360 * python/python.c (do_start_initialization): Call PyEval_SaveThread
2361 instead of PyEval_ReleaseLock.
2362 (class gdbpy_gil): Move to earlier in file.
2363 (finalize_python): Set gdb_python_initialized.
2364 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
2365 when not initialized.
2366
44486dcf
SM
23672020-05-28 Simon Marchi <simon.marchi@efficios.com>
2368
2369 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
2370 <push_dwarf_reg_entry_value>: Remove assert. Override
2371 per_objfile with caller_per_objfile.
2372
f030440d
TV
23732020-05-28 Tom de Vries <tdevries@suse.de>
2374
2375 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
2376 PR gold/15646 workaround to symbol kind "type".
2377
f0fbb768
TT
23782020-05-27 Tom Tromey <tromey@adacore.com>
2379
2380 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
2381
af0b2a3e
TT
23822020-05-27 Tom Tromey <tromey@adacore.com>
2383
2384 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
2385 Use htab_find_with_hash.
2386 <add_abbrev>: Remove "abbrev_number" parameter.
2387 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
2388 "abbrev_number" parameter. Use htab_find_slot_with_hash.
2389 (hash_abbrev): Add comment.
2390 (abbrev_table::lookup_abbrev): Move to header file.
2391 (abbrev_table::read): Update.
2392
7d00ffec
TT
23932020-05-27 Tom Tromey <tromey@adacore.com>
2394
2395 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
2396 method.
2397 <canonical_name>: New member.
2398 <raw_name>: Rename from "name".
2399 (partial_die_info): Initialize canonical_name.
2400 (scan_partial_symbols): Check raw_name.
2401 (partial_die_parent_scope, partial_die_full_name)
2402 (add_partial_symbol, add_partial_subprogram)
2403 (add_partial_enumeration, load_partial_dies): Use "name" method.
2404 (partial_die_info::name): New method.
2405 (partial_die_info::read, guess_partial_die_structure_name)
2406 (partial_die_info::fixup): Update.
2407
697bba18
TT
24082020-05-27 Tom Tromey <tromey@adacore.com>
2409
2410 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
2411 <get_ref_die_offset>: Inline.
2412 <get_ref_die_offset_complaint>: New method.
2413 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
2414 (attribute::get_ref_die_offset_complaint): Rename from
2415 get_ref_die_offset. Just issue complaint.
2416
c17ace43
HD
24172020-05-27 Hannes Domani <ssbssa@yahoo.de>
2418
2419 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
2420
96445f0b
HD
24212020-05-27 Hannes Domani <ssbssa@yahoo.de>
2422
2423 * exec.c (exec_file_attach): Use errno value of first openp failure.
2424
ac637ec3
HD
24252020-05-27 Hannes Domani <ssbssa@yahoo.de>
2426
2427 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
2428 Don't close thread handle.
2429
17ee85fc
TT
24302020-05-27 Tom Tromey <tom@tromey.com>
2431 Simon Marchi <simon.marchi@efficios.com>
2432
2433 * objfiles.h (struct objfile) <partial_symtabs>: Now a
2434 shared_ptr.
2435 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
2436 member.
2437 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
2438 dwarf2_per_bfd_objfile_data_key>: New globals.
2439 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
2440 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
2441 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
2442 shared.
2443 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
2444 short-circuit when sharing.
2445 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
2446 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
2447
39b16f87
SM
24482020-05-27 Simon Marchi <simon.marchi@efficios.com>
2449
2450 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
2451 to...
2452 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
2453 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
2454
fcf23d5b
SM
24552020-05-27 Simon Marchi <simon.marchi@efficios.com>
2456
2457 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
2458 build_name_components, find_name_components_bounds>:
2459 Add per_objfile parameter.
2460 (struct mapped_index) <symbol_name_at>: Likewise.
2461 (struct mapped_debug_names): Remove constructor.
2462 <dwarf2_per_objfile>: Remove field.
2463 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
2464 (mapped_index_base::find_name_components_bounds,
2465 mapped_index_base::build_name_components,
2466 dw2_expand_symtabs_matching_symbol): Likewise.
2467 (class mock_mapped_index) <symbol_name_at>: Likewise.
2468 (check_match): Likewise.
2469 (check_find_bounds_finds): Likewise.
2470 (test_mapped_index_find_name_component_bounds): Update.
2471 (CHECK_MATCH): Update.
2472 (dw2_expand_symtabs_matching): Update.
2473 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
2474 per_objfile parameter.
2475 <find_vec_in_debug_names>: Likewise.
2476 <m_per_objfile>: New field.
2477 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
2478 parameter.
2479 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
2480 (dw2_debug_names_iterator::next): Update.
2481 (dw2_debug_names_lookup_symbol): Update.
2482 (dw2_debug_names_expand_symtabs_for_function): Update.
2483 (dw2_debug_names_map_matching_symbols): Update.
2484 (dw2_debug_names_expand_symtabs_matching): Update.
2485 (dwarf2_read_debug_names): Update.
2486
7188ed02
SM
24872020-05-27 Simon Marchi <simon.marchi@efficios.com>
2488
2489 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
2490 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
2491 move to dwarf2_per_objfile.
2492 <read_in_chain>: Remove.
2493 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
2494 remove_all_cus, age_comp_units>: New methods.
2495 <m_dwarf2_cus>: New member.
2496 (struct dwarf2_per_cu_data) <cu>: Remove.
2497 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
2498 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
2499 moved to methods of dwarf2_per_objfile.
2500 (dwarf2_clear_marks): Remove.
2501 (dwarf2_queue_item::~dwarf2_queue_item): Update.
2502 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
2503 (dwarf2_per_bfd::free_cached_comp_units): Remove.
2504 (dwarf2_per_objfile::remove_all_cus): New.
2505 (class free_cached_comp_units) <~free_cached_comp_units>:
2506 Update.
2507 (load_cu): Update.
2508 (dw2_do_instantiate_symtab): Adjust.
2509 (fill_in_sig_entry_from_dwo_entry): Adjust.
2510 (cutu_reader::init_tu_and_read_dwo_dies): Update.
2511 (cutu_reader::cutu_reader): Likewise.
2512 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
2513 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
2514 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
2515 and dwarf2_per_objfile::age_comp_units.
2516 (load_partial_comp_unit): Update.
2517 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
2518 (process_queue): Likewise.
2519 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
2520 backlink.
2521 (dwarf2_read_addr_index): Likewise.
2522 (follow_die_offset): Likewise.
2523 (dwarf2_fetch_die_loc_sect_off): Likewise.
2524 (dwarf2_fetch_constant_bytes): Likewise.
2525 (dwarf2_fetch_die_type_sect_off): Likewise.
2526 (follow_die_sig_1): Likewise.
2527 (load_full_type_unit): Likewise.
2528 (read_signatured_type): Likewise.
2529 (dwarf2_cu::dwarf2_cu): Don't set cu field.
2530 (dwarf2_cu::~dwarf2_cu): Remove.
2531 (dwarf2_per_objfile::get_cu): New.
2532 (dwarf2_per_objfile::set_cu): New.
2533 (age_cached_comp_units): Rename to...
2534 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
2535 to std::unordered_map.
2536 (free_one_cached_comp_unit): Rename to...
2537 (dwarf2_per_objfile::remove_cu): ... this. Adjust
2538 to std::unordered_map.
2539 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
2540 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
2541 a dwarf2_per_objfile in data.
2542 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
2543 (dwarf2_clear_marks): Remove.
2544
2e671100
SM
25452020-05-27 Simon Marchi <simon.marchi@efficios.com>
2546
2547 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
2548 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
2549 (init_tu_and_read_dwo_dies): Likewise.
2550 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
2551 (cutu_reader::cutu_reader): Likewise.
2552 (load_partial_comp_unit): Likewise.
2553 (process_psymtab_comp_unit): Update.
2554 (build_type_psymtabs_1): Update.
2555 (process_skeletonless_type_unit): Update.
2556 (load_full_comp_unit): Update.
2557 (find_partial_die): Update.
2558 (dwarf2_read_addr_index): Update.
2559 (read_signatured_type): Update.
2560
2e6a9f79
SM
25612020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2562
2563 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
2564 m_header_read_in>: New fields.
2565 <get_header>: New method.
2566 * dwarf2/read.c (per_cu_header_read_in): Remove.
2567 (dwarf2_per_cu_data::get_header): New.
2568 (dwarf2_per_cu_data::addr_size): Update.
2569 (dwarf2_per_cu_data::offset_size): Update.
2570 (dwarf2_per_cu_data::ref_addr_size): Update.
2571
1b555f17
SM
25722020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2573
2574 * dwarf2/read.c (load_cu): Return dwarf2_cu.
2575 (dw2_do_instantiate_symtab): Update.
2576 (queue_and_load_all_dwo_tus): Change parameter from
2577 dwarf2_per_cu_data to dwarf2_cu.
2578 (dwarf2_fetch_die_loc_sect_off): Update.
2579 (dwarf2_fetch_constant_bytes): Update.
2580 (dwarf2_fetch_die_type_sect_off): Update.
2581
8fc0b21d
SM
25822020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2583
2584 * dwarf2/read.c (process_full_comp_unit,
2585 process_full_type_unit): Remove per_cu, per_objfile paramters.
2586 Add dwarf2_cu parameter.
2587 (process_queue): Update.
2588
168c9250
SM
25892020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2590
2591 * dwarf2/read.c (create_cu_from_index_list): Replace
2592 dwarf2_per_objfile parameter with dwarf2_per_bfd.
2593 (create_cus_from_index_list): Likewise.
2594 (create_cus_from_index): Likewise.
2595 (create_signatured_type_table_from_index): Likewise.
2596 (create_cus_from_debug_names_list): Likewise.
2597 (create_cus_from_debug_names): Likewise.
2598 (dwarf2_read_gdb_index): Update.
2599 (dwarf2_read_debug_names): Update.
2600
e286671b
TT
26012020-05-27 Tom Tromey <tom@tromey.com>
2602 Simon Marchi <simon.marchi@efficios.com>
2603
2604 * dwarf2/read.h (struct dwarf2_per_objfile)
2605 <get_type_for_signatured_type, set_type_for_signatured_type>:
2606 New methods.
2607 <m_type_map>: New member.
2608 (struct signatured_type) <type>: Remove.
2609 * dwarf2/read.c
2610 (dwarf2_per_objfile::get_type_for_signatured_type,
2611 dwarf2_per_objfile::set_type_for_signatured_type): New.
2612 (get_signatured_type): Use new methods.
2613
8adb8487
TT
26142020-05-27 Tom Tromey <tom@tromey.com>
2615 Simon Marchi <simon.marchi@efficios.com>
2616
2617 * dwarf2/read.h (struct type_unit_group_unshareable): New.
2618 (struct dwarf2_per_objfile) <type_units>: New member.
2619 <get_type_unit_group_unshareable>: New method.
2620 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
2621 num_symtabs, symtabs>: Remove; move to
2622 type_unit_group_unshareable.
2623 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
2624 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
2625 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
2626
127bbf4b
SM
26272020-05-27 Simon Marchi <simon.marchi@efficios.com>
2628
2629 * dwarf2/read.h (struct dwarf2_per_cu_data):
2630 <dwarf2_per_objfile>: Remove.
2631 * dwarf2/read.c (create_cu_from_index_list): Don't assign
2632 dwarf2_per_objfile.
2633 (create_signatured_type_table_from_index): Likewise.
2634 (create_signatured_type_table_from_debug_names): Likewise.
2635 (create_debug_type_hash_table): Likewise.
2636 (fill_in_sig_entry_from_dwo_entry): Likewise.
2637 (create_type_unit_group): Likewise.
2638 (read_comp_units_from_section): Likewise.
2639 (create_cus_hash_table): Likewise.
2640
f6e649dd
SM
26412020-05-27 Simon Marchi <simon.marchi@efficios.com>
2642
2643 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
2644 dwarf2_per_cu_data::dwarf2_per_objfile.
2645 (compute_compunit_symtab_includes): Likewise.
2646 (dwarf2_cu::start_symtab): Likewise.
2647
aa66c379
SM
26482020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2649
2650 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
2651 parameter.
2652 * dwarf2/read.c (get_die_type_at_offset): Likewise.
2653 (read_namespace_alias): Update.
2654 (lookup_die_type): Update.
2655 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
2656 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
2657 Update.
2658 (disassemble_dwarf_expression): Update.
2659
120ce1b5
SM
26602020-05-27 Simon Marchi <simon.marchi@efficios.com>
2661
2662 * dwarf2/read.h (struct dwarf2_queue_item): Add
2663 dwarf2_per_objfile parameter, assign new parameter.
2664 <per_objfile>: New field.
2665 * dwarf2/read.c (free_one_cached_comp_unit): Add
2666 dwarf2_per_objfile parameter.
2667 (queue_comp_unit): Likewise.
2668 (dw2_do_instantiate_symtab): Update.
2669 (process_psymtab_comp_unit): Update.
2670 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
2671 (process_imported_unit_die): Update.
2672 (queue_and_load_dwo_tu): Update.
2673 (follow_die_offset): Update.
2674 (follow_die_sig_1): Update.
2675
9f47c707
SM
26762020-05-27 Simon Marchi <simon.marchi@efficios.com>
2677
2678 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
2679 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
2680 (read_call_site_scope): Assign per_objfile.
2681 (dwarf2_per_cu_data::objfile): Remove.
2682 * gdbtypes.h (struct call_site) <per_objfile>: New member.
2683 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
2684 dwarf2_per_objfile parameter.
2685 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
2686 dwarf2_per_objfile parameter.
2687 (dwarf_expr_reg_to_entry_parameter): Add output
2688 dwarf2_per_objfile parameter.
2689 (locexpr_get_frame_base): Update.
2690 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
2691 <push_dwarf_reg_entry_value>: Update.
2692 <call_site_to_target_addr>: Update.
2693 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
2694 parameter.
2695 (value_of_dwarf_reg_entry): Update.
2696 (rw_pieced_value): Update.
2697 (indirect_synthetic_pointer): Update.
2698 (dwarf2_evaluate_property): Update.
2699 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
2700 parameter.
2701 (locexpr_read_variable): Update.
2702 (locexpr_get_symbol_read_needs): Update.
2703 (loclist_read_variable): Update.
2704
14095eb3
SM
27052020-05-27 Simon Marchi <simon.marchi@efficios.com>
2706
2707 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
2708 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
2709 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
2710 parameter.
2711 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
2712 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
2713 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
2714 parameter.
2715 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
2716 sect_variable_value): Add dwarf2_per_objfile parameter.
2717 (class dwarf_evaluate_loc_desc) <dwarf_call,
2718 dwarf_variable_value>: Update.
2719 (fetch_const_value_from_synthetic_pointer): Add
2720 dwarf2_per_objfile parameter.
2721 (fetch_const_value_from_synthetic_pointer): Update.
2722 (coerced_pieced_ref): Update.
2723 (class symbol_needs_eval_context) <dwarf_call,
2724 dwarf_variable_value>: Update.
2725 (dwarf2_compile_expr_to_ax): Update.
2726
3c3cd3d4
SM
27272020-05-27 Simon Marchi <simon.marchi@efficios.com>
2728
2729 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
2730 parameter.
2731 (dwarf2_evaluate_loc_desc_full): Update.
2732
82ca3f51
SM
27332020-05-27 Simon Marchi <simon.marchi@efficios.com>
2734
2735 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
2736 parameter.
2737 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
2738 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
2739 dwarf2_per_objfile parameter.
2740 (decode_debug_loc_dwo_addresses): Likewise.
2741 (dwarf2_find_location_expression): Update.
2742 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
2743 (locexpr_describe_location_piece): Add dwarf2_per_objfile
2744 parameter.
2745 (disassemble_dwarf_expression): Add dwarf2_per_objfile
2746 parameter.
2747 (locexpr_describe_location_1): Likewise.
2748 (locexpr_describe_location): Update.
2749
4b167ea1
SM
27502020-05-27 Simon Marchi <simon.marchi@efficios.com>
2751
2752 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
2753 Remove.
2754 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
2755 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
2756 (dwarf2_compile_property_to_c): Update.
2757 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
2758 use text offset from objfile.
2759 (locexpr_tracepoint_var_ref): Update.
2760 (locexpr_generate_c_location): Update.
2761 (loclist_describe_location): Update.
2762 (loclist_tracepoint_var_ref): Update.
2763 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
2764 dwarf2_per_objfile parameter.
2765 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
2766 use text offset from objfile.
2767 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
2768
89b07335
SM
27692020-05-27 Simon Marchi <simon.marchi@efficios.com>
2770
2771 * dwarf2/expr.h (struct dwarf_expr_context)
2772 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
2773 <offset>: Remove.
2774 <per_objfile>: New member.
2775 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
2776 dwarf2_per_objfile parameter. Don't set offset, set
2777 per_objfile.
2778 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
2779 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
2780 a dwarf2_per_objfile object instead of an offset.
2781 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
2782 constructor.
2783 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
2784 to dwarf2_expr_executor constructor. Don't set offset.
2785 (dwarf2_fetch_cfa_info): Update.
2786 (struct dwarf2_frame_cache) <text_offset>: Remove.
2787 <per_objfile>: New field.
2788 (dwarf2_frame_cache): Update.
2789 (dwarf2_frame_prev_register): Update.
2790 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
2791 <dwarf_evaluate_loc_desc>: Add constructor.
2792 (dwarf2_evaluate_loc_desc_full): Update.
2793 (dwarf2_locexpr_baton_eval): Update.
2794 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
2795 Add constructor.
2796 (dwarf2_loc_desc_get_symbol_read_needs): Update.
2797
293e7e51
SM
27982020-05-27 Simon Marchi <simon.marchi@efficios.com>
2799
2800 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
2801 addr_sized_int_type>: Move to dwarf2_cu.
2802 <int_type>: Move to dwarf2_per_objfile.
2803 (struct dwarf2_per_objfile) <int_type>: Move here.
2804 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
2805 addr_sized_int_type>: Move here.
2806 (read_func_scope): Update.
2807 (read_array_type): Update.
2808 (read_tag_string_type): Update.
2809 (attr_to_dynamic_prop): Update.
2810 (dwarf2_per_cu_data::int_type): Rename to...
2811 (dwarf2_per_objfile::int_type): ... this.
2812 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
2813 (dwarf2_cu::addr_sized_int_type): ... this.
2814 (read_subrange_type): Update.
2815 (dwarf2_per_cu_data::addr_type): Rename to...
2816 (dwarf2_cu::addr_type): ... this.
2817 (set_die_type): Update.
2818
64874a40
SM
28192020-05-27 Simon Marchi <simon.marchi@efficios.com>
2820
2821 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
2822 data through per_cu->cu.
2823
4ab09049
SM
28242020-05-27 Simon Marchi <simon.marchi@efficios.com>
2825
2826 * dwarf2/read.c (lookup_dwo_comp_unit): Change
2827 dwarf2_per_cu_data parameter fo dwarf2_cu.
2828 (lookup_dwo_type_unit): Likewise.
2829 (read_cutu_die_from_dwo): Likewise.
2830 (lookup_dwo_unit): Likewise.
2831 (open_and_init_dwo_file): Likewise.
2832 (lookup_dwo_cutu): Likewise.
2833 (lookup_dwo_comp_unit): Likewise.
2834 (lookup_dwo_type_unit): Likewise.
2835 (cutu_reader::init_tu_and_read_dwo_dies): Update.
2836 (cutu_reader::cutu_reader): Update.
2837
47b14e86
SM
28382020-05-27 Simon Marchi <simon.marchi@efficios.com>
2839
2840 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
2841 parameter.
2842 (process_full_type_unit): Likewise.
2843 (process_queue): Update.
2844
43182c09
SM
28452020-05-27 Simon Marchi <simon.marchi@efficios.com>
2846
2847 * dwarf2/read.c (recursively_compute_inclusions): Add
2848 dwarf2_per_objfile parameter.
2849 (compute_compunit_symtab_includes): Likewise.
2850 (process_cu_includes): Update.
2851
7aa104c4
SM
28522020-05-27 Simon Marchi <simon.marchi@efficios.com>
2853
2854 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
2855 parameter.
2856 (create_type_unit_group): Update.
2857 (process_psymtab_comp_unit_reader): Update.
2858 (build_type_psymtabs_reader): Update.
2859
e3beb21d
SM
28602020-05-27 Simon Marchi <simon.marchi@efficios.com>
2861
2862 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
2863 object through m_this_cu->cu.
2864
d460f660
SM
28652020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2866
2867 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
2868 the info parameter.
2869 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
2870
ab432490
SM
28712020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2872
2873 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
2874 per_objfile parameter.
2875 (load_full_type_unit): Add per_objfile parameter.
2876 (read_signatured_type): Likewise.
2877 (load_full_comp_unit): Likewise.
2878 (load_cu): Likewise.
2879 (dw2_do_instantiate_symtab): Likewise.
2880 (dw2_get_file_names): Likewise.
2881 (dw2_map_symtabs_matching_filename): Update.
2882 (dw_expand_symtabs_matching_file_matcher): Update.
2883 (dw2_map_symbol_filenames): Update.
2884 (process_psymtab_comp_unit): Add per_objfile parameter.
2885 (build_type_psymtabs_1): Update.
2886 (process_skeletonless_type_unit): Update.
2887 (dwarf2_build_psymtabs_hard): Update.
2888 (load_partial_comp_unit): Add per_objfile parameter.
2889 (scan_partial_symbols): Update.
2890 (load_full_comp_unit): Add per_objfile parameter.
2891 (process_imported_unit_die): Update.
2892 (create_cus_hash_table): Update.
2893 (find_partial_die): Update.
2894 (dwarf2_read_addr_index): Update.
2895 (follow_die_offset): Update.
2896 (dwarf2_fetch_die_loc_sect_off): Update.
2897 (dwarf2_fetch_constant_bytes): Update.
2898 (dwarf2_fetch_die_type_sect_off): Update.
2899 (follow_die_sig_1): Update.
2900 (load_full_type_unit): Add per_objfile parameter.
2901 (read_signatured_type): Likewise.
2902
313bad1b
SM
29032020-05-27 Simon Marchi <simon.marchi@efficios.com>
2904
2905 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
2906 of objfile_name.
2907
c3699833
SM
29082020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2909
2910 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
2911 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
2912 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
2913 field.
2914 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
2915 (create_cus_from_index): Update.
2916 (dwarf2_read_gdb_index): Update.
2917 (create_cus_from_debug_names): Update.
2918 (dwarf2_read_debug_names): Update.
2919 (get_abbrev_section_for_cu): Update.
2920 (create_all_comp_units): Update.
2921 (read_attribute_value): Update.
2922 (get_debug_line_section): Update.
2923 * dwarf2/index-cache.c (index_cache::store): Update.
2924 * dwarf2/index-write.c (save_gdb_index_command): Update.
2925 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
2926
1859c670
SM
29272020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2928
2929 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
2930 member.
2931 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
2932 dwarf2_per_cu_data::per_bfd.
2933 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
2934 (create_type_unit_group): Likewise.
2935 (queue_comp_unit): Remove reference to
2936 per_cu->dwarf2_per_objfile.
2937 (maybe_queue_comp_unit): Likewise.
2938 (fill_in_sig_entry_from_dwo_entry): Assign new field.
2939 (create_cus_hash_table): Assign new field.
2940
5e22e966
SM
29412020-05-27 Simon Marchi <simon.marchi@efficios.com>
2942
2943 * dwarf2/read.c: Replace
2944 dwarf2_cu->per_cu->dwarf2_per_objfile references with
2945 dwarf2_cu->per_objfile throughout.
2946
97a1449a
SM
29472020-05-27 Simon Marchi <simon.marchi@efficios.com>
2948
2949 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
2950 parameter, don't use per_cu->dwarf2_per_objfile.
2951 (dw2_instantiate_symtab): Likewise.
2952 (dw2_find_last_source_symtab): Update.
2953 (dw2_map_expand_apply): Update.
2954 (dw2_lookup_symbol): Update.
2955 (dw2_expand_symtabs_for_function): Update.
2956 (dw2_expand_all_symtabs): Update.
2957 (dw2_expand_symtabs_with_fullname): Update.
2958 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
2959 don't use per_cu->dwarf2_per_objfile.
2960 (dw2_expand_marked_cus): Update.
2961 (dw2_find_pc_sect_compunit_symtab): Update.
2962 (dw2_debug_names_lookup_symbol): Update.
2963 (dw2_debug_names_expand_symtabs_for_function): Update.
2964 (dw2_debug_names_map_matching_symbols): Update.
2965 (dwarf2_psymtab::expand_psymtab): Update.
2966
9e021579
SM
29672020-05-27 Simon Marchi <simon.marchi@efficios.com>
2968
2969 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
2970 <per_objfile>: New member.
2971 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
2972 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
2973 call to dwarf2_cu.
2974 (cutu_reader::cutu_reader): Update.
2975 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
2976
ae090bdb
SM
29772020-05-27 Simon Marchi <simon.marchi@efficios.com>
2978
2979 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
2980 struct dwarf2_per_objfile.
2981 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
2982 dwarf2_per_bfd.
2983 * dwarf2/read.c (set_die_type): Update.
2984 (get_die_type_at_offset): Update.
2985
af758d11
SM
29862020-05-27 Tom Tromey <tom@tromey.com>
2987 Simon Marchi <simon.marchi@efficios.com>
2988
2989 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
2990 method.
2991 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
2992 get_symtab, set_symtab>: New methods.
2993 <m_symtabs>: New field.
2994 (struct dwarf2_psymtab): Derive from partial_symtab.
2995 <readin_p, get_compunit_symtab>: Declare methods.
2996 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
2997 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
2998 New methods.
2999 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
3000 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
3001 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
3002 (dw2_symtab_iter_next, dw2_print_stats)
3003 (dw2_expand_symtabs_with_fullname)
3004 (dw2_expand_symtabs_matching_one)
3005 (dw_expand_symtabs_matching_file_matcher)
3006 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
3007 (dw2_debug_names_iterator::next)
3008 (dw2_debug_names_map_matching_symbols)
3009 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
3010 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
3011 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
3012 New methods.
3013 (get_compunit_symtab, process_full_comp_unit)
3014 (process_full_type_unit): Update.
3015 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
3016
5989a64e
SM
30172020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3018
3019 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
3020 then introduce a new dwarf2_per_objfile type.
3021 <read_line_string>: Move to the new dwarf2_per_objfile type.
3022 <objfile>: Likewise.
3023 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
3024 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
3025 dwarf2_per_objfile->per_bfd.
3026 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
3027 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
3028 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
3029 (dwarf2_per_bfd::free_cached_comp_units): ... this.
3030 (dwarf2_has_info): Allocate dwarf2_per_bfd.
3031 (dwarf2_per_objfile::locate_sections): Rename to...
3032 (dwarf2_per_bfd::locate_sections): ... this.
3033 (dwarf2_per_objfile::get_cutu): Rename to...
3034 (dwarf2_per_bfd::get_cutu): ... this.
3035 (dwarf2_per_objfile::get_cu): Rename to...
3036 (dwarf2_per_bfd::get_cu): ... this.
3037 (dwarf2_per_objfile::get_tu): Rename to...
3038 (dwarf2_per_bfd::get_tu): ... this.
3039 (dwarf2_per_objfile::allocate_per_cu): Rename to...
3040 (dwarf2_per_bfd::allocate_per_cu): ... this.
3041 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
3042 (dwarf2_per_bfd::allocate_signatured_type): ... this.
3043 (get_gdb_index_contents_ftype): Change parameter from
3044 dwarf2_per_objfile to dwarf2_per_bfd.
3045 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
3046 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
3047
a50264ba
TT
30482020-05-27 Tom Tromey <tom@tromey.com>
3049 Simon Marchi <simon.marchi@efficios.com>
3050
3051 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
3052 (allocate_piece_closure): Set "per_objfile" member.
3053 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
3054 (locexpr_describe_location, loclist_describe_location): Use new
3055 member.
3056 * dwarf2/read.c (read_call_site_scope)
3057 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
3058 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
3059 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
3060 handle_data_member_location): Set per_objfile member.
3061 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
3062 member.
3063 (struct dwarf2_loclist_baton) <per_objfile>: New member.
3064
d3473f0c
TT
30652020-05-27 Tom Tromey <tom@tromey.com>
3066
3067 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
3068 allocate_signatured_type>: Declare new methods.
3069 <m_num_psymtabs>: New member.
3070 (struct dwarf2_per_cu_data) <index>: New member.
3071 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
3072 (dwarf2_per_objfile::allocate_signatured_type): New methods.
3073 (create_cu_from_index_list): Use allocate_per_cu.
3074 (create_signatured_type_table_from_index)
3075 (create_signatured_type_table_from_debug_names)
3076 (create_debug_type_hash_table, add_type_unit)
3077 (read_comp_units_from_section): Use allocate_signatured_type.
3078
5717c425
TT
30792020-05-27 Tom Tromey <tom@tromey.com>
3080
3081 * psymtab.c (partial_map_expand_apply)
3082 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
3083 (psym_lookup_global_symbol_language)
3084 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
3085 (psym_print_stats, psym_expand_symtabs_for_function)
3086 (psym_map_symbol_filenames, psym_map_matching_symbols)
3087 (psym_expand_symtabs_matching)
3088 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
3089 (maintenance_check_psymtabs): Update.
3090 * psympriv.h (struct partial_symtab) <readin_p,
3091 get_compunit_symtab>: Add objfile parameter.
3092 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
3093 Likewise.
3094 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
3095 get_compunit_symtab>: Likewise.
3096 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
3097
45940949
TT
30982020-05-27 Tom Tromey <tom@tromey.com>
3099
3100 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
3101 member.
3102 * dwarf2/read.c (delete_file_name_entry): Fix comment.
3103 (create_cu_from_index_list)
3104 (create_signatured_type_table_from_index)
3105 (create_signatured_type_table_from_debug_names)
3106 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
3107 (dwarf2_create_include_psymtab)
3108 (create_debug_type_hash_table, add_type_unit)
3109 (create_type_unit_group, read_comp_units_from_section)
3110 (dwarf2_compute_name, create_cus_hash_table)
3111 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
3112 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
3113 obstack.
3114 (dw2_get_real_path): Likewise. Change argument to
3115 dwarf2_per_objfile.
3116
f8c6d152
LM
31172020-05-27 Luis Machado <luis.machado@linaro.org>
3118
3119 PR tdep/26000
3120 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
3121 for ldrd (immediate).
3122
e98d2e6d
PW
31232020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3124
3125 * command.h: Add comment giving the name of class_tui.
3126 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
3127 create the fake command for the help for class_tui.
3128
53a47a3e
TT
31292020-05-26 Tom Tromey <tromey@adacore.com>
3130
3131 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
3132 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
3133 (val_atr): New function.
3134 (value_val_atr): Use it.
3135 * ada-valprint.c (print_optional_low_bound): Change low bound
3136 handling for enums.
3137 (val_print_packed_array_elements): Don't call discrete_position.
3138 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
3139 discrete_position for enum types.
3140 * language.c (default_print_array_index): Change type.
3141 * language.h (struct language_defn) <la_print_array_index>: Add
3142 index_type parameter, change type of index_value.
3143 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
3144 (default_print_array_index): Update.
3145 * valprint.c (maybe_print_array_index): Don't call
3146 value_from_longest. Update.
3147 (value_print_array_elements): Don't call discrete_position.
3148
0bc2354b
TT
31492020-05-26 Tom Tromey <tromey@adacore.com>
3150
3151 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
3152 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
3153
1218a4bf
CDA
31542020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
3155
3156 PR gdb/13519
3157 * avr-tdep.c (avr_integer_to_address): Return data or code
3158 address accordingly to the second 'type' argument of the
3159 function.
3160
92651b1d
MW
31612020-05-25 Michael Weghorn <m.weghorn@posteo.de>
3162
3163 * infcmd.c, inferior.h: (construct_inferior_arguments):
3164 Moved function from here to gdbsupport/common-inferior.{h,cc}
3165
0a4f5f8c
TT
31662020-05-23 Tom Tromey <tom@tromey.com>
3167
3168 Revert commit eca1f90c:
3169 * NEWS: Remove entry for completion styling.
3170 * completer.c (_rl_completion_prefix_display_length): Move
3171 declaration later.
3172 (gdb_fnprint): Revert.
3173 (gdb_display_match_list_1): Likewise.
3174 * cli/cli-style.c (completion_prefix_style)
3175 (completion_difference_style, completion_suffix_style): Remove.
3176 (_initialize_cli_style): Revert.
3177 * cli/cli-style.h (completion_prefix_style)
3178 (completion_difference_style, completion_suffix_style): Don't
3179 declare.
3180
e08bd6c5
PA
31812020-05-24 Pedro Alves <palves@redhat.com>
3182
3183 * symtab.c (completion_list_add_name): Return boolean indication
3184 of whether the symbol matched.
3185 (completion_list_add_symbol): Don't try to remove C++ aliases if
3186 the symbol didn't match in the first place.
3187 * symtab.h (completion_list_add_name): Return bool.
3188
ceacbf6e
SM
31892020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
3190
3191 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
3192 type::field.
3193
26f16254
JB
31942020-05-23 Joel Brobecker <brobecker@adacore.com>
3195
3196 GDB 9.2 released.
3197
eca1f90c
TT
31982020-05-23 Tom Tromey <tom@tromey.com>
3199
3200 * NEWS: Add entry for completion styling.
3201 * completer.c (_rl_completion_prefix_display_length): Move
3202 declaration earlier.
3203 (gdb_fnprint): Use completion_style.
3204 (gdb_display_match_list_1): Likewise.
3205 * cli/cli-style.c (completion_prefix_style)
3206 (completion_difference_style, completion_suffix_style): New
3207 globals.
3208 (_initialize_cli_style): Register new globals.
3209 * cli/cli-style.h (completion_prefix_style)
3210 (completion_difference_style, completion_suffix_style): Declare.
3211
51e2cfa2
PA
32122020-05-23 Pedro Alves <palves@redhat.com>
3213
3214 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
3215 (parse_escape): Use ISDIGIT instead of isdigit.
3216 (puts_debug): Use gdb_isprint instead of isprint.
3217 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
3218 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
3219 ISSPACE instead of isspace.
3220 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
3221 instead of isspace.
3222 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
3223 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
3224 instead of isxdigit and ISDIGIT instead of isdigit.
3225
80fc5e77
SM
32262020-05-22 Simon Marchi <simon.marchi@efficios.com>
3227
3228 * gdbtypes.h (struct type) <field>: New method.
3229 (TYPE_FIELDS): Remove, replace all uses with either type::fields
3230 or type::field.
3231
3cabb6b0
SM
32322020-05-22 Simon Marchi <simon.marchi@efficios.com>
3233
3234 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
3235 (TYPE_FIELDS): Use type::fields. Change all call sites that
3236 modify the propery to use type::set_fields instead.
3237
1f704f76
SM
32382020-05-22 Simon Marchi <simon.marchi@efficios.com>
3239
3240 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
3241 type::num_fields instead.
3242
5e33d5f4
SM
32432020-05-22 Simon Marchi <simon.marchi@efficios.com>
3244
3245 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
3246 methods.
3247 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
3248 that modify the number of fields to use type::set_num_fields
3249 instead.
3250
9392ebb3
TT
32512020-05-22 Tom Tromey <tromey@adacore.com>
3252
3253 * compile/compile-object-load.h (munmap_list_free): Don't
3254 declare.
3255
7c13f4e8
AB
32562020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
3257
3258 * annotate.c (annotate_source_line): Update return type, add call
3259 to update current symtab and line.
3260 * annotate.h (annotate_source_line): Update return type, and
3261 extend header comment.
3262 * source.c (info_line_command): Check annotation_level before
3263 calling annotate_source_line.
3264 * stack.c (print_frame_info): If calling annotate_source_line
3265 returns true, then don't print any other source line information.
3266
aa370940
SM
32672020-05-21 Simon Marchi <simon.marchi@efficios.com>
3268
3269 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
3270
84d53fa9
SM
32712020-05-21 Simon Marchi <simon.marchi@efficios.com>
3272
3273 * coffread.c (patch_type): Remove NULL check before xfree.
3274 * corefile.c (set_gnutarget): Likewise.
3275 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
3276 * exec.c (build_section_table): Likewise.
3277 * remote.c (remote_target::pass_signals): Likewise.
3278 * utils.c (n_spaces): Likewise.
3279 * cli/cli-script.c (document_command): Likewise.
3280 * i386-windows-tdep.c (core_process_module_section): Likewise.
3281 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
3282
9d428aae
SM
32832020-05-20 Simon Marchi <simon.marchi@efficios.com>
3284
3285 * symfile.c (reread_symbols): Clear objfile's section_offsets
3286 vector and section indices, re-compute them by calling
3287 sym_offsets.
3288
250106a7
TT
32892020-05-20 Tom Tromey <tromey@adacore.com>
3290
3291 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
ec16513e 3292 (desc_one_bound, desc_index_type): Compute field name.
250106a7 3293
9a0bacfb
TV
32942020-05-20 Tom de Vries <tdevries@suse.de>
3295
3296 PR symtab/25833
3297 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
3298
7b958a48
AM
32992020-05-20 Alan Modra <amodra@gmail.com>
3300
3301 PR 25993
3302 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
3303 bfd_set_filename.
3304 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
3305 passed to bfd_set_filename.
3306 * symfile-mem.c (add_vsyscall_page): Likewise for string
3307 passed to symbol_file_add_from_memory.
3308 (symbol_file_add_from_memory): Make name param a const char* and
3309 don't strdup.
3310
c7e97679
AM
33112020-05-20 Alan Modra <amodra@gmail.com>
3312
3313 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
3314 rather than accessing bfd->filename directly.
3315 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
3316 and use bfd_section_name.
3317 * dwarf2/frame.c (decode_frame_entry): Likewise.
3318 * exec.c (exec_set_section_address): Likewise.
3319 * solib-aix.c (solib_aix_bfd_open): Likewise.
3320 * stap-probe.c (get_stap_base_address): Likewise.
3321 * symfile.c (reread_symbols): Likewise.
3322
563c591b
TT
33232020-05-19 Tom Tromey <tromey@adacore.com>
3324
3325 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
3326
f408d82c
SM
33272020-05-19 Simon Marchi <simon.marchi@efficios.com>
3328
3329 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
3330
98c59b52
PA
33312020-05-19 Pedro Alves <palves@redhat.com>
3332
3333 * NEWS (set exec-file-mismatch): Adjust entry.
3334 * exec.c: Include "build-id.h".
3335 (validate_exec_file): Try to match build IDs instead of filenames.
3336 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
3337 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
3338 and pass down 'warn_if_slow'.
3339 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
3340 gdb_bfd_open_closure to pass it down.
3341 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
3342
4111f652
PA
33432020-05-19 Pedro Alves <palves@redhat.com>
3344
3345 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
3346 * target.c (target_fileio_open_1): Rename to target_fileio_open
3347 and make extern. Use bool.
3348 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
3349 (target_fileio_read_alloc_1): Adjust.
3350 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
3351 (target_fileio_open_warn_if_slow): Delete declaration.
3352
ad80db5b
PA
33532020-05-19 Pedro Alves <palves@redhat.com>
3354
3355 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
3356 Adjust all callers.
3357
1d6ce4d3
YS
33582020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
3359
3360 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
3361 whether disp is negative.
3362
9005fbbb
SM
33632020-05-19 Simon Marchi <simon.marchi@efficios.com>
3364
3365 * symfile.h (struct symfile_segment_data)
3366 <~symfile_segment_data>: Remove.
3367 <segment_info>: Change to std::vector.
3368 * symfile.c (default_symfile_segments): Update.
3369 * elfread.c (elf_symfile_segments): Update.
3370
68b888ff
SM
33712020-05-19 Simon Marchi <simon.marchi@efficios.com>
3372
3373 * symfile.h (struct symfile_segment_data) <struct segment>: New.
3374 <segments>: New.
3375 <segment_bases, segment_sizes>: Remove.
3376 * symfile.c (default_symfile_segments): Update.
3377 * elfread.c (elf_symfile_segments): Update.
3378 * remote.c (remote_target::get_offsets): Update.
3379 * solib-target.c (solib_target_relocate_section_addresses):
3380 Update.
3381
62982abd
SM
33822020-05-19 Simon Marchi <simon.marchi@efficios.com>
3383
3384 * symfile.h (struct symfile_segment_data): Initialize fields.
3385 <~symfile_segment_data>: Add.
3386 (symfile_segment_data_up): New.
3387 (struct sym_fns) <sym_segments>: Return a
3388 symfile_segment_data_up.
3389 (default_symfile_segments): Return a symfile_segment_data_up.
3390 (free_symfile_segment_data): Remove.
3391 (get_symfile_segment_data): Return a symfile_segment_data_up.
3392 * symfile.c (default_symfile_segments): Likewise.
3393 (get_symfile_segment_data): Likewise.
3394 (free_symfile_segment_data): Remove.
3395 (symfile_find_segment_sections): Update.
3396 * elfread.c (elf_symfile_segments): Return a
3397 symfile_segment_data_up.
3398 * remote.c (remote_target::get_offsets): Update.
3399 * solib-target.c (solib_target_relocate_section_addresses):
3400 Update.
3401 * symfile-debug.c (debug_sym_segments): Return a
3402 symfile_segment_data_up.
3403
7f204339
RO
34042020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3405
e52a0f1b
RO
3406 PR build/25981
3407 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
3408 Hardcode register numbers.
3409
7f204339
RO
3410 PR build/25981
3411 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
3412 procfs_find_LDT_entry): Remove.
3413 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
3414 procfs_find_LDT_entry): Remove.
3415 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
3416 Remove.
3417
7f32a4d5
PA
34182020-05-17 Pedro Alves <palves@redhat.com>
3419 Andrew Burgess <andrew.burgess@embecosm.com>
3420 Keno Fischer <keno@juliacomputing.com>
3421
3422 PR gdb/25741
3423 * breakpoint.c (build_target_condition_list): Update comments.
3424 (build_target_command_list): Update comments and skip matching
3425 locations.
3426 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
3427 a separate function. Simplify "set breakpoint auto-hw off"
3428 handling.
3429 (insert_breakpoints): Update comment.
3430 (tracepoint_locations_match): New parameter. For breakpoints,
3431 compare location types too, if the caller wants to.
3432 (handle_automatic_hardware_breakpoints): New functions.
3433 (bp_location_is_less_than): Also sort by location type and
3434 hardware breakpoint length.
3435 (update_global_location_list): Handle "set breakpoint auto-hw on"
3436 here.
3437 (update_breakpoint_locations): Ask breakpoint_locations_match to
3438 ignore location types.
3439
7d93a1e0
SM
34402020-05-16 Simon Marchi <simon.marchi@efficios.com>
3441
3442 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
3443 type::name instead.
3444
d0e39ea2
SM
34452020-05-16 Simon Marchi <simon.marchi@efficios.com>
3446
3447 * gdbtypes.h (struct type) <name, set_name>: New methods.
3448 (TYPE_CODE): Use type::name. Change all call sites used to set
3449 the name to use type::set_name instead.
3450
2dab0c7b
TT
34512020-05-16 Tom Tromey <tom@tromey.com>
3452
3453 * top.c (quit_force): Update.
3454 * infrun.c (handle_no_resumed): Update.
3455 * top.h (all_uis): New function.
3456 (ALL_UIS): Remove.
3457
59f7bd8d
SM
34582020-05-16 Simon Marchi <simon.marchi@efficios.com>
3459
3460 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
3461
9bf058f0
PA
34622020-05-16 Pedro Alves <palves@redhat.com>
3463
3464 * ia64-linux-nat.c
3465 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
3466 Declare method.
3467 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
3468
8f86ae1a
SM
34692020-05-15 Simon Marchi <simon.marchi@efficios.com>
3470
3471 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
3472 (sparc64_adi_info): Likewise.
3473
d6bc0792
TT
34742020-05-15 Tom Tromey <tom@tromey.com>
3475
3476 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
3477 block_objfile.
3478 (lookup_objfile_from_block): Remove.
3479 (lookup_symbol_in_block, lookup_symbol_in_static_block)
3480 (lookup_global_symbol): Use block_objfile.
3481 * symtab.h (lookup_objfile_from_block): Don't declare.
3482 * printcmd.c (clear_dangling_display_expressions): Use
3483 block_objfile.
3484 * parse.c (operator_check_standard): Use block_objfile.
3485
8c14c3a3
TT
34862020-05-15 Tom Tromey <tom@tromey.com>
3487
3488 * language.c (language_alloc_type_symbol): Set
3489 SYMBOL_SECTION.
3490 * symtab.c (initialize_objfile_symbol): Remove.
3491 (allocate_symbol): Remove.
3492 (allocate_template_symbol): Remove.
3493 * dwarf2/read.c (fixup_go_packaging): Use "new".
3494 (new_symbol): Use "new".
3495 (read_variable): Don't call initialize_objfile_symbol. Use
3496 "new".
3497 (read_func_scope): Use "new".
3498 * xcoffread.c (process_xcoff_symbol): Don't call
3499 initialize_objfile_symbol.
3500 (SYMBOL_DUP): Remove.
3501 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
3502 "new".
3503 * symtab.h (allocate_symbol, initialize_objfile_symbol)
3504 (allocate_template_symbol): Don't declare.
3505 (struct symbol): Add copy constructor. Change defaults.
3506 * jit.c (finalize_symtab): Use "new".
3507 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
3508 Use "new".
3509 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
3510 (common_block_end): Use "new".
3511 * mdebugread.c (parse_symbol): Use "new".
3512 (new_symbol): Likewise.
3513
5b4a1a8d
PW
35142020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3515
3516 * NEWS: Mention changes to help and apropos.
3517
57b4f16e
PW
35182020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3519
3520 * command.h (enum command_class): Improve comments, document
3521 that class_alias is for user-defined aliases, give the class
3522 name for each class, remove unused class_xdb.
3523 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
3524 * breakpoint.c (_initialize_breakpoint): Replace class_alias
3525 by a precise class.
3526 * infcmd.c (_initialize_infcmd): Likewise.
3527 * reverse.c (_initialize_reverse): Likewise.
3528 * stack.c (_initialize_stack): Likewise.
3529 * symfile.c (_initialize_symfile): Likewise.
3530 * tracepoint.c (_initialize_tracepoint): Likewise.
3531
7c05caf7
PW
35322020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3533
3534 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
3535 when their aliased command is traversed.
3536 (help_cmd): Add fput_command_names_styled call to
3537 output command name and aliases when command has an alias.
3538
3b3aaacb
PW
35392020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3540
3541 * cli/cli-decode.h (help_cmd_list): Remove declaration.
3542 * cli/cli-decode.c (help_cmd_list): Declare as static,
3543 remove prefix argument, use bool for recurse arg, rework to show the aliases of
3544 a command together with the command.
3545 (fput_command_name_styled, fput_command_names_styled): New functions.
3546 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
3547 fput_command_name_styled.
3548 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
3549 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
3550
7aa1b46f
PW
35512020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3552
3553 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
3554 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
3555 * command.h (cmd_show_list): Likewise.
3556 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
3557 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
3558
89bcba74
PW
35592020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3560
3561 * unittests/command-def-selftests.c (traverse_command_structure):
3562 Verify all commands of a list have the same prefix command and
3563 that only the top cmdlist commands have a null prefix.
3564
3f4d92eb
PW
35652020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3566
3567 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
3568 as prefix, not one of its aliases.
3569 (set_cmd_prefix): Remove.
3570 (do_add_cmd): Centralize the setting of the prefix of a command, when
3571 command is defined after its full chain of prefix commands.
3572 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
3573 (add_setshow_cmd_full): Likewise.
3574 (update_prefix_field_of_prefixed_commands): New function.
3575 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
3576 update_prefix_field_of_prefixed_commands.
3577 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
3578 addresses of remote_set_cmdlist and remote_show_cmdlist given
3579 as argument, not the address of an argument.
3580 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
3581 * gdb/remote.c (_initialize_remote): Likewise.
3582
0605465f
PW
35832020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3584
3585 * cli/cli-cmds.c (alias_command): Check for an existing alias
3586 using lookup_cmd_composition, as valid_command_p is too strict
3587 and forbids aliases that are the prefix of an existing alias
3588 or command.
3589 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
3590 command is properly recognised as a valid command.
3591
58e6ac70
PW
35922020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3593
3594 * unittests/help-doc-selftests.c: Rename to
3595 unittests/command-def-selftests.c
3596 * unittests/command-def-selftests.c (help_doc_tests): Update some
3597 comments.
3598 (command_structure_tests, traverse_command_structure): New namespace
3599 and function.
3600 (command_structure_invariants_tests): New function.
3601 (_initialize_command_def_selftests) Renamed from
3602 _initialize_help_doc_selftests, register command_structure_invariants
3603 selftest.
3604
a7b9ceb8
PW
36052020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3606
3607 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
3608 an alias of 'show'.
3609
b2188a06
JB
36102020-05-15 Joel Brobecker <brobecker@adacore.com>
3611
3612 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
3613 ada_is_fixed_point_type. Update all callers.
3614 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
3615 all callers.
3616 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
3617 Update all callers.
3618 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
3619 print_fixed_point_type. Update all callers.
3620 * ada-valprint.c (ada_value_print_num): Replace call to
3621 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
3622
a51951c2
KB
36232020-05-14 Kevin Buettner <kevinb@redhat.com>
3624
3625 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
3626 processors.
3627 (cpu_supports_bts): Add CV_AMD case.
3628
29d6859f
LM
36292020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
3630 Simon Marchi <simon.marchi@efficios.com>
3631
3632 * infrun.c (stop_all_threads): Collect multiple wait events at
3633 each pass.
3634
78134374
SM
36352020-05-14 Simon Marchi <simon.marchi@efficios.com>
3636
3637 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
3638 type::code instead.
3639
67607e24
SM
36402020-05-14 Simon Marchi <simon.marchi@efficios.com>
3641
3642 * gdbtypes.h (struct type) <code, set_code>: New methods.
3643 (TYPE_CODE): Use type::code. Change all call sites used to set
3644 the code to use type::set_code instead.
3645
a05575d3
TBA
36462020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3647 Tom de Vries <tdevries@suse.de>
3648 Pedro Alves <palves@redhat.com>
3649
3650 PR threads/25478
3651 * infrun.c (stop_all_threads): Do NOT ignore
3652 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
3653 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
3654 received.
3655 (handle_no_resumed): Remove code handling a live inferior with no
3656 threads.
3657 * remote.c (has_single_non_exited_thread): New.
3658 (remote_target::update_thread_list): Do not delete a thread if is
3659 the last thread of the process.
3660 * thread.c (thread_select): Call delete_exited_threads instead of
3661 prune_threads.
3662
6ad82919
TBA
36632020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3664
3665 * infrun.c (stop_all_threads): Enable/disable thread events of all
3666 targets. Move a debug message denoting the end of the function
3667 into the SCOPED_EXIT block.
3668
d890404b
TBA
36692020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3670
3671 * process-stratum-target.h: Include <set>.
3672 (all_non_exited_process_targets, switch_to_target_no_thread): New
3673 function declarations.
3674 * process-stratum-target.c (all_non_exited_process_targets)
3675 (switch_to_target_no_thread): New function implementations.
3676
293b3ebc
TBA
36772020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3678
3679 * infrun.c (handle_inferior_event): Extract out a piece of code
3680 into...
3681 (mark_non_executing_threads): ...this new function.
3682
7ca9b62a
TBA
36832020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3684
3685 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
3686 use.
3687
fc75c28b
TBA
36882020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3689
3690 * regcache.c (regcache_read_pc_protected): New function
3691 implementation that returns 0 if the PC cannot read via
3692 'regcache_read_pc'.
3693 * infrun.c (proceed): Call 'regcache_read_pc_protected'
3694 instead of 'regcache_read_pc'.
3695 (keep_going_pass_signal): Ditto.
3696
a89febbd
TT
36972020-05-13 Tom Tromey <tromey@adacore.com>
3698
3699 * ada-lang.c (align_value): Remove.
3700 (ada_template_to_fixed_record_type_1): Use align_up.
3701
f7e23710
TBA
37022020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3703
3704 * async-event.c: Update the copyright year.
3705 * async-event.h: Update the copyright year.
3706
02ff80c2
SM
37072020-05-12 Simon Marchi <simon.marchi@efficios.com>
3708
3709 * objfiles.h (is_addr_in_objfile,
3710 shared_objfile_contains_address_p): Return bool.
3711 * objfile.c (is_addr_in_objfile,
3712 shared_objfile_contains_address_p): Return bool.
3713
4fd6c7e8
TT
37142020-05-11 Tom Tromey <tromey@adacore.com>
3715
3716 * cli/cli-cmds.c (info_command): Restore.
3717 (_initialize_cli_cmds): Use add_prefix_command for "info".
3718 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
3719
5eb68a39
TT
37202020-05-11 Tom Tromey <tromey@adacore.com>
3721
3722 * ada-lang.c (ada_value_primitive_field): Now public.
3723 * ada-lang.h (ada_value_primitive_field): Declare.
3724 * ada-valprint.c (print_field_values): Use
3725 ada_value_primitive_field for wrapper fields.
3726
7666722f
TV
37272020-05-11 Tom de Vries <tdevries@suse.de>
3728
3729 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
3730 MODULE_DOMAIN.
3731
3ee6bb11
TV
37322020-05-11 Tom de Vries <tdevries@suse.de>
3733
3734 PR symtab/25941
3735 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
3736 with length 0, if not gdb-produced.
3737 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
3738
43434996
TV
37392020-05-09 Tom de Vries <tdevries@suse.de>
3740
3741 PR gdb/25955
3742 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
3743 calculation.
3744
2f78cffc
TT
37452020-05-09 Tom Tromey <tom@tromey.com>
3746
3747 * top.c (server_command): Now bool.
3748 * top.h (server_command): Now bool.
3749
4f7bc5ed
TT
37502020-05-08 Tom Tromey <tromey@adacore.com>
3751
3752 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
3753 already being processed.
3754
8be4b118
TT
37552020-05-08 Tom Tromey <tom@tromey.com>
3756
3757 * printcmd.c (struct display) <next>: Remove.
3758 <display>: New constructor.
3759 <exp_string>: Now a std::string.
3760 <enabled_p>: Now a bool.
3761 (display_number): Move definition earlier.
3762 (displays): Rename from display_chain. Now a std::vector.
3763 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
3764 (display_command): Update.
3765 (do_one_display, disable_display)
3766 (enable_disable_display_command, do_enable_disable_display):
3767 Update.
3768 (free_display): Remove.
3769 (clear_displays): Rewrite.
3770 (delete_display): Update.
3771 (map_display_numbers): Use function_view. Remove "data"
3772 parameter. Update.
3773 (do_delete_display): Remove.
3774 (undisplay_command): Update.
3775 (do_one_display, do_displays, disable_display)
3776 (info_display_command): Update.
3777 (do_enable_disable_display): Remove.
3778 (enable_disable_display_command)
3779 (clear_dangling_display_expressions): Update.
3780
94c93c35
TT
37812020-05-08 Tom Tromey <tom@tromey.com>
3782
3783 * symtab.c (set_symbol_cache_size)
3784 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
3785 (maintenance_print_symbol_cache_statistics): Update.
3786 * symmisc.c (print_symbol_bcache_statistics)
3787 (print_objfile_statistics, maintenance_print_objfiles)
3788 (maintenance_info_symtabs, maintenance_check_symtabs)
3789 (maintenance_expand_symtabs, maintenance_info_line_tables):
3790 Update.
3791 * symfile-debug.c (set_debug_symfile): Update.
3792 * source.c (forget_cached_source_info): Update.
3793 * python/python.c (gdbpy_progspaces): Update.
3794 * psymtab.c (maintenance_info_psymtabs): Update.
3795 * probe.c (parse_probes): Update.
3796 * linespec.c (iterate_over_all_matching_symtabs)
3797 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
3798 * guile/scm-progspace.c (gdbscm_progspaces): Update.
3799 * exec.c (exec_target::close): Update.
3800 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
3801 * breakpoint.c (print_one_breakpoint_location)
3802 (create_longjmp_master_breakpoint)
3803 (create_std_terminate_master_breakpoint): Update.
3804 * progspace.c (program_spaces): Now a std::vector.
3805 (maybe_new_address_space): Update.
3806 (add_program_space): Remove.
3807 (program_space::program_space): Update.
3808 (remove_program_space): Update.
3809 (number_of_program_spaces): Remove.
3810 (print_program_space, update_address_spaces): Update.
3811 * progspace.h (program_spaces): Change type.
3812 (ALL_PSPACES): Remove.
3813 (number_of_program_spaces): Don't declare.
3814 (struct program_space) <next>: Remove.
3815
a1fd1ac9
TT
38162020-05-08 Tom Tromey <tom@tromey.com>
3817
3818 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
3819 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
3820 (enable_break): Update.
3821 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
3822 (frv_fdpic_find_canonical_descriptor): Update.
3823 (frv_fetch_objfile_link_map): Update.
3824 * progspace.c (program_space::free_all_objfiles): Update.
3825 (program_space::solibs): New method.
3826 * progspace.h (struct program_space) <solibs>: New method.
3827 * solist.h (master_so_list): Don't declare.
3828 (ALL_SO_LIBS): Remove.
3829 * solib.h (so_list_head): Remove.
3830 (update_solib_list): Update comment.
3831 * solib.c (master_so_list): Remove.
3832 (solib_used, update_solib_list, solib_add)
3833 (info_sharedlibrary_command, clear_solib)
3834 (reload_shared_libraries_1, remove_user_added_objfile): Update.
3835
38eae084
TT
38362020-05-08 Tom Tromey <tom@tromey.com>
3837
3838 * extension.c (extension_languages): Now a std::array.
3839 (ALL_EXTENSION_LANGUAGES): Remove.
3840 (get_ext_lang_defn, get_ext_lang_of_file)
3841 (eval_ext_lang_from_control_command): Update.
3842 (finish_ext_lang_initialization)
3843 (auto_load_ext_lang_scripts_for_objfile)
3844 (ext_lang_type_printers::ext_lang_type_printers)
3845 (apply_ext_lang_type_printers)
3846 (ext_lang_type_printers::~ext_lang_type_printers)
3847 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
3848 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
3849 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
3850 (get_matching_xmethod_workers, ext_lang_colorize)
3851 (ext_lang_before_prompt): Update.
3852 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
3853
596dc4ad
TT
38542020-05-08 Tom Tromey <tom@tromey.com>
3855
3856 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
3857 overload.
3858 <swap_string, m_string>: Remove.
3859 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
3860 Update.
3861 * stabsread.c (define_symbol, read_type): Update.
3862 * linespec.c (find_linespec_symbols): Update.
3863 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
3864 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
3865 * dbxread.c (read_dbx_symtab): Update.
3866 * cp-support.h (cp_canonicalize_string_full)
3867 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
3868 Return unique_xmalloc_ptr.
3869 * cp-support.c (inspect_type): Update.
3870 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
3871 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
3872 Likewise.
3873 * c-typeprint.c (print_name_maybe_canonical): Update.
3874 * break-catch-throw.c (check_status_exception_catchpoint):
3875 Update.
3876
bf4cb9be
TV
38772020-05-08 Tom de Vries <tdevries@suse.de>
3878
3879 * infrun.c (follow_fork): Copy current_line and current_symtab to
3880 child thread.
3881
a1b68f28
SM
38822020-05-07 Simon Marchi <simon.marchi@efficios.com>
3883
3884 * async-event.c (struct async_signal_handler, struct
3885 async_event_handler): Reformat, remove typedef.
3886
98d48915
SM
38872020-05-07 Simon Marchi <simon.marchi@efficios.com>
3888
3889 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
3890 access thistype->main_type->dyn_prop_list directly.
3891
7aa91313
SM
38922020-05-07 Simon Marchi <simon.marchi@efficios.com>
3893
3894 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
3895 (remove_dyn_prop): Remove. Update all users to use
3896 type::remove_dyn_prop.
3897 * gdbtypes.c (remove_dyn_prop): Rename to...
3898 (type::remove_dyn_prop): ... this.
3899
5c54719c
SM
39002020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
3901
3902 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
3903 (add_dyn_prop): Remove. Update all users to use
3904 type::add_dyn_prop.
3905 * gdbtypes.c (add_dyn_prop): Rename to...
3906 (type::add_dyn_prop): ... this.
3907
24e99c6c
SM
39082020-05-07 Simon Marchi <simon.marchi@efficios.com>
3909
3910 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
3911 (get_dyn_prop): Remove. Update all users to use
3912 type::dyn_prop.
3913 * gdbtypes.c (get_dyn_prop): Rename to...
3914 (type::dyn_prop): ... this.
3915
0d4bf016
SM
39162020-05-06 Simon Marchi <simon.marchi@efficios.com>
3917
3918 * gdbtypes.h (struct main_type) <flag_static>: Remove.
3919
ac4a4f1c
SM
39202020-05-06 Simon Marchi <simon.marchi@efficios.com>
3921
3922 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
3923 instruction, skip it if it's there.
3924
a3bbacc1
SM
39252020-05-05 Simon Marchi <simon.marchi@efficios.com>
3926
3927 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
3928
c3236f84
SM
39292020-05-04 Simon Marchi <simon.marchi@efficios.com>
3930
3931 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
3932 * gdbtypes.c (recursive_dump_type): Remove use of
3933 TYPE_INCOMPLETE.
3934
3b6acaee
TT
39352020-05-03 Tom Tromey <tom@tromey.com>
3936
3937 * breakpoint.c (catch_command, tcatch_command): Remove.
3938 (_initialize_breakpoint): Use add_basic_prefix_cmd,
3939 add_show_prefix_cmd.
3940 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
3941 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
3942 Remove.
3943 (add_internal_problem_command): Use add_basic_prefix_cmd,
3944 add_show_prefix_cmd.
3945 * mips-tdep.c (set_mipsfpu_command): Remove.
3946 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
3947 * dwarf2/index-cache.c (set_index_cache_command): Remove.
3948 (_initialize_index_cache): Use add_basic_prefix_cmd.
3949 * memattr.c (dummy_cmd): Remove.
3950 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
3951 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
3952 (_initialize_tui_win): Use add_basic_prefix_cmd,
3953 add_show_prefix_cmd.
3954 * cli/cli-logging.c (set_logging_command): Remove.
3955 (_initialize_cli_logging): Use add_basic_prefix_cmd,
3956 add_show_prefix_cmd.
3957 (show_logging_command): Remove.
3958 * target.c (target_command): Remove.
3959 (add_target): Use add_basic_prefix_cmd.
3960
a51119cd
HD
39612020-05-02 Hannes Domani <ssbssa@yahoo.de>
3962
3963 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
3964
652fc23a 39652020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 3966
652fc23a
PW
3967 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
3968 info_command.
3969
117539e6
KR
39702020-04-30 Kamil Rytarowski <n54@gmx.com>
3971
3972 * nbsd-nat.c (nbsd_enable_proc_events)
3973 (nbsd_nat_target::post_startup_inferior): Add.
3974 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
3975 (nbsd_nat_target::update_thread_list): Rewrite.
3976 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
3977 "PTRACE_LWP_CREATE".
3978 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
3979
102e38eb 39802020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 3981
102e38eb
PW
3982 * stack.c (_initialize_stack): Remove duplicated creation
3983 of "frame" command and "f" alias.
3984
ee9d1e5f
HD
39852020-04-30 Hannes Domani <ssbssa@yahoo.de>
3986
3987 PR gdb/18706
3988 * gdbtypes.c (check_typedef): Calculate size of array of
3989 stubbed type.
3990
627c7fb8
HD
39912020-04-30 Hannes Domani <ssbssa@yahoo.de>
3992
3993 PR gdb/15559
3994 * i386-tdep.c (i386_push_dummy_call): Call
3995 i386_thiscall_push_dummy_call.
3996 (i386_thiscall_push_dummy_call): New function.
3997 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
3998 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
3999 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
4000
ffc2844e
SM
40012020-04-29 Simon Marchi <simon.marchi@efficios.com>
4002
4003 * gdbarch.sh (do_read): Add shellcheck disable directive for
4004 warning SC2162.
4005
1207375d
SM
40062020-04-29 Simon Marchi <simon.marchi@efficios.com>
4007
4008 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
4009 "referenced but not assigned" warning.
4010
9fdb2916
SM
40112020-04-29 Simon Marchi <simon.marchi@efficios.com>
4012
4013 * gdbarch.sh: Remove code that sets fallbackdefault.
4014
759cea5e
SM
40152020-04-29 Simon Marchi <simon.marchi@efficios.com>
4016
4017 * gdbarch.sh: Use shell operators && and || instead of
4018 -a and -o.
4019
cb02ab24
SM
40202020-04-29 Simon Marchi <simon.marchi@efficios.com>
4021
4022 * gdbarch.sh: Use $(...) instead of `...`.
4023
a6fc5ffc
SM
40242020-04-29 Simon Marchi <simon.marchi@efficios.com>
4025
4026 * gdbarch.sh: Use double quotes around variables.
4027
8d113d13
SM
40282020-04-29 Simon Marchi <simon.marchi@efficios.com>
4029
4030 * gdbarch.sh: Use %s with printf, instead of variables in the
4031 format string.
4032
ed6acedd
TT
40332020-04-29 Tom Tromey <tromey@adacore.com>
4034
4035 PR ada/25875:
4036 * dwarf2/read.c (update_enumeration_type_from_children): Compute
4037 type fields here.
4038 (read_enumeration_type): Call
4039 update_enumeration_type_from_children later. Update comments.
4040 (process_enumeration_scope): Don't create type fields.
4041
b68b1b58
KR
40422020-04-29 Kamil Rytarowski <n54@gmx.com>
4043
4044 * nbsd-tdep.c: Include "xml-syscall.h".
4045 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
4046
f94b2e03
KR
40472020-04-29 Kamil Rytarowski <n54@gmx.com>
4048
4049 * nbsd-nat.c: Include "sys/wait.h".
4050 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
4051 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
4052 (nbsd_nat_target::remove_exec_catchpoint)
4053 (nbsd_nat_target::set_syscall_catchpoint): Add.
4054 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
4055 (nbsd_nat_target::insert_exec_catchpoint)
4056 (nbsd_nat_target::remove_exec_catchpoint)
4057 (nbsd_nat_target::set_syscall_catchpoint): Add.
4058 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
4059 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
4060 `nbsd_get_syscall_number'.
4061
fc49bc72
TT
40622020-04-29 Tom Tromey <tom@tromey.com>
4063
4064 * stack.c (print_block_frame_labels): Remove.
4065
d642b692
HD
40662020-04-29 Hannes Domani <ssbssa@yahoo.de>
4067
4068 PR gdb/17320
4069 * ada-valprint.c (val_print_packed_array_elements): Move array
4070 end bracket to new line.
4071 (ada_val_print_string): Remove extra spaces before first array
4072 element.
4073 * c-valprint.c (c_value_print_array): Likewise.
4074 * m2-valprint.c (m2_print_array_contents): Likewise.
4075 (m2_value_print_inner): Likewise.
4076 * p-valprint.c (pascal_value_print_inner): Likewise.
4077 * valprint.c (generic_val_print_array): Likewise.
4078 (value_print_array_elements): Move first array element and array
4079 end bracket to new line.
4080
ea90f227
TV
40812020-04-29 Tom de Vries <tdevries@suse.de>
4082
4083 PR symtab/25889
4084 * linespec.c (find_method): Fix ix calculation.
4085
4498ef4f
KR
40862020-04-28 Kamil Rytarowski <n54@gmx.com>
4087
4088 * syscalls/update-netbsd.sh: New file.
4089 * syscalls/netbsd.xml: Regenerate.
4090 * data-directory/Makefile.in: Register `netbsd.xml' in
4091 `SYSCALLS_FILES'.
4092
a55e30b5
SM
40932020-04-28 Simon Marchi <simon.marchi@efficios.com>
4094
4095 * syscalls/update-freebsd.sh: Add double quotes.
4096
2b2fbab8
TT
40972020-04-28 Tom Tromey <tom@tromey.com>
4098
4099 * NEWS: Update.
4100 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
4101 (cmdpy_init): Allow class_tui.
4102
a65189c9
TV
41032020-04-28 Mark Williams <mark@myosotissp.com>
4104
4105 PR gdb/24480
4106 * dwarf2read.c: Add missing assingments to list_in_scope when
4107 start_symtab was already called.
4108
1b95cdb7
SM
41092020-04-28 Simon Marchi <simon.marchi@efficios.com>
4110
4111 PR gdb/25881
4112 * dwarf2/read.c (offset_map_type): Use
4113 gdb:hash_enum<sect_offset> as hash function.
4114
15cd93d0
TV
41152020-04-28 Tom de Vries <tdevries@suse.de>
4116
4117 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
4118 with DW_AT_signature.
4119
1eb39914
SM
41202020-04-27 Simon Marchi <simon.marchi@efficios.com>
4121
4122 * configure.ac: Remove check for fs_base/gs_base in
4123 user_regs_struct.
4124 * configure: Re-generate.
4125 * config.in: Re-generate.
4126 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
4127 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
4128 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
4129
991a3e2e
LM
41302020-04-27 Luis Machado <luis.machado@linaro.org>
4131
4132 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
4133 problematic inline frame unwinding situation.
4134 * frame.c (frame_id_computed_p): New function.
4135 * frame.h (frame_id_computed_p): New prototype.
4136
361ba0e8
TT
41372020-04-26 Tom Tromey <tom@tromey.com>
4138
4139 * command.h (enum command_class) <class_pseudo>: Remove.
4140
bc3609fd
PW
41412020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4142
4143 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
4144 and whitespace.
4145
b9771db7
KR
41462020-04-25 Kamil Rytarowski <n54@gmx.com>
4147
ec16513e
SM
4148 * inf-ptrace.c (inf_ptrace_target::wait): Remove
4149 `PT_GET_PROCESS_STATE' block.
b9771db7 4150
7151c1af
TT
41512020-04-24 Tom Tromey <tom@tromey.com>
4152
4153 * symtab.h (symbol_get_demangled_name): Don't declare.
4154 * symtab.c (symbol_get_demangled_name): Remove.
4155 (general_symbol_info::natural_name)
4156 (general_symbol_info::demangled_name): Update.
4157
906bb4c5
TT
41582020-04-24 Tom Tromey <tom@tromey.com>
4159
4160 PR rust/25025:
4161 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
4162
bcfe6157
TT
41632020-04-24 Tom Tromey <tom@tromey.com>
4164
4165 PR symtab/12707:
4166 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
4167 exists.
4168 (new_symbol): Likewise.
4169 * compile/compile-object-load.c (get_out_value_type): Use
4170 symbol_matches_search_name.
4171
f049a313
TT
41722020-04-24 Tom Tromey <tom@tromey.com>
4173
4174 * dwarf2/read.c (add_partial_symbol): Do not call
4175 compute_and_set_names.
4176
76e288d1
TT
41772020-04-24 Tom Tromey <tom@tromey.com>
4178
4179 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
4180 overload.
4181
2467f4f6
TT
41822020-04-24 Tom Tromey <tom@tromey.com>
4183
4184 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
4185 (add_psymbol_to_list): New overload. Make old overload call new
4186 one.
4187 * psympriv.h (add_psymbol_to_list): New overload.
4188
e61108c9
TT
41892020-04-24 Tom Tromey <tom@tromey.com>
4190
4191 * dwarf2/read.c (partial_die_info::read) <case
4192 DW_AT_linkage_name>: Use value_as_string.
4193 (dwarf2_string_attr): Use value_as_string.
4194 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
4195 method.
4196 * dwarf2/attribute.c (attribute::value_as_string): New method.
4197
8c87a452
TT
41982020-04-24 Tom Tromey <tom@tromey.com>
4199
4200 * symtab.c (general_symbol_info::natural_name)
4201 (general_symbol_info::demangled_name): Check for language_rust.
4202
787de330
TT
42032020-04-24 Tom Tromey <tom@tromey.com>
4204
4205 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
4206 (dwarf2_physname): ... from here.
4207 (partial_die_info::read): Add Rust "{" hack.
4208
ff985671
TT
42092020-04-24 Tom Tromey <tom@tromey.com>
4210
4211 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
4212 method.
4213 (symbol_set_demangled_name): Don't declare.
4214 * symtab.c (general_symbol_info::set_demangled_name): Rename from
4215 symbol_set_demangled_name.
4216 (general_symbol_info::set_language)
4217 (general_symbol_info::compute_and_set_names): Update.
4218 * minsyms.c (minimal_symbol_reader::install): Update.
4219 * dwarf2/read.c (new_symbol): Update.
4220
1acda803
TT
42212020-04-24 Tom Tromey <tromey@adacore.com>
4222
4223 PR python/23662:
4224 * python/py-type.c (convert_field): Handle
4225 FIELD_LOC_KIND_DWARF_BLOCK.
4226 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
4227 (typy_get_dynamic): Nw function.
4228 (type_object_getset): Add "dynamic".
4229 * NEWS: Add entry.
4230
d656f129
TT
42312020-04-24 Tom Tromey <tromey@adacore.com>
4232
4233 * ada-typeprint.c (print_choices, print_variant_part)
4234 (print_record_field_types_dynamic): New functions.
4235 (print_record_field_types): Use print_record_field_types_dynamic.
4236
7d79de9a
TT
42372020-04-24 Tom Tromey <tromey@adacore.com>
4238
4239 * dwarf2/read.c (handle_data_member_location): New overload.
4240 (dwarf2_add_field): Use it.
4241 (decode_locdesc): Add "computed" parameter. Update comment.
4242 * gdbtypes.c (is_dynamic_type_internal): Also look for
4243 FIELD_LOC_KIND_DWARF_BLOCK.
4244 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
4245 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
4246 virtual base classes.
4247 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
4248 FIELD_LOC_KIND_DWARF_BLOCK.
4249
f8e89861
TT
42502020-04-24 Tom Tromey <tromey@adacore.com>
4251
4252 * dwarf2/read.c (read_structure_type): Handle dynamic length.
4253 * gdbtypes.c (is_dynamic_type_internal): Check
4254 TYPE_HAS_DYNAMIC_LENGTH.
4255 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
4256 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
4257 New macros.
4258 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
4259 constant.
4260
9c6a1327
TT
42612020-04-24 Tom Tromey <tromey@adacore.com>
4262
4263 * dwarf2/read.c (struct variant_field): Rewrite.
4264 (struct variant_part_builder): New.
4265 (struct nextfield): Remove "variant" field. Add "offset".
4266 (struct field_info): Add "current_variant_part" and
4267 "variant_parts".
4268 (alloc_discriminant_info): Remove.
4269 (alloc_rust_variant): New function.
4270 (quirk_rust_enum): Update.
4271 (dwarf2_add_field): Set "offset" member. Don't handle
4272 DW_TAG_variant_part.
4273 (offset_map_type): New typedef.
4274 (convert_variant_range, create_one_variant)
4275 (create_one_variant_part, create_variant_parts)
4276 (add_variant_property): New functions.
4277 (dwarf2_attach_fields_to_type): Call add_variant_property.
4278 (read_structure_type): Don't handle DW_TAG_variant_part.
4279 (handle_variant_part, handle_variant): New functions.
4280 (handle_struct_member_die): Use them.
4281 (process_structure_scope): Don't handle variant parts.
4282 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
4283 (struct discriminant_info): Remove.
4284 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
4285 (struct main_type) <flag_discriminated_union>: Remove.
4286 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
4287 (rust_enum_variant): Return int. Remove "contents". Rewrite.
4288 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
4289 Update.
4290 * valops.c (value_union_variant): Remove.
4291 * value.h (value_union_variant): Don't declare.
4292
b249d2c2
TT
42932020-04-24 Tom Tromey <tromey@adacore.com>
4294
4295 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
4296 (ada_value_primitive_packed_val): Update.
4297 * ada-valprint.c (ada_value_print_1): Update.
4298 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
4299 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
4300 just an address. Use evaluate_for_locexpr_baton.
4301 (dwarf2_evaluate_property): Update.
4302 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
4303 array_view.
4304 * findvar.c (default_read_var_value): Update.
4305 * gdbtypes.c (compute_variant_fields_inner)
4306 (resolve_dynamic_type_internal): Update.
4307 (resolve_dynamic_type): Change type of valaddr parameter.
4308 * gdbtypes.h (resolve_dynamic_type): Update.
4309 * valarith.c (value_subscripted_rvalue): Update.
4310 * value.c (value_from_contents_and_address): Update.
4311
61122aa9
TT
43122020-04-24 Tom Tromey <tromey@adacore.com>
4313
4314 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
4315 "push_initial_value" parameter.
4316 (dwarf2_evaluate_property): Likewise.
4317 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
4318
ef83a141
TT
43192020-04-24 Tom Tromey <tromey@adacore.com>
4320
4321 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
4322 (variant::matches, compute_variant_fields_recurse)
4323 (compute_variant_fields_inner, compute_variant_fields): New
4324 functions.
4325 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
4326 Use resolved_type after type is made.
4327 (operator==): Add new cases.
4328 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
4329 (struct discriminant_range, struct variant, struct variant_part):
4330 New.
4331 (union dynamic_prop_data) <variant_parts, original_type>: New
4332 members.
4333 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
4334 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
4335 constants.
4336 * value.c (unpack_bits_as_long): Now public.
4337 * value.h (unpack_bits_as_long): Declare.
4338
675127ec
TT
43392020-04-24 Tom Tromey <tromey@adacore.com>
4340
4341 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
4342 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
4343
9852ceef
HD
43442020-04-24 Hannes Domani <ssbssa@yahoo.de>
4345
4346 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
4347
7632c6ce
KR
43482020-04-24 Kamil Rytarowski <n54@gmx.com>
4349
4350 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
4351 (remove_fork_catchpoint, post_startup_inferior)
4352 (post_attach): Move...
4353 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
4354 (remove_fork_catchpoint, post_startup_inferior)
4355 (post_attach): ...here.
4356 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
4357 (remove_fork_catchpoint, post_startup_inferior)
4358 (post_attach): Move...
4359 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
4360 (remove_fork_catchpoint, post_startup_inferior)
4361 (post_attach): ...here.
4362
7be2bb4f
TT
43632020-04-24 Tom Tromey <tromey@adacore.com>
4364
4365 * nat/windows-nat.h (struct windows_thread_info)
4366 <pc_adjusted>: New member.
4367 * windows-nat.c (windows_fetch_one_register): Check
4368 pc_adjusted.
4369 (windows_nat_target::get_windows_debug_event)
4370 (windows_nat_target::wait): Set pc_adjusted.
4371
f80cb3b4
TV
43722020-04-24 Tom de Vries <tdevries@suse.de>
4373
4374 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
4375 Run gdb-add-index inside temp dir.
4376
29514b87
TT
43772020-04-23 Tom Tromey <tromey@adacore.com>
4378
4379 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
4380 in loop.
4381
5939967b
LM
43822020-04-23 Luis Machado <luis.machado@linaro.org>
4383
4384 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
4385 get_frame_register instead of gdbarch_unwind_pc.
4386
70bc38f5
TV
43872020-04-23 Tom de Vries <tdevries@suse.de>
4388
4389 * symtab.c (lookup_global_symbol): Prefer def over decl.
4390
de82891c
TV
43912020-04-23 Tom de Vries <tdevries@suse.de>
4392
4393 PR symtab/25807
4394 * block.c (best_symbol, better_symbol): Promote to external.
4395 * block.h (best_symbol, better_symbol): Declare.
4396 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
4397 decl.
4398
ecc6c606
TT
43992020-04-23 Tom Tromey <tromey@adacore.com>
4400
4401 PR ada/25837:
4402 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
4403 "const char *", not a "const std::string &".
4404 <name_and_matcher::operator==>: Update.
4405 * unittests/lookup_name_info-selftests.c: Change type of
4406 "result".
4407
740480b8
TT
44082020-04-23 Tom Tromey <tom@tromey.com>
4409
4410 * inferior.h (iterate_over_inferiors): Don't declare.
4411 * inferior.c (iterate_over_inferiors): Remove.
4412 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
4413 Remove.
4414 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
4415 use iterate_over_inferiors.
4416 (darwin_resume_inferior_it)
4417 (struct resume_inferior_threads_param)
4418 (darwin_resume_inferior_threads_it): Remove.
4419 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
4420
ae3ab1f0
TV
44212020-04-23 Tom de Vries <tdevries@suse.de>
4422
4423 * blockframe.c (find_pc_partial_function): Use
4424 find_pc_sect_compunit_symtab rather than
4425 objfile->sf->qf->find_pc_sect_compunit_symtab.
4426
317d2668
TV
44272020-04-22 Tom de Vries <tdevries@suse.de>
4428
4429 PR symtab/25764
4430 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
4431 in psymtabs.
4432
eea9e357
TV
44332020-04-22 Tom de Vries <tdevries@suse.de>
4434
4435 PR symtab/25801
4436 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
4437 symtabs.
4438
3d5afab3
TV
44392020-04-22 Tom de Vries <tdevries@suse.de>
4440
4441 PR symtab/25700
4442 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
4443 CU if already created.
4444
d43b7a2d
TBA
44452020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4446
4447 * infrun.c (displaced_step_fixup): Switch to the event_thread
4448 before calling displaced_step_restore, not after.
4449
d89edf9b
MM
44502020-04-21 Markus Metzger <markus.t.metzger@intel.com>
4451
4452 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
4453 its inferior is not recorded by us.
4454 (record_btrace_target_open): Replace call to
4455 all_non_exited_threads () with call to current_inferior
4456 ()->non_exited_threads ().
4457 (record_btrace_target::stop_recording): Likewise.
4458 (record_btrace_target::close): Likewise.
4459 (record_btrace_target::wait): Likewise.
4460 (record_btrace_target::record_stop_replaying): Likewise.
4461
5897fd49
MM
44622020-04-21 Markus Metzger <markus.t.metzger@intel.com>
4463
4464 * btrace.c (btrace_enable): Throw an error on double enables and
4465 when enabling recording fails.
4466 (btrace_disable): Throw an error if the thread is not recorded.
4467
1a476b6d
MM
44682020-04-21 Markus Metzger <markus.t.metzger@intel.com>
4469
4470 * record-btrace.c (record_btrace_target::fetch_registers): Forward
4471 request if we do not have a thread_info.
4472
4778a5f8
TV
44732020-04-21 Tom de Vries <tdevries@suse.de>
4474
4475 PR gdb/25471
4476 * thread.c
4477 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
4478 exception in get_frame_id.
4479
0fa7617d
TT
44802020-04-20 Tom Tromey <tromey@adacore.com>
4481
4482 * python/python.c (struct gdbpy_event): Mark move constructor as
4483 noexcept.
4484 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
4485 constructor as noexcept.
4486 * completer.h (struct completion_result): Mark move constructor as
4487 noexcept.
4488 * completer.c (completion_result::completion_result): Use
4489 initialization style. Don't call reset_match_list.
4490
ad23bda0
MS
44912020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
4492
4493 * MAINTAINERS (Write After Approval): Add myself.
4494
45e1f031
TT
44952020-04-18 Tom Tromey <tom@tromey.com>
4496
4497 * windows-tdep.c (init_w32_command_list)
4498 (w32_prefix_command_valid): Restore.
4499 (_initialize_windows_tdep): Call init_w32_command_list.
4500
08feed99
TT
45012020-04-18 Tom Tromey <tom@tromey.com>
4502
4503 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
4504 * value.c (value_fn_field): Update.
4505 * valops.c (find_function_in_inferior)
4506 (value_allocate_space_in_inferior): Update.
4507 * tui/tui-winsource.c (tui_update_source_windows_with_line):
4508 Update.
4509 * tui/tui-source.c (tui_source_window::set_contents): Update.
4510 * symtab.c (lookup_global_or_static_symbol)
4511 (find_function_start_sal_1, skip_prologue_sal)
4512 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
4513 * symmisc.c (dump_msymbols, dump_symtab_1)
4514 (maintenance_print_one_line_table): Update.
4515 * symfile.c (init_entry_point_info, section_is_mapped)
4516 (list_overlays_command, simple_read_overlay_table)
4517 (simple_overlay_update_1): Update.
4518 * stap-probe.c (handle_stap_probe): Update.
4519 * stabsread.c (dbx_init_float_type, define_symbol)
4520 (read_one_struct_field, read_enum_type, read_range_type): Update.
4521 * source.c (info_line_command): Update.
4522 * python/python.c (gdbpy_source_objfile_script)
4523 (gdbpy_execute_objfile_script): Update.
4524 * python/py-type.c (save_objfile_types): Update.
4525 * python/py-objfile.c (py_free_objfile): Update.
4526 * python/py-inferior.c (python_new_objfile): Update.
4527 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
4528 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
4529 (maintenance_check_psymtabs): Update.
4530 * printcmd.c (info_address_command): Update.
4531 * objfiles.h (struct objfile) <arch>: New method, from
4532 get_objfile_arch.
4533 (get_objfile_arch): Don't declare.
4534 * objfiles.c (get_objfile_arch): Remove.
4535 (filter_overlapping_sections): Update.
4536 * minsyms.c (msymbol_is_function): Update.
4537 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
4538 (output_nondebug_symbol): Update.
4539 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
4540 (mdebug_expand_psymtab): Update.
4541 * machoread.c (macho_add_oso_symfile): Update.
4542 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
4543 Update.
4544 * linux-fork.c (checkpoint_command): Update.
4545 * linespec.c (convert_linespec_to_sals): Update.
4546 * jit.c (finalize_symtab): Update.
4547 * infrun.c (insert_exception_resume_from_probe): Update.
4548 * ia64-tdep.c (ia64_find_unwind_table): Update.
4549 * hppa-tdep.c (internalize_unwinds): Update.
4550 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
4551 Update.
4552 * gcore.c (call_target_sbrk): Update.
4553 * elfread.c (record_minimal_symbol, elf_symtab_read)
4554 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
4555 (elf_gnu_ifunc_resolve_by_got): Update.
4556 * dwarf2/read.c (create_addrmap_from_index)
4557 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
4558 (read_debug_names_from_section)
4559 (process_psymtab_comp_unit_reader, add_partial_symbol)
4560 (add_partial_subprogram, process_full_comp_unit)
4561 (read_file_scope, read_func_scope, read_lexical_block_scope)
4562 (read_call_site_scope, dwarf2_ranges_read)
4563 (dwarf2_record_block_ranges, dwarf2_add_field)
4564 (mark_common_block_symbol_computed, read_tag_pointer_type)
4565 (read_tag_string_type, dwarf2_init_float_type)
4566 (dwarf2_init_complex_target_type, read_base_type)
4567 (partial_die_info::read, partial_die_info::read)
4568 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
4569 (dwarf2_fetch_die_loc_sect_off): Update.
4570 * dwarf2/loc.c (dwarf2_find_location_expression)
4571 (class dwarf_evaluate_loc_desc, rw_pieced_value)
4572 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
4573 (dwarf2_loc_desc_get_symbol_read_needs)
4574 (locexpr_describe_location_piece, locexpr_describe_location_1)
4575 (loclist_describe_location): Update.
4576 * dwarf2/index-write.c (write_debug_names): Update.
4577 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
4578 * dtrace-probe.c (dtrace_process_dof): Update.
4579 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
4580 (process_one_symbol): Update.
4581 * ctfread.c (ctf_init_float_type, read_base_type): Update.
4582 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
4583 (coff_read_enum_type): Update.
4584 * cli/cli-cmds.c (edit_command, list_command): Update.
4585 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
4586 * breakpoint.c (create_overlay_event_breakpoint)
4587 (create_longjmp_master_breakpoint)
4588 (create_std_terminate_master_breakpoint)
4589 (create_exception_master_breakpoint, get_sal_arch): Update.
4590 * block.c (block_gdbarch): Update.
4591 * annotate.c (annotate_source_line): Update.
4592
0743fc83
TT
45932020-04-17 Tom Tromey <tromey@adacore.com>
4594
4595 * auto-load.c (show_auto_load_cmd): Remove.
4596 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
4597 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
4598 (maintenance_print_arc_command): Remove.
4599 * tui/tui-win.c (tui_command): Remove.
4600 (tui_get_cmd_list): Use add_basic_prefix_cmd.
4601 * tui/tui-layout.c (tui_layout_command): Remove.
4602 (_initialize_tui_layout): Use add_basic_prefix_cmd.
4603 * python/python.c (user_set_python, user_show_python): Remove.
4604 (_initialize_python): Use add_basic_prefix_cmd,
4605 add_show_prefix_cmd.
4606 * guile/guile.c (set_guile_command, show_guile_command): Remove.
4607 (install_gdb_commands): Use add_basic_prefix_cmd,
4608 add_show_prefix_cmd.
4609 (info_guile_command): Remove.
4610 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
4611 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
4612 add_show_prefix_cmd.
4613 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
4614 Remove do_set and do_show parameters.
4615 * cli/cli-style.c (set_style, show_style): Remove.
4616 (_initialize_cli_style): Use add_basic_prefix_cmd,
4617 add_show_prefix_cmd.
4618 (cli_style_option::add_setshow_commands): Remove do_set and
4619 do_show parameters.
4620 (cli_style_option::add_setshow_commands): Use
4621 add_basic_prefix_cmd, add_show_prefix_cmd.
4622 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
4623 (set_style_name): Remove.
4624 * cli/cli-dump.c (dump_command, append_command): Remove.
4625 (srec_dump_command, ihex_dump_command, verilog_dump_command)
4626 (tekhex_dump_command, binary_dump_command)
4627 (binary_append_command): Remove.
4628 (_initialize_cli_dump): Use add_basic_prefix_cmd.
4629 * windows-tdep.c (w32_prefix_command_valid): Remove global.
4630 (init_w32_command_list): Remove; move into ...
4631 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
4632 * valprint.c (set_print, show_print, set_print_raw)
4633 (show_print_raw): Remove.
4634 (_initialize_valprint): Use add_basic_prefix_cmd,
4635 add_show_prefix_cmd.
4636 * typeprint.c (set_print_type, show_print_type): Remove.
4637 (_initialize_typeprint): Use add_basic_prefix_cmd,
4638 add_show_prefix_cmd.
4639 * record.c (set_record_command, show_record_command): Remove.
4640 (_initialize_record): Use add_basic_prefix_cmd,
4641 add_show_prefix_cmd.
4642 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
4643 add_show_prefix_cmd.
4644 (info_command, show_command, set_debug, show_debug): Remove.
4645 * top.h (set_history, show_history): Don't declare.
4646 * top.c (set_history, show_history): Remove.
4647 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
4648 (unset_tdesc_cmd): Remove.
4649 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
4650 add_show_prefix_cmd.
4651 * symtab.c (info_module_command): Remove.
4652 (_initialize_symtab): Use add_basic_prefix_cmd.
4653 * symfile.c (overlay_command): Remove.
4654 (_initialize_symfile): Use add_basic_prefix_cmd.
4655 * sparc64-tdep.c (info_adi_command): Remove.
4656 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
4657 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
4658 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
4659 add_show_prefix_cmd.
4660 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
4661 (_initialize_serial): Use add_basic_prefix_cmd,
4662 add_show_prefix_cmd.
4663 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
4664 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
4665 add_show_prefix_cmd.
4666 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
4667 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
4668 add_show_prefix_cmd.
4669 * riscv-tdep.c (show_riscv_command, set_riscv_command)
4670 (show_debug_riscv_command, set_debug_riscv_command): Remove.
4671 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
4672 add_show_prefix_cmd.
4673 * remote.c (remote_command, set_remote_cmd): Remove.
4674 (_initialize_remote): Use add_basic_prefix_cmd.
4675 * record-full.c (set_record_full_command)
4676 (show_record_full_command): Remove.
4677 (_initialize_record_full): Use add_basic_prefix_cmd,
4678 add_show_prefix_cmd.
4679 * record-btrace.c (cmd_set_record_btrace)
4680 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
4681 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
4682 (cmd_show_record_btrace_pt): Remove.
4683 (_initialize_record_btrace): Use add_basic_prefix_cmd,
4684 add_show_prefix_cmd.
4685 * ravenscar-thread.c (set_ravenscar_command)
4686 (show_ravenscar_command): Remove.
4687 (_initialize_ravenscar): Use add_basic_prefix_cmd,
4688 add_show_prefix_cmd.
4689 * mips-tdep.c (show_mips_command, set_mips_command)
4690 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
4691 add_show_prefix_cmd.
4692 * maint.c (maintenance_command, maintenance_info_command)
4693 (maintenance_check_command, maintenance_print_command)
4694 (maintenance_set_cmd, maintenance_show_cmd): Remove.
4695 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
4696 add_show_prefix_cmd.
4697 (show_per_command_cmd): Remove.
4698 * maint-test-settings.c (maintenance_set_test_settings_cmd):
4699 Remove.
4700 (maintenance_show_test_settings_cmd): Remove.
4701 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
4702 add_show_prefix_cmd.
4703 * maint-test-options.c (maintenance_test_options_command):
4704 Remove.
4705 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
4706 * macrocmd.c (macro_command): Remove
4707 (_initialize_macrocmd): Use add_basic_prefix_cmd.
4708 * language.c (set_check, show_check): Remove.
4709 (_initialize_language): Use add_basic_prefix_cmd,
4710 add_show_prefix_cmd.
4711 * infcmd.c (unset_command): Remove.
4712 (_initialize_infcmd): Use add_basic_prefix_cmd.
4713 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
4714 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
4715 add_show_prefix_cmd.
4716 * go32-nat.c (go32_info_dos_command): Remove.
4717 (_initialize_go32_nat): Use add_basic_prefix_cmd.
4718 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
4719 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
4720 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
4721 (_initialize_frame): Use add_basic_prefix_cmd,
4722 add_show_prefix_cmd.
4723 * dcache.c (set_dcache_command, show_dcache_command): Remove.
4724 (_initialize_dcache): Use add_basic_prefix_cmd,
4725 add_show_prefix_cmd.
4726 * cp-support.c (maint_cplus_command): Remove.
4727 (_initialize_cp_support): Use add_basic_prefix_cmd.
4728 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
4729 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
4730 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
4731 add_basic_prefix_cmd, add_show_prefix_cmd.
4732 * breakpoint.c (save_command): Remove.
4733 (_initialize_breakpoint): Use add_basic_prefix_cmd.
4734 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
4735 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
4736 add_show_prefix_cmd.
4737 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
4738 (set_ada_command, show_ada_command): Remove.
4739 (_initialize_ada_language): Use add_basic_prefix_cmd,
4740 add_show_prefix_cmd.
4741 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
4742
3557f442
KR
47432020-04-16 Kamil Rytarowski <n54@gmx.com>
4744
4745 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
4746 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
4747
16197208
SM
47482020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
4749
4750 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
4751 warning messages.
4752
00ac85d3
SM
47532020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
4754
4755 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
4756 import table is not at beginning of .idata section.
4757
381ce63f
PA
47582020-04-16 Pedro Alves <palves@redhat.com>
4759
4760 * inferior.c (delete_inferior): Use delete operator directly
4761 instead of delete_program_space.
4762 * progspace.c (add_program_space): New, factored out from
4763 program_space::program_space.
4764 (remove_program_space): New, factored out from
4765 delete_program_space.
4766 (program_space::program_space): Remove intro comment. Rewrite.
4767 (program_space::~program_space): Remove intro comment. Call
4768 remove_program_space.
4769 (delete_program_space): Delete.
4770 * progspace.h (program_space::program_space): Make explicit. Move
4771 intro comment here, adjusted.
4772 (program_space::~program_space): Move intro comment here,
4773 adjusted.
4774 (delete_program_space): Remove.
4775
a010605f
TT
47762020-04-16 Tom Tromey <tromey@adacore.com>
4777
4778 * windows-nat.c (windows_nat::handle_access_violation): New
4779 function.
4780 * nat/windows-nat.h (handle_access_violation): Declare.
4781 * nat/windows-nat.c (handle_exception): Move Cygwin code to
4782 windows-nat.c. Call handle_access_violation.
4783
efba5c23
TV
47842020-04-16 Tom de Vries <tdevries@suse.de>
4785
4786 PR symtab/25791
4787 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
4788 CUs without psymtab.
4789
97ed802d
KB
47902020-04-16 Kevin Buettner <kevinb@redhat.com>
4791
4792 * python/python.c (do_start_initialization): Don't call
4793 PyEval_InitThreads for Python 3.9 and beyond.
4794
c7d64809
KR
47952020-04-15 Kamil Rytarowski <n54@gmx.com>
4796
4797 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
4798 thread functions.
4799 (obsd_nat_target::wait): Likewise.
4800
ce127a96
TT
48012020-04-15 Tom Tromey <tromey@adacore.com>
4802
4803 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
4804 (DEBUG_EXCEPT): Use debug_printf.
4805
99f1bc6a
AB
48062020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
4807
4808 * completer.c (class completion_tracker::completion_hash_entry)
4809 <hash_name>: New member function.
4810 (completion_tracker::discard_completions): New callback to hash a
4811 completion_hash_entry, pass this to htab_create_alloc.
4812
a0e9b532
JT
48132016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
4814
4815 * windows-nat.c (windows_make_so): Warn rather than stopping with
4816 an error if realpath() fails.
4817
06ca5dd4
KR
48182020-04-14 Kamil Rytarowski <n54@gmx.com>
4819
4820 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
4821 (nbsd_nat_target::info_proc): Add do_status.
4822
194d088f
TV
48232020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
4824 Tom de Vries <tdevries@suse.de>
4825
4826 PR symtab/25718
4827 * psympriv.h (struct partial_symtab::read_symtab)
4828 (struct partial_symtab::expand_psymtab)
4829 (struct partial_symtab::read_dependencies): Update comments.
4830 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
4831 read_symtab for includer.
4832 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
4833 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
4834 (struct dwarf2_include_psymtab::m_readin): Remove.
4835 (struct dwarf2_include_psymtab::includer): New member function.
4836 (dwarf2_psymtab::expand_psymtab): Assert !readin.
4837
c1a66c06
TV
48382020-04-14 Tom de Vries <tdevries@suse.de>
4839
4840 PR symtab/25720
4841 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
4842 with NULL symbol_matcher and lookup_name.
4843 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
4844 and lookup_name.
4845 * dwarf2/read.c (dw2_expand_symtabs_matching)
4846 (dw2_debug_names_expand_symtabs_matching): Same.
4847 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
4848 Make lookup_name a pointer. Update comment.
4849 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
4850 lookup_name being a pointer.
4851 * symfile.c (expand_symtabs_matching): Same.
4852 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
4853 * linespec.c (iterate_over_all_matching_symtabs): Same.
4854
400b5eca
TT
48552020-04-13 Tom Tromey <tom@tromey.com>
4856
4857 * run-on-main-thread.c: Update include.
4858 * unittests/main-thread-selftests.c: Update include.
4859 * tui/tui-win.c: Update include.
4860 * tui/tui-io.c: Update include.
4861 * tui/tui-interp.c: Update include.
4862 * tui/tui-hooks.c: Update include.
4863 * top.h: Update include.
4864 * top.c: Update include.
4865 * ser-base.c: Update include.
4866 * remote.c: Update include.
4867 * remote-notif.c: Update include.
4868 * remote-fileio.c: Update include.
4869 * record-full.c: Update include.
4870 * record-btrace.c: Update include.
4871 * python/python.c: Update include.
4872 * posix-hdep.c: Update include.
4873 * mingw-hdep.c: Update include.
4874 * mi/mi-main.c: Update include.
4875 * mi/mi-interp.c: Update include.
4876 * main.c: Update include.
4877 * linux-nat.c: Update include.
4878 * interps.c: Update include.
4879 * infrun.c: Update include.
4880 * inf-loop.c: Update include.
4881 * event-top.c: Update include.
4882 * event-loop.c: Move to ../gdbsupport/.
4883 * event-loop.h: Move to ../gdbsupport/.
4884 * async-event.h: Update include.
4885 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
4886
93b54c8e
TT
48872020-04-13 Tom Tromey <tom@tromey.com>
4888
4889 * tui/tui-win.c: Include async-event.h.
4890 * remote.c: Include async-event.h.
4891 * remote-notif.c: Include async-event.h.
4892 * record-full.c: Include async-event.h.
4893 * record-btrace.c: Include async-event.h.
4894 * infrun.c: Include async-event.h.
4895 * event-top.c: Include async-event.h.
4896 * event-loop.h: Move some declarations to async-event.h.
4897 * event-loop.c: Don't include ser-event.h or top.h. Move some
4898 code to async-event.c.
4899 * async-event.h: New file.
4900 * async-event.c: New file.
4901 * Makefile.in (COMMON_SFILES): Add async-event.c.
4902 (HFILES_NO_SRCDIR): Add async-event.h.
4903
c1cd3163
TT
49042020-04-13 Tom Tromey <tom@tromey.com>
4905
4906 * utils.c (flush_streams): New function.
4907 * event-loop.c (gdb_wait_for_event): Call flush_streams.
4908
29f2bf4f
TT
49092020-04-13 Tom Tromey <tom@tromey.com>
4910
4911 * event-loop.c (handle_file_event): Use warning, not
4912 printf_unfiltered.
4913
98029d02
TT
49142020-04-13 Tom Tromey <tom@tromey.com>
4915
4916 * event-loop.c: Include <chrono>.
4917
06cc9596
TT
49182020-04-13 Tom Tromey <tom@tromey.com>
4919
4920 * gdb_select.h: Move to ../gdbsupport/.
4921 * event-loop.c: Update include path.
4922 * top.c: Update include path.
4923 * ser-base.c: Update include path.
4924 * ui-file.c: Update include path.
4925 * ser-tcp.c: Update include path.
4926 * guile/scm-ports.c: Update include path.
4927 * posix-hdep.c: Update include path.
4928 * ser-unix.c: Update include path.
4929 * gdb_usleep.c: Update include path.
4930 * mingw-hdep.c: Update include path.
4931 * inflow.c: Update include path.
4932 * infrun.c: Update include path.
4933 * event-top.c: Update include path.
4934
8ae8e197
TT
49352020-04-13 Tom Tromey <tom@tromey.com>
4936
4937 * configure: Rebuild.
4938 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
4939
58cf28e8
TT
49402020-04-13 Tom Tromey <tom@tromey.com>
4941
4942 * event-loop.h (start_event_loop): Don't declare.
4943 * event-loop.c (start_event_loop): Move...
4944 * main.c (start_event_loop): ...here. Now static.
4945
b7f999ae
SDJ
49462020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
4947
4948 * MAINTAINERS: Update my email address.
4949
1085dfd4
KR
49502020-04-12 Kamil Rytarowski <n54@gmx.com>
4951
4952 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
4953 IP_ALL.
4954
49d1d1f5
KR
49552020-04-12 Kamil Rytarowski <n54@gmx.com>
4956
4957 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
aac66a4c 4958 (nbsd_nat_target::info_proc): Add do_cmdline.
49d1d1f5 4959
b4848d2a
KR
49602020-04-12 Kamil Rytarowski <n54@gmx.com>
4961
4962 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
aac66a4c 4963 (nbsd_nat_target::info_proc): Add do_cwd.
b4848d2a 4964
51c133d5
KR
49652020-04-12 Kamil Rytarowski <n54@gmx.com>
4966
4967 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
4968
54b8cbd0
KR
49692020-04-11 Kamil Rytarowski <n54@gmx.com>
4970
4971 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
4972 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
4973 (nbsd_nat_target::info_proc): New functions.
4974 * nbsd-nat.c (kinfo_get_vmmap): New function.
4975 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
4976 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
4977 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
4978 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
4979 functions.
4980 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
4981 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
4982 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
4983 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
4984 (KINFO_VME_FLAG_GROWS_DOWN): New.
4985
cf83625d
AS
49862020-04-10 Artur Shepilko <nomadbyte@gmail.com>
4987
4988 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
4989 bit shift.
4990
0c4311ab
TT
49912020-04-10 Tom Tromey <tromey@adacore.com>
4992
4993 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
4994
3e65b3e9
TT
49952020-04-10 Tom Tromey <tromey@adacore.com>
4996
4997 * symtab.c (get_symbol_address, get_msymbol_address): Skip
4998 separate debug files.
4999
13302e95
HD
50002020-04-10 Hannes Domani <ssbssa@yahoo.de>
5001
5002 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
5003 Move to...
5004 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
5005 ... here.
5006 * windows-nat.c (windows_nat_target::get_windows_debug_event):
5007 Check for STATUS_WX86_BREAKPOINT.
5008 (windows_nat_target::wait): Same.
5009
bdfc1e8a
TV
50102020-04-10 Tom de Vries <tdevries@suse.de>
5011
5012 PR cli/25808
5013 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
5014
f4460aec
SM
50152020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
5016
5017 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
5018 (Write After Approval): Remove Tom de Vries.
5019
a25198bb
BE
50202020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
5021
5022 revert partially:
5023 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
5024
aac66a4c
SM
5025 * buildsym.c (record_line): Fix undefined behavior and preserve
5026 lines at eof.
a25198bb 5027
206c98a6
KR
50282020-04-09 Kamil Rytarowski <n54@gmx.com>
5029
5030 * auxv.h (svr4_auxv_parse): New.
5031 * auxv.c (default_auxv_parse): Split into default_auxv_parse
5032 and generic_auxv_parse.
5033 (svr4_auxv_parse): Add.
5034 * obsd-tdep.c: Include "auxv.h".
5035 (obsd_auxv_parse): Remove.
5036 (obsd_init_abi): Remove comment.
5037 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
5038 from `obsd_auxv_parse' to `svr4_auxv_parse'.
5039 * nbsd-tdep.c: Include "auxv.h".
5040 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
5041
71fbdbaf
TT
50422020-04-08 Tom Tromey <tromey@adacore.com>
5043
5044 * nat/windows-nat.h (last_wait_event): Don't declare.
5045 (wait_for_debug_event): Update comment.
5046 * nat/windows-nat.c (last_wait_event): Now static.
5047
2c1d95e8
TT
50482020-04-08 Tom Tromey <tromey@adacore.com>
5049
5050 * windows-nat.c (wait_for_debug_event): Move to
5051 nat/windows-nat.c.
5052 * nat/windows-nat.h (wait_for_debug_event): Declare.
5053 * nat/windows-nat.c (wait_for_debug_event): Move from
5054 windows-nat.c. No longer static.
5055
d2977bc4
TT
50562020-04-08 Tom Tromey <tromey@adacore.com>
5057
5058 * windows-nat.c (get_windows_debug_event): Use
5059 fetch_pending_stop.
5060 * nat/windows-nat.h (fetch_pending_stop): Declare.
5061 * nat/windows-nat.c (fetch_pending_stop): New function.
5062
e758e19c
TT
50632020-04-08 Tom Tromey <tromey@adacore.com>
5064
5065 * windows-nat.c (windows_continue): Use matching_pending_stop and
5066 continue_last_debug_event.
5067 * nat/windows-nat.h (matching_pending_stop)
5068 (continue_last_debug_event): Declare.
5069 * nat/windows-nat.c (DEBUG_EVENTS): New define.
5070 (matching_pending_stop, continue_last_debug_event): New
5071 functions.
5072
8d30e395
TT
50732020-04-08 Tom Tromey <tromey@adacore.com>
5074
5075 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
5076 (handle_exception_result): Move to nat/windows-nat.h.
5077 (DEBUG_EXCEPTION_SIMPLE): Remove.
5078 (windows_nat::handle_ms_vc_exception): New function.
5079 (handle_exception): Move to nat/windows-nat.c.
5080 (get_windows_debug_event): Update.
5081 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
5082 nat/windows-nat.c.
5083 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
5084 (handle_exception_result): Move from windows-nat.c.
5085 (handle_exception): Declare.
5086 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
5087 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
5088 windows-nat.c.
5089
29de418d
TT
50902020-04-08 Tom Tromey <tromey@adacore.com>
5091
5092 * windows-nat.c (exception_count, event_count): Remove.
5093 (handle_exception, get_windows_debug_event)
5094 (do_initial_windows_stuff): Update.
5095
a816ba18
TT
50962020-04-08 Tom Tromey <tromey@adacore.com>
5097
5098 * windows-nat.c (windows_nat::handle_load_dll)
5099 (windows_nat::handle_unload_dll): Rename. No longer static.
5100 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
5101 Declare.
5102
a00caa12
TT
51032020-04-08 Tom Tromey <tromey@adacore.com>
5104
5105 * complaints.h (stop_whining): Declare at top-level.
5106 (complaint): Don't declare stop_whining.
5107
d41b524f
TT
51082020-04-08 Tom Tromey <tromey@adacore.com>
5109
5110 * windows-nat.c (windows_nat::handle_output_debug_string):
5111 Rename. No longer static.
5112 * nat/windows-nat.h (handle_output_debug_string): Declare.
5113
3c76026d
TT
51142020-04-08 Tom Tromey <tromey@adacore.com>
5115
5116 * windows-nat.c (current_process_handle, current_process_id)
5117 (main_thread_id, last_sig, current_event, last_wait_event)
5118 (current_windows_thread, desired_stop_thread_id, pending_stops)
5119 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
5120 (display_selectors, fake_create_process)
5121 (get_windows_debug_event): Update.
5122 * nat/windows-nat.h (current_process_handle, current_process_id)
5123 (main_thread_id, last_sig, current_event, last_wait_event)
5124 (current_windows_thread, desired_stop_thread_id, pending_stops)
5125 (struct pending_stop, siginfo_er): Move from windows-nat.c.
5126 * nat/windows-nat.c (current_process_handle, current_process_id)
5127 (main_thread_id, last_sig, current_event, last_wait_event)
5128 (current_windows_thread, desired_stop_thread_id, pending_stops)
5129 (siginfo_er): New globals. Move from windows-nat.c.
5130
9d8679cc
TT
51312020-04-08 Tom Tromey <tromey@adacore.com>
5132
5133 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
5134 (handle_load_dll): Update.
5135 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
5136
28688adf
TT
51372020-04-08 Tom Tromey <tromey@adacore.com>
5138
5139 * windows-nat.c (enum thread_disposition_type): Move to
5140 nat/windows-nat.h.
5141 (windows_nat::thread_rec): Rename from thread_rec. No longer
5142 static.
5143 (windows_add_thread, windows_nat_target::fetch_registers)
5144 (windows_nat_target::store_registers, handle_exception)
5145 (windows_nat_target::resume, get_windows_debug_event)
5146 (windows_nat_target::get_tib_address)
5147 (windows_nat_target::thread_name)
5148 (windows_nat_target::thread_alive): Update.
5149 * nat/windows-nat.h (enum thread_disposition_type): Move from
5150 windows-nat.c.
5151 (thread_rec): Declare.
5152
4834dad0
TT
51532020-04-08 Tom Tromey <tromey@adacore.com>
5154
5155 * windows-nat.c: Add "using namespace".
5156 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
5157 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
5158
65bafd5b
TT
51592020-04-08 Tom Tromey <tromey@adacore.com>
5160
5161 * nat/windows-nat.h (struct windows_thread_info): Declare
5162 destructor.
5163 * nat/windows-nat.c (~windows_thread_info): New.
5164
0a4afda3
TT
51652020-04-08 Tom Tromey <tromey@adacore.com>
5166
5167 PR gdb/22992
5168 * windows-nat.c (current_event): Update comment.
5169 (last_wait_event, desired_stop_thread_id): New globals.
5170 (struct pending_stop): New.
5171 (pending_stops): New global.
5172 (windows_nat_target) <stopped_by_sw_breakpoint>
5173 <supports_stopped_by_sw_breakpoint>: New methods.
5174 (windows_fetch_one_register): Add assertions. Adjust PC.
5175 (windows_continue): Handle pending stops. Suspend other threads
5176 when stepping. Use last_wait_event
5177 (wait_for_debug_event): New function.
5178 (get_windows_debug_event): Use wait_for_debug_event. Handle
5179 pending stops. Queue spurious stops.
5180 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
5181 (windows_nat_target::kill): Use wait_for_debug_event.
5182 * nat/windows-nat.h (struct windows_thread_info)
5183 <stopped_at_software_breakpoint>: New field.
5184 * nat/windows-nat.c (windows_thread_info::resume): Clear
5185 stopped_at_software_breakpoint.
5186
8e61ebec
TT
51872020-04-08 Tom Tromey <tromey@adacore.com>
5188
5189 * windows-nat.c (enum thread_disposition_type): New.
5190 (thread_rec): Replace "get_context" parameter with "disposition";
5191 change type.
5192 (windows_add_thread, windows_nat_target::fetch_registers)
5193 (windows_nat_target::store_registers, handle_exception)
5194 (windows_nat_target::resume, get_windows_debug_event)
5195 (windows_nat_target::get_tib_address)
5196 (windows_nat_target::thread_name)
5197 (windows_nat_target::thread_alive): Update.
5198
98a03287
TT
51992020-04-08 Tom Tromey <tromey@adacore.com>
5200
5201 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
5202 (windows_continue): Use windows_continue::resume.
5203 * nat/windows-nat.h (struct windows_thread_info) <suspend,
5204 resume>: Declare new methods.
5205 * nat/windows-nat.c: New file.
5206 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
5207
7c7411bc
TT
52082020-04-08 Tom Tromey <tromey@adacore.com>
5209
5210 * windows-nat.c (windows_add_thread, windows_delete_thread)
5211 (windows_nat_target::fetch_registers)
5212 (windows_nat_target::store_registers, fake_create_process)
5213 (windows_nat_target::resume, windows_nat_target::resume)
5214 (get_windows_debug_event, windows_nat_target::wait)
5215 (windows_nat_target::pid_to_str)
5216 (windows_nat_target::get_tib_address)
5217 (windows_nat_target::get_ada_task_ptid)
5218 (windows_nat_target::thread_name)
5219 (windows_nat_target::thread_alive): Use lwp, not tid.
5220
2950fdf7
TT
52212020-04-08 Tom Tromey <tromey@adacore.com>
5222
5223 * windows-nat.c (handle_exception)
5224 (windows_nat_target::thread_name): Update.
5225 * nat/windows-nat.h (windows_thread_info): Remove destructor.
5226 <name>: Now unique_xmalloc_ptr.
5227
62fe396b
TT
52282020-04-08 Tom Tromey <tromey@adacore.com>
5229
5230 * windows-nat.c (thread_rec)
5231 (windows_nat_target::fetch_registers): Update.
5232 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
5233 Update comment.
5234 <debug_registers_changed, reload_context>: Now bool.
5235
e9534bd2
TT
52362020-04-08 Tom Tromey <tromey@adacore.com>
5237
5238 * windows-nat.c (windows_add_thread): Use new.
5239 (windows_init_thread_list, windows_delete_thread): Use delete.
5240 (get_windows_debug_event): Update.
5241 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
5242 destructor, and initializers.
5243
ae1f8880
TT
52442020-04-08 Tom Tromey <tromey@adacore.com>
5245
5246 * windows-nat.c (struct windows_thread_info): Remove.
5247 * nat/windows-nat.h: New file.
5248
55a1e039
TT
52492020-04-08 Tom Tromey <tromey@adacore.com>
5250
5251 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
5252 (thread_rec, windows_add_thread, windows_delete_thread)
5253 (windows_continue): Update.
5254
93366324
TT
52552020-04-08 Tom Tromey <tromey@adacore.com>
5256
5257 * windows-nat.c (struct windows_thread_info): Remove typedef.
5258 (thread_head): Remove.
5259 (thread_list): New global.
5260 (thread_rec, windows_add_thread, windows_init_thread_list)
5261 (windows_delete_thread, windows_continue): Update.
5262
0f2265e2
SM
52632020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
5264
5265 * windows-tdep.h (windows_init_abi): Add comment.
5266 (cygwin_init_abi): New declaration.
5267 * windows-tdep.c: Split signal enumeration in two, one for
5268 Windows and one for Cygwin.
5269 (windows_gdb_signal_to_target): Only deal with signal of the
5270 Windows OS ABI.
5271 (cygwin_gdb_signal_to_target): New function.
5272 (windows_init_abi): Rename to windows_init_abi_common, don't set
5273 gdb_signal_to_target gdbarch method. Add new new function with
5274 this name.
5275 (cygwin_init_abi): New function.
5276 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
5277 comment. Don't call windows_init_abi.
5278 (amd64_windows_init_abi): Add comment, call windows_init_abi.
5279 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
5280 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
5281 i386_windows_init_abi_common, don't call windows_init_abi. Add
5282 a new function of this name.
5283 (i386_cygwin_init_abi): New function.
5284 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
5285 OS ABI Cygwin.
5286
3810f182
SM
52872020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
5288
5289 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
5290 parameter.c.
5291 (dwarf2_read_gdb_index): Update.
5292
063f8e80
KR
52932020-04-07 Kamil Rytarowski <n54@gmx.com>
5294
5295 * nbsd-tdep.c: Include "objfiles.h".
5296 (nbsd_skip_solib_resolver): New.
5297 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
5298
85a9510c 52992020-04-07 Nitika Achra <Nitika.Achra@amd.com>
5300
5301 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
5302 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
5303 with DW_LLE_base_addressx are being emitted in DWARFv5.
5304 Add the newly added kind DW_LOC_OFFSET_PAIR also.
5305 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
5306 unsigned integer.
5307
9fc3eaae 53082020-04-07 Nitika Achra <Nitika.Achra@amd.com>
5309
5310 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
5311 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
5312 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
5313 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
5314 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
5315 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
5316 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
5317
5318
41144253 53192020-04-07 Nitika Achra <Nitika.Achra@amd.com>
5320
5321 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
5322 (read_loclist_index): New function definition.
5323 (lookup_loclist_base): New function definition.
5324 (read_loclist_header): New function definition.
5325 (dwarf2_cu): Add loclist_base and loclist_header field.
5326 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
5327 (read_full_die_1): Read the value of DW_AT_loclists_base.
5328 (read_attribute_reprocess): Handle DW_FORM_loclistx.
5329 (read_attribute_value): Handle DW_FORM_loclistx.
5330 (skip_one_die): Handle DW_FORM_loclistx.
5331 (loclist_header): New structure declaration.
5332 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
5333
9f4e76a4
SM
53342020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
5335
5336 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
5337 constructor. Remove `addr` parameter from other constructor and
5338 add `per_cu` parameter.
5339 * dwarf2/read.c (create_partial_symtab): Update.
5340
25c11aca
TV
53412020-04-07 Tom de Vries <tdevries@suse.de>
5342
5343 PR symtab/25796
5344 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
5345 (partial_die_info::fixup): Inherit has_const_value.
5346
5707e24b
TV
53472020-04-07 Tom de Vries <tdevries@suse.de>
5348
5349 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
5350 symbols without address.
5351
05f00e22
KR
53522020-04-06 Kamil Rytarowski <n54@gmx.com>
5353
5354 * nbsd-nat.h (struct thread_info): Add forward declaration.
5355 (nbsd_nat_target::thread_alive): Add.
5356 (nbsd_nat_target::thread_name): Likewise.
5357 (nbsd_nat_target::update_thread_list): Likewise.
5358 (update_thread_list::post_attach): Likewise.
5359 (post_attach::pid_to_str): Likewise.
5360 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
5361 (nbsd_thread_lister): Add.
5362 (nbsd_nat_target::thread_alive): Likewise.
5363 (nbsd_nat_target::thread_name): Likewise.
5364 (nbsd_add_threads): Likewise.
5365 (update_thread_list::post_attach): Likewise.
5366 (nbsd_nat_target::update_thread_list): Likewise.
5367 (post_attach::pid_to_str): Likewise.
5368
6ee448cc
TT
53692020-04-06 Tom Tromey <tromey@adacore.com>
5370
5371 * ada-valprint.c (print_variant_part): Extract the variant field.
5372 (print_field_values): Use the field as the outer value when
5373 recursing.
5374
dea34e8c
TT
53752020-04-06 Tom Tromey <tromey@adacore.com>
5376
5377 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
5378 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
5379 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
5380 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
5381 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
5382
93689ce9
TT
53832020-04-06 Tom Tromey <tromey@adacore.com>
5384
5385 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
5386 TYPE_CODE_ERROR.
5387
79743962
KR
53882020-04-06 Kamil Rytarowski <n54@gmx.com>
5389
5390 * nbsd-tdep.c: Include "gdbarch.h".
5391 Define enum with NetBSD signal numbers.
5392 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
5393 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
5394 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
5395 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
5396 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
5397 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
5398 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
5399 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
5400 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
5401 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
5402 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
5403 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
5404
9e7c9a03
HD
54052020-04-03 Hannes Domani <ssbssa@yahoo.de>
5406
5407 PR gdb/25325
5408 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
5409
d9e49b61
TT
54102020-04-03 Tom Tromey <tromey@adacore.com>
5411
5412 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
5413 Read constant block.
5414
e0fc5c3f
SM
54152020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
5416
5417 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
5418 (gdb_bfd_get_full_section_contents): New declaration.
5419 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
5420 * windows-tdep.c (is_linked_with_cygwin_dll): Use
5421 gdb_bfd_get_full_section_contents.
5422
e2ff18a0
SM
54232020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
5424
5425 * exec.c (build_section_table): Replace internal_error with
5426 gdb_assert.
5427 (section_table_xfer_memory_partial): Likewise.
5428 * mdebugread.c (parse_partial_symbols): Likewise.
5429 * psymtab.c (lookup_partial_symbol): Likewise.
5430 * utils.c (wrap_here): Likewise.
5431
0830d301
TT
54322020-04-02 Tom Tromey <tromey@adacore.com>
5433
5434 * f-lang.c (build_fortran_types): Use arch_type to initialize
5435 builtin_complex_s32 in the TYPE_CODE_ERROR case.
5436
e7da7f8f
TT
54372020-04-02 Tom Tromey <tromey@adacore.com>
5438
5439 * dwarf2/read.c (partial_die_info::read): Do not create a vector
5440 of attributes.
5441
c90d28ac
AB
54422020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
5443 Bernd Edlinger <bernd.edlinger@hotmail.de>
5444 Tom Tromey <tromey@adacore.com>
5445
5446 * buildsym.c (buildsym_compunit::record_line): Remove
5447 deduplication code.
5448
1aa98955
TV
54492020-04-02 Tom de Vries <tdevries@suse.de>
5450
5451 PR ada/24671
5452 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
5453
d3214198
TV
54542020-04-02 Tom de Vries <tdevries@suse.de>
5455
5456 * dwarf2/read.c (dwarf2_gdb_index_functions,
5457 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
5458 NULL.
5459 * psymtab.c (psym_lookup_global_symbol_language): New function.
5460 (psym_functions): Init psym_lookup_global_symbol_language with
5461 psym_lookup_global_symbol_language.
5462 * symfile-debug.c (debug_sym_quick_functions): Init
5463 lookup_global_symbol_language with NULL.
5464 * symfile.c (set_initial_language): Remove fixme comment.
5465 * symfile.h (struct quick_symbol_functions): Add
5466 lookup_global_symbol_language.
5467 * symtab.c (find_quick_global_symbol_language): New function.
5468 (find_main_name): Use find_quick_global_symbol_language.
5469
2836752f
SM
54702020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
5471
5472 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
5473
64dc2d4b
BE
54742020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
5475
5476 * buildsym.c (record_line): Fix undefined behavior and preserve
5477 lines at eof.
5478
bbe3dc41
BE
54792020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
5480
5481 * buildsym.c (record_line): Fix the resizing condition.
5482
6b4a335b
TT
54832020-04-01 Tom Tromey <tom@tromey.com>
5484
5485 * value.h (value_literal_complex): Add comment.
5486 * valops.c (value_literal_complex): Refer to value.h.
5487
3638a098
TT
54882020-04-01 Tom Tromey <tom@tromey.com>
5489
5490 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
5491 (scalar_type): New rule, from typebase.
5492 (typebase): Use scalar_type. Recognize complex types.
5493 (field_name): Handle FLOAT_KEYWORD.
5494 (ident_tokens): Add _Complex and __complex__.
5495
c34e8714
TT
54962020-04-01 Tom Tromey <tom@tromey.com>
5497
5498 PR exp/25299:
5499 * valarith.c (promotion_type, complex_binop): New functions.
5500 (scalar_binop): Handle complex numbers. Use promotion_type.
5501 (value_pos, value_neg, value_complement): Handle complex numbers.
5502
fa649bb7
TT
55032020-04-01 Tom Tromey <tom@tromey.com>
5504
5505 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
5506 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
5507 (parse_number): Handle complex numbers.
5508
981c08ce
TT
55092020-04-01 Tom Tromey <tom@tromey.com>
5510
5511 * c-valprint.c (c_decorations): Change complex suffix to "i".
5512
4c99290d
TT
55132020-04-01 Tom Tromey <tom@tromey.com>
5514
5515 * valprint.c (generic_value_print_complex): Use accessors.
5516 * value.h (value_real_part, value_imaginary_part): Declare.
5517 * valops.c (value_real_part, value_imaginary_part): New
5518 functions.
5519 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
5520
5b930b45
TT
55212020-04-01 Tom Tromey <tom@tromey.com>
5522
5523 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
5524 (read_range_type): Update.
5525 * mdebugread.c (basic_type): Update.
5526 * go-lang.c (build_go_types): Use init_complex_type.
5527 * gdbtypes.h (struct main_type) <complex_type>: New member.
5528 (init_complex_type): Update.
5529 (arch_complex_type): Don't declare.
5530 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
5531 Make name if none given. Use alloc_type_copy. Look for cached
5532 complex type.
5533 (arch_complex_type): Remove.
5534 (gdbtypes_post_init): Use init_complex_type.
5535 * f-lang.c (build_fortran_types): Use init_complex_type.
5536 * dwarf2/read.c (read_base_type): Update.
5537 * d-lang.c (build_d_types): Use init_complex_type.
5538 * ctfread.c (read_base_type): Update.
5539
53cccef1
TBA
55402020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5541
5542 * infrun.c (stop_all_threads): Update assertion, plus when
5543 stopping threads, take into account that we might be trying
5544 to stop an all-stop target.
5545 (stop_waiting): Call 'stop_all_threads' if there exists a
5546 non-stop target.
5547
a0714d30
TBA
55482020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5549
5550 * target.h (exists_non_stop_target): New function declaration.
5551 * target.c (exists_non_stop_target): New function.
5552
60e22c1e
HD
55532020-04-01 Hannes Domani <ssbssa@yahoo.de>
5554
5555 PR gdb/24789
5556 * eval.c (is_integral_or_integral_reference): New function.
5557 (evaluate_subexp_standard): Allow integer references in
5558 pointer arithmetic.
5559
e139a727
TBA
55602020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5561
5562 * remote.c (remote_target::remote_parse_stop_reply): Remove the
5563 check for no ptid in the stop reply when the target is non-stop.
5564
e0802d59
TT
55652020-04-01 Tom Tromey <tromey@adacore.com>
5566
5567 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
5568 "name" parameter to rvalue reference. Initialize m_name_holder.
5569 <lookup_name_info>: New overloads.
5570 <name>: Return gdb::string_view.
5571 <c_str>: New method.
5572 <make_ignore_params>: Update.
5573 <search_name_hash>: Update.
5574 <language_lookup_name>: Return const char *.
5575 <m_name>: Change type.
5576 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
5577 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
5578 (lookup_name_info::match_any): Update.
5579 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
5580 Update.
5581 * minsyms.c (linkage_name_str): Update.
5582 * language.c (default_symbol_name_matcher): Update.
5583 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
5584 Update.
5585 * ada-lang.c (ada_fold_name): Change parameter to string_view.
5586 (ada_lookup_name_info::ada_lookup_name_info): Update.
5587 (literal_symbol_name_matcher): Update.
5588
8c072cb6
TT
55892020-04-01 Tom Tromey <tromey@adacore.com>
5590
5591 * psymtab.c (psymtab_search_name): Remove function.
5592 (psym_lookup_symbol): Create search name and lookup name here.
5593 (lookup_partial_symbol): Remove "name" parameter; add
5594 lookup_name.
5595 (psym_expand_symtabs_for_function): Update.
5596
6f29a534
TT
55972020-03-31 Joel Jones <joelkevinjones@gmail.com>
5598
5599 PR tui/25597:
5600 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
5601
af62665e
TT
56022020-03-31 Tom Tromey <tromey@adacore.com>
5603
5604 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
5605 memcpy.
5606
d1a89da5
NC
56072020-03-30 Nelson Chu <nelson.chu@sifive.com>
5608
5609 * features/riscv/32bit-csr.xml: Regenerated.
5610 * features/riscv/64bit-csr.xml: Regenerated.
5611
d8af9068
TT
56122020-03-30 Tom Tromey <tromey@adacore.com>
5613
5614 * ada-valprint.c (print_variant_part): Update.
5615 * ada-lang.h (ada_which_variant_applies): Update.
5616 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
5617 outer_valaddr parameters; replace with "outer" value parameter.
5618 (to_fixed_variant_branch_type): Update.
5619
227c0bf4
PFC
56202020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5621
5622 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
5623 <list>. Remove inclusion of observable.h.
5624 (PPC_DEBUG_CURRENT_VERSION): Move up define.
5625 (struct arch_lwp_info): New struct.
5626 (class ppc_linux_dreg_interface): New class.
5627 (struct ppc_linux_process_info): New struct.
5628 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
5629 <low_new_clone, low_forget_process, low_prepare_to_resume>
5630 <copy_thread_dreg_state, mark_thread_stale>
5631 <mark_debug_registers_changed, register_hw_breakpoint>
5632 <clear_hw_breakpoint, register_wp, clear_wp>
5633 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
5634 <num_memory_accesses, get_trigger_type>
5635 <create_watchpoint_request, hwdebug_point_cmp>
5636 <init_arch_lwp_info, get_arch_lwp_info>
5637 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
5638 methods.
5639 <struct ptid_hash>: New inner struct.
5640 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
5641 members.
5642 (saved_dabr_value, hwdebug_info, max_slots_number)
5643 (struct hw_break_tuple, struct thread_points, ppc_threads)
5644 (have_ptrace_hwdebug_interface)
5645 (hwdebug_find_thread_points_by_tid)
5646 (hwdebug_insert_point, hwdebug_remove_point): Remove.
5647 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
5648 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
5649 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
5650 use m_dreg_interface.
5651 (hwdebug_point_cmp): Change to...
5652 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
5653 reference arguments instead of pointers.
5654 (ppc_linux_nat_target::ranged_break_num_registers): Use
5655 m_dreg_interface.
5656 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
5657 m_dreg_interface. Call register_hw_breakpoint.
5658 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
5659 m_dreg_interface. Call clear_hw_breakpoint.
5660 (get_trigger_type): Change to...
5661 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
5662 comment.
5663 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
5664 use m_dreg_interface. Call register_hw_breakpoint.
5665 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
5666 use m_dreg_interface. Call clear_hw_breakpoint.
5667 (can_use_watchpoint_cond_accel): Change to...
5668 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
5669 method. Update comment, use m_dreg_interface and
5670 m_process_info.
5671 (calculate_dvc): Change to...
5672 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
5673 m_dreg_interface.
5674 (num_memory_accesses): Change to...
5675 (ppc_linux_nat_target::num_memory_accesses): ...this method.
5676 (check_condition): Change to...
5677 (ppc_linux_nat_target::check_condition): ...this method.
5678 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
5679 comment, use m_dreg_interface.
5680 (create_watchpoint_request): Change to...
5681 (ppc_linux_nat_target::create_watchpoint_request): ...this
5682 method. Use m_dreg_interface.
5683 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
5684 m_dreg_interface. Call register_hw_breakpoint or register_wp.
5685 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
5686 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
5687 (ppc_linux_nat_target::low_forget_process)
5688 (ppc_linux_nat_target::low_new_fork)
5689 (ppc_linux_nat_target::low_new_clone)
5690 (ppc_linux_nat_target::low_delete_thread)
5691 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
5692 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
5693 only call mark_thread_stale.
5694 (ppc_linux_thread_exit): Remove.
5695 (ppc_linux_nat_target::stopped_data_address): Change to...
5696 (ppc_linux_nat_target::low_stopped_data_address): This. Add
5697 comment, use m_dreg_interface and m_thread_hw_breakpoints.
5698 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
5699 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
5700 comment. Call low_stopped_data_address.
5701 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
5702 m_dreg_interface.
5703 (ppc_linux_nat_target::masked_watch_num_registers): Use
5704 m_dreg_interface.
5705 (ppc_linux_nat_target::copy_thread_dreg_state)
5706 (ppc_linux_nat_target::mark_thread_stale)
5707 (ppc_linux_nat_target::mark_debug_registers_changed)
5708 (ppc_linux_nat_target::register_hw_breakpoint)
5709 (ppc_linux_nat_target::clear_hw_breakpoint)
5710 (ppc_linux_nat_target::register_wp)
5711 (ppc_linux_nat_target::clear_wp)
5712 (ppc_linux_nat_target::init_arch_lwp_info)
5713 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
5714 (_initialize_ppc_linux_nat): Remove observer callback.
5715
4db10d8f
PFC
57162020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5717
5718 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
5719 (ppc_linux_nat_target::auxv_parse)
5720 (ppc_linux_nat_target::read_description)
5721 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
5722 Move up.
5723
1310c1b0
PFC
57242020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5725
5726 * linux-nat.h (low_new_clone): New method.
5727 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
5728
69b037c3
SM
57292020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
5730
5731 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
5732 (dbx_expand_psymtab): ... this.
5733 (start_psymtab): Update.
5734 * mdebugread.c (psymtab_to_symtab_1): Rename to...
5735 (mdebug_expand_psymtab): ... this.
5736 (parse_partial_symbols): Update.
5737 (new_psymtab): Update.
5738 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
5739 (xcoff_expand_psymtab): ... this.
5740 (xcoff_start_psymtab): Update.
5741
48993951
SM
57422020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
5743
5744 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
5745 <expand_dependencies>: ... this.
5746 * psymtab.c (partial_symtab::read_dependencies): Rename to...
5747 (partial_symtab::expand_dependencies): ... this.
5748 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
5749 Update.
5750 (dwarf2_psymtab::expand_psymtab): Update.
5751 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
5752 * mdebugread.c (psymtab_to_symtab_1): Update.
5753 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
5754
3ad83046
SM
57552020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
5756
5757 * psympriv.h (discard_psymtab): Remove.
5758 * dbxread.c (dbx_end_psymtab): Update.
5759 * xcoffread.c (xcoff_end_psymtab): Update.
5760
4d1b9ab6
TT
57612020-03-28 Tom Tromey <tom@tromey.com>
5762
5763 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
5764 comment.
5765
f1749218
TT
57662020-03-28 Tom Tromey <tom@tromey.com>
5767
5768 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
5769
ebea7626
HD
57702020-03-27 Hannes Domani <ssbssa@yahoo.de>
5771
5772 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
5773
a879b4d5
JB
57742020-03-26 John Baldwin <jhb@FreeBSD.org>
5775
5776 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
5777
0826b30a
TT
57782020-03-26 Tom Tromey <tom@tromey.com>
5779
5780 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
5781 (mark_common_block_symbol_computed, read_tag_string_type)
5782 (attr_to_dynamic_prop, read_subrange_type): Update.
5783 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
5784 to be methods on struct attribute.
5785 (skip_one_die, process_imported_unit_die, read_namespace_alias)
5786 (read_call_site_scope, partial_die_info::read)
5787 (partial_die_info::read, lookup_die_type, follow_die_ref):
5788 Update.
5789 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
5790 from dwarf2_get_ref_die_offset.
5791 (attribute::constant_value): New method, from
5792 dwarf2_get_attr_constant_value.
5793 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
5794 Declare method.
5795 <constant_value>: New method.
5796
2b2558bf
TT
57972020-03-26 Tom Tromey <tom@tromey.com>
5798
5799 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
5800 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
5801 (dwarf_type_encoding_name): Move to stringify.c.
5802 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
5803 * dwarf2/stringify.c: New file.
5804 * dwarf2/stringify.h: New file.
5805
eeb64781
TT
58062020-03-26 Tom Tromey <tom@tromey.com>
5807
5808 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
5809 Rewrite.
5810
a39fdb41
TT
58112020-03-26 Tom Tromey <tom@tromey.com>
5812
5813 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
5814 methods.
5815 * dwarf2/read.c (lookup_addr_base): Move to die.h.
5816 (lookup_ranges_base): Likewise.
5817 (read_cutu_die_from_dwo, read_full_die_1): Update.
5818
436c571c
TT
58192020-03-26 Tom Tromey <tom@tromey.com>
5820
5821 * dwarf2/read.c (read_import_statement, read_file_scope)
5822 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
5823 (read_lexical_block_scope, read_call_site_scope)
5824 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
5825 (handle_struct_member_die, process_structure_scope)
5826 (update_enumeration_type_from_children)
5827 (process_enumeration_scope, read_array_type, read_common_block)
5828 (read_namespace, read_module, read_subroutine_type): Update.
5829 (sibling_die): Remove.
5830
052c8bb8
TT
58312020-03-26 Tom Tromey <tom@tromey.com>
5832
5833 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
5834 (build_type_psymtabs_reader, read_structure_type)
5835 (read_enumeration_type, read_full_die_1): Update.
5836 (dwarf2_attr_no_follow): Move to die.h.
5837 * dwarf2/die.h (struct die_info) <attr>: New method.
5838
2b24b6e4
TT
58392020-03-26 Tom Tromey <tom@tromey.com>
5840
5841 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
5842 <base_address>: Now an optional.
5843 (dwarf2_find_base_address, dwarf2_rnglists_process)
5844 (dwarf2_ranges_process, fill_in_loclist_baton)
5845 (dwarf2_symbol_mark_computed): Update.
5846
c2d50fd0
TT
58472020-03-26 Tom Tromey <tom@tromey.com>
5848
5849 * dwarf2/read.c (struct die_info): Move to die.h.
5850 * dwarf2/die.h: New file.
5851
0df7ad3a
TT
58522020-03-26 Tom Tromey <tom@tromey.com>
5853
5854 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
5855 * dwarf2/read.c
5856 (dwarf2_statement_list_fits_in_line_number_section_complaint):
5857 Move to line-header.c.
5858 (read_checked_initial_length_and_offset, read_formatted_entries):
5859 Likewise.
5860 (dwarf_decode_line_header): Split into two.
5861 * dwarf2/line-header.c
5862 (dwarf2_statement_list_fits_in_line_number_section_complaint):
5863 Move from read.c.
5864 (read_checked_initial_length_and_offset, read_formatted_entries):
5865 Likewise.
5866 (dwarf_decode_line_header): New function, split from read.c.
5867
86c0bb4c
TT
58682020-03-26 Tom Tromey <tom@tromey.com>
5869
5870 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
5871 Declare method.
5872 * dwarf2/read.c (read_attribute_value): Update.
5873 (dwarf2_per_objfile::read_line_string): Rename from
5874 read_indirect_line_string.
5875 (read_formatted_entries): Update.
5876
2ef46c2f
TT
58772020-03-26 Tom Tromey <tom@tromey.com>
5878
5879 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
5880 variable.
5881
4f9c1eda
TT
58822020-03-26 Tom Tromey <tom@tromey.com>
5883
5884 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
5885 const.
5886 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
5887 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
5888 parameter const.
5889
5a0e026f
TT
58902020-03-26 Tom Tromey <tom@tromey.com>
5891
5892 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
5893 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
5894 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
5895 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
5896
8844c11b
TT
58972020-03-26 Tom Tromey <tom@tromey.com>
5898
5899 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
5900 file_names_size, file_full_name, file_file_name>: Use const.
5901 <file_name_at, file_names>: Add const overload.
5902 * dwarf2/line-header.c (line_header::file_file_name)
5903 (line_header::file_full_name): Update.
5904
c90ec28a
TT
59052020-03-26 Tom Tromey <tom@tromey.com>
5906
5907 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
5908 (macro_start_file, consume_improper_spaces)
5909 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
5910 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
5911 (dwarf_decode_macros): Move to macro.c.
5912 * dwarf2/macro.c: New file.
5913 * dwarf2/macro.h: New file.
5914 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
5915
4f44ae6c
TT
59162020-03-26 Tom Tromey <tom@tromey.com>
5917
5918 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
5919 method.
5920 * dwarf2/section.c: New method. From
5921 read_indirect_string_at_offset_from.
5922 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
5923 (read_indirect_string_at_offset_from): Move to section.c.
5924 (read_indirect_string_at_offset): Rewrite.
5925 (read_indirect_line_string_at_offset): Remove.
5926 (read_indirect_string, read_indirect_line_string)
5927 (dwarf_decode_macro_bytes): Update.
5928
a0194fa8
TT
59292020-03-26 Tom Tromey <tom@tromey.com>
5930
5931 * dwarf2/section.h (struct dwarf2_section_info)
5932 <overload_complaint>: Declare.
5933 (dwarf2_section_buffer_overflow_complaint): Don't declare.
5934 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
5935 Rename from dwarf2_section_buffer_overflow_complaint.
5936 * dwarf2/read.c (skip_one_die, partial_die_info::read)
5937 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
5938
3d27bbdb
TT
59392020-03-26 Tom Tromey <tom@tromey.com>
5940
5941 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
5942 Declare.
5943 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
5944 Move from read.c.
5945 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
5946 to section.c.
5947
9eac9650
TT
59482020-03-26 Tom Tromey <tom@tromey.com>
5949
5950 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
5951
bf80d710
TT
59522020-03-26 Tom Tromey <tom@tromey.com>
5953
5954 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
5955 "builder".
5956 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
5957 parameter.
5958 (dwarf_decode_macros): Update.
5959
0314b390
TT
59602020-03-26 Tom Tromey <tom@tromey.com>
5961
5962 * dwarf2/read.c (read_attribute_value): Update.
5963 (read_indirect_string_from_dwz): Move to dwz.c; change into
5964 method.
5965 (dwarf_decode_macro_bytes): Update.
5966 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
5967 * dwarf2/dwz.c: New file.
5968 * Makefile.in (COMMON_SFILES): Add dwz.c.
5969
9fda78b6
TT
59702020-03-26 Tom Tromey <tom@tromey.com>
5971
5972 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
5973 * dwarf2/read.c: Add include.
5974 * dwarf2/index-write.c: Add include.
5975 * dwarf2/index-cache.c: Add include.
5976 * dwarf2/dwz.h: New file.
5977
33aa3c10
TT
59782020-03-25 Tom Tromey <tom@tromey.com>
5979
5980 * compile/compile-object-load.c (get_out_value_type): Mention
5981 correct symbol name in error message.
5982
d503b685
HD
59832020-03-25 Hannes Domani <ssbssa@yahoo.de>
5984
5985 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
5986
7b1eff95
TV
59872020-03-25 Tom de Vries <tdevries@suse.de>
5988
5989 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
5990 * symmisc.c (dump_symtab_1): Print user and includes fields.
5991 (maintenance_info_symtabs): Same.
5992
dd895392
AB
59932020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
5994
5995 PR gdb/25534
5996 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
5997 (riscv_regcache_cooked_write): New function.
5998 (riscv_push_dummy_call): Use new function.
5999 (riscv_return_value): Likewise.
6000
5ab2fbf1
SM
60012020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
6002
6003 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
6004 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
6005 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
6006 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
6007 * infrun.c (follow_fork): Likewise.
6008 (follow_fork_inferior): Likewise.
6009 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
6010 * linux-nat.h (class linux_nat_target): Likewise.
6011 * remote.c (class remote_target) <follow_fork>: Likewise.
6012 (remote_target::follow_fork): Likewise.
6013 * target-delegates.c: Re-generate.
6014 * target.c (default_follow_fork): Likewise.
6015 (target_follow_fork): Likewise.
6016 * target.h (struct target_ops) <follow_fork>: Likewise.
6017 (target_follow_fork): Likewise.
6018
a64fafb5
TV
60192020-03-24 Tom de Vries <tdevries@suse.de>
6020
6021 * psymtab.c (maintenance_info_psymtabs): Print user field.
6022
fe26d3a3
TT
60232020-03-20 Tom Tromey <tromey@adacore.com>
6024
6025 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
6026 const.
6027 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
6028 const.
6029
c884cc46
SM
60302020-03-20 Simon Marchi <simon.marchi@efficios.com>
6031
6032 * ptrace.m4: Don't check for ptrace declaration.
6033 * config.in: Re-generate.
6034 * configure: Re-generate.
6035 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
6036 not defined.
6037
1ff700c2
KR
60382020-03-20 Kamil Rytarowski <n54@gmx.com>
6039
6040 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
6041 `PTRACE_TYPE_RET'.
6042 * i386-bsd-nat.c (gdb_ptrace): Likewise.
6043 * sparc-nat.c (gdb_ptrace): Likewise.
6044 * x86-bsd-nat.c (gdb_ptrace): Likewise.
6045
f7d4f0b1
TT
60462020-03-20 Tom Tromey <tromey@adacore.com>
6047
6048 * c-exp.y (lex_one_token): Fix assert.
6049
f67210ff
TT
60502020-03-20 Tom Tromey <tromey@adacore.com>
6051
6052 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
6053 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
6054 strncpy call.
6055
1773be9e
TT
60562020-03-20 Tom Tromey <tromey@adacore.com>
6057
6058 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
6059
70304be9
TT
60602020-03-20 Tom Tromey <tromey@adacore.com>
6061
6062 * ada-valprint.c (print_variant_part): Remove parameters; switch
6063 to value-based API.
6064 (print_field_values): Likewise.
6065 (ada_val_print_struct_union): Likewise.
6066 (ada_value_print_1): Update.
6067
9faa006d
KR
60682020-03-20 Kamil Rytarowski <n54@gmx.com>
6069
6070 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
6071 nbsd_nat_target instead of inf_ptrace_target.
6072 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
6073 nbsd_nat_target.
6074
4a90f062
KR
60752020-03-20 Kamil Rytarowski <n54@gmx.com>
6076
6077 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
6078 it to the ptrace call.
6079 * (store_registers): Likewise.
6080
60812020-03-20 Kamil Rytarowski <n54@gmx.com>
c7da12c7
KR
6082
6083 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
6084 it to the ptrace call.
6085 * (store_registers): Likewise.
6086
2d07da27
LM
60872020-03-19 Luis Machado <luis.machado@linaro.org>
6088
6089 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
6090 valid, fetch vg value from ptrace.
6091
f09db380
KR
60922020-03-19 Kamil Rytarowski <n54@gmx.com>
6093 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
6094 * inf-ptrace.c: Likewise.
6095 * (gdb_ptrace): Add.
6096 * (inf_ptrace_target::resume): Update.
6097 * (inf_ptrace_target::xfer_partial): Likewise.
6098 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
6099 * (inf_ptrace_peek_poke): Update.
6100
fcc7376e
KR
61012020-03-19 Kamil Rytarowski <n54@gmx.com>
6102
6103 * x86-bsd-nat.c (gdb_ptrace): New.
6104 * (x86bsd_dr_set): Add new argument `ptid'.
6105 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
6106 x86bsd_dr_set_addr): Update.
6107
cada5fc9
AB
61082020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
6109
6110 * remote.c (remote_target::process_stop_reply): Handle events for
6111 all threads differently.
6112
19a2740f
AB
61132020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
6114
6115 * completer.c (completion_tracker::remove_completion): Define new
6116 function.
6117 * completer.h (completion_tracker::remove_completion): Declare new
6118 function.
6119 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
6120 when adding a C++ function symbol.
6121
724fd9ba
AB
61222020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
6123
6124 * completer.c (completion_tracker::completion_hash_entry): Define
6125 new class.
6126 (advance_to_filename_complete_word_point): Call
6127 recompute_lowest_common_denominator.
6128 (completion_tracker::completion_tracker): Call discard_completions
6129 to setup the hash table.
6130 (completion_tracker::discard_completions): Allow for being called
6131 from the constructor, pass new equal function, and element deleter
6132 when constructing the hash table. Initialise new class member
6133 variables.
6134 (completion_tracker::maybe_add_completion): Remove use of
6135 m_entries_vec, and store more information into m_entries_hash.
6136 (completion_tracker::recompute_lcd_visitor): New function, most
6137 content taken from...
6138 (completion_tracker::recompute_lowest_common_denominator):
6139 ...here, this now just visits each item in the hash calling the
6140 above visitor.
6141 (completion_tracker::build_completion_result): Remove use of
6142 m_entries_vec, call recompute_lowest_common_denominator.
6143 * completer.h (completion_tracker::have_completions): Remove use
6144 of m_entries_vec.
6145 (completion_tracker::completion_hash_entry): Declare new class.
6146 (completion_tracker::recompute_lowest_common_denominator): Change
6147 function signature.
6148 (completion_tracker::recompute_lcd_visitor): Declare new function.
6149 (completion_tracker::m_entries_vec): Delete.
6150 (completion_tracker::m_entries_hash): Initialize to NULL.
6151 (completion_tracker::m_lowest_common_denominator_valid): New
6152 member variable.
6153 (completion_tracker::m_lowest_common_denominator_max_length): New
6154 member variable.
6155
5a82b8a1
KR
61562020-03-17 Kamil Rytarowski <n54@gmx.com>
6157
6158 * regformats/regdef.h: Put reg in gdb namespace.
6159
fb516a69
KR
61602020-03-17 Kamil Rytarowski <n54@gmx.com>
6161
6162 * i386-bsd-nat.c (gdb_ptrace): New.
6163 * (i386bsd_fetch_inferior_registers,
6164 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
6165 * (i386bsd_fetch_inferior_registers,
6166 i386bsd_store_inferior_registers) Use gdb_ptrace.
6167
1c0aa1fb
KR
61682020-03-17 Kamil Rytarowski <n54@gmx.com>
6169
6170 * amd64-bsd-nat.c (gdb_ptrace): New.
6171 * (amd64bsd_fetch_inferior_registers,
6172 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
6173 * (amd64bsd_fetch_inferior_registers,
6174 amd64bsd_store_inferior_registers) Use gdb_ptrace.
6175
5ccd2fb7
KR
61762020-03-17 Kamil Rytarowski <n54@gmx.com>
6177
6178 * user-regs.c (user_reg::read): Rename to...
6179 (user_reg::xread): ...this.
6180 * (append_user_reg): Rename argument `read' to `xread'.
6181 * (user_reg_add_builtin): Likewise.
6182 * (user_reg_add): Likewise.
6183 * (value_of_user_reg): Likewise.
6184
2108a63a
KR
61852020-03-17 Kamil Rytarowski <n54@gmx.com>
6186
6187 * sparc-nat.c (gdb_ptrace): New.
6188 * sparc-nat.c (sparc_fetch_inferior_registers)
6189 (sparc_store_inferior_registers) Remove obsolete comment.
6190 * sparc-nat.c (sparc_fetch_inferior_registers)
6191 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
6192 * sparc-nat.c (sparc_fetch_inferior_registers)
6193 (sparc_store_inferior_registers) Use gdb_ptrace.
6194
a225c9a8
KR
61952020-03-17 Kamil Rytarowski <n54@gmx.com>
6196
6197 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
6198 it to the ptrace call.
6199 * sh-nbsd-nat.c (store_registers): Likewise.
6200
98097623
KR
62012020-03-17 Kamil Rytarowski <n54@gmx.com>
6202
6203 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
6204 nbsd_nat_target instead of inf_ptrace_target.
6205 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
6206 nbsd_nat_target.
6207
9e38d619
KR
62082020-03-17 Kamil Rytarowski <n54@gmx.com>
6209
6210 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
6211
a2ecbe9f
KR
62122020-03-17 Kamil Rytarowski <n54@gmx.com>
6213
6214 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
6215 <sys/sysctl.h>.
6216 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
6217
58990295
TV
62182020-03-17 Tom de Vries <tdevries@suse.de>
6219
6220 PR gdb/23710
6221 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
6222 fields.
6223 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
6224 fields.
6225 (process_imported_unit_die): Skip import of c++ CUs.
6226
771dd3a8
TT
62272020-03-16 Tom Tromey <tom@tromey.com>
6228
6229 * p-valprint.c (pascal_object_print_value): Initialize
6230 base_value.
6231
817a7585
AK
62322020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
6233 Shahab Vahedi <shahab@synopsys.com>
6234
6235 * Makefile.in: Add arch/arc.o
6236 * configure.tgt: Likewise.
6237 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
6238 (_initialize_arc_tdep): Don't initialize old target descriptions.
aac66a4c 6239 (arc_read_description): New function to cache target descriptions.
817a7585
AK
6240 * arc-tdep.h (arc_read_description): Add proto type.
6241 * arch/arc.c: New file.
6242 * arch/arc.h: Likewise.
6243 * features/Makefile: Replace old target descriptions with new.
6244 * features/arc-arcompact.c: Remove.
6245 * features/arc-arcompact.xml: Likewise.
6246 * features/arc-v2.c: Likewise
6247 * features/arc-v2.xml: Likewise
6248 * features/arc/aux-arcompact.xml: New file.
6249 * features/arc/aux-v2.xml: Likewise.
6250 * features/arc/core-arcompact.xml: Likewise.
6251 * features/arc/core-v2.xml: Likewise.
6252 * features/arc/aux-arcompact.c: Generate.
6253 * features/arc/aux-v2.c: Likewise.
6254 * features/arc/core-arcompact.c: Likewise.
6255 * features/arc/core-v2.c: Likewise.
6256 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
6257
67430cd0
TT
62582020-03-16 Tom Tromey <tromey@adacore.com>
6259
6260 PR gdb/25663:
6261 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
6262 putting value into bcache.
6263
30efb6c7
SM
62642020-03-16 Simon Marchi <simon.marchi@efficios.com>
6265
6266 PR gdb/21500
6267 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
6268 to...
6269 (amd64_windows_init_abi_common): ... this. Don't set size of
6270 long type.
6271 (amd64_windows_init_abi): New function.
6272 (amd64_cygwin_init_abi): New function.
6273 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
6274 the Cygwin OS ABI.
6275 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
6276 comment.
6277
8db52437
SM
62782020-03-16 Simon Marchi <simon.marchi@efficios.com>
6279
6280 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
6281 * windows-tdep.c (CYGWIN_DLL_NAME): New.
6282 (pe_import_directory_entry): New struct type.
6283 (is_linked_with_cygwin_dll): New function.
6284 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
6285 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
6286 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
6287
5982a56a
SM
62882020-03-16 Simon Marchi <simon.marchi@efficios.com>
6289
6290 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
6291 i386_cygwin_core_osabi_sniffer.
6292
7a1998df
SM
62932020-03-16 Simon Marchi <simon.marchi@efficios.com>
6294
6295 * i386-cygwin-tdep.c: Rename to...
6296 * i386-windows-tdep.c: ... this.
6297 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
6298 i386-windows-tdep.c.
6299 * configure.tgt: Likewise.
6300
053205cc
SM
63012020-03-16 Simon Marchi <simon.marchi@efficios.com>
6302
6303 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
6304 * osabi.c (gdb_osabi_names): Add "Windows".
6305 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
6306 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
6307 (i386_cygwin_core_osabi_sniffer): New function, extracted from
6308 i386_cygwin_osabi_sniffer.
6309 (_initialize_i386_cygwin_tdep): Register OS ABI
6310 GDB_OSABI_WINDOWS for i386.
6311 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
6312 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
6313 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
6314 for x86-64.
6315 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
6316 when the target matches '*-*-mingw*'.
6317
fe4b2ee6
SM
63182020-03-16 Simon Marchi <simon.marchi@efficios.com>
6319
6320 * defs.h (enum gdb_osabi): Move to...
6321 * osabi.h (enum gdb_osabi): ... here.
6322 * gdbarch.sh: Include osabi.h in gdbarch.h.
6323 * gdbarch.h: Re-generate.
6324
cb9b645d
SM
63252020-03-16 Simon Marchi <simon.marchi@efficios.com>
6326
6327 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
6328 function.
6329 (_initialize_amd64_windows_tdep): Register osabi sniffer.
6330
3293bbaf
TT
63312020-03-14 Tom Tromey <tom@tromey.com>
6332
6333 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
6334 for C++.
6335 (c_type_print_modifier): Likewise. Add "language" parameter.
6336 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
6337 (c_type_print_base_1): Update.
6338 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
6339 constants.
6340 * type-stack.c (type_stack::insert): Handle tp_atomic and
6341 tp_restrict.
6342 (type_stack::follow_type_instance_flags): Likewise.
6343 (type_stack::follow_types): Likewise. Merge type-following code.
6344 * c-exp.y (RESTRICT, ATOMIC): New tokens.
6345 (space_identifier, cv_with_space_id)
6346 (const_or_volatile_or_space_identifier_noopt)
6347 (const_or_volatile_or_space_identifier): Remove.
6348 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
6349 rules.
6350 (ptr_operator, typebase): Update.
6351 (enum token_flag) <FLAG_C>: New constant.
6352 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
6353 "_Atomic".
6354 (lex_one_token): Handle FLAG_C.
6355
154151a6
KR
63562020-03-14 Kamil Rytarowski <n54@gmx.com>
6357
6358 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
6359 it to the ptrace call.
6360 * m68k-bsd-nat.c (store_registers): Likewise.
6361
bc107784
KR
63622020-03-14 Kamil Rytarowski <n54@gmx.com>
6363
6364 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
6365 gdb_byte *.
6366 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
6367 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
6368 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
6369
01a80117
KR
63702020-03-14 Kamil Rytarowski <n54@gmx.com>
6371
6372 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
6373 nbsd_nat_target instead of inf_ptrace_target.
6374 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
6375 nbsd_nat_target.
6376
f90280ca
KR
63772020-03-14 Kamil Rytarowski <n54@gmx.com>
6378
6379 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
6380 register_t.
6381
6def66f1
KR
63822020-03-14 Kamil Rytarowski <n54@gmx.com>
6383
6384 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
6385 it to the ptrace call.
6386 * alpha-bsd-nat.c (store_registers): Likewise.
6387
66eaca97
KR
63882020-03-14 Kamil Rytarowski <n54@gmx.com>
6389
6390 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
6391 includes.
6392 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
6393 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
6394 fill_fpregset): Likewise.
6395
4fed520b
KR
63962020-03-14 Kamil Rytarowski <n54@gmx.com>
6397
6398 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
6399 nbsd_nat_target instead of inf_ptrace_target.
6400 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
6401 nbsd_nat_target.
6402
2190cf06
KR
64032020-03-14 Kamil Rytarowski <n54@gmx.com>
6404
6405 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
6406 register_t.
6407
75c56d3d
KR
64082020-03-14 Kamil Rytarowski <n54@gmx.com>
6409
6410 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
6411 it to the ptrace call.
6412 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
6413 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
6414 * arm-nbsd-nat.c (store_register): Likewise.
6415 * arm-nbsd-nat.c (store_regs): Likewise.
6416 * arm-nbsd-nat.c (store_fp_register): Likewise.
6417 * arm-nbsd-nat.c (store_fp_regs): Likewise.
6418
6018d381
KR
64192020-03-14 Kamil Rytarowski <n54@gmx.com>
6420
6421 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
6422 nbsd_nat_target instead of inf_ptrace_target.
6423 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
6424 nbsd_nat_target.
6425
013f99f0
KR
64262020-03-14 Kamil Rytarowski <n54@gmx.com>
6427
6428 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
6429 it to the ptrace call.
6430 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
6431
12753073
KR
64322020-03-14 Kamil Rytarowski <n54@gmx.com>
6433
6227b330
KR
6434 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
6435 it to the ptrace call.
6436 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
6437
64382020-03-14 Kamil Rytarowski <n54@gmx.com>
6439
6440 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
6441 gdb_byte *.
12753073
KR
6442 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
6443
d5be5fa4
KR
64442020-03-14 Kamil Rytarowski <n54@gmx.com>
6445
6446 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
6447 instead of inf_ptrace_target.
6448 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
6449 nbsd_nat_target.
6450
8110f842
KR
64512020-03-14 Kamil Rytarowski <n54@gmx.com>
6452
6453 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
6454 register_t.
6455
52feded7
KR
64562020-03-14 Kamil Rytarowski <n54@gmx.com>
6457
6458 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
6459 register_t.
6460
25567eee
KR
64612020-03-14 Kamil Rytarowski <n54@gmx.com>
6462
6463 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
6464 register_t.
6465
426a9c18
TT
64662020-03-13 Tom Tromey <tom@tromey.com>
6467
6468 * value.h (val_print): Don't declare.
6469 * valprint.h (val_print_array_elements)
6470 (val_print_scalar_formatted, generic_val_print): Don't declare.
6471 * valprint.c (generic_val_print_array): Take a struct value.
6472 (generic_val_print_ptr, generic_val_print_memberptr)
6473 (generic_val_print_bool, generic_val_print_int)
6474 (generic_val_print_char, generic_val_print_complex)
6475 (generic_val_print): Remove.
6476 (generic_value_print): Update.
6477 (do_val_print): Remove unused parameters. Don't call
6478 la_val_print.
6479 (val_print): Remove.
6480 (common_val_print): Update. Don't call value_check_printable.
6481 (val_print_scalar_formatted, val_print_array_elements): Remove.
6482 * rust-lang.c (rust_val_print): Remove.
6483 (rust_language_defn): Update.
6484 * p-valprint.c (pascal_val_print): Remove.
6485 (pascal_value_print_inner): Update.
6486 (pascal_object_print_val_fields, pascal_object_print_val):
6487 Remove.
6488 (pascal_object_print_static_field): Update.
6489 * p-lang.h (pascal_val_print): Don't declare.
6490 * p-lang.c (pascal_language_defn): Update.
6491 * opencl-lang.c (opencl_language_defn): Update.
6492 * objc-lang.c (objc_language_defn): Update.
6493 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
6494 * m2-lang.h (m2_val_print): Don't declare.
6495 * m2-lang.c (m2_language_defn): Update.
6496 * language.h (struct language_defn) <la_val_print>: Remove.
6497 * language.c (unk_lang_value_print_inner): Rename. Change
6498 argument types.
6499 (unknown_language_defn, auto_language_defn): Update.
6500 * go-valprint.c (go_val_print): Remove.
6501 * go-lang.h (go_val_print): Don't declare.
6502 * go-lang.c (go_language_defn): Update.
6503 * f-valprint.c (f_val_print): Remove.
6504 * f-lang.h (f_value_print): Don't declare.
6505 * f-lang.c (f_language_defn): Update.
6506 * d-valprint.c (d_val_print): Remove.
6507 * d-lang.h (d_value_print): Don't declare.
6508 * d-lang.c (d_language_defn): Update.
6509 * cp-valprint.c (cp_print_value_fields)
6510 (cp_print_value_fields_rtti, cp_print_value): Remove.
6511 (cp_print_static_field): Update.
6512 * c-valprint.c (c_val_print_array, c_val_print_ptr)
6513 (c_val_print_struct, c_val_print_union, c_val_print_int)
6514 (c_val_print_memberptr, c_val_print): Remove.
6515 * c-lang.h (c_val_print_array, cp_print_value_fields)
6516 (cp_print_value_fields_rtti): Don't declare.
6517 * c-lang.c (c_language_defn, cplus_language_defn)
6518 (asm_language_defn, minimal_language_defn): Update.
6519 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
6520 (ada_val_print_enum): Take a struct value.
6521 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
6522 (ada_val_print): Remove.
6523 (ada_value_print_1): Update.
6524 (printable_val_type): Remove.
6525 * ada-lang.h (ada_val_print): Don't declare.
6526 * ada-lang.c (ada_language_defn): Update.
6527
42331a1e
TT
65282020-03-13 Tom Tromey <tom@tromey.com>
6529
6530 * valprint.c (do_val_print): Update.
6531 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
6532 a struct value.
6533 (value_to_value_object_no_release): Declare.
6534 * python/py-value.c (value_to_value_object_no_release): New
6535 function.
6536 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
6537 struct value.
6538 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
6539 function.
6540 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
6541 a struct value.
6542 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
6543 Declare.
6544 (gdbscm_apply_val_pretty_printer): Take a struct value.
6545 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
6546 value.
6547 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
6548 value.
6549 * extension-priv.h (struct extension_language_ops)
6550 <apply_val_pretty_printer>: Take a struct value.
6551 * cp-valprint.c (cp_print_value): Create a struct value.
6552 (cp_print_value): Update.
6553
3a916a97
TT
65542020-03-13 Tom Tromey <tom@tromey.com>
6555
6556 * ada-valprint.c (print_field_values): Call common_val_print.
6557
b59eac37
TT
65582020-03-13 Tom Tromey <tom@tromey.com>
6559
6560 * ada-valprint.c (val_print_packed_array_elements): Remove
6561 bitoffset and val parameters. Call common_val_print.
6562 (ada_val_print_string): Remove offset, address, and original_value
6563 parameters.
6564 (ada_val_print_array): Update.
6565 (ada_value_print_array): New function.
6566 (ada_value_print_1): Call it.
6567
03371129
TT
65682020-03-13 Tom Tromey <tom@tromey.com>
6569
6570 * ada-valprint.c (ada_value_print): Use common_val_print.
6571
2e088f8b
TT
65722020-03-13 Tom Tromey <tom@tromey.com>
6573
6574 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
6575
39ef85a8
TT
65762020-03-13 Tom Tromey <tom@tromey.com>
6577
6578 * ada-valprint.c (ada_value_print_num): New function.
6579 (ada_value_print_1): Use it.
6580
b9fa6e07
TT
65812020-03-13 Tom Tromey <tom@tromey.com>
6582
6583 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
6584
416595d6
TT
65852020-03-13 Tom Tromey <tom@tromey.com>
6586
6587 * ada-valprint.c (ada_value_print_ptr): New function.
6588 (ada_value_print_1): Use it.
6589
5b5e15ec
TT
65902020-03-13 Tom Tromey <tom@tromey.com>
6591
6592 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
6593 call common_val_print.
6594 (ada_val_print_1): Update.
6595 (ada_value_print_1): New function.
6596 (ada_value_print_inner): Rewrite.
6597
fbf54e75
TT
65982020-03-13 Tom Tromey <tom@tromey.com>
6599
6600 * cp-valprint.c (cp_print_value_fields): Update.
6601 (cp_print_value): New function.
6602
64b653ca
TT
66032020-03-13 Tom Tromey <tom@tromey.com>
6604
6605 * m2-valprint.c (m2_value_print_inner): Use
6606 cp_print_value_fields.
6607 * cp-valprint.c (cp_print_value_fields): New function.
6608 * c-valprint.c (c_value_print_struct): New function.
6609 (c_value_print_inner): Use c_value_print_struct.
6610 * c-lang.h (cp_print_value_fields): Declare.
6611
6999f067
TT
66122020-03-13 Tom Tromey <tom@tromey.com>
6613
6614 * c-valprint.c (c_value_print_array): New function.
6615 (c_value_print_inner): Use it.
6616
ce80b8bd
TT
66172020-03-13 Tom Tromey <tom@tromey.com>
6618
6619 * c-valprint.c (c_value_print_memberptr): New function.
6620 (c_value_print_inner): Use it.
6621
2faac269
TT
66222020-03-13 Tom Tromey <tom@tromey.com>
6623
6624 * c-valprint.c (c_value_print_int): New function.
6625 (c_value_print_inner): Use it.
6626
da3e2c29
TT
66272020-03-13 Tom Tromey <tom@tromey.com>
6628
6629 * c-valprint.c (c_value_print_ptr): New function.
6630 (c_value_print_inner): Use it.
6631
50836231
TT
66322020-03-13 Tom Tromey <tom@tromey.com>
6633
6634 * c-valprint.c (c_value_print_inner): Rewrite.
6635
4f412b6e
TT
66362020-03-13 Tom Tromey <tom@tromey.com>
6637
6638 * valprint.c (generic_value_print_complex): New function.
6639 (generic_value_print): Use it.
6640
f5354008
TT
66412020-03-13 Tom Tromey <tom@tromey.com>
6642
6643 * valprint.c (generic_val_print_float): Don't call
6644 val_print_scalar_formatted.
6645 (generic_val_print, generic_value_print): Update.
6646
3eec3b05
TT
66472020-03-13 Tom Tromey <tom@tromey.com>
6648
6649 * valprint.c (generic_value_print_char): New function
6650 (generic_value_print): Use it.
6651
fdddfccb
TT
66522020-03-13 Tom Tromey <tom@tromey.com>
6653
6654 * valprint.c (generic_value_print_int): New function.
6655 (generic_value_print): Use it.
6656
6dde7521
TT
66572020-03-13 Tom Tromey <tom@tromey.com>
6658
6659 * valprint.c (generic_value_print_bool): New function.
6660 (generic_value_print): Use it.
6661
4112d2e6
TT
66622020-03-13 Tom Tromey <tom@tromey.com>
6663
6664 * valprint.c (generic_val_print_func): Simplify.
6665 (generic_val_print, generic_value_print): Update.
6666
65786af6
TT
66672020-03-13 Tom Tromey <tom@tromey.com>
6668
6669 * valprint.c (generic_val_print_flags): Remove.
6670 (generic_val_print, generic_value_print): Update.
6671 (val_print_type_code_flags): Add original_value parameter.
6672
40f3ce18
TT
66732020-03-13 Tom Tromey <tom@tromey.com>
6674
6675 * valprint.c (generic_val_print): Update.
6676 (generic_value_print): Update.
6677 * valprint.c (generic_val_print_enum): Don't call
6678 val_print_scalar_formatted.
6679
2a5b130b
TT
66802020-03-13 Tom Tromey <tom@tromey.com>
6681
6682 * valprint.c (generic_value_print): Call generic_value_print_ptr.
6683 * valprint.c (generic_value_print_ptr): New function.
6684
abc66ce9
TT
66852020-03-13 Tom Tromey <tom@tromey.com>
6686
6687 * valprint.c (generic_value_print): Rewrite.
6688
07a32858
TT
66892020-03-13 Tom Tromey <tom@tromey.com>
6690
6691 * p-valprint.c (pascal_object_print_value_fields)
6692 (pascal_object_print_value): New functions.
6693
64d64d3a
TT
66942020-03-13 Tom Tromey <tom@tromey.com>
6695
6696 * p-valprint.c (pascal_value_print_inner): Rewrite.
6697
6a95a1f5
TT
66982020-03-13 Tom Tromey <tom@tromey.com>
6699
6700 * f-valprint.c (f_value_print_innner): Rewrite.
6701
59fcdac6
TT
67022020-03-13 Tom Tromey <tom@tromey.com>
6703
6704 * m2-valprint.c (m2_print_unbounded_array): New overload.
6705 (m2_print_unbounded_array): Update.
6706 (m2_print_array_contents): Take a struct value.
6707 (m2_value_print_inner): Rewrite.
6708
d133c3e1
TT
67092020-03-13 Tom Tromey <tom@tromey.com>
6710
6711 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
6712 (d_value_print_inner): New function.
6713 * d-lang.h (d_value_print_inner): Declare.
6714 * d-lang.c (d_language_defn): Use d_value_print_inner.
6715
23b0f06b
TT
67162020-03-13 Tom Tromey <tom@tromey.com>
6717
6718 * go-valprint.c (go_value_print_inner): New function.
6719 * go-lang.h (go_value_print_inner): Declare.
6720 * go-lang.c (go_language_defn): Use go_value_print_inner.
6721
5f56f7cb
TT
67222020-03-13 Tom Tromey <tom@tromey.com>
6723
6724 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
6725 API.
6726 (rust_val_print): Rewrite.
6727 (rust_value_print_inner): New function, from rust_val_print.
6728 (rust_language_defn): Use rust_value_print_inner.
6729
26792ee0
TT
67302020-03-13 Tom Tromey <tom@tromey.com>
6731
6732 * ada-valprint.c (ada_value_print_inner): New function.
6733 * ada-lang.h (ada_value_print_inner): Declare.
6734 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
6735
24051bbe
TT
67362020-03-13 Tom Tromey <tom@tromey.com>
6737
6738 * f-valprint.c (f_value_print_innner): New function.
6739 * f-lang.h (f_value_print_innner): Declare.
6740 * f-lang.c (f_language_defn): Use f_value_print_innner.
6741
c0941be6
TT
67422020-03-13 Tom Tromey <tom@tromey.com>
6743
6744 * p-valprint.c (pascal_value_print_inner): New function.
6745 * p-lang.h (pascal_value_print_inner): Declare.
6746 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
6747
62c4663d
TT
67482020-03-13 Tom Tromey <tom@tromey.com>
6749
6750 * m2-valprint.c (m2_value_print_inner): New function.
6751 * m2-lang.h (m2_value_print_inner): Declare.
6752 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
6753
62182190
TT
67542020-03-13 Tom Tromey <tom@tromey.com>
6755
6756 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
6757 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
6758 * c-valprint.c (c_value_print_inner): New function.
6759 * c-lang.h (c_value_print_inner): Declare.
6760 * c-lang.c (c_language_defn, cplus_language_defn)
6761 (asm_language_defn, minimal_language_defn): Use
6762 c_value_print_inner.
6763
1e592a8a
TT
67642020-03-13 Tom Tromey <tom@tromey.com>
6765
6766 * p-valprint.c (pascal_object_print_value_fields): Now static.
6767 * p-lang.h (pascal_object_print_value_fields): Don't declare.
6768
7fe471e9
TT
67692020-03-13 Tom Tromey <tom@tromey.com>
6770
6771 * c-valprint.c (c_val_print_array): Simplify.
6772
d121c6ce
TT
67732020-03-13 Tom Tromey <tom@tromey.com>
6774
6775 * valprint.c (value_print_array_elements): New function.
6776 * valprint.h (value_print_array_elements): Declare.
6777
4dba70ee
TT
67782020-03-13 Tom Tromey <tom@tromey.com>
6779
6780 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
6781 * mips-tdep.c (mips_print_register): Use
6782 value_print_scalar_formatted.
6783
4f9ae810
TT
67842020-03-13 Tom Tromey <tom@tromey.com>
6785
6786 * valprint.h (value_print_scalar_formatted): Declare.
6787 * valprint.c (value_print_scalar_formatted): New function.
6788
156bfec9
TT
67892020-03-13 Tom Tromey <tom@tromey.com>
6790
6791 * valprint.h (generic_value_print): Declare.
6792 * valprint.c (generic_value_print): New function.
6793
2b4e573d
TT
67942020-03-13 Tom Tromey <tom@tromey.com>
6795
6796 * valprint.c (do_val_print): Call la_value_print_inner, if
6797 available.
6798 * rust-lang.c (rust_language_defn): Update.
6799 * p-lang.c (pascal_language_defn): Update.
6800 * opencl-lang.c (opencl_language_defn): Update.
6801 * objc-lang.c (objc_language_defn): Update.
6802 * m2-lang.c (m2_language_defn): Update.
6803 * language.h (struct language_defn) <la_value_print_inner>: New
6804 member.
6805 * language.c (unknown_language_defn, auto_language_defn): Update.
6806 * go-lang.c (go_language_defn): Update.
6807 * f-lang.c (f_language_defn): Update.
6808 * d-lang.c (d_language_defn): Update.
6809 * c-lang.c (c_language_defn, cplus_language_defn)
6810 (asm_language_defn, minimal_language_defn): Update.
6811 * ada-lang.c (ada_language_defn): Update.
6812
a1f6a07c
TT
68132020-03-13 Tom Tromey <tom@tromey.com>
6814
6815 * c-valprint.c (c_value_print): Use common_val_print.
6816
410cf315
TT
68172020-03-13 Tom Tromey <tom@tromey.com>
6818
6819 * cp-valprint.c (cp_print_static_field): Use common_val_print.
6820
72a45c93
TT
68212020-03-13 Tom Tromey <tom@tromey.com>
6822
6823 * f-valprint.c (f77_print_array_1, f_val_print): Use
6824 common_val_print.
6825
040f66bd
TT
68262020-03-13 Tom Tromey <tom@tromey.com>
6827
6828 * riscv-tdep.c (riscv_print_one_register_info): Use
6829 common_val_print.
6830
a6e05a6c
TT
68312020-03-13 Tom Tromey <tom@tromey.com>
6832
6833 * mi/mi-main.c (output_register): Use common_val_print.
6834
3444c526
TT
68352020-03-13 Tom Tromey <tom@tromey.com>
6836
6837 * infcmd.c (default_print_one_register_info): Use
6838 common_val_print.
6839
c2a44efe
TT
68402020-03-13 Tom Tromey <tom@tromey.com>
6841
6842 * valprint.h (common_val_print_checked): Declare.
6843 * valprint.c (common_val_print_checked): New function.
6844 * stack.c (print_frame_arg): Use common_val_print_checked.
6845
b0c26e99
TT
68462020-03-13 Tom Tromey <tom@tromey.com>
6847
6848 * valprint.c (do_val_print): New function, from val_print.
6849 (val_print): Use do_val_print.
6850 (common_val_print): Use do_val_print.
6851
ce3acbe9
TT
68522020-03-13 Tom Tromey <tom@tromey.com>
6853
6854 * valprint.c (value_print): Use scoped_value_mark.
6855
96c7f873
TV
68562020-03-13 Tom de Vries <tdevries@suse.de>
6857
6858 PR symtab/25646
6859 * psymtab.c (partial_symtab::partial_symtab): Don't set
6860 globals_offset and statics_offset. Push element onto
6861 current_global_psymbols and current_static_psymbols stacks.
6862 (concat): New function.
6863 (end_psymtab_common): Set globals_offset and statics_offset. Pop
6864 element from current_global_psymbols and current_static_psymbols
6865 stacks. Concat popped elements to global_psymbols and
6866 static_symbols.
6867 (add_psymbol_to_list): Use current_global_psymbols and
6868 current_static_psymbols stacks.
6869 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
6870 current_static_psymbols fields.
6871
6ba0a321
CB
68722020-03-12 Christian Biesinger <cbiesinger@google.com>
6873
6874 * corelow.c (sniff_core_bfd): Remove.
6875 (class core_target) <m_core_vec>: Remove.
6876 (core_target::core_target): Update.
6877 (core_file_fns): Remove.
6878 (deprecated_add_core_fns): Remove.
6879 (default_core_sniffer): Remove.
6880 (sniff_core_bfd): Remove.
6881 (default_check_format): Remove.
6882 (gdb_check_format): Remove.
6883 (core_target_open): Update.
6884 (core_target::get_core_register_section): Update.
6885 (get_core_registers_cb): Update.
6886 (core_target::fetch_registers): Update.
6887 * gdbcore.h (struct core_fns): Remove.
6888 (deprecated_add_core_fns): Remove.
6889 (default_core_sniffer): Remove.
6890 (default_check_format): Remove.
6891
227031b2
TT
68922020-03-12 Tom Tromey <tom@tromey.com>
6893
6894 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
6895 CORE_ADDR.
6896 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
6897
53807e9f
TT
68982020-03-12 Tom Tromey <tom@tromey.com>
6899
6900 * remote.c (remote_target::download_tracepoint)
6901 (remote_target::enable_tracepoint)
6902 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
6903 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
6904 sprintf_vma.
6905
64f25102
TT
69062020-03-12 Tom Tromey <tom@tromey.com>
6907
6908 * symfile-mem.c: Update CORE_ADDR size assert.
6909
272cd5a3
SM
69102020-03-12 Simon Marchi <simon.marchi@efficios.com>
6911
6912 * selftest.m4: Move to gdbsupport/.
6913 * acinclude.m4: Update path to selftest.m4.
6914
74cd3f9d
SM
69152020-03-12 Simon Marchi <simon.marchi@efficios.com>
6916
6917 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
6918 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
6919 gdbarch-selfselftests.c and selftest-arch.c.
6920 (SUBDIR_UNITTESTS_OBS): Rename to...
6921 (SELFTESTS_OBS): ... this.
6922 (COMMON_SFILES): Remove disasm-selftests.c and
6923 gdbarch-selftests.c.
6924 * configure.ac: Don't add selftest-arch.{c,o} to
6925 CONFIG_{SRCS,OBS}.
6926 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
6927 preprocessor conditions.
6928
db6878ac
SM
69292020-03-12 Simon Marchi <simon.marchi@efficios.com>
6930
6931 * configure.ac: Don't source bfd/development.sh.
6932 * selftest.m4: Modify comment.
6933 * configure: Re-generate.
6934
4d696a5c
SM
69352020-03-12 Simon Marchi <simon.marchi@efficios.com>
6936
6937 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
6938 not "true" or "false".
6939 * configure: Re-generate.
6940
8dd8e1c7
CB
69412020-03-12 Christian Biesinger <cbiesinger@google.com>
6942
6943 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
6944 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
6945 renamed to arm_nbsd_supply_gregset.
6946 (fetch_register): Update to call arm_nbsd_supply_gregset.
6947 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
6948 (arm_netbsd_nat_target::fetch_registers): Update.
6949 (fetch_elfcore_registers): Removed.
6950 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
6951 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
6952 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
6953 not require NetBSD system headers.
6954 (arm_nbsd_regset): New struct.
6955 (arm_nbsd_iterate_over_regset_sections): New function.
6956 (arm_netbsd_init_abi_common): Updated to call
6957 set_gdbarch_iterate_over_regset_sections.
6958 * arm-nbsd-tdep.h: New file.
6959
dd69bf7a
KB
69602020-03-11 Kevin Buettner <kevinb@redhat.com>
6961
6962 * symtab.c (find_pc_sect_line): Add check which prevents infinite
6963 recursion.
6964
a0761e34
SM
69652020-03-11 Simon Marchi <simon.marchi@efficios.com>
6966
6967 * configure: Re-generate.
6968
e7a82140
TT
69692020-03-11 Tom Tromey <tromey@adacore.com>
6970
6971 * ada-typeprint.c (print_choices): Fix comment.
6972
dcc050c8
AB
69732020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
6974
6975 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
6976 previous item in the list, when the list has no items.
6977
1c33af77
TV
69782020-03-11 Tom de Vries <tdevries@suse.de>
6979
6980 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
6981 PROP_LOCLIST handling code.
6982
8c95582d
AB
69832020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
6984
6985 * buildsym-legacy.c (record_line): Pass extra parameter to
6986 record_line.
6987 * buildsym.c (buildsym_compunit::record_line): Take an extra
6988 parameter, reduce duplication in the line table, and record the
6989 is_stmt flag in the line table.
6990 * buildsym.h (buildsym_compunit::record_line): Add extra
6991 parameter.
6992 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
6993 non-statement lines.
6994 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
6995 this to the symtab builder.
6996 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
6997 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
6998 through to dwarf_record_line_1.
6999 * infrun.c (process_event_stop_test): When stepping, don't stop at
7000 a non-statement instruction, and only refresh the step info when
7001 we land in the middle of a line's range. Also add an extra
7002 comment.
7003 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
7004 field.
7005 * record-btrace.c (btrace_find_line_range): Only record lines
7006 marked as is-statement.
7007 * stack.c (frame_show_address): Show the frame address if we are
7008 in a non-statement sal.
7009 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
7010 (maintenance_print_one_line_table): Print a header for the is_stmt
7011 column, and include is_stmt information in the output.
7012 * symtab.c (find_pc_sect_line): Find lines marked as statements in
7013 preference to non-statements.
7014 (find_pcs_for_symtab_line): Prefer is-statement entries.
7015 (find_line_common): Likewise.
7016 * symtab.h (struct linetable_entry): Add is_stmt field.
7017 (struct symtab_and_line): Likewise.
7018 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
7019 arranging the line table.
7020
e4003a34
TV
70212020-03-07 Tom de Vries <tdevries@suse.de>
7022
7023 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
7024 DIE.
7025
e8932576
TT
70262020-03-07 Tom Tromey <tom@tromey.com>
7027
7028 * valops.c (value_literal_complex): Remove obsolete comment.
7029 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
7030 comment.
7031
29734269
SM
70322020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
7033
7034 * infrun.h: Forward-declare thread_info.
7035 (set_step_info): Add thread_info parameter, add doc.
7036 * infrun.c (set_step_info): Add thread_info parameter, move doc
7037 to header.
7038 * infrun.c (process_event_stop_test): Pass thread to
7039 set_step_info call.
7040 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
7041 set_step_info.
7042 (prepare_one_step): Add thread_info parameter, pass it to
7043 set_step_frame and prepare_one_step (recursive) call.
7044 (step_1): Pass thread to prepare_one_step call.
7045 (step_command_fsm::should_stop): Pass thread to
7046 prepare_one_step.
7047 (until_next_fsm): Pass thread to set_step_frame call.
7048 (finish_command): Pass thread to set_step_info call.
7049
b7d64b29
HD
70502020-03-06 Hannes Domani <ssbssa@yahoo.de>
7051
7052 * windows-tdep.c (windows_solib_create_inferior_hook):
7053 Check if inferior is running.
7054
09f2921c
TV
70552020-03-06 Tom de Vries <tdevries@suse.de>
7056
7057 * NEWS: Fix "the the".
7058 * ctfread.c: Same.
7059
fd760e79
TV
70602020-03-06 Tom de Vries <tdevries@suse.de>
7061
7062 * psymtab.c (psymtab_to_symtab): Don't print "done.".
7063
20ea4a60
AB
70642020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
7065
7066 * .dir-locals.el: Add a comment referencing the other copies of
7067 this file.
7068
0afbabf0
JB
70692020-03-05 John Baldwin <jhb@FreeBSD.org>
7070
7071 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
7072 psargs.
7073
842806cb
TBA
70742020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7075
7076 * .gitattributes: New file.
7077
be1e3d3e
TT
70782020-03-04 Tom Tromey <tom@tromey.com>
7079
7080 * symmisc.c (print_symbol_bcache_statistics)
7081 (print_objfile_statistics): Update.
7082 * symfile.c (allocate_symtab): Use intern.
7083 * psymtab.c (partial_symtab::partial_symtab): Use intern.
7084 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
7085 macro_cache>: Remove.
7086 <string_cache>: New member.
7087 (struct objfile) <intern>: New methods.
7088 * elfread.c (elf_symtab_read): Use intern.
7089 * dwarf2/read.c (fixup_go_packaging): Intern package name.
7090 (dwarf2_compute_name, dwarf2_physname)
7091 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
7092 names.
7093 (guess_partial_die_structure_name): Update.
7094 (partial_die_info::fixup): Intern name.
7095 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
7096 name.
7097 (dwarf2_name): Intern name. Update.
7098 * buildsym.c (buildsym_compunit::get_macro_table): Use
7099 string_cache.
7100
4e7625fd
TT
71012020-03-04 Tom Tromey <tom@tromey.com>
7102
7103 * jit.c (bfd_open_from_target_memory): Make "target" const.
7104 * corefile.c (gnutarget): Now const.
7105 * gdbcore.h (gnutarget): Now const.
7106
46f9f931
HD
71072020-03-04 Hannes Domani <ssbssa@yahoo.de>
7108
7109 * NEWS: Mention support for WOW64 processes.
7110 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
7111 (amd64_windows_segment_register_p): Remove static.
7112 (_initialize_amd64_windows_nat): Update.
7113 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
7114 * i386-windows-nat.c (context_offset): Update.
7115 (i386_mappings): Rename and remove static.
7116 (i386_windows_segment_register_p): Remove static.
7117 (_initialize_i386_windows_nat): Update.
7118 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
7119 (STATUS_WX86_SINGLE_STEP): New macro.
7120 (EnumProcessModulesEx): New macro.
7121 (Wow64SuspendThread): New macro.
7122 (Wow64GetThreadContext): New macro.
7123 (Wow64SetThreadContext): New macro.
7124 (Wow64GetThreadSelectorEntry): New macro.
7125 (windows_set_context_register_offsets): Add static.
7126 (windows_set_segment_register_p): Likewise.
7127 (windows_add_thread): Adapt for WOW64 processes.
7128 (windows_fetch_one_register): Likewise.
7129 (windows_nat_target::fetch_registers): Likewise.
7130 (windows_store_one_register): Likewise.
7131 (display_selector): Likewise.
7132 (display_selectors): Likewise.
7133 (handle_exception): Likewise.
7134 (windows_continue): Likewise.
7135 (windows_nat_target::resume): Likewise.
7136 (windows_add_all_dlls): Likewise.
7137 (do_initial_windows_stuff): Likewise.
7138 (windows_nat_target::attach): Likewise.
7139 (windows_get_exec_module_filename): Likewise.
7140 (windows_nat_target::create_inferior): Likewise.
7141 (windows_xfer_siginfo): Likewise.
7142 (_initialize_loadable): Initialize Wow64SuspendThread,
7143 Wow64GetThreadContext, Wow64SetThreadContext,
7144 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
7145 * windows-nat.h (windows_set_context_register_offsets):
7146 Remove declaration.
7147 (windows_set_segment_register_p): Likewise.
7148 (i386_windows_segment_register_p): Add declaration.
7149 (amd64_windows_segment_register_p): Likewise.
7150
440cf44e
LM
71512020-03-04 Luis Machado <luis.machado@linaro.org>
7152
7153 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
7154 in "info registers" for AArch64/ARM.
7155
7156 The change caused "info registers" to not print GPR's.
7157
7158 gdb/ChangeLog:
7159
7160 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
7161
7162 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
7163 when reg->group is empty and reggroup is not.
7164
1009d92f
TT
71652020-03-03 Tom Tromey <tromey@adacore.com>
7166
7167 * dwarf2/frame.c (struct dwarf2_frame_cache)
7168 <checked_tailcall_bottom, entry_cfa_sp_offset,
7169 entry_cfa_sp_offset_p>: Remove members.
7170 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
7171 (dwarf2_frame_prev_register): Don't call
7172 dwarf2_tailcall_sniffer_first.
7173 (dwarf2_append_unwinders): Don't append tailcall unwinder.
7174 * frame-unwind.c (add_unwinder): New fuction.
7175 (frame_unwind_init): Use it. Add tailcall unwinder.
7176
5e5d66b6
AB
71772020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
7178 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
7179
7180 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
7181 value should be printed as true.
7182
584cf46d
HD
71832020-03-03 Hannes Domani <ssbssa@yahoo.de>
7184
7185 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
7186 (windows_init_abi): Set and use windows_so_ops.
7187
7b973adc
SDJ
71882020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
7189
7190 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
7191 when verifying if dealing with a convenience variable.
7192
bb7b70ab
LM
71932020-03-03 Luis Machado <luis.machado@linaro.org>
7194
7195 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
7196
9822cb57
SM
71972020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
7198
7199 * infrun.c (gdbarch_supports_displaced_stepping): New.
7200 (use_displaced_stepping): Break up conditions in smaller pieces.
7201 Use gdbarch_supports_displaced_stepping.
7202 (displaced_step_prepare_throw): Use
7203 gdbarch_supports_displaced_stepping.
7204
63e163f2
AB
72052020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
7206
7207 * NEWS: Mention new behaviour of the history filename.
7208 * top.c (write_history_p): Add comment.
7209 (show_write_history_p): Add header comment, give a different
7210 message when history writing is on, but the history filename is
7211 empty.
7212 (history_filename): Add comment.
7213 (history_filename_empty): New function.
7214 (show_history_filename): Add header comment, give a different
7215 message when the filename is empty.
7216 (init_history): Compare history_filename against nullptr, and only
7217 read history if the filename is not empty.
7218 (set_history_filename): Add header comment, and only make
7219 non-empty filenames absolute.
7220 (init_main): Make the filename argument to 'set history filename'
7221 optional.
7222
81b86b97
CB
72232020-03-02 Christian Biesinger <cbiesinger@google.com>
7224
7225 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
7226 (arm_supply_vfpregset): ...this, and update to use VFP registers.
7227 (fetch_fp_register): Update.
7228 (fetch_fp_regs): Update.
7229 (store_fp_register): Update.
7230 (store_fp_regs): Update.
7231 (arm_netbsd_nat_target::read_description): New function.
7232 (fetch_elfcore_registers): Update.
7233
24ed6739
AB
72342020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
7235
7236 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
7237 general_thread if the stop reply is missing a thread-id.
7238 (remote_target::process_stop_reply): Use the first non-exited
7239 thread if the target didn't pass a thread-id.
7240 * infrun.c (do_target_wait): Move call to
7241 switch_to_inferior_no_thread to ....
7242 (do_target_wait_1): ... here.
7243
a84bb2a0
JT
72442020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
7245
7246 * debuginfod-support.c: Include defs.h first.
7247
658dadf0
TV
72482020-02-28 Tom de Vries <tdevries@suse.de>
7249
7250 * symfile.c (set_initial_language): Use default language for lookup.
7251
4ebe4877
SM
72522020-02-28 Simon Marchi <simon.marchi@efficios.com>
7253
7254 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
7255 reader variable, pass `this` to read_cutu_die_from_dwo.
7256
e5da1139
AM
72572020-02-27 Aaron Merey <amerey@redhat.com>
7258
7259 * source.c (open_source_file): Check for nullptr when computing
7260 srcpath.
7261
317f7127
TT
72622020-02-27 Tom Tromey <tromey@adacore.com>
7263
7264 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
7265 member.
7266 (dwarf2_add_field): Don't update nfields.
7267 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
7268
3104d9ee
AB
72692020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
7270
7271 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
7272 abs.
7273
b83470bf
TT
72742020-02-26 Tom Tromey <tom@tromey.com>
7275
7276 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
7277 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
7278 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
7279 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
7280 per_cu_data.
7281
edfe0a0c
TT
72822020-02-26 Tom Tromey <tom@tromey.com>
7283
7284 * dwarf2/index-write.c (psym_index_map): Change type.
7285 (add_address_entry_worker, write_one_signatured_type)
7286 (recursively_count_psymbols, recursively_write_psymbols)
7287 (class debug_names, psyms_seen_size, write_gdbindex)
7288 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
7289
0d79cdc4
AM
72902020-02-26 Aaron Merey <amerey@redhat.com>
7291
7292 * Makefile.in: Handle optional debuginfod support.
7293 * NEWS: Update.
7294 * README: Add --with-debuginfod summary.
7295 * config.in: Regenerate.
7296 * configure: Regenerate.
7297 * configure.ac: Handle optional debuginfod support.
7298 * debuginfod-support.c: debuginfod helper functions.
7299 * debuginfod-support.h: Ditto.
7300 * doc/gdb.texinfo: Add --with-debuginfod to configure options
7301 summary.
7302 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
7303 when a dwz file cannot be found.
7304 * elfread.c (elf_symfile_read): Query debuginfod servers when a
7305 debuginfo file cannot be found.
7306 * source.c (open_source_file): Query debuginfod servers when a
7307 source file cannot be found.
7308 * top.c (print_gdb_configuration): Include
7309 --{with,without}-debuginfod in the output.
7310
b65ce565
JG
73112020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
7312
7313 * thread.c (thr_try_catch_cmd): Print thread name.
7314
d4c9a4f8
SM
73152020-02-26 Simon Marchi <simon.marchi@efficios.com>
7316
7317 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
7318 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
7319 dwarf2_fetch_die_type_sect_off): Move to...
7320 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
7321 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
7322 dwarf2_fetch_die_type_sect_off): ... here.
7323 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
7324 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
7325 dwarf2_fetch_die_type_sect_off): Move doc to header file.
7326
0dce4280
TV
73272020-02-26 Tom de Vries <tdevries@suse.de>
7328
7329 PR gdb/25603
7330 * symfile.c (set_initial_language): Exit-early if
7331 language_mode == language_mode_manual.
7332
450a1bfc
SM
73332020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
7334
7335 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
7336 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
7337 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
7338
9e80cfa1
AB
73392020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
7340
7341 * gdbtypes.c (create_array_type_with_stride): Handle negative
7342 array strides.
7343 * valarith.c (value_subscripted_rvalue): Likewise.
7344
09624f1f
LM
73452020-02-25 Luis Machado <luis.machado@linaro.org>
7346
7347 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
7348
8cb5117c
SM
73492020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
7350
7351 * loc.h (dwarf2_get_die_type): Move to...
7352 * read.h (dwarf2_get_die_type): ... here.
7353 * read.c (dwarf2_get_die_type): Move doc to header.
7354
c325c44e
JB
73552020-02-25 Joel Brobecker <brobecker@adacore.com>
7356
7357 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
7358 'gnulib/Makefile.in' to the list.
7359
4ac93832
TT
73602020-02-24 Tom Tromey <tom@tromey.com>
7361
7362 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
7363 Remove.
7364 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
7365 XOBNEWVEC.
7366
197400e8
TT
73672020-02-24 Tom Tromey <tom@tromey.com>
7368
7369 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
7370 New method.
7371 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
7372 (dw2_do_instantiate_symtab, dw2_get_file_names)
7373 (build_type_psymtab_dependencies, load_full_type_unit): Update.
7374
76935768
TT
73752020-02-24 Tom Tromey <tom@tromey.com>
7376
7377 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
7378 make_scoped_restore.
7379 (dwarf2_psymtab::read_symtab): Don't clear
7380 reading_partial_symbols.
7381
a88ef40d
TV
73822020-02-24 Tom de Vries <tdevries@suse.de>
7383
7384 PR gdb/25592
7385 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
7386
c9af6521
TV
73872020-02-24 Tom de Vries <tdevries@suse.de>
7388
7389 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
7390 commands layout next/prev/regs.
7391
5707a07a
TT
73922020-02-22 Tom Tromey <tom@tromey.com>
7393
7394 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
7395 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
7396
3b0fb49e
TT
73972020-02-22 Tom Tromey <tom@tromey.com>
7398
7399 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
7400
283be8bf
TT
74012020-02-22 Tom Tromey <tom@tromey.com>
7402
7403 * tui/tui-win.c (_initialize_tui_win): Add usage text.
7404 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
7405 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
7406 * tui/tui.c (_initialize_tui): Add usage text.
7407
ca793b96
TT
74082020-02-22 Tom Tromey <tom@tromey.com>
7409
7410 * tui/tui-win.c (tui_set_focus_command)
7411 (tui_set_win_height_command): Use error_no_arg.
7412 (_initialize_tui_win): Update help text.
7413 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
7414
432b5c40
TT
74152020-02-22 Tom Tromey <tom@tromey.com>
7416
7417 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
7418 * tui/tui-disasm.h (struct tui_disasm_window)
7419 <display_start_addr>: Declare.
7420 * tui/tui-source.h (struct tui_source_window)
7421 <display_start_addr>: Declare.
7422 * tui/tui-winsource.h (struct tui_source_window_base)
7423 <show_source_line, display_start_addr>: New methods.
7424 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
7425 Rename and move to protected section.
7426 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
7427 (tui_source_window_base::do_erase_source_content): Update.
7428 (tui_source_window_base::show_source_line): Now a method.
7429 (tui_source_window_base::show_source_content)
7430 (tui_source_window_base::tui_source_window_base)
7431 (tui_source_window_base::rerender)
7432 (tui_source_window_base::refill)
7433 (tui_source_window_base::do_scroll_horizontal)
7434 (tui_source_window_base::set_is_exec_point_at)
7435 (tui_source_window_base::update_breakpoint_info)
7436 (tui_source_window_base::update_exec_info): Update.
7437 * tui/tui-source.c (tui_source_window::set_contents)
7438 (tui_source_window::showing_source_p)
7439 (tui_source_window::do_scroll_vertical)
7440 (tui_source_window::location_matches_p)
7441 (tui_source_window::line_is_displayed): Update.
7442 (tui_source_window::display_start_addr): New method.
7443 * tui/tui-disasm.c (tui_disasm_window::set_contents)
7444 (tui_disasm_window::do_scroll_vertical)
7445 (tui_disasm_window::location_matches_p): Update.
7446 (tui_disasm_window::display_start_addr): New method.
7447
01b1af32
TT
74482020-02-22 Tom Tromey <tom@tromey.com>
7449
7450 * NEWS: Add entry for gdb.register_window_type.
7451 * tui/tui-layout.h (window_factory): New typedef.
7452 (tui_register_window): Declare.
7453 * tui/tui-layout.c (saved_tui_windows): New global.
7454 (tui_apply_current_layout): Use it.
7455 (tui_register_window): New function.
7456 * python/python.c (do_start_initialization): Call
7457 gdbpy_initialize_tui.
7458 (python_GdbMethods): Add "register_window_type" function.
7459 * python/python-internal.h (gdbpy_register_tui_window)
7460 (gdbpy_initialize_tui): Declare.
7461 * python/py-tui.c: New file.
7462 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
7463
fc96d20b
TT
74642020-02-22 Tom Tromey <tom@tromey.com>
7465
7466 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
7467
935c78c0
TT
74682020-02-22 Tom Tromey <tom@tromey.com>
7469
7470 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
7471 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
7472 * tui/tui-data.c (tui_set_win_with_focus): Remove.
7473 (tui_set_win_focus_to): Move from tui-win.c.
7474
0240c8f1
TT
74752020-02-22 Tom Tromey <tom@tromey.com>
7476
7477 * tui/tui-layout.c (make_standard_window, get_locator_window): New
7478 functions.
7479 (known_window_types): New global.
7480 (tui_get_window_by_name): Reimplement.
7481 (initialize_known_windows): New function.
7482 (validate_window_name): Rewrite.
7483 (_initialize_tui_layout): Call initialize_known_windows.
7484
fdb01f0c
TT
74852020-02-22 Tom Tromey <tom@tromey.com>
7486
7487 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
7488 Remove constants.
7489 * tui/tui-winsource.h (struct tui_source_window_base)
7490 <tui_source_window_base>: Remove parameter.
7491 * tui/tui-winsource.c
7492 (tui_source_window_base::tui_source_window_base): Remove
7493 parameter.
7494 (tui_source_window_base::refill): Update.
7495 * tui/tui-stack.h (struct tui_locator_window)
7496 <tui_locator_window>: Update.
7497 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
7498 Default the constructor.
7499 * tui/tui-regs.h (struct tui_data_item_window)
7500 <tui_data_item_window>: Default the constructor.
7501 (struct tui_data_window) <tui_data_window>: Likewise.
7502 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
7503 Default the constructor.
7504 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
7505 Default the constructor.
7506 <type>: Remove.
7507 (struct tui_win_info) <tui_win_info>: Default the constructor.
7508 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
7509 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
7510 Default the constructor.
7511
865a5aec
TT
75122020-02-22 Tom Tromey <tom@tromey.com>
7513
7514 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
7515 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
7516 * tui/tui-win.c (tui_resize_all): Don't call
7517 tui_delete_invisible_windows.
7518 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
7519 done.
7520 (tui_set_layout): Update.
7521 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
7522 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
7523 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
7524
e098d18c
TT
75252020-02-22 Tom Tromey <tom@tromey.com>
7526
7527 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
7528 correctly.
7529
eb9c8874
TT
75302020-02-22 Tom Tromey <tom@tromey.com>
7531
7532 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
7533
7eed1a8e
TT
75342020-02-22 Tom Tromey <tom@tromey.com>
7535
7536 * tui/tui-winsource.h (struct tui_source_window_iterator)
7537 <inner_iterator>: New etytypedef.
7538 <tui_source_window_iterator>: Take "end" parameter.
7539 <tui_source_window_iterator>: Take iterator.
7540 <operator*, advance>: Update.
7541 <m_iter>: Change type.
7542 <m_end>: New field.
7543 (struct tui_source_windows) <begin, end>: Update.
7544 * tui/tui-layout.c (tui_windows): New global.
7545 (tui_apply_current_layout): Clear tui_windows.
7546 (tui_layout_window::apply): Update tui_windows.
7547 * tui/tui-data.h (tui_windows): Declare.
7548 (all_tui_windows): Now inline function.
7549 (class tui_window_iterator, struct all_tui_windows): Remove.
7550
7c043ba6
TT
75512020-02-22 Tom Tromey <tom@tromey.com>
7552
7553 PR tui/17850:
7554 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
7555 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
7556 "height" argument.
7557 (class tui_layout_window) <get_sizes>: Likewise.
7558 (class tui_layout_split) <tui_layout_split>: Add "vertical"
7559 argument.
7560 <get_sizes>: Add "height" argument.
7561 <m_vertical>: New field.
7562 * tui/tui-layout.c (tui_layout_split::clone): Update.
7563 (tui_layout_split::get_sizes): Add "height" argument.
7564 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
7565 (tui_new_layout_command): Parse "-horizontal".
7566 (_initialize_tui_layout): Update help string.
7567 (tui_layout_split::specification): Add "-horizontal" when needed.
7568 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
7569 argument.
7570 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
7571 New methods.
7572
6bc56648
TT
75732020-02-22 Tom Tromey <tom@tromey.com>
7574
7575 * tui/tui-layout.h (enum tui_adjust_result): New.
7576 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
7577 (class tui_layout_window) <adjust_size>: Return
7578 tui_adjust_result. Rewrite.
7579 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
7580 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
7581
c22fef7e
TT
75822020-02-22 Tom Tromey <tom@tromey.com>
7583
7584 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
7585 parameter and return types.
7586 (class tui_layout_base) <specification>: Add "depth".
7587 (class tui_layout_window) <specification>: Add "depth".
7588 (class tui_layout_split) <specification>: Add "depth".
7589 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
7590 and return types.
7591 (tui_new_layout_command): Parse sub-layouts.
7592 (_initialize_tui_layout): Update help string.
7593 (tui_layout_window::specification): Add "depth".
7594 (add_layout_command): Update.
7595
ee325b61
TT
75962020-02-22 Tom Tromey <tom@tromey.com>
7597
7598 * NEWS: Add "tui new-layout" item.
7599 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
7600 Add new-layout command to help text.
7601 (validate_window_name): New function.
7602 (tui_new_layout_command): New function.
7603 (_initialize_tui_layout): Register "new-layout".
7604 (tui_layout_window::specification): New method.
7605 (tui_layout_window::specification): New method.
7606 * tui/tui-layout.h (class tui_layout_base) <specification>: New
7607 method.
7608 (class tui_layout_window) <specification>: New method.
7609 (class tui_layout_split) <specification>: New method.
7610
416eb92d
TT
76112020-02-22 Tom Tromey <tom@tromey.com>
7612
7613 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
7614 * tui/tui-win.c (window_name_completer): Update comment.
7615 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
7616 Declare method.
7617 (class tui_layout_window) <replace_window>: Likewise.
7618 (class tui_layout_split) <replace_window>: Likewise.
7619 (tui_set_layout): Don't declare.
7620 (tui_set_initial_layout): Declare function.
7621 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
7622 (asm_regs_layout): New globals.
7623 (tui_current_layout, show_layout): Remove.
7624 (tui_set_layout, tui_add_win_to_layout): Rewrite.
7625 (find_layout, tui_apply_layout): New function.
7626 (layout_completer): Remove.
7627 (tui_next_layout): Reimplement.
7628 (tui_next_layout_command): New function.
7629 (tui_set_initial_layout, tui_prev_layout_command): New functions.
7630 (tui_regs_layout): Reimplement.
7631 (tui_regs_layout_command): New function.
7632 (extract_display_start_addr): Rewrite.
7633 (next_layout, prev_layout): Remove.
7634 (tui_layout_window::replace_window): New method.
7635 (tui_layout_split::replace_window): New method.
7636 (destroy_layout): New function.
7637 (layout_list): New global.
7638 (add_layout_command): New function.
7639 (initialize_layouts): Update.
7640 (tui_layout_command): New function.
7641 (_initialize_tui_layout): Install "layout" commands.
7642 * tui/tui-data.h (enum tui_layout_type): Remove.
7643 (tui_current_layout): Don't declare.
7644
0dbc2fc7
TT
76452020-02-22 Tom Tromey <tom@tromey.com>
7646
7647 * tui/tui-regs.c (tui_reg_layout): Remove.
7648 (tui_reg_command): Use tui_regs_layout.
7649 * tui/tui-layout.h (tui_reg_command): Declare.
7650 * tui/tui-layout.c (tui_reg_command): New function.
7651
5afe342e
TT
76522020-02-22 Tom Tromey <tom@tromey.com>
7653
7654 * tui/tui.c (tui_rl_delete_other_windows): Call
7655 tui_remove_some_windows.
7656 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
7657 Declare method.
7658 (class tui_layout_window) <remove_windows>: New method.
7659 (class tui_layout_split) <remove_windows>: Declare.
7660 (tui_remove_some_windows): Declare.
7661 * tui/tui-layout.c (tui_remove_some_windows): New function.
7662 (tui_layout_split::remove_windows): New method.
7663
427326a8
TT
76642020-02-22 Tom Tromey <tom@tromey.com>
7665
7666 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
7667 * tui/tui-layout.h (tui_next_layout): Declare.
7668 * tui/tui-layout.c (tui_next_layout): New function.
7669
3fe12b6d
TT
76702020-02-22 Tom Tromey <tom@tromey.com>
7671
7672 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
7673 correct coordinates.
7674
59b8b5d2
TT
76752020-02-22 Tom Tromey <tom@tromey.com>
7676
7677 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
7678 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
7679 DATA_WIN case.
7680
2a3d458b
TT
76812020-02-22 Tom Tromey <tom@tromey.com>
7682
7683 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
7684 TUI_DISASM_WIN, not tui_win_list.
7685
3f0cbb04
TT
76862020-02-22 Tom Tromey <tom@tromey.com>
7687
7688 * valprint.c (generic_val_print_enum_1)
7689 (val_print_type_code_flags): Style member names.
7690 * rust-lang.c (val_print_struct, rust_print_enum)
7691 (rust_print_struct_def, rust_internal_print_type): Style member
7692 names.
7693 * p-valprint.c (pascal_object_print_value_fields): Style member
7694 names. Only call fprintf_symbol_filtered for static members.
7695 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
7696 * f-valprint.c (f_val_print): Style member names.
7697 * f-typeprint.c (f_type_print_base): Style member names.
7698 * cp-valprint.c (cp_print_value_fields): Style member names. Only
7699 call fprintf_symbol_filtered for static members.
7700 (cp_print_class_member): Style member names.
7701 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
7702 member names.
7703 * ada-valprint.c (ada_print_scalar): Style enum names.
7704 (ada_val_print_enum): Likewise.
7705 * ada-typeprint.c (print_enum_type): Style enum names.
7706
d4d947ae
TT
77072020-02-21 Tom Tromey <tom@tromey.com>
7708
7709 * psympriv.h (struct partial_symtab): Update comment.
7710
e94e944b
TT
77112020-02-21 Tom Tromey <tromey@adacore.com>
7712
7713 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
7714 type is CORE_ADDR.
7715
1eb73179
TV
77162020-02-21 Tom de Vries <tdevries@suse.de>
7717
7718 PR gdb/25534
7719 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
7720 if dependencies[i]->user != NULL.
7721
4f180d53
AT
77222020-02-21 Ali Tamur <tamur@google.com>
7723
7724 * dwarf2/read.c (dwarf2_name): Add null check.
7725
22b6cd70
TT
77262020-02-20 Tom Tromey <tom@tromey.com>
7727
7728 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
7729 ">=", in binary search.
7730 (dwarf2_find_containing_comp_unit): New overload.
7731 (run_test): New self-test.
7732 (_initialize_dwarf2_read): Register new test.
7733
bd0cf5a6
NC
77342020-02-20 Nelson Chu <nelson.chu@sifive.com>
7735
7736 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
7737 * riscv-tdep.h: Likewise.
7738 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
7739 rv32-only CSR.
7740 * features/riscv/64bit-csr.xml: Regenerated.
7741
3f702acd
SDJ
77422020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
7743 Tom Tromey <tom@tromey.com>
7744
7745 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
7746 of 'fputc_unfiltered'.
7747 (putchar_unfiltered): Call 'fputc_unfiltered'.
7748 (fputc_unfiltered): Call 'fputs_unfiltered'.
7749
d13c7322
AB
77502020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
7751
7752 * config.in: Regenerate.
7753 * configure: Regenerate.
7754 * configure.ac: Add --with-python-libdir option.
7755 * main.c: Use WITH_PYTHON_LIBDIR.
7756
869d8950
TT
77572020-02-19 Tom Tromey <tom@tromey.com>
7758
7759 * symtab.c (general_symbol_info::compute_and_set_names): Use
7760 obstack_strndup. Simplify call to symbol_set_demangled_name.
7761
298e9637
SM
77622020-02-19 Simon Marchi <simon.marchi@efficios.com>
7763
7764 * dwarf2/read.c (allocate_signatured_type_table,
7765 allocate_dwo_unit_table, allocate_type_unit_groups_table,
7766 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
7767 Remove objfile parameter, update all callers.
7768
08410482
DE
77692020-02-19 Doug Evans <dje@google.com>
7770
7771 PR rust/25535
7772 * rust-lang.c (rust_print_enum): Apply embedded_offset to
7773 rust_enum_variant calculation.
7774
dfdeeca1
TT
77752020-02-19 Tom Tromey <tromey@adacore.com>
7776
7777 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
7778
2ef5453b
TT
77792020-02-19 Tom Tromey <tromey@adacore.com>
7780
7781 * ada-lang.c (cache_symbol): Use obstack_strdup.
7782
9f1528a1
AB
77832020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
7784
7785 * configure: Regenerate.
7786
d3c22fa8
TT
77872020-02-19 Tom Tromey <tromey@adacore.com>
7788
7789 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
7790 NULL check.
7791
bf84f706
MR
77922020-02-19 Maciej W. Rozycki <macro@wdc.com>
7793
7794 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
7795
d1c9b20f
AB
77962020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
7797
7798 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
7799 if GDBSERVER is not defined.
7800 (riscv_tdesc_cache): Likewise, also store const target_desc.
7801 (STATIC_IN_GDB): Define.
7802 (riscv_create_target_description): Update declaration with
7803 STATIC_IN_GDB.
7804 (riscv_lookup_target_description): New function, only define if
7805 GDBSERVER is not defined.
7806 * arch/riscv.h (riscv_create_target_description): Declare only
7807 when GDBSERVER is defined.
7808 (riscv_lookup_target_description): New declaration when GDBSERVER
7809 is not defined.
7810 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
7811 (riscv_linux_read_features): ...this, and return
7812 riscv_gdbarch_features instead of target_desc.
7813 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
7814 (riscv_linux_read_description): Rename to...
7815 (riscv_linux_read_features): ...this.
7816 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
7817 Update to use riscv_gdbarch_features and
7818 riscv_lookup_target_description.
7819 * riscv-tdep.c (riscv_find_default_target_description): Use
7820 riscv_lookup_target_description instead of
7821 riscv_create_target_description.
7822
373d7ac0
SM
78232020-02-18 Simon Marchi <simon.marchi@efficios.com>
7824
7825 * valprint.c (generic_val_print_enum_1): When printing a flag
7826 enum with value 0 and there is no enumerator with value 0, print
7827 just "0" instead of "(unknown: 0x0)".
7828
b29a2df0
SM
78292020-02-18 Simon Marchi <simon.marchi@efficios.com>
7830
7831 * valprint.c (generic_val_print_enum_1): Print unknown part of
7832 flag enum in hex.
7833
6740f0cc
SM
78342020-02-18 Simon Marchi <simon.marchi@efficios.com>
7835
7836 * dwarf2/read.c (update_enumeration_type_from_children): Allow
7837 flag enums to contain duplicate enumerators.
7838 * valprint.c (generic_val_print_enum_1): Update comment.
7839
edd45eb0
SM
78402020-02-18 Simon Marchi <simon.marchi@efficios.com>
7841
7842 * dwarf2/read.c: Include "count-one-bits.h".
7843 (update_enumeration_type_from_children): If an enumerator has
7844 multiple bits set, don't treat the enumeration as a "flag enum".
7845 * valprint.c (generic_val_print_enum_1): Assert that enumerators
7846 of flag enums have 0 or 1 bit set.
7847
6d0cf446
BE
78482020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
7849
7850 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
7851 conversion.
7852 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
7853 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
7854 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
7855 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
7856 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
7857
7001c1b7
SM
78582020-02-18 Simon Marchi <simon.marchi@efficios.com>
7859
7860 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
7861
fdb61c6c
SM
78622020-02-14 Simon Marchi <simon.marchi@efficios.com>
7863
7864 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
7865 displaced_step_closure_up.
7866 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
7867 (struct displaced_step_closure_up):
7868 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
7869 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
7870 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
7871 Likewise.
7872 * gdbarch.sh (displaced_step_copy_insn): Likewise.
7873 * gdbarch.c, gdbarch.h: Re-generate.
7874 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
7875 displaced_step_closure_up.
7876 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
7877 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
7878 * infrun.h (displaced_step_closure_up): New type alias.
7879 (struct displaced_step_inferior_state) <step_closure>: Change
7880 type to displaced_step_closure_up.
7881 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
7882 displaced_step_closure_up.
7883 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
7884
a4a38eb4
TT
78852020-02-14 Tom Tromey <tom@tromey.com>
7886
7887 * minidebug.c (gnu_debug_key): New global.
7888 (find_separate_debug_file_in_section): Use it.
7889
e8217e61
SM
78902020-02-14 Simon Marchi <simon.marchi@efficios.com>
7891
7892 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
7893 std::unique_ptr.
7894 * gdbarch.c: Re-generate.
7895 * gdbarch.h: Re-generate.
7896 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
7897 change.
7898 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
7899 type to std::unique_ptr.
7900 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
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): Likewise.
7904 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
7905 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
7906 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
7907 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
7908 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
7909
d8d83535
SM
79102020-02-14 Simon Marchi <simon.marchi@efficios.com>
7911
7912 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
7913 std::unique_ptr.
7914 (displaced_step_clear): Rename to...
7915 (displaced_step_reset): ... this. Just call displaced->reset ().
7916 (displaced_step_clear_cleanup): Rename to...
7917 (displaced_step_reset_cleanup): ... this.
7918 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
7919 (displaced_step_fixup): Likewise.
7920 (resume_1): Likewise.
7921 (handle_inferior_event): Restore child's memory before calling
7922 displaced_step_fixup on the parent.
7923 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
7924 to std::unique_ptr.
7925 <step_closure>: Change type to std::unique_ptr.
7926
5f661e03
SM
79272020-02-14 Simon Marchi <simon.marchi@efficios.com>
7928
7929 * arm-tdep.c: Include count-one-bits.h.
7930 (cleanup_block_store_pc): Use count_one_bits.
7931 (cleanup_block_load_pc): Use count_one_bits.
7932 (arm_copy_block_xfer): Use count_one_bits.
7933 (thumb2_copy_block_xfer): Use count_one_bits.
7934 (thumb_copy_pop_pc_16bit): Use count_one_bits.
7935 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
7936 (thumb_get_next_pcs_raw): Use count_one_bits.
7937 (arm_get_next_pcs_raw): Use count_one_bits_l.
7938 * arch/arm.c (bitcount): Remove.
7939 * arch/arm.h (bitcount): Remove.
7940
8084e579
TT
79412020-02-14 Tom Tromey <tromey@adacore.com>
7942
7943 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
7944 Update.
7945 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
7946 * dwarf2/loc.c (call_site_find_chain_1): Return
7947 unique_xmalloc_ptr.
7948 (call_site_find_chain): Likewise.
7949
258bf0ee
RB
79502020-02-14 Richard Biener <rguenther@suse.de>
7951
7952 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
7953 on expression with division operators.
7954
f98a8458
AKS
79552020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
7956
7957 * MAINTAINERS (Write After Approval): Adding myself.
7958
d1437c0e
TT
79592020-02-12 Tom Tromey <tom@tromey.com>
7960
7961 * event-loop.c (event_data, gdb_event, event_handler_func):
7962 Remove.
7963
3d4560f7
TT
79642020-02-12 Tom Tromey <tom@tromey.com>
7965
7966 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
7967 (dwarf2_frame_objfile_data): Add comment.
7968 (find_comp_unit, set_comp_unit): New functions.
7969 (dwarf2_frame_find_fde): Use find_comp_unit.
7970 (dwarf2_build_frame_info): Use set_comp_unit.
7971
21982304
TT
79722020-02-12 Tom Tromey <tom@tromey.com>
7973
7974 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
7975 (comp_unit): Don't initialize objfile.
7976 (execute_cfa_program): Add text_offset parameter.
7977 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
7978 (dwarf2_frame_cache): Update.
7979 (dwarf2_build_frame_info): Don't set "objfile" member.
7980
4debb237
TT
79812020-02-12 Tom Tromey <tom@tromey.com>
7982
7983 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
7984 (decode_frame_entry): Likewise.
7985 (dwarf2_build_frame_info): Update.
7986
0d404d44
TT
79872020-02-12 Tom Tromey <tom@tromey.com>
7988
7989 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
7990 (decode_frame_entry_1): Use the comp_unit obstack.
7991
a7a3ae5c
TT
79922020-02-12 Tom Tromey <tom@tromey.com>
7993
7994 * dwarf2/frame.c (struct comp_unit): Add initializers and
7995 constructor.
7996 (dwarf2_frame_objfile_data): Store a comp_unit.
7997 (dwarf2_frame_find_fde): Update.
7998 (dwarf2_build_frame_info): Use "new".
7999
a9d65418
TT
80002020-02-12 Tom Tromey <tom@tromey.com>
8001
8002 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
8003 (dwarf2_fde_table): Typedef for std::vector.
8004 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
8005 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
8006 (decode_frame_entry): Update.
8007 (dwarf2_build_frame_info): Use "new".
8008
7559c217
CB
80092020-02-12 Christian Biesinger <cbiesinger@google.com>
8010
8011 * arm-tdep.c (arm_gdbarch_init): Update.
8012 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
8013 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
8014 have_neon, is_m>: Change to bool.
8015
aeefc73c
CB
80162020-02-12 Christian Biesinger <cbiesinger@google.com>
8017
8018 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
8019
d27b8e5f
TT
80202020-02-12 Tom Tromey <tom@tromey.com>
8021
8022 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
8023
cd5900f3
HD
80242020-02-12 Hannes Domani <ssbssa@yahoo.de>
8025
8026 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
8027 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
8028
f056b22b
TT
80292020-02-11 Tom Tromey <tom@tromey.com>
8030
8031 * psymtab.h: Update comment.
8032
f92ff6b5
TT
80332020-02-11 Tom Tromey <tom@tromey.com>
8034
8035 * gdb_obstack.h (struct auto_obstack): Use
8036 DISABLE_COPY_AND_ASSIGN.
8037
3fd6912b
TT
80382020-02-11 Tom Tromey <tom@tromey.com>
8039
8040 * dwarf2/frame.h (struct objfile): Don't forward declare.
8041
69ed9b74
CB
80422020-02-11 Christian Biesinger <cbiesinger@google.com>
8043
8044 * cris-tdep.c (cris_supply_gregset): Change signature to match
8045 what struct regset expects.
8046 (cris_regset): New struct.
8047 (fetch_core_registers): Remove.
8048 (cris_iterate_over_regset_sections): New function.
8049 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
8050 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
8051
bda874f6
CB
80522020-02-11 Christian Biesinger <cbiesinger@google.com>
8053
8054 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
8055 registers.
8056
754e1564
CB
80572020-02-11 Christian Biesinger <cbiesinger@google.com>
8058
8059 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
8060
8ddd8e0e
SM
80612020-02-11 Simon Marchi <simon.marchi@efficios.com>
8062
8063 * configure: Re-generate.
8064
898e7f60
SM
80652020-02-11 Simon Marchi <simon.marchi@efficios.com>
8066
8067 * configure: Re-generate.
8068
58df732b
SM
80692020-02-11 Simon Marchi <simon.marchi@efficios.com>
8070
8071 * acinclude: Update warning.m4 path.
8072 * warning.m4: Move to gdbsupport.
8073
da5bd37e
TT
80742020-02-11 Tom Tromey <tromey@adacore.com>
8075
8076 * remote.c (remote_console_output): Update.
8077 * printcmd.c (printf_command): Update.
8078 * event-loop.c (gdb_wait_for_event): Update.
8079 * linux-nat.c (sigchld_handler): Update.
8080 * remote-sim.c (gdb_os_write_stdout): Update.
8081 (gdb_os_flush_stdout): Update.
8082 (gdb_os_flush_stderr): Update.
8083 (gdb_os_write_stderr): Update.
8084 * exceptions.c (print_exception): Update.
8085 * remote-fileio.c (remote_fileio_func_read): Update.
8086 (remote_fileio_func_write): Update.
8087 * tui/tui.c (tui_enable): Update.
8088 * tui/tui-interp.c (tui_interp::init): Update.
8089 * utils.c (init_page_info): Update.
8090 (putchar_unfiltered, fputc_unfiltered): Update.
8091 (gdb_flush): Update.
8092 (emit_style_escape): Update.
8093 (flush_wrap_buffer, fputs_maybe_filtered): Update.
8094 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
8095 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
8096 (stderr_file::write): Update.
8097 (stderr_file::puts): Update.
8098 * ui-file.h (ui_file_isatty, ui_file_write)
8099 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
8100 (ui_file_puts): Don't declare.
8101
85f0dd3c
TV
81022020-02-10 Tom de Vries <tdevries@suse.de>
8103
8104 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
8105 sentinel to char *.
8106
2e927613
TV
81072020-02-09 Tom de Vries <tdevries@suse.de>
8108
8109 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
8110 filename if it matches "<artificial>".
8111
6bafc845
HD
81122020-02-09 Hannes Domani <ssbssa@yahoo.de>
8113
8114 * windows-tdep.c (struct enum_value_name): New struct.
8115 (create_enum): New function.
8116 (windows_get_siginfo_type): Create and use enum types.
8117
7928d571
HD
81182020-02-09 Hannes Domani <ssbssa@yahoo.de>
8119
8120 * NEWS: Mention $_siginfo support for Windows.
8121 * windows-nat.c (handle_exception): Set siginfo_er.
8122 (windows_nat_target::mourn_inferior): Reset siginfo_er.
8123 (windows_xfer_siginfo): New function.
8124 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
8125 * windows-tdep.c (struct windows_gdbarch_data): New struct.
8126 (init_windows_gdbarch_data): New function.
8127 (get_windows_gdbarch_data): New function.
8128 (windows_get_siginfo_type): New function.
8129 (windows_init_abi): Register windows_get_siginfo_type.
8130 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
8131
6751ebae
TT
81322020-02-08 Tom Tromey <tom@tromey.com>
8133
8134 * dwarf2/read.c (class cutu_reader) <cutu_reader,
8135 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
8136 <keep>: Declare method.
8137 <m_keep>: Remove member.
8138 <~cutu_reader>: Remove.
8139 (cutu_reader::init_tu_and_read_dwo_dies): Update.
8140 (cutu_reader::cutu_reader): Update.
8141 (cutu_reader::keep): Rename from ~cutu_reader.
8142 (process_psymtab_comp_unit, build_type_psymtabs_1)
8143 (process_skeletonless_type_unit, load_partial_comp_unit)
8144 (load_full_comp_unit, dwarf2_read_addr_index)
8145 (read_signatured_type): Update.
8146
135f5437
TT
81472020-02-08 Tom Tromey <tom@tromey.com>
8148
8149 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
8150 "want_partial_unit" parameter.
8151 (process_psymtab_comp_unit): Change want_partial_unit to bool.
8152 Inline check for DW_TAG_partial_unit.
8153 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
8154
9f66ff1c
TT
81552020-02-08 Tom Tromey <tom@tromey.com>
8156
8157 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
8158 read.c.
8159 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
8160 read.c.
8161
c8a7a66f
TT
81622020-02-08 Tom Tromey <tom@tromey.com>
8163
8164 * dwarf2/read.c (read_address): Move to comp-unit.c.
8165 (dwarf2_rnglists_process, dwarf2_ranges_process)
8166 (read_attribute_value, dwarf_decode_lines_1)
8167 (var_decode_location, decode_locdesc): Update.
8168 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
8169 read.c. Remove "cu" parameter.
8170 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
8171 method.
8172
8266302d
TT
81732020-02-08 Tom Tromey <tom@tromey.com>
8174
8175 * dwarf2/read.c (read_attribute_value, read_indirect_string)
8176 (read_indirect_line_string): Update.
8177 * dwarf2/comp-unit.c (read_offset): Remove.
8178 (read_comp_unit_head): Update.
8179 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
8180 method.
8181 (read_offset): Don't declare.
8182
4057dfde
TT
81832020-02-08 Tom Tromey <tom@tromey.com>
8184
8185 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
8186 * dwarf2/read.c (struct comp_unit_head): Move to
8187 dwarf2/comp-unit.h.
8188 (enum class rcuh_kind): Move to comp-unit.h.
8189 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
8190 (read_comp_unit_head, error_check_comp_unit_head)
8191 (read_and_check_comp_unit_head): Move to comp-unit.c.
8192 (read_offset, dwarf_unit_type_name): Likewise.
8193 (create_debug_type_hash_table, read_cutu_die_from_dwo)
8194 (cutu_reader::cutu_reader, read_call_site_scope)
8195 (find_partial_die, follow_die_offset): Update.
8196 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
8197
24aa364d
TT
81982020-02-08 Tom Tromey <tom@tromey.com>
8199
8200 * dwarf2/read.c (read_offset_1): Move to leb.c.
8201 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
8202 (dwarf_decode_macro_bytes): Update.
8203 * dwarf2/leb.c (read_offset): Rename; move from read.c.
8204 * dwarf2/leb.h (read_offset): Declare.
8205
2c7d5afc
TT
82062020-02-08 Tom Tromey <tom@tromey.com>
8207
8208 * dwarf2/read.c (dwarf2_section_size): Remove.
8209 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
8210 Update.
8211 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
8212
4075cb26
TT
82132020-02-08 Tom Tromey <tom@tromey.com>
8214
8215 * dwarf2/read.c (read_initial_length): Move to leb.c.
8216 * dwarf2/leb.h (read_initial_length): Declare.
8217 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
8218 handle_nonstd parameter.
8219 * dwarf2/frame.c (read_initial_length): Remove.
8220 (decode_frame_entry_1): Update.
8221
09ba997f
TT
82222020-02-08 Tom Tromey <tom@tromey.com>
8223
8224 * dwarf2/loc.c (dwarf2_find_location_expression)
8225 (dwarf_evaluate_loc_desc::get_tls_address)
8226 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
8227 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
8228 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
8229 (dwarf2_compile_property_to_c)
8230 (dwarf2_loc_desc_get_symbol_read_needs)
8231 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
8232 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
8233 (loclist_describe_location, loclist_tracepoint_var_ref)
8234 (loclist_generate_c_location): Update.
8235 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
8236 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
8237 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
8238 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
8239 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
8240 (dwarf2_per_cu_data::addr_size)
8241 (dwarf2_per_cu_data::ref_addr_size)
8242 (dwarf2_per_cu_data::text_offset)
8243 (dwarf2_per_cu_data::addr_type): Now methods.
8244 (per_cu_header_read_in): Make per_cu "const".
8245 (dwarf2_version): Remove.
8246 (dwarf2_per_cu_data::int_type): Now a method.
8247 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
8248 (set_die_type, read_array_type, read_subrange_index_type)
8249 (read_tag_string_type, read_subrange_type): Update.
8250 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
8251 offset_size, ref_addr_size, text_offset, addr_type, version,
8252 objfile, int_type, addr_sized_int_type>: Declare methods.
8253
96c738c0
TT
82542020-02-08 Tom Tromey <tom@tromey.com>
8255
8256 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
8257 Move earlier.
8258
8fdd972c
TT
82592020-02-08 Tom Tromey <tom@tromey.com>
8260
8261 * dwarf2/read.h (dwarf_line_debug): Declare.
8262 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
8263 * dwarf2/read.c: Move line_header code to new files.
8264 (dwarf_line_debug): No longer static.
8265 * dwarf2/line-header.c: New file.
8266 * dwarf2/line-header.h: New file.
8267
03075812
TT
82682020-02-08 Tom Tromey <tom@tromey.com>
8269
8270 * dwarf2/read.c (struct line_header) <file_full_name,
8271 file_file_name>: Return unique_xmalloc_ptr.
8272 (line_header::file_file_name): Update.
8273 (line_header::file_full_name): Update.
8274 (dw2_get_file_names_reader): Update.
8275 (macro_start_file): Update.
8276
bb822404
TT
82772020-02-08 Tom Tromey <tom@tromey.com>
8278
8279 * dwarf2/read.c (struct line_header) <file_full_name,
8280 file_file_name>: Declare methods.
8281 (dw2_get_file_names_reader): Update.
8282 (file_file_name): Now a method.
8283 (file_full_name): Likewise.
8284 (macro_start_file): Update.
8285
009b64fc
TT
82862020-02-08 Tom Tromey <tom@tromey.com>
8287
8288 * dwarf2/read.c (dwarf_always_disassemble)
8289 (show_dwarf_always_disassemble): Move to loc.c.
8290 (_initialize_dwarf2_read): Move "always-disassemble" registration
8291 to loc.c.
8292 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
8293 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
8294 static.
8295 (show_dwarf_always_disassemble): Move from read.c.
8296 (_initialize_dwarf2loc): Move always-disassemble from read.c.
8297
5895093f
TT
82982020-02-08 Tom Tromey <tom@tromey.com>
8299
8300 * dwarf2/read.c (~dwarf2_per_objfile): Update.
8301 (create_quick_file_names_table): Return htab_up.
8302 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
8303 Update.
8304 * dwarf2/read.h (struct dwarf2_per_objfile)
8305 <quick_file_names_table>: Now htab_up.
8306
b3b32279
TT
83072020-02-08 Tom Tromey <tom@tromey.com>
8308
8309 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
8310
1d33d811
TT
83112020-02-08 Tom Tromey <tom@tromey.com>
8312
8313 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
8314 Rewrite.
8315 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
8316 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
8317 (abbrev_table::abbrev_table): No longer inline.
8318 (ABBREV_HASH_SIZE): Remove.
8319 (abbrev_table::m_abbrevs): Now an htab_up.
8320
86de1d91
TT
83212020-02-08 Tom Tromey <tom@tromey.com>
8322
8323 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
8324 (cutu_reader): Update.
8325 (build_type_psymtabs_1): Update.
8326 * dwarf2/abbrev.c (abbrev_table::read): Rename.
8327 (abbrev_table::alloc_abbrev): Update.
8328 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
8329 (abbrev_table::read): New static method, renamed from
8330 abbrev_table_read_table.
8331 (abbrev_table::alloc_abbrev)
8332 (abbrev_table::add_abbrev): Now private.
8333 (abbrev_table::abbrev_table): Now private.
8334 (abbrev_table::m_abbrev_obstack): Now private. Rename.
8335
0335378b
TT
83362020-02-08 Tom Tromey <tom@tromey.com>
8337
8338 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
8339 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
8340 htab_up.
8341
48b490f2
TT
83422020-02-08 Tom Tromey <tom@tromey.com>
8343
8344 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
8345 htab_up.
8346 (lookup_dwo_unit_in_dwp): Update.
8347 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
8348 on obstack.
8349
bc68fb19
TT
83502020-02-08 Tom Tromey <tom@tromey.com>
8351
8352 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
8353 obstack.
8354
d15acc42
TT
83552020-02-08 Tom Tromey <tom@tromey.com>
8356
8357 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
8358 line_header_hash.
8359 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
8360 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
8361 Change type to htab_up.
8362
eaa5fa8b
TT
83632020-02-08 Tom Tromey <tom@tromey.com>
8364
8365 * dwarf2/read.c (allocate_type_unit_groups_table): Return
8366 htab_up. Don't allocate on obstack.
8367 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
8368 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
8369 Change type to htab_up.
8370
b0b6a987
TT
83712020-02-08 Tom Tromey <tom@tromey.com>
8372
8373 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
8374 Change type to htab_up.
8375 * dwarf2/read.c (create_signatured_type_table_from_index)
8376 (create_signatured_type_table_from_debug_names)
8377 (create_all_type_units, add_type_unit)
8378 (lookup_dwo_signatured_type, lookup_signatured_type)
8379 (process_skeletonless_type_unit): Update.
8380 (create_debug_type_hash_table, create_debug_types_hash_table):
8381 Change type of types_htab.
8382 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
8383 htab_up. Don't allocate on obstack.
8384 (create_cus_hash_table): Change type of cus_htab parameter.
8385 (struct dwo_file) <cus, tus>: Now htab_up.
8386 (lookup_dwo_signatured_type, lookup_dwo_cutu)
8387 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
8388 (queue_and_load_all_dwo_tus): Update.
8389 * dwarf2/index-write.c (write_gdbindex): Update.
8390 (write_debug_names): Update.
8391
39856def
TT
83922020-02-08 Tom Tromey <tom@tromey.com>
8393
8394 * dwarf2/read.h (struct dwarf2_queue_item): Move from
8395 dwarf2/read.c. Remove "next" member. Add constructor ntad
8396 destructor.
8397 (struct dwarf2_per_objfile) <queue>: New member.
8398 * dwarf2/read.c (struct dwarf2_queue_item): Move to
8399 dwarf2/read.h.
8400 (dwarf2_queue, dwarf2_queue_tail): Remove.
8401 (class dwarf2_queue_guard): Add parameter to constructor. Use
8402 DISABLE_COPY_AND_ASSIGN.
8403 <m_per_objfile>: New member.
8404 <~dwarf2_queue_guard>: Rewrite.
8405 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
8406 Update.
8407 (~dwarf2_queue_item): New.
8408
3e225074
TT
84092020-02-08 Tom Tromey <tom@tromey.com>
8410
8411 * dwarf2/read.c (struct die_info) <has_children>: New member.
8412 (dw2_get_file_names_reader): Remove has_children.
8413 (dw2_get_file_names): Update.
8414 (read_cutu_die_from_dwo): Remove has_children.
8415 (cutu_reader::init_tu_and_read_dwo_dies)
8416 (cutu_reader::cutu_reader): Update.
8417 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
8418 Remove has_children.
8419 (build_type_psymtabs_1, process_skeletonless_type_unit)
8420 (load_partial_comp_unit, load_full_comp_unit): Update.
8421 (create_dwo_cu_reader): Remove has_children.
8422 (create_cus_hash_table, read_die_and_children): Update.
8423 (read_full_die_1,read_full_die): Remove has_children.
8424 (read_signatured_type): Update.
8425 (class cutu_reader) <has_children>: Remove.
8426
82ca8957
TT
84272020-02-08 Tom Tromey <tom@tromey.com>
8428
8429 * dwarf2/expr.c: Rename from dwarf2expr.c.
8430 * dwarf2/expr.h: Rename from dwarf2expr.h.
8431 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
8432 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
8433 * dwarf2/frame.c: Rename from dwarf2-frame.c.
8434 * dwarf2/frame.h: Rename from dwarf2-frame.h.
8435 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
8436 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
8437 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
8438 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
8439 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
8440 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
8441 * dwarf2/loc.c: Rename from dwarf2loc.c.
8442 * dwarf2/loc.h: Rename from dwarf2loc.h.
8443 * dwarf2/read.c: Rename from dwarf2read.c.
8444 * dwarf2/read.h: Rename from dwarf2read.h.
8445 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
8446 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
8447 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
8448 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
8449 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
8450 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
8451 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
8452 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
8453 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
8454 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
8455 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
8456 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
8457 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
8458 Update.
8459 * Makefile.in (COMMON_SFILES): Update.
8460 (HFILES_NO_SRCDIR): Update.
8461
9e35d499
TT
84622020-02-08 Tom Tromey <tom@tromey.com>
8463
8464 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
8465 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
8466
1eba2311
TT
84672020-02-08 Tom Tromey <tom@tromey.com>
8468
8469 * dwarf2read.h (struct die_info): Don't declare.
8470
e41c2da2
TT
84712020-02-08 Tom Tromey <tom@tromey.com>
8472
8473 * dwarf2read.h (die_info_ptr): Remove typedef.
8474
4fc6c0d5
TT
84752020-02-08 Tom Tromey <tom@tromey.com>
8476
8477 * dwarf2read.c (read_call_site_scope)
8478 (handle_data_member_location, dwarf2_add_member_fn)
8479 (mark_common_block_symbol_computed, read_common_block)
8480 (attr_to_dynamic_prop, partial_die_info::read)
8481 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
8482 (dwarf2_symbol_mark_computed, set_die_type): Update.
8483 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
8484 method.
8485 (attr_form_is_block): Don't declare.
8486 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
8487
cd6c91b4
TT
84882020-02-08 Tom Tromey <tom@tromey.com>
8489
8490 * dwarf2read.c (dwarf2_find_base_address, )
8491 (read_call_site_scope, rust_containing_type)
8492 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
8493 (handle_data_member_location, dwarf2_add_member_fn)
8494 (get_alignment, read_structure_type, process_structure_scope)
8495 (mark_common_block_symbol_computed, read_common_block)
8496 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
8497 (partial_die_info::read, read_attribute_value, new_symbol)
8498 (lookup_die_type, dwarf2_get_ref_die_offset)
8499 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
8500 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
8501 (dwarf2_symbol_mark_computed): Update.
8502 * dwarf2/attribute.h (struct attribute) <value_as_address,
8503 form_is_section_offset, form_is_constant, form_is_ref>: Declare
8504 methods.
8505 (value_as_address, attr_form_is_section_offset)
8506 (attr_form_is_constant, attr_form_is_ref): Don't declare.
8507 * dwarf2/attribute.c (attribute::value_as_address)
8508 (attribute::form_is_section_offset, attribute::form_is_constant)
8509 (attribute::form_is_ref): Now methods.
8510
162dce55
TT
85112020-02-08 Tom Tromey <tom@tromey.com>
8512
8513 * dwarf2read.c (struct attribute, DW_STRING)
8514 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
8515 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
8516 (attr_form_is_block, attr_form_is_section_offset)
8517 (attr_form_is_constant, attr_form_is_ref): Move.
8518 * dwarf2/attribute.h: New file.
8519 * dwarf2/attribute.c: New file, from dwarf2read.c.
8520 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
8521
3054dd54
TT
85222020-02-08 Tom Tromey <tom@tromey.com>
8523
8524 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
8525 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
8526 Move.
8527 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
8528 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
8529 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
8530 abbrev.c.
8531 * dwarf2/abbrev.h: New file.
8532 * dwarf2/abbrev.c: New file, from dwarf2read.c.
8533 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
8534
96b79293
TT
85352020-02-08 Tom Tromey <tom@tromey.com>
8536
8537 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
8538 (dwarf2_section_size, dwarf2_get_section_info)
8539 (create_signatured_type_table_from_debug_names)
8540 (create_addrmap_from_aranges, read_debug_names_from_section)
8541 (get_gdb_index_contents_from_section, read_comp_unit_head)
8542 (error_check_comp_unit_head, read_abbrev_offset)
8543 (create_debug_type_hash_table, init_cu_die_reader)
8544 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
8545 (read_comp_units_from_section, create_cus_hash_table)
8546 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
8547 (create_dwp_v2_section, dwarf2_rnglists_process)
8548 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
8549 (abbrev_table_read_table, read_indirect_string_at_offset_from)
8550 (read_indirect_string_from_dwz, read_addr_index_1)
8551 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
8552 (dwarf_decode_macro_bytes, dwarf_decode_macros)
8553 (fill_in_loclist_baton): Update.
8554 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
8555 get_containing_section, get_bfd_owner, get_bfd_section,
8556 get_file_name, get_id, get_flags, empty, read>: Declare methods.
8557 (dwarf2_read_section, get_section_name, get_section_file_name)
8558 (get_containing_section, get_section_bfd_owner)
8559 (get_section_bfd_section, get_section_name, get_section_file_name)
8560 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
8561 declare.
8562 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
8563 (dwarf2_section_info::get_bfd_owner)
8564 (dwarf2_section_info::get_bfd_section)
8565 (dwarf2_section_info::get_name)
8566 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
8567 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
8568 (dwarf2_section_info::read): Now methods.
8569 * dwarf-index-write.c (class debug_names): Update.
8570
2c86cff9
TT
85712020-02-08 Tom Tromey <tom@tromey.com>
8572
8573 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
8574 Move to dwarf2/section.h.
8575 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
8576 (get_section_bfd_section, get_section_name)
8577 (get_section_file_name, get_section_id, get_section_flags)
8578 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
8579 dwarf2/section.c.
8580 * dwarf2/section.h: New file.
8581 * dwarf2/section.c: New file, from dwarf2read.c.
8582 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
8583
f4382c45
TT
85842020-02-08 Tom Tromey <tom@tromey.com>
8585
8586 * dwarf2read.h (read_unsigned_leb128): Don't declare.
8587 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
8588 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
8589 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
8590 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
8591 * dwarf2/leb.h: New file, from dwarf2read.c.
8592 * dwarf2/leb.c: New file, from dwarf2read.c.
8593 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
8594 Remove.
8595 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
8596 (COMMON_SFILES): Add dwarf2/leb.c.
8597
01840b7a
JB
85982020-02-08 Joel Brobecker <brobecker@adacore.com>
8599
8600 GDB 9.1 released.
8601
dfcb27e4
IB
86022020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
8603
8604 PR gdb/25190:
aac66a4c
SM
8605 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
8606 * gdb/remote.c (remote_console_output): Update.
8607 * gdb/ui-file.c (fputs_unfiltered): Rename to...
8608 (ui_file_puts): ...this.
8609 * gdb/ui-file.h (ui_file_puts): Add declaration.
8610 * gdb/utils.c (emit_style_escape): Update.
8611 (flush_wrap_buffer): Update.
8612 (fputs_maybe_filtered): Update.
8613 (fputs_unfiltered): Add function.
dfcb27e4 8614
faa17681
IB
86152020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
8616
aac66a4c
SM
8617 * gdb/event-loop.c (gdb_wait_for_event): Update.
8618 * gdb/printcmd.c (printf_command): Update.
8619 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
8620 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
8621 (gdb_os_flush_stderr): Update.
8622 * gdb/remote.c (remote_console_output): Update.
8623 * gdb/ui-file.c (gdb_flush): Rename to...
8624 (ui_file_flush): ...this.
8625 (stderr_file::write): Update.
8626 (stderr_file::puts): Update.
8627 * gdb/ui-file.h (gdb_flush): Rename to...
8628 (ui_file_flush): ...this.
8629 * gdb/utils.c (gdb_flush): Add function.
8630 * gdb/utils.h (gdb_flush): Add declaration.
faa17681 8631
5abbbe1d
TT
86322020-02-07 Tom Tromey <tromey@adacore.com>
8633
8634 PR breakpoints/24915:
8635 * source.c (find_and_open_source): Do not check basenames_may_differ.
8636
919adfe8
TT
86372020-02-07 Tom Tromey <tom@tromey.com>
8638
8639 * README: Update gdbserver documentation.
8640 * gdbserver: Move to top level.
8641 * configure.tgt (build_gdbserver): Remove.
8642 * configure.ac: Remove --enable-gdbserver.
8643 * configure: Rebuild.
8644 * Makefile.in (distclean): Don't mention gdbserver.
8645
1d5d29e7
SV
86462020-02-06 Shahab Vahedi <shahab@synopsys.com>
8647
8648 * source-cache.c (source_cache::ensure): Surround
8649 get_plain_source_lines with a try/catch.
8650 (source_cache::get_line_charpos): Get rid of try/catch
8651 and only check for the return value of "ensure".
8652 * tui/tui-source.c (tui_source_window::set_contents):
8653 Simplify "nlines" calculation.
8654
6eb1129c
SV
86552020-02-06 Shahab Vahedi <shahab@synopsys.com>
8656
8657 * MAINTAINERS (Write After Approval): Add myself.
8658
c6a42d11
CB
86592020-02-05 Christian Biesinger <cbiesinger@google.com>
8660
8661 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
8662 function call.
8663
c8ecdda6
CB
86642020-02-05 Christian Biesinger <cbiesinger@google.com>
8665
8666 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
8667
f6480e70
MR
86682020-02-05 Maciej W. Rozycki <macro@wdc.com>
8669
8670 * nat/riscv-linux-tdesc.h: New file.
8671 * nat/riscv-linux-tdesc.c: New file, taking code from...
8672 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
8673 ... here.
8674 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
8675 NATDEPFILES.
8676
dcc9fbc6
AB
86772020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
8678
8679 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
8680 we don't set the fake simulator ptid to the null_ptid.
8681
719546c4
SM
86822020-02-03 Simon Marchi <simon.marchi@efficios.com>
8683
8684 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
8685 * gdbthread.h (class thread_info) <resumed>: Likewise.
8686 * infrun.c (resume_1): Likewise.
8687 (proceed): Likewise.
8688 (infrun_thread_stop_requested): Likewise.
8689 (stop_all_threads): Likewise.
8690 (handle_inferior_event): Likewise.
8691 (restart_threads): Likewise.
8692 (finish_step_over): Likewise.
8693 (keep_going_stepped_thread): Likewise.
8694 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
8695 (linux_handle_extended_wait): Likewise.
8696 * record-btrace.c (get_thread_current_frame_id): Likewise.
8697 * record-full.c (record_full_wait_1): Likewise.
8698 * remote.c (remote_target::process_initial_stop_replies): Likewise.
8699 * target.c (target_resume): Likewise.
8700 * thread.c (set_running_thread): Likewise.
8701
e409c542
AKS
87022020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
8703
8704 * f-valprint.c (f77_print_array_1): Changed datatype of index
8705 variable to LONGEST from int to enable it to contain bound
8706 values correctly.
8707
ee98c0da
MR
87082020-02-03 Maciej W. Rozycki <macro@wdc.com>
8709
8710 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
8711 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
8712 offsets according to FLEN determined.
8713 (riscv_linux_nat_target::read_description): Determine FLEN
8714 dynamically.
8715 (riscv_linux_nat_target::fetch_registers): Size regset buffer
8716 according to FLEN determined.
8717 (riscv_linux_nat_target::store_registers): Likewise.
8718
aa66aac4
SV
87192020-02-01 Shahab Vahedi <shahab@synopsys.com>
8720
8721 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
8722 when reg->group is empty and reggroup is not.
8723
fd9faca8
TT
87242020-01-31 Tom Tromey <tromey@adacore.com>
8725
8726 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
8727 Call beneath target's mourn_inferior after unpushing.
8728
42330a68
AB
87292020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
8730
8731 PR tui/9765
8732 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
8733 have enough lines to fill the screen, still return the lowest
8734 address we found.
8735
7a27a45b
AB
87362020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
8737
8738 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
8739 '-', '<', and '>' commands.
8740
c47f70e2
PA
87412020-01-29 Pedro Alves <palves@redhat.com>
8742 Sergio Durigan Junior <sergiodj@redhat.com>
8743
8744 * infcmd.c (construct_inferior_arguments): Assert that
8745 'argc' is greater than 0.
8746
5133a315
LM
87472020-01-29 Luis Machado <luis.machado@linaro.org>
8748
8749 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
8750 (BRK_INSN_MASK): Define to 0xd4200000.
8751 (aarch64_program_breakpoint_here_p): New function.
8752 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
8753 * arch-utils.c (default_program_breakpoint_here_p): Moved from
8754 breakpoint.c.
8755 * arch-utils.h (default_program_breakpoint_here_p): Moved from
8756 breakpoint.h
8757 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
8758 call gdbarch_program_breakpoint_here_p.
8759 (program_breakpoint_here): Moved to arch-utils.c, renamed to
8760 default_program_breakpoint_here_p, changed return type to bool and
8761 simplified.
8762 * breakpoint.h (program_breakpoint_here): Moved prototype to
8763 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
8764 return type to bool.
8765 * gdbarch.c: Regenerate.
8766 * gdbarch.h: Regenerate.
8767 * gdbarch.sh (program_breakpoint_here_p): New method.
8768 * infrun.c (handle_signal_stop): Call
8769 gdbarch_program_breakpoint_here_p.
8770
168f8c6b
TT
87712020-01-26 Tom Tromey <tom@tromey.com>
8772
8773 * ctfread.c (struct ctf_fp_info): Reindent.
8774 (_initialize_ctfread): Remove.
8775
128a391f
TT
87762020-01-26 Tom Tromey <tom@tromey.com>
8777
8778 * psymtab.c (partial_map_expand_apply)
8779 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
8780 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
8781 (psym_print_stats, psym_expand_symtabs_for_function)
8782 (psym_map_symbol_filenames, psym_map_matching_symbols)
8783 (psym_expand_symtabs_matching)
8784 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
8785 (maintenance_check_psymtabs): Use new methods.
8786 * psympriv.h (struct partial_symtab) <readin_p,
8787 get_compunit_symtab>: New methods.
8788 <readin, compunit_symtab>: Remove members.
8789 (struct standard_psymtab): New.
8790 (struct legacy_psymtab): Derive from standard_psymtab.
8791 * dwarf2read.h (struct dwarf2_psymtab): Derive from
8792 standard_psymtab.
8793 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
8794
0494dbec
TT
87952020-01-26 Tom Tromey <tom@tromey.com>
8796
8797 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
8798 read_dependencies. Add assert.
8799 * psymtab.c (partial_symtab::read_dependencies): New method.
8800 * psympriv.h (struct partial_symtab) <read_dependencies>: New
8801 method.
8802 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
8803 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
8804 read_dependencies.
8805 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
8806 Add assert.
8807
8566b89b
TT
88082020-01-26 Tom Tromey <tom@tromey.com>
8809
8810 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
8811 Call expand_psymtab.
8812 (xcoff_read_symtab): Call expand_psymtab.
8813 (xcoff_start_psymtab, xcoff_end_psymtab): Set
8814 legacy_expand_psymtab.
8815 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
8816 method.
8817 (struct legacy_psymtab) <expand_psymtab>: Implement.
8818 <legacy_expand_psymtab>: New member.
8819 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
8820 (parse_partial_symbols): Set legacy_expand_psymtab.
8821 (psymtab_to_symtab_1): Change argument order. Call
8822 expand_psymtab.
8823 (new_psymtab): Set legacy_expand_psymtab.
8824 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
8825 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
8826 expand_psymtab.
8827 (dwarf2_psymtab::expand_psymtab): Rename from
8828 psymtab_to_symtab_1. Call expand_psymtab.
8829 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
8830 (dbx_end_psymtab): Likewise.
8831 (dbx_psymtab_to_symtab_1): Change argument order. Call
8832 expand_psymtab.
8833 (dbx_read_symtab): Call expand_psymtab.
8834 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
8835 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
8836 (ctf_psymtab::read_symtab): Call expand_psymtab.
8837
077cbab2
TT
88382020-01-26 Tom Tromey <tom@tromey.com>
8839
8840 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
8841 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
8842 messages.
8843 * mdebugread.c (mdebug_read_symtab): Remove prints.
8844 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
8845 assert.
8846 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
8847
891813be
TT
88482020-01-26 Tom Tromey <tom@tromey.com>
8849
8850 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
8851 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
8852 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
8853 legacy_symtab.
8854 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
8855 * psymtab.c (psymtab_to_symtab): Call method.
8856 (dump_psymtab): Update.
8857 * psympriv.h (struct partial_symtab): Add virtual destructor.
8858 <read_symtab>: New method.
8859 (struct legacy_symtab): New.
8860 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
8861 (struct pst_map) <pst>: Now a legacy_psymtab.
8862 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
8863 (new_psymtab): Use legacy_psymtab.
8864 * dwarf2read.h (struct dwarf2_psymtab): New.
8865 (struct dwarf2_per_cu_data) <psymtab>: Use it.
8866 * dwarf2read.c (dwarf2_create_include_psymtab)
8867 (dwarf2_build_include_psymtabs, create_type_unit_group)
8868 (create_partial_symtab, process_psymtab_comp_unit_reader)
8869 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
8870 (set_partial_user): Use dwarf2_psymtab.
8871 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
8872 (psymtab_to_symtab_1, process_full_comp_unit)
8873 (process_full_type_unit, dwarf2_ranges_read)
8874 (dwarf2_get_pc_bounds, psymtab_include_file_name)
8875 (dwarf_decode_lines): Use dwarf2_psymtab.
8876 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
8877 (add_address_entry_worker, write_one_signatured_type)
8878 (recursively_count_psymbols, recursively_write_psymbols)
8879 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
8880 (write_debug_names): Likewise.
8881 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
8882 <pst>: Now a legacy_psymtab.
8883 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
8884 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
8885 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
8886 * ctfread.c (struct ctf_psymtab): New.
8887 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
8888 ctf_psymtab.
8889 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
8890 (create_partial_symtab): Return a ctf_psymtab.
8891 (scan_partial_symbols): Update.
8892
c3693a1d
TT
88932020-01-26 Tom Tromey <tom@tromey.com>
8894
8895 * xcoffread.c (xcoff_start_psymtab): Use new.
8896 * psymtab.c (partial_symtab::partial_symtab): New constructor,
8897 renamed from start_psymtab_common.
8898 * psympriv.h (struct partial_symtab): Add new constructor.
8899 (start_psymtab_common): Don't declare.
8900 * mdebugread.c (parse_partial_symbols): Use new.
8901 * dwarf2read.c (create_partial_symtab): Use new.
8902 * dbxread.c (start_psymtab): Use new.
8903 * ctfread.c (create_partial_symtab): Use new.
8904
32caafd0
TT
89052020-01-26 Tom Tromey <tom@tromey.com>
8906
8907 * xcoffread.c (xcoff_end_psymtab): Use new.
8908 * psymtab.c (start_psymtab_common): Use new.
8909 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
8910 Update.
8911 * psympriv.h (struct partial_symtab): Add parameters to
8912 constructor. Don't inline.
8913 (allocate_psymtab): Don't declare.
8914 * mdebugread.c (new_psymtab): Use new.
8915 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
8916 * dbxread.c (dbx_end_psymtab): Use new.
8917
abaa2f23
TT
89182020-01-26 Tom Tromey <tom@tromey.com>
8919
8920 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
8921 allocate_psymtab. Update documentation.
8922 * psymtab.c (psymtab_storage::install_psymtab): Rename from
8923 allocate_psymtab. Do not use new.
8924 (allocate_psymtab): Use new. Update.
8925
6d94535f
TT
89262020-01-26 Tom Tromey <tom@tromey.com>
8927
8928 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
8929 * psymtab.c (psym_print_stats): Update.
8930 * psympriv.h (struct partial_symtab) <readin,
8931 psymtabs_addrmap_supported, anonymous>: Now bool.
8932 * mdebugread.c (psymtab_to_symtab_1): Update.
8933 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
8934 (build_type_psymtabs_reader, psymtab_to_symtab_1)
8935 (process_full_comp_unit, process_full_type_unit): Update.
8936 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
8937 * ctfread.c (psymtab_to_symtab): Update.
8938
6f17252b
TT
89392020-01-26 Tom Tromey <tom@tromey.com>
8940
8941 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
8942 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
8943 * psymtab.c (psymtab_storage): Delete psymtabs.
8944 (psymtab_storage::allocate_psymtab): Use new.
8945 (psymtab_storage::discard_psymtab): Use delete.
8946 * psympriv.h (struct partial_symtab): Add constructor and
8947 initializers.
8948
f6f1cebc
TT
89492020-01-26 Tom Tromey <tom@tromey.com>
8950
8951 * machoread.c: Do not include psympriv.h.
8952
e47e48f6
PW
89532020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8954
8955 * NEWS: Mention the new option and the set/show commands.
8956
a2fedca9
PW
89572020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8958
8959 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
8960 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
8961 (validate_exec_file): New variables, enums, functions.
8962 (exec_file_locate_attach, print_section_info): Style the filenames.
8963 (_initialize_exec): Install show_exec_file_mismatch_command and
8964 set_exec_file_mismatch_command.
8965 * gdbcore.h (validate_exec_file): Declare.
8966 * infcmd.c (attach_command): Call validate_exec_file.
8967 * remote.c ( remote_target::remote_add_inferior): Likewise.
8968
7ffa82e1
AB
89692020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
8970
8971 * frame.c (find_frame_sal): Move call to get_next_frame into more
8972 inner scope.
8973 * inline-frame.c (inilne_state) <inline_state>: Update argument
8974 types.
8975 (inilne_state) <skipped_symbol>: Rename to...
8976 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
8977 (skip_inline_frames): Build vector of skipped symbols and use this
8978 to reate the inline_state.
8979 (inline_skipped_symbol): Add a comment and some assertions, fetch
8980 skipped symbol from the list.
8981
3d92a3e3
AB
89822020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
8983
8984 * buildsym.c (lte_is_less_than): Delete.
8985 (buildsym_compunit::end_symtab_with_blockvector): Create local
8986 lambda function to sort line table entries, and use
8987 std::stable_sort instead of std::sort.
8988 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
8989 markers when looking for a previous line.
8990
94a72be7
AB
89912020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
8992
8993 * dwarf2read.c (lnp_state_machine::record_line): Include
8994 end_sequence parameter in debug print out. Record the line if we
8995 are at an end_sequence marker even if it's not the start of a
8996 statement.
8997 * symmisc.c (maintenance_print_one_line_table): Print end of
8998 sequence markers with 'END' not '0'.
8999
53af73bf
PA
90002020-01-24 Pedro Alves <palves@redhat.com>
9001
9002 PR gdb/25410
9003 * thread.c (scoped_restore_current_thread::restore): Use
9004 switch_to_inferior_no_thread.
9005 * exec.c: Include "progspace-and-thread.h".
9006 (add_target_sections, remove_target_sections):
9007 scoped_restore_current_pspace_and_thread instead of
9008 scoped_restore_current_thread.
9009 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
9010 and aspace to the inferior before calling clone_program_space.
9011 Remove stale comment.
9012
3050c6f4
CB
90132020-01-24 Christian Biesinger <cbiesinger@google.com>
9014
9015 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
9016 (arm_netbsd_nat_target::fetch_registers): ...this.
9017 (arm_nbsd_nat_target::store_registers): Rename to...
9018 (arm_netbsd_nat_target::store_registers): ...this.
9019
73685c7e
CB
90202020-01-24 Christian Biesinger <cbiesinger@google.com>
9021
9022 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
9023 register_t.
9024
89203d40
CB
90252020-01-24 Christian Biesinger <cbiesinger@google.com>
9026
9027 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
9028 Update comment.
9029 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
9030 Likewise.
9031 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
9032 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
9033 the correct replacement (iterate_over_regset_sections).
9034 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
9035 Update comment.
9036
1ba1ac88
AB
90372020-01-24 Graham Markall <graham.markall@embecosm.com>
9038
9039 PR gdb/23718
9040 * gdb/python/python.c (execute_gdb_command): Call
9041 async_enable_stdin in catch block.
9042
f3364a6d
AB
90432020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9044
9045 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
9046 SWITCH_THRU_ALL_UIS.
9047
733d0a67
AB
90482020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9049
9050 PR tui/9765
9051 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
9052 comment, add extra parameter, and update to store previous symbol
9053 when appropriate.
9054 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
9055 add extra parameter.
9056 * tui/tui-disasm.c (tui_disassemble): Update header comment,
9057 remove unneeded parameter, add try/catch around gdb_print_insn,
9058 rewrite to add items to asm_lines vector.
9059 (tui_find_backward_disassembly_start_address): New function.
9060 (tui_find_disassembly_address): Updated throughout.
9061 (tui_disasm_window::set_contents): Update for changes to
9062 tui_disassemble.
9063 (tui_disasm_window::do_scroll_vertical): No need to adjust the
9064 number of lines to scroll.
9065
b3b3bada
SM
90662020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
9067
9068 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
9069 (SECT_OFF_DATA): Likewise.
9070 (SECT_OFF_RODATA): Likewise.
9071 (SECT_OFF_TEXT): Likewise.
9072 (SECT_OFF_BSS): Likewise.
9073 (struct objfile) <text_section_offset, data_section_offset>: New
9074 methods.
9075 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
9076 objfile::text_section_offset.
9077 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
9078 * coffread.c (coff_symtab_read): Likewise.
9079 (enter_linenos): Likewise.
9080 (process_coff_symbol): Likewise.
9081 * ctfread.c (get_objfile_text_range): Likewise.
9082 * dtrace-probe.c (dtrace_probe::get_relocated_address):
9083 Use objfile::data_section_offset.
9084 * dwarf2-frame.c (execute_cfa_program): Use
9085 objfile::text_section_offset.
9086 (dwarf2_frame_find_fde): Likewise.
9087 * dwarf2read.c (create_addrmap_from_index): Likewise.
9088 (create_addrmap_from_aranges): Likewise.
9089 (dw2_find_pc_sect_compunit_symtab): Likewise.
9090 (process_psymtab_comp_unit_reader): Likewise.
9091 (add_partial_symbol): Likewise.
9092 (add_partial_subprogram): Likewise.
9093 (process_full_comp_unit): Likewise.
9094 (read_file_scope): Likewise.
9095 (read_func_scope): Likewise.
9096 (read_lexical_block_scope): Likewise.
9097 (read_call_site_scope): Likewise.
9098 (dwarf2_rnglists_process): Likewise.
9099 (dwarf2_ranges_process): Likewise.
9100 (dwarf2_ranges_read): Likewise.
9101 (dwarf_decode_lines_1): Likewise.
9102 (new_symbol): Likewise.
9103 (dwarf2_fetch_die_loc_sect_off): Likewise.
9104 (dwarf2_per_cu_text_offset): Likewise.
9105 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
9106 * hppa-tdep.c (read_unwind_info): Likewise.
9107 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
9108 * psympriv.h (struct partial_symtab): Likewise.
9109 * psymtab.c (find_pc_sect_psymtab): Likewise.
9110 * solib-svr4.c (enable_break): Likewise.
9111 * stap-probe.c (relocate_address): Use
9112 objfile::data_section_offset.
9113 * xcoffread.c (enter_line_range): Use
9114 objfile::text_section_offset.
9115 (read_xcoff_symtab): Likewise.
9116
ab53f382
SM
91172020-01-23 Simon Marchi <simon.marchi@efficios.com>
9118
9119 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
9120 declaration to narrower scopes.
9121
e7eee665
SM
91222020-01-23 Simon Marchi <simon.marchi@efficios.com>
9123
9124 * darwin-nat.h (struct darwin_exception_msg, enum
9125 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
9126 Move up.
9127 (class darwin_nat_target) <wait_1, check_new_threads,
9128 decode_exception_message, decode_message, stop_inferior,
9129 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
9130 * darwin-nat.c (darwin_check_new_threads): Rename to...
9131 (darwin_nat_target::check_new_threads): ... this.
9132 (darwin_suspend_inferior_it): Remove.
9133 (darwin_decode_exception_message): Rename to...
9134 (darwin_nat_target::decode_exception_message): ... this.
9135 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
9136 (darwin_decode_message): Rename to...
9137 (darwin_nat_target::decode_message): ... this.
9138 (cancel_breakpoint): Rename to...
9139 (darwin_nat_target::cancel_breakpoint): ... this.
9140 (darwin_wait): Rename to...
9141 (darwin_nat_target::wait_1): ... this. Use range-based for loop
9142 instead of iterate_over_inferiors.
9143 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
9144 (darwin_stop_inferior): Rename to...
9145 (darwin_nat_target::stop_inferior): ... this.
9146 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
9147 (darwin_init_thread_list): Rename to...
9148 (darwin_nat_target::init_thread_list): ... this.
9149 (darwin_ptrace_him): Rename to...
9150 (darwin_nat_target::ptrace_him): ... this.
9151 (darwin_nat_target::create_inferior): Pass lambda function to
9152 fork_inferior.
9153 (darwin_nat_target::detach): Call stop_inferior instead of
9154 darwin_stop_inferior.
9155 * fork-inferior.h (fork_inferior): Change init_trace_fun
9156 parameter to gdb::function_view.
9157 * fork-inferior.c (fork_inferior): Likewise.
9158
c162ed3e
HD
91592020-01-23 Hannes Domani <ssbssa@yahoo.de>
9160
9161 * i386-cygwin-tdep.c (core_process_module_section): Update.
9162 * windows-nat.c (struct lm_info_windows): Add text_offset.
9163 (windows_xfer_shared_libraries): Update.
9164 * windows-tdep.c (windows_xfer_shared_library):
9165 Add text_offset_cached argument.
9166 * windows-tdep.h (windows_xfer_shared_library): Update.
9167
a1237872
SM
91682020-01-21 Simon Marchi <simon.marchi@efficios.com>
9169
9170 * gdbarch.sh: Add declaration for _initialize_gdbarch.
9171
b3ee6dd9
SM
91722020-01-21 Simon Marchi <simon.marchi@efficios.com>
9173
9174 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
9175 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
9176 replace with range-based for.
9177 (gdbsim_interrupt_inferior): Remove.
9178 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
9179 with a range-based for. Inline code from
9180 gdbsim_interrupt_inferior.
9181
f9fac3c8
SM
91822020-01-21 Simon Marchi <simon.marchi@efficios.com>
9183
9184 * infrun.c (proceed): Fix indentation.
9185
f6474de9
TT
91862020-01-21 Tom Tromey <tromey@adacore.com>
9187
9188 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
9189 * python/python.c (python_extension_ops): Update.
9190 (gdbpy_colorize): New function.
9191 * python/lib/gdb/__init__.py (colorize): New function.
9192 * extension.h (ext_lang_colorize): Declare.
9193 * extension.c (ext_lang_colorize): New function.
9194 * extension-priv.h (struct extension_language_ops) <colorize>: New
9195 member.
9196 * cli/cli-style.c (_initialize_cli_style): Update help text.
9197
f0c702d4
LM
91982020-01-21 Luis Machado <luis.machado@linaro.org>
9199
9200 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
9201 <cond>: Change type to bool.
9202 (aarch64_displaced_step_b_cond): Update cond to use bool type.
9203 (aarch64_displaced_step_cb): Likewise.
9204 (aarch64_displaced_step_tb): Likewise.
9205
1ab139e5
LM
92062020-01-21 Luis Machado <luis.machado@linaro.org>
9207
9208 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
9209 output.
9210
0c271889
LM
92112020-01-21 Luis Machado <luis.machado@linaro.org>
9212
9213 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
9214 <pc_adjust>: Adjust the documentation.
9215 (aarch64_displaced_step_fixup): Check if PC really moved before
9216 adjusting it.
9217
4d89c1c7
TT
92182020-01-19 Tom Tromey <tom@tromey.com>
9219
9220 * disasm.c (~gdb_disassembler): New destructor.
9221 (gdb_buffered_insn_length): Call disassemble_free_target.
9222 * disasm.h (class gdb_disassembler): Declare destructor. Use
9223 DISABLE_COPY_AND_ASSIGN.
9224
c0ab21c2
TT
92252020-01-19 Tom Tromey <tom@tromey.com>
9226
9227 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
9228 (die_reader_func_ftype): Remove.
9229 (cutu_reader): New class.
9230 (dw2_get_file_names_reader): Remove "data" parameter.
9231 (dw2_get_file_names): Use cutu_reader.
9232 (create_debug_type_hash_table): Update.
9233 (read_cutu_die_from_dwo): Update comment.
9234 (lookup_dwo_unit): Add dwo_name parameter.
9235 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
9236 die_reader_func_ftype and data parameters.
9237 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
9238 Remove die_reader_func_ftype and data parameters.
9239 (~cutu_reader): New; from init_cutu_and_read_dies.
9240 (cutu_reader::cutu_reader): Rename from
9241 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
9242 and data parameters.
9243 (init_cutu_and_read_dies_simple): Remove.
9244 (struct process_psymtab_comp_unit_data): Remove.
9245 (process_psymtab_comp_unit_reader): Remove data parameter; add
9246 want_partial_unit and pretend_language parameters.
9247 (process_psymtab_comp_unit): Use cutu_reader.
9248 (build_type_psymtabs_reader): Remove data parameter.
9249 (build_type_psymtabs_1): Use cutu_reader.
9250 (process_skeletonless_type_unit): Likewise.
9251 (load_partial_comp_unit_reader): Remove.
9252 (load_partial_comp_unit): Use cutu_reader.
9253 (load_full_comp_unit_reader): Remove.
9254 (load_full_comp_unit): Use cutu_reader.
9255 (struct create_dwo_cu_data): Remove.
9256 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
9257 dwo_unit parameters.
9258 (create_cus_hash_table): Use cutu_reader.
9259 (struct dwarf2_read_addr_index_data): Remove.
9260 (dwarf2_read_addr_index_reader): Remove.
9261 (dwarf2_read_addr_index): Use cutu_reader.
9262 (read_signatured_type_reader): Remove.
9263 (read_signatured_type): Use cutu_reader.
9264
45bbae5c
TT
92652020-01-19 Tom Tromey <tom@tromey.com>
9266
9267 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
9268 * tui/tui-wingeneral.h (class tui_suppress_output): New.
9269 (tui_wrefresh): Declare.
9270 * tui/tui-wingeneral.c (suppress_output): New global.
9271 (tui_suppress_output, ~tui_suppress_output): New constructor and
9272 destructor.
9273 (tui_wrefresh): New function.
9274 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
9275 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
9276 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
9277 method.
9278 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
9279 tui_wrefresh.
9280 (tui_data_window::no_refresh): New method.
9281 (tui_data_item_window::refresh_window): Call tui_wrefresh.
9282 (tui_reg_command): Use tui_suppress_output
9283 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
9284 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
9285 method.
9286 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
9287
4f13c1c0
TT
92882020-01-19 Tom Tromey <tom@tromey.com>
9289
9290 * tui/tui-winsource.c (tui_update_source_windows_with_line):
9291 Handle case where symtab is null.
9292
fa47e446
SM
92932020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
9294
9295 * linux-fork.c (one_fork_p): Simplify.
9296
26f42329
SM
92972020-01-17 Simon Marchi <simon.marchi@efficios.com>
9298
9299 * top.c (struct qt_args): Remove.
9300 (kill_or_detach): Change return type to void, replace `void *`
9301 parameter with a proper one.
9302 (print_inferior_quit_action): Likewise.
9303 (quit_confirm): Use range-based for loop to iterate over inferiors.
9304 (quit_force): Likewise.
9305
a9ac81b1
SM
93062020-01-17 Simon Marchi <simon.marchi@efficios.com>
9307
9308 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
9309 `void *` parameter with proper parameters.
9310 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
9311 (print_one_inferior): Change return type to void, replace `void *`
9312 parameter with proper parameters.
9313 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
9314 inferiors.
9315 (get_other_inferior): Remove.
9316 (mi_cmd_remove_inferior): Use range-based loop to iterate over
9317 inferiors.
9318
788eca49
SM
93192020-01-17 Simon Marchi <simon.marchi@efficios.com>
9320
9321 * mi/mi-interp.c (report_initial_inferior): Remove.
9322 (mi_interp::init): Use range-based for to iterate over inferiors.
9323
d9bc85b6
SM
93242020-01-17 Simon Marchi <simon.marchi@efficios.com>
9325
9326 * python/py-inferior.c (build_inferior_list): Remove.
9327 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
9328
40c94099
CB
93292020-01-16 Christian Biesinger <cbiesinger@google.com>
9330
9331 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
9332 (btrace_stitch_trace): Likewise.
9333 * charset.c (intermediate_encoding): Likewise (vaild).
9334 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
9335 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
9336 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
9337
e0cdfe3c
HD
93382020-01-16 Hannes Domani <ssbssa@yahoo.de>
9339
9340 * windows-tdep.c (windows_get_tlb_type):
9341 Add rtl_user_process_parameters type.
9342
790f1718 93432020-01-16 Pedro Alves <palves@redhat.com>
aac66a4c 9344 Norbert Lange <nolange79@gmail.com>
790f1718
PA
9345
9346 PR build/24805
9347 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
9348 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
9349 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
9350 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
9351 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
9352 (ps_plog): Redeclare exported functions with default visibility.
9353
3112ed97
NA
93542020-01-16 Nitika Achra <Nitika.Achra@amd.com>
9355
9356 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
9357 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
9358
8dc3273e
SM
93592020-01-15 Simon Marchi <simon.marchi@efficios.com>
9360
9361 * infcmd.c (post_create_inferior): Use get_thread_regcache
9362 instead of get_current_regcache.
9363
ff47f4f0
TT
93642020-01-14 Tom Tromey <tom@tromey.com>
9365
9366 PR symtab/12535:
9367 * python/python.c (gdbpy_decode_line): Treat empty string the same
9368 as no argument.
9369
975f45b7
TT
93702020-01-14 Tom Tromey <tom@tromey.com>
9371
9372 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
9373
25e57356
TT
93742020-01-14 Tom Tromey <tom@tromey.com>
9375
9376 * nat/linux-btrace.c: Don't include <config.h>.
9377 * nat/linux-ptrace.c: Don't include <config.h>.
9378 * nat/x86-linux-dregs.c: Don't include <config.h>.
9379
05ea2a05
TT
93802020-01-14 Tom Tromey <tom@tromey.com>
9381
9382 * configure: Rebuild.
9383 * configure.ac: Move many checks to ../gdbsupport/common.m4.
9384
01027315
TT
93852020-01-14 Tom Tromey <tom@tromey.com>
9386
9387 * nat/x86-linux-dregs.c: Include configh.h.
9388 * nat/linux-ptrace.c: Include configh.h.
9389 * nat/linux-btrace.c: Include configh.h.
9390 * defs.h: Include config.h, bfd.h.
9391 * configure.ac: Don't source common.host.
9392 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
9393 * configure: Rebuild.
9394 * acinclude.m4: Update path.
9395 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
9396 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
9397 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
9398 (CLIBS): Add LIBSUPPORT.
9399 (CDEPS): Likewise.
9400 (COMMON_SFILES): Remove gdbsupport files.
9401 (HFILES_NO_SRCDIR): Likewise.
9402 (stamp-version): Update path to create-version.sh.
9403 (ALLDEPFILES): Remove gdbsupport files.
9404
b2ceabe8
TT
94052020-01-14 Tom Tromey <tom@tromey.com>
9406
9407 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
9408 USE_WIN32API when needed.
9409 * configure.ac (USE_WIN32API): Don't define.
9410 (WIN32LIBS): Use WIN32APILIBS.
9411 * configure: Rebuild.
9412
25c51f71
TT
94132020-01-14 Tom Tromey <tom@tromey.com>
9414
9415 * configure: Rebuild.
9416 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
9417
717c684d
BE
94182020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
9419
9420 * skip.c (skip_function_command): Make skip w/o arguments use the
9421 name of the inlined function if pc is inside any inlined function.
9422
7da6a5b9
LM
94232020-01-14 Luis Machado <luis.machado@linaro.org>
9424
9425 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
9426 * infrun.c (resume_1): Likewise.
9427 (handle_inferior_event): Remove stale comment.
9428 * linux-nat.c (linux_nat_target::resume): Update comments.
9429 (save_stop_reason): Likewise.
9430 (linux_nat_filter_event): Likewise.
9431 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
9432
44e4c775
AB
94332020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
9434
9435 * elfread.c (record_minimal_symbol): Set section index to 0 for
9436 non-allocatable sections.
9437
18a8505e
AT
9438
94392020-01-13 Ali Tamur <tamur@google.com>
9440
9441 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
9442 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
9443 to gdb::optional. Update comments.
9444 (dwo_file): Update comments.
9445 (read_attribute): Update API to take an additional out parameter,
9446 need_reprocess. This is used to mark attributes that need other
9447 attributes (e.g. str_offsets_base) for correct computation which may not
9448 have been read yet.
9449 (read_attribute_reprocess): New function declaration.
9450 (read_addr_index): Likewise.
9451 (read_dwo_str_index): Likewise.
9452 (read_stub_str_index): Likewise.
9453 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
9454 (lookup_addr_base): New function definition.
9455 (lookup_ranges_base): Likewise.
9456 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
9457 lookup_ranges_base.
9458 (init_cutu_and_read_dies): Update comments.
9459 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
9460 unit. This is used to inherit parent's str_offsets_base and addr_base.
9461 Update comments.
9462 (init_cutu_and_read_dies_simple): Reflect API changes.
9463 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
9464 (create_cus_hash_table): Change API to take parent compile unit.
9465 Reflect API changes.
9466 (open_and_init_dwo_file): Reflect API changes.
9467 (dwarf2_get_pc_bounds): Update comments.
9468 (dwarf2_record_block_ranges): Likewise.
9469 (read_full_die_1): Change implementation to reprocess attributes that
9470 need str_offsets_base and addr_base.
9471 (partial_die_info::read): Likewise.
9472 (read_attribute_reprocess): New function definition.
9473 (read_attribute_value): Change API to take an additional out parameter,
9474 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
9475 when a non-dwo compile unit has index based attributes.
9476 (read_attribute): Reflect API changes.
9477 (read_addr_index_1): Reflect API changes. Update comments.
9478 (dwarf2_read_addr_index_data): Reflect API changes.
9479 (dwarf2_read_addr_index): Likewise.
9480 (read_str_index): Change API and implementation. This becomes a helper
9481 to be used by the new string index related methods. Update error
9482 message and comments.
9483 (read_dwo_str_index): New function definition.
9484 (read_stub_str_index): Likewise.
9485 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
9486 * symfile.h (dwarf2_debug_sections): Likewise.
9487 * xcoffread.c (dwarf2_debug_sections): Likewise.
9488
0cac9354
SM
94892020-01-13 Simon Marchi <simon.marchi@efficios.com>
9490
9491 * gdbcore.h (struct core_fns) <core_read_registers>: Change
9492 core_reg_sect type to gdb_byte *.
9493 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
9494 * cris-tdep.c (fetch_core_registers): Likewise.
9495 * corelow.c (core_target::get_core_register_section): Change
9496 type of `contents` to gdb::byte_vector.
9497
9a6d629c
AB
94982020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
9499
9500 * tui/tui-wingeneral.c (box_win): Position the title in the center
9501 of the border.
9502
d8b2f9e3
SM
95032020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
9504
9505 * corelow.c (core_target::get_core_register_section): Use
9506 std::vector instead of alloca.
9507
bb564c58
SM
95082020-01-13 Simon Marchi <simon.marchi@efficios.com>
9509
9510 * warning.m4: Add -Wmissing-declarations to build_warnings.
9511 * configure: Re-generate.
9512
6b366111
SM
95132020-01-13 Simon Marchi <simon.marchi@efficios.com>
9514
9515 * python/python.c (init__gdb_module): Add declaration.
9516
6c265988
SM
95172020-01-13 Simon Marchi <simon.marchi@efficios.com>
9518
9519 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
9520 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
9521 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
9522 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
9523 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
9524 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
9525 * ada-exp.y (_initialize_ada_exp): Add declaration.
9526 * ada-lang.c (_initialize_ada_language): Add declaration.
9527 * ada-tasks.c (_initialize_tasks): Add declaration.
9528 * agent.c (_initialize_agent): Add declaration.
9529 * aix-thread.c (_initialize_aix_thread): Add declaration.
9530 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
9531 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
9532 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
9533 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
9534 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
9535 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
9536 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
9537 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
9538 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
9539 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
9540 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
9541 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
9542 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
9543 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
9544 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
9545 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
9546 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
9547 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
9548 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
9549 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
9550 * annotate.c (_initialize_annotate): Add declaration.
9551 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
9552 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
9553 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
9554 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
9555 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
9556 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
9557 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
9558 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
9559 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
9560 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
9561 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
9562 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
9563 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
9564 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
9565 * auto-load.c (_initialize_auto_load): Add declaration.
9566 * auxv.c (_initialize_auxv): Add declaration.
9567 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
9568 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
9569 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
9570 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
9571 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
9572 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
9573 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
9574 * breakpoint.c (_initialize_breakpoint): Add declaration.
9575 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
9576 * btrace.c (_initialize_btrace): Add declaration.
9577 * charset.c (_initialize_charset): Add declaration.
9578 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
9579 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
9580 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
9581 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
9582 * cli/cli-script.c (_initialize_cli_script): Add declaration.
9583 * cli/cli-style.c (_initialize_cli_style): Add declaration.
9584 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
9585 * coffread.c (_initialize_coffread): Add declaration.
9586 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
9587 * compile/compile.c (_initialize_compile): Add declaration.
9588 * complaints.c (_initialize_complaints): Add declaration.
9589 * completer.c (_initialize_completer): Add declaration.
9590 * copying.c (_initialize_copying): Add declaration.
9591 * corefile.c (_initialize_core): Add declaration.
9592 * corelow.c (_initialize_corelow): Add declaration.
9593 * cp-abi.c (_initialize_cp_abi): Add declaration.
9594 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
9595 * cp-support.c (_initialize_cp_support): Add declaration.
9596 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
9597 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
9598 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
9599 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
9600 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
9601 * ctfread.c (_initialize_ctfread): Add declaration.
9602 * d-lang.c (_initialize_d_language): Add declaration.
9603 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
9604 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
9605 * dbxread.c (_initialize_dbxread): Add declaration.
9606 * dcache.c (_initialize_dcache): Add declaration.
9607 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
9608 * disasm.c (_initialize_disasm): Add declaration.
9609 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
9610 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
9611 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
9612 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
9613 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
9614 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
9615 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
9616 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
9617 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
9618 * elfread.c (_initialize_elfread): Add declaration.
9619 * exec.c (_initialize_exec): Add declaration.
9620 * extension.c (_initialize_extension): Add declaration.
9621 * f-lang.c (_initialize_f_language): Add declaration.
9622 * f-valprint.c (_initialize_f_valprint): Add declaration.
9623 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
9624 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
9625 * filesystem.c (_initialize_filesystem): Add declaration.
9626 * findcmd.c (_initialize_mem_search): Add declaration.
9627 * findvar.c (_initialize_findvar): Add declaration.
9628 * fork-child.c (_initialize_fork_child): Add declaration.
9629 * frame-base.c (_initialize_frame_base): Add declaration.
9630 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
9631 * frame.c (_initialize_frame): Add declaration.
9632 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
9633 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
9634 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
9635 * gcore.c (_initialize_gcore): Add declaration.
9636 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
9637 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
9638 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
9639 * gdbarch.c (_initialize_gdbarch): Add declaration.
9640 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
9641 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
9642 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
9643 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
9644 * go-lang.c (_initialize_go_language): Add declaration.
9645 * go32-nat.c (_initialize_go32_nat): Add declaration.
9646 * guile/guile.c (_initialize_guile): Add declaration.
9647 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
9648 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
9649 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
9650 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
9651 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
9652 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
9653 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
9654 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
9655 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
9656 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
9657 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
9658 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
9659 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
9660 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
9661 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
9662 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
9663 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
9664 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
9665 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
9666 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
9667 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
9668 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
9669 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
9670 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
9671 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
9672 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
9673 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
9674 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
9675 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
9676 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
9677 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
9678 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
9679 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
9680 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
9681 * infcall.c (_initialize_infcall): Add declaration.
9682 * infcmd.c (_initialize_infcmd): Add declaration.
9683 * inflow.c (_initialize_inflow): Add declaration.
9684 * infrun.c (_initialize_infrun): Add declaration.
9685 * interps.c (_initialize_interpreter): Add declaration.
9686 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
9687 * jit.c (_initialize_jit): Add declaration.
9688 * language.c (_initialize_language): Add declaration.
9689 * linux-fork.c (_initialize_linux_fork): Add declaration.
9690 * linux-nat.c (_initialize_linux_nat): Add declaration.
9691 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
9692 * linux-thread-db.c (_initialize_thread_db): Add declaration.
9693 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
9694 * m2-lang.c (_initialize_m2_language): Add declaration.
9695 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
9696 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
9697 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
9698 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
9699 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
9700 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
9701 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
9702 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
9703 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
9704 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
9705 * machoread.c (_initialize_machoread): Add declaration.
9706 * macrocmd.c (_initialize_macrocmd): Add declaration.
9707 * macroscope.c (_initialize_macroscope): Add declaration.
9708 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
9709 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
9710 * maint.c (_initialize_maint_cmds): Add declaration.
9711 * mdebugread.c (_initialize_mdebugread): Add declaration.
9712 * memattr.c (_initialize_mem): Add declaration.
9713 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
9714 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
9715 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
9716 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
9717 * mi/mi-main.c (_initialize_mi_main): Add declaration.
9718 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
9719 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
9720 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
9721 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
9722 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
9723 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
9724 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
9725 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
9726 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
9727 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
9728 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
9729 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
9730 * mipsread.c (_initialize_mipsread): Add declaration.
9731 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
9732 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
9733 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
9734 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
9735 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
9736 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
9737 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
9738 * nto-procfs.c (_initialize_procfs): Add declaration.
9739 * objc-lang.c (_initialize_objc_language): Add declaration.
9740 * observable.c (_initialize_observer): Add declaration.
9741 * opencl-lang.c (_initialize_opencl_language): Add declaration.
9742 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
9743 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
9744 * osabi.c (_initialize_gdb_osabi): Add declaration.
9745 * osdata.c (_initialize_osdata): Add declaration.
9746 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
9747 * parse.c (_initialize_parse): Add declaration.
9748 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
9749 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
9750 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
9751 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
9752 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
9753 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
9754 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
9755 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
9756 * printcmd.c (_initialize_printcmd): Add declaration.
9757 * probe.c (_initialize_probe): Add declaration.
9758 * proc-api.c (_initialize_proc_api): Add declaration.
9759 * proc-events.c (_initialize_proc_events): Add declaration.
9760 * proc-service.c (_initialize_proc_service): Add declaration.
9761 * procfs.c (_initialize_procfs): Add declaration.
9762 * producer.c (_initialize_producer): Add declaration.
9763 * psymtab.c (_initialize_psymtab): Add declaration.
9764 * python/python.c (_initialize_python): Add declaration.
9765 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
9766 * record-btrace.c (_initialize_record_btrace): Add declaration.
9767 * record-full.c (_initialize_record_full): Add declaration.
9768 * record.c (_initialize_record): Add declaration.
9769 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
9770 * regcache.c (_initialize_regcache): Add declaration.
9771 * reggroups.c (_initialize_reggroup): Add declaration.
9772 * remote-notif.c (_initialize_notif): Add declaration.
9773 * remote-sim.c (_initialize_remote_sim): Add declaration.
9774 * remote.c (_initialize_remote): Add declaration.
9775 * reverse.c (_initialize_reverse): Add declaration.
9776 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
9777 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
9778 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
9779 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
9780 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
9781 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
9782 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
9783 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
9784 Add declaration.
9785 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
9786 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
9787 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
9788 * rust-exp.y (_initialize_rust_exp): Add declaration.
9789 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
9790 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
9791 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
9792 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
9793 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
9794 * score-tdep.c (_initialize_score_tdep): Add declaration.
9795 * ser-go32.c (_initialize_ser_dos): Add declaration.
9796 * ser-mingw.c (_initialize_ser_windows): Add declaration.
9797 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
9798 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
9799 * ser-uds.c (_initialize_ser_socket): Add declaration.
9800 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
9801 * serial.c (_initialize_serial): Add declaration.
9802 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
9803 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
9804 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
9805 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
9806 * skip.c (_initialize_step_skip): Add declaration.
9807 * sol-thread.c (_initialize_sol_thread): Add declaration.
9808 * solib-aix.c (_initialize_solib_aix): Add declaration.
9809 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
9810 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
9811 * solib-frv.c (_initialize_frv_solib): Add declaration.
9812 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
9813 * solib-target.c (_initialize_solib_target): Add declaration.
9814 * solib.c (_initialize_solib): Add declaration.
9815 * source-cache.c (_initialize_source_cache): Add declaration.
9816 * source.c (_initialize_source): Add declaration.
9817 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
9818 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
9819 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
9820 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
9821 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
9822 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
9823 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
9824 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
9825 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
9826 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
9827 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
9828 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
9829 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
9830 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
9831 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
9832 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
9833 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
9834 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
9835 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
9836 * stabsread.c (_initialize_stabsread): Add declaration.
9837 * stack.c (_initialize_stack): Add declaration.
9838 * stap-probe.c (_initialize_stap_probe): Add declaration.
9839 * std-regs.c (_initialize_frame_reg): Add declaration.
9840 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
9841 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
9842 * symfile.c (_initialize_symfile): Add declaration.
9843 * symmisc.c (_initialize_symmisc): Add declaration.
9844 * symtab.c (_initialize_symtab): Add declaration.
9845 * target.c (_initialize_target): Add declaration.
9846 * target-connection.c (_initialize_target_connection): Add
9847 declaration.
9848 * target-dcache.c (_initialize_target_dcache): Add declaration.
9849 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
9850 * thread.c (_initialize_thread): Add declaration.
9851 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
9852 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
9853 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
9854 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
9855 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
9856 * tracectf.c (_initialize_ctf): Add declaration.
9857 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
9858 * tracefile.c (_initialize_tracefile): Add declaration.
9859 * tracepoint.c (_initialize_tracepoint): Add declaration.
9860 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
9861 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
9862 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
9863 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
9864 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
9865 * tui/tui-win.c (_initialize_tui_win): Add declaration.
9866 * tui/tui.c (_initialize_tui): Add declaration.
9867 * typeprint.c (_initialize_typeprint): Add declaration.
9868 * ui-style.c (_initialize_ui_style): Add declaration.
9869 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
9870 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
9871 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
9872 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
9873 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
9874 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
9875 * unittests/filtered_iterator-selftests.c
9876 (_initialize_filtered_iterator_selftests): Add declaration.
9877 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
9878 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
9879 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
9880 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
9881 * unittests/main-thread-selftests.c
9882 (_initialize_main_thread_selftests): Add declaration.
9883 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
9884 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
9885 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
9886 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
9887 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
9888 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
9889 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
9890 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
9891 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
9892 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
9893 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
9894 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
9895 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
9896 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
9897 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
9898 declaration.
9899 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
9900 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
9901 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
9902 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
9903 * user-regs.c (_initialize_user_regs): Add declaration.
9904 * utils.c (_initialize_utils): Add declaration.
9905 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
9906 * valops.c (_initialize_valops): Add declaration.
9907 * valprint.c (_initialize_valprint): Add declaration.
9908 * value.c (_initialize_values): Add declaration.
9909 * varobj.c (_initialize_varobj): Add declaration.
9910 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
9911 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
9912 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
9913 * windows-nat.c (_initialize_windows_nat): Add declaration.
9914 (_initialize_check_for_gdb_ini): Add declaration.
9915 (_initialize_loadable): Add declaration.
9916 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
9917 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
9918 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
9919 * xcoffread.c (_initialize_xcoffread): Add declaration.
9920 * xml-support.c (_initialize_xml_support): Add declaration.
9921 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
9922 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
9923 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
9924 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
9925
e2de1eec
SM
99262020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
9927
9928 * regformats/regdat.sh: Generate declaration for init function.
9929
e0037b4c
SM
99302020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
9931
9932 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
9933 up.
9934 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
9935 close_one_inferior>: New methods.
9936 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
9937 pass down target to find_inferior_pid.
9938 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
9939 Pass down target to find_inferior_ptid.
9940 (gdbsim_target::create_inferior): Pass down target to
9941 add_thread_silent.
9942 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
9943 target down to find_inferior_ptid and switch_to_thread.
9944 (gdbsim_target::close): Update to call close_one_inferior.
9945 (struct resume_data): Remove.
9946 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
9947 directly, rather than through a void pointer.
9948 (gdbsim_target::resume): Update to call resume_one_inferior.
9949
58920b5b
SM
99502020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
9951
9952 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
9953
4ec89149
PA
99542020-01-12 Pedro Alves <palves@redhat.com>
9955
9956 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
9957 directly for the current inferior instead of
9958 discard_all_inferiors.
9959 (discard_all_inferiors): Delete.
9960
7c392d1d
TT
99612020-01-11 Tom Tromey <tom@tromey.com>
9962
9963 * tui/tui-wingeneral.c (box_win): Check cli_styling.
9964 * tui/tui-winsource.c (tui_source_window_base::refill): Use
9965 deprecated_safe_get_selected_frame.
9966
d9ebdab7
TBA
99672020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9968
9969 * inferior.c (print_inferior): Switch inferior before printing it.
9970
f3c469b9
PA
99712020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
9972 Pedro Alves <palves@redhat.com>
9973
9974 * progspace-and-thread.c (switch_to_program_space_and_thread):
9975 Assert there's an inferior for PSPACE. Use
9976 switch_to_inferior_no_thread to switch the inferior too.
9977 * progspace.c (program_space::~program_space): Call
9978 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
9979 (program_space::free_all_objfiles): Don't call clear_symtab_users
9980 here.
9981 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
9982
65c574f6
PA
99832020-01-10 Pedro Alves <palves@redhat.com>
9984
9985 * NEWS: Mention multi-target debugging, "info connections", and
9986 "add-inferior -no-connection".
9987
2f4fcf00
PA
99882020-01-10 Pedro Alves <palves@redhat.com>
9989
9990 * infrun.c: Include "target-connection.h".
9991 (check_multi_target_resumption): New.
9992 (proceed): Call it.
9993 * target-connection.c (make_target_connection_string): Make
9994 extern.
9995 * target-connection.h (make_target_connection_string): Declare.
9996
121b3efd
PA
99972020-01-10 Pedro Alves <palves@redhat.com>
9998
9999 * Makefile.in (COMMON_SFILES): Add target-connection.c.
10000 * inferior.c (uiout_field_connection): New function.
10001 (print_inferior): Add new "connection-id" column.
10002 (add_inferior_command): Show connection number/string of added
10003 inferior.
10004 * process-stratum-target.h
10005 (process_stratum_target::connection_string): New virtual method.
10006 (process_stratum_target::connection_number): New field.
10007 * remote.c (remote_target::connection_string): New override.
10008 * target-connection.c: New file.
10009 * target-connection.h: New file.
10010 * target.c (decref_target): Remove process_stratum targets from
10011 the connection list.
10012 (target_stack::push): Add process_stratum targets to the
10013 connection list.
10014
4f837581
PA
100152020-01-10 Pedro Alves <palves@redhat.com>
10016
10017 Revert:
10018 2016-04-12 Pedro Alves <palves@redhat.com>
10019 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
10020 Remove references to name.
10021 * serial.h (struct serial) <name>: Delete.
10022
f4ec508e
PA
100232020-01-10 Pedro Alves <palves@redhat.com>
10024
10025 * gdbarch-selftests.c (register_to_value_test): Remove "target
10026 already pushed" check.
10027
5b6d1e4f
PA
100282020-01-10 Pedro Alves <palves@redhat.com>
10029 John Baldwin <jhb@FreeBSD.org>
10030
10031 * aarch64-linux-nat.c
10032 (aarch64_linux_nat_target::thread_architecture): Adjust.
10033 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
10034 (task_command_1): Likewise.
10035 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
10036 (aix_thread_target::wait, aix_thread_target::fetch_registers)
10037 (aix_thread_target::store_registers)
10038 (aix_thread_target::thread_alive): Adjust.
10039 * amd64-fbsd-tdep.c: Include "inferior.h".
10040 (amd64fbsd_get_thread_local_address): Pass down target.
10041 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
10042 thread's gdbarch instead of target_gdbarch.
10043 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
10044 get_last_target_status.
10045 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
10046 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
10047 inferiors.
10048 (update_inserted_breakpoint_locations): Skip if inferiors with no
10049 execution.
10050 (update_global_location_list): When handling moribund locations,
10051 find representative inferior for location's pspace, and use thread
10052 count of its process_stratum target.
10053 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
10054 * bsd-uthread.c (bsd_uthread_target::wait): Use
10055 as_process_stratum_target and adjust thread_change_ptid and
10056 add_thread calls.
10057 (bsd_uthread_target::update_thread_list): Use
10058 as_process_stratum_target and adjust find_thread_ptid,
10059 thread_change_ptid and add_thread calls.
10060 * btrace.c (maint_btrace_packet_history_cmd): Adjust
10061 find_thread_ptid call.
10062 * corelow.c (add_to_thread_list): Adjust add_thread call.
10063 (core_target_open): Adjust add_thread_silent and thread_count
10064 calls.
10065 (core_target::pid_to_str): Adjust find_inferior_ptid call.
10066 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
10067 * event-top.c (async_disconnect): Pop targets from all inferiors.
10068 * exec.c (add_target_sections): Push exec target on all inferiors
10069 sharing the program space.
10070 (remove_target_sections): Remove the exec target from all
10071 inferiors sharing the program space.
10072 (exec_on_vfork): New.
10073 * exec.h (exec_on_vfork): Declare.
10074 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
10075 Pass it down.
10076 (fbsd_nat_target::update_thread_list): Adjust.
10077 (fbsd_nat_target::resume): Adjust.
10078 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
10079 down.
10080 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
10081 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
10082 get_thread_arch_regcache call.
10083 * fork-child.c (gdb_startup_inferior): Pass target down to
10084 startup_inferior and set_executing.
10085 * gdbthread.h (struct process_stratum_target): Forward declare.
10086 (add_thread, add_thread_silent, add_thread_with_info)
10087 (in_thread_list): Add process_stratum_target parameter.
10088 (find_thread_ptid(inferior*, ptid_t)): New overload.
10089 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
10090 parameter.
10091 (all_threads()): Delete overload.
10092 (all_threads, all_non_exited_threads): Add process_stratum_target
10093 parameter.
10094 (all_threads_safe): Use brace initialization.
10095 (thread_count): Add process_stratum_target parameter.
10096 (set_resumed, set_running, set_stop_requested, set_executing)
10097 (threads_are_executing, finish_thread_state): Add
10098 process_stratum_target parameter.
10099 (switch_to_thread): Use is_current_thread.
10100 * i386-fbsd-tdep.c: Include "inferior.h".
10101 (i386fbsd_get_thread_local_address): Pass down target.
10102 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
10103 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
10104 have_inferiors check.
10105 * inf-ptrace.c (inf_ptrace_target::create_inferior)
10106 (inf_ptrace_target::attach): Adjust.
10107 * infcall.c (run_inferior_call): Adjust.
10108 * infcmd.c (run_command_1): Pass target to
10109 scoped_finish_thread_state.
10110 (proceed_thread_callback): Skip inferiors with no execution.
10111 (continue_command): Rename 'all_threads' local to avoid hiding
10112 'all_threads' function. Adjust get_last_target_status call.
10113 (prepare_one_step): Adjust set_running call.
10114 (signal_command): Use user_visible_resume_target. Compare thread
10115 pointers instead of inferior_ptid.
10116 (info_program_command): Adjust to pass down target.
10117 (attach_command): Mark target's 'thread_executing' flag.
10118 (stop_current_target_threads_ns): New, factored out from ...
10119 (interrupt_target_1): ... this. Switch inferior before making
10120 target calls.
10121 * inferior-iter.h
10122 (struct all_inferiors_iterator, struct all_inferiors_range)
10123 (struct all_inferiors_safe_range)
10124 (struct all_non_exited_inferiors_range): Filter on
10125 process_stratum_target too. Remove explicit.
10126 * inferior.c (inferior::inferior): Push dummy target on target
10127 stack.
10128 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
10129 Add process_stratum_target parameter, and pass it down.
10130 (have_live_inferiors): Adjust.
10131 (switch_to_inferior_and_push_target): New.
10132 (add_inferior_command, clone_inferior_command): Handle
10133 "-no-connection" parameter. Use
10134 switch_to_inferior_and_push_target.
10135 (_initialize_inferior): Mention "-no-connection" option in
10136 the help of "add-inferior" and "clone-inferior" commands.
10137 * inferior.h: Include "process-stratum-target.h".
10138 (interrupt_target_1): Use bool.
10139 (struct inferior) <push_target, unpush_target, target_is_pushed,
10140 find_target_beneath, top_target, process_target, target_at,
10141 m_stack>: New.
10142 (discard_all_inferiors): Delete.
10143 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
10144 (all_inferiors, all_non_exited_inferiors): Add
10145 process_stratum_target parameter.
10146 * infrun.c: Include "gdb_select.h" and <unordered_map>.
10147 (target_last_proc_target): New global.
10148 (follow_fork_inferior): Push target on new inferior. Pass target
10149 to add_thread_silent. Call exec_on_vfork. Handle target's
10150 reference count.
10151 (follow_fork): Adjust get_last_target_status call. Also consider
10152 target.
10153 (follow_exec): Push target on new inferior.
10154 (struct execution_control_state) <target>: New field.
10155 (user_visible_resume_target): New.
10156 (do_target_resume): Call target_async.
10157 (resume_1): Set target's threads_executing flag. Consider resume
10158 target.
10159 (commit_resume_all_targets): New.
10160 (proceed): Also consider resume target. Skip threads of inferiors
10161 with no execution. Commit resumtion in all targets.
10162 (start_remote): Pass current inferior to wait_for_inferior.
10163 (infrun_thread_stop_requested): Consider target as well. Pass
10164 thread_info pointer to clear_inline_frame_state instead of ptid.
10165 (infrun_thread_thread_exit): Consider target as well.
10166 (random_pending_event_thread): New inferior parameter. Use it.
10167 (do_target_wait): Rename to ...
10168 (do_target_wait_1): ... this. Add inferior parameter, and pass it
10169 down.
10170 (threads_are_resumed_pending_p, do_target_wait): New.
10171 (prepare_for_detach): Adjust calls.
10172 (wait_for_inferior): New inferior parameter. Handle it. Use
10173 do_target_wait_1 instead of do_target_wait.
10174 (fetch_inferior_event): Adjust. Switch to representative
10175 inferior. Pass target down.
10176 (set_last_target_status): Add process_stratum_target parameter.
10177 Save target in global.
10178 (get_last_target_status): Add process_stratum_target parameter and
10179 handle it.
10180 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
10181 (context_switch): Check inferior_ptid == null_ptid before calling
10182 inferior_thread().
10183 (get_inferior_stop_soon): Pass down target.
10184 (wait_one): Rename to ...
10185 (poll_one_curr_target): ... this.
10186 (struct wait_one_event): New.
10187 (wait_one): New.
10188 (stop_all_threads): Adjust.
10189 (handle_no_resumed, handle_inferior_event): Adjust to consider the
10190 event's target.
10191 (switch_back_to_stepped_thread): Also consider target.
10192 (print_stop_event): Update.
10193 (normal_stop): Update. Also consider the resume target.
10194 * infrun.h (wait_for_inferior): Remove declaration.
10195 (user_visible_resume_target): New declaration.
10196 (get_last_target_status, set_last_target_status): New
10197 process_stratum_target parameter.
10198 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
10199 process_stratum_target parameter, and use it.
10200 (clear_inline_frame_state (thread_info*)): New.
10201 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
10202 process_stratum_target parameter.
10203 (clear_inline_frame_state (thread_info*)): Declare.
10204 * linux-fork.c (delete_checkpoint_command): Pass target down to
10205 find_thread_ptid.
10206 (checkpoint_command): Adjust.
10207 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
10208 instead of just tweaking inferior_ptid.
10209 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
10210 (exit_lwp): Pass target down to find_thread_ptid.
10211 (attach_proc_task_lwp_callback): Pass target down to
10212 add_thread/set_running/set_executing.
10213 (linux_nat_target::attach): Pass target down to
10214 thread_change_ptid.
10215 (get_detach_signal): Pass target down to find_thread_ptid.
10216 Consider last target status's target.
10217 (linux_resume_one_lwp_throw, resume_lwp)
10218 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
10219 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
10220 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
10221 (linux_nat_target::async_wait_fd): New.
10222 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
10223 target down.
10224 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
10225 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
10226 * linux-thread-db.c (struct thread_db_info::process_target): New
10227 field.
10228 (add_thread_db_info): Save target.
10229 (get_thread_db_info): New process_stratum_target parameter. Also
10230 match target.
10231 (delete_thread_db_info): New process_stratum_target parameter.
10232 Also match target.
10233 (thread_from_lwp): Adjust to pass down target.
10234 (thread_db_notice_clone): Pass down target.
10235 (check_thread_db_callback): Pass down target.
10236 (try_thread_db_load_1): Always push the thread_db target.
10237 (try_thread_db_load, record_thread): Pass target down.
10238 (thread_db_target::detach): Pass target down. Always unpush the
10239 thread_db target.
10240 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
10241 target down. Always unpush the thread_db target.
10242 (find_new_threads_callback, thread_db_find_new_threads_2)
10243 (thread_db_target::update_thread_list): Pass target down.
10244 (thread_db_target::pid_to_str): Pass current inferior down.
10245 (thread_db_target::get_thread_local_address): Pass target down.
10246 (thread_db_target::resume, maintenance_check_libthread_db): Pass
10247 target down.
10248 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
10249 * procfs.c (procfs_target::procfs_init_inferior): Declare.
10250 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
10251 (procfs_init_inferior): Rename to ...
10252 (procfs_target::procfs_init_inferior): ... this and adjust.
10253 (procfs_target::create_inferior, procfs_notice_thread)
10254 (procfs_do_thread_registers): Adjust.
10255 * ppc-fbsd-tdep.c: Include "inferior.h".
10256 (ppcfbsd_get_thread_local_address): Pass down target.
10257 * proc-service.c (ps_xfer_memory): Switch current inferior and
10258 program space as well.
10259 (get_ps_regcache): Pass target down.
10260 * process-stratum-target.c
10261 (process_stratum_target::thread_address_space)
10262 (process_stratum_target::thread_architecture): Pass target down.
10263 * process-stratum-target.h
10264 (process_stratum_target::threads_executing): New field.
10265 (as_process_stratum_target): New.
10266 * ravenscar-thread.c
10267 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
10268 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
10269 down.
10270 * record-btrace.c (record_btrace_target::info_record): Adjust.
10271 (record_btrace_target::record_method)
10272 (record_btrace_target::record_is_replaying)
10273 (record_btrace_target::fetch_registers)
10274 (get_thread_current_frame_id, record_btrace_target::resume)
10275 (record_btrace_target::wait, record_btrace_target::stop): Pass
10276 target down.
10277 * record-full.c (record_full_wait_1): Switch to event thread.
10278 Pass target down.
10279 * regcache.c (regcache::regcache)
10280 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
10281 process_stratum_target parameter and handle it.
10282 (current_thread_target): New global.
10283 (get_thread_regcache): Add process_stratum_target parameter and
10284 handle it. Switch inferior before calling target method.
10285 (get_thread_regcache): Pass target down.
10286 (get_thread_regcache_for_ptid): Pass target down.
10287 (registers_changed_ptid): Add process_stratum_target parameter and
10288 handle it.
10289 (registers_changed_thread, registers_changed): Pass target down.
10290 (test_get_thread_arch_aspace_regcache): New.
10291 (current_regcache_test): Define a couple local test_target_ops
10292 instances and use them for testing.
10293 (readwrite_regcache): Pass process_stratum_target parameter.
10294 (cooked_read_test, cooked_write_test): Pass mock_target down.
10295 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
10296 (get_thread_arch_aspace_regcache): Add process_stratum_target
10297 parameter.
10298 (regcache::target): New method.
10299 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
10300 (regcache::registers_changed_ptid): Add process_stratum_target
10301 parameter.
10302 (regcache::m_target): New field.
10303 (registers_changed_ptid): Add process_stratum_target parameter.
10304 * remote.c (remote_state::supports_vCont_probed): New field.
10305 (remote_target::async_wait_fd): New method.
10306 (remote_unpush_and_throw): Add remote_target parameter.
10307 (get_current_remote_target): Adjust.
10308 (remote_target::remote_add_inferior): Push target.
10309 (remote_target::remote_add_thread)
10310 (remote_target::remote_notice_new_inferior)
10311 (get_remote_thread_info): Pass target down.
10312 (remote_target::update_thread_list): Skip threads of inferiors
10313 bound to other targets. (remote_target::close): Don't discard
10314 inferiors. (remote_target::add_current_inferior_and_thread)
10315 (remote_target::process_initial_stop_replies)
10316 (remote_target::start_remote)
10317 (remote_target::remote_serial_quit_handler): Pass down target.
10318 (remote_target::remote_unpush_target): New remote_target
10319 parameter. Unpush the target from all inferiors.
10320 (remote_target::remote_unpush_and_throw): New remote_target
10321 parameter. Pass it down.
10322 (remote_target::open_1): Check whether the current inferior has
10323 execution instead of checking whether any inferior is live. Pass
10324 target down.
10325 (remote_target::remote_detach_1): Pass down target. Use
10326 remote_unpush_target.
10327 (extended_remote_target::attach): Pass down target.
10328 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
10329 (remote_target::append_resumption): Pass down target.
10330 (remote_target::append_pending_thread_resumptions)
10331 (remote_target::remote_resume_with_hc, remote_target::resume)
10332 (remote_target::commit_resume): Pass down target.
10333 (remote_target::remote_stop_ns): Check supports_vCont_probed.
10334 (remote_target::interrupt_query)
10335 (remote_target::remove_new_fork_children)
10336 (remote_target::check_pending_events_prevent_wildcard_vcont)
10337 (remote_target::remote_parse_stop_reply)
10338 (remote_target::process_stop_reply): Pass down target.
10339 (first_remote_resumed_thread): New remote_target parameter. Pass
10340 it down.
10341 (remote_target::wait_as): Pass down target.
10342 (unpush_and_perror): New remote_target parameter. Pass it down.
10343 (remote_target::readchar, remote_target::remote_serial_write)
10344 (remote_target::getpkt_or_notif_sane_1)
10345 (remote_target::kill_new_fork_children, remote_target::kill): Pass
10346 down target.
10347 (remote_target::mourn_inferior): Pass down target. Use
10348 remote_unpush_target.
10349 (remote_target::core_of_thread)
10350 (remote_target::remote_btrace_maybe_reopen): Pass down target.
10351 (remote_target::pid_to_exec_file)
10352 (remote_target::thread_handle_to_thread_info): Pass down target.
10353 (remote_target::async_wait_fd): New.
10354 * riscv-fbsd-tdep.c: Include "inferior.h".
10355 (riscv_fbsd_get_thread_local_address): Pass down target.
10356 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
10357 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
10358 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
10359 Adjust.
10360 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
10361 * solib-svr4.c (enable_break): Pass down target.
10362 * spu-multiarch.c (parse_spufs_run): Pass down target.
10363 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
10364 * target-delegates.c: Regenerate.
10365 * target.c (g_target_stack): Delete.
10366 (current_top_target): Return the current inferior's top target.
10367 (target_has_execution_1): Refer to the passed-in inferior's top
10368 target.
10369 (target_supports_terminal_ours): Check whether the initial
10370 inferior was already created.
10371 (decref_target): New.
10372 (target_stack::push): Incref/decref the target.
10373 (push_target, push_target, unpush_target): Adjust.
10374 (target_stack::unpush): Defref target.
10375 (target_is_pushed): Return bool. Adjust to refer to the current
10376 inferior's target stack.
10377 (dispose_inferior): Delete, and inline parts ...
10378 (target_preopen): ... here. Only dispose of the current inferior.
10379 (target_detach): Hold strong target reference while detaching.
10380 Pass target down.
10381 (target_thread_name): Add assertion.
10382 (target_resume): Pass down target.
10383 (target_ops::beneath, find_target_at): Adjust to refer to the
10384 current inferior's target stack.
10385 (get_dummy_target): New.
10386 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
10387 has a thread running.
10388 (initialize_targets): Rename to ...
10389 (_initialize_target): ... this.
10390 * target.h: Include "gdbsupport/refcounted-object.h".
10391 (struct target_ops): Inherit refcounted_object.
10392 (target_ops::shortname, target_ops::longname): Make const.
10393 (target_ops::async_wait_fd): New method.
10394 (decref_target): Declare.
10395 (struct target_ops_ref_policy): New.
10396 (target_ops_ref): New typedef.
10397 (get_dummy_target): Declare function.
10398 (target_is_pushed): Return bool.
10399 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
10400 (all_matching_threads_iterator::all_matching_threads_iterator):
10401 Handle filter target.
10402 * thread-iter.h (struct all_matching_threads_iterator, struct
10403 all_matching_threads_range, class all_non_exited_threads_range):
10404 Filter by target too. Remove explicit.
10405 * thread.c (threads_executing): Delete.
10406 (inferior_thread): Pass down current inferior.
10407 (clear_thread_inferior_resources): Pass down thread pointer
10408 instead of ptid_t.
10409 (add_thread_silent, add_thread_with_info, add_thread): Add
10410 process_stratum_target parameter. Use it for thread and inferior
10411 searches.
10412 (is_current_thread): New.
10413 (thread_info::deletable): Use it.
10414 (find_thread_ptid, thread_count, in_thread_list)
10415 (thread_change_ptid, set_resumed, set_running): New
10416 process_stratum_target parameter. Pass it down.
10417 (set_executing): New process_stratum_target parameter. Pass it
10418 down. Adjust reference to 'threads_executing'.
10419 (threads_are_executing): New process_stratum_target parameter.
10420 Adjust reference to 'threads_executing'.
10421 (set_stop_requested, finish_thread_state): New
10422 process_stratum_target parameter. Pass it down.
10423 (switch_to_thread): Also match inferior.
10424 (switch_to_thread): New process_stratum_target parameter. Pass it
10425 down.
10426 (update_threads_executing): Reimplement.
10427 * top.c (quit_force): Pop targets from all inferior.
10428 (gdb_init): Don't call initialize_targets.
10429 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
10430 Declare.
10431 (windows_add_thread, windows_delete_thread): Adjust.
10432 (get_windows_debug_event): Rename to ...
10433 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
10434 * tracefile-tfile.c (tfile_target_open): Pass down target.
10435 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
10436 Forward declare.
10437 (switch_to_thread): Add process_stratum_target parameter.
10438 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
10439 parameter. Use it.
10440 (mi_on_resume): Pass target down.
10441 * nat/fork-inferior.c (startup_inferior): Add
10442 process_stratum_target parameter. Pass it down.
10443 * nat/fork-inferior.h (startup_inferior): Add
10444 process_stratum_target parameter.
10445 * python/py-threadevent.c (py_get_event_thread): Pass target down.
10446
75c6c844
PA
104472020-01-10 Pedro Alves <palves@redhat.com>
10448
10449 * remote.c (remote_target::start_remote): Don't set inferior_ptid
10450 directly. Instead find the first thread in the thread list and
10451 use switch_to_thread.
10452
78f2c40a
PA
104532020-01-10 Pedro Alves <palves@redhat.com>
10454
10455 * remote.c (remote_target::remote_add_inferior): Don't bind a
10456 process to the current inferior if the current inferior is already
10457 bound to a process.
10458
e7af6c70
TBA
104592020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10460 Pedro Alves <palves@redhat.com>
10461
10462 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
10463 If no process is specified, return null_ptid instead of
10464 inferior_ptid.
10465 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
10466 TARGET_WAITKIND_SIGNALLED with no pid.
10467
31ba933e
PA
104682020-01-10 Pedro Alves <palves@redhat.com>
10469
10470 * remote.c (first_remote_resumed_thread): New.
10471 (remote_target::wait_as): Use it as default event_ptid instead of
10472 inferior_ptid.
10473
735fc2ca
PA
104742020-01-10 Pedro Alves <palves@redhat.com>
10475
10476 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
10477
c17e02e1
PA
104782020-01-10 Pedro Alves <palves@redhat.com>
10479
10480 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
10481 not -1.
10482
ab1ddbcf
PA
104832020-01-10 Pedro Alves <palves@redhat.com>
10484
10485 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
10486 ptid to get_last_target_status.
10487 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
10488 ptid to get_last_target_status.
10489 * infcmd.c (continue_command): Don't pass a target_waitstatus to
10490 get_last_target_status.
10491 (info_program_command): Don't pass a target_waitstatus to
10492 get_last_target_status.
10493 * infrun.c (init_wait_for_inferior): Use
10494 nullify_last_target_wait_ptid.
10495 (get_last_target_status): Handle nullptr arguments.
10496 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
10497 (print_stop_event): Don't pass a ptid to get_last_target_status.
10498 (normal_stop): Don't pass a ptid to get_last_target_status.
10499 * infrun.h (get_last_target_status, set_last_target_status): Move
10500 comments here and update.
10501 (nullify_last_target_wait_ptid): Declare.
10502 * linux-fork.c (fork_load_infrun_state): Remove local extern
10503 declaration of nullify_last_target_wait_ptid.
10504 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
10505 to get_last_target_status.
10506
f3f8ece4
PA
105072020-01-10 Pedro Alves <palves@redhat.com>
10508
10509 * gdbthread.h (scoped_restore_current_thread)
10510 <dont_restore, restore, m_dont_restore>: Declare.
10511 * thread.c (thread_alive): Add assertion. Return bool.
10512 (switch_to_thread_if_alive): New.
10513 (prune_threads): Switch inferior/thread.
10514 (print_thread_info_1): Switch thread before calling target methods.
10515 (scoped_restore_current_thread::restore): New, factored out from
10516 ...
10517 (scoped_restore_current_thread::~scoped_restore_current_thread):
10518 ... this.
10519 (scoped_restore_current_thread::scoped_restore_current_thread):
10520 Add assertion.
10521 (thread_apply_all_command, thread_select): Use
10522 switch_to_thread_if_alive.
10523 * infrun.c (proceed, restart_threads, handle_signal_stop)
10524 (switch_back_to_stepped_thread): Switch current thread before
10525 calling target methods.
10526
db2d40f7
PA
105272020-01-10 Pedro Alves <palves@redhat.com>
10528
10529 * inferior.c (switch_to_inferior_no_thread): New function,
10530 factored out from ...
10531 (inferior_command): ... here.
10532 * inferior.h (switch_to_inferior_no_thread): Declare.
10533 * mi/mi-main.c (run_one_inferior): Use
10534 switch_to_inferior_no_thread.
10535
bd420a2d
PA
105362020-01-10 Pedro Alves <palves@redhat.com>
10537
10538 * infcmd.c (kill_command): Remove dead code.
10539
ddf5db90
PA
105402020-01-10 Pedro Alves <palves@redhat.com>
10541
10542 * remote.c (remote_target::mourn_inferior): No longer check
10543 whether the target is running.
10544
5018ce90
PA
105452020-01-10 Pedro Alves <palves@redhat.com>
10546
10547 * corelow.c (core_target::has_execution): Change parameter type to
10548 inferior pointer.
10549 * inferior.c (number_of_live_inferiors): Use
10550 inferior::has_execution instead of target_has_execution_1.
10551 * inferior.h (inferior::has_execution): New.
10552 * linux-thread-db.c (thread_db_target::update_thread_list): Use
10553 inferior::has_execution instead of target_has_execution_1.
10554 * process-stratum-target.c
10555 (process_stratum_target::has_execution): Change parameter type to
10556 inferior pointer. Check the inferior's PID instead of
10557 inferior_ptid.
10558 * process-stratum-target.h
10559 (process_stratum_target::has_execution): Change parameter type to
10560 inferior pointer.
10561 * record-full.c (record_full_core_target::has_execution): Change
10562 parameter type to inferior pointer.
10563 * target.c (target_has_execution_1): Change parameter type to
10564 inferior pointer.
10565 (target_has_execution_current): Adjust.
10566 * target.h (target_ops::has_execution): Change parameter type to
10567 inferior pointer.
10568 (target_has_execution_1): Change parameter type to inferior
10569 pointer. Change return type to bool.
10570 * tracefile.h (tracefile_target::has_execution): Change parameter
10571 type to inferior pointer.
10572
74375d18
PA
105732020-01-10 Pedro Alves <palves@redhat.com>
10574
10575 * exceptions.c (print_flush): Remove current_top_target() check.
10576
acdf84a6
PA
105772020-01-10 Pedro Alves <palves@redhat.com>
10578
10579 * remote.c (show_remote_exec_file): Show the current inferior's
10580 exec-file instead of the command variable's value.
10581
ec506636
PA
105822020-01-10 Pedro Alves <palves@redhat.com>
10583
10584 * record-full.c (record_full_resume_ptid): New global.
10585 (record_full_target::resume): Set it.
10586 (record_full_wait_1): Use record_full_resume_ptid instead of
10587 inferior_ptid.
10588
873657b9
PA
105892020-01-10 Pedro Alves <palves@redhat.com>
10590
10591 * gdbthread.h (scoped_restore_current_thread)
10592 <dont_restore, restore, m_dont_restore>: Declare.
10593 * thread.c (thread_alive): Add assertion. Return bool.
10594 (switch_to_thread_if_alive): New.
10595 (prune_threads): Switch inferior/thread.
10596 (print_thread_info_1): Switch thread before calling target methods.
10597 (scoped_restore_current_thread::restore): New, factored out from
10598 ...
10599 (scoped_restore_current_thread::~scoped_restore_current_thread):
10600 ... this.
10601 (scoped_restore_current_thread::scoped_restore_current_thread):
10602 Add assertion.
10603 (thread_apply_all_command, thread_select): Use
10604 switch_to_thread_if_alive.
10605
7f0ae84c
GB
106062020-01-10 George Barrett <bob@bob131.so>
10607
10608 * stap-probe.c (stap_modify_semaphore): Don't check for null
10609 semaphores.
10610 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
10611 for null semaphores.
10612
f5a7c406
AB
106132020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
10614
10615 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
10616 all source windows, and maintain horizontal scroll status while
10617 doing so.
10618
9ae6bf64
TT
106192020-01-09 Tom Tromey <tom@tromey.com>
10620
10621 PR tui/18932:
10622 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
10623 update_source_window, not print_source_lines.
10624
b2efe70c
AB
106252020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
10626
10627 * tui/tui.c (tui_enable): Register tui hooks after calling
10628 tui_display_main.
10629
5f23a082
CB
106302020-01-09 Christian Biesinger <cbiesinger@google.com>
10631
10632 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
10633
3061113b
SM
106342020-01-08 Simon Marchi <simon.marchi@efficios.com>
10635
10636 * thread.c (print_thread_info_1): Fix indentation.
10637
57d75002
CB
106382020-01-09 Christian Biesinger <cbiesinger@google.com>
10639
10640 * symtab.c (general_symbol_info::compute_and_set_names): Move the
10641 unique_xmalloc_ptr outside the if to always free the demangled name.
10642
6a053cb1
TT
106432020-01-08 Tom Tromey <tromey@adacore.com>
10644
10645 * xcoffread.c (enter_line_range, read_xcoff_symtab)
10646 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
10647 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
10648 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
10649 Remove.
10650 (section_offsets): New typedef.
10651 * symtab.c (fixup_section, get_msymbol_address): Update.
10652 * symmisc.c (dump_msymbols): Update.
10653 * symfile.h (relative_addr_info_to_section_offsets)
10654 (symfile_map_offsets_to_segments): Update.
10655 * symfile.c (build_section_addr_info_from_objfile)
10656 (init_objfile_sect_indices): Update.
10657 (struct place_section_arg): Change type of "offsets".
10658 (place_section): Update.
10659 (relative_addr_info_to_section_offsets): Change type of
10660 "section_offsets". Remove "num_sections" parameter.
10661 (default_symfile_offsets, syms_from_objfile_1)
10662 (set_objfile_default_section_offset): Update.
10663 (reread_symbols): No need to preserve section offsets by hand.
10664 (symfile_map_offsets_to_segments): Change type of "offsets".
10665 * stap-probe.c (relocate_address): Update.
10666 * stabsread.h (process_one_symbol): Update.
10667 * solib-target.c (struct lm_info_target) <offsets>: Change type.
10668 (solib_target_relocate_section_addresses): Update.
10669 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
10670 Update.
10671 * solib-frv.c (frv_relocate_main_executable): Update.
10672 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
10673 * solib-aix.c (solib_aix_get_section_offsets): Change return
10674 type.
10675 (solib_aix_solib_create_inferior_hook): Update.
10676 * remote.c (remote_target::get_offsets): Update.
10677 * psymtab.c (find_pc_sect_psymtab): Update.
10678 * psympriv.h (struct partial_symbol) <address, text_low,
10679 text_high>: Update.
10680 * objfiles.h (obj_section_offset): Update.
10681 (struct objfile) <section_offsets>: Change type.
10682 <num_sections>: Remove.
10683 (objfile_relocate): Update.
10684 * objfiles.c (entry_point_address_query): Update
10685 (relocate_one_symbol): Change type of "section_offsets".
10686 (objfile_relocate1, objfile_relocate1): Change type of
10687 "new_offsets".
10688 (objfile_rebase1): Update.
10689 * mipsread.c (mipscoff_symfile_read): Update.
10690 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
10691 parameter.
10692 * mdebugread.c (parse_symbol): Change type of "section_offsets".
10693 (parse_external, psymtab_to_symtab_1): Update.
10694 * machoread.c (macho_symfile_offsets): Update.
10695 * ia64-tdep.c (ia64_find_unwind_table): Update.
10696 * hppa-tdep.c (read_unwind_info): Update.
10697 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
10698 * dwarf2read.c (create_addrmap_from_index)
10699 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
10700 (process_psymtab_comp_unit_reader, add_partial_symbol)
10701 (add_partial_subprogram, process_full_comp_unit)
10702 (read_file_scope, read_func_scope, read_lexical_block_scope)
10703 (read_call_site_scope, dwarf2_rnglists_process)
10704 (dwarf2_ranges_process, dwarf2_ranges_read)
10705 (dwarf_decode_lines_1, var_decode_location, new_symbol)
10706 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
10707 Update.
10708 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
10709 Update.
10710 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
10711 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
10712 (process_one_symbol): Change type of "section_offsets".
10713 * ctfread.c (get_objfile_text_range): Update.
10714 * coffread.c (coff_symtab_read, enter_linenos)
10715 (process_coff_symbol): Update.
10716 * coff-pe-read.c (add_pe_forwarded_sym): Update.
10717 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
10718
456e800a
TT
107192020-01-08 Tom Tromey <tromey@adacore.com>
10720
10721 * dwarf2read.c (parse_macro_definition): Use std::string.
10722 (parse_macro_definition): Likewise.
10723
6dfa2fc2
TT
107242020-01-08 Tom Tromey <tromey@adacore.com>
10725
10726 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
10727 (ATTR_ALLOC_CHUNK): Remove.
10728
421d1616
TT
107292020-01-08 Tom Tromey <tromey@adacore.com>
10730
10731 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
10732
43816ebc
TT
107332020-01-08 Tom Tromey <tromey@adacore.com>
10734
10735 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
10736 (dwarf2_compute_name, open_dwo_file): Likewise.
10737 (process_enumeration_scope): Use std::vector.
10738 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
10739 (partial_die_info::fixup, dwarf2_start_subfile)
10740 (guess_full_die_structure_name, dwarf2_name): Likewise.
10741 (determine_prefix): Update.
10742 (guess_full_die_structure_name): Make return type const.
10743 (partial_die_full_name): Return unique_xmalloc_ptr.
10744 (DW_FIELD_ALLOC_CHUNK): Remove.
10745
4212d509
TT
107462020-01-07 Tom Tromey <tromey@adacore.com>
10747
10748 PR build/24937:
10749 * stap-probe.c (class stap_static_probe_ops): Add constructor.
10750
06a6207a
JT
107512020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
10752
10753 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
10754
153d79c4
AB
107552020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
10756
10757 * stack.c (print_frame_info): Move disassemble_next_line code
10758 inside source_print block.
10759
66182876
EZ
107602020-01-06 Eli Zaretskii <eliz@gnu.org>
10761
10762 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
10763 gdb/signals.h, as we are now using native signal symbols.
10764
cbfa8581
SV
107652020-01-06 Shahab Vahedi <shahab@synopsys.com>
10766
10767 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
10768 overflow by an early check of content vs threshold.
aac66a4c 10769 * tui/tui-source.c (tui_source_window::line_is_displayed):
cbfa8581
SV
10770 Likewise.
10771
3f602821
EZ
107722020-01-06 Eli Zaretskii <eliz@gnu.org>
10773
10774 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
10775
a08c904d
JT
107762020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
10777
10778 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
10779 export table if no section contains it's RVA.
10780
89a65580
EZ
107812020-01-06 Eli Zaretskii <eliz@gnu.org>
10782
10783 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
10784
8b7fcda2
HD
107852020-01-06 Hannes Domani <ssbssa@yahoo.de>
10786
10787 * source.c (print_source_lines_base): Set last_line_listed.
10788
a61b4f69
SV
107892020-01-06 Shahab Vahedi <shahab@synopsys.com>
10790
10791 * tui/tui-disasm.c: Remove trailing spaces.
10792
559e7e50
EZ
107932020-01-06 Eli Zaretskii <eliz@gnu.org>
10794 Pedro Alves <palves@redhat.com>
10795
10796 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
10797 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
10798 (windows_gdb_signal_to_target): New function, uses the above
10799 enumeration to convert GDB internal signal codes to equivalent
10800 Windows codes.
10801 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
10802 * windows-nat.c: Include "gdb_wait.h".
10803 (get_windows_debug_event): Extract the fatal exception from the
10804 exit status and convert to the equivalent Posix signal number.
10805 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
10806 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
10807 * gdbsupport/gdb_wait.c: New file, implements
10808 windows_status_to_termsig.
10809 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
10810 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
10811
f2302a34
AB
108122020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
10813
10814 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
10815 show_layout.
10816
6a5206eb
LM
108172020-01-05 Luis Machado <luis.machado@linaro.org>
10818
10819 * aarch64-linux-nat.c
10820 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
10821 and bfd_mach_aarch64.
10822
6ec1d75e
PW
108232020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10824
10825 * ui-file.c (stdio_file::can_emit_style_escape)
10826 (tee_file::can_emit_style_escape): Ensure style is used also on
10827 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
10828 to gdb_stdout.
10829 * main.c (set_gdb_data_directory): Use file style to output the
10830 warning that the given pathname is not a directory.
10831 * top.c (show_history_filename, gdb_safe_append_history)
10832 (show_gdb_datadir): Use file style.
10833
44f81a76
HD
108342020-01-03 Hannes Domani <ssbssa@yahoo.de>
10835
10836 * solib-target.c (struct lm_info_target):
10837 Change offsets to be a unique_xmalloc_ptr.
10838 (solib_target_relocate_section_addresses): Update.
10839
25057eb0
HD
108402020-01-03 Hannes Domani <ssbssa@yahoo.de>
10841
10842 * windows-nat.c (windows_clear_solib): Free so_list linked list.
10843
6e2118f5
BE
108442020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
10845
10846 * MAINTAINERS (Write After Approval): Add myself.
10847
8133c7dc
LM
108482020-01-02 Luis Machado <luis.machado@linaro.org>
10849
10850 * proc-service.c (get_ps_regcache): Remove reference to obsolete
10851 Cell BE architecture.
10852 * target.h (struct target_ops) <thread_architecture>: Likewise.
10853
48189bec
HD
108542020-01-01 Hannes Domani <ssbssa@yahoo.de>
10855
10856 * Makefile.in: Use INSTALL_PROGRAM_ENV.
10857
ead1063b
HD
108582020-01-01 Hannes Domani <ssbssa@yahoo.de>
10859
10860 * MAINTAINERS (Write After Approval): Add myself.
10861
e5d78223
JB
108622020-01-01 Joel Brobecker <brobecker@adacore.com>
10863
10864 * gdbarch.sh: Update copyright year range of generated files.
10865
b811d2c2
JB
108662020-01-01 Joel Brobecker <brobecker@adacore.com>
10867
10868 Update copyright year range in all GDB files.
10869
5f4def5c
JB
108702020-01-01 Joel Brobecker <brobecker@adacore.com>
10871
10872 * copyright.py: Convert to Python 3.
10873
51fd4002
JB
108742020-01-01 Joel Brobecker <brobecker@adacore.com>
10875
10876 * copyright.py: Adapt after move of gnulib directory from gdb
10877 directory to toplevel directory.
10878
5fb651f2
JB
108792020-01-01 Joel Brobecker <brobecker@adacore.com>
10880
10881 * copyright.py (main): Exit if run from the wrong directory.
10882
5dd8bf88
JB
108832020-01-01 Joel Brobecker <brobecker@adacore.com>
10884
10885 * top.c (print_gdb_version): Change copyright year to 2020.
10886
9f71dacb 108872020-01-01 Joel Brobecker <brobecker@adacore.com>
3d34df0a 10888
9f71dacb 10889 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
3d34df0a 10890
9f71dacb 10891For older changes see ChangeLog-2019.
c906108c
SS
10892\f
10893Local Variables:
10894mode: change-log
10895left-margin: 8
10896fill-column: 74
10897version-control: never
57da7796 10898coding: utf-8
c906108c 10899End: